/* ==========================================================================
   SAGE GROUP LLC — Enterprise Industrial Design System
   Architecture: High-Precision Mechanical Integrity Engineering
   Aesthetic: Architectural Porcelain Base, Forest Sage Green, Brushed Gold / Brass
   Typography: Plus Jakarta Sans (Interface/Headings) + Montserrat (Branding)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Brand Green Spectrum (Strictly extracted from prints) */
  --sage-950: #0A130D;
  --sage-900: #132116;
  --sage-850: #1A2C1E;
  --sage-800: #233A29;
  --sage-700: #2E4C36;
  --sage-600: #3E5C46; /* Official Print Green */
  --sage-500: #4D7357;
  --sage-400: #699174;
  --sage-300: #8EAEA7;
  --sage-200: #BBD4C3;
  --sage-100: #DEEBE1;
  --sage-50:  #EDF5EF;
  --sage-25:  #F5FAF6;

  /* Industrial Gold / Brass Spectrum (Matches emblem seam) */
  --gold-700: #896722;
  --gold-600: #A47E32;
  --gold-500: #C5A059; /* Official Print Gold */
  --gold-400: #D6B46B;
  --gold-300: #E4CC8F;
  --gold-200: #F1E4BE;
  --gold-100: #FAF4E5;
  --gold-50:  #FDFBF5;
  --gold-gradient: linear-gradient(135deg, #C5A059 0%, #E8D39A 50%, #AC8639 100%);
  --gold-gradient-hover: linear-gradient(135deg, #D4B46E 0%, #F3E4B8 50%, #C5A059 100%);

  /* Porcelain & Architectural Base Canvas */
  --bg-canvas:         #F5F8F5; /* Precision architectural porcelain tone */
  --bg-subtle:         #EBF1EB;
  --bg-surface:        #FFFFFF;
  --bg-surface-glass:  rgba(255, 255, 255, 0.94);
  --bg-card:           #FFFFFF;
  --bg-card-hover:     #FCFDFB;
  --bg-dark-panel:     #111D14;
  --bg-dark-obsidian:  #0C160F;

  /* Typography Hierarchy */
  --text-primary:      #111D14;
  --text-secondary:    #35483A;
  --text-muted:        #5E7363;
  --text-dim:          #869C8C;
  --text-inverse:      #FFFFFF;
  --text-light:        #E2E8F0;
  --text-gold:         #8F6E25;

  /* Hairline Borders & Structural Geometry */
  --border-hairline:   rgba(36, 59, 42, 0.08);
  --border-subtle:     rgba(36, 59, 42, 0.16);
  --border-medium:     rgba(36, 59, 42, 0.28);
  --border-gold-subtle: rgba(197, 160, 89, 0.45);
  --border-gold-solid: #C5A059;

  /* Shadows (Engineered Depth Physics) */
  --shadow-xs: 0 1px 2px rgba(11, 20, 14, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 20, 14, 0.04), 0 1px 2px rgba(11, 20, 14, 0.02);
  --shadow-md: 0 6px 18px -2px rgba(11, 20, 14, 0.06), 0 2px 6px -1px rgba(11, 20, 14, 0.03);
  --shadow-lg: 0 18px 40px -6px rgba(11, 20, 14, 0.09), 0 6px 16px -3px rgba(11, 20, 14, 0.04);
  --shadow-xl: 0 28px 64px -12px rgba(11, 20, 14, 0.14), 0 10px 24px -4px rgba(11, 20, 14, 0.05);

  /* Geometry & Layout */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --container-max: 1280px;

  /* Typography Families */
  --font-brand:   'Montserrat', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   Base & Engineering Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.35) #080D0A;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Sleek Dark Industrial Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080D0A;
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-pill);
  border: 2px solid #080D0A;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.35) #080D0A;
}

.blueprint-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(62, 92, 70, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 92, 70, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ==========================================================================
   Executive Header (Unified, Clean, Non-Sticky Architecture)
   ========================================================================== */
.header-wrapper {
  position: relative; /* NON-STICKY as requested */
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  z-index: 50;
  padding: 16px 0;
}

.btn-nav-cta {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Navigation & Dropdowns (Clean, Uncluttered Top Architecture) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--sage-900);
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.22s ease;
  color: var(--gold-600);
  margin-top: -1px;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(17, 29, 20, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
  margin-top: 12px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Bridge to prevent mouse leaving on gap */
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.has-dropdown:hover .dropdown-panel,
.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel-inner {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  transition: background 0.18s ease;
}

.dropdown-item:hover {
  background: var(--sage-50);
}

.dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.25;
  transition: color 0.18s ease;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--sage-700);
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-hairline);
  margin: 8px 16px;
}

.dropdown-item-featured .dropdown-item-title {
  color: var(--gold-700);
  font-weight: 800;
}

.dropdown-item-featured:hover .dropdown-item-title {
  color: var(--gold-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid transparent;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--sage-700);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(47, 77, 55, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--sage-800);
  box-shadow: 0 8px 24px rgba(47, 77, 55, 0.38);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #121E14;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.32);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 8px 26px rgba(197, 160, 89, 0.44);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--sage-950);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--sage-600);
  background-color: var(--sage-50);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--sage-950);
}

/* ==========================================================================
   Hero Section & Engineering Console
   ========================================================================== */
.hero {
  padding-top: 64px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(180deg, rgba(7, 14, 9, 0.74) 0%, rgba(9, 18, 12, 0.84) 45%, rgba(12, 22, 15, 0.96) 100%),
    url('assets/hero-refinery.jpg') center 32% / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 56px;
  align-items: center;
}

/* Clean Executive Credential Line (Zero Pill Elements) */
.hero-executive-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E2ECE5;
}

.hero-executive-kicker .kicker-item {
  display: inline-flex;
  align-items: center;
}

.hero-executive-kicker .gold-accent {
  color: var(--gold-400);
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.4);
}

.kicker-divider {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 300;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.12;
  color: #FFFFFF;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero-headline .highlight-green {
  background: linear-gradient(135deg, #F5DC9C 0%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-subhead {
  font-size: 1.1875rem;
  color: rgba(235, 244, 238, 0.92);
  line-height: 1.72;
  margin-bottom: 38px;
  max-width: 650px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-hero {
  padding: 14px 26px;
  font-size: 0.875rem;
}

.hero-actions .btn-primary {
  background: var(--gold-gradient);
  color: #121E14;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.38);
  border: 1.5px solid transparent;
}

.hero-actions .btn-primary:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 8px 28px rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

.hero-text-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #E2ECE5;
  padding: 6px 12px;
  transition: all 0.2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-text-link:hover {
  color: var(--gold-300);
  transform: translateX(3px);
}
/* Executive Credential Card on Hero (Right Column) */
.hero-card-block {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.executive-credential-card {
  width: 100%;
  max-width: 440px;
  background: rgba(14, 25, 18, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 30px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.executive-credential-card::before,
.executive-credential-card::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-500);
  opacity: 0.85;
  line-height: 1;
}
.executive-credential-card::before { top: 8px; right: 12px; }
.executive-credential-card::after { bottom: 8px; left: 12px; }

.card-kicker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.card-identity-block {
  margin-bottom: 16px;
}

.lead-officer-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-200);
  margin-bottom: 4px;
}

.lead-officer-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.officer-credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.credential-lead-statement {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(235, 244, 238, 0.92);
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--gold-500);
  border-radius: 0 4px 4px 0;
}

.card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 12px;
  background: rgba(10, 18, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.card-metric-col {
  text-align: center;
}

.card-metric-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
  margin-bottom: 4px;
}

.card-metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #B2C4B7;
}

.card-footer-action {
  margin-top: 6px;
}

.card-footer-action .btn-primary {
  background: var(--gold-gradient);
  color: #121E14;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}

.card-footer-action .btn-primary:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   Upgraded Facility Experience Showcase (Architectural Trust Panel)
   ========================================================================== */
.hero-trust-showcase {
  background: rgba(13, 23, 16, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 22px 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  margin-top: 36px;
  position: relative;
}

.trust-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.trust-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.trust-scope-text {
  font-family: var(--font-heading);
  font-size: 0.78125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.trust-client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-client-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 14px 10px;
  min-height: 90px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-client-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-500);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trust-client-card:hover {
  border-color: var(--sage-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 58, 41, 0.09);
}

.trust-client-card:hover::before {
  opacity: 1;
}

.trust-logo-area {
  height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.trust-logo-area img {
  max-height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.trust-logo-area img.logo-compact {
  max-height: 38px;
}

.trust-client-card:hover .trust-logo-area img {
  transform: scale(1.04);
}

.trust-facility-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(62, 92, 70, 0.08);
}

.facility-counter {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #8C6A24;
  background: #FAF4E6;
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 1.5px 5px;
  border-radius: 3px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.facility-scope {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  text-align: right;
  flex-shrink: 1;
  white-space: nowrap;
}

/* ==========================================================================
   Major US Refineries & Petrochemical Facilities Showcase Grid
   ========================================================================== */
.facility-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 991px) {
  .facility-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .facility-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.facility-showcase-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.facility-showcase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-500);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.facility-showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage-500);
  box-shadow: 0 8px 24px rgba(35, 58, 41, 0.08);
}

.facility-showcase-card:hover::before {
  opacity: 1;
}

.facility-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.facility-showcase-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--sage-50);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-800);
}

.facility-showcase-icon svg {
  width: 20px;
  height: 20px;
}

.facility-showcase-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-700);
  background: #FAF4E6;
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.facility-showcase-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sage-950);
  margin-bottom: 6px;
  line-height: 1.35;
}

.facility-showcase-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.facility-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Executive Operations & Rapid Mobilization Card (Obsidian & Brushed Gold) */
.executive-dispatch-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  background: linear-gradient(145deg, #0D1710 0%, #16261A 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(13, 23, 16, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.exec-card-topbar {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.exec-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.exec-kicker-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exec-geo-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: #A5BAA8;
}

.exec-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exec-card-headline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.exec-info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.exec-info-btn:hover {
  background: rgba(197, 160, 89, 0.28);
  color: #FFFFFF;
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
  transform: scale(1.06);
}

.exec-info-btn.is-active,
.executive-dispatch-card.is-expanded .exec-info-btn {
  background: var(--gold-500);
  color: var(--sage-950);
  border-color: var(--gold-400);
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.5);
}

.exec-card-body {
  padding: 24px;
}

/* Collapsible Trigger Bar with Info Icon */
.exec-collapse-bar {
  margin-bottom: 20px;
}

.exec-collapse-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-sm);
  color: #E2ECE5;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.exec-collapse-trigger:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.55);
  color: #FFFFFF;
}

.exec-info-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exec-collapse-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #E2ECE5;
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-collapse-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  flex-shrink: 0;
}

.exec-collapse-action .chevron-icon {
  transition: transform 0.3s ease;
}

.executive-dispatch-card.is-expanded .exec-collapse-action .chevron-icon {
  transform: rotate(180deg);
}

.executive-dispatch-card.is-expanded .exec-collapse-trigger {
  background: rgba(197, 160, 89, 0.12);
  border-color: rgba(197, 160, 89, 0.45);
}

/* Collapsible Wrapper - Hidden by Default */
.exec-collapsible-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-bottom 0.3s ease;
  margin-bottom: 0;
}

.executive-dispatch-card.is-expanded .exec-collapsible-wrapper {
  max-height: 600px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  margin-bottom: 20px;
}

.exec-lead-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exec-lead-close-info {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #A5BAA8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.exec-lead-close-info:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-400);
  color: #FFFFFF;
}

.exec-leader-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exec-lead-seal {
  min-width: 88px;
  height: 50px;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.05) 100%);
  border: 1.5px solid var(--gold-500);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.22), inset 0 0 10px rgba(197, 160, 89, 0.08);
}

.seal-api {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--gold-400);
  letter-spacing: 0.14em;
  line-height: 1;
}

.seal-spec {
  font-family: var(--font-heading);
  font-size: 0.60rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 3px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.exec-lead-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.exec-lead-title {
  font-size: 0.8125rem;
  color: var(--gold-300);
  font-weight: 500;
}

.exec-lead-corridor {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: #A5BAA8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.exec-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.exec-spec-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.spec-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #A5BAA8;
  letter-spacing: 0.06em;
}

.spec-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 3px 0 2px;
}

.spec-val.gold-val {
  color: var(--gold-400);
}

.spec-desc {
  display: block;
  font-size: 0.65rem;
  color: #CBD7CE;
  line-height: 1.25;
}

.exec-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-exec-cta {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.875rem;
  font-weight: 800;
}

.btn-exec-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-exec-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   Metrics Ribbon (Obsidian & Gold Executive Strip)
   ========================================================================== */
.metrics-ribbon {
  background: linear-gradient(180deg, #09130B 0%, #0E1A10 100%);
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding: 44px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.metrics-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.metric-column {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.metric-column:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(197, 160, 89, 0.25);
}

.metric-big-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.metric-gold {
  color: var(--gold-400);
}

.metric-headline {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.metric-annotation {
  font-size: 0.8125rem;
  color: rgba(220, 235, 226, 0.78);
}

/* ==========================================================================
   Section Framework & Eyebrows
   ========================================================================== */
.section {
  padding: 110px 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-700);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--sage-950);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Company Overview Layout & Photographic Commitment Card
   ========================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.overview-commitment-card {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(8, 15, 10, 0.88) 0%, rgba(13, 24, 16, 0.94) 100%),
    url('assets/field-inspection.jpg') center center / cover no-repeat;
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.overview-corridor-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--sage-50);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--sage-700);
  border-radius: var(--radius-sm);
}

.corridor-bar-icon {
  color: var(--sage-700);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.corridor-bar-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.corridor-bar-text strong {
  color: var(--sage-950);
}

.overview-competence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.overview-competence-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--sage-700);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.overview-competence-card.gold-accent {
  border-left-color: var(--gold-500);
}

.overview-competence-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-400);
}

.overview-competence-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--sage-950);
  margin-bottom: 6px;
}

.overview-competence-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Executive Subpage Hero Canopy (Used across Services, About, Experience)
   ========================================================================== */
.page-hero {
  background: 
    linear-gradient(180deg, rgba(8, 16, 11, 0.94) 0%, rgba(12, 22, 15, 0.98) 100%),
    radial-gradient(circle at top right, rgba(197, 160, 89, 0.14) 0%, transparent 60%);
  padding: 68px 0 56px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.28);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(197, 160, 89, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 160, 89, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-hero::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-500);
  opacity: 0.7;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A5BAA8;
  margin-bottom: 16px;
}

.page-breadcrumb a {
  color: #A5BAA8;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: var(--gold-400);
}

.page-breadcrumb span {
  color: rgba(197, 160, 89, 0.6);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.page-hero-lead {
  font-size: 1.125rem;
  line-height: 1.72;
  color: rgba(230, 242, 234, 0.92);
  max-width: 820px;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Interactive Equipment & Discipline Explorer
   ========================================================================== */
.explorer-card,
.equipment-explorer-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.explorer-tabs-header,
.explorer-tab-bar {
  display: flex;
  background: var(--sage-950);
  border-bottom: 2px solid var(--gold-500);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.explorer-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sage-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.explorer-tab-btn:last-child {
  border-right: none;
}

.explorer-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.explorer-tab-btn.active {
  background: var(--sage-800);
  color: #FFFFFF;
  box-shadow: inset 0 -3px 0 var(--gold-500);
}

.explorer-tab-btn .tab-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(197, 160, 89, 0.22);
  color: var(--gold-300);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.explorer-tab-btn.active .tab-code {
  background: var(--gold-500);
  color: #0E1A11;
  border-color: var(--gold-400);
}

.explorer-tab-content {
  display: none;
  padding: 44px;
}

.explorer-tab-content.active {
  display: block;
  animation: tabFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explorer-content-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 44px;
  align-items: start;
}

.explorer-text-col h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sage-950);
  line-height: 1.28;
  margin-bottom: 16px;
}

.explorer-text-col p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 22px;
}

.explorer-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 22px 0 28px 0;
  padding: 0;
}

.explorer-detail-list li {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--text-secondary);
  padding-left: 26px;
  position: relative;
}

.explorer-detail-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.65rem;
  color: var(--gold-600);
}

.explorer-detail-list li strong {
  color: var(--sage-950);
}

/* CAD HUD Technical Specs Box */
.tech-specs-box {
  background: #0B160E;
  border: 1px solid rgba(197, 160, 89, 0.38);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
}

.tech-specs-box::before,
.tech-specs-box::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-500);
  opacity: 0.8;
  line-height: 1;
}
.tech-specs-box::before { top: 8px; right: 10px; }
.tech-specs-box::after { bottom: 8px; left: 10px; }

.tech-specs-box h4 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row span {
  color: #A5BAA8;
  font-weight: 500;
  flex-shrink: 0;
}

.spec-row strong {
  color: #FFFFFF;
  font-weight: 700;
  text-align: right;
  line-height: 1.4;
}

/* Backward compatibility for schematic markup if present */
.explorer-schematic-wrap {
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-xs);
}

.schematic-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.schematic-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.explorer-details-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sage-950);
  margin-bottom: 14px;
}

.explorer-details-wrap p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.explorer-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-bullet-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Core Competencies Grid (9 Pillars)
   ========================================================================== */
.competencies-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.comp-editorial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.comp-editorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.comp-editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-400);
}

.comp-editorial-card:hover::before {
  opacity: 1;
}

.comp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.comp-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
  transition: all 0.22s ease;
}

.comp-editorial-card:hover .comp-icon-box {
  background: rgba(197, 160, 89, 0.16);
  border-color: rgba(197, 160, 89, 0.45);
  color: var(--gold-600);
}

.comp-icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.comp-tag {
  font-family: var(--font-heading);
  font-size: 0.78125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-700);
}

.comp-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sage-950);
  margin-bottom: 12px;
  line-height: 1.3;
}

.comp-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.comp-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
}

.comp-card-bullets li {
  font-size: 0.84375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-card-bullets li svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Industries Served Deck (Photographic Energy Infrastructure Cards)
   ========================================================================== */
.industries-deck {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.industry-deck-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
}

.industry-deck-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(35, 58, 41, 0.16), 0 0 0 1px var(--gold-500);
}

.industry-card-media {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--sage-950);
}

.industry-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-deck-card:hover .industry-card-img {
  transform: scale(1.08);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 23, 16, 0.05) 0%, rgba(13, 23, 16, 0.5) 100%);
  pointer-events: none;
}

.industry-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(13, 23, 16, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold-400);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  z-index: 2;
}

.industry-card-content {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.industry-card-content h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--sage-950);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.industry-deck-card:hover .industry-card-content h4 {
  color: var(--sage-700);
}

.industry-card-content p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   The Senior Advantage (Comparison Matrix)
   ========================================================================== */
.advantage-matrix-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  padding: 22px 28px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th.col-sage {
  background: var(--sage-950);
  color: #FFFFFF;
  border-bottom: 2px solid var(--gold-500);
}

.matrix-table th.col-broker {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.matrix-table td {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.matrix-table tr:hover {
  background: rgba(245, 248, 245, 0.8);
}

.matrix-table td.col-sage {
  background: rgba(62, 92, 70, 0.04);
  font-weight: 600;
  color: var(--sage-950);
}

.matrix-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78125rem;
  font-weight: 800;
  color: #0F5132;
  background: #D1E7DD;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(15, 81, 50, 0.25);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix-badge-green::before {
  content: "✓";
  font-weight: 900;
  color: #15803D;
}

.matrix-badge-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78125rem;
  font-weight: 800;
  color: #842029;
  background: #F8D7DA;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(132, 32, 41, 0.25);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matrix-badge-red::before {
  content: "✕";
  font-weight: 900;
  color: #B91C1C;
}

.sage-badge-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-800);
  font-weight: 700;
}

.sage-badge-check svg {
  width: 18px;
  height: 18px;
  fill: #16A34A;
  flex-shrink: 0;
}

.broker-cross {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9CA3AF;
}

.broker-cross svg {
  width: 16px;
  height: 16px;
  fill: #DC2626;
  flex-shrink: 0;
}

/* ==========================================================================
   Field Authority & Senior NDE Execution Banner
   ========================================================================== */
.field-authority-banner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(145deg, #0A130C 0%, #122116 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  margin-top: 48px;
  position: relative;
}

.field-authority-media {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.field-authority-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.field-authority-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
}

.field-authority-content {
  padding: 36px 36px 36px 8px;
  color: #FFFFFF;
}

.field-authority-kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 10px;
}

.field-authority-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.field-authority-desc {
  font-size: 0.9375rem;
  color: rgba(230, 240, 234, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.field-authority-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.72rem;
  color: rgba(220, 235, 226, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Compliance & Safety Registry
   ========================================================================== */
.compliance-registry-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
}

.registry-table th {
  background: var(--sage-50);
  padding: 18px 26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-950);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.registry-table td {
  padding: 18px 26px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.registry-code {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--sage-950);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.registry-status-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  color: #166534;
}

.registry-status-check::before {
  content: "✓";
  font-weight: 900;
  color: var(--sage-700);
}

.registry-status-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-700);
}

.registry-status-verified::before {
  content: "•";
  font-weight: 900;
  color: var(--gold-500);
}

/* Safety & Compliance Credentials Grid (Used in about.html) */
.compliance-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.compliance-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.compliance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.compliance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-400);
}

.compliance-card:hover::before {
  opacity: 1;
}

.compliance-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.compliance-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-icon-circle svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-600);
}

.compliance-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--sage-950);
  margin: 0;
  line-height: 1.25;
}

.compliance-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Past Performance & Facility Roster (With Embedded Logos)
   ========================================================================== */
.facility-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--sage-50);
  border-color: var(--sage-500);
  color: var(--sage-950);
}

.filter-btn.active {
  background: var(--sage-800);
  color: #FFFFFF;
  border-color: var(--sage-800);
}

.facility-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.facility-entry-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

.facility-entry-card:hover {
  border-color: var(--sage-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.facility-logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 16px;
}

.facility-type-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-type-icon {
  width: 24px;
  height: 24px;
  color: var(--sage-700);
  flex-shrink: 0;
}

.facility-type-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sage-950);
}

.facility-client-logo {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.facility-client-logo.logo-compact {
  height: 36px;
}

.facility-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--sage-50);
  color: var(--sage-800);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
}

.facility-locations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facility-locations li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-locations li svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Capability Statement Briefing Folio (Document Preview)
   ========================================================================== */
.capability-folio-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-xl);
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
}

.folio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 3px solid var(--sage-700);
  margin-bottom: 36px;
}

.folio-brand-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folio-brand-deck img {
  height: 52px;
  width: auto;
}

.folio-tagline {
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sage-700);
  text-transform: uppercase;
}

.folio-actions {
  display: flex;
  gap: 12px;
}

.folio-content-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.folio-block {
  margin-bottom: 32px;
}

.folio-block-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-950);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.folio-block-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  background-color: var(--gold-500);
}

.folio-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.folio-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folio-check-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.folio-check-list li svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Executive Contact & Dispatch
   ========================================================================== */

.channel-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
  flex-shrink: 0;
}

.channel-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.channel-meta {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-value {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   Executive Dispatch Terminal & Inquiry Form (Atmospheric Night Backdrop)
   ========================================================================== */
#dispatch {
  position: relative;
  background: 
    linear-gradient(180deg, rgba(8, 15, 10, 0.88) 0%, rgba(11, 20, 14, 0.92) 50%, rgba(6, 12, 8, 0.97) 100%),
    url('assets/dispatch-refinery.jpg') center center / cover no-repeat;
  color: #FFFFFF;
}

#dispatch .section-kicker {
  color: var(--gold-400);
  text-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

#dispatch .section-title {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

#dispatch .section-subtitle {
  color: rgba(235, 243, 238, 0.9);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.dispatch-contact-card {
  background: rgba(13, 23, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.dispatch-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gold-gradient);
}

.dispatch-contact-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.dispatch-contact-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.dispatch-contact-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
}

.dispatch-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.dispatch-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(20, 34, 24, 0.75);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.dispatch-channel-item:hover {
  background: rgba(26, 46, 32, 0.92);
  border-color: var(--gold-500);
  transform: translateX(4px);
}

.dispatch-form-card {
  background: rgba(13, 23, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
}

.dispatch-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.form-explainer {
  font-size: 0.9375rem;
  color: rgba(235, 243, 238, 0.85);
  margin-bottom: 30px;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group.full-width {
  grid-column: 1 / -1;
}

.field-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E2ECE5;
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(197, 160, 89, 0.32);
  border-radius: var(--radius-sm);
  background-color: rgba(8, 15, 10, 0.82);
  color: #FFFFFF;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--gold-500);
  background-color: rgba(11, 20, 14, 0.96);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.25);
}

.field-input::placeholder {
  color: rgba(200, 218, 206, 0.5);
}

select.field-input option {
  background-color: #0D1710;
  color: #FFFFFF;
}

textarea.field-input {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--sage-950);
  color: #DDE8DF;
  padding: 88px 0 36px 0;
  border-top: 4px solid var(--gold-500);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-statement p {
  font-size: 0.9375rem;
  color: #A1B8A5;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 340px;
}

.footer-nav-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 22px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link-list a {
  font-size: 0.9375rem;
  color: #C3D5C7;
}

.footer-link-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom-bar {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #8A9E8F;
}

/* ==========================================================================
   Toast Notification Deck
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-bubble {
  background: var(--sage-950);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .header-wrapper, .site-footer, .hero, .metrics-ribbon, 
  .equipment-explorer-card, .industries-deck, .advantage-matrix-card, 
  .facility-filter-bar, .dispatch-form-card, .btn, .toast-container, 
  .blueprint-grid-overlay {
    display: none !important;
  }
  .section {
    padding: 0 !important;
  }
  .capability-folio-wrap {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .folio-actions {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid, .explorer-tab-content.active, .explorer-content-grid, .dispatch-grid, .overview-grid, .field-authority-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .competencies-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compliance-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-deck {
    grid-template-columns: repeat(3, 1fr);
  }
  .facility-roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .competencies-editorial-grid,
  .compliance-cards-grid {
    grid-template-columns: 1fr;
  }
  .explorer-tab-btn {
    padding: 13px 14px;
    font-size: 0.8rem;
  }
  .explorer-tab-content {
    padding: 26px 18px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header {
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .nav-bar-inner > nav {
    position: static;
  }

  .brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    height: 28px;
    max-width: 120px;
    object-fit: contain;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .btn-nav-cta {
    padding: 6px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    gap: 4px;
    white-space: nowrap;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .btn-nav-cta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 4px;
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--sage-900);
    cursor: pointer;
  }

  .top-utility-bar {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
    display: none;
    gap: 10px;
    align-items: stretch;
    z-index: 1000;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-item.has-dropdown {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    min-width: auto;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gold-500);
    border-radius: 0;
    padding: 6px 0 6px 14px;
    margin-top: 4px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown.open .dropdown-panel {
    display: flex;
  }

  .dropdown-item {
    padding: 8px 0;
  }

  .hero {
    padding: 32px 0 44px 0;
  }

  .hero-executive-kicker {
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 6.5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 18px;
    word-break: break-word;
  }

  .hero-subhead {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-text-link {
    text-align: center;
    margin-top: 4px;
  }

  .executive-dispatch-card {
    padding: 20px 18px;
    max-width: 100%;
  }

  .exec-lead-seal {
    min-width: 78px;
    height: 48px;
    padding: 4px 8px;
  }

  .exec-lead-name {
    font-size: 1.05rem;
  }

  .exec-lead-title {
    font-size: 0.76rem;
  }

  .exec-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metrics-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0;
  }

  .metric-column:nth-child(2)::after {
    display: none;
  }

  .metric-num {
    font-size: 2.2rem;
  }

  .explorer-tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .tab-trigger {
    padding: 12px 10px;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
  }

  .schematic-display {
    padding: 16px 12px;
  }

  .explorer-spec-card {
    padding: 24px 18px;
  }

  .advantage-matrix-card,
  .compliance-registry-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .matrix-table,
  .registry-table {
    min-width: 580px;
  }

  .competencies-editorial-grid, .industries-deck, .facility-roster-grid {
    grid-template-columns: 1fr;
  }

  .folio-content-split, .form-grid-2col {
    grid-template-columns: 1fr;
  }

  .folio-sheet {
    padding: 24px 18px;
  }

  .folio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .folio-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .folio-header-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .dispatch-contact-card,
  .dispatch-form-card {
    padding: 24px 18px;
  }

  .field-authority-banner {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .field-authority-media {
    min-height: 220px;
    height: 220px;
  }

  .field-authority-content {
    padding: 24px 20px 28px;
  }

  .field-authority-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .industry-card-media {
    height: 180px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .overview-commitment-card {
    padding: 30px 24px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .trust-client-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand-logo-img {
    height: 30px;
    max-width: 120px;
  }

  .btn-nav-cta {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .btn-nav-cta .nav-cta-text {
    display: inline-block;
  }

  .trust-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .trust-client-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facility-scope {
    white-space: normal;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-executive-kicker {
    font-size: 0.72rem;
    gap: 8px;
  }

  .exec-kicker-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .exec-headline-row {
    gap: 8px;
  }

  .exec-card-headline {
    font-size: 1.05rem;
  }

  .exec-collapse-trigger {
    padding: 8px 10px;
    gap: 8px;
  }

  .exec-collapse-label {
    font-size: 0.72rem;
  }

  .exec-leader-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .exec-lead-name {
    font-size: 1rem;
  }

  .exec-card-body {
    padding: 16px;
  }

  .exec-card-topbar {
    padding: 14px 16px;
  }

  .exec-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .exec-spec-box {
    padding: 10px 10px;
  }

  .spec-label {
    font-size: 0.58rem;
  }

  .spec-val {
    font-size: 0.95rem;
  }

  .spec-desc {
    font-size: 0.65rem;
  }

  .exec-card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .exec-card-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
  }
}

@media (max-width: 380px) {
  .brand-logo-img {
    height: 26px;
    max-width: 105px;
  }

  .btn-nav-cta {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .trust-client-grid {
    grid-template-columns: 1fr;
  }

  .metrics-ribbon-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Transformed Login Button State (Activated via Right-Click / Tap-Hold)
   ========================================================================== */
.btn-nav-cta.is-login-mode {
  background: #0B140D !important;
  color: var(--gold-300) !important;
  border: 1.5px solid var(--gold-500) !important;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.35) !important;
  animation: loginPulse 0.4s ease;
  cursor: pointer;
}

.btn-nav-cta.is-login-mode:hover {
  background: #142217 !important;
  border-color: var(--gold-400) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.5) !important;
}

@keyframes loginPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 0 rgba(197, 160, 89, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(197, 160, 89, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 14px rgba(197, 160, 89, 0.35); }
}

/* ==========================================================================
   Executive Administrator Portal Modal
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 14, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.admin-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  width: 100%;
  max-width: 580px;
  background: #0F1A12;
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(197, 160, 89, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease, height 0.25s ease;
}

/* Sized up to screen size for larger screens; otherwise the same */
@media (min-width: 1024px) {
  .admin-modal-card {
    width: 94vw;
    max-width: 94vw;
    height: 90vh;
    max-height: 92vh;
  }

  .admin-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #adminDashboardView {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #adminAuthView {
    max-width: 520px;
    width: 100%;
    margin: auto;
    padding: 36px 40px;
    background: #09100B;
    border: 1.5px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  }

  .dash-table-wrap {
    max-height: 520px;
  }
}

.admin-modal-overlay.open .admin-modal-card {
  transform: translateY(0) scale(1);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #0B130E;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.admin-header-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.admin-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
}

.admin-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}

.admin-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  color: #E6EAE7;
}

.admin-explainer {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
}

.admin-field-group {
  margin-bottom: 18px;
}

.admin-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  margin-bottom: 6px;
}

.admin-input {
  width: 100%;
  padding: 12px 14px;
  background: #080D0A;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .admin-input {
  padding-right: 42px;
}

.pwd-toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwd-toggle-btn:hover {
  color: var(--gold-400);
}

.pwd-hint {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
}

.admin-alert {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.admin-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.admin-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86EFAC;
}

.btn-admin-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-weight: 800;
  margin-top: 6px;
}

/* Dashboard View Inside Modal */
.dashboard-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #080D0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.dash-session-timer {
  color: var(--gold-300);
  font-weight: 600;
}

.dashboard-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
  overflow-x: auto;
}

.dash-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.dash-tab:hover {
  color: #FFFFFF;
}

.dash-tab.active {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

.dash-tab-pane {
  display: none;
}

.dash-tab-pane.active {
  display: block;
}

.dash-card {
  background: #080D0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 16px;
  margin-bottom: 14px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-card-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.badge-status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #86EFAC;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
}

.dash-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-stat-box {
  background: #080D0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 14px;
  text-align: center;
}

.dash-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-table-controls h4 {
  margin: 0;
  font-size: 0.95rem;
}

.dash-btn-group {
  display: flex;
  gap: 8px;
}

.dash-table-wrap {
  overflow-x: auto;
  max-height: 320px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.dash-table th, .dash-table td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.dash-table th {
  background: #060B08;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-empty-state {
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.dash-audit-list {
  list-style: none;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-audit-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sub-Tabs Navigation within Dashboard Panes */
.dash-subtabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  overflow-x: auto;
}

.dash-subtab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-subtab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.dash-subtab.active {
  color: #030805;
  background: var(--gold-400);
  font-weight: 800;
}

.dash-subtab-pane {
  display: none;
}

.dash-subtab-pane.active {
  display: block;
}

/* Production Outage Wall Chart Inside Portal */
.dash-wallchart-table th, .dash-wallchart-table td {
  padding: 8px 8px;
  font-size: 0.75rem;
  vertical-align: middle;
}

.milestone-btn {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.1s, opacity 0.2s;
  user-select: none;
}
.milestone-btn:hover {
  transform: scale(1.05);
}
.milestone-btn.cleared {
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
  border-color: rgba(34, 197, 94, 0.4);
}
.milestone-btn.progress {
  background: rgba(197, 160, 89, 0.25);
  color: var(--gold-300);
  border-color: rgba(197, 160, 89, 0.5);
}
.milestone-btn.discovery {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.6);
  animation: pulse-border 2s infinite;
}
.milestone-btn.pending {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Mail Server & Routing Console Styles
   ========================================================================== */
.dash-mail-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #080E0A;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.dash-mail-status-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mail-status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.mail-status-title svg {
  color: var(--gold-400);
}

.mail-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-dot {
  color: #22C55E;
  font-size: 0.65rem;
}

.btn-webmail-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.25);
}

.btn-webmail-launch:hover {
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.45);
}

/* Catchall & Routing Selector Cards */
.routing-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.routing-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #080D0A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.routing-mode-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--gold-500);
}

.routing-mode-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(197, 160, 89, 0.03);
}

.routing-mode-card.selected {
  border-color: var(--gold-500);
  background: rgba(197, 160, 89, 0.08);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.mode-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* Sub-Modals inside Admin Portal */
.dash-submodal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 14, 10, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.dash-submodal-card {
  width: 100%;
  max-width: 460px;
  background: #0F1A12;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 22px;
}

.dash-submodal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.dash-submodal-close:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .dash-mail-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .routing-mode-selector {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MFA / 2FA & IP Login Audit Log Styles
   ========================================================================== */
.mfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mfa-badge-enabled {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86EFAC;
}

.mfa-badge-disabled {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.audit-badge-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86EFAC;
}

.audit-badge-failure {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.audit-badge-trust {
  background: rgba(197, 160, 89, 0.18);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--gold-300);
}

/* ==========================================================================
   Security Honeypots & Anti-Bot Traps (Completely Invisible to Humans)
   ========================================================================== */
.form-security-gate,
.scraper-honeypot-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

.protected-email-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.protected-email-link:hover {
  color: var(--gold-400);
}

/* ==========================================================================
   ANTI-BOOTSTRAP BESPOKE DESIGN SYSTEM & MULTI-PAGE ENHANCEMENTS
   High-Precision Mechanical Integrity Leadership Aesthetic
   ========================================================================== */

/* Active Navigation Indicators */
.nav-link.active {
  color: var(--sage-950);
  font-weight: 800;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Page Hero Architecture (For Subpages) */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0A130E 0%, #121F15 50%, #0D1610 100%);
  color: #FFFFFF;
  padding: 64px 0 54px;
  border-bottom: 2px solid rgba(197, 160, 89, 0.35);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(197, 160, 89, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 160, 89, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.page-breadcrumb a:hover {
  color: #FFFFFF;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.page-hero-lead {
  font-size: 1.125rem;
  color: rgba(230, 240, 233, 0.9);
  max-width: 780px;
  line-height: 1.6;
}

/* Precision Technical Stamp / Badges (Replacing Generic Bootstrap Pills) */
.tech-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.05);
  white-space: nowrap;
}

.tech-stamp.gold {
  background: var(--gold-gradient);
  color: #111D14;
  border: 1px solid var(--gold-400);
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
}

.tech-stamp.green {
  background: rgba(46, 76, 54, 0.2);
  border-color: rgba(77, 115, 87, 0.4);
  color: var(--sage-200);
}

/* Blueprint Registration Crosshairs Corners */
.has-crosshairs {
  position: relative;
}

.has-crosshairs::before,
.has-crosshairs::after {
  content: "+";
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  color: var(--gold-500);
  opacity: 0.6;
  pointer-events: none;
}

.has-crosshairs::before {
  top: 8px;
  left: 8px;
}

.has-crosshairs::after {
  bottom: 8px;
  right: 8px;
}

/* ==========================================================================
   HOMEPAGE INTERACTIVE HUD: MECHANICAL INTEGRITY CONSOLE
   Visually Entertaining, Tactical, Ultra-Professional Technical Console
   ========================================================================== */
.hud-console {
  position: relative;
  background: #08100A;
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(19, 33, 22, 0.8);
  overflow: hidden;
  margin: 44px 0 20px;
}

.hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #0C1710;
  border-bottom: 1.5px solid rgba(197, 160, 89, 0.25);
  padding: 12px 20px;
}

.hud-title-zone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: pulseRadar 2s infinite ease-in-out;
}

@keyframes pulseRadar {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 16px #22C55E; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hud-title-text {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.hud-coordinate-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-400);
  background: rgba(197, 160, 89, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

/* HUD Navigation Selector Tabs */
.hud-nav-selector {
  display: flex;
  background: #060B07;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  overflow-x: auto;
}

.hud-nav-btn {
  flex: 1;
  min-width: 180px;
  background: none;
  border: none;
  border-right: 1px solid rgba(197, 160, 89, 0.15);
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.hud-nav-btn:last-child {
  border-right: none;
}

.hud-nav-btn:hover {
  background: rgba(197, 160, 89, 0.05);
}

.hud-nav-btn.active {
  background: rgba(197, 160, 89, 0.12);
}

.hud-nav-btn.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.hud-btn-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

.hud-btn-label {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

/* HUD Interactive Body */
.hud-content-panel {
  display: none;
  padding: 24px;
}

.hud-content-panel.active {
  display: block;
}

.hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Left: Technical Schematic Viewfinder */
.hud-viewfinder {
  position: relative;
  background: #0B160E;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hud-viewfinder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(62, 92, 70, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62, 92, 70, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hud-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.7), transparent);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.8);
  animation: hudScan 4s infinite linear;
  pointer-events: none;
}

@keyframes hudScan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hud-viewfinder-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-target-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(46, 76, 54, 0.5);
  border: 1px solid var(--sage-500);
  padding: 3px 8px;
  border-radius: 3px;
}

.hud-interactive-targets {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.hud-target-node {
  background: rgba(14, 25, 17, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hud-target-node:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.hud-target-node.active {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-400);
  border-left: 3px solid #F59E0B;
  box-shadow: 0 0 14px rgba(197, 160, 89, 0.25);
}

.hud-target-node:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Dynamic Live Readout Card inside Viewfinder */
.hud-readout-card {
  position: relative;
  z-index: 2;
  background: rgba(8, 17, 11, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-top: 14px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hud-readout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hud-readout-pill {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #22C55E;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-readout-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
}

.hud-readout-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(197, 160, 89, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.hud-readout-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hud-readout-body {
  font-size: 0.78rem;
  color: rgba(225, 235, 230, 0.85);
  line-height: 1.45;
  margin-bottom: 8px;
}

.hud-readout-gate {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  background: rgba(197, 160, 89, 0.08);
  border-left: 2px solid var(--gold-400);
  padding: 6px 8px;
  border-radius: 2px;
}

.hud-gate-label {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gold-400);
  white-space: nowrap;
}

.hud-gate-text {
  color: #FFFFFF;
}

.hud-node-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.hud-node-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-300);
}

.hud-viewfinder-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Right: Technical Telemetry & Action Block */
.hud-telemetry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0B140E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.hud-discipline-head {
  margin-bottom: 14px;
}

.hud-discipline-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hud-discipline-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hud-discipline-desc {
  font-size: 0.88rem;
  color: rgba(230, 240, 234, 0.85);
  line-height: 1.55;
  margin-bottom: 18px;
}

.hud-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.78rem;
}

.hud-specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-specs-table td {
  padding: 8px 4px;
}

.hud-spec-key {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-weight: 600;
  width: 38%;
}

.hud-spec-val {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 600;
}

.hud-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive HUD */
@media (max-width: 900px) {
  .hud-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADVANCED SAGE MECHANICAL INTEGRITY COMMAND CONSOLE (SAGE-MICC v2.4)
   Sage Group LLC's Proprietary Mechanical Integrity & Field QA/QC Platform
   ========================================================================== */

/* Topbar Status & Controls */
.hud-topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #22C55E;
}

.hud-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

/* Master Navigation Tabs */
.micc-master-nav {
  display: flex;
  background: #060B07;
  border-bottom: 2px solid rgba(197, 160, 89, 0.25);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.35) #060B08;
}

.micc-master-tab {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  border-right: 1px solid rgba(197, 160, 89, 0.15);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.micc-master-tab:last-child {
  border-right: none;
}

.micc-master-tab:hover {
  background: rgba(197, 160, 89, 0.08);
}

.micc-master-tab.active {
  background: rgba(197, 160, 89, 0.15);
}

.micc-master-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.8);
}

.micc-tab-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.micc-master-tab:hover .micc-tab-name,
.micc-master-tab.active .micc-tab-name {
  color: var(--gold-300);
}

/* Mode Panels */
.micc-mode-panel {
  display: none;
  padding: 24px;
  animation: fadeInPanel 0.25s ease-out;
}

.micc-mode-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.micc-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  flex-wrap: wrap;
}

.micc-panel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 6px 0 4px;
}

.micc-panel-desc {
  font-size: 0.82rem;
  color: rgba(225, 235, 230, 0.85);
  max-width: 780px;
  line-height: 1.45;
  margin: 0;
}

.micc-live-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(34, 197, 94, 0.25);
  white-space: nowrap;
}

/* Circuit Quick Selector Chips */
.micc-circuit-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: rgba(14, 25, 17, 0.6);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.micc-selector-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

.micc-circuit-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.micc-circuit-chip {
  background: rgba(8, 16, 10, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.micc-circuit-chip:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

.micc-circuit-chip.active {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
}

.chip-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-400);
  background: rgba(197, 160, 89, 0.15);
  padding: 2px 5px;
  border-radius: 2px;
}

.chip-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Two-column layout */
.micc-grid-two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}

.micc-calculator-card,
.micc-telemetry-card {
  background: #0B160E;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.micc-card-header {
  margin-bottom: 14px;
}

.micc-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.micc-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 3px 0 4px;
}

.micc-card-sub {
  font-size: 0.76rem;
  color: rgba(225, 235, 230, 0.75);
  line-height: 1.4;
  margin: 0;
}

.micc-asset-spec-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.spec-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-300);
  background: rgba(197, 160, 89, 0.1);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Calculator Form Controls */
.micc-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(6, 12, 8, 0.8);
  padding: 14px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.micc-input-row {
  display: flex;
  gap: 12px;
}

.micc-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.micc-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.micc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.micc-input {
  width: 100%;
  background: #08120A;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-xs);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 30px 6px 10px;
  transition: all 0.2s ease;
}

.micc-input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.micc-input.highlight {
  border-color: #F59E0B;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.08);
}

.micc-unit {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.micc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.micc-slider-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
}

.micc-range {
  width: 100%;
  accent-color: var(--gold-500);
  cursor: pointer;
  margin-top: 4px;
}

/* Metal Loss & Degradation Gauge Bar */
.micc-degradation-container {
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 12px;
  margin-bottom: 16px;
}

.micc-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.gauge-current-val {
  color: #FBBF24;
  font-weight: 800;
}

.micc-gauge-track {
  position: relative;
  height: 12px;
  background: #112216;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.micc-gauge-danger-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
  opacity: 0.35;
}

.micc-gauge-safe-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 70%, #22C55E 100%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.micc-gauge-needle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 4px;
  background: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
  transform: translateX(-50%);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.micc-gauge-subtext {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

/* Metrics Tile Grid */
.micc-metrics-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.micc-metric-tile {
  background: rgba(14, 25, 17, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.micc-metric-tile.highlight-gold {
  border-color: var(--gold-400);
  background: rgba(197, 160, 89, 0.12);
}

.tile-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.tile-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.micc-metric-tile.highlight-gold .tile-val {
  color: var(--gold-300);
}

.tile-unit {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.tile-badge {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-top: 2px;
}

.tile-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tile-badge.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tile-badge.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.micc-calc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CML Table */
.micc-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  background: rgba(6, 12, 8, 0.85);
  margin-bottom: 12px;
}

.micc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  text-align: left;
}

.micc-table th {
  background: rgba(14, 25, 17, 0.95);
  color: var(--gold-400);
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  white-space: nowrap;
}

.micc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
}

.cml-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.cml-row:hover {
  background: rgba(197, 160, 89, 0.1);
}

.cml-row.active {
  background: rgba(197, 160, 89, 0.2);
  border-left: 3px solid var(--gold-400);
}

.cml-id {
  font-weight: 800;
  color: var(--gold-400);
}

.status-pill {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
  white-space: nowrap;
}

.status-pill.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.micc-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 6px;
}

.compliance-quote {
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   TURNAROUND QA/QC SURVEILLANCE STYLES (MODE 02)
   ========================================================================== */
.turnaround-outage-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

.turnaround-outage-tag .tag-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
}

.turnaround-outage-tag .tag-val {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
}

.turnaround-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: rgba(8, 16, 11, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strip-key {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.strip-val {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
}

.strip-val.highlight-gold {
  color: var(--gold-300);
}

.strip-val.danger {
  color: #F87171;
}

/* Turnaround Sub-Navigation */
.turnaround-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 10px;
  overflow-x: auto;
}

.turnaround-subnav-btn {
  background: rgba(14, 25, 17, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.turnaround-subnav-btn:hover {
  background: rgba(197, 160, 89, 0.15);
  color: #FFFFFF;
}

.turnaround-subnav-btn.active {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--gold-400);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.25);
}

.turnaround-subpanel {
  display: none;
  animation: fadeInPanel 0.2s ease-out;
}

.turnaround-subpanel.active {
  display: block;
}

.turnaround-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.turnaround-card {
  background: #0B160E;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.turnaround-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.turnaround-card.hold-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(18, 22, 14, 0.95);
}

.t-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.t-card-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-400);
}

.t-card-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.3;
}

.t-card-sub {
  font-size: 0.78rem;
  color: rgba(225, 235, 230, 0.85);
  line-height: 1.4;
  margin-bottom: 10px;
}

.t-card-specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(6, 12, 8, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.t-card-specs strong {
  color: var(--gold-300);
}

.t-pass-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.pass-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: center;
}

.pass-step.done {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ADE80;
}

.pass-step.pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.pass-step.hold {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.step-num {
  font-weight: 800;
}

.step-lbl {
  font-size: 0.6rem;
  opacity: 0.85;
}

.t-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.badge-stamp {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.badge-stamp.gold {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-400);
  color: var(--gold-300);
}

/* ==========================================================================
   EXECUTIVE COMPLIANCE DOSSIER MODAL
   ========================================================================== */
.micc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.micc-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.micc-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #08120B;
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 160, 89, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.micc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0B170F;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.micc-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 4px 0 0;
}

.micc-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 0 4px;
}

.micc-modal-close:hover {
  color: #FFFFFF;
}

.micc-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.dossier-meta-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  background: rgba(14, 25, 17, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.dossier-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-k {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-400);
}

.dossier-v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
}

.dossier-preview-box {
  background: #040805;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 14px;
}

.dossier-section-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.dossier-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #A7F3D0;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.micc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  background: #0B170F;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .micc-grid-two-col {
    grid-template-columns: 1fr;
  }
  .micc-master-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }
  .micc-master-tab {
    min-width: 0;
    border-right: 1px solid rgba(197, 160, 89, 0.15);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding: 11px 8px;
  }
}

@media (max-width: 580px) {
  .micc-master-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   DIGITAL ISOMETRICS & DRAWINGS VIEWPORT (MODE 02)
   ========================================================================== */
.drawing-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(8, 16, 11, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.drawing-toolbar-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.drawing-toolbar-row-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.drawing-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawing-layer-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

.micc-layer-toggle {
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.micc-layer-toggle:hover {
  background: rgba(197, 160, 89, 0.15);
  color: #FFFFFF;
}

.micc-layer-toggle.active {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-400);
  color: #FFFFFF;
}

.layer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.micc-layer-toggle.active .layer-dot {
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
}

.drawing-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawing-coord-readout {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-300);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.15);
}

.drawing-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-item.status {
  justify-content: center;
  align-items: flex-start;
}

.meta-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #FFFFFF;
  font-weight: 600;
}

.meta-val.gold {
  color: var(--gold-300);
  font-weight: 800;
}

/* CAD Blueprint Canvas Viewport */
.micc-blueprint-viewport {
  background: #030805;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
  height: 100%;
}

.blueprint-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(12, 23, 16, 0.95);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  gap: 12px;
}

.blueprint-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.blueprint-title-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.08em;
}

.blueprint-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: 0 0 8px #3B82F6;
}

.blueprint-compass {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
}

.blueprint-svg-container {
  flex: 1 1 auto;
  min-height: 580px;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #060A0E;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: crosshair;
}

.blueprint-svg-container svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.blueprint-viewport-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(8, 16, 11, 0.95);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 8px;
}

.blueprint-scale-tag {
  font-family: var(--font-mono);
  color: var(--gold-400);
  font-weight: 700;
}

/* SVG Blueprint Elements Styling */
.svg-pipe-run {
  stroke: #34D399;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5));
}

.svg-flange-ring {
  stroke: #FBBF24;
  stroke-width: 3;
  fill: rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.svg-flange-ring:hover {
  stroke: #FFFFFF;
  fill: rgba(245, 158, 11, 0.45);
}

.svg-cml-target {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.svg-cml-target:hover circle {
  stroke: #FFFFFF;
  filter: drop-shadow(0 0 6px #22C55E);
}

.svg-dim-group {
  cursor: pointer;
}

.svg-dim-group:hover line {
  stroke: #FBBF24;
  stroke-width: 2;
}

.svg-dim-group:hover text {
  fill: #FFFFFF;
  font-weight: 800;
}

.svg-weld-node {
  cursor: pointer;
}

.svg-weld-node:hover circle {
  fill: #38BDF8;
  stroke: #FFFFFF;
}

/* Field Dimension Verification Widget */
.dim-verification-box {
  background: rgba(6, 12, 8, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 14px;
}

.dim-target-indicator {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dim-target-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

.dim-target-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #FFFFFF;
}

.dim-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dim-spec-tile {
  background: rgba(14, 25, 17, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dim-spec-lbl {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-weight: 700;
}

.dim-spec-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.dim-spec-val.gold {
  color: var(--gold-300);
}

.dim-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.dim-verif-badge {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  animation: fadeInPanel 0.2s ease-out;
}

.dim-verif-badge.success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ADE80;
}

.dim-verif-badge.danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #F87171;
}

/* ==========================================================================
   FIELD SIGNATURES & WORK TRACKER STYLES (MODE 03)
   ========================================================================== */
.work-gate-tracker-container {
  background: rgba(10, 20, 13, 0.85);
  border: 1.5px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.work-gate-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.gate-header-kicker {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

.gate-header-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 3px 0 0;
}

.gate-progress-status {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #4ADE80;
}

.gate-progress-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.2);
  margin-bottom: 16px;
}

.gate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #22C55E, #34D399);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.gate-card {
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.gate-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.gate-card.cleared {
  border-left: 3px solid #22C55E;
  background: rgba(34, 197, 94, 0.06);
}

.gate-card.in-progress {
  border-left: 3px solid #F59E0B;
  background: rgba(245, 158, 11, 0.06);
}

.gate-card.pending {
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.gate-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold-400);
}

.gate-card.cleared .gate-status-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #4ADE80;
}

.gate-card.in-progress .gate-status-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #FBBF24;
}

.gate-card.pending .gate-status-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.gate-card-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.gate-card-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  flex: 1;
}

.gate-card-stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(197, 160, 89, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 4px;
}

/* HTML5 Signature Pad Container */
.field-sig-container {
  background: rgba(6, 12, 8, 0.9);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  padding: 12px;
  margin-top: 14px;
}

.sig-pad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sig-pad-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

.sig-pad-tools {
  display: flex;
  gap: 6px;
}

.sig-canvas-wrapper {
  position: relative;
  background: #020603;
  border: 1px dashed rgba(197, 160, 89, 0.4);
  border-radius: 3px;
  overflow: hidden;
  touch-action: none;
}

.field-sig-canvas {
  display: block;
  width: 100%;
  height: 170px;
  cursor: crosshair;
  background: transparent;
}

.sig-guide-line {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 40px;
  height: 1px;
  border-bottom: 1px dashed rgba(197, 160, 89, 0.3);
  pointer-events: none;
}

.sig-watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(197, 160, 89, 0.35);
  letter-spacing: 0.1em;
  pointer-events: none;
  text-transform: uppercase;
}

/* Certified Cryptographic Seal Card */
.crypto-seal-card {
  background: rgba(6, 14, 9, 0.95);
  border: 1.5px solid var(--gold-400);
  border-radius: var(--radius-xs);
  padding: 16px;
  box-shadow: 0 0 25px rgba(197, 160, 89, 0.15), inset 0 0 20px rgba(12, 23, 16, 0.8);
}

.seal-badge-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  margin-bottom: 14px;
}

.seal-crest-svg {
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.4));
  animation: pulseSeal 3s infinite ease-in-out;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.4)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.6)); }
}

.seal-meta-zone {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seal-status-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #22C55E;
}

.seal-headline {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.seal-security-hash {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-300);
  font-weight: 700;
}

.seal-timestamp {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.seal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.seal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seal-detail-item .k {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold-400);
}

.seal-detail-item .v {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   HUD AUTH & RBAC PROFILE BADGE STYLES
   ========================================================================== */
.hud-auth-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-auth-badge:hover {
  background: rgba(197, 160, 89, 0.22);
  border-color: var(--gold-400);
}

.hud-auth-badge.guest {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
}

.hud-auth-badge.guest:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.5);
}

.hud-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #060B07;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.5);
}

.hud-user-avatar.guest {
  background: rgba(148, 163, 184, 0.25);
  color: #E2E8F0;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hud-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hud-user-name {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
}

.hud-user-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-300);
}

/* CAD Engineering Action Tools */
.drawing-cad-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cad-tool-btn {
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.cad-tool-btn:hover {
  background: rgba(197, 160, 89, 0.15);
  color: #FFFFFF;
  border-color: var(--gold-400);
}

.cad-tool-btn.active {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--gold-400);
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.35);
}

.drawing-zoom-group {
  display: inline-flex;
  align-items: center;
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 1px 4px;
}

.zoom-level-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #FFFFFF;
  padding: 0 6px;
  min-width: 38px;
  text-align: center;
}

.btn-icon {
  padding: 2px 6px;
  font-size: 0.8rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--gold-400);
  cursor: pointer;
}

.btn-icon:hover {
  color: #FFFFFF;
}

/* CAD Action Banners (Calibration & Measurement) */
.cad-action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.74rem;
  color: #FFFFFF;
  animation: fadeInPanel 0.2s ease-out;
}

.cad-action-banner.measure {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3B82F6;
}

.banner-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(197, 160, 89, 0.25);
  border: 1px solid var(--gold-400);
  color: var(--gold-300);
  padding: 2px 6px;
  border-radius: 2px;
  margin-right: 6px;
}

.banner-badge.measure {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3B82F6;
  color: #93C5FD;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* RBAC Profile Modal Cards */
.rbac-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.rbac-profile-card {
  background: rgba(10, 20, 13, 0.9);
  border: 1.5px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.rbac-profile-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
}

.rbac-profile-card.active {
  border-color: var(--gold-400);
  background: rgba(197, 160, 89, 0.14);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
}

.rbac-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rbac-role-pill {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
}

.rbac-role-pill.gold {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-300);
  border: 1px solid var(--gold-400);
}

.rbac-role-pill.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid #3B82F6;
}

.rbac-role-pill.emerald {
  background: rgba(34, 197, 94, 0.2);
  color: #86EFAC;
  border: 1px solid #22C55E;
}

.rbac-perm-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 2px;
}

.rbac-perm-badge.full {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

.rbac-perm-badge.restricted {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.rbac-perm-badge.owner {
  background: rgba(168, 85, 247, 0.2);
  color: #C084FC;
}

.rbac-user-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.rbac-certs-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

.rbac-scope-list {
  font-size: 0.68rem;
  color: rgba(225, 235, 230, 0.8);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  flex: 1;
}

.locked-perm {
  color: #F87171 !important;
  font-weight: 700;
}

.rbac-custom-form-box {
  background: rgba(6, 12, 8, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 14px;
  margin-top: 10px;
}

.rbac-session-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 8, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 12px;
  gap: 10px;
}

.session-status-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-right: 6px;
}

.session-status-val {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #FFFFFF;
  font-weight: 700;
}

.rbac-credentials-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(197, 160, 89, 0.9);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 2px 6px;
  border-radius: 2px;
  margin: 2px 0 4px 0;
}

.rbac-reg-disabled-box {
  background: rgba(20, 10, 10, 0.7);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xs);
  padding: 12px;
}

.rbac-notice-locked {
  background: rgba(239, 68, 68, 0.12);
  border-left: 3px solid #EF4444;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #FCA5A5;
  line-height: 1.4;
}

/* Immutable Audit Trail Styles */
.audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(10, 20, 13, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.audit-stats-readout {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* RBAC Locked Elements State */
.rbac-locked-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
}

.btn:disabled.rbac-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* ==========================================================================
   BESPOKE ARCHITECTURAL CARD SYSTEM (Replacing Generic Cards)
   ========================================================================== */
.arch-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.arch-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage-700);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background 0.2s;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-lg);
}

.arch-card:hover::before {
  background: var(--gold-gradient);
}

.arch-card-code {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-700);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.arch-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--sage-950);
  line-height: 1.3;
  margin-bottom: 10px;
}

.arch-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.arch-card-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--sage-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  transition: all 0.2s ease;
}

.arch-card:hover .arch-card-link {
  color: var(--gold-700);
  transform: translateX(4px);
}

/* ==========================================================================
   THE SENIOR DIFFERENCE EXECUTIVE SPOTLIGHT BANNER
   ========================================================================== */
.executive-spotlight-card {
  background: linear-gradient(135deg, #101E13 0%, #192D1E 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-md);
  padding: 38px 40px;
  color: #FFFFFF;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.executive-spotlight-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.spotlight-kicker {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.spotlight-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.spotlight-body {
  font-size: 0.95rem;
  color: rgba(230, 240, 233, 0.85);
  line-height: 1.65;
  margin-bottom: 22px;
}

.spotlight-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(8, 16, 10, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.spotlight-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.spotlight-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-val-sage {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  color: #86EFAC;
}

.stat-val-broker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: #FCA5A5;
}

/* ==========================================================================
   OFFICIAL CAPABILITY FOLIO & VENDOR QUALIFICATION DOCUMENT
   Architecture: High-Precision Architectural Submittal Folio
   ========================================================================== */

.capability-folio-wrap {
  max-width: 1040px;
  margin: 0 auto 60px;
  background: #FFFFFF;
  border: 1px solid rgba(36, 59, 42, 0.18);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px -12px rgba(10, 19, 13, 0.12), 0 4px 12px rgba(10, 19, 13, 0.04);
  padding: 48px 52px;
  position: relative;
}

/* CAD Corner Registration Crosshairs */
.capability-folio-wrap::before,
.capability-folio-wrap::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-600);
  opacity: 0.8;
  line-height: 1;
}
.capability-folio-wrap::before { top: 10px; right: 14px; }
.capability-folio-wrap::after { bottom: 10px; left: 14px; }

/* Folio Header */
.folio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--sage-100);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.folio-brand-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.folio-brand-deck img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.folio-tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sage-700);
  text-transform: uppercase;
}

.folio-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Meta Data Strip */
.folio-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-bottom: 28px;
}

.folio-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folio-meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.folio-meta-value {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Industry Governance & Compliance Strip */
.folio-credentials-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .folio-credentials-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.folio-cred-badge {
  background: var(--sage-25);
  border: 1px solid rgba(46, 76, 54, 0.16);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folio-cred-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folio-cred-name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sage-900);
}

/* Folio Content Split */
.folio-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .folio-content-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.folio-block {
  margin-bottom: 28px;
}

.folio-block:last-child {
  margin-bottom: 0;
}

.folio-block-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sage-900);
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--sage-100);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folio-block p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.folio-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.folio-check-list li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.folio-check-list li svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Full-Width Sections Inside Folio */
.folio-full-width {
  padding-top: 24px;
  border-top: 1.5px solid var(--sage-100);
  margin-top: 10px;
}

.folio-section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.folio-section-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Facility Grid in Folio */
.folio-facility-grid,
.folio-client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .folio-facility-grid,
  .folio-client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .folio-facility-grid,
  .folio-client-grid {
    grid-template-columns: 1fr;
  }
}

.folio-facility-card,
.folio-client-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 96px;
}

.folio-facility-card:hover,
.folio-client-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-subtle);
  box-shadow: 0 4px 12px rgba(10, 19, 13, 0.05);
}

.folio-facility-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--sage-800);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.folio-facility-scope,
.folio-client-scope {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Mobilization Box */
.folio-mobilization-box {
  background: var(--sage-25);
  border: 1px solid rgba(46, 76, 54, 0.18);
  border-left: 4px solid var(--sage-600);
  border-radius: var(--radius-xs);
  padding: 22px 24px;
}

.folio-mobilization-box h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sage-900);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.folio-contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 0.8125rem;
}

@media (max-width: 600px) {
  .folio-contact-meta {
    grid-template-columns: 1fr;
  }
}

.folio-contact-meta p {
  margin: 0;
  color: var(--text-secondary);
}

.folio-contact-meta strong {
  color: var(--sage-950);
}

/* Print Stylesheet Overrides */
@media print {
  @page {
    margin: 1.2cm;
    size: letter portrait;
  }

  body {
    background: #FFFFFF !important;
    color: #111111 !important;
    font-size: 9pt !important;
  }

  .header-wrapper,
  .site-footer,
  .folio-actions,
  .page-hero,
  .blueprint-grid-overlay::before {
    display: none !important;
  }

  .capability-folio-wrap {
    border: 1px solid #CCCCCC !important;
    border-top: 3pt solid #A47E32 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .capability-folio-wrap::before,
  .capability-folio-wrap::after {
    display: none !important;
  }

  .folio-header {
    padding-bottom: 12pt !important;
    margin-bottom: 12pt !important;
    border-bottom: 1pt solid #CCCCCC !important;
  }

  .folio-meta-bar {
    background: #F8F9F8 !important;
    border: 1pt solid #E0E0E0 !important;
    padding: 8pt 10pt !important;
    margin-bottom: 14pt !important;
  }

  .folio-credentials-bar {
    margin-bottom: 14pt !important;
  }

  .folio-cred-badge {
    background: #F8F9F8 !important;
    border: 1pt solid #E0E0E0 !important;
    border-left: 2.5pt solid #A47E32 !important;
    padding: 6pt 8pt !important;
  }

  .folio-content-split {
    gap: 20pt !important;
    margin-bottom: 14pt !important;
  }

  .folio-block {
    margin-bottom: 12pt !important;
    break-inside: avoid;
  }

  .folio-client-grid {
    gap: 8pt !important;
    break-inside: avoid;
  }

  .folio-client-card {
    background: #FFFFFF !important;
    border: 1pt solid #E0E0E0 !important;
    padding: 6pt !important;
    min-height: auto !important;
    break-inside: avoid;
  }

  .folio-client-img {
    height: 24pt !important;
    max-width: 100pt !important;
    filter: contrast(1.1) !important;
  }

  .folio-client-scope {
    font-size: 6.5pt !important;
    color: #444444 !important;
  }

  .folio-mobilization-box {
    background: #F8F9F8 !important;
    border: 1pt solid #E0E0E0 !important;
    border-left: 3pt solid #2E4C36 !important;
    padding: 10pt !important;
    break-inside: avoid;
  }
}

/* ==========================================================================
   TURNAROUND DIGITAL WALL CHART (Outage Command Board)
   Interactive Outage Matrix, Milestone Heat Map & ADHOC Discovery Tracker
   ========================================================================== */

.wallchart-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Outage KPI Ribbon */
.wallchart-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.wallchart-kpi-card {
  background: linear-gradient(135deg, rgba(14, 26, 18, 0.85) 0%, rgba(8, 14, 10, 0.95) 100%);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.wallchart-kpi-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.wallchart-kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-400);
}

.wallchart-kpi-card.alert-card::after {
  background: #EF4444;
}

.wallchart-kpi-card.success-card::after {
  background: #22C55E;
}

.wallchart-kpi-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.wallchart-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wallchart-kpi-value .gold-val {
  color: var(--gold-400);
}

.wallchart-kpi-value .alert-val {
  color: #F87171;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.wallchart-kpi-value .success-val {
  color: #4ADE80;
}

.wallchart-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.wallchart-mini-progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.wallchart-mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500) 0%, #22C55E 100%);
  width: 74%;
  transition: width 0.4s ease;
}

/* Wall Chart Filter & Discipline Toolbar */
.wallchart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 20, 14, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.wallchart-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wallchart-filter-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-400);
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 2px;
}

.wall-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wall-filter-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-400);
  color: #FFFFFF;
}

.wall-filter-btn.active {
  background: var(--gold-500);
  border-color: var(--gold-400);
  color: #060B07;
  font-weight: 800;
}

/* Discipline Separation Toggle */
.wall-disc-group {
  display: inline-flex;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.wall-disc-btn {
  background: rgba(15, 27, 20, 0.95);
  border: none;
  padding: 6px 14px;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wall-disc-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  color: #FFFFFF;
}

.wall-disc-btn.active {
  background: var(--gold-500);
  color: #060B07;
  font-weight: 800;
}

.wall-disc-btn.api-active {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
}

.wall-disc-btn.qa-active {
  background: #D97706;
  color: #FFFFFF;
  font-weight: 700;
}

/* Wall Chart Interactive Data Grid */
.wallchart-table-wrap {
  background: #08100B;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.35) #060B08;
}

.wallchart-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 0.74rem;
  color: #E2E8F0;
}

.wallchart-table th {
  background: #060B07;
  padding: 11px 9px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(197, 160, 89, 0.3);
  white-space: nowrap;
}

.wallchart-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.wallchart-table tr:hover td {
  background: rgba(197, 160, 89, 0.05);
}

.wallchart-table tr.row-hidden {
  display: none;
}

/* Column Discipline Branding */
.wallchart-th-api {
  background: rgba(2, 132, 199, 0.14) !important;
  border-top: 2px solid #0284C7 !important;
  color: #38BDF8 !important;
}

.wallchart-th-qa {
  background: rgba(217, 119, 6, 0.14) !important;
  border-top: 2px solid #D97706 !important;
  color: #FBBF24 !important;
}

.col-tag {
  display: inline-block;
  font-size: 0.58rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 800;
  margin-right: 4px;
  vertical-align: 1px;
}

.col-tag.api {
  background: rgba(2, 132, 199, 0.3);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.col-tag.qa {
  background: rgba(217, 119, 6, 0.3);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Discipline Mode Highlights */
.wallchart-table.disc-api-only .col-qa-cell {
  opacity: 0.3;
  filter: grayscale(0.7);
}

.wallchart-table.disc-api-only .col-api-cell {
  background: rgba(2, 132, 199, 0.08);
  outline: 1px solid rgba(56, 189, 248, 0.35);
}

.wallchart-table.disc-qa-only .col-api-cell {
  opacity: 0.3;
  filter: grayscale(0.7);
}

.wallchart-table.disc-qa-only .col-qa-cell {
  background: rgba(217, 119, 6, 0.08);
  outline: 1px solid rgba(251, 191, 36, 0.35);
}

/* Wall Chart Status Badges */
.wall-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wall-badge:hover {
  transform: scale(1.05);
}

.wall-badge.cleared {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ADE80;
}

.wall-badge.progress {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #FACC15;
}

.wall-badge.discovery {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #F87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
  animation: pulseDiscovery 2s infinite ease-in-out;
}

@keyframes pulseDiscovery {
  0%, 100% { border-color: rgba(239, 68, 68, 0.65); }
  50% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
}

.wall-badge.pending {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Modals for Wall Chart (ADHOC & Bolt-Up) */
.wall-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.wall-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.wall-modal-card {
  background: #0A140E;
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-sm);
  max-width: 560px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.wall-modal-overlay.open .wall-modal-card {
  transform: translateY(0);
}

.wall-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 10px;
}

.wall-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #FFFFFF;
  margin: 0;
}

.wall-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.wall-modal-close:hover {
  color: #FFFFFF;
}




/* ==========================================================================
   3D CAD WEB ENGINE & ADMIN CAD MODELER STUDIO
   ========================================================================== */
.cad-mode-switch {
  display: inline-flex;
  background: rgba(6, 12, 8, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-left: 10px;
}

.btn-cad-mode {
  background: none;
  border: none;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}

.btn-cad-mode:hover {
  color: #FFFFFF;
  background: rgba(197, 160, 89, 0.15);
}

.btn-cad-mode.active {
  background: var(--gold-500);
  color: #060B07;
  font-weight: 800;
}

.cad-3d-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(6, 14, 10, 0.95);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  gap: 10px;
  flex-wrap: wrap;
}

.cad-3d-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cad-ctrl-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cad-ctrl-lbl {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

.cad-3d-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cad-hint-text {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: rgba(226, 232, 240, 0.65);
}

.cad-pill-group {
  display: inline-flex;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.cad-view-btn, .cad-shade-btn {
  background: rgba(10, 20, 14, 0.9);
  border: none;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cad-view-btn:hover, .cad-shade-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  color: #FFFFFF;
}

.cad-view-btn.active, .cad-shade-btn.active {
  background: var(--gold-500);
  color: #060B07;
  font-weight: 800;
}

.blueprint-3d-container {
  width: 100%;
  flex: 1 1 auto;
  min-height: 580px;
  height: 100%;
  position: relative;
  background: #060A0E;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

#blueprint3dCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.cad-3d-overlay-hint {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(6, 12, 8, 0.88);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.25);
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   ADMIN 3D CAD MODELER STUDIO (#dashTabCadStudio)
   ========================================================================== */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(8, 16, 11, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.studio-title-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.studio-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

.studio-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 8px #00E5FF;
}

.studio-model-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.studio-select {
  background: #060B08;
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  outline: none;
}

.studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(6, 12, 8, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.studio-palette-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-palette {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-palette:hover {
  border-color: var(--gold-400);
  color: #FFFFFF;
  background: rgba(197, 160, 89, 0.15);
}

.btn-palette.cml {
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.btn-palette.cml:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FFFFFF;
}

.studio-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-pill-group {
  display: inline-flex;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.studio-pill {
  background: rgba(10, 20, 14, 0.85);
  border: none;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.studio-pill:hover {
  background: rgba(197, 160, 89, 0.2);
  color: #FFFFFF;
}

.studio-pill.active {
  background: var(--gold-500);
  color: #060B07;
  font-weight: 800;
}

.studio-workspace-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 10px;
  min-height: 520px;
}

@media (max-width: 1100px) {
  .studio-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.studio-outliner-panel, .studio-inspector-panel {
  background: rgba(8, 16, 11, 0.95);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
}

.studio-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(6, 12, 8, 0.95);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

.studio-tree-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #E2E8F0;
  transition: all 0.15s ease;
}

.studio-tree-item:hover {
  border-color: var(--gold-400);
  background: rgba(197, 160, 89, 0.12);
  color: #FFFFFF;
}

.studio-tree-item.active {
  border-color: var(--gold-400);
  background: rgba(197, 160, 89, 0.22);
  color: #FFFFFF;
  font-weight: 700;
}

.studio-tree-item .tree-item-del {
  color: #EF4444;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 4px;
}

.studio-canvas-panel {
  position: relative;
  background: #060A0E;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-height: 500px;
  height: 540px;
  cursor: crosshair;
}

#adminCadCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.studio-canvas-overlay {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(6, 12, 8, 0.88);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(197, 160, 89, 0.25);
  pointer-events: none;
  z-index: 5;
}

.studio-inspector-body {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.studio-type-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-300);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.studio-empty-inspector {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding: 30px 10px;
}

.inspector-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspector-field-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inspector-input {
  background: #060B08;
  border: 1px solid rgba(197, 160, 89, 0.25);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  outline: none;
}

.inspector-input:focus {
  border-color: var(--gold-400);
}

.inspector-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Floating 3D CML Telemetry HUD Card */
.cad-3d-cml-card {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 290px;
  background: rgba(8, 16, 12, 0.94);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 20;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease-out;
}

.cad-3d-cml-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.cad-3d-cml-card-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cad-3d-cml-card-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.cad-3d-cml-card-close:hover {
  color: #FFFFFF;
}

.cad-3d-cml-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.cad-3d-cml-metric {
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cad-3d-cml-metric-lbl {
  color: #94A3B8;
  font-size: 0.62rem;
  display: block;
}

.cad-3d-cml-metric-val {
  color: #00E5FF;
  font-weight: 700;
  font-size: 0.78rem;
}

.cad-3d-cml-metric-val.warn {
  color: #FFD600;
}

.cad-3d-cml-metric-val.danger {
  color: #FF1744;
}
