
:root {
  color-scheme: dark;
  --background: #0b1116;
  --rail: #0d151b;
  --panel: #121b22;
  --panel-deep: #10181f;
  --line: #27343e;
  --line-soft: #202d36;
  --text: #f2f7fa;
  --muted: #a3b4bf;
  --subtle: #8c9da9;
  --mint: #9df3d4;
  --mint-deep: #1c3a34;
  --gutter: clamp(24px, 3.05vw, 52px);
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font: 400 15px/1.55 "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:where(a, button, input):focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.skip {
  position: fixed;
  z-index: 5;
  inset: 10px auto auto 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #07241c;
  background: var(--mint);
  translate: 0 -160%;
}
.skip:focus { translate: 0; }

.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 17px 20px;
  background: var(--rail);
  border-right: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  align-self: flex-start;
  margin: 1px 10px 59px;
  border-radius: 8px;
}
.brand-mark {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  width: 41px;
  height: 41px;
  padding: 10px;
  border-radius: 12px;
  color: #0d332a;
  background: linear-gradient(155deg, #befde5, #79deb7);
  box-shadow: inset 0 0 0 1px #c6fbe59c, 0 4px 16px #47d49f19;
}
.brand-mark i { display: block; width: 4px; border-radius: 1.4px; background: currentColor; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 19px; }
.wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
}
.wordmark small {
  color: var(--subtle);
  font: 600 9px/1.1 var(--mono);
  letter-spacing: .19em;
}
.wordmark strong { font-size: 27px; font-weight: 800; letter-spacing: -.09em; }
.wordmark strong span { margin-left: 2px; color: var(--mint); }
.market-navigation > p {
  margin: 0 0 11px 12px;
  color: var(--subtle);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-items { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  min-height: 23px;
  color: var(--subtle);
  font: 500 18px/1 var(--mono);
}
.nav-item:hover { border-color: var(--line); background: #17232c; color: var(--text); }
.nav-item[aria-current] { border-color: #345a50; background: #192e2d; color: var(--mint); }
.nav-item[aria-current] .nav-icon { color: var(--mint); }
.rail-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 17px 9px 5px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
}
.rail-source span { color: var(--mint); font-size: 21px; line-height: 1; }
.rail-source:hover { color: var(--mint); }

.contents { min-width: 0; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: #0e151b;
}
.toolbar-label { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.search-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 225px;
  min-height: 39px;
  padding: 5px 10px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #131e26;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.search-button:hover { color: var(--text); border-color: #59716f; }
.search-button kbd {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid #36454f;
  border-radius: 4px;
  background: #1c2933;
  color: var(--muted);
  font: 500 11px/1.6 var(--mono);
}
.magnifier {
  position: relative;
  display: inline-block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.magnifier::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  content: '';
}
.languages {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101a21;
}
.languages a {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 31px;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--muted);
  font: 600 12px/1 var(--mono);
}
.languages a[aria-current] { background: var(--mint-deep); color: var(--mint); }
.languages a:hover { color: var(--mint); }

main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  background: radial-gradient(ellipse 60% 25rem at 100% 0%, #17342b55 0%, transparent 100%);
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 28px;
}
.intro h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 69px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.intro p { margin: 13px 0 0; color: var(--muted); font-size: clamp(12px, 1.24vw, 15px); }
.source-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-bottom: 3px;
  color: var(--muted);
  font: 500 11px/1.25 var(--mono);
  white-space: nowrap;
}
.source-clock span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #35564e;
  border-radius: 6px;
  color: var(--mint);
  background: #102d2873;
}
.source-clock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.source-clock time { color: var(--muted); }
.ticker-shell {
  min-width: 0;
  overflow: hidden;
  margin-bottom: 19px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-deep);
}
.ticker-slot { min-height: 58px; }
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 17px;
  align-items: stretch;
}
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 14px 19px 11px;
}
.panel-kicker {
  margin: 0 0 4px;
  color: var(--subtle);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.panel h2 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.chart-timing { margin: 6px 0 0; color: var(--subtle); font: 500 10px/1.4 var(--mono); }
.chart-timing:empty { display: none; }
.chart-timing {
  margin: 6px 0 0;
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
}
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.source-link span { font: 600 14px/1 var(--mono); }
.source-link:hover, .search-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.group-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid #385c54;
  border-radius: 9px;
  color: var(--mint);
  background: var(--mint-deep);
  font: 500 17px/1 var(--mono);
}
.quick-symbols {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  min-height: 49px;
  padding: 1px 19px 12px;
  scrollbar-width: thin;
  scrollbar-color: #465c68 transparent;
}
.quick-symbols :is(button, a) {
  display: inline-flex;
  flex: none;
  align-self: flex-start;
  align-items: center;
  min-height: 30px;
  max-width: 224px;
  overflow: hidden;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151f28;
  color: var(--muted);
  font: 500 11px/1.2 var(--mono);
  white-space: nowrap;
}
.quick-symbols :is(button, a):hover { border-color: #55716e; color: var(--text); }
.quick-symbols :is([aria-pressed="true"], [aria-current]) { border-color: #41695c; color: var(--mint); background: var(--mint-deep); }
.quick-symbols :is(button, a):focus-visible { outline-offset: -1px; }
.quotes-description {
  min-height: 62px;
  margin: 0;
  padding: 0 19px 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.chart-slot, .quotes-slot { height: 405px; border-top: 1px solid var(--line-soft); }
.widget-slot {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--panel-deep);
}
.ticker-slot > .widget-host { min-height: 58px; }
.widget-host, .tradingview-widget-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.tradingview-widget-container__widget {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.widget-slot iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: var(--panel-deep); color-scheme: dark; }
.widget-slot .widget-credit,
.widget-slot .tradingview-widget-copyright {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--panel-deep);
  color: var(--muted);
  font: 500 10px/1.3 var(--mono);
  text-align: center;
}
.widget-credit a, .tradingview-widget-copyright a { color: var(--mint); }
.widget-status, .widget-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  margin: 0;
  padding: 6px 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.widget-status button, .widget-fallback button {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #17232c;
  color: var(--mint);
}
.widget-fallback a { color: var(--mint); }

.sources {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 17px 0 0;
  padding: 15px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #13231f;
}
.info-icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 1px;
  border: 1px solid #4f796c;
  border-radius: 50%;
  color: var(--mint);
  font: 500 12px/1 var(--mono);
}
.sources h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.sources p { max-width: 81ch; margin: 0; color: var(--muted); font-size: 11.5px; }
.sources > a { margin: 1px 0 0 auto; align-self: center; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 22px;
  color: var(--subtle);
  font-size: 11px;
}
footer a { color: var(--muted); font-weight: 600; white-space: nowrap; }
footer a:hover { color: var(--mint); }
.noscript { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

#search-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(660px, calc(100dvh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #416157;
  border-radius: 14px;
  background: #111b23;
  color: var(--text);
  box-shadow: 0 24px 85px #0009;
}
#search-dialog::backdrop { background: #050a10c7; }
.search-field {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 6px 13px 6px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
}
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
}
.search-field input::placeholder { color: var(--subtle); opacity: 1; }
.search-field button {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1a2b34;
  font-size: 21px;
}
.search-field button:hover { border-color: var(--mint); }
.search-results {
  max-height: min(400px, calc(100dvh - 142px));
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior-y: contain;
}
.search-results :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}
.search-results :is(button, a):hover { border-color: #365a4f; background: var(--mint-deep); }
.search-results :is(button, a):focus-visible { outline-offset: -1px; }
.search-results :is(small, code) { color: var(--muted); font: 500 11px/1.4 var(--mono); }
.search-results p { padding: 3px 12px; color: var(--muted); }
.search-more {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1160px) {
  .workspace { grid-template-columns: 187px minmax(0, 1fr); }
  .rail { padding-inline: 12px; }
  .panels { grid-template-columns: minmax(0, 1.5fr) minmax(258px, 1fr); }
  .panel-header, .quick-symbols, .quotes-description { padding-inline: 14px; }
}
@media (max-width: 970px) {
  .intro { align-items: flex-start; flex-direction: column; gap: 13px; }
  .intro h1 { text-wrap: initial; }
  main { padding-top: 28px; }
}
@media (max-width: 850px) {
  :root { --gutter: 18px; }
  .workspace { display: block; }
  .rail {
    position: relative;
    height: auto;
    padding: 13px 0 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .brand { margin: 0 var(--gutter) 14px; }
  .brand-mark { width: 39px; height: 39px; }
  .market-navigation > p, .rail-source { display: none; }
  .nav-items {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 4px var(--gutter) 8px;
    scrollbar-width: thin;
    scrollbar-color: #3c5853 transparent;
  }
  .nav-item { min-height: 37px; gap: 4px; padding: 4px 9px; font-size: 11.5px; }
  .nav-icon { flex-basis: 20px; font-size: 16px; }
  .toolbar {
    position: absolute;
    top: 12px;
    right: var(--gutter);
    gap: 9px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .toolbar-label { display: none; }
  .search-button { min-width: 168px; }
  .intro { flex-direction: row; align-items: flex-end; }
}
@media (max-width: 640px) {
  .panels { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .intro { margin-bottom: 18px; flex-direction: column; align-items: flex-start; gap: 11px; }
  .intro p { margin-top: 8px; }
  .intro h1 { font-size: clamp(27px, 7.3vw, 39px); }
  main { padding-top: 23px; }
  .ticker-shell { margin-bottom: 14px; }
  .panel-header { min-height: 66px; padding-top: 12px; }
  .chart-slot { height: 330px; }
  .quotes-slot { height: 365px; }
  .quotes-description { min-height: 0; }
  .sources { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  .sources > a { grid-column: 2; justify-self: start; margin: 0; }
  footer { align-items: flex-start; }
}
@media (max-width: 470px) {
  :root { --gutter: 13px; }
  .search-button { width: 42px; min-width: 42px; min-height: 39px; padding: 0; justify-content: center; }
  .search-button kbd { display: none; }
  .search-button span:not(.magnifier) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .source-link { font-size: 10px; }
  .sources p, footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
