.tests-page {
  --tests-bg: #030814;
  --tests-panel: rgba(7, 17, 33, 0.92);
  --tests-soft: rgba(14, 31, 56, 0.72);
  --tests-line: rgba(113, 174, 255, 0.18);
  --tests-line-strong: rgba(113, 174, 255, 0.38);
  --tests-blue: #70b2ff;
  --tests-gold: #f1cb78;
  --tests-green: #5bdd9e;
  --tests-red: #ff8794;
  min-height: 100vh;
  color: #edf5ff;
  background:
    radial-gradient(circle at 75% 4%, rgba(37, 112, 229, 0.2), transparent 30%),
    radial-gradient(circle at 10% 34%, rgba(216, 168, 79, 0.1), transparent 28%),
    #020713;
}

.tests-page button,
.tests-page input {
  font: inherit;
}

.tests-header,
.tests-main {
  width: min(100% - 40px, 1420px);
  margin-inline: auto;
}

.tests-header {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--tests-line);
}

.tests-brand,
.tests-brand span,
.tests-header nav,
.tests-header__actions,
.tests-hero__actions,
.tests-mode-card > div:first-child,
.tests-access-panel,
.tests-section__head,
.tests-modal__actions,
.tests-result__actions,
.sim-runner__top,
.sim-progress > div,
.sim-actions {
  display: flex;
  align-items: center;
}

.tests-brand {
  display: inline-flex;
  gap: 10px;
  width: fit-content;
  justify-self: start;
  color: #fff;
  letter-spacing: 0.16em;
}

.tests-brand img {
  width: 38px;
  height: 38px;
}

.tests-brand span {
  display: grid;
  gap: 2px;
}

.tests-brand strong {
  font-size: 0.74rem;
}

.tests-brand small,
.tests-header nav a,
.tests-header__actions,
.tests-header__actions button {
  color: rgba(197, 216, 240, 0.7);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tests-header nav {
  gap: 26px;
  justify-self: center;
}

.tests-header__actions {
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  position: relative;
}

.tests-header__actions button {
  padding: 8px 0;
  border: 0;
  color: var(--tests-gold);
  background: transparent;
  cursor: pointer;
}

.tests-settings {
  position: relative;
}

.tests-settings__toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 10px !important;
  border: 1px solid var(--tests-line) !important;
  border-radius: 999px;
  color: #dceeff !important;
  background: rgba(50, 130, 240, 0.08) !important;
}

.tests-settings__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tests-settings__value {
  color: rgba(225, 236, 250, 0.84);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tests-settings__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  display: none;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--tests-line-strong);
  border-radius: 14px;
  background: rgba(4, 14, 29, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tests-settings__menu.is-open {
  display: grid;
  gap: 6px;
}

.tests-settings__menu strong {
  color: rgba(225, 236, 250, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tests-settings__option {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 10px;
  color: #edf5ff !important;
  text-align: left;
  background: transparent !important;
}

.tests-settings__option:hover,
.tests-settings__option.is-active {
  border-color: var(--tests-line) !important;
  background: rgba(50, 130, 240, 0.08) !important;
}

.tests-settings__option span {
  color: var(--tests-blue);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tests-settings__option small {
  display: block;
  color: rgba(197, 216, 240, 0.6);
  font-size: 0.64rem;
  letter-spacing: normal;
  text-transform: none;
}

.tests-main {
  display: grid;
  gap: 22px;
  padding: 34px 0 70px;
}

.tests-banner,
.tests-hero,
.tests-section,
.tests-access-panel,
.tests-result__card,
.sim-runner {
  border: 1px solid var(--tests-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(11, 29, 53, 0.9), rgba(3, 10, 21, 0.96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

.tests-banner {
  margin: 0;
  padding: 15px 18px;
  color: var(--tests-red);
  font-size: 0.84rem;
}

.tests-hero {
  display: grid;
  min-height: 470px;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
}

.tests-kicker,
.tests-section__head span,
.sim-runner__top span,
.sim-card-head span,
.sim-console__label {
  color: var(--tests-gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tests-hero h1,
.tests-result h1 {
  max-width: 830px;
  margin: 14px 0 0;
  color: #f4f8ff;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
  letter-spacing: -0.1em;
  line-height: 0.9;
}

.tests-hero h1 em {
  color: var(--tests-blue);
  font-style: normal;
}

.tests-hero p,
.tests-section__head p,
.tests-access-panel p,
.tests-modal p,
.tests-result p,
.sim-console p,
.sim-card-head p {
  color: rgba(192, 210, 234, 0.74);
  line-height: 1.65;
}

.tests-hero p {
  max-width: 720px;
  margin: 22px 0 0;
}

.tests-hero__actions,
.tests-result__actions,
.tests-modal__actions,
.sim-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tests-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}

.tests-button:hover {
  transform: translateY(-2px);
}

.tests-button--primary {
  color: #07111f;
  background: linear-gradient(135deg, #c99740, #f3d581);
  box-shadow: 0 14px 28px rgba(216, 168, 79, 0.16);
}

.tests-button--ghost {
  border-color: var(--tests-line-strong);
  color: #dceeff;
  background: rgba(50, 130, 240, 0.08);
}

.tests-button--danger {
  border-color: rgba(255, 105, 121, 0.36);
  color: #ffd4d9;
  background: rgba(255, 105, 121, 0.12);
}

.tests-button--disabled,
.tests-button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
  transform: none;
}

.tests-hero__terminal {
  padding: 18px;
  border: 1px solid var(--tests-line-strong);
  border-radius: 16px;
  background: rgba(1, 8, 18, 0.82);
}

.tests-hero__terminal > span,
.tests-hero__terminal > strong {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.tests-hero__terminal > strong {
  margin-top: 8px;
  color: var(--tests-green);
}

.tests-hero__terminal div {
  display: grid;
  height: 160px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 13px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--tests-line);
}

.tests-hero__terminal i,
.tests-hero__terminal b {
  display: block;
  height: 60%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--tests-green), rgba(91, 221, 158, 0.18));
}

.tests-hero__terminal b:nth-child(2) {
  height: 42%;
}

.tests-hero__terminal i:nth-child(3) {
  height: 84%;
}

.tests-hero__terminal b:nth-child(4) {
  height: 68%;
}

.tests-hero__terminal i:nth-child(5) {
  height: 96%;
}

.tests-hero__terminal small {
  display: block;
  margin-top: 14px;
  color: rgba(192, 210, 234, 0.58);
  font-size: 0.72rem;
  line-height: 1.5;
}

.tests-section {
  padding: clamp(18px, 3vw, 30px);
}

.tests-section__head,
.tests-access-panel {
  justify-content: space-between;
  gap: 20px;
}

.tests-section__head h2,
.tests-access-panel h2,
.tests-modal h2 {
  margin: 8px 0 0;
  color: #eff6ff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.07em;
}

.tests-section__head p,
.tests-access-panel p {
  max-width: 620px;
  margin: 0;
  font-size: 0.84rem;
}

.tests-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}

.tests-mode-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--tests-line);
  border-radius: 15px;
  background: rgba(3, 12, 25, 0.7);
}

.tests-mode-card--gold {
  border-color: rgba(240, 201, 120, 0.32);
}

.tests-mode-card > div:first-child {
  justify-content: space-between;
  gap: 8px;
  color: var(--tests-blue);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tests-mode-card > div:first-child b {
  color: var(--tests-gold);
  font-size: 0.57rem;
}

.tests-mode-card h3 {
  margin: 28px 0 0;
  color: #eff6ff;
  font-size: 1.42rem;
  letter-spacing: -0.05em;
}

.tests-mode-card p {
  margin: 12px 0 0;
  color: rgba(192, 210, 234, 0.66);
  font-size: 0.8rem;
  line-height: 1.6;
}

.tests-mode-card dl {
  display: grid;
  gap: 6px;
  margin: auto 0 14px;
}

.tests-mode-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(192, 210, 234, 0.68);
  font-size: 0.7rem;
}

.tests-mode-card dt,
.tests-mode-card dd {
  margin: 0;
}

.tests-mode-card dd {
  color: #e5effb;
}

.tests-access-panel {
  padding: 22px 26px;
}

.tests-access-panel strong {
  color: var(--tests-gold);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.tests-access-panel.is-approved {
  border-color: rgba(91, 221, 158, 0.36);
}

.tests-access-panel.is-approved strong {
  color: var(--tests-green);
}

.tests-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tests-stats article,
.tests-result__grid article {
  padding: 15px;
  border: 1px solid var(--tests-line);
  border-radius: 12px;
  background: rgba(3, 12, 25, 0.58);
}

.tests-stats strong,
.tests-stats span,
.tests-result__grid span,
.tests-result__grid b {
  display: block;
}

.tests-stats strong {
  color: var(--tests-gold);
  font-size: 1.8rem;
}

.tests-stats span,
.tests-result__grid span {
  margin-top: 4px;
  color: rgba(192, 210, 234, 0.56);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tests-history,
.tests-leaderboard {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  overflow-x: auto;
}

.tests-history-block {
  margin-top: 22px;
}

.tests-history-block h3,
.tests-review__head h2 {
  margin: 0;
  color: #eff6ff;
  font-size: 1.2rem;
}

.tests-history-private {
  padding: 13px 15px;
  margin-top: 14px;
  border: 1px solid rgba(113, 174, 255, 0.18);
  border-radius: 10px;
  background: rgba(3, 12, 25, 0.36);
}

.tests-history-private summary {
  color: rgba(213, 228, 247, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tests-history-private summary b {
  color: var(--tests-gold);
}

.tests-history-private > p {
  margin: 9px 0 0;
  color: rgba(192, 210, 234, 0.62);
  font-size: 0.76rem;
}

.tests-history__row,
.tests-leaderboard__row {
  display: grid;
  min-width: 700px;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--tests-line);
  border-radius: 10px;
  color: rgba(213, 228, 247, 0.82);
  font-size: 0.75rem;
  background: rgba(3, 12, 25, 0.54);
}

.tests-history__row {
  grid-template-columns: minmax(200px, 1fr) 130px 100px 100px;
}

.tests-leaderboard__row {
  grid-template-columns: 70px minmax(170px, 1fr) 90px 75px 100px 85px 100px;
}

.tests-history__head,
.tests-leaderboard__head {
  border-color: transparent;
  color: rgba(192, 210, 234, 0.52);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

.tests-leaderboard__row.is-current {
  border-color: rgba(91, 221, 158, 0.46);
  background: rgba(91, 221, 158, 0.07);
}

.tests-leaderboard__row em {
  color: var(--tests-gold);
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
}

.tests-empty {
  margin: 18px 0 0;
  padding: 15px;
  border: 1px dashed var(--tests-line-strong);
  border-radius: 10px;
  color: rgba(192, 210, 234, 0.62);
  font-size: 0.8rem;
}

.tests-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 5, 13, 0.78);
  backdrop-filter: blur(10px);
}

.tests-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 26px;
  border: 1px solid var(--tests-line-strong);
  border-radius: 18px;
  color: #edf5ff;
  background: #071321;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.tests-modal--small {
  width: min(100%, 620px);
}

.tests-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  color: rgba(213, 228, 247, 0.72);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.tests-modal label {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: rgba(213, 228, 247, 0.8);
  font-size: 0.74rem;
  font-weight: 800;
}

.tests-modal label small {
  color: rgba(192, 210, 234, 0.5);
  font-weight: 500;
}

.tests-modal input {
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--tests-line);
  border-radius: 8px;
  color: #edf5ff;
  background: rgba(1, 8, 18, 0.76);
}

.tests-form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--tests-red) !important;
  font-size: 0.74rem;
}

.tests-focus,
.tests-result {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 10px;
  background: #020713;
}

.tests-focus__frame {
  width: min(100%, 1880px);
}

.sim-runner {
  padding: 14px;
}

.tests-rotate-overlay {
  display: none;
}

.tests-rotate-overlay__content {
  display: grid;
  width: min(100%, 420px);
  justify-items: center;
  text-align: center;
}

.tests-rotate-overlay h2 {
  margin: 10px 0 0;
  color: #eff6ff;
  font-size: clamp(2.1rem, 10vw, 3rem);
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.tests-rotate-overlay p {
  max-width: 330px;
  margin: 12px 0 0;
  color: rgba(213, 228, 247, 0.72);
  font-size: 0.86rem;
  line-height: 1.6;
}

.tests-rotate-overlay__media {
  position: relative;
  display: grid;
  width: min(78vw, 290px);
  min-height: 210px;
  place-items: center;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(50, 130, 240, 0.14), transparent 68%);
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.28));
}

.tests-rotate-overlay__media video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  mix-blend-mode: screen;
}

.tests-rotate-overlay__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--tests-blue);
  text-align: center;
}

.tests-rotate-overlay__fallback[hidden] {
  display: none;
}

.tests-rotate-overlay__fallback i {
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
}

.tests-rotate-overlay__fallback b {
  color: rgba(213, 228, 247, 0.78);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tests-rotate-overlay__continue {
  padding: 8px 4px;
  margin-top: 18px;
  border: 0;
  color: rgba(213, 228, 247, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-color: rgba(213, 228, 247, 0.2);
  text-underline-offset: 4px;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}

.sim-runner__top,
.sim-progress > div {
  justify-content: space-between;
  gap: 12px;
}

.sim-runner__top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-runner__top h1 {
  margin: 5px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.07em;
}

.sim-progress {
  margin: 18px 0 12px;
}

.sim-progress strong,
.sim-progress span {
  color: rgba(213, 228, 247, 0.8);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-progress span {
  color: var(--tests-gold);
}

.sim-progress i {
  display: block;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(113, 174, 255, 0.12);
}

.sim-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tests-gold), var(--tests-blue));
  transition: width 180ms ease;
}

.sim-timer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
}

.sim-timer span {
  padding: 5px 7px;
  border: 1px solid var(--tests-line);
  border-radius: 6px;
  background: rgba(3, 12, 25, 0.58);
}

.sim-timer b {
  display: inline;
  height: auto;
  border-radius: 0;
  color: #edf5ff;
  background: transparent;
  transition: none;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 21vw, 340px);
  gap: 14px;
}

.sim-chart-card,
.sim-console {
  border: 1px solid var(--tests-line);
  border-radius: 15px;
  background: rgba(2, 9, 19, 0.78);
}

.sim-card-head,
.sim-console {
  padding: 14px;
}

.sim-card-head h2 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  letter-spacing: -0.06em;
}

.sim-card-head p,
.sim-console p {
  margin: 7px 0 0;
  font-size: 0.78rem;
}

.sim-chart-wrap {
  padding: 0 12px 12px;
}

.sim-chart-guide {
  margin: 0 0 8px;
  color: rgba(213, 228, 247, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
}

.sim-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--tests-line);
  border-radius: 12px;
  background: #030a14;
}

.sim-chart-wrap svg[data-sim-chart] {
  cursor: crosshair;
}

.sim-v2-chart__bg {
  fill: url("#sim-chart-bg");
}

.sim-v2-chart__grid line {
  stroke: rgba(109, 165, 231, 0.13);
  stroke-width: 1;
}

.sim-v2-chart__candle line,
.sim-v2-chart__candle rect {
  stroke-width: 2;
}

.sim-v2-chart--entry .sim-v2-chart__candle line,
.sim-v2-chart--entry .sim-v2-chart__candle rect {
  stroke-width: 0.7;
}

.sim-v2-chart__candle--up line,
.sim-v2-chart__candle--up rect {
  fill: rgba(76, 216, 151, 0.74);
  stroke: #5bdd9e;
}

.sim-v2-chart__candle--down line,
.sim-v2-chart__candle--down rect {
  fill: rgba(255, 111, 127, 0.74);
  stroke: #ff8794;
}

.sim-v2-chart__candle.is-hidden {
  opacity: 0;
}

.sim-v2-chart__zone {
  fill: rgba(240, 201, 120, 0.08);
  stroke: rgba(240, 201, 120, 0.32);
}

.sim-v2-chart__level line {
  stroke: rgba(240, 201, 120, 0.58);
  stroke-dasharray: 8 8;
}

.sim-v2-chart__level text,
.sim-v2-chart__axis text {
  fill: rgba(195, 215, 240, 0.58);
  font-size: 16px;
}

.sim-v2-chart__logic-zone {
  fill: rgba(91, 221, 158, 0.09);
  stroke: rgba(91, 221, 158, 0.62);
}

.sim-v2-chart__current-price line {
  stroke: rgba(112, 178, 255, 0.78);
  stroke-dasharray: 5 5;
}

.sim-v2-chart__current-price rect {
  fill: #2d7fff;
}

.sim-v2-chart__current-price text {
  fill: #fff;
  font-size: 15px;
  text-anchor: middle;
}

.sim-v2-chart__price-axis line {
  stroke: rgba(138, 184, 239, 0.28);
  stroke-width: 1;
}

.sim-v2-chart__price-axis text {
  fill: rgba(205, 224, 246, 0.62);
  font-size: 15px;
}

.sim-v2-chart__price-axis--entry line {
  stroke: rgba(167, 200, 239, 0.48);
  stroke-width: 0.72;
}

.tests-history__row.is-interrupted {
  color: rgba(192, 210, 234, 0.62);
}

.sim-v2-chart__price-axis--entry line.is-minor {
  stroke: rgba(139, 177, 222, 0.24);
}

.sim-v2-chart__price-axis--entry text {
  fill: rgba(211, 227, 247, 0.76);
  font-size: 3.6px;
  font-weight: 700;
}

.sim-v2-chart__price-axis--entry .sim-v2-chart__price-axis-rail {
  fill: rgba(3, 14, 29, 0.48);
  stroke: none;
}

.sim-v2-chart__price-axis--entry .sim-v2-chart__price-axis-title {
  fill: rgba(167, 200, 239, 0.58);
  font-size: 2.8px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.sim-v2-chart__grid--entry line.is-minor {
  stroke: rgba(109, 165, 231, 0.075);
}

.sim-v2-chart__future rect {
  fill: url("#sim-future-pattern");
}

.sim-v2-chart__future line {
  stroke: rgba(240, 201, 120, 0.56);
  stroke-dasharray: 7 7;
}

.sim-v2-chart__scenario-zone rect {
  stroke-width: 0.7;
}

.sim-v2-chart__scenario-zone text,
.sim-v2-chart__skip {
  fill: var(--tests-gold);
  font-size: 2.9px;
  font-weight: 900;
}

.sim-v2-chart__target-zone rect {
  stroke-width: 0.9;
  stroke-dasharray: 3 2;
}

.sim-v2-chart__target-zone text {
  fill: #eaf5ff;
  font-size: 3.4px;
  font-weight: 900;
}

.sim-v2-chart__target-zone--entry rect {
  fill: rgba(112, 178, 255, 0.14);
  stroke: rgba(112, 178, 255, 0.88);
}

.sim-v2-chart__target-zone--stop rect {
  fill: rgba(255, 135, 148, 0.12);
  stroke: rgba(255, 135, 148, 0.88);
}

.sim-v2-chart__skip rect {
  fill: rgba(241, 203, 120, 0.14);
  stroke: rgba(241, 203, 120, 0.72);
}

.sim-v2-chart__skip text {
  text-anchor: middle;
}

.sim-v2-chart__scenario-zone--demand rect {
  fill: rgba(91, 221, 158, 0.08);
  stroke: rgba(91, 221, 158, 0.46);
}

.sim-v2-chart__scenario-zone--supply rect,
.sim-v2-chart__scenario-zone--neutral rect {
  fill: rgba(240, 201, 120, 0.08);
  stroke: rgba(240, 201, 120, 0.46);
}

.sim-v2-chart__point-line > line,
.sim-v2-chart__point-link {
  stroke-width: 0.7;
  stroke-dasharray: 3 2;
}

.sim-v2-chart__point-line circle {
  fill: #071321;
  stroke-width: 1.1;
}

.sim-v2-chart__point-line--entry > line,
.sim-v2-chart__point-line--entry .sim-v2-chart__point-link,
.sim-v2-chart__point-line--entry circle {
  stroke: #70b2ff;
}

.sim-v2-chart__point-line--stop > line,
.sim-v2-chart__point-line--stop .sim-v2-chart__point-link,
.sim-v2-chart__point-line--stop circle {
  stroke: #ff8794;
}

.sim-v2-chart__point-line rect {
  fill: rgba(3, 10, 20, 0.96);
  stroke: rgba(113, 174, 255, 0.62);
  stroke-width: 0.4;
}

.sim-v2-chart__point-line--stop rect {
  stroke: rgba(255, 135, 148, 0.7);
}

.sim-v2-chart__point-line .sim-v2-chart__point-accent {
  fill: #70b2ff;
}

.sim-v2-chart__point-line--stop .sim-v2-chart__point-accent {
  fill: #ff8794;
}

.sim-v2-chart__point-title,
.sim-v2-chart__point-price {
  fill: #edf5ff;
  font-size: 3.2px;
  font-weight: 800;
}

.sim-v2-chart__point-price {
  fill: var(--tests-gold);
}

.sim-v2-chart__preview line {
  stroke: rgba(112, 178, 255, 0.92);
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
}

.sim-v2-chart__preview circle {
  fill: #071321;
  stroke: #70b2ff;
  stroke-width: 1;
}

.sim-v2-chart__preview rect {
  fill: rgba(6, 25, 47, 0.98);
  stroke: rgba(112, 178, 255, 0.9);
  stroke-width: 0.65;
}

.sim-v2-chart__preview text {
  fill: #edf5ff;
  font-size: 3.15px;
  font-weight: 900;
}

.sim-v2-chart__preview.is-stop line,
.sim-v2-chart__preview.is-stop circle {
  stroke: #ff8794;
}

.sim-v2-chart__preview.is-stop rect {
  stroke: rgba(255, 135, 148, 0.92);
}

.sim-answers {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.sim-answer {
  display: grid;
  min-height: 56px;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--tests-line);
  border-radius: 10px;
  color: #edf5ff;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.sim-answer i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-style: normal;
}

.sim-answer b,
.sim-answer small {
  display: block;
}

.sim-answer small {
  margin-top: 3px;
  color: rgba(192, 210, 234, 0.62);
  font-size: 0.68rem;
}

.sim-answer--buy.is-selected {
  border-color: rgba(91, 221, 158, 0.52);
  background: rgba(91, 221, 158, 0.08);
}

.sim-answer--sell.is-selected {
  border-color: rgba(255, 135, 148, 0.52);
  background: rgba(255, 135, 148, 0.08);
}

.sim-answer--skip.is-selected {
  border-color: rgba(241, 203, 120, 0.52);
  background: rgba(241, 203, 120, 0.08);
}

.sim-tools {
  margin-top: 15px;
}

.sim-tools__hint {
  margin-top: 7px !important;
  color: rgba(192, 210, 234, 0.58) !important;
  font-size: 0.7rem !important;
}

.sim-tools > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.sim-tool,
.sim-levels span {
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--tests-line);
  border-radius: 8px;
  color: rgba(213, 228, 247, 0.82);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.68rem;
}

.sim-tool.is-active {
  border-color: var(--tests-line-strong);
  color: #fff;
  background: rgba(72, 145, 244, 0.1);
}

.sim-levels span,
.sim-levels b {
  display: block;
}

.sim-levels b {
  margin-top: 5px;
  color: var(--tests-gold);
}

.sim-feedback {
  padding: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255, 135, 148, 0.34);
  border-radius: 10px;
  background: rgba(255, 135, 148, 0.06);
}

.sim-feedback.is-correct {
  border-color: rgba(91, 221, 158, 0.34);
  background: rgba(91, 221, 158, 0.06);
}

.sim-feedback.is-partial {
  border-color: rgba(241, 203, 120, 0.38);
  background: rgba(241, 203, 120, 0.06);
}

.sim-feedback.is-timeout {
  border-color: rgba(255, 135, 148, 0.52);
}

.sim-feedback > strong {
  color: var(--tests-gold);
}

.sim-feedback__score {
  display: flex;
  justify-content: space-between;
  color: rgba(213, 228, 247, 0.74);
  font-size: 0.74rem;
}

.sim-feedback p {
  font-size: 0.75rem;
}

.sim-feedback p b {
  color: #edf5ff;
}

.sim-feedback__checks {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 10px 0;
  list-style: none;
}

.sim-feedback__checks li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 6px;
  color: rgba(213, 228, 247, 0.78);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.035);
}

.sim-feedback__checks li.is-correct b {
  color: var(--tests-green);
}

.sim-feedback__checks li.is-wrong b {
  color: var(--tests-red);
}

.sim-actions--primary {
  justify-content: flex-end;
  margin-top: 12px;
}

.tests-result__card {
  width: min(100%, 1160px);
  padding: clamp(22px, 4vw, 44px);
}

.tests-result h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.tests-result__score {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
}

.tests-result__score strong {
  color: var(--tests-gold);
  font-size: 5rem;
  letter-spacing: -0.1em;
  line-height: 1;
}

.tests-result__score span {
  color: rgba(213, 228, 247, 0.7);
}

.tests-result__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.tests-result__grid b {
  margin-top: 7px;
}

.tests-result aside {
  padding: 15px;
  margin-top: 18px;
  border: 1px solid rgba(241, 203, 120, 0.24);
  border-radius: 10px;
  background: rgba(241, 203, 120, 0.05);
}

.tests-result aside p {
  margin: 7px 0 0;
}

.tests-review {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tests-review__head h2 {
  margin-top: 7px;
}

.tests-review__head p {
  margin: 7px 0 0;
  font-size: 0.8rem;
}

.tests-review__round {
  padding: 14px;
  border: 1px solid var(--tests-line);
  border-radius: 12px;
  background: rgba(3, 12, 25, 0.58);
}

.tests-review__round summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.tests-review__round summary::-webkit-details-marker {
  display: none;
}

.tests-review__round summary span,
.tests-review__round summary b {
  color: var(--tests-gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tests-review__body {
  margin-top: 10px;
}

.tests-review__chart svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--tests-line);
  border-radius: 10px;
  background: #030a14;
}

.tests-review__details p {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.tests-review__details p b {
  color: #edf5ff;
}

.tests-review__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.tests-review__checks li {
  padding: 5px 7px;
  border-radius: 6px;
  color: rgba(213, 228, 247, 0.76);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.035);
}

.tests-review__checks .is-correct b {
  color: var(--tests-green);
}

.tests-review__checks .is-wrong b {
  color: var(--tests-red);
}

@media (max-width: 1120px) {
  .tests-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sim-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tests-header {
    grid-template-columns: 1fr auto;
  }

  .tests-header nav {
    display: none;
  }

  .tests-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tests-section__head,
  .tests-access-panel {
    display: grid;
  }
}

@media (max-width: 560px) {
  .tests-header,
  .tests-main {
    width: min(100% - 20px, 1420px);
  }

  .tests-header__actions > span {
    display: none;
  }

  .tests-header__actions > button {
    display: none;
  }

  .tests-settings__value {
    display: none;
  }

  .tests-settings__toggle {
    min-width: 38px;
    justify-content: center;
    padding-inline: 0 !important;
  }

  .tests-main {
    padding-top: 18px;
  }

  .tests-hero {
    min-height: auto;
    padding: 22px;
  }

  .tests-hero > div,
  .tests-hero__terminal,
  .tests-section,
  .tests-mode-card,
  .tests-access-panel {
    min-width: 0;
  }

  .tests-hero h1 {
    font-size: 2.75rem;
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .tests-hero__actions {
    display: grid;
  }

  .tests-hero__actions .tests-button {
    width: 100%;
  }

  .tests-mode-grid,
  .tests-stats,
  .tests-result__grid {
    grid-template-columns: 1fr;
  }

  .tests-mode-card {
    min-height: 0;
  }

  .tests-access-panel,
  .tests-section,
  .sim-runner {
    padding: 14px;
  }

  .tests-focus {
    padding: 6px;
  }

  .sim-runner__top {
    display: grid;
  }

  .sim-runner__top .tests-button {
    width: 100%;
  }

  .tests-result__score strong {
    font-size: 4rem;
  }

  .tests-result {
    display: block;
    padding: 6px;
  }

  .tests-result__card {
    padding: 17px;
    border-radius: 15px;
  }

  .tests-result h1 {
    font-size: 2.75rem;
  }

  .tests-review {
    margin-top: 20px;
  }

  .tests-review__round {
    padding: 11px;
  }

  .tests-review__round summary {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
  }

  .tests-review__round summary span {
    grid-column: 1 / -1;
  }
}

@media (pointer: coarse) and (orientation: portrait) and (max-width: 600px) {
  .tests-rotate-overlay {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background:
      radial-gradient(circle at 50% 42%, rgba(26, 80, 151, 0.18), transparent 38%),
      rgba(0, 6, 15, 0.78);
    backdrop-filter: blur(22px) saturate(120%);
  }

  .tests-rotate-overlay.is-dismissed {
    display: none;
  }
}

@media (pointer: coarse) and (max-width: 1000px) {
  .tests-focus {
    padding-bottom: 66px;
  }

  .sim-actions--primary {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    margin: 0;
    border-top: 1px solid var(--tests-line-strong);
    background: rgba(3, 10, 21, 0.96);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
  }

  .sim-actions--primary .tests-button {
    min-height: 46px;
  }

  .sim-chart-wrap svg[data-sim-chart] {
    touch-action: none;
  }

  .sim-v2-chart__point-line > line,
  .sim-v2-chart__point-link,
  .sim-v2-chart__preview line {
    stroke-width: 1.2;
  }

  .sim-v2-chart__point-line circle,
  .sim-v2-chart__preview circle {
    stroke-width: 1.5;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  .tests-focus {
    display: block;
    overflow: auto;
    min-height: 100dvh;
    padding: 3px 3px 66px;
  }

  .tests-focus__frame {
    width: 100%;
    min-width: 0;
  }

  .sim-runner {
    min-width: 0;
    padding: 6px;
    border-radius: 12px;
  }

  .sim-runner__top {
    min-height: 34px;
  }

  .sim-runner__top h1 {
    margin-top: 2px;
    font-size: 1.12rem;
  }

  .sim-runner__top .tests-button {
    min-height: 32px;
    padding-inline: 10px;
  }

  .sim-progress {
    margin: 5px 0 6px;
  }

  .sim-progress i {
    height: 4px;
    margin-top: 5px;
  }

  .sim-timer {
    gap: 4px;
    margin-top: 4px;
  }

  .sim-timer span {
    padding: 3px 5px;
    font-size: 0.58rem;
  }

  .sim-layout {
    grid-template-columns: minmax(0, 1fr) clamp(190px, 31vw, 235px);
    gap: 6px;
  }

  .sim-card-head,
  .sim-console {
    padding: 7px;
  }

  .sim-card-head h2 {
    margin-top: 4px;
    font-size: 1rem;
  }

  .sim-card-head p,
  .sim-console p {
    display: none;
  }

  .sim-chart-wrap {
    padding: 0 6px 6px;
  }

  .sim-chart-guide {
    display: none;
  }

  .sim-console {
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
  }

  .sim-answers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
  }

  .sim-answer {
    display: grid;
    min-height: 43px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 5px 3px;
    text-align: center;
  }

  .sim-answer i {
    display: none;
  }

  .sim-answer small {
    display: none;
  }

  .sim-tools {
    margin-top: 8px;
  }

  .sim-tools__hint {
    display: none;
  }

  .sim-tools > div {
    gap: 5px;
    margin-top: 5px;
  }

  .sim-tool,
  .sim-levels span {
    min-height: 36px;
    padding: 6px;
    font-size: 0.61rem;
  }

  .sim-feedback {
    padding: 8px;
    margin-top: 8px;
  }

  .sim-feedback p {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.35;
  }
}
