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

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

a,
blockquote,
button,
code,
div,
figcaption,
h1,
h2,
h3,
input[type=email],
input[type=text],
input[type=password],
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
td,
textarea,
th,
ul {
  color: var(--color-font);
}

a,
blockquote,
body,
br,
button,
code,
div,
figure,
figcaption,
h1,
h2,
h3,
html,
iframe,
img,
input,
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
table,
tbody,
td,
th,
thead,
tr,
ul {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body {
  overflow: hidden;
}

html[data-article] {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

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

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;
  font-size: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

p a {
  font-size: 100%;
  font-weight: bold;
}

strong {
  font-size: 100%;
  vertical-align: baseline;
}

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  font-size: 0;
  max-width: 100%;
}

svg {
  border: 0;
  stroke-width: 0;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  text-align: left;
  white-space: nowrap;
  word-break: break-all;
}

th {
  font-weight: bold;
}

blockquote {
  quotes: none;
}

blockquote::after,
blockquote::before {
  content: "";
}

pre code {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, Menlo, "Liberation Mono", monospace;
}

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

input[type=file],
input[type=checkbox] {
  display: none;
}

textarea {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  background-color: transparent;
  resize: vertical;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-anchor: none;
}

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

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

::-webkit-calendar-picker-indicator {
  display: none;
}

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

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

:root {
  --color-font: #e9eef8;
  --color-muted: #93a2c4;
  --color-icon: #93a2c4;
  --color-input-background: #1a2440;
  --color-panel-background: #121a30;
  --color-panel-header-background: #0e1526;
  --color-body-background: #0a0f1e;
  --color-meter-track: #0c1224;
  --color-hint: #6d7c9e;
  --color-accent: #4fd8ff;
  --color-limit: #ff6b7a;
}

.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-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: 13px;
  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;
}

.PanelGroup {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.PanelGroup-Header {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.PanelNote {
  padding: 4px 12px 8px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}

.ChildPanel {
  position: fixed;
  display: none;
  width: max-content;
  background: var(--color-panel-background);
  border-radius: 8px;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ChildPanel[data-open] {
  display: block;
}

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

.ActionList {
  display: flex;
  flex-direction: column;
  padding: 4px 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], .ActionItem[data-active] {
  color: var(--color-font);
}

.RightLabelGrid {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding: 4px 12px;
}
.RightLabelGrid-Row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  height: 40px;
  column-gap: 8px;
}
.RightLabelGrid-Row-Label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  white-space: nowrap;
}

.NumberInput,
.ToggleInput {
  justify-self: start;
}

.ToggleInput {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}
.ToggleInput-Option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.ToggleInput-Option[data-selected]::before, .ToggleInput-Option[data-selected]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  pointer-events: none;
}
.ToggleInput-Option[data-selected]::before {
  left: 0;
  border-left: 1px solid var(--color-icon);
  border-top: 1px solid var(--color-icon);
  border-bottom: 1px solid var(--color-icon);
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
.ToggleInput-Option[data-selected]::after {
  right: 0;
  border-right: 1px solid var(--color-icon);
  border-top: 1px solid var(--color-icon);
  border-bottom: 1px solid var(--color-icon);
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.NumberInput {
  display: flex;
  align-items: center;
}
.NumberInput-Arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-icon);
  cursor: pointer;
}
.NumberInput-Field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.NumberInput-Input {
  width: calc(4ch + 16px);
  height: 26px;
  padding: 0 4px;
  background: var(--color-input-background);
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  color: var(--color-font);
  text-align: center;
}
.NumberInput-Unit {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  user-select: none;
}

.ReadoutRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 30px;
  padding: 0 12px;
}
.ReadoutRow-Label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}
.ReadoutRow-Value {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.MeterGrid {
  display: grid;
  grid-template-columns: max-content 132px 62px;
  padding: 0 12px;
}

.MeterRow {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  align-items: center;
  column-gap: 8px;
  height: 30px;
}
.MeterRow-Label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: nowrap;
}
.MeterRow-Track {
  position: relative;
  height: 10px;
  background: var(--color-meter-track);
  border-radius: 2px;
  overflow: hidden;
}
.MeterRow-Zero {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-muted);
}
.MeterRow-Fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width 0.15s;
}
.MeterRow-Fill[data-signed] {
  left: 50%;
  transition: none;
}
.MeterRow-Value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.StateRow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin: 0 12px;
  padding: 0 12px;
  background: var(--color-panel-header-background);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.2s;
}
.StateRow[data-limit] {
  color: var(--color-limit);
}

.PlayControl {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 12px;
}
.PlayControl-Item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-font);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}

.ChartBox {
  padding: 4px 12px 8px;
}
.ChartBox canvas {
  display: block;
}

.HeatLab {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(1100px 520px at 50% -10%, #17244b 0%, var(--color-body-background) 60%);
  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;
  user-select: none;
}
.HeatLab-Canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.Hint {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-hint);
  pointer-events: none;
  user-select: none;
}

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

.HeatArticle {
  min-height: 100vh;
  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;
  user-select: none;
}
.HeatArticle::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 29;
  height: 56px;
  background: var(--color-body-background);
}
.HeatArticle-Main {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.HeatArticle .PanelColumn {
  position: fixed;
}

.LectureDocument {
  display: flex;
  flex-direction: column;
  user-select: text;
}
.LectureDocument-Title {
  padding: 8px 0 24px;
  font-size: 26px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-font);
  text-align: center;
}
.LectureDocument-Scene {
  padding-bottom: 40px;
}
.LectureDocument-Heading {
  padding: 16px 0 8px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-font);
}
.LectureDocument-Text {
  padding-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-muted);
}
.LectureDocument-Text .Formula {
  color: var(--color-font);
}

.LectureFigure {
  display: block;
  width: 100%;
  height: 440px;
}

.TopicList {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 320px;
  padding: 4px 6px 8px;
}
.TopicList-Group {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.TopicList-Name {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-hint);
}
.TopicList-Item {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  border-radius: 2px;
  white-space: nowrap;
}
.TopicList-Item[data-active] {
  color: var(--color-accent);
}

.LectureLink {
  display: flex;
  flex-direction: column;
  user-select: text;
}
.LectureLink-Name {
  display: flex;
  align-items: center;
  height: 26px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-hint);
}
.LectureLink-Item {
  display: flex;
  align-items: center;
  height: 28px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-accent);
}