aside {
  overflow-y: auto;
  scrollbar-width: thin;
}
nav {
  margin-top: 26px;
}
nav a,
.railMore a,
.bottom a,
.bottom button {
  padding: 11px 14px;
  margin: 3px 0;
}
.railMore {
  border-top: 1px solid var(--edge);
  margin: 14px 0;
  padding-top: 14px;
}
.railMore a,
.directory a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 550;
  font-size: 0.94rem;
  border-radius: 10px;
}
.railMore a:hover,
.directory a:hover,
.chosen,
.directory .active,
.railMore .active {
  color: var(--blue);
  background: var(--active);
}
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.directory a {
  padding: 13px 10px;
}
.deck,
.actions,
.notify,
.award {
  display: flex;
  align-items: center;
  gap: 10px;
}
.deck,
.actions {
  flex-wrap: wrap;
}
.deck {
  justify-content: space-between;
  margin: -4px 0 20px;
  padding: 10px 14px;
  background: var(--side);
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.deck .inline {
  flex-wrap: wrap;
  min-width: 0;
  gap: 9px;
}
.wallet {
  overflow-wrap: anywhere;
  text-align: left;
}
.quiet {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--muted);
  padding: 6px;
}
.actions {
  margin: 14px 0 4px;
  gap: 7px;
}
.actions button,
.actions a {
  font-size: 0.875rem;
}
.notify {
  position: relative;
  justify-content: center;
}
.notify i {
  position: absolute;
  top: 4px;
  right: 3px;
  border-radius: 50%;
  background: var(--blue);
  width: 9px;
  height: 9px;
}
.sr {
  position: absolute;
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tools {
  gap: 9px;
}
.tools .searchbtn {
  width: clamp(182px, 18vw, 340px);
}
.datum {
  padding: 10px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 0.93rem;
  flex-wrap: wrap;
  gap: 6px;
}
.datum > b {
  text-align: right;
}
.line > * {
  min-width: 0;
}
.accountrow {
  justify-content: space-between;
  padding: 14px 8px;
}
.accountrow div:last-child {
  text-align: right;
}
.accountrow div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.accountrow small {
  font-size: 0.8rem;
}
.tiles,
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.pair {
  gap: 14px;
}
.tiles section {
  min-width: 0;
}
.tiles h2 {
  margin-bottom: 8px;
}
.casecard {
  padding: 30px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.casecard:after {
  content: "";
  position: absolute;
  right: -40px;
  top: -70px;
  width: 170px;
  height: 170px;
  border: 22px double var(--accent, #688fff);
  transform: rotate(-30deg);
  z-index: -1;
  opacity: 0.16;
  border-radius: 45%;
}
.c1 {
  --accent: #ff927c;
}
.c2 {
  --accent: #56d6b4;
}
.c3 {
  --accent: #d596fa;
}
.casecard h2 {
  font-size: 1.65rem;
  margin: 18px 0 5px;
}
article,
details {
  padding: 15px 0;
  border-bottom: 1px solid var(--edge);
}
article:last-child,
details:last-child {
  border: none;
}
article p {
  margin: 8px 0;
  white-space: pre-wrap;
}
article > small {
  margin: 4px 0 9px;
}
.post .post {
  margin: 12px 0 0 15px;
  padding: 10px 0 0 15px;
  border-left: 2px solid var(--edge);
}
.post button {
  font-size: 0.85rem;
  padding: 6px 9px;
}
.award {
  background: var(--active);
  padding: 10px;
  border-radius: 10px;
  color: var(--blue);
  font-size: 0.875rem;
}
summary {
  cursor: pointer;
  font-weight: 580;
}
summary:hover,
.datum a:hover {
  color: var(--blue);
}
form,
label,
select,
input,
section,
article,
.podium div,
.line h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
label {
  display: block;
}
label.answer {
  cursor: pointer;
}
form {
  gap: 13px;
}
.answer input {
  flex-shrink: 0;
}
.intro {
  background: #162650;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 78px);
  color: white;
}
.intro p,
.intro small {
  color: #c9dbff;
  max-width: 440px;
}
.intro h1 {
  max-width: 65%;
  line-height: 1.15;
  margin: 18px 0;
}
.intro .mountain {
  width: 55%;
  left: auto;
  opacity: 0.95;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.intro .secondary {
  background: #1d2e52;
  border-color: #53658f;
}
@media (max-width: 1150px) {
  .railMore a {
    justify-content: center;
  }
  .railMore span {
    display: none;
  }
  .tools .searchbtn {
    width: 42px;
    font-size: 0;
    gap: 0;
    justify-content: center;
  }
  .tools .searchbtn kbd,
  .tools .searchbtn span {
    display: none;
  }
  .tools .searchbtn {
    border-radius: 50%;
  }
}
@media (max-width: 760px) {
  .railMore {
    display: none;
  }
  aside {
    overflow: visible;
  }
  nav {
    margin: 0;
  }
  nav a {
    padding: 7px 0;
    margin: 0;
  }
  .tiles {
    display: block;
  }
  .deck {
    margin: 0 0 14px;
    gap: 4px;
    padding: 9px;
  }
  .deck > .inline {
    justify-content: space-between;
    width: 100%;
    gap: 4px;
  }
  .deck button,
  .deck a {
    font-size: 0.8rem;
    padding: 6px;
  }
  .deck small {
    font-size: 0.75rem;
  }
  .wallet {
    max-width: 100%;
  }
  .tools {
    gap: 5px;
  }
  .tools .searchbtn {
    width: 34px;
  }
  .tools .primary {
    padding: 9px 8px;
  }
  .tools .round {
    width: 32px;
    height: 32px;
  }
  .tools .notify {
    display: none;
  }
  .pair {
    gap: 8px;
  }
  .directory a {
    font-size: 0.84rem;
    padding: 10px 4px;
    gap: 7px;
  }
  .intro h1 {
    max-width: 100%;
  }
  .intro .mountain {
    width: 100%;
    opacity: 0.28;
  }
  .casecard {
    padding: 20px;
  }
  .datum {
    font-size: 0.84rem;
  }
  .post .post {
    margin-left: 3px;
    padding-left: 8px;
  }
  .accountrow {
    font-size: 0.81rem;
  }
  .award {
    font-size: 0.78rem;
  }
  .actions {
    gap: 5px;
  }
  .podium strong {
    overflow-wrap: normal;
  }
}
@media (max-width: 450px) {
  .tools [data-act="theme"] {
    display: none;
  }
  .tools .primary {
    font-size: 0.79rem;
  }
  .line h2 {
    font-size: 1.04rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .directory {
    grid-template-columns: 1fr 1fr;
  }
  .directory a {
    word-break: break-word;
  }
  .actions button,
  .actions a {
    padding: 8px;
  }
  .deck .wallet {
    max-width: 50%;
  }
}

.gridline span,
.dates span,
.cursor output,
.metrics b,
.price b {
  white-space: nowrap;
  overflow-wrap: normal;
}
.gridline span {
  width: max-content;
}
body:not(.light)
  :is(
    .chosen,
    .railMore .active,
    .directory .active,
    .award,
    .podium div:first-child strong
  ) {
  color: #99baff;
}
body.light
  :is(
    .chosen,
    .railMore .active,
    .directory .active,
    .award,
    .podium div:first-child strong
  ) {
  color: #1f50ba;
}
.deck small {
  white-space: nowrap;
}
.plot .dates {
  white-space: nowrap;
}
.stock .price {
  overflow-wrap: normal;
}
.plot .cursor {
  overflow-wrap: normal;
}
.podium strong {
  color: var(--ink);
}
.accountrow .green {
  color: var(--green);
}
.accountrow .red {
  color: var(--red);
}
.publicPage {
  max-width: 940px;
  margin: auto;
  padding: 0 20px 28px;
}
.publicPage a:hover {
  color: var(--blue);
}
.publicPage .primary:hover {
  color: white;
}
.publicPage .brand {
  font-size: 1.6rem;
  display: flex;
}
.fxButton {
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.79rem;
  padding: 8px 10px;
  font-weight: 700;
}
.screener,
.heat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(126px, 100%), 1fr));
  gap: 10px;
  margin: 10px 0;
}
.screener label {
  min-width: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.screener select {
  min-width: 0;
  max-width: 100%;
  padding: 9px;
  font-size: 0.85rem;
}
.pager {
  padding: 8px 0;
}
.pager button {
  font-size: 0.83rem;
  color: var(--ink);
}
.heat {
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 4px;
}
.heat a {
  display: grid;
  text-align: center;
  color: white;
  font-size: 0.8rem;
  gap: 3px;
  padding: 13px 3px;
  border-radius: 7px;
}
.heat a:hover {
  outline: 2px solid var(--blue);
}
.graphhead h1 {
  overflow-wrap: anywhere;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
@media (max-width: 550px) {
  header .tools .fxButton {
    width: auto;
    min-width: 36px;
    padding: 6px 4px;
    font-size: 0.71rem;
  }
  header {
    flex-wrap: wrap;
  }
  .graphhead h1 {
    font-size: 1.45rem;
  }
  .screener {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  header {
    gap: 9px;
    padding: 13px 0 16px;
    align-content: center;
  }
  header > .inline:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  header .demo {
    flex: none;
  }
  header .tools {
    width: 100%;
    gap: 8px;
  }
  header .tools .primary,
  header .tools .avatar {
    margin-left: auto;
  }
  header .tools .fxButton {
    min-width: 48px;
  }
}
.demoRoles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--panel);
}
.demoRoles small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.demoRoles .actions {
  margin: 0;
  gap: 6px;
}
.demoRoles button {
  font-size: 0.81rem;
  padding: 9px 13px;
}
.classBrand {
  border-left: 5px solid #568bff;
}
.classBrand.Forest {
  border-color: #42d5a1;
}
.classBrand.Plum {
  border-color: #c492fc;
}
.classBrand h1,
.reading h1 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  overflow-wrap: anywhere;
}
.reading {
  max-width: 780px;
  margin: auto;
  padding: 5vh 18px;
  line-height: 1.7;
}
.reading a {
  color: var(--blue);
}
.reading a.primary {
  color: white;
  display: inline-block;
}
fieldset {
  border: 1px solid var(--edge);
  border-radius: 12px;
  min-width: 0;
}
@media (max-width: 650px) {
  .demoRoles .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .demoRoles button {
    font-size: 0.76rem;
    min-width: 0;
    padding: 8px 4px;
  }
  .classBrand {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.tools .searchbtn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media print {
  body {
    background: white !important;
    color: #12202f !important;
    --ink: #12202f;
    --muted: #324456;
    --edge: #ced6de;
    --panel: white;
  }
  aside,
  header,
  .demoRoles,
  nav,
  footer,
  .actions,
  #toast,
  dialog {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
  section {
    border: none;
    box-shadow: none;
  }
}
