:root {
  --adl-navy: #061f41;
  --adl-navy-2: #0a2b5d;
  --adl-blue: #0b53ff;
  --adl-blue-2: #2672ff;
  --adl-sky: #eaf2ff;
  --adl-ice: #f6f9ff;
  --adl-line: #d8e3f4;
  --adl-line-2: #b7c8df;
  --adl-text: #0c1d35;
  --adl-muted: #65758c;
  --adl-panel: rgba(255,255,255,.90);
  --shadow: 0 18px 44px rgba(9, 31, 66, .12);
  --shadow-sm: 0 8px 22px rgba(9, 31, 66, .08);
  --radius: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--adl-text);
  background:
    radial-gradient(circle at 12% 6%, rgba(11,83,255,.08), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(38,114,255,.075), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 48%, #eef5ff 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .58;
  background-image:
    linear-gradient(rgba(8,42,88,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,42,88,.042) 1px, transparent 1px),
    radial-gradient(circle at 35% 42%, transparent 0 180px, rgba(11,83,255,.08) 181px, transparent 182px),
    radial-gradient(circle at 35% 42%, transparent 0 270px, rgba(11,83,255,.055) 271px, transparent 272px);
  background-size: 26px 26px, 26px 26px, auto, auto;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--adl-blue); text-decoration: none; }
img { max-width: 100%; }

.page-shell { position: relative; z-index: 1; max-width: 1880px; margin: 0 auto; padding: 0 20px 18px; }
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--adl-line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { width: 220px; display: flex; align-items: center; }
.brand img { width: 205px; max-height: 58px; object-fit: contain; object-position: left center; }
.mobile-menu { display: none; border: 1px solid var(--adl-line); border-radius: 12px; background: white; color: var(--adl-navy); padding: 9px 11px; }
.main-nav { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.main-nav a { color: var(--adl-navy); padding: 27px 18px 22px; font-weight: 720; letter-spacing: .01em; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--adl-blue); background: rgba(11,83,255,.035); }
.main-nav a.active { color: var(--adl-blue); border-bottom-color: var(--adl-blue); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ghost-btn, .icon-btn, .selector-actions button, .tool, .control-dock button, .card-tabs button {
  border: 1px solid var(--adl-line);
  background: rgba(255,255,255,.88);
  color: var(--adl-navy);
  box-shadow: var(--shadow-sm);
  font-weight: 760;
}
.ghost-btn { border-radius: 999px; padding: 10px 14px; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 12px; display: grid; place-items: center; }

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 22px 0 18px;
  padding: 24px 26px;
  border: 1px solid var(--adl-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(239,247,255,.86)),
    radial-gradient(circle at 18% 0%, rgba(11,83,255,.10), transparent 40%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.hero-band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  border: 1px solid rgba(11,83,255,.20);
  box-shadow: inset 0 0 0 1px rgba(11,83,255,.08), 0 0 0 62px rgba(11,83,255,.025);
}
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--adl-blue); font-weight: 900; }
h1 { margin: 0; font-size: clamp(30px, 3.1vw, 54px); line-height: .98; letter-spacing: -.055em; color: var(--adl-navy); max-width: 950px; }
.hero-copy { max-width: 1080px; margin: 14px 0 0; color: var(--adl-muted); line-height: 1.55; font-weight: 540; }
.hero-metrics { display: flex; gap: 12px; position: relative; z-index: 1; }
.hero-metrics div { min-width: 110px; padding: 16px; border: 1px solid var(--adl-line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); text-align: center; }
.hero-metrics strong { display: block; color: var(--adl-blue); font-size: 30px; line-height: 1; }
.hero-metrics span { color: var(--adl-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .14em; font-weight: 900; }

.workspace { display: grid; grid-template-columns: 310px minmax(620px, 1fr) 430px; gap: 16px; align-items: stretch; }
.library-panel, .viewer-panel, .card-panel, .selector-panel {
  border: 1px solid var(--adl-line);
  border-radius: var(--radius);
  background: var(--adl-panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.library-panel { padding: 18px; transition: width .25s ease, opacity .25s ease; }
.library-panel.collapsed { padding: 16px 10px; }
.library-panel.collapsed .search-box,
.library-panel.collapsed .filter-stack,
.library-panel.collapsed .callout,
.library-panel.collapsed .safety-note { display: none; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; color: var(--adl-navy); font-size: 15px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.subline { margin: 5px 0 0; color: var(--adl-muted); font-size: 13px; font-weight: 680; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--adl-line); border-radius: 14px; background: white; padding: 12px 14px; margin: 16px 0; color: var(--adl-muted); }
.search-box input { border: 0; outline: 0; min-width: 0; width: 100%; color: var(--adl-navy); }
.filter-stack { display: grid; gap: 10px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: 12px; color: var(--adl-navy); }
.filter-head button { color: var(--adl-blue); border: 0; background: transparent; font-weight: 850; }
.filter-stack label { display: grid; gap: 7px; font-size: 12px; color: var(--adl-muted); font-weight: 760; }
.filter-stack select { appearance: none; width: 100%; border: 1px solid var(--adl-line); background: white; border-radius: 13px; padding: 12px 38px 12px 12px; color: var(--adl-navy); font-weight: 760; background-image: linear-gradient(45deg, transparent 50%, var(--adl-blue) 50%), linear-gradient(135deg, var(--adl-blue) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.callout, .safety-note { border: 1px solid var(--adl-line); background: linear-gradient(180deg,#fff,var(--adl-ice)); border-radius: 16px; padding: 14px; margin-top: 16px; color: var(--adl-muted); line-height: 1.45; font-size: 13px; }
.callout strong, .safety-note strong { display: block; color: var(--adl-navy); margin-bottom: 5px; }
.callout p, .safety-note p { margin: 0; }
.safety-note { background: rgba(234,242,255,.72); }

.viewer-panel { padding: 18px; min-height: 660px; }
.viewer-title-row { margin-bottom: 14px; }
.viewer-title-row h2 { font-size: 18px; letter-spacing: .08em; }
.cube-icon { color: var(--adl-blue); }
.state-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.state-pills span { border: 1px solid var(--adl-line); background: white; color: var(--adl-blue); font-weight: 850; border-radius: 999px; padding: 8px 10px; font-size: 12px; }
.cad-stage { position: relative; min-height: 585px; border-radius: 18px; border: 1px solid var(--adl-line); overflow: hidden; background: linear-gradient(180deg,#fff 0%, #f7fbff 100%); perspective: 1100px; user-select: none; outline: none; }
.world-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(6,31,65,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(6,31,65,.05) 1px, transparent 1px); background-size: 28px 28px; transform: rotateX(58deg) scale(1.35); transform-origin: center 62%; opacity: .68; }
.trajectory-overlay { position: absolute; inset: 0; pointer-events: none; opacity: .55; background: radial-gradient(circle at 50% 58%, transparent 0 210px, rgba(11,83,255,.10) 211px, transparent 213px), radial-gradient(circle at 50% 58%, transparent 0 320px, rgba(11,83,255,.07) 321px, transparent 323px); }
.axis-gizmo { position: absolute; top: 24px; right: 28px; width: 124px; height: 124px; pointer-events: none; font-weight: 950; z-index: 4; }
.axis-gizmo::before { content: ""; position: absolute; left: 55px; top: 56px; width: 12px; height: 12px; border-radius: 50%; background: var(--adl-blue); box-shadow: 0 0 0 6px rgba(11,83,255,.12); }
.axis { position: absolute; color: var(--adl-navy); }
.axis-y { left: 51px; top: 0; color: #0a9445; }
.axis-x { right: 0; top: 50px; color: #e1192d; }
.axis-z { left: 7px; bottom: 2px; color: var(--adl-blue); }
.axis-y::after, .axis-x::after, .axis-z::after { content: ""; position: absolute; background: currentColor; opacity: .88; }
.axis-y::after { left: 7px; top: 22px; width: 2px; height: 44px; }
.axis-x::after { right: 22px; top: 7px; width: 44px; height: 2px; }
.axis-z::after { left: 16px; bottom: 18px; width: 46px; height: 2px; transform: rotate(-34deg); transform-origin: left center; }
.stage-inner { position: absolute; inset: 74px 72px 136px; display: grid; place-items: center; transform-style: preserve-3d; }
.model-object { --zoom: 1; --rx: -10deg; --ry: -26deg; --rz: 0deg; --pan-x: 0px; --pan-y: 0px; --accent: #0b53ff; --body: #dfe6ee; --body2: #f7f9fc; position: relative; width: 560px; height: 250px; transform-style: preserve-3d; transform: translate3d(var(--pan-x), var(--pan-y), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--zoom)); transition: transform .18s ease; }
.part { position: absolute; transform-style: preserve-3d; transition: transform .28s ease, opacity .2s ease, filter .2s ease; }
.fuselage { left: 84px; top: 103px; width: 390px; height: 44px; border-radius: 999px; background: linear-gradient(180deg, #fff 0%, var(--body2) 20%, var(--body) 48%, #bfcad8 52%, #eef4fb 100%); border: 1px solid rgba(6,31,65,.16); box-shadow: inset 0 12px 18px rgba(255,255,255,.75), inset 0 -12px 16px rgba(11,44,90,.12), 0 28px 34px rgba(6,31,65,.16); }
.fuselage::after { content:""; position:absolute; inset: 7px 18px auto 18px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.75); }
.nose { left: 28px; top: 102px; width: 95px; height: 46px; clip-path: polygon(0 50%, 100% 0, 100% 100%); background: linear-gradient(180deg,#fff,#cbd5e3 54%,#edf4fb); filter: drop-shadow(0 16px 16px rgba(6,31,65,.15)); }
.nozzle { left: 464px; top: 108px; width: 48px; height: 33px; border-radius: 0 999px 999px 0; background: linear-gradient(90deg,#aeb9c8,#36445a 65%,#101d31); box-shadow: inset -8px 0 12px rgba(0,0,0,.35); }
.band { width: 8px; height: 47px; top: 102px; border-radius: 999px; background: var(--accent); opacity: .75; }
.b1 { left: 155px; }
.b2 { left: 348px; opacity: .34; }
.canard, .wing, .fin { background: linear-gradient(135deg,#f8fbff,#b8c5d6); border: 1px solid rgba(6,31,65,.14); filter: drop-shadow(0 12px 12px rgba(6,31,65,.12)); }
.canard { width: 58px; height: 20px; left: 200px; top: 81px; clip-path: polygon(0 100%,100% 0,82% 100%); transform: translateZ(22px) rotate(8deg); }
.canard.bottom { top: 145px; transform: translateZ(-22px) rotate(-8deg) scaleY(-1); }
.wing { width: 110px; height: 32px; left: 322px; top: 70px; clip-path: polygon(0 100%,100% 0,88% 100%); transform: translateZ(26px) rotate(7deg); }
.wing.bottom { top: 145px; transform: translateZ(-26px) rotate(-7deg) scaleY(-1); }
.fin { width: 64px; height: 42px; left: 442px; top: 62px; clip-path: polygon(8% 100%,100% 0,78% 100%); transform: translateZ(18px) rotate(0deg); }
.fin.bottom { top: 146px; transform: translateZ(-18px) scaleY(-1); }
.reference-line { left: 62px; top: 180px; width: 450px; height: 1px; background: rgba(11,83,255,.28); }
.model-shadow { left: 80px; top: 182px; width: 420px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(6,31,65,.18), transparent 70%); transform: translateZ(-80px) rotateX(82deg); filter: blur(2px); }

.model-atgm { --body: #6d7b6a; --body2: #9ca88f; --accent: #254c37; }
.model-atgm .fuselage { width: 340px; left: 115px; height: 38px; top: 106px; background: linear-gradient(180deg,#b2b99f,#6e7a5f 55%,#343d31); }
.model-atgm .nose { left: 72px; top: 106px; height: 39px; width: 76px; background: linear-gradient(180deg,#d7dbc8,#7a856f,#303a30); }
.model-atgm .wing { width: 62px; left: 315px; }
.model-atgm .canard { width: 42px; left: 215px; }
.model-atgm .fin { left: 420px; width: 44px; }
.model-cruise, .model-lacm, .model-ascm, .model-cm_sow { --body: #dde5ef; --body2: #f5f8fc; --accent: #0b53ff; }
.model-cruise .wing, .model-lacm .wing, .model-ascm .wing, .model-cm_sow .wing { width: 160px; left: 282px; height: 36px; top: 69px; }
.model-cruise .wing.bottom, .model-lacm .wing.bottom, .model-ascm .wing.bottom, .model-cm_sow .wing.bottom { top: 144px; }
.model-ballistic, .model-ballistic_mid, .model-ballistic_short, .model-ballistic_long, .model-strategic { --body: #7e8774; --body2: #a7ad96; --accent: #071f41; }
.model-ballistic .fuselage, .model-ballistic_mid .fuselage, .model-ballistic_short .fuselage, .model-ballistic_long .fuselage, .model-strategic .fuselage { left: 125px; width: 330px; height: 56px; top: 96px; background: linear-gradient(180deg,#b9baa3,#6d735f 54%,#2c362c); }
.model-ballistic .nose, .model-ballistic_mid .nose, .model-ballistic_short .nose, .model-ballistic_long .nose, .model-strategic .nose { left: 48px; width: 116px; height: 58px; top: 95px; background: linear-gradient(180deg,#202e26,#6a7461,#aeb59d); }
.model-ballistic .canard, .model-ballistic .wing, .model-ballistic_mid .canard, .model-ballistic_mid .wing, .model-ballistic_short .canard, .model-ballistic_short .wing, .model-ballistic_long .canard, .model-ballistic_long .wing, .model-strategic .canard, .model-strategic .wing { opacity: .18; }
.model-ballistic .fin, .model-ballistic_mid .fin, .model-ballistic_short .fin, .model-ballistic_long .fin, .model-strategic .fin { left: 425px; width: 74px; height: 54px; top: 52px; background: linear-gradient(135deg,#88917d,#3a4636); }
.model-ballistic .fin.bottom, .model-ballistic_mid .fin.bottom, .model-ballistic_short .fin.bottom, .model-ballistic_long .fin.bottom, .model-strategic .fin.bottom { top: 152px; }
.model-sam { --body: #dce4ee; --body2: #f9fbff; --accent: #0b53ff; }
.model-rocket { --body: #cfd7df; --body2: #f0f4f9; --accent: #0b53ff; }
.model-rocket .fuselage { width: 350px; left: 105px; }
.model-rocket .smoke, .model-sam .smoke { display: block; }
.model-loitering { --body: #dfe5ee; --body2: #f7f9fc; --accent: #0b53ff; }
.model-loitering .fuselage { width: 270px; left: 145px; height: 44px; }
.model-loitering .nose { left: 94px; }
.model-loitering .wing { width: 250px; left: 160px; top: 76px; height: 28px; }
.model-loitering .wing.bottom { top: 147px; }
.model-loitering .canard { display: none; }
.prop { display: none; left: 438px; top: 92px; width: 8px; height: 70px; border-radius: 999px; background: rgba(6,31,65,.5); transform: rotate(90deg); }
.model-loitering .prop { display: block; }
.smoke { display: none; left: 498px; top: 108px; width: 95px; height: 34px; border-radius: 999px; background: radial-gradient(ellipse at left, rgba(11,83,255,.20), rgba(11,83,255,.05), transparent 70%); filter: blur(2px); }

.cad-stage.wireframe .part:not(.model-shadow) { background: transparent !important; border: 1.5px solid var(--adl-blue) !important; box-shadow: none !important; filter: none !important; }
.cad-stage.wireframe .nose, .cad-stage.wireframe .canard, .cad-stage.wireframe .wing, .cad-stage.wireframe .fin { background: rgba(255,255,255,.2) !important; }
.cad-stage.exploded .nose { transform: translateX(-60px) !important; }
.cad-stage.exploded .nozzle { transform: translateX(52px) !important; }
.cad-stage.exploded .wing { transform: translateZ(60px) translateY(-18px) rotate(7deg) !important; }
.cad-stage.exploded .wing.bottom { transform: translateZ(-60px) translateY(18px) rotate(-7deg) scaleY(-1) !important; }
.cad-stage.exploded .canard { transform: translateZ(54px) translateY(-10px) rotate(8deg) !important; }
.cad-stage.exploded .canard.bottom { transform: translateZ(-54px) translateY(10px) rotate(-8deg) scaleY(-1) !important; }
.cad-stage.exploded .fin { transform: translateZ(46px) translateY(-24px) !important; }
.cad-stage.exploded .fin.bottom { transform: translateZ(-46px) translateY(24px) scaleY(-1) !important; }
.cad-stage.sectioned .fuselage { clip-path: polygon(0 0, 100% 0, 100% 58%, 62% 58%, 56% 100%, 0 100%); }
.cad-stage.sectioned .fuselage::before { content:""; position:absolute; left: 58%; top: 56%; width: 80px; height: 18px; border: 1px dashed var(--adl-blue); border-radius: 999px; background: rgba(11,83,255,.10); }
.dimension-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.dimension-overlay line, .dimension-overlay polyline { fill: none; stroke: var(--adl-blue); stroke-width: 2; stroke-dasharray: 8 8; }
.dimension-overlay text { fill: var(--adl-navy); font-size: 18px; font-weight: 800; text-anchor: middle; }
.cad-stage.dimensions-on .dimension-overlay { opacity: .96; }
.vertical-tools { position: absolute; left: 18px; top: 20px; z-index: 8; display: grid; gap: 8px; }
.tool { width: 74px; min-height: 58px; border-radius: 14px; display: grid; gap: 3px; place-items: center; color: var(--adl-navy); }
.tool span { display: block; font-size: 11px; }
.tool.active, .control-dock button.active, .card-tabs button.active { color: var(--adl-blue); border-color: rgba(11,83,255,.38); background: #fff; box-shadow: 0 10px 24px rgba(11,83,255,.12); }
.control-dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9; width: min(92%, 910px); border: 1px solid var(--adl-line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.dock-row { display: grid; grid-template-columns: repeat(10, minmax(70px, 1fr)); gap: 6px; }
.control-dock button { border-radius: 12px; padding: 10px 8px; color: var(--adl-navy); font-size: 12px; }
.zoom-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; margin: 10px auto 2px; max-width: 460px; color: var(--adl-muted); font-weight: 850; }
.zoom-row input { accent-color: var(--adl-blue); width: 100%; }
.zoom-row strong { color: var(--adl-blue); min-width: 48px; text-align: right; }

.card-panel { padding: 18px; min-height: 660px; }
.card-tabs { display: inline-flex; border: 1px solid var(--adl-line); border-radius: 999px; background: white; padding: 3px; }
.card-tabs button { border: 0; box-shadow: none; border-radius: 999px; padding: 7px 12px; font-size: 12px; background: transparent; }
.flip-card { width: 100%; aspect-ratio: 493 / 688; margin: 16px auto 14px; perspective: 1200px; max-height: 520px; }
.flip-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.75,.2,1); }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; margin: 0; backface-visibility: hidden; display: grid; place-items: center; }
.card-face img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 14px 26px rgba(6,31,65,.14)); }
.back-face { transform: rotateY(180deg); }
.primary-btn { width: 100%; border: 0; border-radius: 15px; background: linear-gradient(135deg, var(--adl-blue), var(--adl-blue-2)); color: white; padding: 14px 18px; font-weight: 900; box-shadow: 0 18px 34px rgba(11,83,255,.22); }
.primary-btn:hover { transform: translateY(-1px); }
.card-summary { margin-top: 12px; border: 1px solid var(--adl-line); border-radius: 16px; padding: 13px; background: linear-gradient(180deg,#fff,var(--adl-ice)); font-size: 13px; color: var(--adl-muted); line-height: 1.45; }
.card-summary strong { display: block; color: var(--adl-navy); font-size: 15px; margin-bottom: 4px; }
.card-summary .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.card-summary .chips span { border: 1px solid var(--adl-line); color: var(--adl-blue); background: white; border-radius: 999px; padding: 5px 8px; font-weight: 850; font-size: 11px; }

.selector-panel { margin-top: 16px; padding: 16px; }
.selector-head { margin-bottom: 12px; }
.selector-actions { display: flex; gap: 8px; }
.selector-actions button { border-radius: 12px; width: 40px; height: 36px; padding: 0; font-size: 23px; }
.family-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 8px; }
.family-tile { scroll-snap-align: start; border: 1px solid var(--adl-line); border-radius: 16px; background: white; color: var(--adl-navy); min-height: 140px; padding: 12px 10px; display: grid; place-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.family-tile:hover { transform: translateY(-2px); border-color: rgba(11,83,255,.35); }
.family-tile.active { border-color: var(--adl-blue); box-shadow: 0 12px 30px rgba(11,83,255,.16); }
.family-tile.active::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--adl-blue); color: white; display: grid; place-items: center; font-size: 12px; }
.family-icon { width: 58px; height: 22px; position: relative; display: block; transform: rotate(-22deg); }
.family-icon::before { content:""; position:absolute; left:0; top: 8px; width: 52px; height: 8px; border-radius: 999px; background: linear-gradient(90deg,#eff5ff,#07254f); }
.family-icon::after { content:""; position:absolute; right:0; top:3px; border-left: 18px solid #07254f; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.family-name { font-weight: 950; color: var(--adl-navy); font-size: 14px; }
.family-sub { color: var(--adl-muted); font-size: 11px; line-height: 1.25; min-height: 32px; }
.empty-state { padding: 20px; color: var(--adl-muted); }
.help-strip { display: flex; gap: 22px; align-items: center; color: var(--adl-muted); font-size: 13px; padding: 16px 2px 0; flex-wrap: wrap; }
.help-strip span { font-weight: 700; }
.help-strip .grow { flex: 1; }
.help-strip a { font-weight: 850; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(6,31,65,.34); backdrop-filter: blur(8px); padding: 20px; }
.modal.open { display: grid; }
.modal-card { max-width: 560px; background: white; border: 1px solid var(--adl-line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.modal-card h2 { margin-bottom: 10px; }
.modal-card p { color: var(--adl-muted); line-height: 1.55; margin: 0; }
.modal-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; color: var(--adl-navy); font-size: 28px; }

.viewer-panel.fullscreen-live { position: fixed; inset: 14px; z-index: 80; background: rgba(255,255,255,.96); min-height: auto; }
.viewer-panel.fullscreen-live .cad-stage { height: calc(100vh - 124px); min-height: auto; }

@media (max-width: 1300px) {
  .workspace { grid-template-columns: 280px minmax(520px, 1fr); }
  .card-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 360px 1fr; gap: 18px; min-height: auto; }
  .card-panel > .panel-title-row { grid-column: 1 / -1; }
  .flip-card { max-height: none; margin: 0; }
  .primary-btn, .card-summary { align-self: start; }
}
@media (max-width: 980px) {
  .topbar { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .mobile-menu { display: block; margin-left: auto; }
  .main-nav { order: 3; width: 100%; height: auto; display: none; }
  .main-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .main-nav a { padding: 12px; }
  .top-actions { margin-left: 0; }
  .hero-band { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .cad-stage { min-height: 560px; }
  .card-panel { display: block; }
  .flip-card { max-width: 420px; }
  .dock-row { grid-template-columns: repeat(5, minmax(70px,1fr)); }
}
@media (max-width: 640px) {
  .page-shell { padding: 0 12px 16px; }
  .hero-metrics { flex-wrap: wrap; }
  .stage-inner { inset: 90px 18px 170px; }
  .model-object { width: 430px; transform-origin: center; }
  .control-dock { width: 96%; }
  .dock-row { grid-template-columns: repeat(2, 1fr); }
  .vertical-tools { transform: scale(.85); transform-origin: top left; }
}

/* ADL integrated-site polish overrides */
:root {
  --site-bg: #05070d;
  --site-panel: rgba(11, 18, 32, 0.72);
  --site-line: rgba(203, 226, 255, 0.16);
  --site-text: #f5f7fb;
  --site-muted: #a9b6cc;
  --site-cyan: #66e4ff;
  --site-orange: #ffb45c;
}
body {
  color: var(--site-text);
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.18), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.18), transparent 28rem),
    linear-gradient(135deg, #05070d 0%, #081224 46%, #05070d 100%);
}
body::before {
  opacity: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-shell { max-width: min(1540px, calc(100vw - 32px)); padding: 20px 0 56px; }
.topbar {
  height: auto;
  min-height: 88px;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: rgba(5, 9, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 54px rgba(0,0,0,0.32);
}
.brand { width: clamp(240px, 28vw, 390px); height: 62px; padding: 7px 12px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241,247,255,0.9)); border: 1px solid rgba(255,255,255,0.78); box-shadow: 0 14px 44px rgba(0,0,0,.24), 0 0 34px rgba(59,130,246,.12); }
.brand img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: left center; }
.main-nav { height: auto; gap: 4px; align-items: center; }
.main-nav a { color: var(--site-muted); padding: 10px 13px; border-radius: 999px; border-bottom: 0; font-size: .86rem; font-weight: 700; }
.main-nav a:hover { color: var(--site-text); background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--site-text); background: rgba(102,228,255,.12); border: 1px solid rgba(102,228,255,.18); }
.top-actions { margin-left: auto; }
.ghost-btn, .mobile-menu { background: rgba(255,255,255,.06); color: var(--site-text); border-color: rgba(255,255,255,.14); box-shadow: none; }
.hero-band, .library-panel, .viewer-panel, .card-panel, .selector-panel {
  border: 1px solid var(--site-line);
  background: var(--site-panel);
  color: var(--site-text);
  box-shadow: 0 30px 90px rgba(0,0,0,.48);
  backdrop-filter: blur(20px);
}
.hero-band { margin-top: 42px; border-radius: 34px; }
.hero-band::after { border-color: rgba(102,228,255,.20); box-shadow: 0 0 0 62px rgba(102,228,255,.025); }
.eyebrow { color: var(--site-cyan); }
h1, h2, h3, .family-name { color: var(--site-text); }
.hero-copy, .subline, .callout p, .safety-note p, .card-summary, .family-sub, .help-strip, .filter-stack label, .selector-head, .modal-card p { color: var(--site-muted); }
.hero-metrics div, .callout, .safety-note { border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.library-panel input, .library-panel select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--site-text); }
.library-panel select option { color: #07111d; background: #f8fbff; }
.filter-head button { color: var(--site-cyan); }
.viewer-panel, .card-panel, .selector-panel { border-radius: 30px; }
.viewer-panel .panel-title-row, .card-panel .panel-title-row, .selector-panel .panel-title-row, .library-panel .panel-title-row { color: var(--site-text); }
.cad-stage { background: radial-gradient(circle at 50% 45%, #ffffff, #eef5ff 55%, #dfeafa); border-color: rgba(255,255,255,.18); }
.card-summary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
.card-summary strong { color: var(--site-text); }
.family-tile { background: rgba(255,255,255,.92); }
.family-tile .family-name { color: var(--adl-navy); }
.help-strip a { color: var(--site-cyan); }
.modal { background: rgba(3,7,14,.58); }
.modal-card { background: #08162a; border-color: var(--site-line); color: var(--site-text); }
.modal-close { color: var(--site-text); }
.viewer-panel.fullscreen-live { background: rgba(5, 9, 18, .96); }

@media (max-width: 980px) {
  .topbar { position: relative; top: 0; align-items: flex-start; }
  .main-nav.open { background: rgba(255,255,255,.04); border-radius: 18px; padding: 6px; }
}
@media (max-width: 640px) {
  .page-shell { max-width: min(100vw - 18px, 1540px); padding-top: 9px; }
  .brand { width: min(100%, 340px); height: 58px; }
}

/* Integrated UX fixes: keep controls in a single row and make search visibly responsive. */
.top-actions,
.selector-actions,
.card-tabs,
.help-strip {
  flex-wrap: nowrap !important;
}
.ghost-btn,
.primary-btn,
.selector-actions button,
.card-tabs button,
.control-dock button,
.main-nav a,
.help-strip a {
  white-space: nowrap;
}
.dock-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 6px;
  scrollbar-width: thin;
}
.dock-row button {
  flex: 0 0 auto;
  min-width: 86px;
}
.top-actions {
  overflow-x: auto;
  scrollbar-width: thin;
}
.search-box:focus-within {
  border-color: rgba(102,228,255,.55);
  box-shadow: 0 0 0 4px rgba(102,228,255,.10);
}
.family-rail .empty-state {
  min-width: 260px;
}
@media (max-width: 980px) {
  .top-actions { width: 100%; }
  .dock-row { grid-template-columns: none !important; }
}
@media (max-width: 640px) {
  .dock-row { grid-template-columns: none !important; }
}

/* v4 explorer refinements: unified site menu, functional library search, richer visual surrogates, scale mode. */
.topbar {
  justify-content: space-between;
}
.brand-logo-wrap { display: flex; align-items: center; width: 100%; height: 100%; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.navlinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: max-content;
}
.navlinks a {
  color: var(--site-muted);
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.navlinks a:hover { color: var(--site-text); background: rgba(255,255,255,.08); }
.navlinks a.active { color: var(--site-text); background: rgba(102,228,255,.12); border-color: rgba(102,228,255,.18); }
.library-panel.collapsed .library-results { display: none; }
.library-results {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
}
.library-results-head { display: flex; align-items: baseline; gap: 6px; color: var(--site-muted); margin-bottom: 10px; }
.library-results-head strong { color: var(--site-cyan); font-size: 22px; line-height: 1; }
.library-results-head span { text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: 10px; }
.library-result-list { display: grid; gap: 7px; max-height: 245px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.library-result {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.11);
  color: var(--site-text);
  background: rgba(255,255,255,.055);
  box-shadow: none;
}
.library-result:hover, .library-result.active { border-color: rgba(102,228,255,.42); background: rgba(102,228,255,.09); }
.library-result strong { color: var(--site-cyan); grid-row: span 2; font-size: 13px; }
.library-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 760; }
.library-result em { color: var(--site-muted); font-style: normal; font-size: 11px; }
.empty-state.small { margin: 0; padding: 8px 2px; font-size: 12px; }

.axis-gizmo { color: var(--adl-blue); }
.axis-gizmo::before {
  left: 56px;
  top: 56px;
  width: 14px;
  height: 14px;
  z-index: 4;
  background: var(--adl-blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 7px rgba(11,83,255,.16), 0 0 24px rgba(11,83,255,.38);
}
.axis { width: 24px; height: 24px; display: grid; place-items: center; text-shadow: 0 1px 0 #fff; }
.axis-y { left: 50px; top: 0; color: #12a150; }
.axis-x { right: 0; top: 50px; color: #e1192d; }
.axis-z { left: 6px; bottom: 0; color: var(--adl-blue); }
.axis-y::after, .axis-x::after, .axis-z::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .95;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.55);
}
.axis-y::after { left: 11px; top: 28px; width: 3px; height: 39px; transform-origin: bottom center; }
.axis-x::after { right: 28px; top: 11px; width: 41px; height: 3px; transform-origin: right center; }
.axis-z::after { left: 21px; bottom: 22px; width: 48px; height: 3px; transform: rotate(-35deg); transform-origin: right center; }

.model-object {
  width: var(--model-width, 560px);
  filter: drop-shadow(0 24px 36px rgba(6,31,65,.20));
}
.nose { background: linear-gradient(180deg,#fff,var(--nose, #cbd5e3) 54%,#edf4fb); }
.fuselage-core {
  left: 112px;
  top: 112px;
  width: 330px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(6,31,65,.09));
  opacity: .55;
  transform: translateZ(18px);
}
.nose-tip {
  left: 18px;
  top: 116px;
  width: 18px;
  height: 18px;
  border-radius: 999px 0 0 999px;
  background: radial-gradient(circle at 40% 40%, #fff, var(--accent));
  box-shadow: 0 0 16px rgba(11,83,255,.22);
  transform: translateZ(20px);
}
.seeker-window {
  left: 78px;
  top: 111px;
  width: 24px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #effaff, #69b8ff 42%, #163a66 78%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.85), 0 7px 12px rgba(6,31,65,.18);
  transform: translateZ(24px) rotateY(-8deg);
}
.nozzle-ring {
  left: 500px;
  top: 105px;
  width: 15px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(6,31,65,.55);
  background: rgba(255,255,255,.18);
  transform: translateZ(18px);
}
.exhaust-core {
  left: 506px;
  top: 113px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #101d31 0 34%, #3c4b61 36% 58%, rgba(255,255,255,.28) 62%);
  transform: translateZ(24px);
}
.b3 { left: 424px; opacity: .42; width: 5px; }
.panel-line {
  top: 104px;
  width: 2px;
  height: 42px;
  background: rgba(6,31,65,.16);
  border-radius: 999px;
  transform: translateZ(23px);
}
.p1 { left: 224px; }
.p2 { left: 278px; }
.p3 { left: 404px; }
.hatch {
  top: 115px;
  width: 52px;
  height: 15px;
  border: 1px solid rgba(6,31,65,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  transform: translateZ(25px);
}
.h1 { left: 248px; }
.h2 { left: 355px; width: 40px; }
.dorsal-ridge, .ventral-ridge {
  left: 154px;
  width: 260px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(6,31,65,.25), transparent);
}
.dorsal-ridge { top: 95px; transform: translateZ(18px); }
.ventral-ridge { top: 150px; transform: translateZ(-18px); opacity: .5; }
.intake {
  display: none;
  width: 54px;
  height: 24px;
  border-radius: 16px 6px 16px 6px;
  background: linear-gradient(135deg, #ffffff, #8ca6c8 60%, #1c3357);
  border: 1px solid rgba(6,31,65,.18);
  box-shadow: inset 0 -5px 8px rgba(6,31,65,.15);
}
.left-intake { left: 248px; top: 86px; transform: translateZ(32px) rotate(3deg); }
.right-intake { left: 248px; top: 140px; transform: translateZ(-32px) rotate(-3deg) scaleY(-1); }
.strake {
  width: 130px;
  height: 14px;
  left: 274px;
  clip-path: polygon(0 100%, 100% 0, 92% 100%);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(95,113,140,.52));
  border: 1px solid rgba(6,31,65,.11);
}
.strake.upper { top: 88px; transform: translateZ(21px); }
.strake.lower { top: 148px; transform: translateZ(-21px) scaleY(-1); }

.model-cm_sow .intake, .model-lacm .intake, .model-ascm .intake { display: block; }
.model-cm_sow .fuselage, .model-lacm .fuselage, .model-ascm .fuselage { width: 410px; }
.model-cm_sow .nozzle, .model-lacm .nozzle, .model-ascm .nozzle { left: 486px; }
.model-cm_sow .nozzle-ring, .model-lacm .nozzle-ring, .model-ascm .nozzle-ring { left: 522px; }
.model-cm_sow .exhaust-core, .model-lacm .exhaust-core, .model-ascm .exhaust-core { left: 528px; }
.model-cm_sow .dorsal-ridge, .model-lacm .dorsal-ridge, .model-ascm .dorsal-ridge { height: 12px; top: 92px; }
.model-aam .seeker-window, .model-sam .seeker-window { left: 68px; width: 20px; }
.model-atgm .seeker-window { left: 105px; width: 18px; height: 22px; top: 114px; }
.model-atgm .strake, .model-atgm .intake { display: none; }
.model-ballistic .seeker-window,
.model-ballistic_mid .seeker-window,
.model-ballistic_short .seeker-window,
.model-ballistic_long .seeker-window,
.model-strategic .seeker-window { display: none; }
.model-ballistic .nose-tip,
.model-ballistic_mid .nose-tip,
.model-ballistic_short .nose-tip,
.model-ballistic_long .nose-tip,
.model-strategic .nose-tip { left: 39px; top: 116px; }
.model-ballistic .panel-line,
.model-ballistic_mid .panel-line,
.model-ballistic_short .panel-line,
.model-ballistic_long .panel-line,
.model-strategic .panel-line { height: 56px; top: 96px; background: rgba(255,255,255,.18); }
.model-ballistic .b3,
.model-ballistic_mid .b3,
.model-ballistic_short .b3,
.model-ballistic_long .b3,
.model-strategic .b3 { height: 56px; top: 96px; }
.model-loitering .seeker-window { left: 114px; }
.model-loitering .dorsal-ridge { width: 180px; left: 190px; }
.model-loitering .strake { display: none; }
.model-loitering .prop::before, .model-loitering .prop::after {
  content: "";
  position: absolute;
  left: -30px;
  top: 31px;
  width: 68px;
  height: 7px;
  border-radius: 999px;
  background: rgba(6,31,65,.42);
}
.model-loitering .prop::after { transform: rotate(90deg); }
.cad-stage.wireframe .fuselage-core,
.cad-stage.wireframe .nose-tip,
.cad-stage.wireframe .seeker-window,
.cad-stage.wireframe .nozzle-ring,
.cad-stage.wireframe .exhaust-core,
.cad-stage.wireframe .panel-line,
.cad-stage.wireframe .hatch,
.cad-stage.wireframe .dorsal-ridge,
.cad-stage.wireframe .ventral-ridge,
.cad-stage.wireframe .intake,
.cad-stage.wireframe .strake { background: transparent !important; border: 1.5px solid var(--adl-blue) !important; box-shadow: none !important; filter: none !important; }
.cad-stage.exploded .fuselage-core { transform: translateZ(42px) !important; }
.cad-stage.exploded .seeker-window, .cad-stage.exploded .nose-tip { transform: translateX(-70px) translateZ(40px) !important; }
.cad-stage.exploded .intake.left-intake { transform: translateZ(82px) translateY(-18px) !important; }
.cad-stage.exploded .intake.right-intake { transform: translateZ(-82px) translateY(18px) scaleY(-1) !important; }
.cad-stage.exploded .dorsal-ridge { transform: translateZ(62px) translateY(-10px) !important; }
.cad-stage.exploded .ventral-ridge { transform: translateZ(-62px) translateY(10px) !important; }

.variant-tray {
  position: absolute;
  left: 110px;
  right: 110px;
  bottom: 126px;
  z-index: 7;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}
.variant-label {
  justify-self: center;
  color: #07254f;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,83,255,.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  box-shadow: 0 10px 24px rgba(6,31,65,.10);
}
.variant-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.variant-btn {
  min-width: 132px;
  max-width: 178px;
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(11,83,255,.16);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255,255,255,.88);
  color: #07254f;
  box-shadow: 0 10px 24px rgba(6,31,65,.10);
  text-align: left;
}
.variant-btn strong { font-size: 11px; color: var(--adl-blue); text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-btn span { font-size: 12px; font-weight: 840; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-btn.active, .variant-btn:hover { border-color: rgba(11,83,255,.55); background: #fff; transform: translateY(-1px); }
.variant-source {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: var(--site-muted);
  padding: 11px 13px;
  line-height: 1.45;
  font-size: 12px;
}
.variant-source strong { color: var(--site-text); }
.variant-source a { color: var(--site-cyan); font-weight: 800; }
.card-summary .variant-line { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.12); }
.card-summary .variant-line strong { margin: 0 0 3px; font-size: 12px; color: var(--site-cyan); text-transform: uppercase; letter-spacing: .1em; }
.card-summary .variant-line span { color: var(--site-muted); }

.human-scale {
  --human-scale: 1;
  display: none;
  position: absolute;
  left: 74px;
  bottom: 165px;
  width: 82px;
  height: 210px;
  z-index: 6;
  color: #092044;
  transform: scale(var(--human-scale));
  transform-origin: bottom left;
  transform-style: preserve-3d;
  filter: drop-shadow(0 12px 18px rgba(6,31,65,.18));
}
.human-head { position: absolute; left: 29px; top: 0; width: 25px; height: 25px; border-radius: 50%; background: linear-gradient(180deg,#26344a,#071525); }
.human-body { position: absolute; left: 26px; top: 30px; width: 31px; height: 74px; border-radius: 18px 18px 9px 9px; background: linear-gradient(180deg,#1c2f52,#071525); }
.human-arm, .human-leg { position: absolute; background: #071525; border-radius: 999px; }
.human-arm { top: 40px; width: 12px; height: 72px; }
.human-arm.left { left: 13px; transform: rotate(8deg); }
.human-arm.right { right: 13px; transform: rotate(-8deg); }
.human-leg { top: 100px; width: 13px; height: 82px; }
.human-leg.left { left: 30px; transform: rotate(4deg); }
.human-leg.right { right: 30px; transform: rotate(-4deg); }
.human-scale::before { content:""; position: absolute; right: -18px; top: 1px; height: 182px; width: 2px; background: var(--adl-blue); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.human-scale::after { content:""; position: absolute; right: -26px; top: 0; width: 18px; height: 182px; border-top: 2px solid var(--adl-blue); border-bottom: 2px solid var(--adl-blue); }
.human-scale strong, .human-scale em { position: absolute; left: -8px; width: 98px; text-align: center; font-style: normal; }
.human-scale strong { bottom: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.human-scale em { bottom: 2px; font-size: 12px; color: var(--adl-blue); font-weight: 900; }
.scale-panel {
  display: none;
  position: absolute;
  right: 28px;
  top: 82px;
  z-index: 9;
  width: min(280px, 38vw);
  border: 1px solid rgba(102,228,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 34px rgba(6,31,65,.16), inset 0 0 0 1px rgba(11,83,255,.06);
  padding: 12px 13px;
  color: #07254f;
  backdrop-filter: blur(14px);
}
.scale-panel strong { display: block; margin-bottom: 7px; color: #061f41; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.scale-panel span { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid rgba(11,83,255,.10); font-size: 12px; font-weight: 850; }
.scale-panel small { display: block; margin-top: 8px; color: #52657d; font-size: 11px; line-height: 1.35; }
.viewer-panel.fullscreen-live .human-scale { display: block; }
.viewer-panel.fullscreen-live .scale-panel { display: block; }
.viewer-panel.fullscreen-live .cad-stage { min-height: 760px; }
.viewer-panel.fullscreen-live .variant-tray { bottom: 132px; }
.viewer-panel.fullscreen-live .control-dock { width: min(94%, 1080px); }
.viewer-panel.fullscreen-live .model-object { --zoom: 1.18; }

@media (max-width: 980px) {
  .topbar { align-items: center; overflow-x: auto; }
  .navlinks { gap: 2px; }
  .navlinks a { padding: 9px 11px; }
  .variant-tray { left: 86px; right: 22px; bottom: 126px; }
  .variant-buttons { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: 1fr; }
  .navlinks { justify-content: flex-start; overflow-x: auto; }
  .variant-tray { left: 16px; right: 16px; bottom: 140px; }
  .variant-btn { min-width: 126px; }
  .human-scale { left: 22px; --human-scale: .8; transform-origin: bottom left; }
  .scale-panel { right: 14px; width: min(260px, 76vw); }
}

/* v5 real-world-like visual sharpening: public-source exterior cues only */
.profile-cue { display: block; margin-top: 6px; color: #29415f; line-height: 1.45; }
.profile-cue b { color: #061f41; }
.warhead-fin, .rivet-row, .tail-fairing, .transport-cradle { display: none; }
.rivet-row {
  left: 174px;
  width: 244px;
  height: 4px;
  background: radial-gradient(circle, rgba(6,31,65,.34) 0 1.2px, transparent 1.4px) 0 0 / 14px 4px repeat-x;
  transform: translateZ(28px);
  opacity: .5;
}
.rivet-row.r1 { top: 111px; }
.rivet-row.r2 { top: 137px; transform: translateZ(-28px); opacity: .35; }
.tail-fairing {
  left: 438px;
  top: 102px;
  width: 42px;
  height: 48px;
  border-radius: 16px 999px 999px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.36), rgba(6,31,65,.18));
  border: 1px solid rgba(6,31,65,.12);
  transform: translateZ(20px);
}
.transport-cradle {
  left: 132px;
  top: 176px;
  width: 330px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6,31,65,.22), rgba(6,31,65,.06));
  transform: translateZ(-44px) rotateX(78deg);
  opacity: .68;
}
.transport-cradle::before,
.transport-cradle::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 54px;
  height: 22px;
  border: 2px solid rgba(6,31,65,.24);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.transport-cradle::before { left: 70px; }
.transport-cradle::after { right: 70px; }
.warhead-fin {
  width: 34px;
  height: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(71,83,72,.72));
  border: 1px solid rgba(6,31,65,.16);
  clip-path: polygon(0 100%, 100% 0, 86% 100%);
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 10px rgba(6,31,65,.14));
}
.wf1 { left: 160px; top: 78px; transform: translateZ(26px) rotate(7deg); }
.wf2 { left: 160px; top: 151px; transform: translateZ(-26px) scaleY(-1) rotate(-7deg); }
.wf3 { left: 148px; top: 101px; transform: translateZ(0) rotate(-90deg) scale(.72); opacity: .55; }
.wf4 { left: 180px; top: 127px; transform: translateZ(0) rotate(90deg) scale(.72); opacity: .55; }

.profile-df11 { --body:#8e9780; --body2:#c2c5ad; --nose:#3b4537; --accent:#b82035; }
.profile-df11 .fuselage,
.profile-df15 .fuselage,
.profile-fateh .fuselage {
  left: 136px;
  top: 101px;
  width: 336px;
  height: 49px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c6cab3 0%, var(--body2) 18%, var(--body) 52%, #4f5b48 54%, #222d26 100%);
  box-shadow: inset 0 10px 16px rgba(255,255,255,.35), inset 0 -14px 18px rgba(0,0,0,.2), 0 28px 38px rgba(6,31,65,.18);
}
.profile-df11 .nose,
.profile-df15 .nose,
.profile-fateh .nose {
  left: 64px;
  top: 101px;
  width: 98px;
  height: 50px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(180deg, #1d261f, var(--nose) 45%, #9ba28e 100%);
}
.profile-df11 .nose-tip,
.profile-df15 .nose-tip,
.profile-fateh .nose-tip { left: 58px; top: 117px; width: 15px; height: 15px; background: #18211c; }
.profile-df11 .nozzle,
.profile-df15 .nozzle,
.profile-fateh .nozzle { left: 462px; top: 109px; width: 38px; height: 34px; }
.profile-df11 .nozzle-ring,
.profile-df15 .nozzle-ring,
.profile-fateh .nozzle-ring { left: 489px; top: 105px; }
.profile-df11 .exhaust-core,
.profile-df15 .exhaust-core,
.profile-fateh .exhaust-core { left: 494px; top: 113px; }
.profile-df11 .wing, .profile-df11 .canard,
.profile-df15 .wing, .profile-df15 .canard,
.profile-fateh .wing, .profile-fateh .canard { opacity: 0; }
.profile-df11 .fin,
.profile-df15 .fin,
.profile-fateh .fin { display: block; left: 426px; top: 50px; width: 72px; height: 55px; clip-path: polygon(14% 100%, 100% 0, 82% 100%); background: linear-gradient(135deg,#9aa18b,#3c4b39); }
.profile-df11 .fin.bottom,
.profile-df15 .fin.bottom,
.profile-fateh .fin.bottom { top: 151px; }
.profile-df11 .warhead-fin,
.profile-df11 .rivet-row,
.profile-df11 .transport-cradle,
.profile-df11 .tail-fairing,
.profile-df15 .rivet-row,
.profile-df15 .transport-cradle,
.profile-fateh .rivet-row,
.profile-fateh .transport-cradle { display: block; }
.profile-df11 .band.b1 { left: 173px; height: 49px; top: 101px; width: 6px; background: #c6182b; opacity: .74; }
.profile-df11 .band.b2 { left: 342px; height: 49px; top: 101px; width: 4px; opacity: .38; }
.profile-df11 .band.b3 { left: 408px; height: 49px; top: 101px; width: 4px; opacity: .26; }
.profile-df11 .dorsal-ridge { left: 172px; top: 94px; width: 226px; height: 6px; }
.profile-df11 .ventral-ridge { left: 190px; top: 152px; width: 180px; height: 5px; }

.profile-iskander { --body:#8a927a; --body2:#c7cbb2; --nose:#56604e; --accent:#293a2e; }
.profile-iskander .fuselage { left: 124px; width: 318px; height: 62px; top: 92px; background: linear-gradient(180deg,#d4d5bd,#89937a 52%,#333d32); }
.profile-iskander .nose { left: 54px; width: 98px; height: 62px; top: 92px; clip-path: polygon(0 50%, 100% 7%, 100% 93%); background: linear-gradient(180deg,#eff0dc,#7f8874,#46503f); }
.profile-iskander .fin { left: 394px; width: 92px; height: 68px; top: 42px; background: linear-gradient(135deg,#a0aa92,#374333); }
.profile-iskander .fin.bottom { top: 151px; }
.profile-iskander .canard, .profile-iskander .wing { opacity: 0; }
.profile-iskander .rivet-row, .profile-iskander .transport-cradle, .profile-iskander .tail-fairing { display: block; }
.profile-iskander .transport-cradle { left: 120px; width: 314px; }

.profile-df21 .fuselage,
.profile-df26 .fuselage,
.profile-ballistic_mid .fuselage,
.profile-ballistic_long .fuselage {
  left: 120px;
  width: 390px;
  height: 54px;
  top: 98px;
  background: linear-gradient(180deg,#d0d3be,#8a927b 52%,#303a2e);
}
.profile-df21 .nose,
.profile-df26 .nose,
.profile-ballistic_mid .nose,
.profile-ballistic_long .nose { left: 44px; width: 108px; height: 56px; top: 97px; }
.profile-df21 .fin, .profile-df26 .fin { left: 466px; width: 60px; height: 46px; top: 58px; }
.profile-df21 .fin.bottom, .profile-df26 .fin.bottom { top: 150px; }
.profile-df21 .wing, .profile-df21 .canard, .profile-df26 .wing, .profile-df26 .canard { opacity: 0; }
.profile-df21 .rivet-row, .profile-df21 .transport-cradle, .profile-df26 .rivet-row, .profile-df26 .transport-cradle { display: block; }
.profile-df26 .fuselage { width: 430px; left: 100px; }
.profile-df26 .nozzle { left: 518px; }
.profile-df26 .nozzle-ring { left: 552px; }
.profile-df26 .exhaust-core { left: 557px; }

.profile-tomahawk { --body:#e8edf4; --body2:#ffffff; --nose:#bfc9d4; --accent:#0b53ff; }
.profile-tomahawk .fuselage { left: 80px; width: 430px; height: 40px; top: 106px; background: linear-gradient(180deg,#fff,#dce5ef 48%,#aebccd 50%,#eef4fb); }
.profile-tomahawk .nose { left: 28px; width: 78px; height: 42px; top: 105px; clip-path: polygon(0 50%,100% 0,100% 100%); }
.profile-tomahawk .wing { display:block; left: 260px; width: 190px; height: 38px; top: 70px; clip-path: polygon(0 100%,100% 0,84% 100%); }
.profile-tomahawk .wing.bottom { top: 144px; }
.profile-tomahawk .canard { opacity:.18; }
.profile-tomahawk .fin { left: 452px; top: 58px; width: 58px; height: 44px; }
.profile-tomahawk .fin.bottom { top: 150px; }
.profile-tomahawk .intake, .profile-tomahawk .rivet-row { display:block; }
.profile-tomahawk .left-intake { left: 214px; top: 87px; }
.profile-tomahawk .right-intake { left: 214px; top: 140px; }

.profile-brahmos { --body:#cfd7df; --body2:#f4f7fb; --nose:#7d8790; --accent:#f28c28; }
.profile-brahmos .fuselage { left: 92px; width: 420px; height: 58px; top: 96px; background: linear-gradient(180deg,#f9fbfe,#ccd5de 48%,#8997a5 51%,#e8edf2); }
.profile-brahmos .nose { left: 36px; top: 97px; height: 56px; width: 88px; }
.profile-brahmos .intake, .profile-brahmos .strake, .profile-brahmos .rivet-row, .profile-brahmos .tail-fairing { display: block; }
.profile-brahmos .wing { left: 318px; width: 150px; height: 44px; top: 62px; }
.profile-brahmos .wing.bottom { top: 148px; }
.profile-brahmos .fin { left: 460px; width: 65px; height: 50px; top: 53px; }
.profile-brahmos .fin.bottom { top: 151px; }
.profile-brahmos .nozzle { left: 506px; width: 45px; height: 38px; top: 106px; }
.profile-brahmos .nozzle-ring { left: 536px; }
.profile-brahmos .exhaust-core { left: 542px; }

.profile-jassm { --body:#d8dee7; --body2:#f8fbff; --nose:#a6b1bf; --accent:#113a7a; }
.profile-jassm .fuselage { left: 108px; width: 380px; height: 50px; top: 101px; border-radius: 18px 999px 999px 18px; clip-path: polygon(0 18%, 86% 0, 100% 50%, 86% 100%, 0 82%); }
.profile-jassm .nose { left: 42px; width: 92px; height: 50px; top: 101px; clip-path: polygon(0 50%,100% 12%,100% 88%); }
.profile-jassm .wing { left: 254px; width: 190px; height: 34px; top: 74px; opacity:.72; }
.profile-jassm .wing.bottom { top: 146px; }
.profile-jassm .intake, .profile-jassm .rivet-row, .profile-jassm .dorsal-ridge { display: block; }

.profile-shahed { --body:#d8d2b4; --body2:#efe8cc; --nose:#6b6452; --accent:#12805c; }
.profile-shahed .fuselage { left: 194px; top: 102px; width: 205px; height: 48px; background: linear-gradient(180deg,#f2edd3,#aaa17c 52%,#504b3a); }
.profile-shahed .nose { left: 128px; top: 102px; width: 92px; height: 48px; clip-path: polygon(0 50%,100% 0,100% 100%); }
.profile-shahed .wing { left: 104px; width: 350px; height: 64px; top: 54px; clip-path: polygon(10% 100%, 50% 0, 94% 100%); transform: translateZ(18px); background: linear-gradient(135deg,#e7e1c6,#9b926f); }
.profile-shahed .wing.bottom { top: 135px; transform: translateZ(-18px) scaleY(-1); }
.profile-shahed .canard, .profile-shahed .fin, .profile-shahed .seeker-window, .profile-shahed .strake { display: none; }
.profile-shahed .prop { display: block; left: 414px; top: 90px; }
.profile-shahed .rivet-row { display:block; left: 220px; width: 150px; }
.profile-shahed .nozzle, .profile-shahed .nozzle-ring, .profile-shahed .exhaust-core { display:none; }

.profile-patriot { --body:#f0f5fb; --body2:#ffffff; --nose:#d7e0eb; --accent:#0b53ff; }
.profile-patriot .fuselage { left: 78px; width: 430px; height: 38px; top: 107px; background: linear-gradient(180deg,#ffffff,#eef4fb 46%,#c5d0dc 49%,#ffffff); }
.profile-patriot .nose { left: 26px; width: 78px; height: 40px; top: 106px; }
.profile-patriot .wing { width: 78px; left: 346px; top: 77px; }
.profile-patriot .wing.bottom { top: 145px; }
.profile-patriot .canard { width: 54px; left: 194px; top: 84px; }
.profile-patriot .canard.bottom { top: 144px; }
.profile-patriot .fin { left: 454px; top: 62px; width: 58px; height: 42px; }
.profile-patriot .fin.bottom { top: 147px; }
.profile-patriot .rivet-row { display:block; }

.profile-amraam { --body:#dfe7f3; --body2:#ffffff; --nose:#bcc8d6; --accent:#0b53ff; }
.profile-amraam .fuselage { left: 84px; width: 392px; height: 38px; top: 107px; }
.profile-amraam .nose { left: 30px; width: 82px; height: 40px; top: 106px; }
.profile-amraam .canard { left: 184px; width: 48px; height: 18px; }
.profile-amraam .wing { left: 332px; width: 96px; height: 30px; }
.profile-amraam .fin { left: 442px; width: 62px; height: 42px; }
.profile-amraam .rivet-row { display:block; }

.profile-javelin { --body:#6d7b6a; --body2:#a9b69b; --nose:#303a30; --accent:#254c37; }
.profile-javelin .fuselage { width: 300px; left: 132px; height: 42px; top: 105px; background: linear-gradient(180deg,#b7bea3,#6d7a5e 55%,#303a2c); }
.profile-javelin .nose { left: 84px; top: 105px; width: 74px; height: 43px; clip-path: polygon(0 50%,100% 0,100% 100%); }
.profile-javelin .wing { width: 58px; left: 320px; top: 78px; }
.profile-javelin .wing.bottom { top: 145px; }
.profile-javelin .canard { width: 42px; left: 218px; }
.profile-javelin .fin { left: 410px; width: 40px; height: 34px; }
.profile-javelin .rivet-row { display:block; width: 180px; }


/* v6 CSIS model-pack integration and selector placement refinements. */
.selector-panel {
  margin: 0 0 16px;
}
.selector-panel + .workspace {
  margin-top: 0;
}
.selector-head {
  align-items: center;
}
.variant-buttons {
  max-height: 118px;
  overflow: auto;
  padding-right: 3px;
}
.variant-btn span {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.help-strip {
  gap: 12px;
}
.help-strip a + a {
  margin-left: 0;
}
@media (max-width: 820px) {
  .selector-panel { margin-top: 12px; }
  .selector-head { align-items: flex-start; }
}


/* v7 data/control refinements: quick links, selector info modal, and cleaner library footer. */
.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: end;
}
.hero-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hero-links a {
  flex: 0 0 auto;
  color: var(--site-text);
  border: 1px solid rgba(102,228,255,.20);
  background: rgba(102,228,255,.10);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.hero-links a:hover { background: rgba(102,228,255,.16); transform: translateY(-1px); }
.selector-title-inline { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.info-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(102,228,255,.36);
  background: rgba(102,228,255,.12);
  color: var(--site-cyan);
  box-shadow: none;
  font-weight: 950;
  font-style: italic;
  line-height: 1;
}
.info-btn:hover { background: rgba(102,228,255,.20); color: #fff; }
.selector-info-card h3 {
  margin: 18px 0 8px;
  color: var(--site-cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.selector-info-card p + p { margin-top: 8px; }
.library-results { margin-bottom: 0; }
.library-panel .callout, .library-panel .safety-note { display: none !important; }
@media (max-width: 980px) {
  .hero-side { justify-items: start; }
  .hero-links { justify-content: flex-start; }
}

/* v8 navigation expansion */
.navlinks { margin-left: auto; justify-content: flex-end; flex-wrap: nowrap; min-width: max-content; }
.navlinks a { white-space: nowrap; }
.hero-actions { flex-wrap: nowrap; overflow-x: auto; }
.hero-actions .button { white-space: nowrap; }


/* v13 viewer polish: replace axis-letter gizmo with a neutral 3-D cube cue. */
.cube-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 9px;
  color: #dff8ff;
  background: linear-gradient(135deg, rgba(102,228,255,.28), rgba(11,83,255,.22));
  border: 1px solid rgba(102,228,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(11,83,255,.18);
}
.cube-gizmo {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 92px;
  height: 92px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.24));
}
.cube-gizmo::after {
  content: "3-D";
  position: absolute;
  left: 20px;
  bottom: -22px;
  color: var(--site-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
}
.cube-face {
  position: absolute;
  display: block;
  border: 2px solid rgba(102,228,255,.78);
  background: rgba(102,228,255,.12);
  box-shadow: inset 0 0 18px rgba(102,228,255,.12);
}
.cube-face.front {
  width: 46px;
  height: 46px;
  left: 18px;
  top: 27px;
  border-radius: 8px;
}
.cube-face.top {
  width: 45px;
  height: 30px;
  left: 29px;
  top: 10px;
  transform: skewX(-34deg);
  border-radius: 8px 8px 4px 4px;
  background: rgba(11,83,255,.14);
}
.cube-face.side {
  width: 30px;
  height: 45px;
  left: 62px;
  top: 24px;
  transform: skewY(-34deg);
  border-radius: 4px 8px 8px 4px;
  background: rgba(255,180,92,.10);
  border-color: rgba(255,180,92,.56);
}
.library-panel .panel-title-row { justify-content: space-between; }
.viewer-panel .control-dock [data-view] { min-width: 112px; }


/* v14 true browser-3D model layer + ADL cube icon update */
.cube-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(102,228,255,.34);
  box-shadow: 0 12px 28px rgba(11,83,255,.18), inset 0 0 0 1px rgba(11,83,255,.08);
}
.three-stage {
  position: absolute;
  inset: 66px 20px 184px;
  z-index: 3;
  border-radius: 22px;
  pointer-events: none;
  overflow: hidden;
}
.three-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 26px 36px rgba(6,31,65,.24));
}
.cad-stage.three-ready .stage-inner {
  opacity: 0;
  visibility: hidden;
}
.cad-stage.three-ready .trajectory-overlay {
  opacity: .76;
  z-index: 2;
}
.cad-stage.three-ready .dimension-overlay,
.cad-stage.three-ready .variant-tray,
.cad-stage.three-ready .mode-toolbar,
.cad-stage.three-ready .control-dock,
.cad-stage.three-ready .human-scale,
.cad-stage.three-ready .cube-gizmo {
  z-index: 8;
}
.cad-stage.three-ready .world-grid { z-index: 1; }
.viewer-panel.fullscreen-live .three-stage {
  inset: 72px 34px 190px;
}
@media (max-width: 980px) {
  .three-stage { inset: 82px 10px 198px; }
}
/* v14: use supplied axis-cube mark inside the model container instead of generated cube faces. */
.cube-gizmo {
  top: 20px !important;
  left: 24px !important;
  right: auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px;
  background: rgba(255,255,255,.9) url('./assets/adl-3d-axis-cube-icon.png') center / 30px 30px no-repeat;
  border: 1px solid rgba(102,228,255,.36);
  box-shadow: 0 14px 32px rgba(6,31,65,.18), inset 0 0 0 1px rgba(11,83,255,.08);
  filter: none !important;
}
.cube-gizmo .cube-face,
.cube-gizmo::after { display: none !important; }

/* v15: family-specific true-3D support + single-row button hardening */
button,
[role="button"],
.primary-btn,
.ghost-btn,
.icon-btn,
.tool,
.info-btn,
.navlinks a,
.hero-links a,
.cat-back,
.cat-open,
.variant-btn,
.library-result,
.family-tile {
  white-space: nowrap !important;
}
.navlinks,
.hero-links,
.selector-actions,
.card-tabs,
.dock-row,
.variant-buttons,
.mode-toolbar,
.control-dock,
.cat-controls,
.cat-foot,
.cat-links {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: thin;
}
.variant-btn,
.control-dock button,
.mode-toolbar .tool,
.hero-links a,
.navlinks a,
.cat-back,
.cat-open {
  flex: 0 0 auto;
}
.model-object.profile-hgv .fuselage,
.model-object.profile-hgv .fuselage-core {
  border-radius: 38% 58% 48% 42% / 52% 42% 58% 48%;
  transform: rotate(-6deg) skewX(-8deg);
}
.model-object.profile-icbm-heavy { --model-width: 640px; }
.model-object.profile-slbm { --model-width: 610px; }
.model-object.profile-hellfire,
.model-object.profile-javelin { --model-width: 440px; }
.model-object.profile-shahed,
.model-object.profile-hgv { --model-width: 520px; }

/* v17: allow Select Projectile Family tiles to wrap inside their own cards, while keeping other buttons single-row */
.family-rail {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
}
.family-rail .family-tile {
  white-space: normal !important;
  text-align: center !important;
  justify-items: center;
  align-items: center;
  align-content: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.family-rail .family-name,
.family-rail .family-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  text-align: center !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.18;
}
.family-rail .family-name {
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: .02em;
}
.family-rail .family-sub {
  font-size: clamp(10px, .86vw, 11px);
  min-height: 0;
}


/* v23: wrapping family rail and white model-note text */
.selector-panel .family-rail {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important;
  grid-auto-columns: unset !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
  align-items: stretch;
}
.selector-panel .family-tile,
.selector-panel .family-tile *,
.family-tile,
.family-tile * {
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.selector-panel .family-tile {
  min-height: 132px;
  align-content: center;
  justify-items: center;
}
.selector-panel .family-name { line-height: 1.14; }
.selector-panel .family-sub { line-height: 1.28; min-height: auto; }
.variant-source,
.variant-source strong,
.variant-source .profile-cue,
.variant-source .profile-cue b {
  color: #fff !important;
}
.variant-source a { color: #9eeaff !important; }
@media (max-width: 980px) {
  .selector-panel .family-rail { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }
}
