*,
: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: #1f1f1f;
}

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

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 {
  background-color: transparent;
  resize: vertical;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-y: scroll;
  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: #ededed;
  --color-group-header-font: #9a9a9a;
  --color-stepper-icon: #dadada;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-panel-border: #2e2e2e;
  --color-panel-group-border: #2a2a2a;
  --color-body-background: #3a3a3a;
}

.Panel {
  position: relative;
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}
.Panel-Header {
  height: 32px;
  width: 100%;
  flex-shrink: 0;
  background: var(--color-panel-header-background);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-bottom: 1px solid var(--color-panel-group-border);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-font);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  width: 9px;
}
.Panel-Title {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
}
.Panel-Title[data-end] {
  padding-right: 16px;
}
.Panel-Main {
  padding: 0;
}
.Panel-Resize {
  position: absolute;
  z-index: 1;
  touch-action: none;
}
.Panel-Resize[data-edge=top] {
  top: -3px;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Resize[data-edge=bottom] {
  bottom: -3px;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Resize[data-edge=left] {
  top: 0;
  bottom: 0;
  left: -3px;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Resize[data-edge=right] {
  top: 0;
  bottom: 0;
  right: -3px;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Resize[data-edge=top-left] {
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Resize[data-edge=top-right] {
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Resize[data-edge=bottom-left] {
  bottom: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Resize[data-edge=bottom-right] {
  bottom: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel[data-floating] {
  position: fixed;
}
.Panel[data-floating] .Panel-Main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.Panel[data-floating] .PanelGroup {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.Panel[data-floating] .DataInput {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.Panel[data-collapsed] .Panel-Main {
  display: none;
}

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

.DataInput {
  width: 280px;
  height: 200px;
  padding: 8px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  tab-size: 4;
  color: var(--color-font);
  resize: none;
}
.DataInput:focus {
  outline: none;
}

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

.StepperInput {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;
}
.StepperInput-Arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--color-stepper-icon);
  cursor: pointer;
}
.StepperInput-Arrow[data-disabled] {
  opacity: 0.3;
  cursor: default;
}
.StepperInput-Track {
  display: grid;
  justify-items: center;
}
.StepperInput-Option {
  grid-area: 1/1;
  visibility: hidden;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-font);
  user-select: none;
}
.StepperInput-Option[data-selected] {
  visibility: visible;
}

.Chart {
  display: block;
}

.PanelStack {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  background: var(--color-body-background);
}
body[data-mode=actual] {
  height: 100vh;
  overflow: auto;
  justify-content: safe center;
  align-items: safe center;
}
body[data-mode=actual] #app {
  margin: 0;
}
body[data-mode=actual] .Chart {
  flex-shrink: 0;
}

#app {
  margin: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}