:root {
  color-scheme: dark;
  --wall-bg: #05070c;
  --wall-panel: rgba(9, 16, 25, 0.94);
  --wall-line: rgba(178, 205, 229, 0.14);
  --wall-ink: #eef6fb;
  --wall-muted: #8297aa;
  --wall-cyan: #45d9e8;
  --wall-green: #6de8a5;
  --wall-red: #ff7e7e;
  --wall-amber: #f6c86d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--wall-bg); }
body { color: var(--wall-ink); background: radial-gradient(circle at 75% 4%, rgba(36, 92, 115, 0.2), transparent 32%), var(--wall-bg); }
button, a { font: inherit; }
button, a { cursor: pointer; }

.wall-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--wall-line);
  background: rgba(5, 7, 12, 0.84);
  backdrop-filter: blur(16px);
}
.wall-brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(69, 217, 232, 0.48);
  border-radius: 11px;
  color: var(--wall-cyan);
  font-weight: 900;
  text-decoration: none;
}
.wall-eyebrow, .wall-chip, .wall-actions button, .wall-actions a, .ticker-label, .wall-footer {
  font: 800 9px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wall-eyebrow { margin: 0 0 4px; color: var(--wall-cyan); }
h1 { margin: 0; font-size: clamp(18px, 2.5vw, 29px); letter-spacing: -0.05em; }
h1 em { color: var(--wall-muted); font-style: normal; font-weight: 450; }
.wall-actions { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.wall-chip, .wall-actions button, .wall-actions a {
  min-height: 30px;
  padding: 8px 10px;
  border: 1px solid var(--wall-line);
  border-radius: 7px;
  color: #b4c4d1;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}
.wall-chip-off { border-color: rgba(255, 126, 126, 0.3); color: var(--wall-red); }
.wall-actions button:hover, .wall-actions button:focus-visible, .wall-actions a:hover, .wall-actions a:focus-visible { border-color: var(--wall-cyan); color: var(--wall-cyan); outline: none; }
.wall-actions button[aria-pressed="true"], .wall-actions button.is-active { border-color: rgba(69, 217, 232, 0.62); color: var(--wall-cyan); background: rgba(69, 217, 232, 0.1); }

.wall-ticker {
  display: flex;
  align-items: center;
  min-height: 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--wall-line);
  background: rgba(8, 15, 23, 0.86);
}
.ticker-label { align-self: stretch; display: grid; min-width: 120px; padding: 0 15px; place-items: center; border-right: 1px solid rgba(69, 217, 232, 0.25); color: var(--wall-cyan); }
.ticker-window { flex: 1; overflow: hidden; }
.ticker-track { display: flex; width: max-content; gap: 34px; padding: 10px 20px; animation: wall-scroll 72s linear infinite; white-space: nowrap; }
.wall-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: #a6bacb; }
.ticker-track .up { color: var(--wall-green); }
.ticker-track .down { color: var(--wall-red); }
@keyframes wall-scroll { from { transform: translateX(0); } to { transform: translateX(-35%); } }

.wall-grid {
  display: block;
  padding: 14px;
}
.wall-category { margin: 0 0 26px; }
.wall-category:last-child { margin-bottom: 0; }
.wall-category-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 10px; padding: 0 2px 9px; border-bottom: 1px solid var(--wall-line); }
.wall-category-kicker { margin: 0 0 4px; color: var(--wall-cyan); font: 800 8px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.wall-category-header > div { position: relative; padding-left: 12px; }
.wall-category-header > div::before { content: ""; position: absolute; inset: 1px auto 2px 0; width: 2px; border-radius: 2px; background: var(--wall-cyan); box-shadow: 0 0 14px rgba(69, 217, 232, 0.32); }
.wall-category-header h2 { margin: 0; color: var(--wall-ink); font-size: clamp(16px, 2vw, 22px); font-weight: 780; letter-spacing: -.04em; text-shadow: 0 0 18px rgba(69, 217, 232, 0.12); }
.wall-category-description { margin: 4px 0 0; color: var(--wall-muted); font-size: 11px; }
.wall-category-count { flex: 0 0 auto; color: var(--wall-muted); font: 800 9px/1.2 "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.wall-category-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 12px; }
.chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--wall-line);
  border-radius: 13px;
  background: var(--wall-panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.chart-card:hover, .chart-card.is-focus { border-color: rgba(69, 217, 232, 0.6); }
.chart-card.is-dimmed { opacity: 0.58; transform: scale(0.985); }
.chart-card.is-dragging { opacity: 0.42; }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 8px; border-bottom: 1px solid var(--wall-line); }
.chart-card-header strong { font-size: 16px; letter-spacing: -0.03em; }
.chart-card-header small, .chart-meta { color: var(--wall-muted); font: 700 9px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.chart-live { color: var(--wall-green); }
.chart-surface { position: relative; height: 260px; touch-action: none; user-select: none; }
.chart-surface svg { display: block; width: 100%; height: 100%; }
.wall-readout { position: absolute; top: 51%; right: 10px; z-index: 2; display: grid; gap: 3px; width: 104px; max-width: 104px; padding: 7px 7px 7px 8px; border-left: 1px solid rgba(69, 217, 232, 0.34); border-radius: 5px; background: linear-gradient(90deg, rgba(7, 14, 22, 0.18), rgba(7, 14, 22, 0.78)); pointer-events: none; transform: translateY(-50%); }
.wall-readout span, .wall-readout strong { overflow: hidden; color: var(--wall-muted); font: 700 9px/1.2 "SFMono-Regular", Consolas, monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.wall-readout strong { color: var(--wall-cyan); font-size: 10px; }
.chart-surface::before { content: ""; position: absolute; inset: 10px 0 16px 84%; z-index: 1; border-left: 1px dashed rgba(69, 217, 232, 0.32); border-radius: 5px; background: rgba(11, 24, 35, 0.42); pointer-events: none; }
.chart-surface::after { content: "LIVE READOUT"; position: absolute; top: 15px; right: 16px; z-index: 1; color: rgba(182, 219, 231, 0.56); font: 800 7px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; pointer-events: none; }
.chart-empty { display: grid; height: 100%; place-items: center; align-content: center; gap: 8px; color: var(--wall-muted); font: 800 12px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: 0.09em; text-align: center; }
.chart-empty small { color: var(--wall-cyan); font-size: 10px; letter-spacing: 0.04em; }
.chart-grid-line { stroke: rgba(160, 190, 213, 0.12); stroke-width: 1; }
.chart-candle-up { fill: var(--wall-green); stroke: var(--wall-green); }
.chart-candle-down { fill: var(--wall-red); stroke: var(--wall-red); }
.chart-wick { stroke-width: 1.3; }
.chart-liq { fill: none; stroke: var(--wall-amber); stroke-dasharray: 8 6; stroke-width: 1; }
.chart-current { fill: none; stroke: var(--wall-cyan); stroke-dasharray: 3 4; stroke-width: 1.4; }
.chart-event-up { fill: var(--wall-green); }
.chart-event-down { fill: var(--wall-red); }
.chart-label { fill: #dbeaf4; font: 800 10px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; }
.chart-label-muted { fill: var(--wall-muted); font: 700 9px "SFMono-Regular", Consolas, monospace; }
.chart-indicator { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-indicator.ema20 { stroke: var(--wall-amber); }
.chart-indicator.ema50 { stroke: #b98aff; stroke-dasharray: 5 3; }
.chart-indicator.vwap { stroke: var(--wall-cyan); stroke-dasharray: 2 4; }
.chart-indicator-label, .chart-daily-label { font: 700 8px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; }
.chart-indicator-label.ema20 { fill: var(--wall-amber); }
.chart-indicator-label.ema50 { fill: #b98aff; }
.chart-indicator-label.vwap { fill: var(--wall-cyan); }
.chart-indicator-label.atr { fill: var(--wall-muted); }
.chart-structure-label { font: 800 8px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; }
.chart-structure-label.high { fill: var(--wall-red); }
.chart-structure-label.low { fill: var(--wall-green); }
.chart-daily { fill: none; stroke-width: .8; stroke-dasharray: 4 4; opacity: .68; }
.chart-daily.open { stroke: #c9d7e7; }
.chart-daily.high { stroke: var(--wall-green); }
.chart-daily.low { stroke: var(--wall-red); }
.chart-daily.close { stroke: #9bbaff; }
.chart-daily-label { fill: var(--wall-muted); }
.chart-daily-label.high { fill: var(--wall-green); }
.chart-daily-label.low { fill: var(--wall-red); }
.ochl-forex-overlay { opacity: 1; }
.ochl-forex-label { font-weight: 800; }
.chart-volume { opacity: .42; }
.chart-volume rect.up { fill: var(--wall-green); }
.chart-volume rect.down { fill: var(--wall-red); }
.chart-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 11px; border-top: 1px solid var(--wall-line); }
.chart-card-footer button { padding: 5px 7px; border: 1px solid var(--wall-line); border-radius: 5px; color: var(--wall-muted); background: transparent; font: 800 9px "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.chart-card-footer button:hover, .chart-card-footer button:focus-visible { border-color: var(--wall-cyan); color: var(--wall-cyan); outline: none; }
.wall-footer { display: flex; justify-content: space-between; gap: 16px; padding: 2px 18px 16px; color: var(--wall-muted); }

@media (min-width: 1500px) {
  .wall-category-grid { grid-template-columns: repeat(4, minmax(250px, 1fr)); }
  .chart-surface { height: 300px; }
}
@media (max-width: 900px) {
  .wall-header { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .wall-actions { justify-content: flex-start; width: 100%; }
  .wall-grid { padding: 10px; }
  .wall-category-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .wall-category-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .wall-category-count { text-align: left; }
  .wall-footer { flex-direction: column; padding-inline: 12px; }
}
@media (max-width: 590px) {
  .wall-category-grid { grid-template-columns: 1fr; }
  .wall-ticker { min-height: 32px; }
  .ticker-label { min-width: 92px; padding-inline: 8px; font-size: 8px; }
  .chart-surface { height: 245px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
