/* Общая оболочка рабочих страниц деска.
   Токены и типографика взяты у донора один в один:
   ZentryScreamer для заголовков, Roboto Mono для всего остального,
   accent #EDFF66, purple #5542FF, текст #DFDFF2, база 10px. */

@font-face {
  font-display: swap;
  font-family: ZentryScreamer;
  font-style: normal;
  font-weight: 500;
  src: url(/fonts/zentry/ZENTRY-Regular.woff2) format("woff2");
}

:root {
  --accent: #edff66;
  --purple: #5542ff;
  --fg: #dfdff2;
  --bg: #000;
  --red: #ff264e;
  --orange: #ff6f2f;
  --line: rgba(223, 223, 242, 0.14);
  --line-strong: rgba(223, 223, 242, 0.3);
  --muted: rgba(223, 223, 242, 0.45);
  --panel: rgba(223, 223, 242, 0.035);
  --sideMargin: 1.6rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 2.6666666667vw;
  font-synthesis: none;
  background: var(--bg);
}

@media only screen and (min-width: 769px) {
  html {
    font-size: 0.625vw;
  }
  :root {
    --sideMargin: 4rem;
  }
}

@media only screen and (min-width: 769px) and (min-width: 2000px) {
  html {
    font-size: 12px;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: 8rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto Mono", "Helvetica Neue", monospace;
  font-feature-settings: "ss02" on;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media only screen and (min-width: 769px) {
  body {
    font-size: 1.6rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input,
select {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  outline: none;
}

.caption {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: ZentryScreamer, "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

/* ── шапка ───────────────────────────────────────────────────────── */
.appNav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.6rem var(--sideMargin);
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.appNav__brand {
  font-family: ZentryScreamer, "Helvetica Neue", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.appNav__links {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.appNav__links::-webkit-scrollbar {
  display: none;
}

.appNav__link {
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.appNav__link:hover {
  color: var(--fg);
  border-color: var(--line);
}

.appNav__link.is-active {
  color: #000;
  background: var(--fg);
  border-color: var(--fg);
}

/* ── страница ────────────────────────────────────────────────────── */
.page {
  padding: 3.2rem var(--sideMargin) 4rem;
  max-width: 168rem;
  margin: 0 auto;
}

.pageHead {
  display: flex;
  align-items: flex-end;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.pageHead__title {
  font-family: ZentryScreamer, "Helvetica Neue", sans-serif;
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.82;
  text-transform: uppercase;
  margin: 0.8rem 0 0;
}

@media only screen and (min-width: 769px) {
  .pageHead__title {
    font-size: 8.8rem;
  }
}

.pageHead__meta {
  margin-left: auto;
  text-align: right;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: baseline;
}

.dot.is-off {
  background: var(--red);
}

/* ── панели ──────────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--panel);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--line);
}

.panel__body {
  padding: 2rem;
}

/* ── таблица рынков ──────────────────────────────────────────────── */
.tools {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 24rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.search input {
  width: 100%;
  font-size: 1.3rem;
}

.search input::placeholder {
  color: var(--muted);
}

.chip {
  padding: 1.1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.chip.is-active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.tableWrap {
  overflow-x: auto;
}

table.mk {
  width: 100%;
  min-width: 72rem;
  border-collapse: collapse;
}

table.mk th {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

table.mk th:first-child,
table.mk td:first-child {
  text-align: left;
}

table.mk th.is-sorted {
  color: var(--accent);
}

table.mk td {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(223, 223, 242, 0.06);
  text-align: right;
  white-space: nowrap;
  font-size: 1.3rem;
}

table.mk tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

table.mk tbody tr:hover {
  background: rgba(223, 223, 242, 0.045);
}

.sym {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sym__mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 auto;
  border-radius: 0.8rem;
  background: rgba(85, 66, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sym__name {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.3rem;
  max-width: 32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag.is-deep {
  color: var(--accent);
  border-color: rgba(237, 255, 102, 0.35);
}

.num {
  font-variant-numeric: tabular-nums;
}

.state {
  padding: 6rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.3rem;
}

.state.is-error {
  color: var(--red);
}
