*,
: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: #0a0a14;
  color: #e6e6f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", 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;
}

.Plot {
  --color-font: #e6e6f0;
  --color-muted: #8a8aa8;
  --color-input-border: #3a3a52;
  --color-panel-background: #1a1a2e;
  --color-panel-header-background: #20203a;
  --color-panel-border: #2a2a44;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0a0a14;
  color: var(--color-font);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
.Plot-Canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}
.Plot-CurveList {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.Plot-Curve {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 280px;
}
.Plot-Curve-Function {
  display: flex;
  align-items: center;
  flex: 1;
  height: 36px;
  border-radius: 2px;
  overflow: hidden;
}
.Plot-Curve-Label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 100%;
  cursor: pointer;
  color: #1f1f1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.Plot-Curve-Field {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  padding: 0 10px;
  background: #fafafa;
}
.Plot-Curve-Field input {
  width: 100%;
  background: transparent;
  color: #1f1f1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.Plot-Curve-Delete {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 2px;
}
.Plot-Curve-Delete svg {
  width: 11px;
}
.Plot-Curve-Delete line {
  fill: none;
  stroke: var(--color-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 20px;
}
.Plot-Curve-Delete:hover line {
  stroke: #ff6b6b;
}
.Plot-Footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 12px;
}
.Plot-Add {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--color-input-border);
  border-radius: 2px;
  color: var(--color-font);
  font-size: 13px;
}
.Plot-Error {
  flex: 1;
  color: #ff6b6b;
  font-size: 12px;
  line-height: 16px;
}

.SinglePanel {
  position: absolute;
  width: max-content;
  background: var(--color-panel-background);
  border: 1px solid var(--color-panel-border);
  border-radius: 12px;
  overflow: hidden;
}
.SinglePanel-Header {
  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-font);
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  width: 9px;
  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 {
  padding: 0;
}

.CurvePanel {
  left: 24px;
  top: 24px;
}

.HintPanel {
  top: 24px;
}

.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;
}
.TextBlock p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 21px;
}

.ColorPicker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 11000;
}
.ColorPicker-Container {
  padding: 32px;
  background-color: #1a1a1a;
  border-radius: 12px;
  user-select: none;
}
.ColorPicker-Main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.ColorPicker-Ring {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  border-radius: 50%;
  cursor: crosshair;
}
.ColorPicker-RingInner {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: #1a1a1a;
  border-radius: 50%;
  pointer-events: none;
}
.ColorPicker-RingIndicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ColorPicker-Square {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: crosshair;
  z-index: 1;
}
.ColorPicker-SquareIndicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ColorPicker-Cards, .ColorPicker-AnalogousCards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ColorPicker-Card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  padding: 14px 16px;
  background-color: #242424;
  border-radius: 10px;
}
.ColorPicker-CardHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  cursor: pointer;
}
.ColorPicker-CardSwatch {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #333;
  border-radius: 6px;
}
.ColorPicker-CardHexGroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ColorPicker-CardLabel {
  color: #555;
  font-family: monospace;
  font-size: 10px;
}
.ColorPicker-CardHex {
  color: #fff;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.ColorPicker-CardRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ColorPicker-CardRowLabel {
  width: 32px;
  flex-shrink: 0;
  color: #555;
  font-family: monospace;
  font-size: 11px;
  text-align: right;
}
.ColorPicker-CardRowValue {
  color: #bbb;
  font-family: monospace;
  font-size: 12px;
}
.ColorPicker-Analogous {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ColorPicker-AnalogousHeader {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ColorPicker-AnalogousLabel {
  color: #555;
  font-family: monospace;
  font-size: 12px;
}
.ColorPicker-AnalogousInput {
  width: 56px;
  padding: 4px 8px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  text-align: center;
  outline: none;
}
.ColorPicker-AnalogousUnit {
  color: #555;
  font-family: monospace;
  font-size: 12px;
}
.ColorPicker-None {
  width: 100%;
  margin-top: 12px;
  padding: 10px 0;
  background-color: #242424;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  font-family: monospace;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}