*,
::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: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", meiryo, sans-serif;
  font-weight: 500;
  -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;
}

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: 9000;
  display: none;
  flex-direction: column;
  width: 320px;
  background: var(--color-panel-background);
  border-radius: 0 12px 0 0;
  box-shadow: 0 0 3px 1px rgba(27, 32, 39, 0.05);
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}
.ApplicationMenu-Link {
  padding: 0 20px;
}
.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: absolute;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 12px;
  box-shadow: 0 0 3px 1px rgba(27, 32, 39, 0.05);
  overflow: hidden;
}
.Panel:not([data-open]) {
  display: none;
}
.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;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  color: var(--color-muted);
  cursor: pointer;
}
.Panel-CloseIcon:hover {
  color: var(--color-font);
}
.Panel-Header:hover .Panel-CloseIcon {
  visibility: visible;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-Title[data-end] {
  padding: 0 16px;
}
.Panel-Main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.Panel[data-panel=guide] {
  height: 400px;
}

.CoordinationComplex[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.CoordinationComplex[data-fixed] .Panel-Header {
  cursor: default;
}

.SelectList {
  display: flex;
  flex-direction: column;
}
.SelectList-Item {
  display: block;
  min-width: 132px;
  padding: 6px 10px;
  margin: 4px 8px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-font);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.SelectList-Item[data-current] {
  background: var(--color-selected);
}

.ControlRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
  padding: 0 12px;
}
.ControlRow[data-action] {
  cursor: pointer;
}
.ControlRow-Label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}

.ReplayButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-muted);
  cursor: pointer;
}
.ReplayButton:hover {
  color: var(--color-font);
}

.CheckInput {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-field-border);
  border-radius: 2px;
}
.CheckInput svg {
  visibility: hidden;
}
.CheckInput[data-checked] {
  background: var(--color-font);
  border-color: var(--color-font);
  color: var(--color-panel-background);
}
.CheckInput[data-checked] svg {
  visibility: visible;
}

.IonHeading {
  padding: 14px 16px 6px;
}
.IonHeading-Name {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}
.IonHeading-Formula {
  padding-top: 2px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-font);
}

.InfoGrid {
  display: flex;
  flex-direction: column;
  padding: 6px 16px 10px;
}

.InfoRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}
.InfoRow-Label {
  flex: none;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}
.InfoRow-Value {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-font);
  text-align: right;
}
.InfoRow-Note {
  padding-left: 6px;
  font-size: 12px;
  color: var(--color-muted);
}

.Reaction {
  padding: 6px 16px 12px;
}
.Reaction-Label {
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-muted);
}
.Reaction-Body {
  padding-top: 4px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-font);
}

.InfoNote {
  max-width: 260px;
  padding: 0 16px 14px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--color-muted);
}

.ColorSwatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid var(--color-field-border);
  border-radius: 2px;
}
.ColorSwatch[data-empty] {
  background: linear-gradient(135deg, #ffffff 46%, #d8dad6 46%, #d8dad6 54%, #ffffff 54%);
}

.Formula sub {
  font-size: 0.58em;
}
.Formula sup {
  font-size: 0.58em;
}
.Formula-Arrow {
  display: inline-block;
  margin: 0 8px;
  vertical-align: middle;
  color: var(--color-muted);
}

.Stage {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  touch-action: none;
  cursor: grab;
}
.Stage[data-dragging] {
  cursor: grabbing;
}

.Article {
  max-width: 720px;
  padding: 24px;
}
.Article h1 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}
.Article h2 {
  padding-top: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
.Article p {
  padding-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-muted);
}
.Article li {
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
  list-style: none;
}

.IonLink {
  color: var(--color-font);
  text-decoration: none;
}

.Guide {
  width: 300px;
  padding: 14px 16px 18px;
}
.Guide h1 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-font);
}
.Guide h2 {
  padding-top: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-font);
}
.Guide p {
  padding-top: 6px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-muted);
}
.Guide li {
  padding-top: 6px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-muted);
  list-style: none;
}
.Guide li b {
  font-weight: 500;
  color: var(--color-font);
}

:root {
  --color-background: #f4f5f3;
  --color-panel-background: #ffffff;
  --color-panel-header-background: #fafaf9;
  --color-selected: #f4f5f3;
  --color-font: #1b2027;
  --color-muted: #69707e;
  --color-accent: #c63a22;
  --color-field-border: #e1e3e0;
}

.CoordinationComplex {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--color-font);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}