:root {
  --bg: #071018;
  --bg-soft: #0b1621;
  --surface: rgba(12, 22, 34, 0.94);
  --surface-strong: #122131;
  --surface-soft: #16283a;
  --border: rgba(143, 164, 188, 0.16);
  --border-strong: rgba(143, 164, 188, 0.28);
  --text: #ebf2fb;
  --muted: #8ea6c0;
  --accent: #67d3ff;
  --accent-strong: #55d1a5;
  --success: #6fd593;
  --danger: #ff7b7b;
  --warning: #f0bf6a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(103, 211, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 0, rgba(85, 209, 165, 0.11), transparent 22%),
    linear-gradient(180deg, #08121b 0%, #071018 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

button,
input,
table {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.hero,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.hero__content,
.panel-head > div,
.records-panel__head > div {
  min-width: 0;
}

.hero__eyebrow,
.panel-head__eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.panel-head h2,
.records-panel__head h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.hero__subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero__actions,
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-card,
.detail-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.meta-card {
  min-width: 170px;
}

.meta-card__label,
.panel-head__hint,
.detail-card__label {
  color: var(--muted);
  font-size: 12px;
}

.meta-card strong,
.detail-card__value {
  display: block;
  margin-top: 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 18px;
}

.panel--sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 760px;
}

.panel--main {
  min-width: 0;
}

.panel-head,
.records-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.panel-head__hint {
  margin: 0;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-field input:focus {
  outline: 2px solid rgba(103, 211, 255, 0.22);
  outline-offset: 2px;
}

.symbol-list {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.symbol-button {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.symbol-button:hover,
.symbol-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 211, 255, 0.34);
}

.symbol-button.is-active {
  border-color: rgba(103, 211, 255, 0.42);
  background: linear-gradient(180deg, rgba(103, 211, 255, 0.14), rgba(85, 209, 165, 0.08));
}

.symbol-button__top,
.symbol-button__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.symbol-button__bottom {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.symbol-button__symbol {
  font-weight: 700;
  font-size: 15px;
}

.symbol-button__price {
  font-family: var(--font-mono);
}

.detail-content {
  display: grid;
  gap: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-card__value {
  font-size: 22px;
  font-weight: 700;
}

.detail-card__value--compact {
  font-size: 15px;
  line-height: 1.45;
}

.records-panel {
  display: grid;
  gap: 14px;
}

.table-shell {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.records-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.records-table th,
.records-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(146, 166, 191, 0.1);
  vertical-align: top;
}

.records-table thead th {
  position: sticky;
  top: 0;
  background: #102030;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.records-table tbody tr {
  background: rgba(255, 255, 255, 0.015);
}

.records-table tbody tr:hover {
  background: rgba(103, 211, 255, 0.06);
}

.mono {
  font-family: var(--font-mono);
}

.trend {
  font-weight: 700;
}

.trend--positive {
  color: #9df4b6;
}

.trend--negative {
  color: #ff9a9a;
}

.trend--neutral {
  color: var(--muted);
}

.banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  line-height: 1.5;
}

.banner--danger {
  background: rgba(255, 109, 109, 0.12);
  border-color: rgba(255, 109, 109, 0.24);
  color: #ffc9c9;
}

.banner--info {
  background: rgba(103, 211, 255, 0.1);
  border-color: rgba(103, 211, 255, 0.24);
  color: #cdeeff;
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(143, 164, 188, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(146, 166, 191, 0.46);
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #4dd4ac, #65b8ff);
  color: #061320;
  font-weight: 700;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.02);
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--sidebar {
    min-height: unset;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .hero,
  .panel {
    padding: 16px;
  }

  .panel-head,
  .records-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .table-shell {
    max-height: none;
  }
}
