.hdv-atlas-page {
  --atlas-bg: #0b1014;
  --atlas-surface: #111a20;
  --atlas-surface-2: #17232b;
  --atlas-line: rgba(232, 240, 247, .12);
  --atlas-text: #edf6f8;
  --atlas-muted: rgba(226, 235, 244, .68);
  --atlas-jade: #20f08a;
  --atlas-cyan: #22d3ee;
  --atlas-gold: #f9c74f;
  --atlas-ember: #f97316;
}

.hdv-atlas-hero {
  padding: 132px 0 42px;
  background:
    linear-gradient(180deg, rgba(11, 16, 20, .7), var(--atlas-bg)),
    linear-gradient(120deg, rgba(32, 240, 138, .08), rgba(249, 115, 22, .08));
}

.hdv-atlas-hero h1 {
  max-width: 860px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: 4.2rem;
  line-height: .98;
}

.hdv-atlas-hero p:last-child {
  max-width: 760px;
  color: var(--atlas-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hdv-atlas-app {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr);
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 120px;
  align-items: start;
}

.hdv-atlas-stage {
  position: sticky;
  top: 126px;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 12, 15, .08), rgba(7, 12, 15, .76)),
    linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(32, 240, 138, .1) 46%, rgba(249, 199, 79, .14)),
    #101a20;
}

.hdv-atlas-stage canvas {
  display: block;
  width: 100%;
  height: 620px;
}

.hdv-atlas-stage-ui {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  pointer-events: none;
}

.hdv-atlas-stage-ui h2 {
  margin: 4px 0 5px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hdv-atlas-stage-ui small,
.hdv-atlas-kind {
  color: var(--atlas-gold);
  font: 850 .72rem var(--font-mono);
  text-transform: uppercase;
}

.hdv-atlas-stage-ui p {
  max-width: 560px;
  margin: 0;
  color: rgba(237, 246, 248, .68);
  font-size: .88rem;
}

.hdv-atlas-controls {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hdv-atlas-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: var(--atlas-text);
  background: rgba(8, 13, 18, .78);
}

.hdv-atlas-controls button:hover,
.hdv-atlas-controls button[aria-pressed="true"] {
  border-color: rgba(32, 240, 138, .55);
  color: #07120d;
  background: var(--atlas-jade);
}

.hdv-atlas-panel {
  display: grid;
  gap: 14px;
}

.hdv-atlas-detail,
.hdv-atlas-filters {
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  background: rgba(17, 26, 32, .88);
}

.hdv-atlas-detail {
  padding: 22px;
}

.hdv-atlas-detail h2 {
  margin: 7px 0 10px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
}

.hdv-atlas-detail p {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.58;
}

.hdv-atlas-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.hdv-atlas-detail dl div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.hdv-atlas-detail dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .46);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hdv-atlas-detail dd {
  margin: 0;
  color: #fff;
  font-size: .92rem;
}

.hdv-atlas-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hdv-atlas-links a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #07120d;
  background: var(--atlas-cyan);
  font-size: .82rem;
  font-weight: 850;
}

.hdv-atlas-filters {
  padding: 16px;
}

.hdv-atlas-filters label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-weight: 850;
}

.hdv-atlas-filters div {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(7, 12, 15, .5);
}

.hdv-atlas-filters .material-symbols-outlined {
  color: var(--atlas-jade);
}

.hdv-atlas-filters input,
.hdv-atlas-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: var(--atlas-text);
  background: rgba(7, 12, 15, .68);
}

.hdv-atlas-filters input {
  border: 0;
  background: transparent;
}

.hdv-atlas-filters select {
  padding: 11px 12px;
}

.hdv-atlas-filters input:focus,
.hdv-atlas-filters select:focus {
  outline: 3px solid rgba(32, 240, 138, .25);
}

.hdv-atlas-filters p {
  min-height: 1.2em;
  margin: 9px 0 0;
  color: rgba(226, 235, 244, .58);
  font-size: .84rem;
}

.hdv-atlas-static {
  display: grid;
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 120px;
}

.hdv-atlas-static .hdv-atlas-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .34fr);
  gap: 10px 14px;
  align-items: end;
}

.hdv-atlas-static .hdv-atlas-filters label,
.hdv-atlas-static .hdv-atlas-filters p {
  grid-column: 1 / -1;
}

.hdv-atlas-static .hdv-atlas-filters div {
  margin: 0;
}

.hdv-atlas-static-card {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) minmax(0, .58fr);
  gap: 16px;
  min-height: 320px;
  padding: 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  background: rgba(17, 26, 32, .86);
}

.hdv-atlas-static-card:hover {
  border-color: rgba(32, 240, 138, .45);
  background: rgba(22, 34, 41, .96);
}

.hdv-atlas-reference {
  display: grid;
  place-items: center;
  min-height: 288px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .035) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .035) 75%),
    radial-gradient(circle at 50% 32%, rgba(34, 211, 238, .22), transparent 44%),
    rgba(8, 13, 18, .72);
  background-position: 0 0, 12px 12px, 0 0, 0 0;
  background-size: 24px 24px, 24px 24px, auto, auto;
  overflow: hidden;
}

.hdv-atlas-reference img {
  display: block;
  width: min(100%, 340px);
  height: min(100%, 300px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .52));
}

.hdv-atlas-reference--missing {
  color: var(--atlas-jade);
}

.hdv-atlas-static-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hdv-atlas-static-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hdv-atlas-static-copy > p {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.55;
}

.hdv-atlas-static-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hdv-atlas-static-copy dl div,
.hdv-atlas-static-lists section {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.hdv-atlas-static-copy dt {
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hdv-atlas-static-copy dd {
  margin: 3px 0 0;
  color: #fff;
}

.hdv-atlas-static-lists {
  display: grid;
  gap: 8px;
}

.hdv-atlas-static-lists h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: .88rem;
}

.hdv-atlas-static-lists ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: rgba(226, 235, 244, .68);
  font-size: .84rem;
  line-height: 1.42;
}

.hdv-atlas-routes {
  grid-column: 1 / -1;
  margin-top: 26px;
}

.hdv-atlas-routes > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hdv-atlas-route {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  color: inherit;
  background: rgba(23, 35, 43, .7);
}

.hdv-atlas-route:hover {
  border-color: rgba(249, 199, 79, .5);
  transform: translateY(-2px);
}

.hdv-atlas-route span {
  color: var(--atlas-gold);
  font: 850 .72rem var(--font-mono);
  text-transform: uppercase;
}

.hdv-atlas-route strong {
  color: #fff;
  font-size: 1.04rem;
}

.hdv-atlas-route p {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.5;
}

.hdv-atlas-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hdv-atlas-static .hdv-atlas-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hdv-atlas-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: rgba(17, 26, 32, .82);
}

.hdv-atlas-card:hover,
.hdv-atlas-card[aria-current="true"] {
  border-color: rgba(32, 240, 138, .58);
  background: rgba(27, 42, 48, .95);
}

.hdv-atlas-card > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #07120d;
  background: var(--atlas-jade);
}

.hdv-atlas-card-render {
  align-self: stretch;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(34, 211, 238, .2), transparent 42%),
    linear-gradient(180deg, rgba(32, 240, 138, .12), rgba(17, 26, 32, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .28);
  display: block;
  height: 88px;
  object-fit: cover;
  object-position: center;
  width: 88px;
}

.hdv-atlas-card small {
  display: block;
  color: var(--atlas-cyan);
  font: 820 .68rem var(--font-mono);
  text-transform: uppercase;
}

.hdv-atlas-card h3 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.hdv-atlas-card p {
  margin: 0;
  color: rgba(226, 235, 244, .62);
  font-size: .86rem;
  line-height: 1.45;
}

.hdv-atlas-card[hidden],
.hdv-atlas-gallery[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hdv-atlas-app { grid-template-columns: 1fr; }
  .hdv-atlas-stage { position: relative; top: auto; min-height: 560px; }
  .hdv-atlas-stage canvas { height: 560px; }
  .hdv-atlas-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdv-atlas-static .hdv-atlas-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hdv-atlas-hero { padding-top: 112px; }
  .hdv-atlas-hero h1 { font-size: 2.55rem; }
  .hdv-atlas-app { gap: 14px; padding-top: 22px; }
  .hdv-atlas-static { gap: 14px; padding-top: 22px; }
  .hdv-atlas-static .hdv-atlas-filters { grid-template-columns: 1fr; }
  .hdv-atlas-stage { min-height: 460px; }
  .hdv-atlas-stage canvas { height: 460px; }
  .hdv-atlas-stage-ui { left: 12px; right: 12px; bottom: 12px; display: grid; }
  .hdv-atlas-controls { justify-content: start; }
  .hdv-atlas-detail dl { grid-template-columns: 1fr; }
  .hdv-atlas-static-card { grid-template-columns: 1fr; min-height: auto; }
  .hdv-atlas-reference { min-height: 240px; }
  .hdv-atlas-static-copy dl { grid-template-columns: 1fr; }
  .hdv-atlas-routes > div:last-child,
  .hdv-atlas-gallery { grid-template-columns: 1fr; }
}
