*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

a,
button,
canvas,
div,
h1,
input,
li,
ol,
p,
span,
strong,
sub,
sup,
ul {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

a,
div,
h1,
input,
li,
ol,
p,
span,
strong,
sub,
sup,
ul {
  color: var(--color-font);
}

html,
body {
  overflow: hidden;
}

body {
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  text-decoration: none;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

input[type=text] {
  background-color: transparent;
}

button,
input {
  color: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
  background-color: transparent;
}

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

:root {
  --color-font: #f4f4f4;
  --color-font-white: #fcfcfc;
  --color-muted: #9a9a9a;
  --color-icon: #adadad;
  --color-input-background: #3c3c3c;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-body-background: #3a3a3a;
  --color-line: #474747;
  --color-node-background: #3f3f3f;
  --color-cell-background: #3f3f3f;
  --color-cell-selected: #4d4d4d;
}

.OrganicReaction {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding-top: 56px;
  background: var(--color-body-background);
}
.OrganicReaction-Stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 0 calc(320px + 24px);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  overflow-x: scroll;
  overscroll-behavior-x: none;
  scrollbar-width: none;
}
.OrganicReaction-Foot {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 0 24px 0 calc(320px + 24px);
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: var(--color-font);
  font-family: "Rubik Iso", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  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;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}
.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: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.Panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-height: calc(100vh - 56px);
  background: var(--color-panel-background);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.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;
  color: var(--color-icon);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-CloseIcon:hover svg {
  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;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: 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;
}

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

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
}

.ActionItem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-muted);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.ActionItem[data-selected] {
  color: var(--color-font);
}
.ActionItem[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

.ModeList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 20px 0;
}
.ModeList-Item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ModeList-Item[data-selected] {
  color: var(--color-font);
}
.ModeList-Item[data-disabled] {
  opacity: 0.3;
  cursor: default;
}

.ActionButton {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  background: var(--color-input-background);
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ActionButton[data-primary] {
  background: var(--color-primary-background);
  color: var(--color-font-white);
}

.ButtonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 0;
}

.ValueRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 20px;
}
.ValueRow-Label {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 19px;
  color: var(--color-muted);
}
.ValueRow-Value {
  font-size: 13px;
  line-height: 20px;
  color: var(--color-font);
  text-align: right;
}
.ValueRow-Absent {
  color: var(--color-muted);
}

.PanelNote {
  padding: 10px 20px 2px;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
}

.Formula {
  padding: 4px 20px 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 22px;
  color: var(--color-font);
  word-break: break-all;
}

.Formula-Arrow {
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0 6px;
  color: var(--color-muted);
}

.UsageText {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 16px 18px;
}
.UsageText h1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-font);
}
.UsageText p {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}

.Article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  padding: 32px 24px;
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
}
.Article h1 {
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  color: var(--color-font);
}
.Article p {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}
.Article-Link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.Article-Link a {
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
}

.MapBlock {
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
}

.MapCanvas {
  display: block;
  cursor: pointer;
}

.CompoundPanel {
  display: flex;
  flex-direction: column;
  padding: 14px 0 8px;
}
.CompoundPanel-Formula {
  padding: 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  line-height: 28px;
  color: var(--color-font);
}
.CompoundPanel-Name {
  padding: 2px 20px 10px;
  font-size: 12px;
  line-height: 19px;
  color: var(--color-muted);
}
.CompoundPanel-NextTitle {
  padding: 14px 20px 2px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}

.ReactionPanel {
  display: flex;
  flex-direction: column;
  padding: 12px 0 10px;
}
.ReactionPanel-Name {
  padding: 0 20px 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-font);
}
.ReactionPanel-EquationTitle {
  padding: 14px 20px 2px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}

.FlaskCanvas {
  display: block;
  width: 100%;
  height: 132px;
}

.ChartPanel {
  display: flex;
  flex-direction: column;
  padding: 4px 0 10px;
}
.ChartPanel-Absent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 0;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}

.ChartCanvas {
  display: block;
  width: 100%;
}

.TestBlock {
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
}

.TestGrid {
  display: grid;
  gap: 3px;
  max-width: 980px;
}
.TestGrid-Head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 4px 6px;
  font-size: 11px;
  line-height: 16px;
  color: var(--color-muted);
  text-align: center;
}
.TestGrid-Name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0 14px 0 4px;
}
.TestGrid-Name-Formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-font);
}
.TestGrid-Name-Text {
  font-size: 11px;
  line-height: 16px;
  color: var(--color-muted);
}
.TestGrid-Cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  background: var(--color-cell-background);
  border-radius: 3px;
  cursor: pointer;
}
.TestGrid-Cell[data-selected] {
  background: var(--color-cell-selected);
}
.TestGrid-Dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.TestGrid-Flat {
  width: 10px;
  height: 2px;
  background: var(--color-muted);
  border-radius: 1px;
}

.ResultPanel {
  display: flex;
  flex-direction: column;
  padding: 12px 0 10px;
}
.ResultPanel-Title {
  padding: 0 20px 8px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}

.TubeCanvas {
  display: block;
  width: 100%;
  height: 150px;
}

.FunnelBlock {
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
}

.FunnelCanvas {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 300px;
}

.StepPanel {
  display: flex;
  flex-direction: column;
  padding: 12px 0 10px;
}

.StepItem {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px;
}
.StepItem-Reagent {
  padding: 0 20px;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-font);
}
.StepItem[data-later] .StepItem-Reagent {
  color: var(--color-muted);
}
.StepItem[data-done] .StepItem-Reagent {
  color: var(--color-font);
}

html[data-article],
html[data-article] body {
  overflow: visible;
}

.LecturePage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--color-body-background);
}
.LecturePage-Main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 56px 24px 64px;
}

.LectureDocument {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
}
.LectureDocument-Title {
  padding: 24px 0 8px;
  font-size: 22px;
  line-height: 34px;
  font-weight: 500;
  color: var(--color-font);
}
.LectureDocument-Scene {
  display: flex;
  flex-direction: column;
  padding: 32px 0 0;
}
.LectureDocument-Heading {
  padding: 0 0 4px;
  font-size: 17px;
  line-height: 27px;
  font-weight: 500;
  color: var(--color-font);
}
.LectureDocument-Text {
  padding: 10px 0 0;
  font-size: 14px;
  line-height: 25px;
  color: var(--color-font);
}

.LectureFigure {
  display: block;
  width: 100%;
  height: 260px;
  margin: 14px 0 6px;
}

.LectureLink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  width: 100%;
  max-width: 680px;
  padding: 24px 0 20px;
}
.LectureLink-Title {
  width: 100%;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}
.LectureLink-Item {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-muted);
  text-decoration: none;
}
.LectureLink-Item[data-active] {
  color: var(--color-font);
}