.studio-atlas {
  display: block;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid #6b4631;
  border-radius: 12px;
  background: #1b1714;
  color: #f8eee5;
}
.studio-atlas-art { display: block; width: 100%; height: auto; }
.studio-atlas-art [data-atlas-key], .studio-atlas-art [data-angle-key] { cursor: pointer; }
.studio-atlas :is(button,[tabindex]):focus-visible { outline: 2px solid #ffd6a3; outline-offset: 2px; }
.atlas-examples, .atlas-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px clamp(10px,1.5vw,22px);
  background: #211c18;
}
.atlas-examples { border-bottom: 1px solid #553c2d; }
.atlas-examples-list { display: flex; flex-wrap: wrap; gap: 4px; }
.atlas-example, .atlas-toggle, .atlas-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 38px;
  padding: 5px 10px;
  font: 550 14px/1.2 var(--sans);
  color: #ede3d7;
  border-radius: 5px;
}
.atlas-example[aria-pressed=true] { background: #ff8152; color: #21120d; }
.atlas-example:not([aria-pressed=true]):hover, .atlas-toggle:hover, .atlas-next:hover { background: #433025; }
.atlas-example .route-line-icon { width: 18px; height: 18px; }
.atlas-toggle, .atlas-next { border: 1px solid #87644c; }
.atlas-toggle::before {
  content: ""; box-sizing: border-box; width: 10px; height: 10px;
  border-block: 5px solid transparent; border-left: 8px solid currentColor;
}
.atlas-toggle[data-playing=true]::before { border: 0; border-inline: 3px solid currentColor; }
.atlas-transport { border-top: 1px solid #553c2d; min-height: 53px; }
.atlas-eye-control {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 6px clamp(12px,2vw,24px); border-bottom: 1px solid #553c2d;
  background: #30241d; color: #f7dbc7; font-size: 14px;
}
.atlas-eye-control input { flex: 0 1 155px; min-width: 75px; max-width: 40%; accent-color: #ff8152; cursor: ew-resize; }
.atlas-transport p { margin: 0; color: #ebdbcc; font-size: 15px; line-height: 1.45; }
@container (max-width: 750px) {
  .atlas-examples { flex-wrap: wrap; gap: 6px; }
  .atlas-examples-list { flex: 1 1 75%; }
  .atlas-example { padding: 6px 8px; font-size: 13px; }
}
@container (max-width: 510px) {
  .atlas-examples { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; padding: 8px; }
  .atlas-examples-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .atlas-example { justify-content: flex-start; min-height: 39px; }
  .atlas-toggle { width: auto; justify-self: end; align-self: start; height: 39px; }
  .atlas-transport { flex-wrap: wrap; }
  .atlas-transport p { font-size: 14px; }
}
@media (max-width: 570px) {
  .route-views:has([data-design=atlas]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.atlas-stage { position: relative; }
.atlas-stage > .atlas-transition { position: absolute; inset: 0; pointer-events: none; }
.atlas-clockbar {
  display: grid; grid-template-columns: minmax(30px,1fr) auto minmax(220px,27%);
  align-items: center; gap: 12px; min-height: 44px;
  padding: 2px clamp(10px,1.5vw,22px); border-bottom: 1px solid #553c2d; background: #211c18;
}
.atlas-progress { display: flex; gap: 4px; }
.atlas-progress span { flex: 1; overflow: hidden; height: 3px; background: #594436; border-radius: 2px; }
.atlas-progress i { display: block; height: 100%; background: #ff995d; transform: scaleX(0); transform-origin: left; }
.atlas-time { color: #eed1ac; font: 500 12px/1.1 ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atlas-actions { display: flex; justify-content: flex-end; align-items: center; min-height: 37px; }
.atlas-actions .atlas-next { min-height: 32px; }
.atlas-actions .atlas-eye-control { flex: 1; border: 0; padding: 0; gap: 8px; background: transparent; font-size: 13px; white-space: nowrap; }
.atlas-actions .atlas-eye-control input { width: 78px; min-width: 56px; flex: 0 1 90px; }
.studio-atlas [hidden] { display: none !important; }
@container (max-width: 510px) {
  .atlas-clockbar { grid-template-columns: minmax(0,1fr) auto; gap: 1px 8px; min-height: 59px; padding-block: 5px; }
  .atlas-actions { grid-column: 1/-1; min-height: 32px; }
  .atlas-actions .atlas-eye-control input { flex-basis: 105px; }
  .atlas-local-motion { min-height: 32px; }
}
