:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #0a0d11;
  --panel-2: #0e1217;
  --line: #1b222b;
  --line-bright: #2b3541;
  --text: #d7dde4;
  --ink: #eef2f6;
  --muted: #687482;
  --dim: #5a6570;
  --bid: #19d3c5;
  --ask: #e93bd0;
  --buy: #2de28c;
  --sell: #ff5b69;
  --accent: #f0c86b;
  --brand: #a5f3fc;
  --chrome: #0b0e12;
  --input: #080b0f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

button,
input { font: inherit; }

.split-toolbar {
  min-height: 35px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--line-bright);
  background: var(--chrome);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.split-brand,
.single-link {
  color: var(--brand);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.split-brand { padding-right: 8px; border-right: 1px solid var(--line); }
.single-link {
  flex: 0 0 auto;
  height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
  background: var(--input);
}

.split-count,
.split-symbols,
.split-symbols form {
  display: flex;
  align-items: center;
  gap: 3px;
}
.split-count { flex: 0 0 auto; }

.split-count > span,
.split-symbols label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .06em;
}

.split-count button,
.split-symbols button,
.split-symbols input {
  height: 23px;
  border: 1px solid var(--line-bright);
  color: var(--text);
  background: var(--input);
  outline: none;
}

.split-count button,
.split-symbols button {
  padding: 0 6px;
  color: var(--muted);
  cursor: pointer;
}

.split-count button.is-active { color: var(--bid); border-color: color-mix(in srgb, var(--bid) 50%, transparent); }
.split-symbols { min-width: min(100%, 240px); flex: 1 1 320px; }
.split-symbols form { min-width: 0; flex: 1; }
.split-symbols input { width: 100%; min-width: 52px; padding: 0 5px; text-transform: uppercase; font-size: 9px; font-weight: 700; }
.split-symbols button { color: var(--bid); font-size: 8px; }

.split-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--split-count), minmax(0, 1fr));
  overflow: hidden;
}

.split-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-bright);
  background: var(--panel);
}

.split-pane:last-child { border-right: 0; }
.split-pane iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--panel); }

@media (max-width: 900px) {
  .split-toolbar { gap: 5px; }
  .split-symbols label { display: none; }
}
