
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Mono:wght@100..700&display=swap';
/*
For simplicity of the demo, we import the webfonts here.
In a real-life scenario we'd want to preload fonts in the main template:

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Mono:wght@100..700&display=swap" rel="stylesheet">
*/
:root {
  --palette-primary: hsl(215, 80%, 45%);
  --palette-primary-lighter: hsl(215, 80%, 55%);
  --palette-primary-darker: hsl(215, 90%, 40%);
  --palette-primary-extralight: hsl(215, 80%, 85%);

  --palette-secondary: hsl(345, 80%, 60%);
  --palette-secondary-lighter: hsl(345, 80%, 70%);

  --palette-tertiary: hsl(155, 60%, 46%);
  --palette-tertiary-lighter: hsl(155, 60%, 50%);

  --palette-secondary-25: hsl(250, 80%, 70%);
  --palette-secondary-50: hsl(300, 80%, 60%);
  --palette-secondary-75: hsl(335, 80%, 60%);

  --palette-tertiary-25: hsl(200, 100%, 40%);
  --palette-tertiary-25-lighter: hsl(200, 80%, 60%);
  --palette-tertiary-25-darker: hsl(200, 90%, 32%);

  --palette-tertiary-50: hsl(180, 100%, 30%);

  --palette-tertiary-75: hsl(165, 90%, 35%);
  --palette-tertiary-75-lighter: hsl(165, 70%, 45%);
  --palette-tertiary-75-darker: hsl(165, 70%, 30%);

  --palette-shade-0: hsl(215, 20%, 10%);
  --palette-shade-05: hsl(215, 20%, 12%);
  --palette-shade-1: hsl(215, 20%, 15%);
  --palette-shade-2: hsl(215, 20%, 20%);
  --palette-shade-3: hsl(215, 15%, 25%);
  --palette-shade-4: hsl(215, 12%, 45%);
  --palette-shade-5: hsl(215, 25%, 70%);
  --palette-shade-6: hsl(215, 70%, 90%);
}
:root {
  --theme-bd: #000;
  --theme-bd-opct: 0.5;
  --theme-shade: var(--palette-shade-0);
  --theme-tint: var(--palette-shade-2);
  --theme-tint-lc: var(--palette-shade-1);
  --theme-tint-hc: var(--palette-shade-3);
  --theme-bg: var(--palette-shade-0);
  --theme-bg-l1: var(--palette-shade-05);
  --theme-bg-l: var(--palette-shade-1);
  --theme-bg-hc: var(--palette-shade-2);
  --theme-bg-btn: var(--palette-primary-darker);
  --theme-fg: var(--palette-shade-5);
  --theme-fg-hc: var(--palette-shade-6);
  --theme-fg-lc: var(--palette-shade-4);
  --theme-fg-dsbl: var(--palette-shade-3);
  --theme-fg-btn: var(--palette-shade-6);
  --theme-active: var(--palette-primary);
  --theme-focus: var(--palette-primary-lighter);
  --theme-success: var(--palette-tertiary);
  --theme-error: var(--palette-secondary);
  --theme-warning: #C89022;
  --theme-announce-success: var(--palette-tertiary-50);
  --theme-announce-error: var(--palette-secondary-75);
  --theme-buy: var(--theme-success);
  --theme-sell: var(--theme-error);
  --theme-initiate: var(--theme-active);
  --theme-exit: var(--theme-error);
  --theme-scrollbar: var(--palette-shade-3);
}
:root {
  /* we set up some ratios to derive relative sizes that can scale with the browser default font size */
  /* the rem-ratio is used to set the rem size based on the browser default: 16px at 100% */
  /* if we want our rem to equal 14px we can set the rem-ratio to 0.875 (16px * 0.875 = 14px) */
  --rem-ratio: 1;
  /* the grid-ratio defines the size of one grid relative to the rem size */
  /* with 1rem being 16px our grid-size becomes 8px with a grid-ratio of 0.5 */
  --grid-ratio: 0.5;
  /* the font-ratio defines the font size relative to the rem size */
  --font-ratio: 0.875;
  /* the line-ratio defines the line height relative to the rem size */
  --line-ratio: 1;

  --grid-size: calc(1rem * var(--grid-ratio));
  --grid-size-s: calc(var(--grid-size) / 2);
  --grid-size-xs: calc(var(--grid-size-s) / 2);
  --grid-size-l: calc(var(--grid-size) * 2);
  --grid-size-xl: calc(var(--grid-size-l) * 2);
  --font-size: calc(1rem * var(--font-ratio));
  --font-size-s: calc(var(--font-size) - var(--grid-size-xs));
  --font-size-xs: calc(var(--font-size-s) - var(--grid-size-xs));
  --font-size-l: calc(var(--font-size) + var(--grid-size-xs));
  --font-size-xl: calc(var(--font-size) + var(--grid-size));
  --font-size-xxl: calc(var(--font-size) + var(--grid-size-l));
  --font-size-xxxl: calc(var(--font-size-xxl) + var(--grid-size));
  --line-height: calc(1rem * var(--line-ratio));
  --line-height-s: var(--line-height);
  --line-height-xs: var(--line-height);
  --line-height-l: var(--line-height);
  --line-height-xl: calc(var(--line-height) + var(--grid-size));
  --line-height-xxl: calc(var(--line-height) + var(--grid-size) * 2);
  --line-height-xxxl: calc(var(--line-height) + var(--grid-size) * 3);

  --font-family: 'Inter', sans-serif;
  --font-family-mono: 'Roboto Mono', monospace, monospace;
  --font-weight-light: 200;
  --font-weight-regular: 400;
  --font-weight-bold: 600;
  --font-weight-boldest: 800;
  --transition-duration: .25s;
  --transition-timing: ease-in-out;
  --transition-delay: 0;

  /* colors */
  --color-bd: var(--theme-bd);
  --color-bg: var(--theme-bg);
  --color-fg: var(--theme-fg);
  --color-brd: var(--theme-bg);
  --color-focus: var(--theme-focus);

  --color-bg-active: var(--theme-bg-l);
  --color-fg-active: var(--theme-fg);

  --color-bg-selected: var(--theme-active);
  --color-fg-selected: var(--theme-fg-hc);

  --color-bg-disabled: var(--color-bg);
  --color-fg-disabled: var(--theme-fg-dsbl);

  /* border */
  --border: var(--border-width) var(--border-style) var(--color-brd);
  --border-width: calc(var(--grid-size) / 4);
  --border-style: solid;
  --border-radius: var(--grid-size);
  --border-radius-s: calc(var(--grid-size) / 2);
  --border-shadow: inset 0 0 0 var(--border-width);

  /* opacities */
  --opacity-bd: var(--theme-bd-opct);

  /* shadow */
  --shadow: 0 0 var(--grid-size) 0 rgba(0, 0, 0, .25);
  --shadow-l: 0 0 var(--line-height) 0 rgba(0, 0, 0, .5);

  /* filters */
  --blur: blur(2px);

  /* limits */
  --max-width: calc(var(--line-height) * 100);
  --max-height: calc(var(--line-height) * 56);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: inherit;
  white-space: inherit;
  box-sizing: inherit;
}
html {
  font-size: calc(100% * var(--rem-ratio, 1));
  background-color: var(--color-bg, #fff);
  box-sizing: border-box;
}
body {
  font-family: var(--font-family, sans-serif);
  font-size: var(--font-size, 1rem);
  font-weight: var(--font-weight, normal);
  line-height: var(--line-height, 1.5rem);
  color: var(--color-fg, #000);
  text-rendering: optimizeLegibility;
  vertical-align: baseline;
  white-space: normal;
  contain: content;
}
html,
body {
  min-height: 100vh;
  min-width: 100%;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
b, strong {
  font-weight: bold;
}
i, em {
  font-style: italic;
}
pre {
  white-space: pre;
}
pre,
code {
  font-family: var(--font-family-mono, monospace);
}
[hidden] {
  display: none;
}
*:focus {
  outline: none;
  box-shadow: var(--border-shadow) var(--color-focus);
}
a:hover,
a:focus {
  outline: none;
  box-shadow: none;
  color: var(--color-focus);
}
*::-moz-focus-inner {
  outline: none;
  box-shadow: none;
}
*::-moz-focus-outer {
  outline: none;
  box-shadow: none;
}
*:-moz-focusring {
  outline: none;
  box-shadow: none;
}
/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--theme-scrollbar) transparent;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: calc(var(--grid-size) * 2);
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--theme-scrollbar);
  background-clip: padding-box;
  border-radius: var(--grid-size);
  border: calc(var(--grid-size) / 2) solid transparent;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
.ui-active {
  --color-fg: var(--color-fg-active);
  --color-bg: var(--color-bg-active);
  color: var(--color-fg);
  background-color: var(--color-bg);
}
.ui-selected {
  --color-fg: var(--color-fg-selected);
  --color-bg: var(--color-bg-selected);
  color: var(--color-fg);
  background-color: var(--color-bg);
}
[disabled],
[aria-disabled=true] {
  --color-fg: var(--color-fg-disabled);
  --color-bg: var(--color-bg);
  color: var(--color-fg);
  background-color: transparent;
  cursor: not-allowed;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
/* disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    --transition-duration: 0s;
    --transition-delay: 0s;
  }
}
button {
  --color-fg: var(--theme-fg);
  --color-bg: var(--theme-tint-hc);
  --color-focus: var(--theme-focus);
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--grid-size);
  padding: calc(var(--grid-size) * 1.5) calc(var(--grid-size) * 2);
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-fg);
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius-s);
  background-color: var(--color-bg);
  box-shadow: var(--border-shadow) transparent;
}
button:hover,
button:focus {
  --color-fg: var(--theme-fg-btn);
  --color-bg: var(--theme-active);
  outline: none;
  box-shadow: var(--border-shadow) var(--color-focus);
}
button.primary {
  --color-fg: var(--theme-fg-btn);
  --color-bg: var(--theme-bg-btn);
}
button.primary:hover,
button.primary:focus {
  --color-bg: var(--theme-active);
}
button.initiate,
button.initiate:not([disabled]):hover,
button.initiate:not([disabled]):focus {
  --color-fg: var(--theme-fg-btn);
  --color-bg: var(--theme-initiate);
}
button.exit,
button.exit:not([disabled]):hover,
button.exit:not([disabled]):focus {
  --color-fg: var(--theme-fg-btn);
  --color-bg: var(--theme-exit);
  --color-focus: var(--palette-secondary-lighter);
}
button[disabled],
button[disabled]:hover,
button[disabled]:focus {
  --color-fg: var(--theme-fg-lc);
  --color-bg: var(--theme-tint);
  cursor: not-allowed;
  outline: none;
  box-shadow: none;
  background-color: var(--color-bg);
}
.button-small {
  padding: calc(var(--grid-size) / 2) var(--grid-size);
  font-size: var(--font-size-s);
  border-radius: var(--border-radius-s);
}
button.ghost {
  --color-fg: var(--theme-fg);
  --color-bg: transparent;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
::placeholder {
  color: var(--theme-fg-dsbl);
}
input[type=text],
textarea {
  --color-fg: var(--theme-fg);
  --color-bg: var(--theme-shade);
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  padding: var(--grid-size);
  font-family: var(--font-family-mono);
  color: var(--color-fg);
  border: none;
  border-radius: var(--border-radius-s);
  background-color: var(--color-bg);
  box-shadow: var(--border-shadow) var(--theme-shade);
  transition: box-shadow var(--transition-duration) var(--transition-timing);
}
input[type=text]:hover,
textarea:hover,
input[type=text]:focus,
textarea:focus {
  --color-fg: var(--theme-fg-hc);
  outline: none;
  box-shadow: var(--border-shadow) var(--theme-focus);
}
input[aria-invalid=true],
textarea[aria-invalid=true],
input[aria-invalid=true]:hover,
textarea[aria-invalid=true]:hover,
input[aria-invalid=true]:focus,
textarea[aria-invalid=true]:focus {
  box-shadow: var(--border-shadow) var(--theme-error);
}
input[type=text][disabled],
textarea[disabled] {
  --color-fg: var(--theme-fg-dsbl);
  cursor: not-allowed;
  outline: none;
  box-shadow: none;
}
a {
  text-decoration: underline;
}
body {
  padding: var(--line-height);
}
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
}
h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child),
h6:not(:first-child),
p:not(:first-child) {
  margin-block-start: var(--line-height);
}
h1 {
  font-size: var(--font-size-xxxl);
  line-height: var(--line-height-xxxl);
}
h2 {
  font-size: var(--font-size-xxl);
  line-height: var(--line-height-xxl);
}
h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-xl);
}
h4 {
  font-size: var(--font-size-l);
  line-height: var(--line-height-l);
}
ul {
  list-style: none;
}
code {
  display: inline-block;
  padding-inline: var(--grid-size-s);
  background-color: var(--theme-tint-lc);
  border-radius: var(--border-radius-s);
}
pre {
  margin-block-start: var(--line-height);
  padding-inline-end: var(--line-height);
  overflow: hidden;
  overflow-x: auto;
  background-color: var(--theme-bd);
  border-radius: var(--border-radius);
}
.container {
  margin-block-start: var(--line-height);
  max-width: calc(var(--line-height) * 50);
}
.container > p,
.container > ul {
  line-height: calc(var(--font-size) * 1.5);
}
.container > ul {
  list-style: initial;
  margin-block-start: var(--line-height);
  padding-inline-start: calc(var(--line-height) * 2);
}
.container > ul li:not(:first-child) {
  margin-block-start: var(--grid-size);
}
.horizontal {
  display: flex;
  flex-flow: row nowrap;
  gap: var(--line-height);
  align-items: flex-start;
}
.vertical {
  display: flex;
  flex-flow: column;
  gap: var(--line-height);
}
.vertical > p {
  margin-block-start: 0;
}
.half > * {
  flex-basis: 50%;
}
.third > * {
  flex-basis: 33.333%;
}
.ui-dialog-header h2 {
  font-size: var(--font-size-l);
}
ui-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background-color: var(--color-bd);
  z-index: 1000;
}
ui-backdrop.ui-visible {
  opacity: var(--opacity-bd);
}
ui-backdrop.ui-animate-in,
ui-backdrop.ui-animate-out {
  transition: opacity var(--transition-duration) var(--transition-timing);
}
.ui-overlay {
  position: absolute;
  overflow: auto;
  contain: content;
  will-change: top, left, right, bottom;
  background-color: var(--color-bg);
  z-index: 1000;
}
.ui-check-layout {
  opacity: 0;
  pointer-events: none;
}
.ui-invisible {
  opacity: 0;
  pointer-events: none;
}
.ui-visible {
  opacity: 1;
  pointer-events: all;
}
.ui-overlay[hidden] {
  display: none;
}
body {
  overflow: auto;
}
select, input[type=checkbox] {
  accent-color: var(--theme-active);
  border-color: var(--theme-fg-lc);
  border-radius: var(--border-radius-s);
  background-color: var(--color-bg);
}
main {
  margin-block-start: var(--line-height);
}
aside {
  display: flex;
  flex-direction: column;
  gap: var(--line-height);
  margin-block-start: var(--line-height);
}
aside ul {
  display: flex;
  flex-direction: column;
  gap: var(--grid-size);
}
.container {
  position: relative;
  overflow: scroll;
  height: calc(50 * var(--grid-size));
  width: calc(100 * var(--grid-size));
  border: var(--border);
  border-color: var(--theme-bg-l);
  border-radius: var(--border-radius);
}
.pane {
  display: grid;
  justify-items: center;
  gap: var(--line-height);
  padding-block: var(--line-height);
  padding-inline: var(--line-height);
  width: 200vw;
}
.spacer {
  height: calc(60 * var(--grid-size));
}
ui-backdrop {
  background-color: var(--color-bd);
  transition: opacity var(--transition-duration) var(--transition-timing);
}
ui-backdrop.ui-visible {
  opacity: .5;
}
.ui-overlay {
  --color-bg: var(--theme-bg-l);
  padding-block: var(--line-height);
  padding-inline: var(--line-height);
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-l);
}
.overlay {
  display: flex;
  flex-direction: column;
  gap: var(--line-height);
  max-width: calc(100vw - var(--line-height) * 2);
  max-height: calc(100vh - var(--line-height) * 2);
}
.overlay[hidden] {
  display: none;
}
.overlay.ui-invisible {
  /* the !important is there when used with the centered-position-strategy */
  transform: translateY(-50vw) !important;
}
.overlay.ui-animate-in,
.overlay.ui-animate-out {
  transition-property: opacity, transform;
  transition-duration: var(--transition-duration);
  transition-timing-function: var(--transition-timing);
}
.tooltip {
  max-width: calc(var(--grid-size) * 40);
  padding-block: var(--grid-size);
  padding-inline: var(--grid-size);
}
.tooltip.ui-invisible {
  transform: translateY(var(--line-height)) !important;
}
.tooltip.ui-animate-in,
.tooltip.ui-animate-out {
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: var(--transition-duration);
  transition-timing-function: var(--transition-timing);
}
