*,
: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-shadow: #303030;
  --color-item-selected: #393939;
  --color-line: #474747;
  --color-warning-background: #3f3a32;
  --color-severe-background: #45343a;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo a {
  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;
  text-decoration: none;
}

.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: max-content;
  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[data-panel=buffer] .BufferPanel {
  flex: 1 1 auto;
  min-height: 0;
}
.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;
}

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

.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);
}

.AxisGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-content: start;
  gap: 16px 20px;
  padding: 16px 20px;
}
.AxisGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  gap: 20px;
}
.AxisGrid-Row[data-hidden] {
  display: none;
}
.AxisGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
}
.AxisGrid[data-hidden] {
  display: none;
}

.RoundNumberInput {
  display: flex;
  height: 24px;
  border-radius: 12px;
  background: var(--color-input-background);
  overflow: hidden;
}
.RoundNumberInput-Previous, .RoundNumberInput-Next {
  flex-shrink: 0;
  width: 12px;
  cursor: pointer;
}
.RoundNumberInput-Input {
  flex-shrink: 0;
  width: 48px;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.RoundNumberInput-Input:focus {
  outline: none;
}

.UnitField {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}
.UnitField-Unit {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  user-select: none;
  white-space: nowrap;
}

.OptionInput {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--color-input-background);
  cursor: pointer;
  user-select: none;
}
.OptionInput[data-open] {
  border-radius: 2px 0 0 2px;
}
.OptionInput-Value {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.OptionInput .ActionList {
  display: none;
}

.OptionModal {
  position: fixed;
  z-index: 40;
  display: none;
  width: max-content;
  border-radius: 0 2px 2px 2px;
  background: var(--color-input-background);
  box-shadow: 0 0 3px 1px var(--color-shadow);
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.OptionModal[data-open] {
  display: block;
}

.ReagentSelect {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
}

.TextInput {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--color-input-background);
}
.TextInput-Input {
  width: 48px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.TextInput-Input::placeholder {
  color: var(--color-muted);
}
.TextInput-Input:focus {
  outline: none;
}

.SwitchRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px 0;
}
.SwitchRow[data-hidden] {
  display: none;
}
.SwitchRow-Label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
}

.SwitchInput {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 28px;
  height: 16px;
  padding: 2px;
  background: var(--color-input-background);
  border-radius: 8px;
  cursor: pointer;
}
.SwitchInput-Knob {
  width: 12px;
  height: 12px;
  background: var(--color-muted);
  border-radius: 6px;
  transition: transform 0.12s ease;
}
.SwitchInput[data-on] .SwitchInput-Knob {
  background: var(--color-font);
  transform: translateX(12px);
}

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

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

.ModeList {
  display: flex;
  align-items: center;
  gap: 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;
}

.AcidBase {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.AcidBase-Stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 48px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.Report {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.ReportHead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ReportHead-Name {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-font);
}
.ReportHead-Row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.PhValue {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.PhValue-Number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.PhValue-Label {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}

.PkaValue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.PkaValue-Number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.PkaValue-Label {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}

.PhBlock {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.PhScale {
  position: relative;
  height: 26px;
  border-radius: 2px;
  overflow: hidden;
}
.PhScale-Window {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
}
.PhScale-Tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17, 26, 22, 0.75);
}
.PhScale-Grid {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 5px;
  background: rgba(17, 26, 22, 0.3);
}
.PhScale-Marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  margin-left: -1.5px;
  background: #111a16;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.PhAxis {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  color: var(--color-muted);
}

.PhNote {
  font-size: 11px;
  line-height: 18px;
  color: var(--color-muted);
}

.WeighList {
  display: flex;
  flex-direction: column;
  background: var(--color-panel-background);
  border-radius: 2px;
  overflow: hidden;
}
.WeighList-Head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: var(--color-panel-header-background);
}
.WeighList-Head-Title {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}

.CopyButton {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--color-input-background);
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ReagentRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.ReagentRow[data-negative] {
  background: var(--color-severe-background);
}
.ReagentRow-Body {
  min-width: 0;
}
.ReagentRow-Name {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ReagentRow-Detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 16px;
  color: var(--color-muted);
}
.ReagentRow-Amount {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ReagentRow-Amount-Value {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}
.ReagentRow-Amount-Unit {
  font-size: 11px;
  color: var(--color-muted);
}

.StatGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.StatGrid-Item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.StatGrid-Item[data-highlight] .StatGrid-Item-Label {
  color: var(--color-font);
}
.StatGrid-Item-Label {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}
.StatGrid-Item-Value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}
.StatGrid-Item-Value span {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
}

.SpeciesBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.SpeciesBlock-Title {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}

.SpeciesBar {
  display: flex;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
}
.SpeciesBar-Item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--species-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1;
  color: var(--color-font-white);
  white-space: nowrap;
  overflow: hidden;
}

.SpeciesLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.SpeciesLegend-Item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 16px;
  color: var(--color-muted);
}
.SpeciesLegend-Item-Mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--species-color);
  border-radius: 1px;
}

.WarningList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.WarningList-Item {
  padding: 8px 10px;
  background: var(--color-warning-background);
  border-radius: 2px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-font);
}
.WarningList-Item[data-severe] {
  background: var(--color-severe-background);
}

.ChartBlock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

.ChartTab {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ChartTab-Item {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.ChartTab-Item[data-selected] {
  color: var(--color-font);
}

.ChartCanvas {
  display: block;
  width: 100%;
  height: 240px;
}

.ChartLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.BufferPanel {
  display: flex;
  flex-direction: column;
}

.FitBlock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 0;
}
.FitBlock-Title {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
}
.FitBlock-List {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
}

.Chip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  background: var(--color-input-background);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.Chip[data-selected] {
  color: var(--color-font);
}
.Chip-Distance {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.ConditionPanel,
.ReagentPanel {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}