/* Brand stage and motion */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.top {
  background: rgba(15, 28, 40, 0.96);
  border-color: #ffffff1b;
  color: #fff8ef;
}
.top .brand-hyphen {
  color: #ff8c66;
}
.top .nav a {
  color: #d7dddf;
}
.top .nav a:hover {
  color: #ffae8a;
}
.top .git-btn {
  color: #fff;
  border-color: #73818d;
}
.top .git-btn:hover {
  background: #303f4c;
}
.menu-trigger {
  display: none;
}
.hero {
  background:
    radial-gradient(ellipse at 74% 47%, #323a4b 0%, #192937 32%, transparent 61%),
    linear-gradient(115deg, #0f1b28, #172837 65%, #172635);
  color: #fff9ed;
  border-color: #273746;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#e7eef105 1px, transparent 1px),
    linear-gradient(90deg, #e7eef105 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero .eyebrow {
  color: #fac7ad;
}
.hero .eyebrow b {
  background: #ff9f74;
}
.hero h1 {
  color: #fffaf0;
}
.hero h1 span {
  color: #ffa07b;
}
.hero .lead {
  color: #d4dbdd;
  max-width: 29em;
}
.hero .primary {
  background: #ffa07b;
  color: #211e23;
  border-color: transparent;
  box-shadow: 0 5px 25px #ff95653a;
}
.hero .primary:hover {
  background: #ffb699;
}
.hero .hero-secondary {
  color: #f3f4ef;
  background: #ffffff08;
  border-color: #667580;
}
.hero .hero-secondary:hover {
  background: #ffffff18;
}
.hero .hero-meta {
  color: #b3c0c5;
  flex-wrap: wrap;
  gap: 11px;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: inherit;
  font-size: inherit;
}
.motion-toggle:hover {
  color: #fff;
}
.motion-toggle:disabled {
  cursor: default;
}
.motion-toggle svg {
  width: 13px;
  height: 13px;
}
.hero .art-grid {
  background-image: radial-gradient(#e3bda9 1px, transparent 1px);
  opacity: 0.32;
}
.hero .halo {
  background: radial-gradient(at 32% 24%, #ffd6a6 0%, #ffad85 38%, #f77b66 72%, #cf5556 100%);
  box-shadow:
    0 0 70px #ff9b6230,
    inset -15px -15px 36px #b54e5147;
  transform: translate(calc(var(--tilt-x, 0px) * -0.6), calc(var(--tilt-y, 0px) * -0.6));
}
.hero .halo:before {
  border-color: #fec3a8;
  inset: -4.4%;
}
.orbit {
  border-color: #e6b294a8;
  animation: orbit-breathe 8s ease-in-out infinite;
}
.orbit:before {
  box-shadow: 0 0 15px #ffa471;
}
.stage-floor {
  position: absolute;
  inset: 77% 15% 1%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c38469aa 0, #ca977433 37%, transparent 68%);
  filter: blur(12px);
}
.hero-figure {
  padding: 0;
  background: transparent;
  border-radius: 20%;
  transition: translate 0.24s ease-out;
  translate: var(--tilt-x, 0px) var(--tilt-y, 0px);
  filter: drop-shadow(0 18px 14px #0004);
}
.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-figure:disabled {
  cursor: default;
}
.art-note,
.art-receipt {
  z-index: 1;
}
.art-note {
  animation: note-float 6s ease-in-out infinite;
  background: #fef9ef;
  color: #24313b;
}
.art-note svg {
  color: #d65e3e;
  width: 17px;
}
.art-receipt {
  position: absolute;
  right: 0;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #b3d3c26c;
  border-radius: 4px 12px 12px;
  background: rgba(30, 54, 55, 0.96);
  box-shadow: 0 9px 25px #0003;
  color: #ecf5e9;
  transform: rotate(4deg);
  animation: receipt-float 6s ease-in-out infinite;
}
.art-receipt > span:last-child {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}
.art-receipt small {
  display: block;
  color: #bdcdc4;
  font-weight: 450;
  font-size: 0.76rem;
}
.receipt-icon {
  display: grid;
  place-items: center;
  background: #b1ddc4;
  color: #194a37;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.receipt-icon svg {
  width: 15px;
  height: 15px;
}
@keyframes note-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(5px) rotate(-3deg);
  }
}
@keyframes receipt-float {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
@keyframes orbit-breathe {
  0%,
  100% {
    transform: rotate(-18deg) scale(0.98);
  }
  50% {
    transform: rotate(-14deg) scale(1.025);
  }
}
@keyframes content-in {
  from {
    transform: translateY(12px);
    opacity: 0.65;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.enter-view {
  animation: content-in 0.56s cubic-bezier(0.22, 0.77, 0.32, 1) both;
}
html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after {
  animation-play-state: paused !important;
  scroll-behavior: auto;
}
html[data-motion="paused"] .enter-view {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure,
  .hero .halo,
  .orbit,
  .art-receipt,
  .art-note,
  .enter-view {
    animation: none !important;
    translate: none !important;
  }
}
/* Product workspaces */
.features {
  background: #f8f7f2;
}

.studio-foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #dedfd9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f686b;
  font-size: 0.82rem;
}
.studio-foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #273e41;
  font-weight: 620;
}
.studio-command {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: #334147;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 13px 0 15px;
}
.studio-command svg {
  align-self: flex-start;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  color: #ac523c;
}
.naiwa-view {
  position: relative;
  background: #111c2b;
  border: 1px solid #d7deda;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}
.naiwa-image,
.reference-layer,
.reference-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.naiwa-view[data-art="pacific"] .naiwa-image,
.naiwa-view[data-art="street"][data-format="wide"] .naiwa-image {
  object-fit: cover;
  object-position: center;
}
.naiwa-view[data-art="hoodie"],
.naiwa-view[data-art="reference"] {
  background: #fbfbfb;
}
.reference-layer {
  background: #fcfcfc;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.naiwa-view:not([data-art="hoodie"]) .reference-layer,
.naiwa-view:not([data-art="hoodie"]) .split-line {
  display: none;
}
.case-caption,
#street-format {
  position: absolute;
  top: 9px;
  padding: 4px 8px;
  line-height: 1.4;
  background: #182028df;
  color: white;
  border: 1px solid #eee3;
  font-size: 0.78rem;
  border-radius: 5px;
}
.case-caption {
  left: 9px;
  pointer-events: none;
}
.naiwa-view[data-art="hoodie"] .case-caption {
  top: auto;
  bottom: 8px;
}
#street-format {
  right: 8px;
  z-index: 2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.split-line {
  position: absolute;
  inset: 0 auto 0 var(--split);
  width: 2px;
  background: #dd5b36;
  pointer-events: none;
  z-index: 2;
}
.split-line b {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fffdf6;
  border: 1px solid #d56d50;
  color: #913721;
  box-shadow: 0 2px 9px #28333835;
  border-radius: 50%;
  font: 700 17px/1 var(--sans);
}
.split-control {
  appearance: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.split-control::-webkit-slider-thumb {
  appearance: none;
  width: 1px;
  height: 100%;
}
.split-control::-moz-range-thumb {
  width: 1px;
  height: 100%;
  border: 0;
}
.naiwa-view:focus-within {
  outline: 3px solid #347aad;
  outline-offset: 2px;
}
.art-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 9px;
}
.art-steps button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 6px 3px 7px;
  border: 1px solid #e0e3df;
  border-radius: 8px;
  background: #fafbf9;
  line-height: 1.2;
  font-size: 0.8rem;
  color: #4d595c;
}
.art-steps img {
  width: 42px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
}
.art-steps button[aria-pressed="true"] {
  border-color: #d77b57;
  background: #fff1e7;
  color: #923816;
  font-weight: 700;
}
.art-steps button:hover {
  border-color: #d1947e;
}

.equity-panel {
  flex: 1;
  min-height: 230px;
  padding: 17px 19px 13px;
  display: flex;
  flex-direction: column;
  border: 1px solid #25433e;
  border-radius: 13px;
  background: radial-gradient(ellipse at right top, #294d41, transparent 70%), #152e2b;
  color: #e8eee1;
}
.equity-head {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #d4e2d4;
  font-size: 0.8rem;
}
.equity-head b {
  font: 650 0.86rem var(--mono);
  border: 1px solid #678476;
  border-radius: 5px;
  padding: 4px 6px;
  color: #e9f4d8;
}
.equity-quote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
}
.equity-quote strong {
  font: 550 clamp(1.9rem, 3.2vw, 3rem)/1.12 var(--sans);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: #e0f5b7;
}
.equity-quote > span {
  font-size: 0.84rem;
  color: #bdcfc1;
}
.equity-chart {
  position: relative;
  flex: 1;
  min-height: 152px;
  margin: 8px 0 0;
}
.chart-gridlines {
  position: absolute;
  inset: 0 0 23px;
  background: repeating-linear-gradient(to top, #aec5b633 0 1px, transparent 1px 25%);
  border-bottom: 1px solid #96b3a55c;
}
.equity-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.equity-bars button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 24px;
  min-width: 0;
  color: #cddacb;
}
.equity-bars button i {
  height: calc(var(--bar) * 0.83);
  width: clamp(28px, 4.9vw, 62px);
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(135deg, #6d987f 0 2px, #5f8974 2px 6px);
  transition:
    filter 0.18s,
    background 0.18s;
  transform-origin: bottom;
}
.equity-bars button[aria-pressed="true"] i {
  background: linear-gradient(0deg, #94b27a, #d2ed97);
}
.equity-bars b {
  font: 550 0.78rem var(--mono);
  line-height: 1.5;
  color: #e5ebdd;
}
.equity-bars span {
  position: absolute;
  bottom: 1px;
  font: 0.77rem var(--mono);
}
.equity-bars button[aria-pressed="true"] span {
  color: #e2f5ba;
  font-weight: 700;
}
.equity-bars button:hover i {
  filter: brightness(1.17);
}
.enter-view .equity-bars i {
  animation: bars-in 0.8s cubic-bezier(0.2, 0.74, 0.35, 1) backwards;
}
.enter-view .equity-bars button:nth-child(2) i {
  animation-delay: 0.07s;
}
.enter-view .equity-bars button:nth-child(3) i {
  animation-delay: 0.14s;
}
@keyframes bars-in {
  from {
    transform: scaleY(0.05);
  }
  to {
    transform: scaleY(1);
  }
}
/* Live execution diagram */
.mechanism {
  background: radial-gradient(ellipse at 75% 45%, #273944, transparent 65%), #142331;
}
.dark-top h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.85rem);
}
.dark-top .punct {
  color: #ffaf82;
}

.route-modes {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.route-modes button {
  font-weight: 650;
  font-size: 0.9rem;
  color: #cad6da;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 11px;
}
.route-modes button:hover {
  background: #ffffff0e;
}
.route-modes button[aria-pressed="true"] {
  background: #3a4a50;
  color: #ffcca5;
  border-color: #746d5f;
}

.ops-example {
  min-width: 275px;
}
.ops-example button {
  font: 0.8rem var(--mono);
  padding: 5px 7px;
  color: #c1d2d5;
  background: #1f3241;
  border-radius: 4px;
}
.ops-example button[aria-pressed="true"] {
  color: #ffcca8;
  background: #394345;
}
.ops-example p {
  font-size: 0.82rem;
}
@media (max-width: 930px) {
  .nav {
    gap: 18px;
  }

  .studio-foot {
    gap: 6px;
    flex-wrap: wrap;
  }

  .art-receipt {
    right: 0;
    bottom: 6%;
  }
}
@media (max-width: 690px) {
  .top .top-in {
    position: relative;
  }
  .menu-trigger {
    display: block;
    margin-left: auto;
    font-size: 0.9rem;
    padding: 6px 12px;
    color: #eef0e9;
    border: 1px solid #53616d;
    border-radius: 7px;
  }
  .top .nav {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    border-radius: 11px;
    padding: 10px;
    background: #1b2b38;
    border: 1px solid #415361;
    box-shadow: 0 12px 30px #0003;
  }
  .top .nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .top .nav a,
  .top .nav a:nth-child(2) {
    display: block;
    padding: 9px 11px;
    font-size: 0.9rem;
  }
  .hero .hero-meta {
    gap: 9px;
  }
  .art-receipt {
    right: 1%;
    bottom: 10%;
    padding: 7px 9px;
    gap: 6px;
  }
  .art-receipt > span:last-child {
    font-size: 0.78rem;
  }
  .art-receipt small {
    font-size: 0.7rem;
  }
  .receipt-icon {
    width: 21px;
    height: 21px;
  }
  .art-note svg {
    width: 13px;
  }

  .studio-foot {
    font-size: 0.79rem;
  }
  .naiwa-view {
    aspect-ratio: 3 / 2;
  }
  .art-steps button {
    font-size: 0.76rem;
  }
  .art-steps img {
    width: 38px;
    height: 24px;
  }
  .equity-panel {
    min-height: 250px;
  }
  .equity-quote strong {
    font-size: 2.2rem;
  }

  .route-modes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
  }
  .route-modes button {
    white-space: nowrap;
    padding: 6px 1px;
    font-size: 0.8rem;
  }

  .ops-example {
    min-width: 0;
  }
}
.chat-artwork {
  display: block;
  max-width: 185px;
  width: auto;
  max-height: 98px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 4px;
}
@media (max-width: 690px) {
  .scenarios {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .scenarios strong {
    font-size: 0.78rem;
  }
  .chat-artwork {
    max-width: 145px;
    max-height: 80px;
  }
}

#art-zoom {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #172430d9;
  color: #fff;
  border: 1px solid #ffffff62;
  border-radius: 6px;
}
#street-format {
  right: 45px;
}
#art-dialog {
  width: fit-content;
  max-width: 94vw;
  background: #14212d;
}
#art-dialog .diagram-head {
  min-width: min(320px, 88vw);
}
#art-full {
  display: block;
  max-width: 91vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}

/* One shared chat surface, including the original image and financial attachments. */
.demo-section {
  position: relative;
  background: #fbfaf6;
}
.anchor-alias {
  position: absolute;
  top: 0;
  left: 0;
}
.demo-grid {
  grid-template-columns: minmax(215px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(20px, 4.5vw, 66px);
  align-items: start;
}
.scenarios {
  gap: 3px;
}
.scenarios button {
  padding-block: 14px;
}
.chat-frame {
  min-width: 0;
}
.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-body {
  justify-content: flex-start;
  min-height: 300px;
}
.row-body {
  min-width: 0;
}
.reference-preview {
  display: inline-flex;
  vertical-align: middle;
  padding: 0;
  margin: 3px 0 0 6px;
  background: white;
  border: 1px solid #d6ded6;
  border-radius: 6px;
  cursor: zoom-in;
}
.reference-preview .chat-artwork {
  width: 61px;
  height: 38px;
  object-fit: contain;
  margin: 0;
}
.attachment-body {
  width: min(100% - 42px, 540px);
  min-width: 0;
}
.art-attachment,
.equity-attachment {
  background: #fff;
  border: 1px solid #d3ded4;
  border-radius: 0 13px 13px 13px;
  overflow: hidden;
  padding: 8px;
}
.art-attachment .naiwa-view {
  border-radius: 7px;
  border: 0;
  aspect-ratio: 3/2;
}
.naiwa-image {
  cursor: zoom-in;
}
.art-attachment .art-steps {
  margin-top: 6px;
  gap: 4px;
}
.art-attachment .art-steps button {
  padding: 4px 2px 5px;
  gap: 4px;
}
.art-attachment .art-steps img {
  width: 33px;
  height: 20px;
}
.attachment-source,
.equity-attachment .studio-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 3px 2px;
  color: #56645f;
  font-size: 0.78rem;
}
.attachment-source a,
.equity-attachment .studio-foot a {
  color: #285a48;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.equity-attachment {
  padding: 12px;
  background: #fafdf9;
}
.report-lead {
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 9px;
  color: #3d5047;
}
.equity-attachment .equity-panel {
  min-height: 250px;
}
.equity-attachment .studio-command {
  margin: 12px 2px 8px;
  font-size: 0.89rem;
}
.chat-frame[data-scene="art"] .chat-body,
.chat-frame[data-scene="market"] .chat-body {
  gap: 11px;
  padding-block: 15px;
}
@media (max-width: 690px) {
  .demo-grid {
    display: flex;
  }
  .scenarios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .scenarios button {
    flex-direction: row;
    justify-content: center;
    padding: 7px 2px;
  }
  .scenarios .tab-icon {
    width: 22px;
    height: 23px;
  }
  .scenarios small {
    display: none;
  }
  .scenarios strong {
    font-size: 0.82rem;
  }
  .chat-body {
    min-height: 250px;
  }
  .attachment-body {
    width: calc(100% - 34px);
  }
  .art-attachment,
  .equity-attachment {
    padding: 5px;
  }
  .art-attachment .art-steps img {
    width: 28px;
    height: 18px;
  }
  .art-attachment .art-steps button {
    font-size: 0.72rem;
  }
  .reference-preview .chat-artwork {
    width: 46px;
    height: 30px;
  }
  .attachment-source,
  .equity-attachment .studio-foot {
    font-size: 0.72rem;
  }
  .equity-attachment .equity-panel {
    min-height: 209px;
    padding: 12px;
  }
  .equity-attachment .equity-chart {
    min-height: 120px;
  }
  .equity-attachment .report-lead {
    font-size: 0.86rem;
    padding: 4px;
  }
  .equity-attachment .equity-quote strong {
    font-size: 2rem;
  }
}

/* The map is a single coordinate space. Scrolling and zooming preserve its topology. */
.atlas-section {
  background: radial-gradient(ellipse at 72% 44%, #203541, #101f2b 74%);
  color: #edf1e9;
  overflow: hidden;
}
.atlas-wrap {
  width: min(1490px, calc(100% - 64px));
  margin: auto;
}
.atlas-section .section-top {
  margin-inline: auto;
  max-width: 1320px;
}
.atlas-section .dark-top > p {
  color: #c0d1d3;
  max-width: 30em;
}
.atlas-shell {
  background: #162a34;
  border: 1px solid #3c565c;
  border-radius: 15px;
  overflow: hidden;
}
.atlas-topline,
.atlas-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 17px;
  background: #1a303a;
  border-bottom: 1px solid #344d55;
}
.atlas-legend,
.atlas-actions,
.atlas-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
}
.atlas-legend {
  flex-wrap: wrap;
  font-size: 0.81rem;
  color: #dae2e0;
}
.atlas-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.atlas-legend span::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--legend);
}
.legend-chat {
  --legend: #a3cffa;
}
.legend-time {
  --legend: #efc186;
}
.legend-tool {
  --legend: #c0abed;
}
.legend-send {
  --legend: #91d9b8;
}
.atlas-actions {
  gap: 6px;
}
.atlas-actions button,
.atlas-zoom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  line-height: 1.25;
  border-radius: 6px;
  border: 1px solid #667c7f;
  color: #f3f4e9;
  font-size: 0.85rem;
}
.atlas-actions button:first-child {
  color: #302922;
  background: #ffc39f;
  border-color: transparent;
  font-weight: 700;
}
.atlas-actions button svg {
  width: 15px;
  height: 15px;
}
.atlas-zoom {
  gap: 4px;
  margin-left: auto;
}
.atlas-zoom button {
  min-width: 34px;
  padding: 4px 8px;
}
.atlas-zoom button:disabled {
  opacity: 0.42;
  cursor: default;
}
.atlas-scroll {
  position: relative;
  max-height: 76vh;
  min-height: 130px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #667f80 #182d37;
  background-color: #162a34;
  background-image: radial-gradient(#86a8a32b 0.85px, transparent 1px);
  background-size: 16px 16px;
  cursor: grab;
  scrollbar-gutter: stable;
}
.atlas-scroll.dragging {
  cursor: grabbing;
}
.atlas-scroll svg#system-atlas {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 0;
  fill: none;
  stroke: none;
  user-select: none;
  overflow: visible;
}
.atlas-zone,
.wire-label,
.station-name,
.station-code {
  font-family: var(--sans);
  stroke: #162a34;
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-width: 5px;
}
.atlas-zone {
  font-size: 14px;
  font-weight: 590;
  letter-spacing: 1.2px;
  fill: #b0c7c8;
}
.wire-label {
  font-size: 13px;
  font-weight: 550;
  stroke-width: 4px;
}
.wire-clear {
  fill: none;
  stroke: #162a34;
  stroke-width: 6.5px;
}
.atlas-wire {
  fill: none;
  stroke-width: 2.2px;
  opacity: 0.82;
}
.atlas-wire.dashed {
  stroke-dasharray: 4 5;
}
.atlas-wire.lit {
  opacity: 1;
  stroke-width: 3.2px;
}
.station {
  cursor: pointer;
  outline: none;
}
.station-name {
  font-size: 17px;
  fill: #f4f7ec;
  font-weight: 660;
}
.station-code {
  font:
    12.7px var(--mono),
    var(--sans);
  fill: #bbcbcd;
}
.station-ring {
  fill: #142730;
  stroke: var(--station-color);
  stroke-width: 2.4px;
}
.station-dot {
  fill: var(--station-color);
}
.station-halo {
  stroke: var(--station-color);
  stroke-width: 1px;
  fill: #162a34;
}
.station[aria-pressed="true"] .station-ring,
.station:hover .station-ring,
.station:focus-visible .station-ring {
  fill: var(--station-color);
  stroke: #fff5df;
  stroke-width: 2.5px;
}
.station[aria-pressed="true"] .station-dot,
.station:focus-visible .station-dot {
  fill: #162a34;
}
.station[aria-pressed="true"] .station-name,
.station:focus-visible .station-name {
  fill: #ffca9f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.station.hub .station-name {
  font-size: 20px;
}
.station:focus-visible .station-halo {
  stroke: white;
  stroke-width: 2.5;
}
#atlas-packet {
  fill: #ffe3ad;
  stroke: #ffac6c;
  stroke-width: 2px;
  filter: drop-shadow(0 0 4px #efa94b);
}
.atlas-controls {
  justify-content: flex-start;
  border-top: 1px solid #36505a;
  font-size: 0.81rem;
  color: #c7d7d5;
  padding-block: 8px;
}
.atlas-controls select {
  background: #213a44;
  color: #eef1e6;
  border: 1px solid #587074;
  border-radius: 5px;
  padding: 4px 6px;
  max-width: 48%;
  font: inherit;
}
.atlas-info {
  display: flex;
  gap: 19px;
  align-items: baseline;
  padding: 17px 20px;
  color: #d4e2df;
}
.atlas-info strong {
  color: #ffcb9e;
  font-size: 1.1rem;
  white-space: nowrap;
}
.atlas-info p {
  font-size: 0.94rem;
  line-height: 1.55;
}
.atlas-info code {
  display: block;
  font: 0.78rem var(--mono);
  color: #9db6b6;
  margin-top: 4px;
}
#atlas-ops {
  padding: 0 20px 15px;
  color: #d3dfdd;
}
#atlas-dialog {
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #edf2eb;
  background: #11212b;
}
#atlas-dialog[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#atlas-dialog .atlas-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
#atlas-dialog .atlas-scroll {
  flex: 1;
  max-height: none;
}
@media (max-width: 800px) {
  .atlas-wrap {
    width: calc(100% - 32px);
  }
  .atlas-section .section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .atlas-scroll {
    max-height: 65vh;
  }
}
@media (max-width: 690px) {
  .atlas-wrap {
    width: calc(100% - 22px);
  }
  .atlas-section .section-top {
    margin-inline: 6px;
  }
  .atlas-section .dark-top > p {
    font-size: 0.93rem;
    line-height: 1.6;
  }
  .atlas-topline {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }
  .atlas-legend {
    gap: 8px;
    font-size: 0.76rem;
  }
  .atlas-legend span {
    gap: 4px;
  }
  .atlas-legend span:before {
    width: 10px;
  }
  .atlas-actions {
    margin-left: auto;
  }
  .atlas-actions button {
    font-size: 0.77rem;
    padding: 6px 8px;
  }
  .atlas-scroll {
    max-height: 54svh;
  }
  .atlas-controls {
    padding: 6px 8px;
    gap: 6px;
  }
  .atlas-info {
    display: block;
    padding: 10px 12px;
  }
  .atlas-info p {
    font-size: 0.87rem;
    margin-top: 3px;
  }
  .atlas-info strong {
    font-size: 0.98rem;
  }
  #atlas-dialog .atlas-scroll {
    max-height: none;
  }
  .atlas-zone {
    font-size: 15px;
  }
}
.atlas-wire.case-wire {
  stroke-width: 3;
  opacity: 1;
}
.atlas-wire.case-wire.lit {
  stroke-width: 4;
}
.map-touch-hint {
  display: none;
}
.case-to-map {
  margin-left: auto;
  font-size: 0.8rem;
  color: #33595a;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.atlas-scroll noscript img {
  display: block;
  max-width: 100%;
  height: auto;
}
@media (min-width: 801px) {
  .atlas-scroll {
    max-height: max(76vh, var(--fit-height, 0px));
  }
}
@media (max-width: 690px) {
  .map-touch-hint {
    display: block;
    margin-top: 4px;
  }
  .chat-foot {
    flex-wrap: wrap;
  }
  .chat-foot #scene-state {
    flex: 1 0 90%;
  }
}
/* Map dimensions and scroll offsets are updated together when zooming. */
#system-atlas {
  transition-property: none;
}
