:root {
  --well: #07090f;
  --bg: #0b0d14;
  --panel: #10131c;
  --raise: #171b27;
  --sel: #1d2231;
  --line: #1f2433;
  --line2: #6b7490;
  --text: #e8eaf0;
  --text2: #c3c7d3;
  --dim: #8f95a8;
  --accent: #c8a15a;
  --accent-hi: #d8b56e;
  --accent-lo: #6e5a33;
  --accent-bg: #2a2516;
  --on-accent: #0b0d14;
  --up: #2ebd85;
  --dn: #f0525c;
  --planet: #7fb6ff;
  --font:
    "Segoe UI",
    "Malgun Gothic",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
  --serif:
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    Georgia,
    serif;
  --fs: 13px;
  --fs-s: 12px;
  --fs-xs: 11px;
  --top-h: 52px;
  --side-w: 320px;
  --rail-w: 56px;
  --tape-h: 28px;
  --r-s: 4px;
  --r-m: 6px;
  --r-l: 8px;
  --ease: .15s;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: var(--fs)/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}
h3 {
  margin: 18px 0 8px;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--dim);
}
h3:first-child {
  margin-top: 4px;
}
small {
  color: var(--dim);
  font-size: var(--fs-xs);
}
.up {
  color: var(--up);
}
.dn {
  color: var(--dn);
}
.ac {
  color: var(--accent);
}
.note {
  color: var(--dim);
  font-size: var(--fs-s);
  margin: 10px 2px;
}
[hidden] {
  display: none !important;
}
.top {
  flex: none;
  min-height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 21px/1 var(--serif);
  color: var(--accent);
  letter-spacing: .04em;
}
.mark {
  width: 30px;
  height: 30px;
}
.mark .orbit {
  fill: none;
  stroke: var(--accent-lo);
  stroke-width: .8;
}
.mark .sun {
  fill: var(--accent);
}
.mark line {
  stroke: var(--accent-lo);
  stroke-width: .7;
}
.mark .p1 {
  fill: var(--planet);
}
.mark .p2 {
  fill: var(--text);
}
.mark .arm {
  transform-origin: 20px 20px;
}
.mark .a1 {
  animation: orbit 14s linear infinite;
}
.mark .a2 {
  animation: orbit 41s linear infinite;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.symbox {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.symbox .nm {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.symbox .nm b {
  font-size: 15px;
}
.symbox em {
  font-style: normal;
  font-size: 19px;
  font-weight: 600;
}
.stats {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stats::-webkit-scrollbar {
  display: none;
}
.stats:focus-visible {
  outline-offset: -2px;
}
.stat {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  white-space: nowrap;
}
.stat b {
  font-size: var(--fs-s);
  font-weight: 500;
}
.body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.chartbox {
  flex: 1;
  min-width: 0;
  position: relative;
}
#chart {
  position: absolute;
  inset: 0;
}
.wm {
  position: absolute;
  left: 0;
  right: 56px;
  bottom: 60px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  font: clamp(26px, 3.6vw, 52px)/1 var(--serif);
  letter-spacing: .16em;
  color: var(--accent);
  opacity: .17;
}
.side {
  flex: none;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
}
.body.shut .side {
  display: none;
}
.pane {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 10px 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.pane.on {
  display: block;
}
.rail {
  flex: none;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  gap: 2px;
  background: var(--panel);
  border-left: 1px solid var(--line);
}
.tab,
.fold {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 7px;
  color: var(--dim);
  font-size: var(--fs-xs);
  transition: color var(--ease), background var(--ease);
}
.tab svg,
.fold svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab svg .dot {
  fill: currentColor;
  stroke: none;
}
.tab:hover,
.fold:hover {
  color: var(--text);
  background: var(--raise);
}
.tab[aria-pressed=true] {
  color: var(--accent);
}
.tab[aria-pressed=true]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.tab:focus-visible,
.fold:focus-visible {
  outline-offset: -3px;
}
.tab[data-n]:not([data-n=""])::after {
  content: attr(data-n);
  position: absolute;
  top: 3px;
  right: 7px;
  min-width: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
}
.fold {
  margin-top: auto;
}
.body.shut .fold svg {
  transform: scaleX(-1);
}
.wtop,
.subtabs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -4px 0 10px;
  border-bottom: 1px solid var(--line);
}
.wmode,
.st {
  padding: 7px 0 8px;
  margin-bottom: -1px;
  color: var(--dim);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color var(--ease);
}
.wmode:hover,
.st:hover {
  color: var(--text);
}
.wmode[aria-pressed=true],
.st[aria-pressed=true] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.st i {
  font-style: normal;
  font-weight: 400;
  margin-left: 4px;
  color: var(--accent);
}
.count {
  margin-left: auto;
  color: var(--dim);
  font-size: var(--fs-xs);
}
.search {
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.search::placeholder {
  color: var(--dim);
}
.search:hover {
  border-color: var(--line2);
}
.search:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 0;
}
.whead {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px 4px 30px;
  color: var(--dim);
  font-size: var(--fs-xs);
}
.coin {
  display: flex;
  align-items: center;
  border-radius: var(--r-s);
  transition: background var(--ease);
}
.coin:hover {
  background: var(--raise);
}
.coin.cur {
  background: var(--sel);
  box-shadow: inset 2px 0 0 var(--accent);
}
.star {
  width: 28px;
  align-self: stretch;
  color: var(--line2);
  font-size: 13px;
}
.star:hover {
  color: var(--accent-hi);
}
.star.on {
  color: var(--accent);
}
.crow {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 2px;
  text-align: left;
}
.crow:focus-visible,
.star:focus-visible {
  outline-offset: -2px;
}
.cn,
.cp {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.cn {
  flex: 1;
}
.cp {
  align-items: flex-end;
}
.cp b {
  font-weight: 500;
}
.ind {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--r-m);
  cursor: pointer;
  position: relative;
  transition: background var(--ease);
}
.ind:hover {
  background: var(--raise);
}
.glyph {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background:
    radial-gradient(
      circle at 35% 30%,
      color-mix(in srgb, var(--c) 22%, transparent),
      transparent 70%);
}
.ind .nm {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.ind .nm small {
  font-weight: 400;
}
.ind input,
.tog input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sw {
  flex: none;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--line);
  border: 1px solid var(--line2);
  position: relative;
  transition: background var(--ease), border-color var(--ease);
}
.sw::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform var(--ease), background var(--ease);
}
input:checked + .sw {
  background: var(--accent-lo);
  border-color: var(--accent);
}
input:checked + .sw::after {
  transform: translateX(14px);
  background: var(--accent-hi);
}
input:focus-visible + .sw {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.qc {
  padding: 2px 9px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}
.qc::first-letter {
  color: var(--c);
}
.qc:hover {
  border-color: var(--accent);
  background: var(--raise);
}
.card {
  margin-bottom: 6px;
  padding: 8px 8px 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  transition: border-color var(--ease);
}
.card:hover {
  border-color: var(--line2);
}
.card.on {
  box-shadow: inset 2px 0 0 var(--accent);
}
.card.hid .glyph,
.card.hid .nm {
  opacity: .5;
}
.chead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chead .nm {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.chead .nm small {
  font-weight: 400;
}
.ic {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  color: var(--dim);
  font-size: 14px;
  transition: color var(--ease), background var(--ease);
}
.ic:hover {
  color: var(--text);
  background: var(--raise);
}
.ic[aria-expanded=true],
.ic[aria-pressed=true] {
  color: var(--accent);
}
.tog {
  position: relative;
  display: flex;
  cursor: pointer;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 6px 0 0 38px;
}
.chips span {
  padding: 1px 7px;
  background: var(--raise);
  border-radius: var(--r-s);
  font-size: var(--fs-xs);
  color: var(--dim);
}
.cset {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.srow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 4px 0;
}
.sck {
  flex: 1;
  min-width: 96px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.sck input {
  accent-color: var(--accent);
  margin: 0;
}
.sck i,
.sigs i {
  font-style: normal;
  width: 16px;
  text-align: center;
}
.srow input[type=color] {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: var(--r-s);
  background: var(--well);
  cursor: pointer;
}
.srow select {
  padding: 2px 4px;
  background: var(--well);
  border: 1px solid var(--line2);
  border-radius: var(--r-s);
  font-size: var(--fs-xs);
}
.more {
  margin: 6px 0 0 38px;
  color: var(--dim);
  font-size: var(--fs-xs);
}
.more::after {
  content: " ▾";
}
.more[aria-expanded=true]::after {
  content: " ▴";
}
.more:hover {
  color: var(--text);
}
.sigs {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
  max-height: 220px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.sigs li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: var(--fs-s);
}
.sigs span {
  flex: 1;
}
.sigs time {
  color: var(--dim);
  font-size: var(--fs-xs);
}
.btn {
  padding: 5px 12px;
  border: 1px solid var(--accent-lo);
  border-radius: var(--r-m);
  color: var(--accent);
  font-size: var(--fs-s);
  transition: background var(--ease), border-color var(--ease);
}
.btn:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.btn.solid {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-color: var(--accent);
  white-space: nowrap;
}
.btn.solid:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.x {
  min-width: 24px;
  height: 24px;
  border-radius: var(--r-s);
  color: var(--dim);
  font-size: 15px;
  padding: 0 5px;
}
.x:hover {
  color: var(--text);
  background: var(--raise);
}
.mform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mform .search {
  margin: 0;
  resize: vertical;
}
.mlv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mcard {
  padding: 10px 4px 12px;
  border-bottom: 1px solid var(--line);
}
.mcard.new {
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 10px;
}
.mcard.closed {
  opacity: .6;
}
.mh {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mcard p {
  margin: 6px 0;
  white-space: pre-wrap;
  color: var(--text2);
}
.mlvs {
  font-size: var(--fs-s);
  margin: 4px 0 6px;
}
.mact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.mact small {
  margin-right: auto;
}
.tape {
  flex: none;
  height: var(--tape-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: var(--fs-s);
}
.tkrun {
  display: flex;
  width: max-content;
  animation: tape calc(var(--n, 10) * 4s) linear infinite;
}
.tape:hover .tkrun,
.tape:focus-within .tkrun {
  animation-play-state: paused;
}
@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}
.tk {
  display: flex;
  align-items: center;
  gap: 7px;
  height: var(--tape-h);
  padding: 0 16px;
  white-space: nowrap;
  color: var(--text2);
  transition: background var(--ease);
}
.tk b {
  color: var(--text);
  font-weight: 600;
}
.tk:hover {
  background: var(--raise);
}
.tk:focus-visible {
  outline-offset: -2px;
}
.tkrun > small {
  padding: 0 14px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .mark .arm,
  .tkrun {
    animation: none;
  }
  .tape {
    overflow-x: auto;
    scrollbar-width: none;
  }
}
@media (max-width: 760px) {
  .top {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 6px 10px;
  }
  .brand {
    font-size: 18px;
  }
  .mark {
    width: 24px;
    height: 24px;
  }
  .symbox {
    gap: 10px;
    padding-left: 12px;
  }
  .symbox em {
    font-size: 16px;
  }
  .stats {
    flex: none;
    width: 100%;
    gap: 18px;
  }
  .body {
    flex-direction: column;
  }
  .chartbox {
    min-height: 40%;
  }
  .wm {
    bottom: 44px;
  }
  .side {
    width: auto;
    height: 46%;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .rail {
    width: auto;
    flex-direction: row;
    padding: 0 4px;
    gap: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tab,
  .fold {
    flex: 1;
    padding: 6px 0 5px;
  }
  .tab[aria-pressed=true]::before {
    left: 20%;
    right: 20%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .fold {
    margin-top: 0;
    flex: none;
    width: 44px;
  }
  .fold svg {
    transform: rotate(90deg);
  }
  .body.shut .fold svg {
    transform: rotate(-90deg);
  }
}
.xpct {
  position: absolute;
  right: 74px;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  padding: 1px 6px;
  border-radius: 3px;
  font: 600 11px/16px var(--sans, system-ui);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.xpct.up {
  background: var(--up, #2ebd85);
}
.xpct.dn {
  background: var(--dn, #f0525c);
}
.flash{outline:2px solid #ffd600;outline-offset:2px;transition:outline-color 1.5s}
.wtop{gap:10px;flex-wrap:wrap;row-gap:0}.wtop .wmode{font-size:12.5px;white-space:nowrap}
.optsw{display:inline-flex;align-items:center;gap:4px;margin-right:10px;font-size:12px;color:var(--dim);cursor:pointer}
.pwa{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:9999;display:flex;align-items:center;gap:10px;padding:10px 12px;background:#1a1f2e;border:1px solid #2c3346;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.5);color:#e7e2d4;font-size:13px}
.pwa img{width:36px;height:36px;border-radius:8px}
.pwa span{flex:1;display:flex;flex-direction:column;gap:2px}
.pwa small{color:#9aa0a6;font-size:11.5px}
.pwa-go{padding:7px 14px;border-radius:8px;background:#c8a15a;color:#10131c;font-weight:700}
.pwa-x{padding:4px 8px;color:#9aa0a6;font-size:15px}
.sigs li.gl{cursor:pointer}.sigs li.gl:hover{background:rgba(200,161,90,.08)}
.lag{font-size:11px;font-weight:600;margin-left:4px}.lag.ok{color:#ffd600}.lag.late{color:#9aa0a6;font-weight:400}
.cards{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:6px}.sc{padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:12.5px}.sc small{color:var(--dim);font-size:11.5px}.sc.on{border-color:#ffd600;background:rgba(255,214,0,.07)}.sc.on b{color:#ffd600}.sc.off{opacity:.55}
.acct{position:relative;margin-left:auto;flex:none}.acb{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--fg,#e7e2d4);font-size:12.5px;cursor:pointer}.acb:hover{border-color:var(--accent)}.acp{position:absolute;right:0;top:calc(100% + 6px);min-width:210px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 10px 30px rgba(0,0,0,.45);z-index:50;font-size:12.5px;display:grid;gap:6px}.acp[hidden]{display:none}.acp .h{font-weight:600}.acp .s{color:var(--dim,#9aa0a6);font-size:11.5px}.acp .out{color:#ef5350;text-decoration:none;margin-top:4px}
.ind.off,.card.off{opacity:.55}.na{display:block;font-style:normal;color:#ff9800;font-size:11px}
