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

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

html,
body {
  overflow: hidden;
}

body {
  background: #0c1322;
  color: #e2e8f0;
  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-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  border: 0;
}

ol,
ul {
  list-style: none;
}

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

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

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

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

:root {
  --color-font: #e2e8f0;
  --color-text-body: #cbd5e1;
  --color-group-header-font: #94a3b8;
  --color-icon: #94a3b8;
  --color-panel-background: #131c2e;
  --color-panel-header-background: #0f1726;
  --color-panel-border: #1e293b;
  --color-panel-group-border: #1e293b;
  --color-body-background: #0c1322;
  --color-selected: #1e2b43;
  --color-input-border: #475569;
  --color-accent: #22d3ee;
  --color-formula: #fcd34d;
}

.WaveLab {
  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;
}
.WaveLab-Canvas {
  position: absolute;
  top: 56px;
  left: 0;
  display: block;
  width: 100%;
  height: calc(100% - 56px);
}

.WaveLogo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.WaveLogo 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-group-header-font);
  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;
}

.SinglePanel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max-content;
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.SinglePanel[data-panel]:not([data-open]) {
  display: none;
}
.SinglePanel[data-float] {
  position: fixed;
}
.SinglePanel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.SinglePanel-Header:active {
  cursor: grabbing;
}
.SinglePanel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  visibility: hidden;
}
.SinglePanel-CloseIcon:hover svg {
  visibility: visible;
}
.SinglePanel-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;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-Main {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.SinglePanel-Handle {
  position: absolute;
}
.SinglePanel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.SinglePanel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.SinglePanel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.SinglePanel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.SinglePanel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}
.SinglePanel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.SinglePanel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}
.SinglePanel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

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

.PanelGroup + .PanelGroup {
  border-top: 1px solid var(--color-panel-group-border);
}
.PanelGroup-Header {
  display: flex;
  height: 28px;
  padding: 9px 12px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}

.SliderList {
  padding: 3px 0;
}

.Slider {
  display: grid;
  grid-template-columns: 84px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
}
.Slider-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}
.Slider-Input[type=range] {
  width: 100%;
  height: 16px;
  background: transparent;
  cursor: pointer;
}
.Slider-Input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: var(--color-input-border);
}
.Slider-Input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--color-accent);
}
.Slider-Input[type=range]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--color-input-border);
}
.Slider-Input[type=range]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}
.Slider-Value {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
  text-align: right;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.Readout {
  padding: 2px 12px 6px;
}
.Readout-Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}
.Readout-Key {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
}
.Readout-Value {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.SelectList {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
}
.SelectList-Item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-font);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.SelectList-Item:hover {
  background-color: var(--color-selected);
}
.SelectList-Item[data-selected] {
  background-color: var(--color-selected);
}
.SelectList-Empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--color-group-header-font);
  user-select: none;
}

.InlineList {
  display: flex;
  gap: 4px;
  padding: 8px;
}
.InlineList-Item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.InlineList-Item:hover {
  background-color: var(--color-selected);
}
.InlineList-Item[data-selected] {
  background-color: var(--color-selected);
  color: var(--color-accent);
}
.InlineList-Icon {
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.Legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.Legend-Row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.Legend-Mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 15px;
}
.Legend-Label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-group-header-font);
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 260px;
  padding: 16px 18px;
}
.TextBlock h1 {
  color: var(--color-font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}
.TextBlock p {
  color: var(--color-text-body);
  font-size: 13px;
  line-height: 21px;
}

.Formula {
  padding: 0 2px;
  color: var(--color-formula);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}