/* ==========================================================================
   ClearSky Premium Craft: WebGL Atmosphere, 3D Tactical Globe,
   Motion-Primitives Morphing Dialog, and Scrolltide Early Warning Engine
   ========================================================================== */

/* ==========================================================================
   0. EXECUTIVE SITE HEADER & NAVIGATION BAR
   ========================================================================== */
html {
  scroll-padding-top: 90px !important;
}

.site-header {
  height: 76px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  border-bottom: 1px solid rgba(216, 197, 164, 0.12) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(12, 17, 24, 0.88) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: Manrope, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: -0.6px !important;
  color: var(--cream) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.site-header .brand-orbit {
  font-size: 22px !important;
  line-height: 1 !important;
  color: var(--gold) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 0 8px rgba(216, 197, 164, 0.35)) !important;
}

.site-header .brand-caption {
  font-family: ui-monospace, Menlo, monospace !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: var(--gold) !important;
  border-left: 1px solid rgba(216, 197, 164, 0.28) !important;
  padding-left: 12px !important;
  margin-left: 4px !important;
  text-transform: uppercase !important;
  opacity: 0.85 !important;
}

.site-header nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.site-header nav a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.15px !important;
  color: #94a3b8 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.2 !important;
}

.site-header nav a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-1px) !important;
}

.site-header nav a:active {
  transform: scale(0.97) !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.header-cta {
  height: 38px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #17202a !important;
  background: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(216, 197, 164, 0.2) !important;
}

.header-cta span {
  color: #17202a !important;
  font-size: 11px !important;
  opacity: 0.8 !important;
  transition: transform 0.2s ease !important;
}

.header-cta:hover {
  background: #e7d5b5 !important;
  border-color: #e7d5b5 !important;
  color: #111822 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 18px rgba(216, 197, 164, 0.35) !important;
}

.header-cta:hover span {
  transform: translate(1px, -1px) !important;
}

.header-cta:active {
  transform: scale(0.97) !important;
}

.header-map {
  height: 38px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  background: rgba(17, 24, 33, 0.7) !important;
  border: 1px solid rgba(204, 216, 229, 0.16) !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.header-map span {
  color: var(--gold) !important;
  margin-left: 2px !important;
  font-size: 12px !important;
  transition: transform 0.2s ease !important;
}

.header-map:hover {
  border-color: rgba(216, 197, 164, 0.45) !important;
  color: #ffffff !important;
  background: rgba(24, 33, 44, 0.9) !important;
  transform: translateY(-1px) !important;
}

.header-map:hover span {
  transform: translate(1px, -1px) !important;
}

.header-map:active {
  transform: scale(0.97) !important;
}

@media (max-width: 1180px) {
  .site-header nav a {
    padding: 7px 8px !important;
    font-size: 11.5px !important;
  }
  .site-header {
    gap: 16px !important;
  }
}

@media (max-width: 980px) {
  .site-header .brand-caption {
    display: none !important;
  }
  .site-header nav a {
    padding: 6px 7px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px !important;
    padding-inline: 20px !important;
  }
  .site-header nav {
    display: none !important;
  }
  .header-cta {
    display: none !important;
  }
}

/* 1. Atmospheric Sky Canvas */
#sky-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* 2. Tactical 3D Globe Container & HUD Tooltip */
.globe-3d-container {
  width: 365px;
  height: 365px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 5;
}
.globe-3d-container:active {
  cursor: grabbing;
}
.tactical-globe-canvas {
  width: 365px;
  height: 365px;
  display: block;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.floating-signal {
  z-index: 30 !important;
  pointer-events: none !important;
  bottom: 48px !important;
  right: -5px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 1px rgba(216, 197, 164, 0.4) !important;
}
@media (max-width: 1050px) {
  .floating-signal {
    bottom: 30px !important;
    right: -10px !important;
  }
}
@media (max-width: 760px) {
  .floating-signal {
    bottom: -15px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
  }
}
.orbit,
.orbit-one,
.orbit-two,
.orbital-cross,
.scene-label {
  pointer-events: none !important;
}
.globe-hud-tooltip {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  background: rgba(14, 21, 29, 0.96);
  border: 1px solid rgba(216, 197, 164, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(216, 197, 164, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 250px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: hudFadeIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hudFadeIn {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hud-status {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hud-name {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream, #f3f0e9);
  line-height: 1.2;
}
.hud-desc {
  font-size: 10px;
  color: #9ba7b4;
  line-height: 1.45;
  margin-top: 5px;
}

/* 3. Morphing Security Bulletins (Motion-Primitives MorphingDialog) */
.czib-section {
  padding-top: 90px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}
.czib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 45px;
}
.czib-card {
  position: relative;
  background: linear-gradient(145deg, #131b24 0%, #0e141c 100%);
  border: 1px solid rgba(204, 216, 229, 0.13);
  border-radius: 8px;
  padding: 22px 20px;
  cursor: pointer;
  outline: none;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 240ms ease,
              box-shadow 240ms ease;
  display: flex;
  flex-direction: column;
}
.czib-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 197, 164, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(216, 197, 164, 0.08);
}
.czib-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.czib-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}
.czib-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.czib-id {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #8c9ba8;
}
.czib-auth-mini {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold, #d8c5a4);
  opacity: 0.9;
}
.czib-badge-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}
.czib-badge {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.25;
}
.czib-badge-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.czib-badge-restricted {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.czib-badge-warning {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.czib-country {
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--cream, #f3f0e9);
  margin: 0 0 6px;
  line-height: 1.25;
}
.czib-fir {
  font-size: 11px;
  color: #8c98a5;
  margin: 0 0 16px;
}
.czib-fir span {
  color: #cfd8e1;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
}
.czib-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #808c99;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.czib-meta-row strong {
  color: #d1d9e2;
  font-weight: 500;
}
.czib-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--gold);
  margin-top: 16px;
  padding-top: 10px;
}
.czib-arrow {
  font-size: 14px;
  transition: transform 180ms ease;
}
.czib-card:hover .czib-arrow {
  transform: translate(2px, -2px);
}

/* Morph Modal Overlay & Dialog */
.czib-morph-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.czib-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
}
.czib-modal-dialog {
  position: fixed;
  background: linear-gradient(150deg, #151e29 0%, #0d131b 100%);
  border: 1px solid rgba(216, 197, 164, 0.45);
  border-radius: 12px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65), 0 0 35px rgba(216, 197, 164, 0.15);
  overflow: hidden;
  z-index: 100000;
  display: flex;
  flex-direction: column;
}
.czib-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 180ms ease, transform 180ms ease;
}
.czib-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
.czib-modal-inner {
  padding: 38px 42px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}
.czib-modal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.czib-auth {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  color: var(--gold);
}
.czib-modal-dialog h2 {
  font-family: Manrope, sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--cream);
  margin: 0 0 6px;
}
.czib-modal-sub {
  font-size: 13px;
  color: #929fae;
  margin: 0 0 28px;
}
.czib-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.dossier-block {
  background: rgba(10, 15, 22, 0.65);
  border: 1px solid rgba(216, 197, 164, 0.18);
  border-radius: 6px;
  padding: 20px 22px;
}
.dossier-block.full-width {
  grid-column: 1 / -1;
}
.dossier-block h4 {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin: 0 0 10px;
}
.dossier-block p {
  font-size: 12px;
  line-height: 1.8;
  color: #cfd8e2;
  margin: 0;
}
.dossier-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
  color: #8c9aa8;
}
.dossier-tag strong {
  color: var(--cream);
}
.czib-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 4. Scrolltide Early Warning Engine */
.scrolltide-engine-section {
  padding-top: 100px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}
.engine-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
  position: relative;
}
.engine-steps-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.engine-step {
  padding: 32px 30px;
  background: rgba(17, 24, 33, 0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 300ms ease;
  opacity: 0.55;
  transform: translateX(-4px);
}
.engine-step.is-active {
  background: linear-gradient(145deg, #17212c 0%, #101620 100%);
  border-color: rgba(216, 197, 164, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 1;
  transform: translateX(0);
}
.step-time-badge {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.engine-step h3 {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--cream);
  margin: 0 0 10px;
}
.engine-step p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* Sticky HUD Module */
.engine-hud-col {
  position: sticky;
  top: 120px;
  align-self: start;
}
.hud-console {
  background: #0d131b;
  border: 1px solid rgba(216, 197, 164, 0.35);
  border-radius: 10px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 25px rgba(216, 197, 164, 0.08);
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.hud-header {
  background: #131b25;
  border-bottom: 1px solid rgba(216, 197, 164, 0.2);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hud-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: radarBlink 1.8s infinite;
}
@keyframes radarBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hud-tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--cream);
}
.hud-time {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  color: var(--gold);
}
.hud-visual-arena {
  position: relative;
  height: 190px;
  background: radial-gradient(circle at center, #151f2b 0%, #0a0e14 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hud-radar-disc {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(216, 197, 164, 0.25);
  position: relative;
}
.hud-radar-disc:before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 197, 164, 0.2);
}
.hud-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(216, 197, 164, 0.4) 0deg, transparent 65deg, transparent 360deg);
  animation: radarSweep 3.2s linear infinite;
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hud-radar-target {
  position: absolute;
  top: 38px;
  right: 46px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444;
  opacity: 0;
  transition: all 400ms ease;
}
.hud-stats-strip {
  padding: 18px 22px;
  background: rgba(15, 23, 32, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.hud-barometer-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8c98a5;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hud-barometer-val {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
}
.hud-barometer-val small {
  font-size: 10px;
  color: #7b8896;
}
.hud-bar-track {
  width: 140px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.hud-bar-fill {
  height: 100%;
  width: 18%;
  background: #38bdf8;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1), background-color 400ms ease;
}
.hud-status-badge {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-active { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.status-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.status-critical { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.status-dispatched { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

.hud-terminal {
  padding: 16px 20px;
  background: #090e14;
  min-height: 125px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  line-height: 1.7;
  color: #9ab0c4;
}
.log-line {
  display: flex;
  gap: 10px;
}
.log-time {
  color: #556677;
  flex-shrink: 0;
}
.log-msg {
  color: #c0d1e0;
}

/* Responsive adjustments */
@media (max-width: 1050px) {
  .czib-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-layout { grid-template-columns: 1fr; gap: 40px; }
  .engine-hud-col { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .czib-grid { grid-template-columns: 1fr; }
  .globe-3d-container {
    width: 290px;
    height: 290px;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
  }
  .czib-dossier-grid { grid-template-columns: 1fr; }
  .czib-modal-inner { padding: 26px 22px; }
  .hud-stats-strip { flex-direction: column; align-items: flex-start; }
}

/* Screen hide print artifacts */
.czib-print-header,
.czib-print-footer {
  display: none;
}

/* Print Styles: Publication-ready single-page CZIB dossier */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }

  /* Isolate CZIB Dossier: Hide everything else on the page */
  body.is-printing-czib-dossier > *:not(#czib-morph-modal),
  body:has(#czib-morph-modal:not([hidden])) > *:not(#czib-morph-modal) {
    display: none !important;
  }

  body.is-printing-czib-dossier,
  body:has(#czib-morph-modal:not([hidden])) {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Unset fixed overlay coordinates so it flows naturally on paper */
  #czib-morph-modal {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    inset: auto !important;
  }

  .czib-modal-backdrop,
  .czib-modal-close,
  .czib-modal-actions,
  .czib-arrow {
    display: none !important;
  }

  .czib-modal-dialog {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .czib-modal-inner {
    padding: 0 !important;
    overflow: visible !important;
    max-height: none !important;
  }

  /* Print Header */
  .czib-print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    border-bottom: 2px solid #0f172a !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
  }

  .czib-print-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
  }

  .czib-print-logo {
    font-family: Manrope, -apple-system, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #0f172a !important;
  }

  .czib-print-tag {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    color: #64748b !important;
    text-transform: uppercase !important;
  }

  .czib-print-doc-info {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    align-items: flex-end !important;
  }

  .czib-print-classification {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #991b1b !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
  }

  .czib-print-date {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 8.5px !important;
    color: #64748b !important;
  }

  /* Metadata row */
  .czib-modal-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
  }

  .czib-badge {
    padding: 3px 8px !important;
    font-size: 9px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border: 1px solid #cbd5e1 !important;
    display: inline-block !important;
  }

  .czib-badge-critical {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
  }

  .czib-badge-restricted {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
  }

  .czib-badge-warning {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
  }

  .czib-id {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .czib-auth {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 9.5px !important;
    color: #475569 !important;
  }

  .czib-modal-dialog h2 {
    font-family: Manrope, -apple-system, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 4px 0 6px !important;
    letter-spacing: -0.5px !important;
  }

  .czib-modal-sub {
    font-size: 12px !important;
    color: #475569 !important;
    margin: 0 0 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
  }

  .czib-modal-sub strong {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Dossier structured blocks */
  .czib-dossier-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .dossier-block {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 16px 18px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .dossier-block.full-width {
    grid-column: 1 / -1 !important;
  }

  .dossier-block h4 {
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    color: #1e293b !important;
    margin: 0 0 8px !important;
  }

  .dossier-block p {
    font-size: 11px !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    margin: 0 !important;
  }

  .dossier-tag {
    display: inline-block !important;
    margin-top: 10px !important;
    font-size: 9.5px !important;
    color: #475569 !important;
    background: #e2e8f0 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
  }

  .dossier-tag strong {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Print Footer */
  .czib-print-footer {
    display: block !important;
    border-top: 1px solid #cbd5e1 !important;
    padding-top: 14px !important;
    margin-top: 20px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .czib-print-footer-meta {
    display: flex !important;
    justify-content: space-between !important;
    font-family: ui-monospace, Menlo, monospace !important;
    font-size: 8px !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .czib-print-disclaimer {
    font-size: 8px !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    font-style: italic !important;
  }
}
