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

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

body {
  background: var(--color-background);
  color: var(--color-font);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", meiryo, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

svg {
  display: block;
}

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

.SearchBox {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.SearchBox-Row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.SearchBox-Input {
  width: 220px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background-color: var(--color-surface);
  color: var(--color-font);
  caret-color: var(--color-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", consolas, monospace;
  font-size: 13px;
}
.SearchBox-Input::placeholder {
  color: var(--color-muted);
}
.SearchBox-Submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  color: var(--color-accent);
}
.SearchBox-Submit svg {
  width: 16px;
  height: 16px;
}
.SearchBox-Notice {
  display: none;
  padding: 0 4px;
  color: var(--color-muted);
  font-size: 11px;
}
.SearchBox-Notice[data-visible] {
  display: block;
}

.SuggestList {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--color-overlay);
  backdrop-filter: blur(12px);
}
.SuggestList[data-visible] {
  display: block;
}
.SuggestList-Item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 12px;
}
.SuggestList-Item:hover, .SuggestList-Item[data-active] {
  background: var(--color-accent-background);
}
.SuggestList-Item-Name {
  color: var(--color-font);
}
.SuggestList-Item-Formula {
  margin-left: 6px;
  color: var(--color-muted);
  font-size: 11px;
}

.ControlBar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ControlBar-Group {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 3px;
  border-radius: 10px;
  background-color: var(--color-surface);
}
.ControlBar-Button {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--color-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.ControlBar-Button:hover {
  color: var(--color-font);
}
.ControlBar-Button[data-selected] {
  color: var(--color-accent);
  background: var(--color-accent-background);
}

.StructureView {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-background);
}
.StructureView[data-visible] {
  display: flex;
}
.StructureView-Content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(70vw, 70vh);
  height: min(70vw, 70vh);
  max-width: 700px;
  max-height: 700px;
}
.StructureView-Content svg {
  width: 100%;
  height: 100%;
}
.StructureView-Message {
  color: var(--color-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.AtomTooltip {
  display: none;
  position: absolute;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--color-overlay);
  backdrop-filter: blur(10px);
  pointer-events: none;
  font-family: "IBM Plex Mono", "SFMono-Regular", consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}
.AtomTooltip[data-visible] {
  display: block;
}
.AtomTooltip-Symbol {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
}
.AtomTooltip-Name {
  margin-left: 6px;
  color: var(--color-muted);
}

:root {
  --color-background: #070707;
  --color-surface: #151515;
  --color-font: #d8dce6;
  --color-muted: rgba(255, 255, 255, 0.32);
  --color-accent: #6ec8f0;
  --color-accent-background: rgba(110, 200, 240, 0.15);
  --color-overlay: rgba(10, 10, 20, 0.96);
}

.Molecule {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-background);
  color: var(--color-font);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.Molecule-Stage {
  position: absolute;
  inset: 0;
  cursor: grab;
}
.Molecule-Stage[data-dragging] {
  cursor: grabbing;
}
.Molecule-Header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  pointer-events: none;
}
.Molecule-Header > * {
  pointer-events: auto;
}