@font-face {
  font-family: Geist;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #101312;
  --panel: #171b19;
  --panel-2: #1c211e;
  --edge: #303630;
  --soft-edge: #2a302c;
  --text: #eef2ec;
  --muted: #a2aaa3;
  --quiet: #939d95;
  --lime: #c0f783;
  --up: #78d9aa;
  --down: #f08e83;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
[hidden], .symbols { display: none !important; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; }
a:focus-visible, button:focus-visible, select:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button, a, select { -webkit-tap-highlight-color: transparent; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 10; inset: 8px auto auto 8px; background: var(--lime); color: #141814; padding: 12px 18px; }
.shell { width: min(100% - clamp(32px, 7.5vw, 120px), 1456px); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.topbar { background: #141816; border-bottom: 1px solid var(--soft-edge); }
.topbar-inner { min-height: 67px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.38rem; letter-spacing: -.075em; font-weight: 720; }
.brand img { width: 32px; height: 32px; }
.brand-light { font-weight: 470; color: #c7cfc6; }
.nav-divider { width: 1px; height: 23px; background: #383e39; }
.topbar nav { display: flex; align-items: center; gap: 5px; }
.topbar nav a { display: flex; align-items: center; gap: 8px; padding: 8px 13px; color: #aab2ab; font-size: .875rem; font-weight: 510; border-radius: 6px; }
.topbar nav .icon { width: 16px; height: 16px; }
.topbar nav a:hover { color: var(--text); background: #202522; }
.topbar nav a[aria-current="page"] { color: #e7f7d7; background: #283126; }
.topbar nav a[aria-current="page"] .icon { color: var(--lime); }
.utc-clock { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; color: #e0e6dd; font: .875rem var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.utc-clock .icon { color: var(--quiet); width: 16px; height: 16px; }
.utc-label { font-size: .75rem; color: var(--quiet); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 31px 0 23px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 3.1vw, 3.05rem); line-height: 1.12; font-weight: 610; letter-spacing: -.065em; }
.page-date { display: flex; gap: 7px; align-items: center; margin-top: 8px; color: var(--muted); font-size: .875rem; }
.page-date .icon { width: 15px; height: 15px; color: var(--quiet); }
.sync-tools { display: flex; align-items: center; gap: 15px; }
.sync-label { color: var(--muted); font-size: .8125rem; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #39413a; border-radius: 7px; background: #1c211e; color: #e2e8df;
}
.button { font-size: .875rem; font-weight: 540; padding: 8px 13px; min-height: 36px; }
.button .icon { width: 15px; height: 15px; }
.button:hover, .icon-button:hover { background: #293029; border-color: #515d50; }
.refresh:disabled .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 18px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 13px; overflow: hidden; }
.panel-head, .news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head { padding: 18px 21px 0; }
h2 { display: flex; align-items: center; gap: 10px; font-size: 1.16rem; line-height: 1.25; font-weight: 610; letter-spacing: -.035em; }
.panel-icon { width: 30px; height: 30px; display: inline-grid; flex: none; place-items: center; border-radius: 8px; }
.panel-icon .icon { width: 18px; height: 18px; }
.panel-icon.lime { color: var(--lime); background: #293421; }
.panel-icon.aqua { color: #a2cbbc; background: #27352f; }
.candle-panel { display: flex; flex-direction: column; }
.asset-picker { display: inline-flex; align-items: center; position: relative; flex: none; }
.asset-picker select {
  appearance: none; -webkit-appearance: none; padding: 6px 26px 6px 30px; border: 1px solid #3b423c;
  border-radius: 7px; background: #222723; color: #e5eae3; font: .8125rem var(--mono); min-height: 31px; cursor: pointer;
}
.asset-picker select:hover { background: #2a312b; }
.coin { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); border-radius: 50%; display: grid; place-items: center; width: 15px; height: 15px; color: #1c1c12; background: #f2a849; font: bold 12px/1 system-ui, sans-serif; pointer-events: none; }
.coin.eth { color: #efedff; background: #716eae; }
.coin.sol { color: #b9f2dc; background: #414858; }
.asset-picker .chev { position: absolute; right: 7px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.quote-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 2px; }
.micro-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8125rem; line-height: 1.25; }
.micro-label .icon { width: 14px; height: 14px; }
.quote-line { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.price { font-size: clamp(1.7rem, 2.3vw, 2.36rem); font-weight: 575; letter-spacing: -.062em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price-change { display: inline-flex; align-items: center; font: .75rem var(--mono); border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.price-change.up { background: #213a2e; color: #95e2b9; }
.price-change.down { background: #3b2927; color: #f4a398; }
.candle-clock { text-align: right; }
.candle-clock .micro-label { justify-content: end; }
#countdown { display: block; margin-top: 4px; font: 1.28rem/1.3 var(--mono); color: var(--lime); letter-spacing: -.055em; }
.chart-box { min-height: 150px; flex: 1 1 auto; margin: 8px 17px 0; position: relative; }
#chart { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; }
.chart-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .875rem; pointer-events: none; }
.chart-tip { position: absolute; top: 5px; left: 6px; padding: 6px 9px; border-radius: 5px; border: 1px solid #4a594a; background: #1c241ff5; color: #e6eddf; font: .75rem/1.4 var(--mono); pointer-events: none; max-width: calc(100% - 12px); }
.candle-footer, .session-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 38px; border-top: 1px solid var(--soft-edge); font-size: .75rem; color: var(--muted); }
.candle-footer { margin-top: 3px; padding: 0 22px; }
.data-origin, .candle-window { display: inline-flex; align-items: center; gap: 7px; }
.tiny-square { display: inline-block; width: 7px; height: 7px; background: #a9a0dc; border-radius: 2px; }
.current-mark { display: inline-block; height: 2px; width: 13px; background: var(--lime); }
.candle-window { font-family: var(--mono); letter-spacing: -.035em; }
.session-panel { display: flex; flex-direction: column; }
.session-head { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 79px; padding: 13px 21px 7px; }
.session-head > div { position: relative; z-index: 1; }
.map { position: absolute; z-index: -1; width: 46%; height: 77px; object-fit: contain; object-position: right center; top: 2px; right: 14px; }
.open-count { display: flex; align-items: center; gap: 6px; width: max-content; margin: 5px 0 0 40px; font-size: .75rem; color: var(--muted); }
.open-count::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #879087; }
.open-count.active::before { background: var(--lime); }
.session-rows { display: grid; grid-template-rows: repeat(4, 1fr); flex: 1 1 auto; padding: 0 21px; }
.session-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 56px; align-items: center; gap: 10px; padding: 9px 0; min-height: 48px; border-bottom: 1px solid var(--soft-edge); }
.session-row:last-child { border-bottom: 0; }
.dial { width: 31px; height: 31px; display: block; }
.city-name { font-size: .93rem; font-weight: 570; letter-spacing: -.02em; }
.exchange-code { display: block; margin-top: 2px; font: .75rem/1.3 var(--mono); letter-spacing: -.025em; color: var(--muted); }
.local-time { font: .875rem var(--mono); color: #dde3da; }
.session-status { justify-self: end; padding: 3px 6px; border-radius: 4px; color: #b9c0b8; background: #292e2a; font-size: .75rem; line-height: 1.3; }
.session-status.open { color: #a8e6bc; background: #23382a; }
.session-status.lunch { color: #efc890; background: #382f22; }
.session-status.unverified { font-size: .66rem; }
.session-footer { padding: 0 21px; }
.session-footer a, .text-button { color: #d5e7c7; font-size: .8125rem; font-weight: 500; }
.session-footer a:hover, .text-button:hover { color: var(--lime); text-decoration: underline; }
.news-panel, .schedule-view { margin-top: 19px; }
.news-head { padding: 17px 21px; border-bottom: 1px solid var(--soft-edge); }
.news-title { display: flex; align-items: center; gap: 11px; }
.feed-badge { display: inline-flex; align-items: center; gap: 5px; color: #b8c0b8; font-size: .75rem; }
.feed-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed-badge.live { color: #9ee5af; }
.feed-badge.partial, .feed-badge.saved { color: #e5c285; }
.filters { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--soft-edge); border-radius: 7px; background: #131714; }
.filters button { border: 0; border-radius: 4px; padding: 5px 12px; min-height: 29px; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 520; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: #343d31; color: #e4f5d5; }
.news-columns, .story { display: grid; grid-template-columns: 83px minmax(0, 1fr) 89px minmax(116px, 13%); align-items: center; column-gap: 20px; padding-inline: 22px; }
.news-columns { color: #a3aea3; background: #191e1a; border-bottom: 1px solid var(--soft-edge); min-height: 32px; text-transform: uppercase; font: .69rem var(--mono); letter-spacing: .09em; }
.time-unit { color: var(--quiet); letter-spacing: 0; }
#stories { margin: 0; padding: 0; list-style: none; }
.story { padding-block: 10px; min-height: 62px; border-bottom: 1px solid var(--soft-edge); }
.story:last-child { border-bottom: 0; }
.story:hover { background: #1c221d; }
.story time { display: flex; flex-direction: column; gap: 2px; color: #d3dad2; font: .875rem/1.25 var(--mono); }
.story-date { font-size: .69rem; color: var(--quiet); }
.story-link { color: #e5ebe2; font-size: .975rem; font-weight: 490; line-height: 1.37; letter-spacing: -.017em; }
.story-link:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.sector { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 3px 7px; color: #cbd8c7; background: #283325; border-radius: 4px; font-size: .75rem; font-weight: 480; line-height: 1.3; }
.sector::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: currentColor; }
.sector.crypto { background: #332c3e; color: #cfb6ef; }
.sector.macro { background: #24343c; color: #a7cfdf; }
.sector.equities { background: #383123; color: #e4c185; }
.story-source { color: #b1bab1; font-size: .825rem; line-height: 1.35; }
.news-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 21px; min-height: 43px; color: var(--quiet); font-size: .75rem; border-top: 1px solid var(--soft-edge); }
.text-button { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; border: 0; background: none; padding: 0 2px; }
.text-button .icon { width: 14px; height: 14px; }
.empty-state { color: var(--muted); text-align: center; padding: 30px 16px; font-size: .9rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--quiet); font-size: .75rem; padding-block: 22px 28px; }
.site-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.footer-mark { font-weight: 700; font-style: italic; font-size: .8rem; color: #b7c3b6; }
.schedule-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.schedule-intro span, .calendar-note, .dialog-intro { font-size: .875rem; color: var(--muted); }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.schedule-card { padding: 19px 21px 16px; }
.schedule-card header { display: flex; gap: 11px; align-items: center; }
.schedule-card .dial { width: 38px; height: 38px; }
.schedule-card h3 { font-size: 1.15rem; font-weight: 590; letter-spacing: -.03em; }
.schedule-card header .session-status { margin-left: auto; }
.schedule-card .exchange-name { color: var(--muted); font-size: .82rem; }
.schedule-card dl { margin: 16px 0 11px; }
.schedule-card dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--soft-edge); padding: 8px 0; font-size: .875rem; }
.schedule-card dt { color: var(--muted); }
.schedule-card dd { text-align: right; margin: 0; font-variant-numeric: tabular-nums; }
.schedule-card a, .source-name { color: #cee6bd; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #64765a; }
.calendar-note { margin-top: 14px; }
dialog { width: min(490px, calc(100% - 28px)); max-height: 85dvh; overflow: auto; border-radius: 13px; border: 1px solid #475147; padding: 22px; background: var(--panel); color: var(--text); box-shadow: 0 16px 84px #0009; }
dialog::backdrop { background: #050806b0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 1.35rem; }
.icon-button { width: 32px; height: 32px; }
.dialog-intro { margin: 10px 0 14px; line-height: 1.5; }
.source-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--soft-edge); }
.source-meta { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.source-state { font: .75rem var(--mono); color: var(--muted); }
.source-state.ok { color: #a0ddb1; }
.source-state.cached { color: #e6c086; }
@media (min-width: 1500px) {
  .chart-box { min-height: 180px; }
  .session-row { padding-block: 12px; }
}
@media (max-width: 980px) {
  .shell { width: calc(100% - 44px); }
  .overview-grid { grid-template-columns: minmax(0, 1.3fr) minmax(310px, 1fr); gap: 14px; }
  .news-columns, .story { grid-template-columns: 64px minmax(0, 1fr) 75px minmax(90px, 14%); column-gap: 13px; }
  .quote-line { gap: 6px; }
  .map { width: 39%; right: 6px; opacity: .9; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 58px; gap: 13px; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding-inline: 9px; }
  .nav-divider { display: none; }
  .utc-clock { gap: 5px; font-size: .8rem; }
  .utc-clock .icon { display: none; }
  .overview-grid { grid-template-columns: minmax(0, 1.15fr) minmax(245px, 1fr); gap: 12px; }
  .panel-head, .news-head { padding-inline: 15px; }
  .panel-head { padding-top: 15px; }
  h2 { font-size: 1.025rem; gap: 7px; }
  .panel-icon { width: 25px; height: 25px; border-radius: 6px; }
  .panel-icon .icon { width: 16px; height: 16px; }
  .quote-row { padding-inline: 15px; }
  .quote-line { flex-wrap: wrap; }
  .chart-box { margin-inline: 9px; min-height: 138px; }
  .session-head { padding-inline: 14px; min-height: 70px; }
  .open-count { margin-left: 32px; }
  .session-rows { padding-inline: 13px; }
  .session-row { gap: 6px; grid-template-columns: 27px minmax(0, 1fr) auto 51px; }
  .dial { width: 26px; height: 26px; }
  .city-name { font-size: .875rem; }
  .map { width: 30%; opacity: .7; }
  .candle-footer, .session-footer { padding-inline: 13px; }
  .news-columns, .story { padding-inline: 15px; }
  .sync-label { display: none; }
}
@media (max-width: 620px) {
  .topbar-inner { flex-wrap: wrap; gap: 0; padding-top: 11px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 28px; height: 28px; }
  .utc-clock { order: 1; }
  .topbar nav { order: 2; width: 100%; padding-block: 8px 7px; gap: 5px; }
  .topbar nav a { padding: 6px 10px; font-size: .8125rem; }
  .topbar nav a:first-child { margin-left: -3px; }
  .page-heading { margin: 20px 0 16px; }
  .page-date { margin-top: 5px; font-size: .8125rem; }
  .button { padding: 7px 9px; }
  .overview-grid { display: contents; }
  main.shell { display: flex; flex-direction: column; }
  .candle-panel { order: 1; }
  .news-panel { order: 2; margin-top: 14px; }
  .session-panel { order: 3; margin-top: 14px; }
  .chart-box { min-height: 150px; }
  .quote-line { flex-wrap: nowrap; }
  .quote-row { padding-top: 13px; }
  .news-head { align-items: flex-start; flex-direction: column; padding: 14px 15px 11px; gap: 11px; }
  .filters { width: auto; }
  .filters button { padding: 4px 10px; }
  .news-columns { display: none; }
  .story { grid-template-columns: 43px max-content minmax(0, 1fr); gap: 5px 9px; padding: 12px 13px; }
  .story time { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 2px; font-size: .78rem; }
  .story-date { font-size: .64rem; }
  .story-link { grid-column: 2 / -1; font-size: .95rem; }
  .story .sector { grid-column: 2; grid-row: 2; font-size: .68rem; padding: 2px 5px; }
  .story-source { grid-column: 3; grid-row: 2; font-size: .75rem; }
  .session-head { min-height: 76px; }
  .session-row { min-height: 50px; grid-template-columns: 31px minmax(0, 1fr) auto 62px; gap: 9px; }
  .session-rows { padding-inline: 15px; }
  .map { width: 45%; opacity: 1; right: 12px; }
  .session-footer, .candle-footer { padding-inline: 15px; }
  .news-footer { padding: 8px 13px; }
  .news-footer #news-count { flex-basis: 100%; }
  .schedule-view { margin-top: 2px; }
  .schedule-intro { align-items: flex-start; flex-direction: column; }
  .schedule-grid { grid-template-columns: 1fr; gap: 11px; }
  .site-footer { align-items: flex-start; font-size: .69rem; }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 20px); }
  .price { font-size: 1.5rem; }
  .price-change { font-size: .68rem; }
  #countdown { font-size: 1.05rem; }
  .panel-head { padding-inline: 11px; }
  .candle-footer { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
