:root {
  --canvas-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  touch-action: none;
}

body {
  overflow: hidden;
  font-family: "Arial", sans-serif;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

canvas {
  opacity: var(--canvas-opacity);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.hidden {
  display: none !important;
}

.spacer {
  flex-grow: 1;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#ui * {
  pointer-events: auto;
}

.walkHint {
  position: absolute;
  top: max(60px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

/* branding link for third-party embeds */
#supersplatBranding {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
}
#supersplatBranding > svg {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
}
#supersplatBranding > svg > g.stroke {
  fill: black;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#supersplatBranding > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#supersplatBranding > span {
  font-size: 14px;
  font-weight: bold;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4), 1px -1px 0 rgba(0, 0, 0, 0.4), -1px 1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* poster */
#poster {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* loadingWrap: full-screen backdrop shown until the first frame renders */
#loadingWrap {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
#loadingWrap > #loadingBar {
  position: relative;
  width: min(240px, 60vw);
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.08);
}
/* Indeterminate sweep: octree/LOD streaming has no reliable 0-100% signal, so this
   animates unconditionally instead of reflecting (unreliable) real progress. */
#loadingWrap > #loadingBar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  border-radius: 3px;
  background-color: #F60;
  animation: loadingBarSweep 1.1s ease-in-out infinite;
}
@keyframes loadingBarSweep {
  0% { left: -35%; }
  100% { left: 100%; }
}

/* controlsWrap */
#controlsWrap {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
#controlsWrap.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#controlsWrap.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#controlsWrap > #timelineContainer {
  height: 30px;
  cursor: pointer;
}
#controlsWrap > #timelineContainer > #line {
  width: 100%;
  height: 50%;
  border-bottom: 4px solid #d9d9d9;
}
#controlsWrap > #timelineContainer > #handle {
  position: absolute;
  top: 16.5px;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background-color: #FFAF50;
}
#controlsWrap > #timelineContainer > #time {
  position: absolute;
  top: 0;
  padding: 2px 4px;
  transform: translate(-50%, -100%);
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
  background-color: rgba(40, 40, 40, 0.5);
}
#controlsWrap > #buttonsContainer {
  display: flex;
  gap: 8px;
}
#controlsWrap > #buttonsContainer .buttonGroup {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
#controlsWrap > #buttonsContainer .buttonGroup:not(:has(> :not(.hidden))) {
  display: none;
}
#controlsWrap > #buttonsContainer {
  /* controlButton */
}
#controlsWrap > #buttonsContainer .controlButton {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  color: #E0DCDD;
  background-color: transparent;
}
#controlsWrap > #buttonsContainer .controlButton:hover {
  color: #fff;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* icon styling */
}
#controlsWrap > #buttonsContainer .controlButton > svg {
  display: block;
  margin: auto;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* active highlight for simple toggle buttons (e.g. voxel overlay) */
}
#controlsWrap > #buttonsContainer .controlButton.active:not(.toggle) {
  color: #F60;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* camera toggle styling */
}
#controlsWrap > #buttonsContainer .controlButton.toggle {
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #F60 50%, #F60 100%);
  background-size: 200% 100%;
  background-position: 100% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.1s ease-in-out;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left {
  border-radius: 4px 0px 0px 4px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle {
  border-radius: 0;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right {
  border-radius: 0px 4px 4px 0px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right:not(.active) {
  background-position: 200% 0%;
}

/* settingsPanel */
#settingsPanel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#settingsPanel > .settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
#settingsPanel > .settingsRow > button {
  flex-grow: 1;
  height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #AAA;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 250ms ease, color 250ms ease;
}
#settingsPanel > .settingsRow > button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#settingsPanel > .settingsRow > div {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  color: #AAA;
}
#settingsPanel > .settingsRow > div.toggleSwitch {
  padding: 0 4px;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack .toggleThumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #777;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack {
  background-color: rgba(255, 102, 0, 0.35);
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack .toggleThumb {
  transform: translateX(16px);
  background-color: #F60;
}
#settingsPanel > .settingsRow > div:hover {
  color: #E0DCDD;
}
#settingsPanel > .divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* infoPanel */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
#infoPanel > #infoPanelContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 280px;
  min-width: 320px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#infoPanel > #infoPanelContent > #tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background-color: #282828;
}
#infoPanel > #infoPanelContent > #tabs > .tab {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #AAA;
  transition: background-color 250ms ease, color 250ms ease;
}
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}
#infoPanel > #infoPanelContent > #tabs > .tab.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#infoPanel > #infoPanelContent > #infoPanels {
  padding: 16px;
}
#infoPanel > #infoPanelContent > #infoPanels h1 {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0 8px 0;
  color: #F60;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  font-size: 13px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
  text-align: left;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
  text-align: right;
  color: #AAA;
  font-size: 12px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
  margin: 14px 0;
}

#joystickBase {
  position: absolute;
  width: 56px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  touch-action: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2666666667) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}
#joystickBase > #joystick {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  touch-action: none;
  background-color: rgba(255, 255, 255, 0.5333333333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.1s ease;
}
#joystickBase.mode-2d {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
}
#joystickBase.mode-2d > #joystick {
  left: 30px;
}

#tooltip {
  display: none;
  position: absolute;
  border-radius: 4px;
  padding: 4px 4px;
  font-size: 12px;
  color: #E0DCDD;
  background-color: #282828;
}

#annotations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

#annotations * {
  pointer-events: auto;
}

/* annotationPanel — the ODE-styled sidebar that replaced the old prev/next bar.
   Always present: a pull tab on its outer edge opens and closes it, and it lists
   every point of interest. Colours follow the outer page's white header chrome;
   The palette is monochrome like that header; --ann-accent is the single
   emphasis colour (active row, links), changed here in one place. */
#annotationPanel {
  --ann-text: #1c1c1c;
  --ann-muted: #666666;
  --ann-line: #e0e0e0;
  --ann-hairline: #efefef;
  --ann-accent: #1c1c1c;
  --ann-hover: #f5f6f7;
  --ann-active: #f2f3f4;
  /* The one deliberately non-monochrome colour: the live camera marker has to
     read as "not part of the drawing" against black-on-white linework. */
  --fp-marker: #ff6600;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  width: min(380px, 86vw);
  display: flex;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  color: var(--ann-text);
  /* Closed: parked just off the left edge, the tab still sticking out. */
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#annotationPanel.open {
  transform: none;
}
#annotationPanelInner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-right: 1px solid var(--ann-line);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

/* The pull tab, riding on the panel's outer edge. It has to read against a
   white background too (this scene's is white), hence the solid border and
   the dark chevron rather than the muted grey the panel's other buttons use. */
/* Selector carries #annotationPanel so it outranks the generic
   `#annotationPanel button` reset further down — same for .annotationItem. */
#annotationPanel #annotationTab {
  position: absolute;
  left: 100%;
  /* Sits in the upper third rather than dead centre, clear of the scene's
     focal point and of the bottom control bar. */
  top: 33%;
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  border: 1px solid #c9ccd0;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  color: var(--ann-text);
  background-color: #fff;
  box-shadow: 3px 0 14px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}
#annotationPanel #annotationTab:hover {
  color: var(--ann-text);
  background-color: var(--ann-hover);
}
#annotationTab > svg {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#annotationPanel.open #annotationTab > svg {
  transform: rotate(180deg);
}

#annotationPanel button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--ann-muted);
  background-color: transparent;
}
#annotationPanel button:hover {
  color: var(--ann-text);
  background-color: #f0f0f0;
}
#annotationPanel button:disabled {
  opacity: 0.3;
  cursor: default;
  background-color: transparent;
}
#annotationPanel svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#annotationPanelHead {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--ann-line);
}
/* A labelled button, not a bare chevron — it has to read as "go back". */
#annotationPanel #annotationBack {
  width: auto;
  height: 34px;
  gap: 5px;
  padding: 0 12px 0 7px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ann-text);
}
#annotationPanel #annotationBack > svg {
  width: 20px;
  height: 20px;
}
#annotationPanel #annotationBack:hover {
  color: var(--ann-text);
  background-color: #f0f0f0;
}
#annotationHeadLabel {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ann-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#annotationStep {
  display: flex;
  align-items: center;
  gap: 2px;
}
#annotationCounter {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ann-muted);
}

#annotationPanelBody {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* the global `touch-action: none` would otherwise block scrolling on touch */
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -moz-user-select: text;
       user-select: text;
  -webkit-user-select: text;
}
#annotationPanelBody::-webkit-scrollbar {
  width: 8px;
}
#annotationPanelBody::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #d5d7da;
}

/* Section headings inside the panel body, one per stacked block (the floor
   plan, then the list). Same visual weight as a list `group` heading. */
.annotationSection {
  margin: 0;
  padding: 14px 16px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ann-muted);
  background-color: #fafafa;
  border-bottom: 1px solid var(--ann-hairline);
}

/* floor plan */
#floorPlanStage {
  position: relative;
  /* Full panel width, with the height following the plan's own viewBox ratio
     (set from JS at load time). Deliberately no max-height: capping the height
     while the width is 100% breaks the ratio, and the drawing then letterboxes
     inside a too-wide box — which reads as the plan being wrongly aligned
     rather than as the box being clamped. A very tall plan makes a tall block
     here and the panel body just scrolls. */
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
  border-bottom: 1px solid var(--ann-line);
}
#floorPlanImage,
#floorPlanOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#floorPlanImage {
  object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
/* The panel's generic `#annotationPanel svg` rule sets fill/stroke/stroke-width,
   and all three inherit — so every value the overlay relies on is restated here
   rather than left to cascade in from the icon styling. */
#annotationPanel #floorPlanOverlay {
  fill: none;
  stroke: none;
  stroke-width: 0;
  overflow: hidden;
}
/* Strokes are declared in CSS pixels and held there: the plan's viewBox units
   are arbitrary, so a plain stroke-width would come out hairline on one drawing
   and slab-thick on the next. */
#annotationPanel #floorPlanOverlay * {
  vector-effect: non-scaling-stroke;
}

/* "You are here": a dot for the position, a wedge for what the camera can see. */
#floorPlanCone {
  fill: var(--fp-marker);
  fill-opacity: 0.22;
  stroke: var(--fp-marker);
  stroke-width: 1;
  stroke-opacity: 0.5;
}
#floorPlanDot {
  fill: var(--fp-marker);
  stroke: #fff;
  stroke-width: 2;
}

/* One pin per point of interest, numbered to match the list and the 3D hotspots. */
.floorPlanPin {
  cursor: pointer;
}
.floorPlanPin > circle {
  fill: #e4e6e8;
  stroke: #fff;
  stroke-width: 1.5;
}
.floorPlanPin > text {
  fill: #5f6469;
  stroke: none;
  font-family: inherit;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  /* the label is decoration on top of its own click target */
  pointer-events: none;
}
.floorPlanPin:hover > circle {
  fill: #c8ccd0;
}
.floorPlanPin.active > circle {
  fill: var(--ann-accent);
}
.floorPlanPin.active > text {
  fill: #fff;
}
.floorPlanPin:focus-visible {
  outline: none;
}
.floorPlanPin:focus-visible > circle {
  stroke: var(--ann-accent);
  stroke-width: 2.5;
}

/* list of points */
#annotationList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.annotationGroup {
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ann-muted);
  background-color: #fafafa;
  border-bottom: 1px solid var(--ann-hairline);
}
#annotationPanel .annotationItem {
  width: 100%;
  height: auto;
  gap: 12px;
  justify-content: flex-start;
  padding: 13px 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--ann-hairline);
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--ann-text);
}
#annotationPanel .annotationItem:hover {
  color: var(--ann-text);
  background-color: var(--ann-hover);
}
#annotationPanel .annotationItem.active {
  background-color: var(--ann-active);
  box-shadow: inset 3px 0 0 var(--ann-accent);
  font-weight: 600;
}
.annotationDot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #7b8085;
  background-color: #e4e6e8;
}
.annotationItem.active > .annotationDot {
  color: #fff;
  background-color: var(--ann-accent);
}
.annotationItemTitle {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* selected point */
#annotationDetail {
  padding: 16px;
}
#annotationTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
#annotationTitle:empty {
  display: none;
}

#annotationGallery {
  position: relative;
  margin: 14px 0 0;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f2f3f4;
}
#annotationSlides {
  position: absolute;
  inset: 0;
}
#annotationSlides > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
#annotationSlides > img.active {
  opacity: 1;
}
#annotationPanel .galleryNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 44px;
  border-radius: 4px;
  color: var(--ann-text);
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
#annotationPanel .galleryNav:hover {
  background-color: #fff;
}
#annotationImagePrev {
  left: 6px;
}
#annotationImageNext {
  right: 6px;
}
#annotationDots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
#annotationPanel #annotationDots > button {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
#annotationPanel #annotationDots > button.active {
  background-color: var(--ann-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
#annotationCaption {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ann-muted);
}

/* Markdown body */
#annotationText {
  font-size: 14.5px;
  line-height: 1.6;
  color: #333;
}
#annotationText:not(:empty) {
  margin-top: 12px;
}
#annotationText p {
  margin: 0 0 10px;
}
#annotationText > :last-child {
  margin-bottom: 0;
}
#annotationText h3,
#annotationText h4,
#annotationText h5 {
  margin: 16px 0 6px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ann-text);
}
#annotationText h3 {
  font-size: 16px;
}
#annotationText h4 {
  font-size: 14.5px;
}
#annotationText h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ann-muted);
}
#annotationText ul,
#annotationText ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
#annotationText li {
  margin: 0 0 4px;
}
#annotationText blockquote {
  margin: 0 0 10px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--ann-line);
  color: var(--ann-muted);
}
#annotationText hr {
  height: 0;
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--ann-line);
}
#annotationText code {
  padding: 1px 4px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background-color: #f2f3f4;
}
#annotationText a {
  color: var(--ann-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* external link button */
#annotationLink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background-color: var(--ann-text);
}
#annotationLink:hover {
  background-color: #3a3a3a;
}
#annotationLink > svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #annotationPanel {
    width: min(320px, 86vw);
  }
}

/*# sourceMappingURL=index.css.map */