:root { color-scheme: dark; font: 16px/1.5 "Instrument Sans", "Segoe UI", sans-serif; background: #090d13; color: #edf0f4; }
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { --accent: #ffbd4f; --up: #53e3a3; --down: #ff7e80; --muted: #aab4c4; --border: #2b3543; }
body.meme-radar { --accent: #c6ff45; --up: #c6ff45; --muted: #b4adc8; --border: #383447; background: #100f17; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem; background: #101820; z-index: 2; }
.skip-link:focus { top: .5rem; }
.portfolio-bar, .product-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .65rem max(1rem, calc((100% - 1500px) / 2)); border-bottom: 1px solid var(--border); }
.portfolio-bar { justify-content: space-between; color: var(--muted); font-size: .79rem; background: #131820; }
.product-nav { padding-block: .9rem; font-size: .9rem; }
.product-nav strong { font-size: clamp(1.05rem, 2.1vw, 1.6rem); letter-spacing: -.025em; margin-right: auto; }
.product-nav strong span { color: var(--accent); }
.product-nav a { text-decoration: none; }
.product-nav a:hover { color: var(--accent); }
.demo-label { border: 1px solid var(--accent); border-radius: .25rem; color: var(--accent); padding: .2rem .48rem; font-size: .7rem; text-transform: uppercase; white-space: nowrap; }
.terminal { max-width: 1532px; margin: auto; padding: 0 1rem 2rem; }
.market-tape { display: flex; gap: 1rem; padding: .9rem 0; overflow-x: auto; white-space: nowrap; font: .81rem/1.5 "IBM Plex Mono", monospace; }
.market-tape span { border-right: 1px solid var(--border); padding-right: 1rem; }
.market-tape em { font-style: normal; }
.terminal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
.northline-terminal .terminal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.northline-terminal .market-chart { grid-area: 1 / 1; }
.panel { min-width: 0; background: #101722; border: 1px solid var(--border); border-radius: .55rem; overflow: hidden; }
.meme-radar .panel { background: #171621; }
.panel > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.panel h1, .panel h2 { font-size: clamp(1.35rem, 2.7vw, 2.15rem); letter-spacing: -.025em; line-height: 1.15; }
.panel header p, .panel label { color: var(--muted); font-size: .8rem; }
.panel input { display: block; border: 1px solid var(--border); background: #090d13; padding: .43rem .65rem; border-radius: .35rem; max-width: 100%; }
.table-scroll { overflow-x: auto; }
table { width: 100%; white-space: nowrap; border-collapse: collapse; font: .84rem/1.45 "IBM Plex Mono", monospace; text-align: right; }
th, td { padding: .58rem .65rem; border-bottom: 1px solid var(--border); }
th:first-child { text-align: left; }
thead { background: #090d13; color: var(--muted); }
thead button, .asset-button { border: 0; background: transparent; padding: .25rem; }
thead button:hover, th[aria-sort] button { color: var(--accent); }
.asset-button { display: inline-flex; align-items: center; gap: .55rem; text-align: left; }
.asset-button > span:first-child { display: grid; place-items: center; border-radius: 50%; width: 1.9rem; height: 1.9rem; background: #232b38; color: var(--accent); }
.asset-button small { display: block; color: var(--muted); }
tr:has([aria-pressed="true"]) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
tbody tr:last-child :is(th, td) { border-bottom: 0; }
.empty { padding: 1rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.quote { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; font-family: "IBM Plex Mono", monospace; }
.quote strong { font-size: clamp(1.1rem, 2.25vw, 1.85rem); }
.chart { position: relative; height: clamp(12rem, 29vw, 24rem); margin: .65rem .75rem 0; overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 calc(20% - 1px), var(--border) calc(20% - 1px) 20%), repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--border) calc(12.5% - 1px) 12.5%), #0a111a; }
.candles { position: absolute; inset: 5% 2%; display: grid; grid-template-columns: repeat(36, 1fr); gap: .28rem; }
.candles i { position: relative; align-self: end; margin-bottom: 0; bottom: var(--level); height: var(--body); min-height: 4px; background: currentColor; }
.candles i::after { content: ""; position: absolute; inset: -45% calc(50% - .5px); background: currentColor; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; padding: .38rem .9rem; }
.market-detail { border-top: 1px solid var(--border); padding: .85rem 1rem; }
.market-detail h3 { font-size: .95rem; }
.market-detail dl > div { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.night-pigeon { --accent: #f6df9e; color: #f5ead6; background: #0e131b; }
.pigeon-nav { font-size: .9rem; }
.pigeon-nav strong { font-family: Georgia, serif; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.pigeon-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 34rem; max-width: 1500px; margin: auto; }
.pigeon-copy { align-self: center; padding: clamp(1.25rem, 4.2vw, 4.5rem); padding-right: 0; position: relative; z-index: 1; }
.pigeon-copy > p:first-child { color: var(--accent); font-size: 1.1rem; }
.pigeon-copy h1 { font: 400 clamp(2.65rem, 5.4vw, 6.1rem)/1.02 "Instrument Serif", Georgia, serif; letter-spacing: -.055em; margin: .5rem 0 1.2rem; }
.pigeon-copy > p:nth-of-type(2) { font-size: clamp(1rem, 2vw, 1.4rem); }
.pigeon-button { display: inline-block; margin-top: 1.4rem; padding: .7rem 1.25rem; border-radius: .3rem; color: #12151c; background: #f5ead6; font-weight: 700; text-decoration: none; }
.pigeon-portrait { min-width: 0; background: url('/assets/design-concepts/night-pigeon-desktop.webp') 89% 17% / auto 159% no-repeat; mask-image: linear-gradient(90deg, transparent, black 13%); }
.pigeon-strip { background: #f5ead6; color: #12151c; padding: 1.05rem; text-align: center; font: italic 1.45rem Georgia, serif; }
.pigeon-editorial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1300px; margin: auto; padding: 2.5rem 1.25rem; }
.pigeon-editorial h2 { font: 400 2rem Georgia, serif; margin-bottom: .45rem; }
.pigeon-editorial p { color: #ddd4c6; }
@media (max-width: 790px) {
  .terminal-grid, .northline-terminal .terminal-grid { grid-template-columns: minmax(0, 1fr); }
  .northline-terminal .market-chart { grid-area: auto; }
  .pigeon-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pigeon-copy { padding: 2.25rem 1.15rem 1rem; }
  .pigeon-portrait { min-height: clamp(15rem, 72vw, 29rem); background-position: 85% 17%; mask-image: linear-gradient(180deg, transparent, black 13%); }
  .pigeon-editorial { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .terminal { padding-inline: .55rem; }
  .product-nav, .portfolio-bar { gap: .35rem .75rem; padding-inline: .7rem; }
  .product-nav strong { flex-basis: 100%; }
  .candles { gap: .13rem; }
}

.portfolio-bar {
  min-height: 44px;
  border-bottom: 1px solid #6f4e36;
  background: #191511;
  color: #e7d5c5;
}
.portfolio-bar a { color: #f0b889; text-underline-offset: 4px; }
