@font-face {
  font-family: Inter;
  src: url(/inter.woff2);
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/manrope.woff2);
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  --bg: #0a0e16;
  --side: #0f141e;
  --panel: #121925;
  --edge: #232c3b;
  --ink: #f5f7fe;
  --muted: #9aa8bd;
  --blue: #568bff;
  --green: #42d5a1;
  --red: #ff7986;
  --hover: #192437;
  --active: #192c52;
  --rail: 220px;
  background: var(--bg);
  color: var(--ink);
  font:
    1rem/1.5 Inter,
    sans-serif;
  margin: 0;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}
body.light {
  --bg: #f3f6fb;
  --side: white;
  --panel: white;
  --edge: #dfe5ef;
  --ink: #101c32;
  --muted: #57677e;
  --blue: #285edd;
  --green: #007554;
  --red: #c52e47;
  --hover: #eff4fb;
  --active: #e6eeff;
  color-scheme: light;
}
a,
button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
button,
a {
  cursor: pointer;
  transition:
    background 0.16s,
    color 0.16s;
}
button,
.primary,
.secondary,
.white {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 9px 13px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 0.875rem;
}
button:hover,
.secondary:hover,
.stock:hover,
.holding:not(.labels):hover,
nav a:hover,
.bottom a:hover {
  background: var(--hover);
}
button:active {
  transform: scale(0.98);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--side);
  padding: 30px 18px 24px;
  border-right: 1px solid var(--edge);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 1.75rem Manrope;
  letter-spacing: -1.3px;
  padding: 0 14px;
}
nav {
  margin-top: 52px;
}
nav a,
.bottom button,
.bottom a {
  display: flex;
  gap: 14px;
  border-radius: 11px;
  padding: 14px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  justify-content: flex-start;
  margin: 6px 0;
  width: 100%;
}
nav .active,
nav .active:hover,
.selected,
.selected:hover {
  color: #83acff;
  background: var(--active);
}
.light .active,
.light .selected {
  color: var(--blue);
}
.bottom {
  margin-top: auto;
}
.bottom .account {
  border-top: 1px solid var(--edge);
  border-radius: 0;
  padding-top: 22px;
  overflow-wrap: anywhere;
}
main {
  margin-left: var(--rail);
  padding: 0 clamp(24px, 3vw, 56px) 28px;
  max-width: 1720px;
}
header,
.line,
.inline,
.identity,
.tools,
.search,
.badge,
.challenge small,
.tabs,
.searchbtn {
  display: flex;
  align-items: center;
  gap: 12px;
}
header,
.line {
  justify-content: space-between;
}
header {
  min-height: 100px;
}
header h2 {
  font-size: 1.55rem;
  letter-spacing: -0.8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: clamp(2.1rem, 3.1vw, 3.22rem);
  letter-spacing: -0.055em;
  line-height: 1.25;
  margin: 6px 0 11px;
  font-weight: 750;
}
h1 em {
  font-size: 0.68em;
  font-style: normal;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.035em;
  font-weight: 730;
}
h3 {
  font-size: 1rem;
  margin: 22px 0 12px;
}
.muted,
p,
small,
footer,
.labels,
.tabs button:not(.selected) {
  color: var(--muted);
}
small {
  display: block;
  font-size: 0.83rem;
  margin-top: 2px;
}
p {
  margin: 14px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.muted {
  font-size: 0.94rem;
  font-weight: 500;
}
.demo {
  background: #fbb24b14;
  color: #ffbf6d;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 7px;
  font-weight: 550;
}
.light .demo {
  color: #854707;
}
.searchbtn,
.round,
.secondary,
.search {
  background: var(--panel);
  border: 1px solid var(--edge);
}
.round,
.avatar {
  height: 41px;
  width: 41px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
}
.round {
  color: var(--muted);
}
.searchbtn {
  color: var(--muted);
  font-weight: 450;
  width: clamp(210px, 22vw, 340px);
  justify-content: flex-start;
  height: 42px;
  border-radius: 12px;
}
kbd {
  margin-left: auto;
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 0 7px;
}
.primary {
  background: #346cf4;
  color: white;
  padding: 11px 17px;
}
.primary:hover {
  background: #2359da;
}
.secondary {
  padding: 10px 16px;
}
.avatar {
  background: #4a68ee;
  color: white;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(340px, 1fr);
  gap: 22px;
}
section,
.challenge {
  border: 1px solid var(--edge);
  border-radius: 19px;
  padding: 24px 26px;
  background: var(--panel);
  margin: 0 0 22px;
  min-width: 0;
}
.columns > div {
  min-width: 0;
}
.graphhead {
  align-items: flex-start;
}
.tabs {
  border-radius: 10px;
  gap: 1px;
  background: var(--bg);
  padding: 4px;
}
.tabs button {
  padding: 6px 9px;
  font-size: 0.8rem;
  border-radius: 7px;
  white-space: nowrap;
}
.filters {
  width: fit-content;
  margin-bottom: 18px;
}
.filters button {
  padding: 7px 18px;
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}
.badge {
  border-radius: 7px;
  padding: 4px 8px;
  gap: 3px;
  font-size: 0.86rem;
  background: color-mix(in srgb, currentColor 11%, transparent);
  font-weight: 620;
}
.delta {
  font-size: 0.9rem;
  font-weight: 500;
}
.plot {
  position: relative;
  margin: 38px 13px 50px 60px;
  height: clamp(180px, 23vh, 290px);
  cursor: crosshair;
  touch-action: pan-y;
}
.plot > svg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gridline {
  position: absolute;
  width: 100%;
  border-top: 1px dashed var(--edge);
}
.gridline span,
.dates {
  color: var(--muted);
  font-size: 0.76rem;
}
.gridline span {
  position: absolute;
  right: calc(100% + 13px);
  transform: translateY(-50%);
}
.dates {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: calc(100% + 12px);
  width: 100%;
}
.endpoint {
  position: absolute;
  right: 0;
  transform: translate(50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #467cff33;
}
.cursor {
  height: 100%;
  border-left: 1px solid var(--muted);
  position: absolute;
  pointer-events: none;
}
.cursor output {
  display: block;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--edge);
  padding-top: 20px;
}
.metrics > div + div {
  border-left: 1px solid var(--edge);
  padding-left: clamp(15px, 2vw, 38px);
}
.metrics b {
  display: block;
  margin-top: 5px;
  font-size: 1.07rem;
  letter-spacing: -0.025em;
}
b {
  font-weight: 600;
}
.logo {
  width: 39px;
  height: 39px;
  border-radius: 50%;
}
.identity {
  gap: 11px;
  min-width: 0;
}
.identity > div {
  min-width: 0;
}
.identity b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.93rem;
}
.stock,
.holding {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--edge);
  padding: 17px 0;
  gap: 10px;
  font-size: 0.9rem;
}
.stock {
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: space-between;
}
.stock:last-child,
.holding:last-child {
  border: none;
}
.stock:last-child {
  padding-bottom: 6px;
}
.stock > div {
  overflow-wrap: anywhere;
}
.price {
  text-align: right;
  min-width: 95px;
}
.price small {
  font-weight: 550;
}
.spark {
  width: clamp(43px, 4.3vw, 82px);
}
.line .round {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.result .stock {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
}
.result {
  border-bottom: 1px solid var(--edge);
}
.favorite {
  color: #ffb941;
}
.favorite svg {
  fill: currentColor;
}
.switch {
  gap: 24px;
  justify-content: flex-start;
  border-bottom: 1px solid var(--edge);
}
.switch button {
  border-radius: 0;
  padding: 0 0 15px;
  font: 650 1.02rem Manrope;
  color: var(--muted);
}
.switch .current {
  color: var(--ink);
  box-shadow: 0 2px var(--blue);
}
.holding {
  grid-template-columns: minmax(124px, 2fr) 0.5fr 1fr 1.1fr 0.8fr;
  text-align: right;
  letter-spacing: -0.02em;
}
.holding > :first-child {
  text-align: left;
}
.labels {
  font-size: 0.8rem;
  padding: 14px 0;
}
.holding + p {
  font-size: 0.86rem;
}
.challenge {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background: #19264b;
  color: white;
  min-height: 207px;
  display: flex;
  align-items: center;
}
.mountain,
.challenge:before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.challenge:before {
  content: "";
  background: linear-gradient(90deg, #14234dfc, #182959b8 40%, transparent 74%);
  z-index: -1;
}
.challenge small {
  color: #dbe8ff;
  font-weight: 550;
  gap: 6px;
}
.challenge h2 {
  margin-top: 13px;
  font-size: 1.28rem;
  max-width: 65%;
}
.challenge > div {
  width: 100%;
}
.challenge p {
  font-size: 0.875rem;
  margin: 3px 0 18px;
  color: #e2ecff;
}
.white {
  background: white;
  color: #12234b;
}
.white:hover {
  background: #e1ecff;
}
.empty {
  text-align: center;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 46px 10px;
}
footer {
  font-size: 0.81rem;
  text-align: center;
  margin-top: 12px;
}
footer button,
.text {
  color: var(--blue);
}
dialog {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 26px;
  width: min(94vw, 485px);
  max-height: 88dvh;
}
dialog::backdrop {
  background: #030714b8;
  backdrop-filter: blur(6px);
}
dialog > .line:first-child {
  margin-bottom: 18px;
}
input,
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--edge);
  width: 100%;
  padding: 12px;
  border-radius: 9px;
  font-size: 1rem;
  margin-top: 5px;
}
label {
  font-size: 0.93rem;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
form {
  display: grid;
  gap: 16px;
  margin: 20px 0 10px;
}
.search {
  padding: 0 12px;
  border-radius: 11px;
}
.search input {
  margin: 0;
  background: none;
  border: 0;
}
.answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
}
.answer input {
  width: auto;
  margin: 0;
}
.actionbar > * {
  flex: 1;
}
.actionbar {
  margin-top: 22px;
}
#err {
  color: var(--red);
  margin-bottom: 0;
}
#err:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  color: var(--bg);
  background: var(--ink);
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: none;
  z-index: 10;
  width: max-content;
  max-width: 95vw;
}
#toast.show {
  opacity: 1;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 36px 0;
}
.podium div {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 30%;
  min-width: 0;
  text-align: center;
}
.podium div:first-child {
  order: 2;
}
.podium div:nth-child(3) {
  order: 3;
}
.podium b {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.podium strong {
  background: linear-gradient(var(--active), transparent);
  border-radius: 12px 12px 0 0;
  height: 80px;
  padding: 13px 0;
  width: 100%;
}
.podium div:first-child strong {
  height: 115px;
  color: var(--blue);
}
.lesson {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  text-align: left;
}
.lesson span {
  margin-left: auto;
  color: var(--blue);
}
progress {
  width: 100%;
  height: 10px;
  accent-color: var(--blue);
  margin: 12px 0 18px;
}
@media (max-width: 1300px) {
  body {
    --rail: 188px;
  }
  aside {
    padding: 26px 10px;
  }
  main {
    padding: 0 24px 24px;
  }
  .columns {
    gap: 16px;
    grid-template-columns: minmax(0, 1.9fr) minmax(315px, 1fr);
  }
  section,
  .challenge {
    padding: 20px;
    margin-bottom: 16px;
  }
  .tabs button {
    padding: 6px 7px;
  }
  .holding {
    font-size: 0.83rem;
  }
}
@media (max-width: 1150px) {
  body {
    --rail: 78px;
  }
  .brand {
    font-size: 0;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  nav a,
  .bottom button,
  .bottom a {
    font-size: 0;
    gap: 0;
    justify-content: center;
  }
  nav span {
    display: none;
  }
  .graphhead {
    flex-wrap: wrap;
  }
  .holding {
    grid-template-columns: 2fr 0.6fr 1fr 1fr;
  }
  .holding > :nth-child(3) {
    display: none;
  }
}
@media (max-width: 970px) {
  .columns {
    display: block;
  }
  .graphhead {
    flex-wrap: nowrap;
  }
  .spark {
    width: 78px;
  }
  .challenge {
    background: #15264d;
  }
  .mountain {
    width: 410px;
    left: auto;
  }
  .challenge:before {
    background: linear-gradient(
      90deg,
      #15264d calc(100% - 410px),
      transparent 90%
    );
  }
  .searchbtn {
    width: 41px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .searchbtn span,
  kbd {
    display: none;
  }
}
@media (max-width: 760px) {
  body {
    --rail: 0px;
  }
  aside {
    position: static;
    padding: 0;
    border: 0;
  }
  .brand,
  .bottom {
    display: none;
  }
  nav {
    display: flex;
    position: fixed;
    bottom: 0;
    z-index: 5;
    width: 100%;
    background: var(--side);
    border-top: 1px solid var(--edge);
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
    margin: 0;
  }
  nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    flex: 1;
    font-size: 0.75rem;
    padding: 9px 0;
    min-width: 0;
  }
  nav a.active {
    background: none;
    color: var(--blue);
  }
  nav span {
    display: block;
  }
  main {
    padding: 0 14px calc(90px + env(safe-area-inset-bottom));
  }
  header {
    min-height: 82px;
  }
  header > .inline:first-child {
    display: block;
    min-width: 0;
  }
  header h2 {
    font-size: 1.2rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .demo {
    font-size: 0.75rem;
    background: transparent;
    padding: 0;
  }
  header .tools {
    gap: 7px;
  }
  header .primary {
    padding: 10px;
    font-size: 0.82rem;
  }
  .tools > *:not(.primary) {
    width: 36px;
    height: 36px;
  }
  .graphhead {
    flex-wrap: wrap;
  }
  .graphhead .tabs {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }
  .graphhead .tabs button {
    flex: 1;
  }
  section,
  .challenge {
    padding: 17px;
    border-radius: 16px;
  }
  h1 {
    font-size: 2.15rem;
  }
  .metrics > div + div {
    padding-left: 11px;
  }
  .metrics b {
    font-size: 0.88rem;
  }
  .metrics small {
    font-size: 0.75rem;
  }
  .metrics {
    grid-template-columns: 1.25fr 0.85fr 1fr;
  }
  .plot {
    margin-left: 55px;
    margin-top: 28px;
    height: 176px;
  }
  .dates span:nth-child(even):not(:last-child) {
    display: none;
  }
  .switch {
    gap: 17px;
  }
  .switch button {
    font-size: 0.94rem;
  }
  .holding {
    grid-template-columns: minmax(0, 1fr) auto 22%;
  }
  .holding > :nth-child(2) {
    display: none;
  }
  .stock {
    gap: 6px;
  }
  .identity b {
    font-size: 0.85rem;
  }
  .identity {
    gap: 8px;
  }
  .logo {
    width: 33px;
    height: 33px;
  }
  .spark {
    width: 46px;
  }
  .result .spark {
    display: none;
  }
  .price {
    min-width: 84px;
    font-size: 0.84rem;
  }
  .line {
    flex-wrap: wrap;
  }
  .result {
    flex-wrap: nowrap;
  }
  .challenge h2 {
    max-width: 57%;
  }
  .mountain {
    width: 100%;
  }
  .challenge:before {
    background: linear-gradient(
      90deg,
      #14234dec,
      #1829599c 43%,
      transparent 78%
    );
  }
  dialog {
    padding: 18px;
  }
  .lesson {
    font-size: 0.82rem;
  }
  .podium {
    font-size: 0.8rem;
  }
  .podium strong {
    font-size: 0.76rem;
  }
  .stock > div:first-child {
    min-width: 0;
  }
  footer {
    line-height: 1.8;
  }
}
@media (max-width: 405px) {
  .spark {
    display: none;
  }
  .metrics b {
    font-size: 0.79rem;
  }
  .metrics > div + div {
    padding-left: 6px;
  }
  .metrics small {
    font-size: 0.74rem;
  }
  .holding {
    gap: 5px;
  }
  .switch {
    gap: 12px;
  }
  .switch button {
    font-size: 0.86rem;
  }
  nav a {
    font-size: 0.69rem;
  }
  .delta {
    font-size: 0.8rem;
  }
  .plot {
    margin-left: 46px;
  }
  .gridline span {
    font-size: 0.72rem;
    right: calc(100% + 6px);
  }
  .challenge h2 {
    max-width: 62%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.shock {
  margin: 18px 0 6px;
}
#shockRange {
  accent-color: var(--blue);
  padding: 0;
  margin: 0;
}
#shockResult h3 {
  font-size: 1.22rem;
}
#shockResult p,
.comparison p {
  font-size: 0.9rem;
}
.comparison .line {
  padding: 9px 0;
  border-bottom: 1px solid var(--edge);
}
.columns > div:nth-child(2) .identity b {
  white-space: normal;
  line-height: 1.22;
}
.columns > div:nth-child(2) .stock {
  gap: 7px;
}
.columns > div:nth-child(2) .spark {
  width: clamp(38px, 3.5vw, 65px);
}
.columns > div:nth-child(2) .identity {
  gap: 8px;
}
@media (min-width: 970px) and (max-width: 1360px) {
  .columns > div:nth-child(2) .spark {
    display: none;
  }
}
@media (max-width: 370px) {
  .tools {
    gap: 4px;
  }
  header {
    gap: 3px;
  }
  header h2 {
    font-size: 1.04rem;
  }
  .demo {
    font-size: 0.71rem;
  }
  .metrics {
    grid-template-columns: 1.3fr 0.8fr 1fr;
  }
  .metrics small {
    font-size: 0.69rem;
  }
  .metrics b {
    font-size: 0.73rem;
  }
  .holding .logo {
    display: none;
  }
}
