body[data-view=world], body[data-view=practice] .site-header {
  --ink: #e9e7e2;
  --muted: #bab7b2;
  --glass: rgba(34, 33, 34, .76);
  --line: rgba(224, 218, 212, .18);
}
.site-header { z-index: 9; }
.site-header .wordmark { padding: 0; color: #c4c0bb; opacity: .62; }
.site-header .wordmark:focus-visible { opacity: 1; }
.site-header > .header-actions { gap: 3px; }
.site-header .round { border: 0; background: none; color: #b6b3af; backdrop-filter: none; }
.site-header .round[aria-expanded=true] { background: #ffffff12; color: #e6e4df; }
.site-header .view-switch .is-active { background: rgba(197,193,186,.105); }
.site-header :focus-visible, .world-hud button:focus-visible { outline: 2px solid #d9d4cc; outline-offset: 1px; }
@media (hover:hover) and (pointer:fine) {
  .site-header .round:hover { background: #ffffff12; color: #e6e4df; }
  .site-header .wordmark:hover { opacity: .85; }
}
body.world-quiet .site-header :is(.view-switch,.header-actions),
body[data-view=world].world-quiet #world-view > :not(.universe),
body[data-view=world].world-quiet .dev-panel { visibility: hidden; }
body.world-quiet .wordmark { opacity: .52; }
body[data-view=world] .camera-controls { opacity: 1; }
body[data-view=world] .scale-stops { width: auto; gap: 4px; }
body[data-view=world] .scale-stops button {
  flex: 0 1 93px; width: 93px; border-radius: 22px; color: #bbb7b3;
}
body[data-view=world] .scale-stops [aria-pressed=true] { background: rgba(197,193,186,.105); color: #eeeae5; }
body[data-view=world] #world-time-toggle { color: #bbb7b3; opacity: .9; }

/* Reserve the last spot in the compact navigation row for Time. */
@media (max-width: 700px), (max-width: 1000px) and (max-height: 560px) {
  #world-view {
    --world-nav-time-width: clamp(64px, 20vw, 108px);
    --world-nav-gap: 4px;
    --world-nav-right: calc(var(--world-edge-right) + var(--world-nav-time-width) + var(--world-nav-gap));
  }
  #world-time-toggle {
    width: var(--world-nav-time-width);
  }
  body[data-view=world]:not([data-scale=micro]) .bottom-hud {
    left: var(--world-edge-left);
    right: var(--world-nav-right);
    bottom: var(--world-edge-bottom);
    width: auto;
    transform: none;
  }
  body.world-time-open[data-view=world]:not([data-scale=micro]) .bottom-hud {
    visibility: visible;
  }
  body.world-time-open[data-view=world]:not([data-scale=micro]) .context-hint {
    visibility: hidden;
  }
  body[data-view=world]:not([data-scale=micro]) .context-hint {
    position: static;
    width: auto;
    text-align: center;
    margin-right: calc(0px - var(--world-nav-time-width) - var(--world-nav-gap));
  }
  body[data-view=world]:not([data-scale=micro]) .scale-stops {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  body[data-view=world]:not([data-scale=micro]) .scale-stops button {
    width: auto;
    min-width: 0;
    padding-inline: 2px;
    white-space: nowrap;
  }
}

body[data-scale=micro] .world-hud {
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) minmax(min-content,max-content) 44px;
  grid-template-areas: ". . ." "inspection inspection inspection" "exit camera time";
  z-index: 4;
}
body[data-scale=micro]:not(.world-quiet) #world-view::after {
  content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 148px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #1511100a 18%, #15111045 70%, #1511105c);
}
body[data-scale=micro] .context-hint { max-width: min(56ch,100%); }
body[data-scale=micro] #atom-inspector {
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  padding: 0 5px 5px; background: transparent; border: 0; backdrop-filter: none;
  color: #e8e3dc; text-align: center; text-shadow: 0 1px 3px #080605, 0 0 8px #08060577;
}
body[data-scale=micro] #inspection-title { font-size: 15px; font-weight: 450; }
body[data-scale=micro] #inspection-detail { color: #d1cbc3; font-size: 12px; }
body[data-scale=micro] .chemistry-navigation {
  position: relative; display: grid; place-items: center; width: 76px; height: 44px;
  padding: 0; background: none; border: none; border-radius: 0;
}
body[data-scale=micro] .chemistry-navigation button,
body[data-scale=micro] #exit-world, body[data-scale=micro] #world-time-toggle {
  min-height: 44px; color: #d0cbc5; opacity: .92; text-shadow: 0 1px 3px #100c0bc2;
}
body[data-scale=micro] #exit-world {
  padding: 0 6px; min-width: 50px; white-space: nowrap; font-size: 12px; letter-spacing: .01em;
}
body[data-scale=micro] #chemistry-pan {
  position: relative; isolation: isolate; width: 76px; padding: 0;
  background: none; font-size: 12px; letter-spacing: .01em;
}
body[data-scale=micro] #chemistry-pan[aria-pressed=true]::before {
  content: ""; position: absolute; inset: 6px 5px; z-index: -1;
  background: rgba(197,193,186,.105); border-radius: 20px;
}
body[data-scale=micro] .chemistry-navigation :is(#chemistry-out,#chemistry-in,#chemistry-home) {
  position: absolute; bottom: 46px; display: none; place-items: center; width: 44px; height: 44px;
  padding: 0; font-size: 18px; background: none;
}
body[data-scale=micro] #chemistry-out { left: calc(50% - 66px); }
body[data-scale=micro] #chemistry-in { left: calc(50% - 22px); }
body[data-scale=micro] #chemistry-home { left: calc(50% + 22px); }
body[data-scale=micro] #chemistry-home svg { width: 17px; height: 17px; }
body[data-scale=micro] .chemistry-navigation:has(#chemistry-pan[aria-pressed=true]) :is(#chemistry-out,#chemistry-in,#chemistry-home) { display: grid; }
body[data-scale=micro] .world-hud:has(#chemistry-pan[aria-pressed=true]) .context-hint { visibility: hidden; }

#help-panel.ku-guide .world-gestures dl { margin: 3px 0 8px; }
#help-panel.ku-guide .world-gestures dl > div { padding: 12px 0; border-bottom: 1px solid #e4ddd21d; }
#help-panel.ku-guide .world-gestures dt { font-weight: 550; }
#help-panel.ku-guide .world-gestures dd { margin: 4px 0 0; color: #cfcac4; }
#help-panel.ku-guide .world-gestures .hint-setting { min-height: 44px; color: #c9c4bd; font-size: 12px; }
#help-panel.ku-guide .hint-setting input { width: 17px; height: 17px; accent-color: #bfb5a5; }
#help-panel.ku-guide .world-about details { border-top: 1px solid #e4ddd21d; }
#help-panel.ku-guide .world-about summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; cursor: pointer; list-style: none;
}
#help-panel.ku-guide .world-about summary::-webkit-details-marker { display: none; }
#help-panel.ku-guide .world-about summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid #aca69e;
  border-bottom: 1.5px solid #aca69e; transform: rotate(-45deg); margin-right: 5px;
}
#help-panel.ku-guide .world-about details[open] summary::after { transform: rotate(45deg); }
#help-panel.ku-guide #practice-link { background: #d1c9bd1c; color: #f0ece5; }
