@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');:root{--navy:#0b1220;--slate:#172235;--teal:#14b8a6;--cyan:#22d3ee;--light:#f4f7f9;--line:#dbe4e9;--text:#172235;--muted:#637386;--red:#ef4444;--amber:#f59e0b}*{box-sizing:border-box}html{scroll-behavior:smooth;overflow-x:hidden}body{margin:0;background:var(--light);color:var(--text);font:14px Manrope,Arial,sans-serif;overflow-x:hidden}.brand{font-weight:800;letter-spacing:.4px;color:inherit;text-decoration:none}.brand span,.brand i{color:var(--teal);font-style:normal}.kicker,.sidefoot{font:10px 'DM Mono';letter-spacing:1.2px;color:#6b8292}.primary,.ghost{border:1px solid transparent;border-radius:7px;padding:11px 15px;font:700 12px Manrope;cursor:pointer}.primary{background:var(--teal);color:#042c31;box-shadow:0 8px 22px #14b8a633}.ghost{background:transparent;border-color:#7b90a033;color:inherit}.landing{color:#e7f2f5;background:var(--navy);overflow:hidden}.topnav{height:78px;display:flex;gap:25px;align-items:center;max-width:1200px;margin:auto;padding:0 24px}.topnav .brand{font-size:18px;margin-right:auto}.topnav>div{display:flex;gap:22px}.topnav a{color:#b5c8d4;text-decoration:none;font-size:12px}.topnav small{display:block;color:#6f8796;font-size:8px}.hero{max-width:1200px;margin:auto;padding:92px 24px 105px}.grid{display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:70px}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.04;letter-spacing:-3px;margin:12px 0}.lede{max-width:520px;font-size:18px;line-height:1.65;color:#afc3cf;margin-bottom:27px}.hero a{color:var(--cyan);margin-left:18px;font-weight:700;text-decoration:none}.micro{font-size:10px;color:#7893a2;margin-top:26px}.signal{position:relative;text-align:center;padding:35px 0;background:linear-gradient(135deg,#172235b5,#0e192bbc);border:1px solid #42607188;border-radius:16px;box-shadow:inset 0 0 50px #22d3ee0d}.signal:before,.landing:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#80a8bc0b 1px,transparent 1px),linear-gradient(90deg,#80a8bc0b 1px,transparent 1px);background-size:28px 28px}.sourcecards,.outcomes{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 24px}.sourcecards b,.outcomes b{font:10px 'DM Mono';padding:12px 4px;border:1px solid #527184;border-radius:4px;background:#102238;color:#b8d4df}.signal strong{position:relative;display:block;color:#e7fcfb;font-size:16px;letter-spacing:1px;line-height:1.8;padding:13px}.signal strong span{color:var(--teal)}.outcomes{grid-template-columns:repeat(2,1fr)}.outcomes b{border-color:#14b8a666;color:#82e6db}.public{padding:95px max(24px,calc((100% - 1120px)/2))}.public h2,.finalcta h2{font-size:34px;letter-spacing:-1.3px;max-width:650px;margin:10px 0 35px}.light{background:#fff}.problemgrid,.featuregrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.problemgrid p,.featuregrid article{padding:20px;border:1px solid var(--line);border-radius:8px;margin:0;background:#f9fbfc;font-weight:700}.dark{background:var(--slate);color:#e9f4f7}.dark .kicker{color:#74a4b5}.steps{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.steps b{font:11px 'DM Mono';color:var(--teal)}.steps h3{font-size:15px}.steps p{font-size:12px;line-height:1.55;color:#aec1cb}.evidence{display:grid;grid-template-columns:1.1fr .9fr;gap:80px;background:#eaf4f5}.evidence p{color:#506575;line-height:1.7;max-width:520px}.evidencecard{background:var(--navy);padding:27px;border-radius:10px;color:#e9f5f6;border:1px solid #35506a;box-shadow:0 18px 40px #0b122033}.evidencecard span,.evidencecard b{font:10px 'DM Mono';color:#86b2c0}.evidencecard footer{display:flex;gap:8px}.evidencecard i,.evidencecard em{font:10px 'DM Mono';font-style:normal;padding:5px;background:#ef444422;color:#ff8e87}.evidencecard em{background:#14b8a622;color:#84e9df}.finalcta{text-align:center;padding:90px 24px;background:var(--navy);color:#e9f5f6}.finalcta h2{margin:10px auto 25px}.finalcta>p:last-child{font-size:11px;color:#8097a7}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);max-width:100%;overflow-x:clip;background:linear-gradient(to right,var(--navy) 280px,var(--light) 280px);min-height:100vh}.app-shell aside{position:sticky;top:0;height:100vh;background:var(--navy);color:#dcecf1;padding:27px 16px;display:flex;flex-direction:column}.app-shell .brand small{display:block;font:8px 'DM Mono';color:#7594a2;margin-top:4px}.app-shell aside nav{display:grid;gap:5px;margin-top:50px}.app-shell aside nav a{padding:11px 12px;color:#9fb5c0;border-radius:6px;font-weight:700;cursor:pointer}.app-shell aside nav a.active{color:#efffff;background:#1a3148}.sidefoot{margin-top:auto;border-top:1px solid #2a4257;padding:18px 9px 0}.sidefoot b{display:block;color:#cce5e9;margin-top:5px;font:600 11px Manrope}.app-shell main{padding:42px 50px;max-width:1500px;min-width:0;width:100%;box-sizing:border-box}.app-shell header{display:flex;gap:10px;align-items:start;margin-bottom:29px}.app-shell header>div{margin-right:auto}.app-shell h1{font-size:29px;letter-spacing:-1px;margin:7px 0}.sub{color:var(--muted);margin:0}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:20px;min-width:0;max-width:100%}.stats>div,.panel,.results{background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0;max-width:100%}.stats>div{padding:17px}.stats span{font:10px 'DM Mono';color:#718291}.stats b{display:block;font-size:25px;margin-top:7px}.riskHigh{color:var(--red)}.workspace{display:grid;grid-template-columns:1.35fr .85fr;gap:18px;min-width:0;max-width:100%}.panel,.results{padding:22px;min-width:0;max-width:100%}.paneltitle,.resultHead{display:flex;justify-content:space-between}.panel h2,.results h2{font-size:17px;margin:5px 0}.form{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:20px 0}.form label{font-size:11px;font-weight:700;color:#627788}.form input,.filters select{width:100%;margin-top:5px;padding:10px;border:1px solid var(--line);border-radius:6px;font:12px Manrope}.drop{min-height:170px;border:1.5px dashed #80aebb;border-radius:9px;background:#f7fcfc;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;color:#637e89;cursor:pointer}.drop input{display:none}.drop i{font-size:25px;color:var(--teal);font-style:normal}.drop strong{color:var(--text)}.drop span{font-size:11px;max-width:500px}.drop button{pointer-events:none}.file{display:flex;gap:8px;align-items:center;padding:9px;margin-top:6px;background:#f5f8fa;border-radius:6px;font-size:12px}.file b{margin-left:auto;font:10px 'DM Mono';color:#278980}.file button{border:0;background:none;color:#bc4d4a;cursor:pointer}.actions{display:flex;gap:12px;align-items:center;margin-top:15px}.actions span{font-size:11px;color:var(--muted)}.coverageRow{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f3;font-size:12px}.tag{font:10px 'DM Mono';padding:4px 6px;background:#def6f2;color:#18786f}.tag.no{background:#edf0f2;color:#6c7f89}.results{margin-top:18px}.filters{display:grid;grid-template-columns:repeat(2,160px);gap:7px}.notice{margin:16px 0;padding:11px;border-left:3px solid var(--teal);background:#edfbf9;color:#397078;font-size:12px}.structured{margin:12px 0;padding:16px}.structuredRow{padding:10px 0;border-top:1px solid var(--line);font-size:12px}.structuredRow p,.finding p{line-height:1.55;color:#526975}.findings{display:grid;gap:10px}.finding{border:1px solid var(--line);border-left:4px solid var(--amber);border-radius:8px;padding:17px}.finding.high{border-left-color:var(--red)}.findingTop,.findingFoot{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.finding h3{font-size:14px;margin:0}.risk{font:10px 'DM Mono';padding:4px 6px;background:#fff5df;color:#9b670d}.risk.high{background:#ffeded;color:#bd3434}.risk.low{background:#def6f2;color:#18786f}.risk.informational{background:#eef1f5;color:#566879}.evidencecard,.evidence{font-size:12px}.finding .evidence{display:block;background:#f4f8f9;padding:10px;border-radius:5px;font:11px 'DM Mono';color:#496873}.finding textarea,.finding input{width:100%;padding:8px;margin-top:10px;border:1px solid var(--line);border-radius:5px;font:12px Manrope}.review,.edit,.saveEdit{padding:6px 8px;border:1px solid var(--line);border-radius:4px;background:white;cursor:pointer;font:11px Manrope}.status-accepted{background:#e2f5e6;color:#247438}.status-rejected{background:#ffeded;color:#af3c35}.status-needs-review{background:#fff3dc;color:#9d670c}.status-reviewed{background:#daf6f0;color:#197b72}.status-edited{background:#edeafd;color:#504696}.reports{margin-top:18px}.empty{text-align:center;padding:38px;color:#718693}@media(max-width:950px){.grid,.evidence,.workspace{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,1fr)}.problemgrid,.featuregrid{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:repeat(3,1fr)}.app-shell{grid-template-columns:1fr;background:var(--light)}.app-shell aside{position:relative;height:auto}.app-shell aside nav{display:flex;overflow:auto;margin-top:20px}.app-shell main{padding:28px 20px}}@media(max-width:600px){.topnav>div,.topnav .ghost{display:none}.hero{padding:65px 22px}.signal{margin-top:5px}.sourcecards{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.form,.problemgrid,.featuregrid,.steps,.filters{grid-template-columns:1fr}.app-shell header{flex-wrap:wrap}.app-shell header>div{width:100%}.app-shell main{padding:24px 14px}.public{padding:65px 22px}.public h2,.finalcta h2{font-size:27px}}
/* --- Tender Intelligence Status / Decision Readiness (UX Polish) --- */
.readiness {
  margin: 18px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.readiness .paneltitle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.readiness .paneltitle .kicker {
  font: 11px 'DM Mono', monospace;
  letter-spacing: 1.2px;
  color: #64748b;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.readiness .paneltitle h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 0;
}
.readiness .pill {
  font: 700 10.5px/1.2 'DM Mono', monospace;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

/* 2-Column Responsive Grid */
.readinessGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 22px;
}

/* Dark Navy Glass Cards */
.readinessGrid > div,
.readinessCard {
  background: linear-gradient(145deg, #0e192b 0%, #09121f 100%);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
  padding: 18px 20px;
  color: #f1f5f9;
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.readinessGrid > div::before,
.readinessCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  pointer-events: none;
}

/* Card Header */
.readinessCardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.readinessHeadTitle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.readinessCardHead h3,
.readinessGrid h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

/* Card Icons */
.readinessCardIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.readinessCardIcon.checkIcon {
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
}
.readinessCardIcon.warnIcon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.readinessCardIcon.clearIcon {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Glass Badges */
.readinessCardBadge {
  font: 700 10px/1.2 'DM Mono', monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.readinessCardBadge.badgeSuccess {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #2dd4bf;
}
.readinessCardBadge.badgeWarn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.readinessCardBadge.badgeClear {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Card Body & Item List */
.readinessCardBody {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.readinessItemList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.readinessItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
  transition: all 0.15s ease;
}
.readinessItem:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.22);
}
.readinessItem.readinessItemWarn {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.16);
  color: #fef3c7;
}
.readinessItem.readinessItemWarn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}
.readinessItem .itemIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 1px;
  line-height: 1;
}
.readinessItem .itemIconCheck {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
}
.readinessItem .itemIconWarn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.readinessItem .itemText {
  flex: 1;
  word-break: break-word;
}
.readinessGrid > div p,
.readinessCard p {
  color: #cbd5e1;
  margin: 0;
}
.readinessEmptyText {
  color: #94a3b8 !important;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 8px 0;
  font-style: italic;
}

/* Dynamic Empty State for "Limited by evidence" */
.readinessEmptyState {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.readinessEmptyState .emptyStateIcon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.readinessEmptyState .emptyStateContent {
  flex: 1;
  min-width: 0;
}
.readinessEmptyState strong,
.readinessEmptyState .emptyStateTitle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
  line-height: 1.35;
}
.readinessEmptyState p,
.readinessEmptyState .emptyStateDesc {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

/* Evidence Coverage & Recommendations */
.readinessCoverage {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.readinessCoverage h3,
.readinessRecommendations h3,
.readiness > h3 {
  font: 700 11px/1.2 'DM Mono', monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 8px;
}
.readinessCoverage p,
.readiness > p {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}
.readinessRecommendations {
  margin-top: 18px;
}
.readinessRecommendations .recommendations {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.readinessRecommendations .recommendations p,
.recommendations p {
  padding: 12px 16px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  margin: 0;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.5;
}
.readinessRecommendations .recommendations p b,
.recommendations p b {
  color: #38bdf8;
  font-family: 'DM Mono', monospace;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .readinessGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .readiness {
    padding: 18px 16px;
  }
}

/* --- The Commercial Reality Section (Simple Continuous Auto-Playing Sequence) --- */
#commercial-reality.commercial-reality-section,
.commercial-reality-section {
  background: #f8fafc;
  position: relative;
  padding: 56px max(24px, calc((100% - 1140px) / 2));
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.reality-wrap {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px 44px;
  align-items: center;
}

/* Left Column: Editorial */
.reality-editorial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reality-header {
  display: flex;
  flex-direction: column;
}

.reality-header .kicker {
  font: 700 11px/1.2 'DM Mono', monospace;
  letter-spacing: 1.5px;
  color: #0284c7;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.reality-headline {
  font: 700 clamp(24px, 2.7vw, 32px)/1.22 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
}

.reality-copy {
  font: 400 13px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #475569;
  margin: 0 0 12px 0;
}

.reality-closing {
  padding: 12px 14px;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reality-closing-text {
  font: 500 12.5px/1.55 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0369a1;
  margin: 0;
}

.reality-supporting-statement {
  font: 700 11.5px/1.45 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0284c7;
  letter-spacing: 0.1px;
  margin: 0;
}

/* Right Column: Three Automatic Visual Scenes Showcase */
.reality-showcase {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reality-scenes-viewport {
  position: relative;
  width: 100%;
  min-height: 390px;
}

.reality-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.reality-scene.scene-1 {
  animation: realityScene1 13.5s infinite;
}

.reality-scene.scene-2 {
  animation: realityScene2 13.5s infinite;
}

.reality-scene.scene-3 {
  animation: realityScene3 13.5s infinite;
}

.scene-visual {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.scene-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 310;
}

.scene-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 2px;
}

.scene-badge {
  font: 700 8.5px/1.2 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #0284c7;
  text-transform: uppercase;
}

.scene-title {
  font: 700 15px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.scene-desc {
  font: 400 12px/1.5 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #64748b;
  margin: 0;
}

/* Subtle 3-segment progress track */
.scene-track {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 3px;
  margin-top: 4px;
}

.track-bar {
  flex: 1;
  height: 100%;
  background: #e2e8f0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.track-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #0284c7;
  border-radius: 2px;
}

.track-bar.track-1::after {
  animation: trackBar1 13.5s infinite;
}
.track-bar.track-2::after {
  animation: trackBar2 13.5s infinite;
}
.track-bar.track-3::after {
  animation: trackBar3 13.5s infinite;
}

/* Keyframes for Scene Crossfades (13.5s cycle: 4.5s per scene) */
@keyframes realityScene1 {
  0%, 29.5% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }
  33.3%, 96.2% {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    z-index: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }
}

@keyframes realityScene2 {
  0%, 29.5% {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 1;
  }
  33.3%, 62.8% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }
  66.7%, 100% {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    z-index: 1;
  }
}

@keyframes realityScene3 {
  0%, 62.8% {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    z-index: 1;
  }
  66.7%, 96.2% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    z-index: 1;
  }
}

/* Keyframes for Track Bars */
@keyframes trackBar1 {
  0% { width: 0%; opacity: 1; }
  29.5% { width: 100%; opacity: 1; }
  33.3% { width: 100%; opacity: 0.3; }
  33.4%, 100% { width: 0%; opacity: 0; }
}

@keyframes trackBar2 {
  0%, 33.3% { width: 0%; opacity: 0; }
  33.4% { width: 0%; opacity: 1; }
  62.8% { width: 100%; opacity: 1; }
  66.7% { width: 100%; opacity: 0.3; }
  66.8%, 100% { width: 0%; opacity: 0; }
}

@keyframes trackBar3 {
  0%, 66.7% { width: 0%; opacity: 0; }
  66.8% { width: 0%; opacity: 1; }
  96.2% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0.3; }
}

/* Tablet Breakpoint (<= 960px) */
@media (max-width: 960px) {
  .reality-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .reality-editorial {
    display: contents;
  }
  .reality-header {
    order: 1;
    max-width: 600px;
  }
  .reality-showcase {
    order: 2;
    max-width: 600px;
    margin: 0;
  }
  .reality-closing {
    order: 3;
    max-width: 600px;
  }
  .reality-scenes-viewport {
    min-height: 410px;
  }
}

/* Mobile Breakpoint (<= 640px) */
@media (max-width: 640px) {
  #commercial-reality.commercial-reality-section,
  .commercial-reality-section {
    padding: 36px 16px;
  }
  .reality-wrap {
    gap: 20px;
  }
  .reality-scenes-viewport {
    min-height: 310px;
  }
  .scene-title {
    font-size: 14px;
  }
  .scene-desc {
    font-size: 11.5px;
  }
}

/* Small Phone Breakpoint (<= 360px) */
@media (max-width: 360px) {
  .reality-scenes-viewport {
    min-height: 280px;
  }
  .scene-title {
    font-size: 13px;
  }
  .scene-desc {
    font-size: 11px;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reality-scene,
  .track-bar::after {
    animation: none !important;
    transition: none !important;
  }

  /* Display Scene 1 statically with its title and supporting text */
  .reality-scene.scene-1 {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  .reality-scene.scene-2,
  .reality-scene.scene-3 {
    display: none !important;
  }

  .scene-track {
    display: none !important;
  }

  .reality-scenes-viewport {
    min-height: auto !important;
  }
}

/* --- Product Capabilities Section: Reference-Matched Interface --- */
#features.capabilities-section {
  background: linear-gradient(180deg, #070d18 0%, #0a1324 100%);
  color: #e7f2f5;
  position: relative;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 60px max(24px, calc((100% - 1100px) / 2));
}

#features .capabilities-heading-wrap {
  margin-bottom: 28px;
}

#features .kicker {
  font: 700 11px/1.2 'DM Mono', monospace;
  letter-spacing: 1.4px;
  color: #38bdf8;
  margin: 0 0 10px;
  text-transform: uppercase;
}

#features h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #f8fafc;
  max-width: 760px;
  margin: 0;
  line-height: 1.2;
}

/* Main Container */
.capabilities-experience {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 12-Stage Horizontal Capability Rail */
.capability-rail-container {
  width: 100%;
  background: rgba(9, 17, 30, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  padding: 22px 16px 16px;
  box-shadow: 0 8px 24px rgba(2, 6, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  backdrop-filter: blur(8px);
}

.capability-rail-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  position: relative;
  width: 100%;
  align-items: flex-start;
}

/* Thin horizontal connecting line passing through all circular nodes */
.rail-connecting-line {
  position: absolute;
  top: 9px;
  left: 3.5%;
  right: 3.5%;
  height: 1px;
  background: rgba(56, 189, 248, 0.18);
  z-index: 1;
  pointer-events: none;
}

.rail-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  position: relative;
  z-index: 2;
  outline: none;
  user-select: none;
  transition: all 0.2s ease;
}

/* Circular Node */
.stage-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08111e;
  border: 1.5px solid #334155;
  margin-bottom: 8px;
  transition: all 0.25s ease;
}

.marker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
  transition: all 0.25s ease;
}

/* Active Node: Refined Cyan Outlined Marker with Centered Dot */
.rail-stage.is-active .stage-marker {
  border: 2px solid #22d3ee;
  background: #071526;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.45), inset 0 0 4px rgba(34, 211, 238, 0.25);
  transform: scale(1.08);
}

.rail-stage.is-active .marker-dot {
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee;
}

.rail-stage:hover .stage-marker {
  border-color: #38bdf8;
}

.stage-number {
  font: 700 11px/1.2 'DM Mono', monospace;
  color: #64748b;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.rail-stage.is-active .stage-number {
  color: #38bdf8;
  font-weight: 800;
}

.stage-label {
  font: 600 8.5px/1.2 'DM Mono', monospace;
  letter-spacing: 0.5px;
  color: #475569;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease;
}

.rail-stage.is-active .stage-label {
  color: #e2e8f0;
}

/* Large Capability Intelligence Panel */
.capability-panel {
  background: linear-gradient(165deg, #091322 0%, #060c18 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Panel Header */
.capability-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(4, 9, 18, 0.65);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  gap: 16px;
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.panel-icon {
  flex-shrink: 0;
}

.panel-tag-label {
  font: 700 11px/1 'DM Mono', monospace;
  color: #22d3ee;
  letter-spacing: 1px;
}

.panel-header-divider {
  width: 1px;
  height: 14px;
  background: rgba(56, 189, 248, 0.22);
}

.panel-status-text {
  font: 600 11px/1 'DM Mono', monospace;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.panel-header-progress-wrap {
  flex: 1;
  max-width: 320px;
  margin: 0 12px;
}

.panel-header-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.panel-header-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transition: width 0.35s ease;
}

.panel-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.panel-stage-counter {
  font: 700 12px/1 'DM Mono', monospace;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.85);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 1px;
}

.panel-nav-controls {
  display: flex;
  gap: 6px;
}

.panel-nav-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
  user-select: none;
}

.panel-nav-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

/* Main Capability Content Area */
.capability-panel-body {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 32px;
}

.capability-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(12, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.08);
}

.capability-content-container {
  flex: 1;
}

.capability-pill {
  font: 700 10.5px/1 'DM Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.capability-card {
  display: block;
}

.capability-card[hidden] {
  display: none !important;
}

.capability-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f8fafc;
  margin: 0 0 10px;
  line-height: 1.25;
}

.capability-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  max-width: 820px;
}

/* Panel Footer */
.capability-panel-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px;
  background: rgba(4, 9, 18, 0.75);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  font: 600 11px/1 'DM Mono', monospace;
  letter-spacing: 0.8px;
}

.footer-col {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  min-width: 0;
}

.footer-col-icon {
  flex-shrink: 0;
}

.footer-col-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-divider {
  width: 1px;
  height: 16px;
  background: rgba(56, 189, 248, 0.18);
  margin: 0 16px;
}

/* Responsive Breakpoints */
@media (max-width: 950px) {
  .panel-header-progress-wrap {
    display: none;
  }
  .stage-label {
    display: none;
  }
  .capability-rail-container {
    padding: 18px 12px 14px;
  }
  .capability-title {
    font-size: 22px;
  }
  .capability-desc {
    font-size: 14.5px;
  }
  .capability-panel-body {
    padding: 26px 22px;
    gap: 20px;
  }
  .capability-panel-footer {
    padding: 12px 20px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  #features.capabilities-section {
    padding: 40px 16px;
  }
  #features h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .capability-rail-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 10px 14px;
  }
  .capability-rail-track {
    min-width: 580px;
  }
  .rail-connecting-line {
    left: 20px;
    right: 20px;
  }
  .stage-label {
    display: block;
    font-size: 8px;
  }
  .capability-panel-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .panel-header-left {
    width: 100%;
  }
  .panel-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .capability-panel-body {
    flex-direction: column;
    padding: 20px 18px;
    gap: 16px;
  }
  .capability-title {
    font-size: 20px;
  }
  .capability-desc {
    font-size: 13.5px;
  }
  .capability-panel-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }
  .footer-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-header-progress-fill,
  .rail-stage,
  .stage-marker,
  .marker-dot {
    transition: none !important;
  }
}

/* --- DIVE AI Intelligence Capabilities Section (Premium Light Interface) --- */
#dive-ai-capabilities.dive-ai-capabilities-section {
  background: #ffffff;
  color: #0f172a;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 95px max(24px, calc((100% - 1100px) / 2));
}

#dive-ai-capabilities .capabilities-heading-wrap {
  margin-bottom: 36px;
  max-width: 860px;
}

#dive-ai-capabilities .capabilities-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#dive-ai-capabilities .kicker {
  font: 700 11px/1.2 'DM Mono', monospace;
  letter-spacing: 1.4px;
  color: #0284c7;
  margin: 0;
  text-transform: uppercase;
}

#dive-ai-capabilities .intelligence-badge {
  font: 700 9.5px 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
}

#dive-ai-capabilities h2 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

#dive-ai-capabilities .capabilities-lead {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* 4-Card Responsive Grid */
.intelligence-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.intelligence-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.intelligence-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.intelligence-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.intelligence-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intelligence-card-tag {
  font: 700 9px/1 'DM Mono', monospace;
  letter-spacing: 0.6px;
  color: #0284c7;
  background: #f0f9ff;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid #e0f2fe;
  text-transform: uppercase;
}

.intelligence-card-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.intelligence-card-desc {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 20px 0;
  flex: 1;
}

.intelligence-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.intelligence-feature-pill {
  font: 600 10.5px 'DM Mono', monospace;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Evidence-Grounded Analysis Statement */
.intelligence-grounding-statement {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.grounding-statement-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.grounding-statement-text {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}

.grounding-statement-text strong {
  color: #0f172a;
  font-weight: 700;
  margin-right: 6px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .intelligence-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #dive-ai-capabilities.dive-ai-capabilities-section {
    padding: 60px 20px;
  }
  .intelligence-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .intelligence-grounding-statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
}

.processingTimeline{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fbfdfd;font-size:11px}.processingHead{display:flex;gap:8px;align-items:center;color:var(--muted)}.processingHead b{color:#18786f;font:10px 'DM Mono'}.processingTimeline ol{display:flex;gap:5px;padding:0;margin:10px 0 0;list-style:none}.processingTimeline li{flex:1;padding-top:7px;border-top:2px solid var(--line);color:#8494a0}.processingTimeline li.done,.processingTimeline li.active{border-color:var(--teal);color:#18786f}.processingTimeline li.active{font-weight:700}.processingError{color:#af3c35;margin:8px 0 0}
/* --- Scope & Pricing Intelligence (Layer 2 UI) --- */
.commercial-panel{margin:18px 0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}
.commercial-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.commercial-header h2{font-size:18px;margin:4px 0 0;letter-spacing:-.4px}
.commercial-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.commercial-kpi-card{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:14px 16px;position:relative}
.commercial-kpi-card .kpi-label{font:10px/1 'DM Mono';color:#627788;letter-spacing:.8px;display:flex;justify-content:space-between;align-items:center}
.commercial-kpi-card .kpi-badge{font:9px 'DM Mono';padding:2px 5px;border-radius:3px;background:#e2e8f0;color:#334155}
.commercial-kpi-card .kpi-value{font:700 21px/1.3 'DM Mono';margin:8px 0 4px;color:var(--text)}
.commercial-kpi-card .kpi-value.pos{color:#0f766e}
.commercial-kpi-card .kpi-value.neg{color:#b91c1c}
.commercial-kpi-card .kpi-desc{font-size:11px;color:var(--muted);line-height:1.45;margin:0}

.commercial-meta-bar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:10px 14px;background:#f1f5f9;border-radius:6px;font-size:11px;color:#475569;margin-bottom:18px}
.commercial-meta-bar b{color:var(--text);font-family:'DM Mono'}
.commercial-meta-bar .sep{color:#cbd5e1}

.commercial-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.commercial-filters{display:flex;flex-wrap:wrap;gap:6px}
.commercial-filter-btn{font:600 11px Manrope;padding:6px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#475569;cursor:pointer;transition:all .15s}
.commercial-filter-btn:hover{background:#f8fafc;border-color:#94a3b8}
.commercial-filter-btn.active{background:#0f172a;border-color:#0f172a;color:#fff}

.commercial-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.commercial-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}
.commercial-table th{background:#f8fafc;padding:11px 12px;font:700 10px 'DM Mono';letter-spacing:.6px;color:#64748b;border-bottom:1px solid var(--line)}
.commercial-table td{padding:11px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#334155}
.commercial-table tr.clickable{cursor:pointer;transition:background .1s}
.commercial-table tr.clickable:hover{background:#f8fafc}
.commercial-table tr:last-child td{border-bottom:none}

.mono{font-family:'DM Mono',monospace}
.sub-tag{display:inline-block;font:9px 'DM Mono';color:#64748b;margin-top:2px}
.qty-change{font-family:'DM Mono';color:#0f766e}
.qty-change b{font-weight:700}
.tag-missing{font:10px 'DM Mono';padding:3px 6px;border-radius:4px;background:#fef2f2;color:#b91c1c;font-weight:600}
.unquantified{font-style:italic;color:#64748b;font-size:11px}
.exp-pos{font-family:'DM Mono';font-weight:700;color:#0f766e}
.exp-neg{font-family:'DM Mono';font-weight:700;color:#b91c1c}
.exp-zero{font-family:'DM Mono';color:#64748b}

.status-pill{display:inline-block;font:10px 'DM Mono';padding:3px 7px;border-radius:4px;font-weight:600;letter-spacing:.3px}
.status-aligned{background:#ecfdf5;color:#047857}
.status-quantity_variance{background:#eff6ff;color:#1d4ed8}
.status-value_variance{background:#fefce8;color:#a16207}
.status-price_variance{background:#fff7ed;color:#c2410c}
.status-scope_exclusion{background:#fef2f2;color:#b91c1c}
.status-qualification{background:#f3f4f6;color:#374151}
.status-missing_price{background:#faf5ff;color:#7e22ce}
.status-unmatched_scope{background:#f1f5f9;color:#475569}
.status-addendum_change{background:#f0fdfa;color:#0f766e}
.status-needs_review{background:#fffbeb;color:#b45309}

/* Detail Drawer / Modal */
.commercial-drawer-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.6);z-index:999;display:flex;justify-content:flex-end;backdrop-filter:blur(2px)}
.commercial-drawer-backdrop[hidden]{display:none !important}
.commercial-drawer{width:min(660px,100vw);height:100vh;background:#fff;display:flex;flex-direction:column;overflow-y:auto;box-shadow:-8px 0 32px rgba(0,0,0,.25)}
.drawer-header{padding:20px 24px;border-bottom:1px solid var(--line);background:#f8fafc;display:flex;justify-content:space-between;align-items:flex-start}
.drawer-header h2{font-size:18px;margin:6px 0 10px;line-height:1.3}
.drawer-pills{display:flex;flex-wrap:wrap;gap:6px}
.drawer-close{font:700 12px Manrope;padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}
.drawer-close:hover{background:#f1f5f9}

.reasoning-chain{padding:20px 24px;display:grid;gap:16px}
.chain-step{border:1px solid var(--line);border-radius:8px;padding:16px;background:#fff;position:relative}
.chain-step.highlight{border-color:#14b8a6;background:#f0fdfa}
.chain-step.result-step{border-color:#38bdf8;background:#f0f9ff}
.step-num{position:absolute;top:14px;right:14px;font:700 10px 'DM Mono';color:#94a3b8;letter-spacing:1px}
.chain-step h3{font-size:13px;margin:0 0 12px;font-family:'DM Mono';letter-spacing:.5px;color:#334155}
.chain-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;font-size:12px}
.chain-grid span{color:#64748b;display:block;font-size:11px}
.chain-grid b{color:#0f172a;font-family:'DM Mono'}
.chain-evidence,.chain-notes{margin-top:12px;padding:10px;background:#f8fafc;border-radius:6px;font-size:11px;line-height:1.5;color:#334155}
.chain-evidence span,.chain-notes span{font-family:'DM Mono';color:#64748b;font-weight:700;display:block;margin-bottom:3px}
.chain-evidence em{font-style:normal;color:#0f766e;display:block;margin-top:3px;font-family:'DM Mono'}
.chain-none{font-size:12px;color:#64748b;margin:0;font-style:italic}
.evidence-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ev-badge{font:10px 'DM Mono';background:#f1f5f9;padding:4px 7px;border-radius:4px;color:#334155}
.doc-badge{font:10px 'DM Mono';background:#e2e8f0;padding:4px 7px;border-radius:4px;color:#1e293b}
.linked-findings{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;color:#64748b}
.finding-link{font:700 11px 'DM Mono';padding:3px 8px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#0284c7;cursor:pointer}
.finding-link:hover{background:#e0f2fe;border-color:#38bdf8}
.exposure-highlight{font-size:16px;display:block;margin-top:2px}
.exposure-basis{margin-top:12px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:5px;font-size:11px;color:#475569}
.exposure-basis span{font-weight:700;color:#0f172a;font-family:'DM Mono'}
.recommended-action{margin-top:10px;padding:10px;background:#fefce8;border-left:3px solid #eab308;border-radius:4px;font-size:12px;color:#713f12;line-height:1.5}
.recommended-action span{display:block;font:700 10px 'DM Mono';color:#854d0e;margin-bottom:3px}

@media(max-width:950px){
  .commercial-kpi-grid{grid-template-columns:repeat(2,1fr)}
  .chain-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .commercial-kpi-grid{grid-template-columns:1fr}
}
.finding.highlighted{outline:2px solid #0284c7;box-shadow:0 0 14px rgba(2,132,199,.4);transition:all .3s ease}

/* --- Risk & Decision Intelligence (Layer 3 UI - Group 1) --- */
.risk-panel{margin:18px 0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}
.risk-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.risk-header h2{font-size:18px;margin:4px 0 0;letter-spacing:-.4px}

/* Top Summary KPI Cards */
.risk-kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}
.risk-kpi-card{background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:12px 14px;position:relative}
.risk-kpi-card .kpi-label{font:10px/1 'DM Mono';color:#627788;letter-spacing:.8px;display:flex;justify-content:space-between;align-items:center}
.risk-kpi-card .kpi-value{font:700 20px/1.3 'DM Mono';margin:6px 0 2px;color:var(--text)}
.risk-kpi-card .kpi-subtext{font-size:11px;color:var(--muted);line-height:1.4;margin:0}
.risk-kpi-card.kpi-critical{border-color:#fca5a5;background:#fef2f2}
.risk-kpi-card.kpi-critical .kpi-value{color:#991b1b}
.risk-kpi-card.kpi-high{border-color:#fecdd3;background:#fff1f2}
.risk-kpi-card.kpi-high .kpi-value{color:#be123c}
.risk-kpi-card.kpi-medium{border-color:#fde68a;background:#fffbeb}
.risk-kpi-card.kpi-medium .kpi-value{color:#92400e}

/* Severity Badges (Text + Calm Professional Color) */
.risk-sev-badge{display:inline-flex;align-items:center;gap:4px;font:700 10px 'DM Mono';padding:3px 8px;border-radius:4px;letter-spacing:.4px;border:1px solid transparent}
.risk-sev-critical{background:#fef2f2;border-color:#fca5a5;color:#991b1b}
.risk-sev-high{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.risk-sev-medium{background:#fffbeb;border-color:#fde68a;color:#92400e}
.risk-sev-low{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.risk-sev-unknown{background:#f1f5f9;border-color:#cbd5e1;color:#475569}

/* Category Badges */
.risk-cat-badge{font:600 10px 'DM Mono';padding:2px 7px;border-radius:3px;background:#e2e8f0;color:#334155;letter-spacing:.3px}
.risk-cat-commercial{background:#e0f2fe;color:#0369a1}
.risk-cat-scope{background:#f3e8ff;color:#6b21a8}
.risk-cat-pricing{background:#fef3c7;color:#92400e}
.risk-cat-contract{background:#fee2e2;color:#991b1b}
.risk-cat-programme{background:#ecfdf5;color:#047857}
.risk-cat-compliance{background:#f1f5f9;color:#0f172a;border:1px solid #cbd5e1}

/* Needs Attention Queue */
.needs-attention-box{margin-bottom:20px;padding:16px 18px;background:#fcfcfd;border:1px solid #e2e8f0;border-left:4px solid #0f172a;border-radius:8px}
.needs-attention-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.needs-attention-header h3{font-size:14px;margin:0;color:#0f172a;letter-spacing:-.2px;display:flex;align-items:center;gap:8px}
.needs-attention-header p{margin:0;font-size:12px;color:#64748b}
.needs-attention-list{display:grid;gap:8px}
.attention-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;background:#fff;border:1px solid var(--line);border-radius:6px;transition:border-color .15s}
.attention-card:hover{border-color:#94a3b8}
.attention-card-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.attention-card-text{min-width:0}
.attention-card-title{font-size:13px;font-weight:700;color:#0f172a;margin-bottom:2px}
.attention-card-sub{font-size:11px;color:#64748b;line-height:1.4}
.attention-card-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.btn-attention{font:600 11px Manrope;padding:5px 9px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#334155;cursor:pointer;transition:all .15s}
.btn-attention:hover{background:#f8fafc;border-color:#94a3b8}
.btn-attention.primary{background:#0f172a;border-color:#0f172a;color:#fff}
.btn-attention.primary:hover{background:#1e293b}

/* Risk Register Toolbar & Filters */
.risk-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px;padding-top:10px;border-top:1px solid #f1f5f9}
.risk-filters-wrap{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.risk-filters-group{display:flex;align-items:center;gap:6px}
.risk-filters-group label{font:700 10px 'DM Mono';color:#64748b}
.risk-filters-group select,.risk-filters-group input{padding:6px 9px;border:1px solid var(--line);border-radius:5px;font:12px Manrope;background:#fff}

/* Risk Table */
.risk-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.risk-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}
.risk-table th{background:#f8fafc;padding:10px 12px;font:700 10px 'DM Mono';letter-spacing:.6px;color:#64748b;border-bottom:1px solid var(--line)}
.risk-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#334155}
.risk-table tr.clickable{cursor:pointer;transition:background .1s}
.risk-table tr.clickable:hover{background:#f8fafc}
.risk-table tr:last-child td{border-bottom:none}

/* Drawer Detail Sections & Evidence Flow */
.drawer-section{border:1px solid var(--line);border-radius:8px;padding:14px 16px;background:#fff;margin-bottom:12px}
.drawer-section h4{font:700 11px 'DM Mono';letter-spacing:.6px;color:#64748b;margin:0 0 8px}
.drawer-section p{margin:0;font-size:13px;line-height:1.55;color:#1e293b}
.risk-dimensions-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 14px;font-size:12px}
.risk-dimensions-grid span{color:#64748b;display:block;font-size:11px}
.risk-dimensions-grid b{color:#0f172a;font-family:'DM Mono'}

.traceability-chain{display:grid;gap:8px;margin-top:10px}
.chain-node{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;font-size:12px}
.chain-node-badge{font:700 9px 'DM Mono';padding:3px 6px;border-radius:3px;background:#0f172a;color:#fff;flex-shrink:0}
.chain-node-content{flex:1;min-width:0;line-height:1.45}
.chain-node-title{font-weight:700;color:#0f172a;display:block;margin-bottom:2px}

@media(max-width:1100px){
  .risk-kpi-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:750px){
  .risk-kpi-grid{grid-template-columns:repeat(2,1fr)}
  .attention-card{flex-direction:column;align-items:flex-start}
  .attention-card-actions{width:100%;justify-content:flex-end}
  .risk-dimensions-grid{grid-template-columns:1fr}
}
@media(max-width:500px){
  .risk-kpi-grid{grid-template-columns:1fr}
}

/* --- Tender Change Timeline & Version Comparison (Layer 3 UI - Group 2) --- */
.change-panel{margin:18px 0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:10px}
.change-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.change-header h2{font-size:18px;margin:4px 0 0;letter-spacing:-.4px}

/* Timeline Milestones Stepper */
.timeline-stepper-wrap{margin-bottom:20px;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;overflow-x:auto}
.timeline-stepper-header{font:700 11px 'DM Mono';color:#64748b;letter-spacing:.6px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}
.timeline-stepper{display:flex;align-items:center;gap:8px;min-width:max-content}
.milestone-node{display:flex;flex-direction:column;gap:3px;padding:8px 14px;background:#fff;border:1px solid var(--line);border-radius:6px;cursor:pointer;transition:all .15s;text-align:left}
.milestone-node:hover{border-color:#94a3b8;background:#f1f5f9}
.milestone-node.active{border-color:#0f172a;background:#0f172a;color:#fff}
.milestone-node.active .milestone-sub{color:#94a3b8}
.milestone-title{font:700 12px Manrope;line-height:1.2}
.milestone-sub{font:10px 'DM Mono';color:#64748b}
.stepper-arrow{color:#94a3b8;font-size:14px;font-weight:700}

/* Change Type Badges */
.change-badge{display:inline-flex;align-items:center;font:700 10px 'DM Mono';padding:2px 7px;border-radius:4px;letter-spacing:.3px;white-space:nowrap}
.change-badge-qty{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.change-badge-spec{background:#faf5ff;color:#7e22ce;border:1px solid #e9d5ff}
.change-badge-comm{background:#fffbeb;color:#b45309;border:1px solid #fde68a}
.change-badge-contract{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.change-badge-req{background:#f1f5f9;color:#334155;border:1px solid #cbd5e1}
.change-badge-date{background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc}
.change-badge-clarif{background:#f0fdfa;color:#0f766e;border:1px solid #99f6e4}
.change-badge-added{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}
.change-badge-deleted{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}

/* Origin & Confirmation Labels */
.origin-label{display:block;font-size:11px;color:#334155}
.origin-label b{font-weight:700;color:#0f172a}
.conf-label{display:block;font-size:11px;color:#0369a1;margin-top:2px}
.conf-label b{font-weight:700}

/* Basis & Quantities */
.basis-compare{font-family:'DM Mono';font-size:12px;color:#0f172a;line-height:1.4}
.basis-arrow{color:#64748b;margin:0 4px}
.supplier-quoted-basis{font-family:'DM Mono';font-size:11px;color:#64748b;display:block;margin-top:2px}
.supplier-diff-negative{color:#b91c1c;font-weight:700}
.supplier-diff-positive{color:#15803d;font-weight:700}

/* Version Comparison Panel */
.version-comp-wrap{margin-top:16px;padding:16px;background:#f8fafc;border:1px solid var(--line);border-radius:8px}
.version-comp-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.version-comp-controls label{font:700 11px 'DM Mono';color:#475569}
.version-comp-controls select{padding:6px 10px;font:12px Manrope;border:1px solid var(--line);border-radius:5px;background:#fff}

/* View Mode Switcher */
.view-mode-toggle{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.btn-view-mode{font:600 11px Manrope;padding:6px 12px;border:none;background:transparent;cursor:pointer;color:#475569;transition:all .15s}
.btn-view-mode:hover{background:#f1f5f9}
.btn-view-mode.active{background:#0f172a;color:#fff}

/* ==========================================
   LAYER 3 GROUP 3: PACKAGE HEALTH & COVERAGE
   ========================================== */

.health-workspace {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.health-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.health-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.health-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.health-section-head p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

/* Category Grid */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.health-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .15s, box-shadow .15s;
}

.health-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.health-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.health-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.health-card-count {
  font-size: 11px;
  font-family: 'DM Mono';
  color: #64748b;
  margin-top: 2px;
}

.health-status-badge {
  font-family: 'DM Mono';
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.status-sufficient {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-insufficient {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-missing {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-unknown {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.health-card-impact {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.health-card-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.cap-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.cap-tag.enabled {
  border-color: #a7f3d0;
  color: #065f46;
  background: #f0fdf4;
}

/* Scope Coverage KPI Summary */
.coverage-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.coverage-kpi-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.coverage-kpi-card span {
  display: block;
  font: 700 10px 'DM Mono';
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.coverage-kpi-card b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

/* Scope Pricing Status Badges */
.pricing-status-pill {
  font-family: 'DM Mono';
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.pricing-status-priced { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pricing-status-partially_covered { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pricing-status-missing_price { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.pricing-status-supplier_excluded { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pricing-status-qualified { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.pricing-status-unmatched { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.pricing-status-requires_clarification { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.pricing-status-aligned { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Missing Information Actionable Cards */
.missing-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.missing-info-card {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.missing-info-card.doc-gap {
  border-left-color: #ef4444;
}

.missing-info-card.comm-gap {
  border-left-color: #f59e0b;
}

.missing-info-head {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.missing-info-why {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.missing-info-assessments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 4px;
}

.missing-info-can {
  color: #065f46;
}

.missing-info-cannot {
  color: #b91c1c;
}

.missing-info-action {
  font-size: 11px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 4px;
}

/* Assessment Availability 2-Column Split */
.assessment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.assessment-column {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
}

.assessment-column h4 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.assessment-column.available h4 {
  color: #047857;
}

.assessment-column.limited h4 {
  color: #b45309;
}

.assessment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assessment-item {
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.assessment-item .marker {
  font-weight: 700;
  font-size: 13px;
}

.assessment-column.available .marker {
  color: #10b981;
}

.assessment-column.limited .marker {
  color: #f59e0b;
}

/* ==========================================================================
   LAYER 3 GROUP 4: SUBMISSION COMPLIANCE + CONTRACT OBLIGATIONS + ASSUMPTIONS
   ========================================================================== */

.operational-workspace {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.operational-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.operational-section-head {
  margin-bottom: 16px;
}

.operational-section-head h3 {
  margin: 4px 0 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.operational-section-head p.sub {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

/* Operational KPI Grid */
.operational-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.operational-kpi-card {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.operational-kpi-card span {
  display: block;
  font: 700 10px 'DM Mono', monospace;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.operational-kpi-card b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.operational-kpi-card.status-confirmed b { color: #15803d; }
.operational-kpi-card.status-requirement-identified b { color: #1d4ed8; }
.operational-kpi-card.status-evidence-present b { color: #15803d; }
.operational-kpi-card.status-requires-review b { color: #b45309; }
.operational-kpi-card.status-missing-evidence b { color: #b91c1c; }
.operational-kpi-card.status-not-assessed b { color: #64748b; }
.operational-kpi-card.status-open b { color: #b45309; }
.operational-kpi-card.status-under-review b { color: #1d4ed8; }
.operational-kpi-card.status-resolved b { color: #15803d; }

/* Prominent Conflicting Requirements Callout */
.compliance-conflict-card {
  border: 2px solid #f59e0b;
  background: #fffbeb;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.conflict-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.conflict-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: #dc2626;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}

.conflict-card-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
}

.conflict-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

@media (max-width: 640px) {
  .conflict-sources-grid {
    grid-template-columns: 1fr;
  }
}

.conflict-source-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 12px;
}

.conflict-source-box span {
  display: block;
  font: 700 10px 'DM Mono', monospace;
  color: #78350f;
  text-transform: uppercase;
}

.conflict-source-box b {
  display: block;
  font-size: 16px;
  color: #b45309;
  margin: 4px 0;
}

.conflict-source-box small {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.conflict-reasoning {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  margin: 10px 0;
}

.conflict-action-box {
  background: #fef3c7;
  border-left: 4px solid #d97706;
  padding: 8px 12px;
  font-size: 12px;
  color: #92400e;
  font-weight: 500;
}

/* Operational Tables */
.operational-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.operational-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.operational-table th {
  background: #f8fafc;
  color: #475569;
  font: 700 11px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.operational-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.operational-table tr:last-child td {
  border-bottom: none;
}

.operational-table tr:hover td {
  background: #f8fafc;
}

/* Stated Durations & Terms */
.stated-duration-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Record Type Badges */
.record-type-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.type-exclusion { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.type-supplier-qualification { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.type-conflict { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.type-clarification-required { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.type-assumption { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.type-unquantified-item { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Decision Dependency Badges */
.dep-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

/* Operational Buttons */
.btn-inspect-operational {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inspect-operational:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Toolbar */
.operational-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.operational-toolbar select,
.operational-toolbar input {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #334155;
}

.operational-toolbar input {
  flex: 1;
  min-width: 180px;
}

/* ==========================================================================
   Group 5: Supplier Comparison & Pricing Intelligence Styles
   ========================================================================== */

.supplier-workspace {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supplier-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
}

.supplier-section-head {
  margin-bottom: 16px;
}

.supplier-section-head .kicker {
  font: 700 10px 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.supplier-section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.supplier-section-head p {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Supplier Summary Cards Grid */
.supplier-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.supplier-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.supplier-card.highlight-card {
  border-color: #38bdf8;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.supplier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.supplier-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px;
}

.supplier-card-ref {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #64748b;
}

.supplier-card-total-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.supplier-card-total-box span {
  font: 700 11px 'DM Mono', monospace;
  color: #475569;
  text-transform: uppercase;
}

.supplier-card-total-box b {
  font: 700 20px 'DM Mono', monospace;
  color: #0f172a;
}

.supplier-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
}

.supplier-meta-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 8px;
}

.supplier-meta-item span {
  display: block;
  font: 700 9px 'DM Mono', monospace;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.supplier-meta-item b {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #1e293b;
}

.supplier-card-lists {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.supplier-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supplier-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}

.badge-exclusion {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-qualification {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-unpriced {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Scope-Adjusted View Callout */
.scope-adjusted-callout {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  border-radius: 8px;
  padding: 16px 20px;
}

.scope-adjusted-callout h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scope-adjusted-callout p {
  font-size: 12px;
  color: #1e3a8a;
  line-height: 1.5;
  margin: 0 0 10px;
}

.scope-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.scope-breakdown-item {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 10px 12px;
}

.scope-breakdown-item span {
  display: block;
  font: 700 10px 'DM Mono', monospace;
  color: #3b82f6;
  text-transform: uppercase;
}

.scope-breakdown-item b {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin: 2px 0;
}

.scope-breakdown-item small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Side-by-side Comparison Table */
.supplier-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.supplier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.supplier-table th {
  background: #f8fafc;
  color: #475569;
  font: 700 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.supplier-table th.col-boq {
  background: #f1f5f9;
  border-left: 2px solid #cbd5e1;
}

.supplier-table th.col-supp1 {
  background: #f0fdf4;
  border-left: 2px solid #86efac;
}

.supplier-table th.col-supp2 {
  background: #f0f9ff;
  border-left: 2px solid #7dd3fc;
}

.supplier-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.supplier-table td.col-boq {
  background: #f8fafc;
  border-left: 2px solid #e2e8f0;
}

.supplier-table td.col-supp1 {
  background: #fafffc;
  border-left: 2px solid #bbf7d0;
}

.supplier-table td.col-supp2 {
  background: #f8fbff;
  border-left: 2px solid #bae6fd;
}

.supplier-table tr:hover td {
  background: #f8fafc;
}

.supplier-table tr.row-mismatch td {
  background: #fffdf5;
}

.supplier-table tr.row-mismatch:hover td {
  background: #fefce8;
}

/* Status / Comparability Badges */
.status-pill {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-pill.comparable {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-pill.qty-diff {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-pill.scope-diff {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill.excluded {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-pill.unmatched {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.status-pill.unpriced {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Action button in table */
.btn-inspect-supplier {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inspect-supplier:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Validity & Lead Time Grid */
.validity-leadtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.val-lead-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.val-lead-card.card-warning {
  border-color: #f59e0b;
  background: #fffdf5;
}

.val-lead-card.card-info {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.val-lead-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #0f172a;
}

.val-lead-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.val-lead-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.val-lead-table td:first-child {
  font-weight: 600;
  color: #334155;
}

.val-lead-table td:nth-child(2) {
  font-family: 'DM Mono', monospace;
  color: #0f172a;
  text-align: right;
}

.val-lead-table td:last-child {
  font-size: 11px;
  text-align: right;
  font-weight: 600;
}

.mismatch-flag {
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

.aligned-flag {
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

/* ==========================================================================
   LAYER 3 GROUP 6: TENDER-TO-BID HANDOVER + EXECUTIVE REPORT WORKSPACE
   ========================================================================== */

.handover-workspace {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.handover-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.handover-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.handover-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.handover-section-header .section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #64748b;
  text-transform: uppercase;
}

.handover-readiness-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.readiness-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: .3px;
}

.readiness-status-badge.attention {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.readiness-status-badge.ready {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.handover-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.handover-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
}

.handover-kpi-card span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.handover-kpi-card b {
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.snapshot-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f8fafc;
}

.snapshot-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.snapshot-card-val {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.bid-basis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.bid-basis-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  background: #ffffff;
}

.bid-basis-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.bid-basis-card p {
  font-size: 13px;
  color: #334155;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.bid-basis-card .basis-sub {
  font-size: 11px;
  color: #64748b;
  font-family: 'DM Mono', monospace;
}

.handover-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.handover-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}

.handover-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.handover-table tr:hover {
  background: #f8fafc;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.decision-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.decision-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.decision-id {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.decision-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 2px 0 0 0;
}

.decision-why {
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 3px solid #f59e0b;
}

.decision-action-box {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.4;
  margin-top: 2px;
}

.decision-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.btn-inspect-handover {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
}

.btn-inspect-handover:hover {
  background: #e2e8f0;
}

/* Group 7: Unified Decision Workspace & Scenarios Styles */
.decision-workspace {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.decision-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.decision-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.decision-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.readiness-card {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.readiness-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.readiness-area {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
}

.readiness-metric {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.readiness-details {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.provenance-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

.provenance-user {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.provenance-source {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.provenance-derived {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.provenance-system {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.provenance-none {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.scenario-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-card.active-scenario {
  border-color: #0284c7;
  background: #f0f9ff;
}

.scenario-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.scenario-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #ffffff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.scenario-kpi {
  display: flex;
  flex-direction: column;
}

.scenario-kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.scenario-kpi-val {
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: #0f172a;
}

.scenario-kpi-val.profit-positive {
  color: #059669;
}

.scenario-kpi-val.profit-negative {
  color: #dc2626;
}

.scenario-assumptions-list {
  font-size: 12px;
  color: #475569;
  padding-left: 18px;
  margin: 6px 0;
  line-height: 1.4;
}

.scenario-controls-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-group label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.control-group input, .control-group select {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.scenario-table, .sensitivity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}

.scenario-table th, .scenario-table td,
.sensitivity-table th, .sensitivity-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.scenario-table th, .sensitivity-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.text-right {
  text-align: right;
}

.assistant-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.assistant-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 90%;
}

.assistant-msg.user {
  align-self: flex-end;
}

.assistant-msg.assistant {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
}

.user-bubble {
  background: #0284c7;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px 8px 0 8px;
  font-size: 13px;
}

.assistant-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.assistant-answer {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
}

.assistant-why {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 4px;
  border-left: 3px solid #64748b;
}

.assistant-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assistant-evidence-item {
  font-size: 11px;
  color: #334155;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 3px;
  font-family: 'DM Mono', monospace;
}

.assistant-action {
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 6px 10px;
  border-radius: 4px;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.quick-prompt-btn {
  font-size: 11px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 10px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s;
}

.quick-prompt-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.assistant-input-row {
  display: flex;
  gap: 8px;
}

.assistant-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
}

.btn-inspect-decision {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  font-weight: 600;
}

.btn-inspect-decision:hover {
  background: #e2e8f0;
}

/* Pricing Workspace Styles */
.pricing-panel {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line, #e2e8f0);
}

.pricing-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 14px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.pricing-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.pricing-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.pricing-table tr:hover td {
  background: #f8fafc;
}

.pricing-table .num-cell {
  text-align: right;
  font-family: var(--font-mono, monospace);
}

.pricing-filter-btn {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.pricing-filter-btn:hover {
  background: #f1f5f9;
}

.pricing-filter-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.pricing-status-pill {
  display: inline-block;
  font: 10px 'DM Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.pricing-status-unpriced { background: #fee2e2; color: #b91c1c; }
.pricing-status-estimated { background: #eff6ff; color: #1d4ed8; }
.pricing-status-quote_linked { background: #f0fdf4; color: #15803d; }
.pricing-status-plug_number { background: #fef3c7; color: #b45309; }
.pricing-status-verified { background: #f5f3ff; color: #6d28d9; }

.pricing-modal {
  margin: auto;
  width: min(640px, 95vw);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   G9: COMMERCIAL CONTROL CENTER
   ========================================================================== */

.commercial-control-panel {
  background: var(--surface, #ffffff);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line, #e2e8f0);
}

.cc-kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.cc-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.cc-kpi-card span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cc-kpi-card b {
  font-size: 20px;
  color: #0f172a;
  font-weight: 800;
  margin-top: 4px;
}

.cc-issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.cc-issue-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-issue-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cc-issue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cc-issue-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.priority-critical { background: #fee2e2; color: #b91c1c; }
.priority-high { background: #ffedd5; color: #c2410c; }
.priority-medium { background: #fef3c7; color: #b45309; }
.priority-low { background: #f1f5f9; color: #475569; }

.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .3px;
  display: inline-block;
}

.status-open { background: #fee2e2; color: #b91c1c; }
.status-under_review { background: #fef3c7; color: #b45309; }
.status-resolved { background: #dcfce7; color: #15803d; }
.status-closed { background: #f1f5f9; color: #475569; }

/* ==========================================================================
   G10: SUBMISSION CONTROL CENTER
   ========================================================================== */

.submission-panel {
  background: var(--surface, #ffffff);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line, #e2e8f0);
}

.readiness-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.readiness-score {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 14px;
}

.checklist-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-size: 11px;
}

.checklist-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.checklist-table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================================
   G11: HISTORICAL INTELLIGENCE & BENCHMARKING
   ========================================================================== */

.historical-panel {
  background: var(--surface, #ffffff);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line, #e2e8f0);
}

.benchmark-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.benchmark-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.benchmark-stat-box span {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.benchmark-stat-box b {
  font-size: 15px;
  color: #0f172a;
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono, monospace);
}

.historical-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 14px;
}

.historical-records-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  font-size: 11px;
}

.historical-records-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.historical-records-table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================================
   PREMIUM HERO LANDING ANIMATION SYSTEM (POLISHED)
   ========================================================================== */

/* Background Grid Drift (Noticeable yet restrained) */
.landing {
  position: relative;
  overflow: hidden;
}

.landing::before {
  animation: landingGridDrift 30s linear infinite;
  will-change: background-position;
  background-image: linear-gradient(rgba(128, 168, 188, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(128, 168, 188, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

@keyframes landingGridDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 32px 32px;
  }
}

/* Ambient Subtle Gradient Aura */
.landing-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle 750px at 78% 22%, rgba(34, 211, 238, 0.12), transparent 70%),
              radial-gradient(circle 650px at 20% 75%, rgba(20, 184, 166, 0.09), transparent 70%);
  animation: ambientAuraBreathe 10s ease-in-out infinite alternate;
}

@keyframes ambientAuraBreathe {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Subtle Horizontal Grid Scanline Wave */
.landing-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.35) 50%, transparent 100%);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
  pointer-events: none;
  z-index: 0;
  animation: scanlineSweep 12s ease-in-out infinite;
}

@keyframes scanlineSweep {
  0% {
    top: -5%;
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

/* Hero Left Load Sequence */
.hero {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  opacity: 0;
  transform: translateY(8px);
  animation: heroItemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  cursor: pointer;
}

.hero-lede {
  opacity: 0;
  transform: translateY(8px);
  animation: heroItemFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  animation: heroItemFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.10s forwards;
}

.hero-micro {
  opacity: 0;
  animation: heroItemFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.35s forwards;
}

@keyframes heroItemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ready State Override (Bypasses Delay / Replay) */
.hero.hero-ready .hero-kicker,
.hero.hero-ready .hero-lede,
.hero.hero-ready .hero-actions,
.hero.hero-ready .hero-micro {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Character-Span Reveal System with 3 Non-Wrapping Lines */
.hero-headline {
  position: relative;
  display: block;
}

.hero-headline-line {
  display: block;
  white-space: nowrap;
}

.type-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 80ms ease, transform 80ms ease;
  will-change: opacity, transform;
}

.type-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.type-char.type-space {
  width: 0.28em;
  white-space: pre;
}

.hero.hero-ready .type-char,
.hero-ready .type-char {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.hero.hero-ready .typewriter-cursor,
.hero-ready .typewriter-cursor {
  display: none !important;
}

/* Typewriter Cursor (High contrast cyan glow) */
.typewriter-cursor {
  display: inline-block;
  color: var(--cyan);
  font-weight: 300;
  margin-left: 2px;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
  animation: typewriterBlink 0.75s step-end infinite;
  vertical-align: baseline;
}

@keyframes typewriterBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ==========================================================================
   RIGHT-SIDE INTELLIGENCE PIPELINE CARD
   ========================================================================== */

.pipeline-card {
  position: relative;
  background: linear-gradient(165deg, rgba(23, 34, 53, 0.90) 0%, rgba(14, 25, 43, 0.97) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 16px 44px rgba(11, 18, 32, 0.5), 0 0 35px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  overflow: hidden;
  animation: pipelineCardBreathe 8s ease-in-out infinite alternate;
}

@keyframes pipelineCardBreathe {
  0% {
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow: 0 16px 44px rgba(11, 18, 32, 0.5), 0 0 25px rgba(34, 211, 238, 0.06);
  }
  100% {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 16px 44px rgba(11, 18, 32, 0.5), 0 0 45px rgba(34, 211, 238, 0.14);
  }
}

.pipeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.65), transparent);
  pointer-events: none;
}

/* Subtle moving light sweep across glass surface */
.pipeline-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(34, 211, 238, 0.035) 48%, rgba(255, 255, 255, 0.06) 50%, rgba(34, 211, 238, 0.035) 52%, transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
  animation: glassShineSweep 10s ease-in-out infinite;
}

@keyframes glassShineSweep {
  0%, 30% {
    transform: translateY(-100%) rotate(25deg);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    transform: translateY(100%) rotate(25deg);
    opacity: 1;
  }
  70%, 100% {
    transform: translateY(100%) rotate(25deg);
    opacity: 0;
  }
}

.pipeline-header,
.pipeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.pipeline-footer {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 4px 0;
  margin-top: 14px;
  margin-bottom: 0;
}

.pipeline-stage-tag {
  font: 700 9px/1 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 4px;
  padding: 3px 6px;
  transition: all 0.35s ease;
}

.pipeline-stage-label {
  font: 10px 'DM Mono', monospace;
  letter-spacing: 1.1px;
  color: #8da6b5;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.pipeline-inputs,
.pipeline-outputs {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0 !important;
}

.pipeline-inputs {
  grid-template-columns: repeat(3, 1fr);
}

.pipeline-outputs {
  grid-template-columns: repeat(2, 1fr);
}

.pipeline-node {
  font: 10px 'DM Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 10px 4px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(82, 113, 132, 0.45);
  background: rgba(16, 34, 56, 0.80);
  color: #c4dbe6;
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
  user-select: none;
}

.pipeline-node.node-output {
  border-color: rgba(20, 184, 166, 0.4);
  color: #82e6db;
}

/* Output Nodes Cycling State Transitions */
.pipeline-node.node-cycling {
  opacity: 0.2;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pipeline-node.node-illuminated {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.9) !important;
  color: #ffffff !important;
  background: rgba(18, 54, 72, 0.95) !important;
  box-shadow: 0 3px 14px rgba(20, 184, 166, 0.45) !important;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Connector Tracks and Pulsing Flow */
.pipeline-connector-wrap {
  width: 100%;
  height: 38px;
  position: relative;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.connector-track {
  stroke: rgba(94, 137, 160, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.connector-stream {
  stroke: #22d3ee;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 16 65;
  filter: drop-shadow(0 0 6px #22d3ee) drop-shadow(0 0 2px #ffffff);
  opacity: 0;
}

.bottom-wrap .connector-stream {
  stroke: #2dd4bf;
  filter: drop-shadow(0 0 6px #14b8a6) drop-shadow(0 0 2px #ffffff);
}

/* Central Core Engine Node */
strong.core-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 24px 11px;
  width: 88%;
  margin: 4px auto;
  background: linear-gradient(145deg, #112036 0%, #0d1829 100%);
  border: 1px solid rgba(34, 211, 238, 0.40);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: normal;
  text-decoration: none;
  font-weight: normal;
  animation: corePulseLoop 6.8s ease-in-out infinite;
  transition: all 0.35s ease;
}

strong.core-node.core-processing {
  border-color: rgba(34, 211, 238, 0.9) !important;
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.5), inset 0 0 16px rgba(34, 211, 238, 0.25) !important;
  transform: scale(1.025) !important;
}

.core-glow {
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  animation: coreGlowLoop 6.8s ease-in-out infinite;
}

.core-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f1f5f9;
  display: block;
  margin: 1px 0;
}

.core-brand-accent {
  color: var(--teal);
}

.core-badge {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1.6px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  padding: 2px 8px;
  margin: 2px 0 4px;
  display: inline-block;
}

.core-engine-cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 3px 0 1px;
  font: 700 8.5px/1 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #5c7b8e;
}

.core-state-step {
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.core-state-step.active {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.85);
  font-weight: 800;
}

.core-state-sep {
  color: rgba(255, 255, 255, 0.18);
}

.core-arrow {
  font-size: 11px;
  color: #5c7b8e;
  line-height: 1;
  animation: arrowGlowLoop 6.8s ease-in-out infinite;
}

/* ==========================================================================
   COORDINATED PIPELINE ANIMATION CYCLE
   ========================================================================== */

/* Phase 1: Inputs Pulse Sequentially */
.node-input[data-index="0"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.10s; }
.node-input[data-index="1"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.22s; }
.node-input[data-index="2"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.34s; }
.node-input[data-index="3"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.46s; }
.node-input[data-index="4"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.58s; }
.node-input[data-index="5"] { animation: inputPulseLoop 6.8s ease-in-out infinite 0.70s; }

@keyframes inputPulseLoop {
  0%, 22%, 100% {
    border-color: rgba(82, 113, 132, 0.45);
    background: rgba(16, 34, 56, 0.80);
    color: #c4dbe6;
    box-shadow: none;
    transform: translateY(0);
  }
  8%, 14% {
    border-color: rgba(34, 211, 238, 0.85);
    background: rgba(22, 48, 78, 0.98);
    color: #ffffff;
    box-shadow: 0 2px 14px rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
  }
}

/* Phase 2: Top Stream Flow into Core */
.stream-top-1 { animation: topStreamLoop 6.8s ease-in-out infinite 0.85s; }
.stream-top-2 { animation: topStreamLoop 6.8s ease-in-out infinite 0.95s; }
.stream-top-3 { animation: topStreamLoop 6.8s ease-in-out infinite 1.05s; }
.stream-top-4 { animation: topStreamLoop 6.8s ease-in-out infinite 1.05s; }
.stream-top-5 { animation: topStreamLoop 6.8s ease-in-out infinite 0.95s; }
.stream-top-6 { animation: topStreamLoop 6.8s ease-in-out infinite 0.85s; }

@keyframes topStreamLoop {
  0%, 8% {
    stroke-dashoffset: 70;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  28% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  35%, 100% {
    stroke-dashoffset: -25;
    opacity: 0;
  }
}

/* Phase 3: Core Pulse & Ambient Breathing */
@keyframes corePulseLoop {
  0%, 26%, 56%, 100% {
    border-color: rgba(34, 211, 238, 0.40);
    box-shadow: 0 4px 20px rgba(11, 18, 32, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  34%, 48% {
    border-color: rgba(34, 211, 238, 0.85);
    box-shadow: 0 6px 32px rgba(34, 211, 238, 0.38), inset 0 0 18px rgba(34, 211, 238, 0.22);
    transform: scale(1.02);
  }
}

@keyframes coreGlowLoop {
  0%, 26%, 56%, 100% {
    opacity: 0.25;
  }
  34%, 48% {
    opacity: 0.90;
  }
}

@keyframes arrowGlowLoop {
  0%, 26%, 56%, 100% {
    color: #5c7b8e;
  }
  34%, 48% {
    color: var(--cyan);
  }
}

/* Phase 4: Bottom Stream Flow to Outputs */
.stream-bot-1 { animation: botStreamLoop 6.8s ease-in-out infinite 3.2s; }
.stream-bot-2 { animation: botStreamLoop 6.8s ease-in-out infinite 3.3s; }
.stream-bot-3 { animation: botStreamLoop 6.8s ease-in-out infinite 3.3s; }
.stream-bot-4 { animation: botStreamLoop 6.8s ease-in-out infinite 3.2s; }

@keyframes botStreamLoop {
  0%, 44% {
    stroke-dashoffset: 70;
    opacity: 0;
  }
  48% {
    opacity: 1;
  }
  64% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70%, 100% {
    stroke-dashoffset: -25;
    opacity: 0;
  }
}

/* Phase 5: Outputs Sequentially Illuminate */
.node-output[data-index="0"] { animation: outputPulseLoop 6.8s ease-in-out infinite 4.4s; }
.node-output[data-index="1"] { animation: outputPulseLoop 6.8s ease-in-out infinite 4.7s; }
.node-output[data-index="2"] { animation: outputPulseLoop 6.8s ease-in-out infinite 5.0s; }
.node-output[data-index="3"] { animation: outputPulseLoop 6.8s ease-in-out infinite 5.3s; }

@keyframes outputPulseLoop {
  0%, 62%, 100% {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(16, 34, 56, 0.80);
    color: #82e6db;
    box-shadow: none;
    transform: translateY(0);
  }
  70%, 82% {
    border-color: rgba(45, 212, 191, 0.9);
    background: rgba(18, 54, 72, 0.98);
    color: #ffffff;
    box-shadow: 0 3px 16px rgba(20, 184, 166, 0.45);
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .landing::before,
  .landing-ambient,
  .landing-scanline,
  .hero-kicker,
  .hero-lede,
  .hero-actions,
  .hero-micro,
  .pipeline-card,
  .pipeline-card::after,
  .pipeline-node,
  strong.core-node,
  .core-glow,
  .core-arrow,
  .connector-stream,
  .type-char,
  .typewriter-cursor {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .typewriter-cursor {
    display: none !important;
  }
  .landing-scanline {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 950px) {
  .pipeline-card {
    max-width: 520px;
    margin: 28px auto 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pipeline-card {
    padding: 16px 12px 14px;
  }
  .pipeline-node {
    font-size: 9px;
    padding: 8px 2px;
    letter-spacing: 0.3px;
  }
  strong.core-node {
    width: 94%;
    padding: 12px 16px;
  }
  .core-brand {
    font-size: 13px;
  }
  .core-engine-cycle {
    font-size: 7.5px;
    gap: 3px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions a.hero-link {
    margin-left: 0;
    text-align: center;
    padding: 6px 0;
  }
}

/* ==========================================================================
   TABLE-LOCAL HORIZONTAL SCROLL & WORKSPACE CONTAINMENT
   ========================================================================== */

/* Reusable Table Scroll Container (Local Horizontal Scroll Only) */
.table-scroll-container,
.table-responsive,
.commercial-table-wrap,
.risk-table-wrap,
.operational-table-wrap,
.supplier-table-wrap,
.pricing-table-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: #ffffff;
  margin-top: 14px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

/* Subtle, professional table-local horizontal scrollbar */
.table-scroll-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.commercial-table-wrap::-webkit-scrollbar,
.risk-table-wrap::-webkit-scrollbar,
.operational-table-wrap::-webkit-scrollbar,
.supplier-table-wrap::-webkit-scrollbar,
.pricing-table-container::-webkit-scrollbar {
  height: 6px;
}
.table-scroll-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.commercial-table-wrap::-webkit-scrollbar-track,
.risk-table-wrap::-webkit-scrollbar-track,
.operational-table-wrap::-webkit-scrollbar-track,
.supplier-table-wrap::-webkit-scrollbar-track,
.pricing-table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}
.table-scroll-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.commercial-table-wrap::-webkit-scrollbar-thumb,
.risk-table-wrap::-webkit-scrollbar-thumb,
.operational-table-wrap::-webkit-scrollbar-thumb,
.supplier-table-wrap::-webkit-scrollbar-thumb,
.pricing-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.table-scroll-container::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.commercial-table-wrap::-webkit-scrollbar-thumb:hover,
.risk-table-wrap::-webkit-scrollbar-thumb:hover,
.operational-table-wrap::-webkit-scrollbar-thumb:hover,
.supplier-table-wrap::-webkit-scrollbar-thumb:hover,
.pricing-table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Keyboard accessibility outline for scrollable containers */
.table-scroll-container:focus,
.table-scroll-container:focus-visible,
.table-responsive:focus,
.table-responsive:focus-visible,
.commercial-table-wrap:focus-visible,
.risk-table-wrap:focus-visible,
.operational-table-wrap:focus-visible,
.supplier-table-wrap:focus-visible,
.pricing-table-container:focus-visible {
  outline: 2px solid var(--teal, #14b8a6);
  outline-offset: -1px;
}

/* Ensure child tables sit flush within container */
.table-scroll-container > table,
.table-responsive > table,
.commercial-table-wrap > table,
.risk-table-wrap > table,
.operational-table-wrap > table,
.supplier-table-wrap > table,
.pricing-table-container > table {
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

/* Genuinely wide data tables retain readable content width without whole-page overflow */
#scopeCoverageTable,
#changeRegisterTable,
#versionCompareTable,
.commercial-table,
.pricing-table,
.checklist-table,
.historical-records-table {
  min-width: max-content;
}

/* Protect workspace and panel containment */
.commercial-panel,
.risk-panel,
.change-panel,
.package-health-panel,
.operational-panel,
.supplier-panel,
.handover-panel,
.pricing-panel,
.decision-panel,
.commercial-control-panel,
.submission-panel,
.historical-panel,
.readiness,
.panel,
.results,
.workspace {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   DIVE AI — TENDERDIVE INTELLIGENCE CORE
   ========================================================================== */

.dive-ai-workspace {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.dive-ai-core {
  background: radial-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Background Subtle Technical Grid */
.dive-ai-core::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.dive-ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  flex-wrap: wrap;
  gap: 12px;
}

.dive-ai-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dive-ai-titles h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dive-ai-tagline {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: block;
}

.dive-ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  transition: all 0.3s ease;
}

.dive-ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: orbPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   THE DIVE AI ORB CORE
   ========================================================================== */

/* ==========================================================================
   DIVE AI OPTICAL INTELLIGENCE CORE (REALISTIC DARK GLASS ORB)
   ========================================================================== */

.dive-orb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 24px 0;
  min-height: 130px;
}

.dive-orb-container {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Luminous Atmosphere Aura */
.dive-orb-aura {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(2, 6, 23, 0) 70%);
  pointer-events: none;
  animation: orbAuraBreathe 3.5s ease-in-out infinite alternate;
  filter: blur(8px);
}

/* 2. Outer Orbital Tracking Ring */
.dive-orb-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: rgba(56, 189, 248, 0.2);
  animation: orbRingSpin 6s linear infinite;
  pointer-events: none;
}

/* 3. Inner Reverse Ring with Segmented Reticle */
.dive-orb-ring-inner {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  animation: orbRingSpinReverse 12s linear infinite;
  pointer-events: none;
}

/* 4. Fine Concentric Reticle Grid */
.dive-orb-reticle {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 0 12px rgba(2, 6, 23, 0.2);
  pointer-events: none;
}
.dive-orb-reticle::before,
.dive-orb-reticle::after {
  content: "";
  position: absolute;
  background: rgba(56, 189, 248, 0.15);
  pointer-events: none;
}
.dive-orb-reticle::before {
  top: 50%;
  left: -4px;
  right: -4px;
  height: 1px;
}
.dive-orb-reticle::after {
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 1px;
}

/* 5. Realistic Dark Optical Glass Lens Object */
.dive-orb,
.dive-orb-glass-lens {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 45% 38%, #0b2545 0%, #081d38 32%, #030d1d 65%, #01040a 100%);
  box-shadow:
    0 0 32px rgba(14, 165, 233, 0.28),
    inset 0 0 24px rgba(2, 6, 23, 0.9),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.3);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Volumetric Depth Shading */
.dive-orb-depth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(1, 4, 10, 0.85) 100%);
  pointer-events: none;
}

/* Layered Specular Refraction Highlight */
.dive-orb-specular {
  position: absolute;
  top: 4px;
  left: 14px;
  right: 14px;
  height: 34px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.55) 0%, rgba(224, 242, 254, 0.22) 45%, rgba(186, 230, 253, 0.04) 75%, transparent 100%);
  pointer-events: none;
  filter: blur(2.5px);
  transform: rotate(-6deg);
}

/* Outer Glass Bezel Rim */
.dive-orb-bezel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* 6. INTERNAL HORIZONTAL MOVING SCANNING LIGHT BEAM */
.dive-orb-scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24px;
  margin-left: -12px;
  pointer-events: none;
  animation: diveScanHorizontal 3.2s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dive-orb-scan-beam .beam-core {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, #ffffff 30%, #ffffff 70%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 0 8px #ffffff, 0 0 14px #38bdf8;
}

.dive-orb-scan-beam .beam-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.6) 0%, rgba(14, 165, 233, 0.25) 50%, transparent 80%);
  filter: blur(3px);
}

.dive-orb-scan-beam .beam-trail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), transparent);
  pointer-events: none;
}

/* Legacy rotating beam maintained for backward compatibility */
.dive-orb-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(255, 255, 255, 0.6));
  transform-origin: 0% 0%;
  animation: orbBeamSweep 4s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

/* Evidence Particles */
.dive-orb-particles {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}
.dive-orb-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  opacity: 0.4;
  animation: orbParticlePulse 2s ease-in-out infinite alternate;
}
.dive-orb-particles .p1 { top: 30%; left: 25%; animation-delay: 0.2s; }
.dive-orb-particles .p2 { top: 60%; left: 70%; animation-delay: 0.8s; }
.dive-orb-particles .p3 { top: 40%; left: 80%; animation-delay: 1.4s; }

/* Orb Status Text Underneath */
.dive-orb-status-text {
  text-align: center;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  margin-top: 10px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

/* ==========================================================================
   ORB 8 DISCRETE STATES (REALISTIC GLASS OPTICAL COLORWAYS)
   ========================================================================== */

/* 1. IDLE (Calm sapphire / cyan breathing scan) */
.dive-orb-container.state-idle .dive-orb,
.dive-orb-container.state-idle .dive-orb-glass-lens {
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.25), inset 0 0 20px rgba(56, 189, 248, 0.25);
}
.dive-orb-container.state-idle .dive-orb-scan-beam {
  animation-duration: 3.5s;
  opacity: 0.65;
}

/* 2. RETRIEVING (Accelerated horizontal laser sweep) */
.dive-orb-container.state-retrieving .dive-orb-ring {
  border-top-color: #38bdf8;
  border-right-color: #0284c7;
  animation: orbRingSpin 1s linear infinite;
}
.dive-orb-container.state-retrieving .dive-orb-scan-beam {
  animation: diveScanHorizontal 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  opacity: 1;
}
.dive-orb-container.state-retrieving .dive-orb-scan-beam .beam-glow {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.85) 0%, rgba(14, 165, 233, 0.4) 60%, transparent 85%);
}
.dive-orb-container.state-retrieving .dive-orb,
.dive-orb-container.state-retrieving .dive-orb-glass-lens {
  box-shadow: 0 0 38px rgba(56, 189, 248, 0.5), inset 0 0 24px rgba(56, 189, 248, 0.6);
}

/* 3. ANALYSING (High-speed dual sweep & reticle contraction) */
.dive-orb-container.state-analysing .dive-orb,
.dive-orb-container.state-analysing .dive-orb-glass-lens {
  background: radial-gradient(circle at 45% 40%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  box-shadow: 0 0 42px rgba(129, 140, 248, 0.55), inset 0 0 26px rgba(129, 140, 248, 0.5);
  border-color: rgba(129, 140, 248, 0.5);
}
.dive-orb-container.state-analysing .dive-orb-ring {
  border-top-color: #818cf8;
  border-left-color: #38bdf8;
  animation: orbRingSpin 0.7s linear infinite;
}
.dive-orb-container.state-analysing .dive-orb-scan-beam {
  animation: diveScanHorizontal 0.75s ease-in-out infinite alternate;
  opacity: 1;
}
.dive-orb-container.state-analysing .dive-orb-scan-beam .beam-core {
  box-shadow: 0 0 10px #ffffff, 0 0 16px #818cf8;
}
.dive-orb-container.state-analysing .dive-orb-scan-beam .beam-glow {
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.9) 0%, rgba(99, 102, 241, 0.4) 60%, transparent 85%);
}

/* 4. RESPONDING (Luminous blue-cyan expanding aura) */
.dive-orb-container.state-responding .dive-orb,
.dive-orb-container.state-responding .dive-orb-glass-lens {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.6), inset 0 0 24px rgba(255, 255, 255, 0.5);
}
.dive-orb-container.state-responding .dive-orb-scan-beam {
  animation: diveScanHorizontal 1.4s ease-in-out infinite alternate;
}

/* 5. SUPPORTED (Deep stable navy/cobalt with restrained cyan optical highlights) */
.dive-orb-container.state-supported .dive-orb,
.dive-orb-container.state-supported .dive-orb-glass-lens {
  background: radial-gradient(circle at 45% 38%, #0f2b4c 0%, #0c2340 35%, #051326 70%, #01040a 100%);
  box-shadow: 0 0 34px rgba(14, 165, 233, 0.42), inset 0 0 20px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.45);
}
.dive-orb-container.state-supported .dive-orb-ring {
  border-top-color: #38bdf8;
  border-right-color: rgba(14, 165, 233, 0.35);
  animation: orbRingSpin 9s linear infinite;
}
.dive-orb-container.state-supported .dive-orb-scan-beam .beam-core {
  box-shadow: 0 0 8px #ffffff, 0 0 14px #38bdf8;
}
.dive-orb-container.state-supported .dive-orb-scan-beam .beam-glow {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.55) 0%, rgba(2, 132, 199, 0.25) 60%, transparent 85%);
}

/* 6. CONFLICTING (Deep blue base with amber optical accents) */
.dive-orb-container.state-conflicting .dive-orb,
.dive-orb-container.state-conflicting .dive-orb-glass-lens {
  background: radial-gradient(circle at 45% 38%, #14223d 0%, #0d1b32 40%, #060e1d 75%, #01040a 100%);
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.35), inset 0 0 20px rgba(251, 191, 36, 0.25);
  border-color: rgba(245, 158, 11, 0.38);
}
.dive-orb-container.state-conflicting .dive-orb-ring {
  border-top-color: #f59e0b;
  border-bottom-color: #f59e0b;
  animation: orbRingSpin 3.5s linear infinite;
}
.dive-orb-container.state-conflicting .dive-orb-scan-beam .beam-core {
  box-shadow: 0 0 8px #ffffff, 0 0 14px #f59e0b;
}
.dive-orb-container.state-conflicting .dive-orb-scan-beam .beam-glow {
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.3) 60%, transparent 85%);
}

/* 7. INSUFFICIENT (Cool muted slate/grey low-energy scan) */
.dive-orb-container.state-insufficient .dive-orb,
.dive-orb-container.state-insufficient .dive-orb-glass-lens {
  background: radial-gradient(circle at 45% 38%, #1e293b 0%, #151e2d 40%, #0a0f18 75%, #01040a 100%);
  box-shadow: 0 0 22px rgba(100, 116, 139, 0.3), inset 0 0 16px rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.25);
}
.dive-orb-container.state-insufficient .dive-orb-ring {
  border-top-color: #64748b;
  border-right-color: #64748b;
  animation: orbRingSpin 10s linear infinite;
}
.dive-orb-container.state-insufficient .dive-orb-scan-beam {
  animation-duration: 4.5s;
  opacity: 0.4;
}
.dive-orb-container.state-insufficient .dive-orb-scan-beam .beam-core {
  box-shadow: 0 0 6px #cbd5e1;
}

/* 8. ERROR / OUT OF SCOPE (Deep navy base with subtle ruby core influence) */
.dive-orb-container.state-error .dive-orb,
.dive-orb-container.state-error .dive-orb-glass-lens {
  background: radial-gradient(circle at 45% 38%, #1f1422 0%, #160c18 40%, #0d0610 75%, #01040a 100%);
  box-shadow: 0 0 36px rgba(239, 68, 68, 0.5), inset 0 0 20px rgba(248, 113, 113, 0.45);
  border-color: rgba(239, 68, 68, 0.4);
}
.dive-orb-container.state-error .dive-orb-ring {
  border-top-color: #ef4444;
  animation: orbRingSpin 1.8s linear infinite;
}
.dive-orb-container.state-error .dive-orb-scan-beam .beam-core {
  box-shadow: 0 0 8px #ffffff, 0 0 14px #ef4444;
}

/* Keyframe Animations */
@keyframes diveScanHorizontal {
  0% {
    transform: translateX(-48px);
    opacity: 0.25;
  }
  20% {
    opacity: 0.85;
  }
  50% {
    transform: translateX(0px);
    opacity: 1;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(48px);
    opacity: 0.25;
  }
}

@keyframes orbRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbRingSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes orbBeamSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbAuraBreathe {
  0% { transform: scale(0.94); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbParticlePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

/* Reduced Motion Override for DIVE AI Intelligence Core */
@media (prefers-reduced-motion: reduce) {
  .dive-orb-ring,
  .dive-orb-ring-inner,
  .dive-orb-beam,
  .dive-orb-scan-beam,
  .dive-orb-aura,
  .dive-mini-scan,
  .dive-horizontal-scan-beam,
  .dive-sidebar-orb-reticle,
  .dive-center-node,
  .dive-waveform-track,
  .dive-sidebar-orb-particles .p1,
  .dive-sidebar-orb-particles .p2,
  .dive-orb-particles .particle,
  .dive-ai-status-dot {
    animation: none !important;
  }
  .dive-horizontal-scan-beam {
    transform: translateX(48px) !important;
    opacity: 0.35 !important;
  }
  .dive-orb,
  .dive-orb-glass-lens,
  #diveAiSidebarOrbMini {
    transition: none !important;
  }
}

/* ==========================================================================
   LEFT-SIDE NAVIGATION PERSISTENT DIVE AI MODULE & MINI ORB
   ========================================================================== */

/* ==========================================================================
   LEFT-SIDE NAVIGATION PERSISTENT DIVE AI MODULE & REALISTIC OPTICAL CORE (PHASE 3)
   ========================================================================== */

.dive-sidebar-module {
  margin: 14px 0 12px 0;
  padding: 14px 12px;
  background: linear-gradient(180deg, rgba(13, 23, 39, 0.95) 0%, rgba(8, 14, 25, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.dive-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dive-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dive-sidebar-title {
  font-family: var(--font-display, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f0f9ff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dive-sidebar-descriptor {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 9.5px;
  color: #7dd3fc;
  letter-spacing: 0.2px;
  line-height: 1.35;
  margin-top: 2px;
  font-weight: 500;
}

.dive-sidebar-subtitle {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  color: #38bdf8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dive-sidebar-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  letter-spacing: 0.5px;
  align-self: flex-start;
}

/* Orb Center Stage in Sidebar - Prominent Optical Intelligence Core */
.dive-sidebar-orb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  position: relative;
}

.dive-sidebar-orb-container {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle, rgba(3, 105, 161, 0.16) 0%, transparent 72%);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 24px rgba(3, 105, 161, 0.22);
}

/* Realistic Multi-Layer Optical Core Orb in Sidebar (118px diameter) */
#diveAiSidebarOrbMini {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 45% 35%, #082f49 0%, #03456b 28%, #031e36 60%, #010814 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.45), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

/* Compact header orb override inside drawer header */
.dive-drawer-brand #diveDrawerOrbMini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 45% 40%, #0369a1 0%, #020617 100%);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dive-drawer-brand #diveDrawerOrbMini .dive-sidebar-waveform-container {
  height: 8px;
}
.dive-drawer-brand #diveDrawerOrbMini .dive-center-node {
  width: 3.5px;
  height: 3.5px;
  background: #ef4444;
  box-shadow: 0 0 4px #ef4444;
}
.dive-drawer-brand #diveDrawerOrbMini .dive-center-node::after {
  display: none;
}

/* Optical Internal Layers */
.dive-sidebar-orb-depth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(1, 4, 10, 0.82) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Horizontal Internal Signal Waveform */
.dive-sidebar-waveform-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 3;
}

.dive-waveform-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dive-waveform-track {
  stroke: rgba(56, 189, 248, 0.85);
  stroke-width: 1.25;
  fill: none;
  filter: drop-shadow(0 0 3px #38bdf8);
  vector-effect: non-scaling-stroke;
  transition: stroke 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  animation: diveWaveformMicroDrift 4s ease-in-out infinite alternate;
}

@keyframes diveWaveformMicroDrift {
  0% { opacity: 0.78; filter: drop-shadow(0 0 2.5px rgba(56, 189, 248, 0.8)); stroke-dashoffset: 0; }
  50% { opacity: 0.95; filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.95)); stroke-dashoffset: -3; }
  100% { opacity: 0.82; filter: drop-shadow(0 0 2.5px rgba(56, 189, 248, 0.8)); stroke-dashoffset: -6; }
}

/* Central Crimson Intelligence Node / Core Processing Node */
.dive-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 4px #ef4444, 0 0 10px rgba(220, 38, 38, 0.75), 0 0 18px rgba(185, 28, 28, 0.45);
  z-index: 5;
  pointer-events: none;
  animation: diveNodeBreathe 2.8s ease-in-out infinite alternate;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dive-center-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fca5a5;
  box-shadow: 0 0 2px #ffffff;
}

@keyframes diveNodeBreathe {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

/* Horizontal Optical Traveling Scan Beam */
.dive-horizontal-scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3) 30%, rgba(255, 255, 255, 0.85) 50%, rgba(56, 189, 248, 0.3) 70%, transparent 100%);
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 4;
  animation: diveHorizontalScan 3.6s ease-in-out infinite alternate;
}

@keyframes diveHorizontalScan {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(115px); }
}

/* Subsurface Lower Caustic Reflection */
.dive-sidebar-orb-caustic {
  position: absolute;
  bottom: 2px;
  left: 20px;
  right: 20px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.3) 0%, transparent 75%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

/* Sparse Evidence Particles */
.dive-sidebar-orb-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.dive-sidebar-orb-particles .p1 {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #38bdf8;
  top: 25%;
  left: 35%;
  box-shadow: 0 0 6px #38bdf8;
  animation: diveParticleFloat1 4s ease-in-out infinite alternate;
}

.dive-sidebar-orb-particles .p2 {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #22d3ee;
  bottom: 30%;
  right: 32%;
  box-shadow: 0 0 5px #22d3ee;
  animation: diveParticleFloat2 5s ease-in-out infinite alternate;
}

@keyframes diveParticleFloat1 {
  0% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(6px, -4px); opacity: 0.85; }
  100% { transform: translate(-4px, 5px); opacity: 0.45; }
}

@keyframes diveParticleFloat2 {
  0% { transform: translate(0, 0); opacity: 0.25; }
  50% { transform: translate(-5px, -6px); opacity: 0.75; }
  100% { transform: translate(4px, 4px); opacity: 0.35; }
}

.dive-sidebar-orb-reticle {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.22);
  pointer-events: none;
  animation: diveReticleSpin 24s linear infinite;
  z-index: 2;
}

@keyframes diveReticleSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Horizontal scanning beam (compat for drawer header) */
.dive-sidebar-orb-mini .dive-mini-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6);
  animation: diveScanHorizontal 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 4;
}

@keyframes diveScanHorizontal {
  0% { transform: translateX(-42px); }
  100% { transform: translateX(42px); }
}

/* Soft Translucent Curved Specular Reflection Layer */
.dive-sidebar-orb-specular {
  position: absolute;
  top: 5px;
  left: 16px;
  right: 16px;
  height: 32px;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.58) 0%, rgba(224, 242, 254, 0.22) 45%, rgba(186, 230, 253, 0.04) 75%, transparent 100%);
  pointer-events: none;
  z-index: 6;
  filter: blur(2.5px);
  transform: rotate(-7deg);
  transition: opacity 0.4s ease;
}

/* Caption underneath sidebar orb */
.dive-sidebar-core-caption {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.6px;
  margin-top: 8px;
  text-align: center;
}

/* 8 Lifecycle States for Container and Core Orb */
/* 1. IDLE */
.dive-sidebar-orb-container.state-idle {
  border-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 20px rgba(3, 105, 161, 0.22);
}
#diveAiSidebarOrbMini.state-idle {
  background: radial-gradient(circle at 45% 35%, #0c2747 0%, #081d38 28%, #030e20 62%, #01040a 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.45), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-idle .dive-center-node {
  box-shadow: 0 0 4px #ef4444, 0 0 10px rgba(220, 38, 38, 0.7), 0 0 16px rgba(185, 28, 28, 0.4);
}

/* 2. RETRIEVING */
.dive-sidebar-orb-container.state-retrieving {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.45);
}
#diveAiSidebarOrbMini.state-retrieving {
  background: radial-gradient(circle at 45% 35%, #0369a1 0%, #0284c7 30%, #082f49 65%, #010814 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.6), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-retrieving .dive-horizontal-scan-beam {
  animation-duration: 1.4s;
}
#diveAiSidebarOrbMini.state-retrieving .dive-center-node {
  animation-duration: 1.4s;
  box-shadow: 0 0 6px #ef4444, 0 0 13px rgba(239, 68, 68, 0.85), 0 0 20px rgba(185, 28, 28, 0.55);
}

/* 3. ANALYSING */
.dive-sidebar-orb-container.state-analysing {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45);
}
#diveAiSidebarOrbMini.state-analysing {
  background: radial-gradient(circle at 45% 35%, #1d4ed8 0%, #1e3a8a 35%, #0c1c44 70%, #010814 100%);
  border-color: #60a5fa;
  box-shadow: 0 0 28px rgba(96, 165, 250, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.6), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-analysing .dive-waveform-track {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 4px #60a5fa);
}
#diveAiSidebarOrbMini.state-analysing .dive-center-node {
  box-shadow: 0 0 7px #ef4444, 0 0 15px rgba(239, 68, 68, 0.9), 0 0 22px rgba(185, 28, 28, 0.6);
  animation-duration: 1.2s;
}
#diveAiSidebarOrbMini.state-analysing .dive-horizontal-scan-beam {
  animation-duration: 1.8s;
}

/* 4. RESPONDING */
.dive-sidebar-orb-container.state-responding {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.55);
}
#diveAiSidebarOrbMini.state-responding {
  background: radial-gradient(circle at 45% 35%, #0284c7 0%, #0369a1 35%, #073b64 70%, #010814 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.75), inset 0 2px 6px rgba(255, 255, 255, 0.7), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-responding .dive-waveform-track {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 4px #38bdf8);
}
#diveAiSidebarOrbMini.state-responding .dive-center-node {
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.95), 0 0 24px rgba(185, 28, 28, 0.65);
  animation-duration: 1.0s;
}
#diveAiSidebarOrbMini.state-responding .dive-horizontal-scan-beam {
  animation-duration: 1.2s;
}

/* 5. SUPPORTED (Deep stable navy/cobalt with restrained cyan optical highlights) */
.dive-sidebar-orb-container.state-supported {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.4);
}
#diveAiSidebarOrbMini.state-supported {
  background: radial-gradient(circle at 45% 35%, #0f2b4c 0%, #0c2340 35%, #051326 70%, #010814 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.55), inset 0 2px 6px rgba(255, 255, 255, 0.6), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-supported .dive-waveform-track {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 3px #38bdf8);
}
#diveAiSidebarOrbMini.state-supported .dive-center-node {
  background: #ef4444;
  box-shadow: 0 0 5px #ef4444, 0 0 10px rgba(220, 38, 38, 0.7), 0 0 16px rgba(185, 28, 28, 0.4);
}
#diveAiSidebarOrbMini.state-supported .dive-sidebar-orb-caustic {
  background: radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.3) 0%, transparent 75%);
}

/* 6. CONFLICTING (Deep blue base with subtle amber optical accents) */
.dive-sidebar-orb-container.state-conflicting {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
}
#diveAiSidebarOrbMini.state-conflicting {
  background: radial-gradient(circle at 45% 35%, #14223d 0%, #0d1b32 40%, #060e1d 75%, #01040a 100%);
  border-color: #fbbf24;
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.55), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-conflicting .dive-waveform-track {
  stroke: #fbbf24;
  filter: drop-shadow(0 0 3px #fbbf24);
}
#diveAiSidebarOrbMini.state-conflicting .dive-center-node {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444, 0 0 12px rgba(239, 68, 68, 0.8), 0 0 18px rgba(220, 38, 38, 0.5);
}
#diveAiSidebarOrbMini.state-conflicting .dive-sidebar-orb-caustic {
  background: radial-gradient(ellipse at 50% 100%, rgba(245, 158, 11, 0.3) 0%, transparent 75%);
}

/* 7. INSUFFICIENT (Cool muted slate/grey low-energy scan) */
.dive-sidebar-orb-container.state-insufficient {
  border-color: rgba(100, 116, 139, 0.35);
  box-shadow: 0 0 16px rgba(100, 116, 139, 0.25);
}
#diveAiSidebarOrbMini.state-insufficient {
  background: radial-gradient(circle at 45% 35%, #1e293b 0%, #151e2d 40%, #0a0f18 75%, #01040a 100%);
  border-color: #64748b;
  box-shadow: 0 0 16px rgba(100, 116, 139, 0.35), inset 0 2px 5px rgba(255, 255, 255, 0.25), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-insufficient .dive-waveform-track {
  stroke: #64748b;
  filter: drop-shadow(0 0 2px #64748b);
  opacity: 0.65;
}
#diveAiSidebarOrbMini.state-insufficient .dive-center-node {
  background: #dc2626;
  box-shadow: 0 0 3px #dc2626, 0 0 6px rgba(220, 38, 38, 0.45);
  opacity: 0.75;
}
#diveAiSidebarOrbMini.state-insufficient .dive-sidebar-orb-caustic {
  background: radial-gradient(ellipse at 50% 100%, rgba(148, 163, 184, 0.2) 0%, transparent 75%);
}

/* 8. ERROR / OUT OF SCOPE (Deep navy base with subtle ruby core influence) */
.dive-sidebar-orb-container.state-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.35);
}
#diveAiSidebarOrbMini.state-error {
  background: radial-gradient(circle at 45% 35%, #1f1422 0%, #160c18 40%, #0d0610 75%, #01040a 100%);
  border-color: #f87171;
  box-shadow: 0 0 26px rgba(248, 113, 113, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.45), inset 0 -6px 16px rgba(0, 0, 0, 0.85);
}
#diveAiSidebarOrbMini.state-error .dive-waveform-track {
  stroke: #f87171;
  filter: drop-shadow(0 0 3px #f87171);
}
#diveAiSidebarOrbMini.state-error .dive-center-node {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 18px rgba(239, 68, 68, 0.95), 0 0 28px rgba(185, 28, 28, 0.8);
}
#diveAiSidebarOrbMini.state-error .dive-sidebar-orb-caustic {
  background: radial-gradient(ellipse at 50% 100%, rgba(239, 68, 68, 0.35) 0%, transparent 75%);
}

/* Query Box in Sidebar */
.dive-sidebar-query-box {
  display: flex;
  gap: 4px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 3px 4px 3px 10px;
  align-items: center;
  transition: all 0.2s ease;
}
.dive-sidebar-query-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.dive-sidebar-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  color: #f8fafc;
  outline: none;
  min-width: 0;
  padding: 6px 0;
}
.dive-sidebar-input::placeholder {
  color: #64748b;
  font-size: 11px;
}

.dive-sidebar-submit-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.dive-sidebar-submit-btn:hover {
  background: #0369a1;
}

/* Sidebar Quick Prompts Chips */
.dive-sidebar-quick-prompts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dive-sidebar-chip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.dive-sidebar-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #f0f9ff;
  border-color: #38bdf8;
}

/* Sidebar Expand Trigger */
.dive-sidebar-expand-btn {
  background: rgba(56, 189, 248, 0.06);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 7px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  margin-top: 2px;
}
.dive-sidebar-expand-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
}

/* ==========================================================================
   ANCHORED DIVE AI CONSOLE DRAWER (#diveAiDrawer)
   ========================================================================== */

.dive-ai-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.dive-ai-drawer-backdrop::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  background: var(--navy);
  z-index: 0;
  pointer-events: none;
}

.dive-ai-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 280px;
  width: 680px;
  max-width: calc(100vw - 285px);
  background: #091322;
  border-right: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: -1px 0 0 var(--navy), 20px 0 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
}

.dive-drawer-header {
  padding: 16px 20px;
  background: #0c182c;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dive-drawer-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dive-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dive-drawer-brand h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.dive-drawer-tagline {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #64748b;
  letter-spacing: 0.6px;
  display: block;
}

.dive-drawer-close-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dive-drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: #ef4444;
}

.dive-drawer-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  color: #7dd3fc;
  background: rgba(2, 6, 23, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
}

.dive-drawer-prompts-row {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  background: #08111e;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  overflow-x: auto;
  scrollbar-width: thin;
}

.dive-drawer-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #070d18;
}

.dive-drawer-input-container {
  padding: 14px 20px;
  background: #0c182c;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  gap: 10px;
  align-items: center;
}

.dive-drawer-input {
  flex: 1;
  background: #030712;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.dive-drawer-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.dive-drawer-send-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* Responsive DIVE AI Module & Drawer Breakpoints */
@media (max-width: 950px) {
  .dive-ai-drawer-backdrop::before {
    display: none;
  }
  .dive-ai-drawer-panel {
    left: 0;
    width: 100%;
    max-width: 100%;
  }
  .dive-sidebar-module {
    max-width: 360px;
    margin: 16px auto;
  }
}

@media (max-width: 600px) {
  .dive-sidebar-module {
    max-width: 100%;
    margin: 12px 0;
    padding: 12px 10px;
  }
  .dive-sidebar-orb-container {
    width: 124px;
    height: 124px;
  }
  #diveAiSidebarOrbMini {
    width: 108px;
    height: 108px;
  }
}

/* ==========================================================================
   QUICK PROMPTS PILLS
   ========================================================================== */

.dive-quick-prompts-container {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.dive-quick-prompts-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.dive-quick-prompts-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dive-prompt-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.dive-prompt-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   CHAT CONVERSATION CONTAINER
   ========================================================================== */

.dive-chat-feed {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
}

/* Custom scrollbar within feed */
.dive-chat-feed::-webkit-scrollbar {
  width: 6px;
}
.dive-chat-feed::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}
.dive-chat-feed::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}
.dive-chat-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

/* User Message */
.dive-msg-user {
  align-self: flex-end;
  max-width: 82%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dive-user-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 18px 18px 4px 18px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  font-weight: 500;
}

/* Assistant Message */
.dive-msg-assistant {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Base Result Card */
.dive-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.dive-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dive-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dive-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
}

.dive-badge-supported {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dive-badge-conflicting {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dive-badge-insufficient {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.dive-badge-out-of-scope {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.dive-linked-chip {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dive-linked-chip:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.dive-card-answer {
  font-size: 14.5px;
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 14px;
  font-weight: 450;
}

.dive-card-why {
  background: rgba(30, 41, 59, 0.5);
  border-left: 3px solid #38bdf8;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.dive-card-why b {
  color: #38bdf8;
  font-weight: 700;
}

/* Big Metric Callout (Fact Cards) */
.dive-metric-box {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.dive-metric-val {
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.dive-metric-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.dive-metric-context {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  margin-left: auto;
}

/* QUANTITY Card */
.dive-quantity-card {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.dive-quantity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dive-qty-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}
.dive-qty-delta-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
}
.dive-quantity-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dive-qty-item {
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 120px;
}
.dive-qty-item.highlight {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(3, 105, 161, 0.2);
}
.dive-qty-item.exposure {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  margin-left: auto;
}
.dive-qty-label {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dive-qty-value {
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  font-weight: 800;
  color: #e2e8f0;
  margin: 3px 0;
}
.dive-qty-value.highlight {
  color: #38bdf8;
}
.dive-qty-value.exposure {
  color: #fbbf24;
}
.dive-qty-value small {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.dive-qty-doc {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}
.dive-qty-arrow {
  font-size: 16px;
  color: #64748b;
  font-weight: 700;
}

/* SUPPLIER Card */
.dive-supplier-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.dive-supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dive-supplier-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
}
.dive-supplier-scope {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.dive-supplier-ref {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}
.dive-supplier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .dive-supplier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dive-supplier-cell {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}
.dive-cell-lbl {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dive-cell-val {
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 3px;
}
.dive-cell-val.highlight {
  color: #38bdf8;
}
.dive-cell-val.warning {
  color: #fbbf24;
}

/* Conflict Dual Comparison Cards */
.dive-conflict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .dive-conflict-grid {
    grid-template-columns: 1fr;
  }
}

.dive-conflict-source-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
}

.dive-conflict-doc-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dive-conflict-claim {
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.45;
  font-family: var(--font-mono, monospace);
}

/* Side-by-Side Comparison Grid */
.dive-comparison-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dive-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dive-comparison-table th {
  background: rgba(30, 41, 59, 0.8);
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: #38bdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dive-comparison-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

/* Change Delta Highlight Box */
.dive-delta-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dive-delta-exposure {
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  font-family: var(--font-mono, monospace);
}

/* Itemized List Grid */
.dive-itemized-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.dive-list-entry {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Evidence Sources Section */
.dive-evidence-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dive-evidence-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.dive-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.dive-evidence-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dive-evidence-card:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.dive-evidence-card-header {
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dive-evidence-quote {
  color: #94a3b8;
  font-style: italic;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Action Box */
.dive-action-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dive-action-box b {
  color: #38bdf8;
  white-space: nowrap;
}

/* Card Footer / Actions */
.dive-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

.dive-copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dive-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* Follow-Up Suggested Chips */
.dive-follow-ups {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dive-follow-up-chip {
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dive-follow-up-chip:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
}

/* ==========================================================================
   INPUT ROW (PROMINENT & ACCESSIBLE)
   ========================================================================== */

.dive-input-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.dive-input-row:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.dive-query-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.dive-query-input::placeholder {
  color: #64748b;
}

.dive-send-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dive-send-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.dive-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   WORKSPACE SHELL SCROLL ARCHITECTURE & DESKTOP SIDEBAR LOCK
   ========================================================================== */

body.app-active {
  background: var(--light);
}

body.app-active section.landing,
body.app-active section.public,
body.app-active .finalcta {
  display: none !important;
}

@media (min-width: 951px) {
  html:has(body.app-active),
  body.app-active {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    margin: 0;
  }

  body.app-active .app-shell {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    background: linear-gradient(to right, var(--navy) 280px, var(--light) 280px) !important;
  }

  body.app-active .app-shell aside {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    background: var(--navy) !important;
    color: #dcecf1 !important;
    padding: 24px 14px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
  }

  #td-menu,
  body.app-active #td-menu {
    display: none !important;
  }

  body.app-active .app-shell aside .brand {
    flex-shrink: 0 !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
    display: block !important;
  }

  /* Single internal scroll container holding both Menu + DIVE AI */
  .sidebar-scroll-region,
  body.app-active .app-shell aside .sidebar-scroll-region {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-right: 4px !important;
    padding-bottom: 24px !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent !important;
  }

  .sidebar-scroll-region::-webkit-scrollbar,
  body.app-active .app-shell aside .sidebar-scroll-region::-webkit-scrollbar {
    width: 4px !important;
  }
  .sidebar-scroll-region::-webkit-scrollbar-track,
  body.app-active .app-shell aside .sidebar-scroll-region::-webkit-scrollbar-track {
    background: transparent !important;
  }
  .sidebar-scroll-region::-webkit-scrollbar-thumb,
  body.app-active .app-shell aside .sidebar-scroll-region::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 4px !important;
  }

  /* Flat navigation menu: zero dropdowns, zero collapse */
  .app-shell aside nav,
  body.app-active .app-shell aside nav {
    flex: none !important;
    min-height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Standard navigation links: strictly flat, clean hover/active states */
  .app-shell aside nav a,
  body.app-active .app-shell aside nav a {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    color: #9fb5c0 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .app-shell aside nav a:hover,
  body.app-active .app-shell aside nav a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
  }

  .app-shell aside nav a.active,
  body.app-active .app-shell aside nav a.active {
    color: #efffff !important;
    background: #1a3148 !important;
    font-weight: 700 !important;
  }

  /* Strict prevention: ensure no arrows, chevrons, or dropdown indicators */
  .app-shell aside nav a::before,
  .app-shell aside nav a::after,
  body.app-active .app-shell aside nav a::before,
  body.app-active .app-shell aside nav a::after {
    content: none !important;
    display: none !important;
  }

  /* DIVE AI module: natural flow item directly below menu, ending the scroll */
  .app-shell aside .dive-sidebar-module,
  body.app-active .app-shell aside .dive-sidebar-module {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: static !important;
  }

  body.app-active .app-shell main {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    padding: 36px 48px !important;
    box-sizing: border-box !important;
    scroll-behavior: smooth;
  }
}

@media (max-width: 950px) {
  .app-shell aside .sidebar-scroll-region {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* ==========================================================================
   PRIORITY EXECUTIVE RIBBON (PART 14)
   ========================================================================== */

.td-priority-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.04);
}

.td-priority-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid #edf2f7;
  padding-right: 12px;
}

.td-priority-card:last-of-type {
  border-right: none;
}

.td-priority-kicker {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1.1px;
  color: var(--muted);
  text-transform: uppercase;
}

.td-priority-card strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.td-priority-card strong.riskHigh {
  color: var(--red);
}

.td-priority-card small {
  font-size: 11px;
  color: var(--muted);
}

.td-priority-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  justify-content: center;
  padding-left: 8px;
  min-width: 140px;
  box-sizing: border-box;
}

.td-btn-download-ribbon {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.td-btn-toggle-all {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: all 0.15s ease;
}

.td-btn-toggle-all:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ==========================================================================
   ORDERED ACCORDION INTELLIGENCE CARDS (PARTS 8-15)
   ========================================================================== */

.td-accordion-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.td-acc-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(11, 18, 32, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-acc-card:hover {
  border-color: #cbd5e1;
}

.td-acc-card.is-open {
  box-shadow: 0 4px 14px rgba(11, 18, 32, 0.06);
  border-color: #94a3b8;
}

.td-acc-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
  outline: none;
}

.td-acc-header:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.td-acc-header:hover {
  background: #f8fafc;
}

.td-acc-card.is-open .td-acc-header {
  border-bottom-color: var(--line);
  background: #f8fafc;
}

.td-acc-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.td-acc-num {
  font: 700 13px 'DM Mono', monospace;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.td-acc-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.2px;
}

.td-acc-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.4;
}

.td-acc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.td-acc-badge {
  font: 700 11px 'DM Mono', monospace;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.td-acc-badge.badge-sufficient {
  background: #dcfce7;
  color: #15803d;
}

.td-acc-badge-critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.td-acc-chevron {
  font-size: 11px;
  color: #94a3b8;
  display: inline-block;
  transition: transform 0.2s ease;
  width: 14px;
  text-align: center;
}

.td-acc-body {
  padding: 20px 22px;
  background: #ffffff;
}

.td-acc-body[hidden] {
  display: none !important;
}

/* ==========================================================================
   STANDALONE DIVE AI CONSOLE CARD (PART 14)
   ========================================================================== */

.td-dive-ai-standalone-card {
  margin-top: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.td-dive-ai-standalone-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
}

.td-dive-ai-standalone-card.is-open {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
}

.td-dive-ai-standalone-card .td-acc-header {
  background: linear-gradient(90deg, #f8fafc 0%, #f0f9ff 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding: 18px 24px;
}

.td-dive-ai-standalone-card.is-open .td-acc-header {
  background: linear-gradient(90deg, #f1f5f9 0%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.td-dive-ai-standalone-card .td-acc-num {
  font-family: 'DM Mono', monospace;
  font-weight: 800;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.td-dive-ai-standalone-card .td-acc-title {
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.td-dive-ai-standalone-card .td-acc-desc {
  color: #475569;
  font-size: 12.5px;
}

.td-dive-ai-standalone-card .td-acc-body {
  padding: 24px;
  background: #020617;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.dive-ai-standalone-console {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dive-ai-standalone-console .dive-ai-core {
  background: radial-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.99) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
}

@media (max-width: 768px) {
  .td-dive-ai-standalone-card .td-acc-header {
    padding: 14px 16px;
  }
  .td-dive-ai-standalone-card .td-acc-body {
    padding: 16px 12px;
  }
  .dive-ai-standalone-console .dive-ai-core {
    padding: 16px 14px;
  }
}

/* Responsive adjustments */
@media (max-width: 950px) {
  .td-priority-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
  }
  .td-priority-card {
    border-right: none;
  }
  .td-priority-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-left: 0;
  }
  .td-priority-actions button {
    flex: 1;
  }
  .td-acc-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .td-acc-meta {
    width: 100%;
    justify-content: space-between;
  }
  .td-acc-body {
    padding: 16px 12px;
  }
}

.td-print-header,
.td-print-footer {
  display: none !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    box-sizing: border-box !important;
  }
  html,
  body,
  .app-shell,
  body.app-active .app-shell,
  body.is-printing-report .app-shell,
  body.app-active .app-shell main,
  body.is-printing-report .app-shell main,
  .app-shell main,
  .app-content {
    background: #ffffff !important;
    color: #0b1523 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
    display: block !important;
    grid-template-columns: none !important;
  }

  /* Hide interactive controls, navigation, topbars, and screen-only drawers */
  body > *:not(.app-shell),
  body.app-active .app-shell aside,
  body.app-active .app-shell aside *,
  body.is-printing-report .app-shell aside,
  body.is-printing-report .app-shell aside *,
  body .app-shell aside,
  .app-shell aside,
  aside,
  .brand-sidebar,
  #sidebarScrollRegion,
  #diveAiSidebarModule,
  header.topnav,
  .topnav,
  nav,
  .actions,
  .filters,
  .td-priority-actions,
  .dive-ai-drawer-backdrop,
  .commercial-drawer-backdrop,
  .modal-backdrop,
  #processingTimeline,
  #btnDownloadReport,
  #btnDownloadReportRibbon,
  #btnDownloadDashboard,
  #btnDownloadDashboardRibbon,
  .td-btn-download-dashboard,
  #report,
  button,
  .btn,
  .td-btn,
  input,
  select,
  textarea,
  .tabs,
  .pills,
  .td-toggle-group,
  .td-btn-toggle-all,
  .td-acc-chevron,
  .drawer-close,
  .review,
  .edit,
  .saveEdit,
  .btn-inspect,
  .btn-inspect-operational,
  .btn-status-update,
  .risk-link,
  section.landing,
  section.public,
  .finalcta,
  header#overview,
  section.stats,
  section.workspace,
  section.reports,
  #td-route-content,
  #td-route-auth,
  #decisionReadiness,
  .app-shell main > *:not(#intelligence) {
    display: none !important;
  }

  body.app-active .app-shell aside,
  body.is-printing-report .app-shell aside,
  .app-shell aside,
  aside {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Authoritative Intelligence Dashboard Root */
  #intelligence,
  .results#intelligence {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Dedicated Report Cover / Header in Print */
  .td-print-header {
    display: block !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #0f172a !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .td-print-brand-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
  }
  .td-print-logo-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .td-print-brand-mark {
    color: #0284c7 !important;
    font-size: 20px !important;
  }
  .td-print-brand-name {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #0f172a !important;
  }
  .td-print-brand-name strong {
    color: #0284c7 !important;
  }
  .td-print-tagline {
    font-family: 'DM Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.8px !important;
  }
  .td-print-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
  }
  .td-print-meta-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }
  .td-print-meta-label {
    font-family: 'DM Mono', monospace !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
  }
  .td-print-meta-value {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .td-print-assurance-banner {
    font-size: 9.5px !important;
    color: #0369a1 !important;
    background: #f0f9ff !important;
    border-left: 3px solid #0284c7 !important;
    padding: 6px 10px !important;
    border-radius: 0 4px 4px 0 !important;
  }

  /* Result Header and Notice */
  .resultHead {
    display: block !important;
    margin-bottom: 14px !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .resultHead > div {
    display: block !important;
  }
  .resultHead h2 {
    font-size: 16px !important;
    color: #0f172a !important;
    margin: 4px 0 !important;
  }
  .resultHead .kicker {
    font-size: 10px !important;
    color: #64748b !important;
    margin: 0 !important;
  }
  .resultHead .sub {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 0 !important;
  }
  .notice {
    background: #f0fdfa !important;
    border-left: 3px solid #0d9488 !important;
    color: #134e4a !important;
    font-size: 10.5px !important;
    margin: 10px 0 16px !important;
    padding: 8px 12px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Priority Ribbon */
  .td-priority-ribbon {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .td-priority-card {
    border-right: 1px solid #e2e8f0 !important;
    padding-right: 12px !important;
  }
  .td-priority-card:last-child,
  .td-priority-card:nth-child(4) {
    border-right: none !important;
  }
  .td-priority-kicker {
    font-size: 9px !important;
    color: #64748b !important;
  }
  .td-priority-card strong {
    font-size: 17px !important;
    color: #0f172a !important;
    display: block !important;
    margin-top: 2px !important;
  }
  .td-priority-card strong.riskHigh {
    color: #dc2626 !important;
  }
  .td-priority-card small {
    font-size: 10.5px !important;
    color: #64748b !important;
    display: block !important;
  }

  /* Ordered Accordion Intelligence Deck */
  .td-accordion-deck {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .td-acc-card {
    display: block !important;
    visibility: visible !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    margin-bottom: 16px !important;
    overflow: visible !important;
  }
  .td-acc-header {
    background: #f8fafc !important;
    color: #0b1523 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 12px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
  .td-acc-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .td-acc-num {
    font: 700 12px 'DM Mono', monospace !important;
    color: #0d9488 !important;
    background: #ccfbf1 !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
  }
  .td-acc-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }
  .td-acc-desc {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 2px 0 0 !important;
  }
  .td-acc-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .td-acc-body,
  .td-acc-body[hidden] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #0b1523 !important;
    padding: 16px 20px !important;
  }

  /* Status Badges, LEDs, and Pills */
  .td-acc-badge {
    font: 700 10.5px 'DM Mono', monospace !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
  }
  .td-acc-badge.badge-sufficient {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
  }
  .td-acc-badge-critical {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
  }
  .td-section-leds {
    display: inline-flex !important;
    gap: 4px !important;
    align-items: center !important;
  }
  .td-led {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    display: inline-block !important;
    opacity: 0.25 !important;
  }
  .td-led.is-active {
    opacity: 1 !important;
  }
  .td-led-red { background: #ef4444 !important; }
  .td-led-yellow { background: #f59e0b !important; }
  .td-led-green { background: #10b981 !important; }

  /* Tables, Findings, Grids */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
    font-size: 10.5px !important;
    break-inside: auto !important;
  }
  th {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-weight: 700 !important;
    padding: 6px 8px !important;
    text-align: left !important;
  }
  td {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 8px !important;
    color: #1e293b !important;
  }
  tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  article.finding {
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    background: #ffffff !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  article.finding.high {
    border-left-color: #ef4444 !important;
  }
  .finding .evidence {
    display: block !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    font-family: 'DM Mono', monospace !important;
    font-size: 9.5px !important;
    color: #334155 !important;
    margin-top: 6px !important;
  }
  .operational-kpi-grid,
  .pricing-kpi-grid,
  .risk-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .operational-kpi-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    background: #f8fafc !important;
  }
  svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Print Footer */
  .td-print-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 28px !important;
    padding-top: 10px !important;
    border-top: 1px solid #cbd5e1 !important;
    font-family: 'DM Mono', monospace !important;
    font-size: 9px !important;
    color: #64748b !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
  }
}

/* ==========================================================================
   TENDERDIVE APPROVED BRAND IDENTITY SYSTEM
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand .td-brand-logo,
.brand .td-brand-mark,
.brand img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.topnav .brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}

.topnav .brand .td-brand-logo {
  height: 48px;
  width: auto;
  max-height: 48px;
  object-fit: contain;
}

.app-shell aside .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}

.app-shell aside .brand .td-brand-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.app-shell aside .brand small {
  display: block;
  font: 700 8.5px 'DM Mono', monospace;
  letter-spacing: 1.4px;
  color: #7594a2;
  margin-top: 4px;
  text-transform: uppercase;
}

.td-auth-card .brand {
  display: inline-block;
  margin-bottom: 18px;
}

.td-auth-card .brand .td-brand-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.td-auth-card {
  background: #0d1527 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

.td-auth-card h2 {
  color: #f8fafc !important;
}

.td-auth-card .sub {
  color: #94a3b8 !important;
}

.td-auth-card label {
  color: #94a3b8 !important;
}

.td-auth-card input {
  background: #070d19 !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

.td-auth-card .td-link {
  color: #38bdf8 !important;
}

@media (max-width: 768px) {
  .topnav .brand .td-brand-logo {
    height: 40px;
  }
}

@media (max-width: 600px) {
  .topnav .brand .td-brand-logo {
    height: 36px;
  }
}

/* ==========================================================================
   TENDERDIVE MASTER PRODUCTION UX & INTELLIGENCE REFINEMENTS
   ========================================================================== */

#processingTimeline,
.td-processing-card {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 !important;
  box-sizing: border-box !important;
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(2, 132, 199, 0.12) !important;
  color: #f8fafc !important;
  overflow: hidden !important;
}

.td-processing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.td-processing-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-processing-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.td-processing-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.td-processing-progress-bar {
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.td-processing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #00f0ff 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.td-processing-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.td-stage-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #131d33;
  border: 1px solid #1e293b;
  transition: all 0.25s ease;
}

.td-stage-step.is-completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.td-stage-step.is-active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.td-stage-step.is-pending {
  opacity: 0.55;
}

.td-stage-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: #1e293b;
  color: #94a3b8;
}

.td-stage-step.is-completed .td-stage-icon {
  background: #10b981;
  color: #ffffff;
}

.td-stage-step.is-active .td-stage-icon {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 8px #00f0ff;
}

.td-stage-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tdSpin 0.8s linear infinite;
}

@keyframes tdSpin {
  to { transform: rotate(360deg); }
}

.td-stage-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.td-stage-label {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.td-stage-detail {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.td-stage-step.is-active .td-stage-detail {
  color: #38bdf8;
}

/* 2. Download Report Button */
.td-btn-download-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.td-btn-download-report:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
}

.td-btn-download-report:active:not(:disabled) {
  transform: translateY(0);
}

.td-btn-download-report:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

.td-report-icon {
  font-size: 14px;
  line-height: 1;
}

.td-btn-download-ribbon {
  margin-right: 8px;
}

.td-btn-download-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.td-btn-download-dashboard:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
}

.td-btn-download-dashboard:active:not(:disabled) {
  transform: translateY(0);
}

.td-btn-download-dashboard:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

/* 3. High-Contrast Expand / Collapse All Buttons */
.td-btn-toggle-all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.td-btn-toggle-all:hover {
  background: #1e293b !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

/* 4. Section Risk LED Indicators (Tiny, background-free status LEDs with subtle pulse) */
.td-risk-led-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  margin-right: 10px;
  vertical-align: middle;
}

.td-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.25;
  transition: all 0.25s ease;
}

.td-led-red {
  background: #ef4444;
}

.td-led-yellow {
  background: #f59e0b;
}

.td-led-green {
  background: #10b981;
}

.td-led-red.is-active {
  opacity: 1;
  box-shadow: 0 0 6px #ef4444;
  animation: tdLedBreathe 2.4s ease-in-out infinite;
}

.td-led-yellow.is-active {
  opacity: 1;
  box-shadow: 0 0 6px #f59e0b;
  animation: tdLedBreathe 2.4s ease-in-out infinite;
}

.td-led-green.is-active {
  opacity: 1;
  box-shadow: 0 0 6px #10b981;
  animation: tdLedBreathe 2.4s ease-in-out infinite;
}

@keyframes tdLedBreathe {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .td-led.is-active {
    animation: none !important;
  }
}

/* 5. Tender History View (Authenticated) */
.td-tenders-view {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.td-tenders-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.td-tenders-title-area h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.td-tenders-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.td-tenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.td-tender-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.td-tender-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

.td-tender-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.td-tender-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.td-tender-card-client {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.td-tender-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.td-tender-badge.badge-analyzed {
  background: #dcfce7;
  color: #15803d;
}

.td-tender-badge.badge-draft {
  background: #f1f5f9;
  color: #475569;
}

.td-tender-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.td-meta-chip {
  font-size: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
  color: #475569;
}

.td-meta-chip.chip-high-risk {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  font-weight: 600;
}

.td-tender-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.td-btn-open-workspace {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.td-btn-open-workspace:hover {
  background: #0369a1;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.td-empty-tenders {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  grid-column: 1 / -1;
}

.td-empty-tenders h3 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 8px;
}

.td-empty-tenders p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

/* 6. Landing Page DIVE AI Triple-Brain Visual */
.td-triple-brain-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  width: 100%;
  box-sizing: border-box;
}

.td-brain-chip {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 10px 11px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.td-brain-chip.td-brain-nova:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
}

.td-brain-chip.td-brain-edge:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.16);
}

.td-brain-chip.td-brain-veri:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.16);
}

.td-brain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.td-brain-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.td-brain-nova .td-brain-pulse {
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.td-brain-edge .td-brain-pulse {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.td-brain-veri .td-brain-pulse {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.td-brain-badge {
  font-size: 8px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.td-brain-nova .td-brain-badge {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.td-brain-edge .td-brain-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.td-brain-veri .td-brain-badge {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.td-brain-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.td-brain-title {
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: #f8fafc;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.td-brain-role {
  font-size: 9px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
}

@media (max-width: 950px) {
  .td-triple-brain-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .td-brain-chip.td-brain-veri {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .td-triple-brain-cluster {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .td-brain-chip.td-brain-veri {
    grid-column: auto;
  }
}





/* ==========================================================================
   MEGA FINE-TUNE: PRODUCTION UX ENHANCEMENTS
   ========================================================================== */

/* Segmented Toggle Group for Expand / Collapse All */
.td-toggle-group {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}

.td-toggle-group .td-btn-toggle-all {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  border-radius: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.td-toggle-group .td-btn-toggle-all:first-child {
  border-right: 1px solid #e2e8f0 !important;
}

.td-toggle-group .td-btn-toggle-all:hover,
.td-toggle-group .td-btn-toggle-all:focus-visible {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Priority Ribbon Responsive Alignment */
@media (max-width: 1200px) {
  .td-priority-ribbon {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .td-priority-actions {
    grid-column: 1 / -1;
    justify-content: flex-start !important;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
  }
}

@media (max-width: 640px) {
  .td-priority-ribbon {
    grid-template-columns: 1fr !important;
  }
  .td-priority-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  .td-toggle-group {
    width: 100%;
    display: flex;
  }
  .td-toggle-group .td-btn-toggle-all {
    flex: 1;
    text-align: center;
  }
}


/* ==========================================================================
   10-STAGE CONSTRUCTION TENDER INTELLIGENCE ENGINE — WORKFLOW TRAIN
   ========================================================================== */

.td-engine-workflow-section {
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  padding: 80px 0 72px;
  background: radial-gradient(circle at 50% 20%, rgba(14, 28, 54, 0.45) 0%, rgba(7, 13, 24, 0.98) 70%), #070d18;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.td-engine-header {
  max-width: 860px;
  margin: 0 auto 36px;
  padding: 0 24px;
  text-align: center;
}

.td-engine-header .kicker {
  color: #00f0ff;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.td-engine-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #f8fafc;
  margin: 8px 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.td-engine-sub {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto;
}

/* Train Assembly Container */
.workflow-train-assembly {
  position: relative;
  width: 100%;
  margin: 32px 0 0;
}

/* Continuous Horizontal Train Viewport */
.workflow-train-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 0 50px;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 5%,
    rgba(0, 0, 0, 0.75) 16%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0.75) 84%,
    rgba(0, 0, 0, 0.25) 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 5%,
    rgba(0, 0, 0, 0.75) 16%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0.75) 84%,
    rgba(0, 0, 0, 0.25) 95%,
    transparent 100%
  );
}

.workflow-train-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: workflowTrainRoll 60s linear infinite;
}

.workflow-train-viewport:hover .workflow-train-track {
  animation-play-state: paused;
}

@keyframes workflowTrainRoll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.train-carriages-group {
  display: flex;
  align-items: stretch;
}

/* Individual Train Carriage */
.train-carriage.td-engine-stage {
  width: 350px;
  min-width: 350px;
  max-width: 350px;
  height: 220px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(13, 22, 41, 0.96) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease,
              opacity 0.45s ease,
              filter 0.45s ease;
  user-select: text;
  opacity: 0.52;
  filter: contrast(0.92);
  z-index: 2;
}

/* Symmetrical Proximity Levels */
.train-carriage.is-adjacent-carriage {
  opacity: 0.85;
  border-color: rgba(56, 189, 248, 0.3);
  filter: contrast(0.98);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.train-carriage.is-distant-carriage {
  opacity: 0.45;
  border-color: rgba(56, 189, 248, 0.14);
  filter: contrast(0.88);
}

.train-carriage.is-far-carriage {
  opacity: 0.2;
  border-color: rgba(56, 189, 248, 0.06);
  filter: contrast(0.8);
}

.train-carriage:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.2), inset 0 1px 0 rgba(0, 240, 255, 0.3);
}

/* Active Highlight with Center Pop when passing center focal area */
.train-carriage.is-active-carriage {
  opacity: 1 !important;
  filter: contrast(1) !important;
  border-color: #00f0ff;
  z-index: 6;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.6),
              0 14px 36px rgba(0, 240, 255, 0.22),
              0 0 45px rgba(0, 240, 255, 0.12),
              inset 0 1px 0 rgba(0, 240, 255, 0.5);
  animation: carriageCenterPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subtle cyan illumination beneath the active center carriage */
.train-carriage.is-active-carriage::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 12%;
  right: 12%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.42) 0%, rgba(0, 240, 255, 0) 70%);
  filter: blur(5px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

@keyframes carriageCenterPop {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(56, 189, 248, 0.35);
  }
  60% {
    transform: translateY(-10px) scale(1.028);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.75),
                0 16px 42px rgba(0, 240, 255, 0.28),
                0 0 50px rgba(0, 240, 255, 0.16),
                inset 0 1px 0 rgba(0, 240, 255, 0.6);
    border-color: #00f0ff;
  }
  100% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.6),
                0 14px 36px rgba(0, 240, 255, 0.22),
                0 0 45px rgba(0, 240, 255, 0.12),
                inset 0 1px 0 rgba(0, 240, 255, 0.5);
    border-color: #00f0ff;
  }
}

.train-carriage.is-active-carriage .td-engine-num {
  background: rgba(0, 240, 255, 0.22);
  color: #ffffff;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.train-carriage.is-active-carriage .carriage-beacon {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

/* Carriage Roof & Telemetry */
.carriage-roof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.carriage-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.carriage-id-tag {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  text-transform: uppercase;
}

.carriage-vent {
  width: 24px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #334155, #334155 3px, transparent 3px, transparent 6px);
  border-radius: 2px;
}

/* Carriage Body */
.carriage-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.carriage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.td-engine-num {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 13px;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  letter-spacing: 0.05em;
}

.td-engine-tag {
  font-family: var(--font-mono, 'DM Mono', monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  white-space: nowrap;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-engine-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.td-engine-content p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carriage Chassis & Bogie */
.carriage-chassis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.bogie-pad {
  width: 22px;
  height: 5px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 2px;
}

.bogie-conduit {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  margin: 0 12px;
}

/* Mechanical Coupler Between Carriages */
.carriage-coupler {
  width: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.coupler-bar {
  flex-grow: 1;
  height: 3px;
  background: #1e293b;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #0f172a;
}

.coupler-joint {
  width: 10px;
  height: 14px;
  background: #0f172a;
  border: 1px solid #38bdf8;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
  position: relative;
}

.coupler-joint::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: #00f0ff;
  border-radius: 50%;
}

/* Restrained Continuous Rail System */
.train-rail-system {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 24px;
  pointer-events: none;
  z-index: 1;
}

.rail-power-conduit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.4) 50%, rgba(0, 240, 255, 0.1) 100%);
}

.rail-tracks-bed {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 14px;
}

.rail-guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rail-guide.rail-top {
  top: 0;
}

.rail-guide.rail-bottom {
  bottom: 0;
}

.rail-ties-line {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(90deg, #1e293b, #1e293b 4px, transparent 4px, transparent 20px);
  opacity: 0.4;
}

.rail-data-pulse {
  position: absolute;
  top: 5px;
  left: 0;
  width: 160px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  border-radius: 2px;
  animation: trainPulseConduit 6s linear infinite;
  opacity: 0.6;
}

@keyframes trainPulseConduit {
  0% { left: -160px; }
  100% { left: 100%; }
}


/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .train-carriage.td-engine-stage {
    width: 310px;
    min-width: 310px;
    max-width: 310px;
  }
  .carriage-coupler {
    width: 24px;
    min-width: 24px;
  }
}

@media (max-width: 640px) {
  .td-engine-workflow-section {
    padding: 60px 0 52px;
  }
  .td-engine-header h2 {
    font-size: 26px;
  }
  .td-engine-sub {
    font-size: 13.5px;
  }
  .train-carriage.td-engine-stage {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    height: 230px;
    padding: 12px 14px;
  }
  .carriage-coupler {
    width: 20px;
    min-width: 20px;
  }
  .td-engine-content h3 {
    font-size: 14.5px;
  }
  .td-engine-content p {
    font-size: 11.5px;
    line-height: 1.45;
  }
}

/* Accessibility & Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .workflow-train-viewport {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    padding-bottom: 20px;
  }
  .workflow-train-track {
    animation: none !important;
    transform: none !important;
  }
  .train-carriages-clone {
    display: none !important;
  }
  .train-carriage.is-active-carriage {
    transform: none !important;
    animation: none !important;
  }
  .train-carriage {
    opacity: 1 !important;
    filter: none !important;
  }
  .rail-data-pulse {
    display: none !important;
  }
  .train-carriages-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
  }
  .carriage-coupler {
    display: none !important;
  }
  .train-carriage.td-engine-stage {
    width: calc(50% - 16px) !important;
    min-width: 280px !important;
    max-width: 480px !important;
    height: auto !important;
    transform: none !important;
  }
  .train-rail-system {
    display: none !important;
  }
}

/* Horizontal Connected Processing Pipeline */
.td-proc-horizontal {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  position: relative !important;
  margin-top: 12px !important;
  padding-top: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.td-proc-rail {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  right: 20px !important;
  height: 2px !important;
  background: #1e293b !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.td-proc-rail-progress {
  height: 100% !important;
  background: linear-gradient(90deg, #10b981 0%, #00f0ff 100%) !important;
  transition: width 0.4s ease !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
}

.td-proc-horizontal .td-stage-step {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 5px !important;
  padding: 8px 6px !important;
  border-radius: 6px !important;
  background: #131d33 !important;
  border: 1px solid #1e293b !important;
  position: relative !important;
  z-index: 2 !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
}

.td-proc-horizontal .td-stage-step.is-completed {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: #131d33 !important;
}

.td-proc-horizontal .td-stage-step.is-completed .td-stage-icon {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.td-proc-horizontal .td-stage-step.is-active {
  border-color: #00f0ff !important;
  background: #131d33 !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22) !important;
}

.td-proc-horizontal .td-stage-step.is-active .td-stage-icon {
  border-color: #00f0ff !important;
  color: #00f0ff !important;
}

.td-proc-horizontal .td-stage-step.is-pending {
  opacity: 0.55 !important;
}

.td-proc-horizontal .td-stage-step.is-failed {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25) !important;
  opacity: 1 !important;
}

.td-proc-horizontal .td-stage-meta {
  align-items: center !important;
  text-align: center !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.td-proc-step-num,
.td-stage-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  font-family: var(--font-mono, 'DM Mono', monospace) !important;
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
  flex-shrink: 0 !important;
}

.td-proc-step-label,
.td-stage-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #f1f5f9 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
  text-align: center !important;
}

.td-proc-step-desc,
.td-stage-detail {
  display: block !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
  text-align: center !important;
}

@media (max-width: 950px) and (min-width: 601px) {
  .td-proc-horizontal {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 0 !important;
  }
  .td-proc-rail {
    display: none !important;
  }
  .td-proc-horizontal .td-stage-step {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 8px 6px !important;
    min-width: 0 !important;
  }
  .td-proc-horizontal .td-stage-meta {
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .td-proc-horizontal {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .td-proc-rail {
    display: none !important;
  }
  .td-proc-horizontal .td-stage-step {
    flex: 0 0 150px !important;
    min-width: 150px !important;
    max-width: 165px !important;
    scroll-snap-align: start !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 8px 6px !important;
  }
  .td-proc-horizontal .td-stage-meta {
    align-items: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   PUBLIC SITE HEADER & NAVIGATION (Home, About, Platform, Contact)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .topnav {
  height: 78px;
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.site-header .topnav .brand {
  font-size: 18px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}
.site-header .topnav .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-header .topnav .nav-link {
  color: #b5c8d4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.site-header .topnav .nav-link:hover {
  color: #ffffff;
}
.site-header .topnav .nav-link.active {
  color: var(--cyan);
  font-weight: 700;
}
.site-header .topnav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
}
.site-header .topnav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .site-header .topnav {
    height: auto;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-header .topnav .nav-links {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto;
    width: 100%;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-header .topnav .nav-link {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   DEDICATED ABOUT US & CONTACT PAGES (/about, /contact)
   ========================================================================== */
.about-page,
.contact-page {
  color: #e7f2f5;
  background: var(--navy);
  overflow: hidden;
  position: relative;
  min-height: calc(100vh - 78px);
  padding-bottom: 90px;
}
.about-ambient {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, rgba(14, 25, 43, 0) 70%);
  pointer-events: none;
}
.about-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(128, 168, 188, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 168, 188, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.about-hero {
  padding: 64px 0 46px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 48px;
}
.about-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.about-kicker-badge {
  font: 700 9px/1 'DM Mono', monospace;
  letter-spacing: 1.1px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.about-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 0 0 16px;
  color: #f8fafc;
  max-width: 900px;
}
.about-lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 780px;
  margin: 0;
}
.about-section {
  margin-bottom: 64px;
}
.about-section-header {
  margin-bottom: 26px;
}
.about-section-header h2 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #f1f5f9;
  margin: 8px 0 10px;
}
.about-section-header .sub {
  font-size: 14px;
  color: #94a3b8;
  max-width: 680px;
  line-height: 1.6;
}
.about-mission-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: stretch;
}
.about-mission-text p {
  font-size: 15px;
  line-height: 1.72;
  color: #cbd5e1;
  margin: 0 0 16px;
}
.about-mission-stats-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-core-metric {
  background: linear-gradient(145deg, #132035 0%, #0d1726 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.about-metric-tag {
  font: 700 9px 'DM Mono', monospace;
  color: var(--teal);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.about-metric-val {
  font-size: 32px;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  letter-spacing: -1px;
}
.about-metric-lbl {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  display: block;
  margin: 4px 0 6px;
}
.about-metric-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.about-pillar-card {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.about-pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}
.about-pillar-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
.about-pillar-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.about-pillar-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px;
  flex: 1;
}
.about-pillar-tag {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1px;
  color: var(--teal);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.about-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-role-card {
  background: #0f1a2a;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  padding: 22px;
}
.about-role-kicker {
  font: 700 9px 'DM Mono', monospace;
  color: #38bdf8;
  letter-spacing: 1.1px;
  display: block;
  margin-bottom: 6px;
}
.about-role-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}
.about-role-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}
.about-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-approach-card {
  background: linear-gradient(145deg, #121e31 0%, #0c1524 100%);
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}
.about-approach-num {
  font: 800 22px 'DM Mono', monospace;
  color: var(--teal);
  opacity: 0.85;
  margin-bottom: 12px;
}
.about-approach-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 10px;
}
.about-approach-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}
.about-cta-panel {
  background: radial-gradient(circle at 50% 0%, #162a42 0%, #0d1726 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  padding: 44px 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.about-cta-content {
  max-width: 620px;
  margin: 0 auto;
}
.about-cta-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #f8fafc;
  margin: 8px 0 12px;
  letter-spacing: -0.6px;
}
.about-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
}
.contact-info-card,
.contact-form-card {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
}
.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.contact-channel-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-channel-icon {
  font-size: 16px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel-item strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}
.contact-channel-item span {
  font-size: 12px;
  color: #94a3b8;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.contact-form label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: #080e18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

@media (max-width: 950px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
  .about-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-approach-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding: 42px 0 32px;
  }
  .about-title {
    font-size: 26px;
  }
  .about-audience-grid {
    grid-template-columns: 1fr;
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .about-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .about-cta-buttons button {
    width: 100%;
  }
}

/* ==========================================================================
   ADVANCED ANIMATED INTELLIGENCE ARCHITECTURE & SCHEMATICS
   ========================================================================== */
.about-hero-core {
  padding-bottom: 56px;
}
.about-sublead {
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748b;
  max-width: 780px;
  margin: 12px 0 0;
}
.about-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}
.badge-active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  border-color: rgba(20, 184, 166, 0.4);
}

/* 1. Centerpiece Optical Intelligence Core */
.intel-core-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 44px auto 0;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, #0d1b2e 0%, #070d18 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Status Context Topbar */
.intel-core-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(8, 14, 25, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}
.core-mode-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 10.5px 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #7dd3fc;
}
.core-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: corePulseDot 2s ease-in-out infinite alternate;
}
@keyframes corePulseDot {
  0% { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px #38bdf8; }
}
.intel-core-flow-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 10px 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 0.5px;
}
.legend-step {
  color: #94a3b8;
}
.flow-arrow {
  color: var(--teal);
  font-weight: 700;
}
.legend-orb-pill {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.intel-core-canvas-wrap {
  width: 100%;
  height: auto;
  position: relative;
}
.intel-core-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG Centered DIVE AI Orb Caption & Port Markers */
.caption-brand-svg {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  fill: #e0f2fe;
}
.caption-state-bg {
  fill: rgba(8, 20, 38, 0.9);
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1;
}
.caption-state-svg {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  fill: #38bdf8;
}

/* Glowing intake and output terminal ports */
.port-dot {
  fill: #00f0ff;
  filter: drop-shadow(0 0 5px #00f0ff);
}
.out-port-dot {
  fill: #2dd4bf;
  filter: drop-shadow(0 0 5px #2dd4bf);
}

/* Neural Inflow and Outflow Stream Pulses */
.stream-track {
  stroke: rgba(56, 189, 248, 0.18);
  stroke-width: 1.6;
  fill: none;
}
.out-track {
  stroke: rgba(20, 184, 166, 0.22);
}

/* Inflow Pulse: Travels continuously from Left Document Node (0) to DIVE AI Orb (100) */
.stream-pulse {
  stroke: #00f0ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 14 86;
  filter: drop-shadow(0 0 6px #00f0ff) drop-shadow(0 0 12px rgba(0, 240, 255, 0.85));
  animation: streamFlowIn 2.6s linear infinite;
}
.stream-pulse-core {
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 6 94;
  animation: streamFlowIn 2.6s linear infinite;
}

/* Outflow Pulse: Travels continuously from DIVE AI Orb (0) to Right Output Node (100) */
.out-pulse {
  stroke: #2dd4bf;
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 14 86;
  filter: drop-shadow(0 0 6px #2dd4bf) drop-shadow(0 0 12px rgba(45, 212, 191, 0.85));
  animation: streamFlowOut 2.6s linear infinite;
}
.out-pulse-core {
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 6 94;
  animation: streamFlowOut 2.6s linear infinite;
}

@keyframes streamFlowIn {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}
@keyframes streamFlowOut {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

.stream-p1 { animation-delay: 0s; }
.stream-p2 { animation-delay: 0.45s; }
.stream-p3 { animation-delay: 0.9s; }
.stream-p4 { animation-delay: 1.35s; }
.stream-p5 { animation-delay: 1.8s; }
.stream-p6 { animation-delay: 2.25s; }

.out-p1 { animation-delay: 0.1s; }
.out-p2 { animation-delay: 0.38s; }
.out-p3 { animation-delay: 0.65s; }
.out-p4 { animation-delay: 0.95s; }
.out-p5 { animation-delay: 1.25s; }
.out-p6 { animation-delay: 1.55s; }
.out-p7 { animation-delay: 1.85s; }
.out-p8 { animation-delay: 2.15s; }
.out-p9 { animation-delay: 2.45s; }

.core-reticle-ring-cw {
  transform-origin: 0 0;
  animation: reticleRotateCW 26s linear infinite;
}
.core-reticle-ring-ccw {
  transform-origin: 0 0;
  animation: reticleRotateCCW 20s linear infinite;
}
.core-pulsing-ring {
  transform-origin: 0 0;
  animation: orbResonantGlow 2.6s ease-in-out infinite alternate;
}
.core-optical-orb {
  animation: orbGlow 4s ease-in-out infinite alternate;
}
.core-waveform-path {
  animation: waveformMotion 4s ease-in-out infinite alternate;
}

@keyframes orbResonantGlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.97);
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.4));
  }
  35% {
    opacity: 0.95;
    transform: scale(1.03);
    filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.9));
  }
  70% {
    opacity: 0.7;
    transform: scale(1.0);
  }
}

@keyframes reticleRotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes reticleRotateCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes reticlePulse {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.04); opacity: 1; }
}
@keyframes orbGlow {
  0% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4)); }
  100% { filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.85)); }
}
@keyframes waveformMotion {
  0% { transform: translateY(-2px); opacity: 0.6; }
  100% { transform: translateY(2px); opacity: 0.95; }
}

.doc-node-bg {
  fill: #091322;
  stroke: rgba(56, 189, 248, 0.3);
  stroke-width: 1.2;
}
.out-node-bg {
  fill: #061922;
  stroke: rgba(20, 184, 166, 0.45);
}
.doc-node-code {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  fill: #38bdf8;
  letter-spacing: 0.5px;
}
.out-code {
  fill: #22d3ee;
  font-weight: 800;
}
.doc-node-desc {
  font-family: system-ui, sans-serif;
  font-size: 9.5px;
  fill: #94a3b8;
}
.active-green {
  fill: #10b981;
}
.active-cyan {
  fill: #00f0ff;
}
.active-teal {
  fill: #2dd4bf;
}
.active-indigo {
  fill: #818cf8;
}

/* Structured Output Intelligence Tiers (Right-Side Hub) */
.tier-panel-bg {
  fill: rgba(8, 17, 32, 0.94);
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 1.2;
}
.tier-header-bg {
  fill: rgba(14, 165, 233, 0.12);
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1;
}
.tier-header-bg-t2 {
  fill: rgba(20, 184, 166, 0.12);
  stroke: rgba(45, 212, 191, 0.35);
  stroke-width: 1;
}
.tier-header-bg-t3 {
  fill: rgba(99, 102, 241, 0.12);
  stroke: rgba(129, 140, 248, 0.35);
  stroke-width: 1;
}
.tier-pill-bg {
  fill: rgba(56, 189, 248, 0.22);
  stroke: rgba(56, 189, 248, 0.55);
  stroke-width: 0.8;
}
.tier-pill-bg-t2 {
  fill: rgba(45, 212, 191, 0.22);
  stroke: rgba(45, 212, 191, 0.55);
  stroke-width: 0.8;
}
.tier-pill-bg-t3 {
  fill: rgba(129, 140, 248, 0.22);
  stroke: rgba(129, 140, 248, 0.55);
  stroke-width: 0.8;
}
.tier-pill-text {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  fill: #38bdf8;
}
.tier-pill-text-t2 {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  fill: #2dd4bf;
}
.tier-pill-text-t3 {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.6px;
  fill: #a5b4fc;
}
.tier-title-text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  fill: #f1f5f9;
}
.tier-count-text {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #38bdf8;
}
.tier-count-text-t2 {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #2dd4bf;
}
.tier-count-text-t3 {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  fill: #a5b4fc;
}

/* Tier Finding Item Elements */
.tier-item-card {
  fill: rgba(12, 23, 40, 0.9);
  stroke: rgba(56, 189, 248, 0.16);
  stroke-width: 1;
}
.tier-item-name {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  fill: #f8fafc;
}
.tier-item-desc {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  fill: #94a3b8;
}
.tier-tag-pill {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 0.8;
}
.tier-tag-pill-t2 {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(45, 212, 191, 0.35);
  stroke-width: 0.8;
}
.tier-tag-pill-t3 {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(129, 140, 248, 0.35);
  stroke-width: 0.8;
}
.tier-tag-label {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  fill: #7dd3fc;
}
.tier-tag-label-t2 {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  fill: #5eead4;
}
.tier-tag-label-t3 {
  font-family: 'DM Mono', monospace;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  fill: #c7d2fe;
}

/* Branching Nexus Markers & Synthesis Latches */
.branch-nexus-dot {
  fill: #22d3ee;
  filter: drop-shadow(0 0 6px #00f0ff);
}
.branch-nexus-ring {
  fill: none;
  stroke: rgba(34, 211, 238, 0.5);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.cross-synthesis-line {
  stroke: rgba(56, 189, 248, 0.24);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  fill: none;
}

/* Telemetry HUD */
.intel-core-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 17, 30, 0.96);
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  padding: 14px 22px;
  gap: 16px;
}
.hud-stat-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hud-label {
  font: 700 8.5px 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #64748b;
}
.hud-value {
  font: 700 12px system-ui, sans-serif;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.mono-val {
  font-family: 'DM Mono', monospace;
  color: var(--cyan);
}

/* 2. System Architecture (3 Layers) */
.arch-layers-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.arch-layer-card {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.arch-layer-card.active-focus {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
}
.arch-layer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-layer-tag {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1px;
  color: var(--teal);
}
.arch-layer-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.arch-module-chip {
  font: 600 10px 'DM Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
}
.arch-layer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}
.arch-layer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.arch-pill {
  font: 500 10.5px system-ui;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

/* Engine Inspector */
.engine-inspector-block {
  background: #0c1524;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  overflow: hidden;
}
.engine-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  background: #080f1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.engine-tab-btn {
  flex: 1;
  min-width: 145px;
  padding: 13px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font: 600 12px 'DM Mono', monospace;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.engine-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.02);
}
.engine-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
}
.engine-inspector-detail {
  padding: 28px;
}
.inspector-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
}
.inspector-meta-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inspector-badge {
  font: 700 9px 'DM Mono', monospace;
  color: var(--teal);
  letter-spacing: 1px;
}
.inspector-title {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}
.inspector-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}
.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}
.field-value {
  font-size: 13px;
  color: #cbd5e1;
}
.field-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}
.inspector-output-card {
  background: #080e18;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}
.output-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.output-kicker {
  font: 700 9px 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 1px;
}
.output-badge.badge-green {
  font: 700 9px 'DM Mono', monospace;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}
.output-snippet {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.snippet-row {
  display: flex;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.snip-label {
  color: #64748b;
  min-width: 88px;
  font-weight: 600;
}
.snip-val {
  color: #38bdf8;
}
.snippet-quote {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.45;
}
.output-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.output-audit-id {
  font: 600 10px 'DM Mono', monospace;
  color: var(--cyan);
}
.output-status {
  font: 700 9px 'DM Mono', monospace;
  color: var(--teal);
}

/* 3. Dual-Brain Architecture */
.dual-brain-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.dual-brain-tab {
  background: #0b1422;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  padding: 9px 18px;
  font: 600 11.5px 'DM Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dual-brain-tab:hover {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.3);
}
.dual-brain-tab.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}
.dual-brain-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.dual-brain-panel {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.brain-panel-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 6px 0 4px;
}
.brain-panel-head p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}
.brain-badge {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.badge-cyan {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.badge-teal {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.brain-method-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brain-method-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.brain-item-icon {
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  color: var(--cyan);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brain-method-item strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.brain-method-item p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}
.brain-badge-bottom {
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 1px;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-top: auto;
}

.dual-brain-convergence-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  align-self: center;
}
.conv-core-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #0284c7 0%, #081e3a 100%);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 14px;
}
.conv-core-icon {
  font-size: 18px;
  color: #ffffff;
}
.conv-core-label {
  font: 700 8px 'DM Mono', monospace;
  letter-spacing: 0.8px;
  color: #e0f2fe;
}
.conv-summary-box {
  background: rgba(14, 26, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 12px;
  font-size: 11.5px;
}
.conv-summary-box strong {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  margin-bottom: 4px;
}
.conv-summary-box p {
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}
.dual-brain-container[data-mode="math"] .brain-reasoning-panel {
  opacity: 0.35;
  filter: grayscale(60%);
}
.dual-brain-container[data-mode="reasoning"] .brain-math-panel {
  opacity: 0.35;
  filter: grayscale(60%);
}

/* 4. Multilingual Section */
.multilingual-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
.lang-tab-btn {
  background: #0c1524;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  padding: 8px 16px;
  font: 600 12px 'DM Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-tab-btn:hover {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.3);
}
.lang-tab-btn.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}
.lang-preview-panel {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 28px;
}
.lang-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
}
.lang-meta-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-badge {
  font: 700 9.5px 'DM Mono', monospace;
  color: var(--teal);
  letter-spacing: 1px;
}
.lang-file-chip {
  font: 600 10px 'DM Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.lang-name-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.lang-excerpt-box {
  background: #080e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.excerpt-kicker {
  font: 700 8.5px 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 0.8px;
}
.excerpt-text {
  margin: 0;
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}
.excerpt-footer {
  display: flex;
  justify-content: space-between;
  font: 600 10px 'DM Mono', monospace;
  color: var(--cyan);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lang-taxonomy-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tax-box {
  background: #080e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tax-title {
  font: 700 9px 'DM Mono', monospace;
  color: #94a3b8;
  letter-spacing: 0.8px;
}
.tax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.tax-raw {
  color: #cbd5e1;
  font-family: 'DM Mono', monospace;
}
.tax-arrow {
  color: var(--teal);
  font-weight: 700;
}
.tax-canon {
  color: var(--cyan);
  font-weight: 600;
}
.tax-canon.mono {
  font-family: 'DM Mono', monospace;
}

/* 5. Pipeline Stepper */
.pipeline-stepper-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  background: #080f1a;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.journey-step-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  font: 600 11.5px system-ui;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.journey-step-btn span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  opacity: 0.7;
}
.journey-step-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.03);
}
.journey-step-btn.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
}
.journey-stage-detail {
  background: linear-gradient(145deg, #101c2e 0%, #0b1422 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 28px;
}
.stage-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
}
.stage-content-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage-num-badge {
  font: 700 9px 'DM Mono', monospace;
  color: var(--teal);
  letter-spacing: 1px;
}
.stage-title {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}
.stage-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}
.stage-audit-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.audit-point {
  font-size: 12.5px;
  color: #94a3b8;
}
.audit-point strong {
  color: #e2e8f0;
}
.stage-nav-col {
  display: flex;
  justify-content: center;
}
.stage-nav-box {
  background: #080e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 260px;
}
.nav-hint {
  font: 700 9px 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 1px;
}
.stage-btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-btn-row button {
  width: 100%;
  font-size: 12px;
  padding: 9px 12px;
}

/* 6. Technical Metrics Dashboard */
.about-metrics-dashboard {
  margin-top: 36px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.metric-dash-card {
  background: #0a1320;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-metric-num {
  font-size: 24px;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  color: var(--cyan);
}
.dash-metric-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}
.dash-metric-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* 7. Architecture Responsive Layouts */
@media (max-width: 950px) {
  .arch-layers-container {
    grid-template-columns: 1fr;
  }
  .inspector-grid {
    grid-template-columns: 1fr;
  }
  .dual-brain-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dual-brain-convergence-node {
    max-width: 100%;
  }
  .lang-grid {
    grid-template-columns: 1fr;
  }
  .stage-detail-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .intel-core-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intel-core-hud {
    grid-template-columns: 1fr;
  }
  .engine-tabs-bar {
    flex-direction: column;
  }
  .pipeline-stepper-bar {
    flex-direction: column;
  }
  .about-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .about-hero-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-pulse,
  .stream-pulse-core,
  .out-pulse,
  .out-pulse-core,
  .core-reticle-ring-cw,
  .core-reticle-ring-ccw,
  .core-pulsing-ring,
  .core-optical-orb,
  .core-waveform-path,
  .core-status-pulse,
  #aboutDiveOrbContainer * {
    animation: none !important;
  }
}



/* ==========================================================================
   WHO BUILT DIVE AI? — FOUNDER & EXPERTISE STORY STYLING (PARTS A - H)
   ========================================================================== */

.who-built-section {
  padding: 48px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 64px;
  position: relative;
}

/* PART A: Header & Intro */
.who-built-header {
  margin-bottom: 44px;
}

.who-built-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.who-built-pill {
  font: 700 9px/1 'DM Mono', monospace;
  letter-spacing: 1.1px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.28);
}

.who-built-main-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.4px;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.15;
}

.who-built-headline {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 22px;
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.who-built-intro-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(11, 19, 41, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid #00f0ff;
  border-radius: 8px;
  padding: 22px 26px;
  max-width: 960px;
}

.who-built-lead-text {
  font-size: 16px;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.65;
  margin: 0 0 12px;
  font-style: italic;
}

.who-built-sub-text {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Subhead rows for blocks */
.who-built-subhead-row {
  margin-bottom: 24px;
}

.who-built-subhead-row h3 {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
  margin: 6px 0 0;
  letter-spacing: -0.4px;
}

.who-built-section-header {
  margin-bottom: 26px;
}

.who-built-section-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

/* PART B: Founders Grid */
.who-built-founders-block {
  margin-bottom: 56px;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.founder-card {
  background: #0b1329;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.founder-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.founder-primary {
  border-top: 3px solid #00f0ff;
}

.founder-secondary {
  border-top: 3px solid #38bdf8;
}

.founder-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.founder-photo-wrap {
  position: relative;
  width: 100%;
  height: 500px;
  background: #050914;
  overflow: hidden;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.02);
}

#founderHansani .founder-photo {
  object-position: center 20%;
}

#founderWanshika .founder-photo {
  object-position: center 14%;
}

.founder-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, #0b1329 0%, rgba(11, 19, 41, 0.6) 35%, transparent 100%);
  pointer-events: none;
}

.founder-photo-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.founder-badge-role {
  font: 700 10px/1 'DM Mono', monospace;
  letter-spacing: 1.2px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.45);
  backdrop-filter: blur(6px);
}

.founder-badge-seq {
  display: none;
}

.founder-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.founder-header-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.founder-role-tag {
  font: 700 11px/1 'DM Mono', monospace;
  letter-spacing: 1.4px;
  color: #38bdf8;
  text-transform: uppercase;
}

.founder-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.25;
}

.founder-focus-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.founder-focus-label {
  font: 700 10px/1 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 0.8px;
}

.founder-focus-val {
  font-weight: 600;
  color: #00f0ff;
}

.founder-bio {
  background: rgba(15, 23, 42, 0.55);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
}

.founder-bio p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.founder-detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.founder-detail-heading {
  font: 700 10.5px/1 'DM Mono', monospace;
  letter-spacing: 1.1px;
  color: #94a3b8;
  text-transform: uppercase;
  margin: 0;
}

.founder-bullets {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.55;
}

.founder-bullets li {
  margin-bottom: 4px;
}

.founder-bullets li:last-child {
  margin-bottom: 0;
}

.qualification-list strong {
  color: #f8fafc;
  font-weight: 600;
}

/* PART C: Guidance Block */
.who-built-guidance-block {
  margin-bottom: 56px;
}

.guidance-title {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

.guidance-copy {
  font-size: 14.5px;
  color: #94a3b8;
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

.guidance-carousel-viewport {
  overflow: hidden;
  margin-top: 24px;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.guidance-carousel-track {
  display: flex;
  gap: 20px;
  animation: guidanceScroll 50s linear infinite;
  width: max-content;
}

.guidance-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes guidanceScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.guidance-carousel-viewport .guidance-card {
  flex: 0 0 340px;
  min-width: 0;
}

.guidance-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guidance-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.guidance-card-academic {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(145deg, #0f172a 0%, #102142 100%);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
}

.guidance-card-academic:hover {
  border-color: rgba(0, 240, 255, 0.6);
}

.guidance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guidance-num {
  font: 700 12px/1 'DM Mono', monospace;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.guidance-category {
  font: 700 9px/1 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 1px;
}

.guidance-name {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.35;
}

.guidance-field {
  font-size: 13px;
  line-height: 1.55;
}

.guidance-label {
  font: 700 9.5px/1 'DM Mono', monospace;
  color: #38bdf8;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}

.guidance-field p {
  color: #94a3b8;
  margin: 0;
}

/* PART D: Architecture Flow */
.who-built-arch-flow-block {
  margin-bottom: 56px;
}

.arch-flow-title {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

.arch-flow-copy {
  font-size: 14.5px;
  color: #94a3b8;
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

.arch-flow-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.arch-flow-step {
  background: #0b1329;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.step-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.step-num {
  font: 700 11px/1 'DM Mono', monospace;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.step-tag {
  font: 700 8.5px/1 'DM Mono', monospace;
  color: #64748b;
  letter-spacing: 0.8px;
}

.step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
}

.step-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.arch-flow-connector {
  font-size: 18px;
  color: #38bdf8;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

/* PART E & F: Vision & Mission */
.who-built-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.purpose-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vision-card {
  border-top: 3px solid #38bdf8;
}

.mission-card {
  border-top: 3px solid #00f0ff;
}

.purpose-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.purpose-pill {
  font: 700 9px/1 'DM Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.purpose-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.4px;
}

.purpose-text {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.purpose-subtext {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* PART G: Principles */
.who-built-principles-block {
  margin-bottom: 56px;
}

.principles-title {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin: 6px 0 10px;
  letter-spacing: -0.5px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.principle-card {
  background: #0b1329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #00f0ff;
  border-radius: 8px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle-icon-wrap {
  font: 700 11px/1 'DM Mono', monospace;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.principle-name {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.principle-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* PART H: Closing Statement */
.who-built-closing-block {
  margin-top: 20px;
}

.closing-card {
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 32px 36px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.04);
}

.closing-kicker {
  font: 700 10px/1 'DM Mono', monospace;
  letter-spacing: 1.4px;
  color: #00f0ff;
  display: block;
  margin-bottom: 12px;
}

.closing-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.closing-copy {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .guidance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-flow-pipeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .arch-flow-connector {
    transform: rotate(90deg);
    margin: -4px 0;
  }
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .founder-photo-wrap {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .founder-photo-wrap {
    height: 400px;
  }
  .who-built-purpose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .guidance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .closing-card {
    padding: 24px 20px;
  }
  .who-built-intro-box {
    padding: 18px 20px;
  }
  .founder-content {
    padding: 20px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-card,
  .guidance-card,
  .founder-photo {
    transition: none !important;
    transform: none !important;
  }
}
