*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button {
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

canvas {
  display: block;
}

svg {
  display: block;
}

::-webkit-scrollbar {
  display: none;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
}
.Logo-Text {
  color: var(--color-font);
  font-family: "Quicksand", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-panel-background);
  border-radius: 0 12px 0 0;
  box-shadow: 0 0 3px 1px #f7f7f7;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.ApplicationMenu-Section + .ApplicationMenu-Section {
  border-top: 1px solid #f9f9f9;
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-font);
  text-decoration: none;
}
.ApplicationMenu-Link-Description {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 21px;
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.Panel {
  position: fixed;
  z-index: 1;
  display: none;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px;
  box-shadow: 0 0 3px 1px #f7f7f7;
  overflow: hidden;
}
.Panel[data-open] {
  display: flex;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  color: var(--color-close-icon);
  cursor: pointer;
}
.Panel-CloseIcon:hover {
  color: var(--color-font);
}
.Panel-Header:hover .Panel-CloseIcon {
  visibility: visible;
}
.Panel-Main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.Maglev[data-fixed] .Panel {
  top: 56px;
  right: 0;
  left: auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Maglev[data-fixed] .Panel-Header {
  cursor: default;
}
.Maglev[data-fixed] .Panel-Handle {
  display: none;
}

.ChoiceRow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 12px;
}
.ChoiceRow-Item {
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-muted);
  white-space: nowrap;
  user-select: none;
}
.ChoiceRow-Item[data-selected] {
  background: var(--color-selected);
  color: var(--color-font);
}

.SectionLabel {
  padding: 8px 12px 0;
  font-size: 11px;
  line-height: 17px;
  color: var(--color-muted);
}

.SpeedField {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
}
.SpeedField-Range {
  width: 100%;
  accent-color: var(--color-font);
  cursor: pointer;
}
.SpeedField-Range:disabled {
  cursor: default;
  opacity: 0.4;
}
.SpeedField-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.SpeedField-Label {
  font-size: 11px;
  line-height: 17px;
  color: var(--color-muted);
}
.SpeedField-Value {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}

.Readout {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 20px;
  row-gap: 4px;
  padding: 10px 12px;
}
.Readout-Item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.Readout-Key {
  font-size: 11px;
  line-height: 17px;
  color: var(--color-muted);
}
.Readout-Value {
  font-size: 13px;
  line-height: 19px;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
}
.Readout-Value[data-mode=levitation] {
  color: var(--color-levitation);
}
.Readout-Value[data-mode=wheel] {
  color: var(--color-wheel);
}
.Readout-Unit {
  font-size: 10px;
  line-height: 16px;
  color: var(--color-muted);
}

.Note {
  max-width: 300px;
  padding: 0 12px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--color-muted);
}
.Note + .Note {
  padding-top: 2px;
}

.Legend {
  display: flex;
  flex-wrap: wrap;
  max-width: 300px;
  gap: 4px 10px;
  padding: 10px 12px;
}
.Legend-Item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.Legend-Swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.Legend-Label {
  font-size: 10px;
  line-height: 16px;
  color: var(--color-muted);
}

.PanelCanvas {
  margin: 8px 12px 12px;
}

.TextBlock {
  max-width: 300px;
  padding: 12px;
}
.TextBlock h1 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-font);
}
.TextBlock p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}
.TextBlock h1 + p,
.TextBlock p + p {
  padding-top: 8px;
}

.Maglev {
  position: fixed;
  inset: 0;
  overflow: hidden;
  --color-font: #1f1f2b;
  --color-muted: #6b6b7a;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #fafafa;
  --color-selected: #f2f2f5;
  --color-close-icon: #484848;
  --color-levitation: #0f9c80;
  --color-wheel: #b8860b;
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.Maglev-Canvas {
  display: block;
  touch-action: none;
  cursor: grab;
}