*,
: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-line: #474747;
  --color-empty-cell: #434343;
  --color-warning-background: #3f3a32;
  --color-primary-background: #575757;
}

.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=atom] .AtomPanel {
  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;
}

.PeriodicTable[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.PeriodicTable[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);
}

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

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

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

.PeriodicTable {
  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;
}
.PeriodicTable-Stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 48px;
  overflow-x: auto;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.ValueRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}
.ValueRow-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}
.ValueRow-Value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-font);
  text-align: right;
}
.ValueRow-Value span {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
}

.ValueList {
  display: flex;
  flex-direction: column;
  padding: 4px 18px 14px;
}

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

.Table {
  display: grid;
  grid-template-columns: 22px repeat(18, 54px);
  grid-template-rows: 18px repeat(7, 60px) 14px repeat(2, 60px);
  gap: 3px;
  justify-content: center;
}

.TableHead,
.TableSide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--color-muted);
}

.TableHead {
  grid-row: 1;
}

.TableSide {
  grid-column: 1;
}

.Cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 3px;
  background: var(--cell-color, var(--color-empty-cell));
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}
.Cell[data-selected] {
  box-shadow: inset 0 0 0 2px var(--color-font-white);
}
.Cell[data-inset] {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-line);
  cursor: default;
}
.Cell-Number {
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1;
  color: rgba(20, 20, 20, 0.65);
}
.Cell-Symbol {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  color: #171717;
}
.Cell-Name {
  max-width: 100%;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(20, 20, 20, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.Cell-Value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(20, 20, 20, 0.75);
}
.Cell[data-empty] .Cell-Number,
.Cell[data-empty] .Cell-Symbol,
.Cell[data-empty] .Cell-Name,
.Cell[data-empty] .Cell-Value {
  color: var(--color-muted);
}
.Cell[data-empty] .Cell-Symbol {
  color: var(--color-font);
}

.TableBlock {
  display: flex;
  justify-content: center;
}

.ScaleBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 20px 16px;
}
.ScaleBlock-Bar {
  height: 14px;
  border-radius: 2px;
}
.ScaleBlock-Axis {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--color-muted);
}

.Legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 20px 16px;
}
.Legend-Item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-muted);
}
.Legend-Item-Mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--cell-color);
  border-radius: 2px;
}

.DetailHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 18px;
  background: var(--cell-color);
}
.DetailHead-Number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: rgba(20, 20, 20, 0.7);
}
.DetailHead-Symbol {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: #171717;
}
.DetailHead-Name {
  font-size: 13px;
  font-weight: 500;
  color: #171717;
}
.DetailHead-Category {
  font-size: 11px;
  color: rgba(20, 20, 20, 0.7);
}

.DetailPanel {
  display: flex;
  flex-direction: column;
  width: 260px;
}

.PickTable {
  display: grid;
  grid-template-columns: repeat(18, 20px);
  grid-template-rows: repeat(7, 20px) 8px repeat(2, 20px);
  gap: 2px;
  padding: 14px 18px 16px;
}
.PickTable .PickCell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-input-background);
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PickTable .PickCell[data-inset] {
  background: transparent;
  cursor: default;
}
.PickTable .PickCell[data-left] {
  background: #6E9FE0;
  color: #171717;
}
.PickTable .PickCell[data-right] {
  background: #E0A23C;
  color: #171717;
}

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

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

.AtomCanvas {
  display: block;
  width: 100%;
  max-width: 1180px;
  height: 300px;
}

.AtomCanvas ~ .ChartBlock .ChartCanvas {
  height: 300px;
}

.BondCanvas {
  display: block;
  width: 100%;
  max-width: 1180px;
  height: 300px;
}

.Readout-Block {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 860px;
}

.Readout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}
.Readout-Note {
  font-size: 12px;
  line-height: 19px;
  color: var(--color-muted);
  text-align: center;
}

.StatGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 20px;
}

.WarningList-Item {
  padding: 8px 10px;
  background: var(--color-warning-background);
  border-radius: 2px;
  font-size: 11px;
  line-height: 18px;
  color: var(--color-font);
}

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

.AtomPanel,
.PairPanel,
.PropertyPanel {
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}