:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef3f7;
  --surface-raised: #fbfdff;
  --text: #17202a;
  --muted: #64717f;
  --line: #d7e1ea;
  --line-strong: #b8c8d7;
  --green: #0d865f;
  --green-soft: #e2f5ec;
  --red: #c24444;
  --red-soft: #fae7e5;
  --blue: #1f6fae;
  --blue-soft: #e5f0fb;
  --amber: #ad7619;
  --amber-soft: #faefd9;
  --purple: #7357a6;
  --purple-soft: #eee8f8;
  --ink: #111a23;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.76);
  --surface-ink: #162331;
  --line-faint: rgba(219, 227, 234, 0.62);
  --line-glass: rgba(188, 202, 216, 0.72);
  --blue-ink: #174f80;
  --green-ink: #0b6f4f;
  --red-ink: #9f3535;
  --amber-ink: #8c5e13;
  --shadow: 0 18px 44px rgba(25, 34, 43, 0.13);
  --shadow-soft: 0 8px 18px rgba(25, 34, 43, 0.08);
  --shadow-tight: 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(25, 34, 43, 0.07);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 34px rgba(27, 39, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, #f4f7fa 0, #eef3f7 320px, #f7f8f3 100%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 111, 174, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 134, 95, 0.04) 1px, transparent 1px),
    linear-gradient(120deg, rgba(173, 118, 25, 0.055), transparent 34%);
  background-position:
    -1px -1px,
    -1px -1px,
    0 0;
  background-size:
    44px 44px,
    44px 44px,
    100% 560px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

#app {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(31, 111, 174, 0.16);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid rgba(198, 211, 223, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96)),
    var(--surface);
  color: var(--text);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

button:hover {
  border-color: rgba(154, 177, 198, 0.9);
  background:
    linear-gradient(180deg, #ffffff, #f4f8fb),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 174, 0.15);
}

button.primary {
  border-color: var(--blue);
  background: linear-gradient(180deg, #287bbd, var(--blue));
  color: white;
}

button.icon {
  width: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #26313c;
  background:
    linear-gradient(180deg, #ffffff, #f5f8fb),
    var(--surface);
}

button.icon:hover {
  color: var(--blue-ink);
}

input,
select {
  min-height: 40px;
  border: 1px solid rgba(198, 211, 223, 0.92);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 174, 0.15);
}

.shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 24px 38px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 640px) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 252, 0.9)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.94), 0 16px 42px rgba(24, 36, 48, 0.11);
  backdrop-filter: blur(14px);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--purple));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 7px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 26, 35, 0.98), rgba(24, 56, 82, 0.98) 56%, rgba(13, 134, 95, 0.9)),
    var(--surface-ink);
  position: relative;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(31, 111, 174, 0.2);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.7;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    6px -7px 0 rgba(255, 255, 255, 0.72),
    14px 5px 0 rgba(255, 255, 255, 0.64);
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 820;
}

.brand .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding-left: 46px;
  padding-right: 16px;
  border-color: rgba(156, 176, 196, 0.92);
  background:
    linear-gradient(180deg, #ffffff, #fbfdff),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(25, 34, 43, 0.06);
}

.search::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #7b8997;
  border-radius: 50%;
  transform: translateY(-58%);
  z-index: 1;
}

.search::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 28px;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: #7b8997;
  transform: rotate(45deg);
  z-index: 1;
}

.search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 254, 0.99)),
    var(--surface);
  border: 1px solid rgba(178, 193, 207, 0.96);
  box-shadow: 0 24px 58px rgba(17, 25, 33, 0.17);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  max-height: min(420px, 70vh);
  overflow-y: auto;
}

.search-results.open {
  display: block;
}

.search-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-faint);
  cursor: pointer;
  transition:
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.search-summary {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--muted);
  font-size: 12px;
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.08), rgba(13, 134, 95, 0.05), transparent 74%),
    linear-gradient(180deg, #fbfdff, #f3f7fa);
  display: grid;
  gap: 7px;
}

.search-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-status {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--blue);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-context {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #40505e;
  font-size: 12px;
  font-weight: 700;
}

.route-suggestion-context {
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 9px;
  border: 1px solid rgba(31, 111, 174, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #eef6fd, var(--blue-soft));
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-filter {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  border-color: rgba(199, 210, 220, 0.88);
}

.search-filter.active {
  border-color: rgba(31, 111, 174, 0.32);
  background: linear-gradient(180deg, #eef6fd, var(--blue-soft));
  color: var(--blue-ink);
  font-weight: 650;
}

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

.search-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 3px;
}

.search-item:hover,
.search-item:focus,
.search-item.selected {
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.055), transparent 58%),
    #f7fafc;
  outline: none;
}

.search-item.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.search-item:last-child {
  border-bottom: 0;
}

.search-item strong {
  display: block;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.search-symbol {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.search-reason {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.search-reason.curated {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(31, 111, 174, 0.16);
}

.search-reason.remote {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(13, 134, 95, 0.16);
}

.search-reason.dynamic {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(173, 118, 25, 0.18);
}

.search-reason.fallback,
.search-reason.neutral {
  color: var(--muted);
  background: var(--surface-3);
  border-color: var(--line);
}

.search-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 4px;
  min-width: 0;
  margin-top: 4px;
}

.search-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-rank-detail {
  flex: 1 1 150px;
  color: #40505e !important;
}

.search-rank-score {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(199, 210, 220, 0.86);
  background: rgba(239, 245, 249, 0.86);
  color: #40505e !important;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.search-market {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #edf6fd, var(--blue-soft));
  color: var(--blue-ink) !important;
  font-weight: 650;
}

.search-empty {
  display: grid;
  gap: 4px;
  text-align: left;
}

.search-empty strong {
  color: var(--text);
}

.search-empty span {
  color: var(--muted);
  font-size: 12px;
}

.search-empty-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(173, 118, 25, 0.22);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-ink) !important;
  font-weight: 750;
}

.search-empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

.search-empty-suggestions span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.search-empty-suggestions button {
  display: inline-grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  min-height: 38px;
  max-width: 150px;
  padding: 5px 9px;
  border-radius: 7px;
  border-color: rgba(31, 111, 174, 0.22);
  background: linear-gradient(180deg, #eef6fd, var(--blue-soft));
  color: var(--blue-ink);
  text-align: left;
  box-shadow: none;
}

.search-empty-suggestions button strong,
.search-empty-suggestions button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty-suggestions button strong {
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.1;
}

.search-empty-suggestions button small {
  color: #5a6875;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
}

.search-empty-suggestions button:hover {
  border-color: rgba(31, 111, 174, 0.38);
  background: #dcecf9;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.market-brief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line-glass);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(31, 111, 174, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 252, 0.97)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}

.market-brief::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--purple));
}

.market-brief::after {
  content: "";
  position: absolute;
  inset: 3px 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.06), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 42%),
    linear-gradient(90deg, rgba(17, 26, 35, 0.04) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    72px 100%;
}

.market-brief-main,
.brief-stats {
  position: relative;
  z-index: 1;
}

.market-brief-main {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
}

.eyebrow {
  color: var(--blue-ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-brief h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.market-brief p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brief-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brief-stat {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(204, 216, 227, 0.78);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 254, 0.82)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(27, 39, 51, 0.05);
}

.brief-stat.actionable {
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.brief-stat.actionable:hover {
  border-color: rgba(31, 111, 174, 0.28);
  background:
    linear-gradient(180deg, #ffffff, #f5f9fc),
    #f8fbfe;
}

.brief-stat span,
.brief-stat small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-stat span {
  color: #5a6875;
  font-size: 12px;
  font-weight: 760;
}

.brief-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 23px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.brief-stat small {
  margin-top: 8px;
  color: #3a4651;
  font-size: 12px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.status-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96)),
    var(--surface);
  border: 1px solid rgba(202, 214, 225, 0.76);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  box-shadow: var(--shadow-panel);
}

.status-pill .market {
  font-weight: 700;
  font-size: 13px;
}

.status-pill:nth-child(2) {
  border-left-color: var(--green);
}

.status-pill:nth-child(3) {
  border-left-color: var(--amber);
}

.status-pill:nth-child(4) {
  border-left-color: var(--purple);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.badge.open,
.badge.positive {
  color: var(--green-ink);
  background: linear-gradient(180deg, #eefaf4, var(--green-soft));
  border-color: rgba(13, 134, 95, 0.16);
}

.badge.closed,
.badge.negative {
  color: var(--red-ink);
  background: linear-gradient(180deg, #fff0ee, var(--red-soft));
  border-color: rgba(194, 68, 68, 0.15);
}

.badge.neutral,
.badge.unknown {
  color: var(--amber-ink);
  background: linear-gradient(180deg, #fff7e8, var(--amber-soft));
  border-color: rgba(173, 118, 25, 0.17);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-card,
.panel,
.table-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(250, 252, 253, 0.97)),
    var(--surface);
  border: 1px solid rgba(202, 214, 225, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.market-card {
  padding: 18px;
  min-height: 154px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.market-card > * {
  position: relative;
  z-index: 1;
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
  opacity: 0.76;
}

.market-card::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 111, 174, 0.045), transparent);
}

.market-card:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
}

.market-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--amber), var(--blue), var(--green));
}

.market-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.market-card h2,
.panel h2,
.table-panel h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 820;
}

.market-card .change {
  margin: 14px 0 12px;
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.positive-text {
  color: var(--green-ink);
}

.negative-text {
  color: var(--red-ink);
}

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

.leader-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  cursor: pointer;
  border-top: 1px solid rgba(219, 227, 234, 0.54);
  transition:
    color 0.14s ease,
    transform 0.14s ease;
}

.leader-row:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-faint);
}

.panel-header h2,
.table-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-header h2::before,
.table-title h2::before {
  content: "";
  width: 6px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), var(--green), var(--amber));
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.heat-cell {
  min-height: 66px;
  border-radius: 7px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 5px 12px rgba(27, 39, 51, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.heat-cell:hover {
  border-color: rgba(31, 111, 174, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.heat-cell strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heat-cell span {
  display: block;
  margin-top: 5px;
  font-weight: 800;
}

.heat-cell small {
  display: block;
  margin-top: 3px;
  color: rgba(23, 32, 42, 0.62);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mover-list {
  display: grid;
  gap: 8px;
}

.mover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.92));
  border: 1px solid rgba(219, 227, 234, 0.76);
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.mover-row:hover {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.mover-row strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.mover-row span {
  color: var(--muted);
  font-size: 12px;
}

.table-panel {
  overflow: hidden;
}

.table-title {
  padding: 16px 16px 10px;
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  color: #586776;
  font-weight: 760;
  background:
    linear-gradient(180deg, #f9fbfd, #f1f6fa);
  border-bottom: 1px solid var(--line-faint);
  padding: 11px 12px;
}

td {
  border-bottom: 1px solid var(--line-faint);
  padding: 12px;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
  transition: background 0.14s ease;
}

tbody tr:nth-child(even) {
  background: rgba(248, 251, 253, 0.46);
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(31, 111, 174, 0.065), transparent 60%);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.detail-header {
  background:
    linear-gradient(110deg, rgba(31, 111, 174, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(249, 252, 254, 0.97)),
    var(--surface);
  border: 1px solid rgba(202, 214, 225, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.detail-header h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.15;
}

.detail-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quote-box {
  text-align: right;
  min-width: 180px;
  padding-left: 22px;
  border-left: 1px solid var(--line-faint);
}

.quote-price {
  font-size: 30px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(249, 252, 253, 0.975)),
    var(--surface);
  border: 1px solid rgba(202, 214, 225, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 18px;
  margin-bottom: 18px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-faint);
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background:
    linear-gradient(180deg, #edf3f8, #e8eff5);
  border-radius: var(--radius);
  border: 1px solid rgba(199, 210, 220, 0.88);
}

.segmented button {
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0 10px;
}

.segmented button.active {
  background:
    linear-gradient(180deg, #ffffff, #f8fbfe),
    var(--surface);
  color: var(--blue-ink);
  box-shadow: 0 1px 8px rgba(25, 34, 43, 0.12);
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.summary-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.92));
  border-radius: 7px;
  padding: 10px;
  min-width: 0;
  border: 1px solid rgba(219, 227, 234, 0.74);
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-tile strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-line {
  width: 20px;
  height: 3px;
  display: inline-block;
  border-radius: 99px;
  background: var(--blue);
}

.legend-line.ma50 {
  background: var(--amber);
}

.legend-line.boll {
  background: rgba(31, 111, 174, 0.34);
  border-top: 1px dashed var(--blue);
}

.legend-line.last {
  background: repeating-linear-gradient(90deg, #17202a 0 4px, transparent 4px 8px);
}

canvas {
  display: block;
  width: 100%;
  border-radius: 7px;
  cursor: crosshair;
  touch-action: pan-y;
  background:
    linear-gradient(rgba(31, 111, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 174, 0.028) 1px, transparent 1px),
    #fbfdff;
  background-size:
    52px 52px,
    52px 52px,
    auto;
  border: 1px solid rgba(206, 218, 229, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#priceChart {
  height: 430px;
}

#indicatorChart {
  height: 180px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.technical-readout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.readout-card {
  border: 1px solid rgba(219, 227, 234, 0.76);
  border-radius: 7px;
  padding: 11px;
  min-height: 94px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 5px 12px rgba(27, 39, 51, 0.04);
}

.readout-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.readout-top span {
  color: var(--muted);
  font-size: 12px;
}

.readout-top strong {
  font-size: 13px;
  white-space: nowrap;
}

.readout-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.92));
  border: 1px solid rgba(219, 227, 234, 0.74);
  border-radius: 7px;
  padding: 11px;
  min-height: 70px;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
}

.metric .value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.source-health {
  display: grid;
  gap: 10px;
}

.source-health-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.source-health-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.source-health-summary button {
  min-height: auto;
  text-align: left;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(219, 227, 234, 0.76);
  border-left-width: 3px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
  box-shadow: none;
  transform: none;
}

.source-health-summary button:hover {
  background: #f7fbff;
  box-shadow: var(--shadow-soft);
}

.source-health-summary button.positive {
  border-left-color: var(--green);
}

.source-health-summary button.neutral {
  border-left-color: var(--amber);
}

.source-health-summary button.negative {
  border-left-color: var(--red);
}

.source-jump-focus {
  outline: 2px solid rgba(31, 111, 174, 0.34);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(31, 111, 174, 0.1);
  transition:
    outline-color 0.18s ease,
    box-shadow 0.18s ease;
}

.source-health-summary span,
.source-health-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-health-summary span {
  color: var(--muted);
  font-size: 12px;
}

.source-health-summary strong {
  margin-top: 5px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.source-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.source-health-grid div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 253, 0.92));
  border: 1px solid rgba(219, 227, 234, 0.74);
}

.source-health-grid span,
.source-event span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.source-health-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.source-health-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.source-health-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.source-events {
  display: grid;
  gap: 7px;
}

.search-quality {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-faint);
}

.search-quality-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-quality-head strong {
  font-size: 13px;
}

.search-quality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.search-quality-meta span,
.search-quality-meta button {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.search-quality-meta button {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.search-quality-meta button:hover {
  background: var(--blue-soft);
  border-color: rgba(31, 111, 174, 0.22);
  transform: none;
}

.search-quality-empty {
  display: none;
  padding: 9px 10px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface-raised);
}

.search-quality.collapsed .search-quality-empty {
  display: block;
}

.search-quality-list {
  display: grid;
  gap: 9px;
}

.search-quality.collapsed .search-quality-group.all-clear,
.search-quality.collapsed .search-quality-item.positive {
  display: none;
}

.search-quality-group {
  display: grid;
  gap: 7px;
}

.search-quality-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.search-quality-group-head strong {
  color: #26313c;
  font-size: 12px;
}

.search-quality-group-head span {
  font-variant-numeric: tabular-nums;
}

.search-quality-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(219, 227, 234, 0.76);
  border-left-width: 3px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
}

.search-quality-item.positive {
  border-left-color: var(--green);
}

.search-quality-item.neutral {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.search-quality-item.negative {
  border-left-color: var(--red);
}

.search-quality-item strong,
.search-quality-item span,
.search-quality-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-quality-item strong,
.search-quality-item span {
  white-space: nowrap;
}

.search-quality-item strong {
  font-size: 13px;
}

.search-quality-item span {
  color: var(--muted);
  font-size: 12px;
}

.search-quality-item .search-quality-latency {
  color: #40505e;
  font-variant-numeric: tabular-nums;
}

.search-quality-item small {
  color: #40505e;
  font-size: 12px;
  line-height: 1.45;
}

.search-quality-slow-reasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.search-quality-slow-reasons span {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
}

.search-quality-slow-reasons b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(173, 118, 25, 0.24);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.search-quality-remote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.search-quality-remote span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.search-quality-remote b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.search-quality-remote b.positive {
  border-color: rgba(13, 134, 95, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.search-quality-remote b.neutral {
  border-color: rgba(173, 118, 25, 0.24);
  background: var(--amber-soft);
  color: var(--amber);
}

.search-quality-remote b.negative {
  border-color: rgba(194, 68, 68, 0.22);
  background: var(--red-soft);
  color: var(--red);
}

.search-quality-remote-errors {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(194, 68, 68, 0.18);
  border-radius: 7px;
  background: #fff7f5;
}

.search-quality-remote-errors span {
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.search-quality-remote-errors small {
  color: #7d342e;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.search-quality-remote-errors em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.search-quality-fallbacks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.search-quality-fallbacks span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.search-quality-fallbacks button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border-color: rgba(31, 111, 174, 0.22);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.search-quality-fallbacks button:hover {
  border-color: rgba(31, 111, 174, 0.38);
  background: #dcecf9;
  transform: none;
  box-shadow: none;
}

.source-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(219, 227, 234, 0.76);
  border-left-width: 3px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
}

.source-event.positive {
  border-left-color: var(--green);
}

.source-event.neutral {
  border-left-color: var(--amber);
}

.source-event.negative {
  border-left-color: var(--red);
}

.source-event strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-error {
  padding: 10px;
  border: 1px solid #e8b7b0;
  border-radius: 7px;
  background: #fff5f3;
  color: #8f3127;
  font-size: 13px;
}

.source-empty {
  min-height: 48px;
}

.indicator-stack {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.indicator-stack div {
  border: 1px solid rgba(219, 227, 234, 0.74);
  border-radius: 7px;
  padding: 10px;
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
}

.indicator-stack span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.indicator-stack strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.news-insights {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-bottom: 12px;
}

.sentiment-card {
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.92));
  border: 1px solid rgba(219, 227, 234, 0.74);
}

.sentiment-card.positive {
  background: var(--green-soft);
  color: var(--green);
}

.sentiment-card.negative {
  background: var(--red-soft);
  color: var(--red);
}

.sentiment-card.neutral {
  background: var(--amber-soft);
  color: var(--amber);
}

.sentiment-card span,
.sentiment-card small {
  display: block;
  font-size: 12px;
}

.sentiment-card strong {
  display: block;
  margin: 5px 0;
  font-size: 18px;
}

.topic-cloud {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #26313c;
  font-size: 12px;
  border: 1px solid var(--line);
}

.topic-cloud b {
  color: var(--muted);
  font-size: 11px;
}

.news-meta-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  padding: 13px;
  border: 1px solid rgba(219, 227, 234, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, var(--surface-raised));
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.news-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.news-item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.news-item p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-block {
  display: grid;
  gap: 10px;
}

.analysis-block p {
  margin: 0;
  line-height: 1.55;
  color: #26313c;
  font-size: 13px;
}

.dashboard-grid > aside,
.detail-layout > aside {
  position: sticky;
  top: 94px;
}

.risk-list {
  margin: 0;
  padding-left: 18px;
  color: #26313c;
  font-size: 13px;
  line-height: 1.5;
}

.source-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.loading.compact {
  min-height: 96px;
}

.loading-card {
  min-width: min(320px, 100%);
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 22px;
  color: var(--muted);
}

.loading-orbit {
  width: 48px;
  height: 48px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-radius: 50%;
  position: relative;
  animation: spin 0.9s linear infinite;
}

.loading-orbit span {
  position: absolute;
  inset: 9px;
  border: 2px solid transparent;
  border-bottom-color: var(--amber);
  border-radius: 50%;
  animation: spin 1.4s linear infinite reverse;
}

.loading-copy {
  display: grid;
  place-items: center;
  gap: 8px;
}

.loading-copy strong {
  color: var(--text);
  font-size: 14px;
}

.loading-dots {
  display: flex;
  gap: 5px;
  height: 10px;
  align-items: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  animation: pulse-dot 1.1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  45% {
    transform: translateY(-4px);
    opacity: 0.9;
  }
}

.error {
  border: 1px solid #e8b7b0;
  background: #fff5f3;
  color: #8f3127;
  border-radius: var(--radius);
  padding: 14px;
}

/* Visual refinement layer: dense terminal layout with quieter surfaces. */
:root {
  --canvas: #f7f9fb;
  --canvas-warm: #f5f4ef;
  --surface-line: rgba(196, 209, 221, 0.72);
  --surface-line-strong: rgba(146, 166, 185, 0.62);
  --ink-soft: #25313d;
  --topbar-bg: rgba(255, 255, 255, 0.86);
  --control-bg: #ffffff;
  --control-hover: #f5f8fb;
  --shadow: 0 18px 42px rgba(28, 38, 49, 0.11);
  --shadow-soft: 0 8px 18px rgba(28, 38, 49, 0.065);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(28, 38, 49, 0.065);
}

html,
body {
  background:
    linear-gradient(180deg, #f6f8fa 0, #eef3f6 360px, #f8f8f2 100%),
    var(--bg);
}

body::before {
  background-image:
    linear-gradient(rgba(31, 111, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 42%);
  background-size:
    44px 44px,
    44px 44px,
    100% 620px;
  opacity: 0.78;
}

.shell {
  padding-top: 18px;
}

button {
  background: var(--control-bg);
  border-color: var(--surface-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

button:hover {
  background: var(--control-hover);
  border-color: var(--surface-line-strong);
  box-shadow: var(--shadow-soft);
}

button.primary {
  background: linear-gradient(180deg, #2a78b5, #1d669f);
  box-shadow: 0 10px 20px rgba(31, 111, 174, 0.18);
}

button.icon {
  background: #ffffff;
  border-color: var(--surface-line);
  color: var(--ink-soft);
}

input,
select {
  background: var(--control-bg);
  border-color: var(--surface-line);
}

.topbar {
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 760px) auto;
  gap: 18px;
  top: 12px;
  padding: 10px 12px;
  border-color: rgba(182, 198, 213, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 252, 0.86)),
    var(--topbar-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 34px rgba(25, 36, 47, 0.1);
}

.topbar::before {
  height: 1px;
  opacity: 0.95;
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background:
    linear-gradient(140deg, #111a23 0%, #19354f 56%, #0d6f53 100%),
    var(--surface-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(17, 26, 35, 0.16);
}

.brand h1 {
  color: #121b24;
  font-size: 17px;
  font-weight: 840;
}

.brand .sub {
  color: #64717f;
  font-size: 11px;
}

.search input {
  min-height: 48px;
  border-color: rgba(160, 179, 197, 0.8);
  background:
    linear-gradient(180deg, #ffffff, #f9fbfd),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 22px rgba(25, 34, 43, 0.055);
}

.search input::placeholder {
  color: #7a8794;
}

.search-results {
  top: calc(100% + 10px);
  border-color: rgba(164, 181, 198, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(248, 251, 253, 0.992)),
    var(--surface);
  box-shadow: 0 26px 64px rgba(18, 27, 36, 0.18);
}

.search-summary {
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.08), rgba(13, 134, 95, 0.05), rgba(173, 118, 25, 0.035)),
    #f7fafc;
}

.search-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.search-item:hover,
.search-item:focus,
.search-item.selected {
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.07), transparent 66%),
    #f8fbfd;
}

.market-brief {
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 20px;
  min-height: 172px;
  border-color: rgba(30, 48, 65, 0.16);
  background:
    linear-gradient(135deg, rgba(18, 27, 36, 0.98) 0%, rgba(26, 56, 80, 0.96) 54%, rgba(15, 114, 82, 0.88) 100%),
    #121b24;
  box-shadow: 0 18px 42px rgba(18, 27, 36, 0.16);
}

.market-brief::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16));
}

.market-brief::after {
  inset: 1px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 62%);
  background-size:
    72px 100%,
    auto;
  opacity: 0.64;
}

.market-brief-main {
  gap: 9px;
  color: #ffffff;
}

.eyebrow {
  color: rgba(220, 238, 249, 0.78);
  letter-spacing: 0;
}

.market-brief h2 {
  color: #ffffff;
  font-size: 31px;
}

.market-brief p {
  color: rgba(232, 240, 246, 0.78);
}

.brief-stat {
  border-color: rgba(255, 255, 255, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.brief-stat.actionable:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.1);
}

.brief-stat span {
  color: rgba(232, 240, 246, 0.72);
}

.brief-stat strong {
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.12);
}

.brief-stat strong.positive-text {
  color: #8be0bd;
}

.brief-stat strong.negative-text {
  color: #ffb0a8;
}

.brief-stat small {
  color: rgba(232, 240, 246, 0.72);
}

.status-strip {
  gap: 10px;
}

.status-pill {
  padding: 12px 13px;
  border-left-width: 4px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.market-card,
.panel,
.table-panel,
.chart-wrap,
.detail-header {
  border-color: var(--surface-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.996), rgba(250, 252, 253, 0.972)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}

.market-card {
  min-height: 148px;
  padding: 17px;
}

.market-card::before {
  height: 2px;
  opacity: 0.9;
}

.market-card::after {
  height: 46px;
  background: linear-gradient(180deg, rgba(31, 111, 174, 0.035), transparent);
}

.market-card:hover,
.panel:hover,
.table-panel:hover,
.chart-wrap:hover {
  border-color: var(--surface-line-strong);
}

.market-card .change {
  margin: 12px 0 10px;
  font-size: 28px;
}

.panel,
.chart-wrap {
  padding: 17px;
}

.panel-header {
  margin-bottom: 13px;
  padding-bottom: 11px;
}

.panel-header h2::before,
.table-title h2::before {
  width: 4px;
  height: 17px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.heatmap {
  gap: 8px;
}

.heat-cell {
  min-height: 70px;
  border-color: rgba(23, 32, 42, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 5px 12px rgba(27, 39, 51, 0.035);
}

.mover-row,
.summary-tile,
.readout-card,
.metric,
.indicator-stack div,
.source-health-grid div,
.source-event,
.search-quality-item,
.news-item {
  border-color: rgba(211, 222, 232, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 251, 253, 0.94)),
    var(--surface-raised);
}

.mover-row:hover,
.news-item:hover {
  border-color: var(--surface-line-strong);
  box-shadow: var(--shadow-soft);
}

.table-title {
  padding: 16px 17px 11px;
}

th {
  color: #536273;
  background: #f5f8fb;
}

td {
  background-clip: padding-box;
}

tbody tr:nth-child(even) {
  background: rgba(245, 248, 251, 0.62);
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.07), transparent 62%),
    #f8fbfd;
}

.detail-header {
  align-items: center;
  padding: 20px 22px;
}

.detail-header h1 {
  color: #121b24;
  font-size: 28px;
}

.detail-header .meta {
  gap: 7px;
}

.quote-box {
  min-width: 220px;
  padding: 14px 0 14px 22px;
}

.quote-price {
  color: #121b24;
  font-size: 31px;
}

.chart-toolbar {
  align-items: center;
}

.segmented {
  background: #edf2f6;
  border-color: rgba(193, 207, 219, 0.9);
}

.segmented button.active {
  color: #174f80;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 16px rgba(25, 34, 43, 0.11);
}

canvas {
  border: 1px solid rgba(205, 218, 229, 0.74);
}

.source-bar {
  border-top-color: rgba(211, 222, 232, 0.82);
}

.badge {
  box-shadow: none;
}

.positive-text {
  color: #0a7a56;
}

.negative-text {
  color: #b83a3a;
}

@media (max-width: 1180px) {
  .market-brief {
    grid-template-columns: 1fr;
    background:
      linear-gradient(135deg, rgba(18, 27, 36, 0.98) 0%, rgba(26, 56, 80, 0.96) 54%, rgba(15, 114, 82, 0.88) 100%),
      #121b24;
  }

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

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

  .dashboard-grid > aside,
  .detail-layout > aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    top: 8px;
    padding: 10px;
    gap: 10px;
  }

  .market-brief {
    padding: 14px;
    gap: 13px;
    background:
      linear-gradient(135deg, rgba(18, 27, 36, 0.98) 0%, rgba(26, 56, 80, 0.96) 54%, rgba(15, 114, 82, 0.88) 100%),
      #121b24;
  }

  .market-brief h2 {
    font-size: 23px;
  }

  .brief-stats {
    grid-template-columns: 1fr;
  }

  .brief-stat {
    border-bottom: 1px solid rgba(199, 210, 220, 0.72);
  }

  .brief-stat:last-child {
    border-bottom: 0;
  }

  .brand h1 {
    font-size: 18px;
  }

  .actions {
    justify-content: flex-start;
  }

  .search-item {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 10px;
  }

  .status-strip,
  .overview-grid,
  .heatmap,
  .chart-summary,
  .technical-readout,
  .indicator-stack,
  .news-insights,
  .metric-grid,
  .source-health-summary,
  .source-health-grid {
    grid-template-columns: 1fr;
  }

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

  .quote-box {
    text-align: left;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-panel {
    overflow-x: auto;
  }

  table {
    min-width: 720px;
  }

  #priceChart {
    height: 340px;
  }
}

/* Aesthetic refresh layer: cleaner research-terminal composition. */
:root {
  --app-bg: #eef2f5;
  --app-bg-warm: #f6f5ef;
  --panel-bg: rgba(255, 255, 255, 0.94);
  --panel-bg-solid: #ffffff;
  --panel-tint: #f7fafc;
  --hairline: rgba(174, 190, 205, 0.66);
  --hairline-strong: rgba(119, 142, 164, 0.58);
  --nav-shadow: 0 20px 50px rgba(18, 27, 36, 0.13);
  --panel-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 26px rgba(30, 42, 54, 0.07);
  --panel-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.96), 0 18px 38px rgba(30, 42, 54, 0.11);
  --terminal-dark: #111923;
  --terminal-mid: #18324a;
  --terminal-accent: #0d8060;
  --value-up: #087653;
  --value-down: #b33636;
}

html,
body {
  background:
    linear-gradient(180deg, rgba(246, 249, 251, 0.98) 0, rgba(235, 241, 246, 0.96) 315px, rgba(248, 248, 241, 0.98) 100%),
    var(--app-bg);
}

body::before {
  background-image:
    linear-gradient(rgba(31, 111, 174, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 35, 0.024) 1px, transparent 1px),
    linear-gradient(155deg, rgba(13, 128, 96, 0.06), transparent 32%),
    linear-gradient(25deg, rgba(173, 118, 25, 0.045), transparent 28%);
  background-size:
    56px 56px,
    56px 56px,
    100% 560px,
    100% 620px;
  opacity: 0.72;
}

.shell {
  max-width: 1504px;
  padding: 20px 22px 42px;
}

.topbar {
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 780px) auto;
  gap: 18px;
  padding: 10px 12px;
  border-color: rgba(176, 193, 209, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(247, 250, 252, 0.88)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}

.topbar::before {
  height: 1px;
  opacity: 0.78;
}

.brand {
  padding: 3px 5px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background:
    linear-gradient(145deg, #0f1720 0%, #1d3c59 58%, #0a7a5b 100%),
    var(--terminal-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(14, 25, 34, 0.2);
}

.brand h1 {
  color: #101820;
  font-size: 17px;
}

.brand .sub {
  color: #607080;
}

.search input {
  min-height: 50px;
  border-color: rgba(143, 164, 185, 0.68);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 28px rgba(22, 34, 45, 0.075);
}

.search input:focus {
  border-color: rgba(31, 111, 174, 0.78);
  box-shadow:
    0 0 0 3px rgba(31, 111, 174, 0.14),
    0 12px 30px rgba(22, 34, 45, 0.09);
}

.search-results {
  border-color: rgba(146, 165, 184, 0.82);
  box-shadow: 0 28px 70px rgba(16, 24, 32, 0.2);
}

.search-summary {
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.09), rgba(13, 128, 96, 0.055), rgba(173, 118, 25, 0.035)),
    #f8fafc;
}

.search-item {
  grid-template-columns: minmax(0, 1fr) 36px 36px;
}

.search-item strong {
  color: #101820;
}

.search-market,
.search-rank-score {
  border-radius: 5px;
}

.market-brief {
  min-height: 178px;
  padding: 24px;
  border-color: rgba(17, 26, 35, 0.22);
  background:
    linear-gradient(135deg, rgba(17, 25, 35, 0.99) 0%, rgba(26, 55, 79, 0.98) 54%, rgba(12, 122, 91, 0.9) 100%),
    var(--terminal-dark);
  box-shadow:
    0 22px 48px rgba(17, 26, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.market-brief::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12));
}

.market-brief::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 56%),
    linear-gradient(120deg, transparent 0 56%, rgba(255, 255, 255, 0.05) 56% 57%, transparent 57% 100%);
  background-size:
    72px 100%,
    auto,
    28px 28px;
}

.market-brief-main {
  align-content: end;
  padding-right: 8px;
}

.market-brief h2 {
  font-size: 34px;
  font-weight: 860;
}

.market-brief p {
  color: rgba(235, 243, 248, 0.76);
}

.eyebrow {
  color: rgba(218, 237, 248, 0.72);
  font-size: 10px;
}

.brief-stats {
  gap: 10px;
}

.brief-stat {
  display: grid;
  align-content: space-between;
  min-height: 126px;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.075);
}

.brief-stat span {
  font-size: 11px;
  text-transform: none;
}

.brief-stat strong {
  margin-top: 10px;
  font-size: 27px;
  font-weight: 860;
}

.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-pill {
  border-color: rgba(196, 209, 221, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.88)),
    var(--panel-bg);
}

.status-pill .market {
  color: #16212c;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  gap: 18px;
}

.market-card,
.panel,
.table-panel,
.chart-wrap,
.detail-header {
  border-color: var(--hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.975), rgba(249, 252, 253, 0.94)),
    var(--panel-bg-solid);
  box-shadow: var(--panel-shadow);
}

.market-card:hover,
.panel:hover,
.table-panel:hover,
.chart-wrap:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--panel-shadow-hover);
}

.market-card {
  min-height: 150px;
  padding: 16px;
}

.market-card::before {
  height: 2px;
  opacity: 0.82;
}

.market-card::after {
  height: 42px;
  background: linear-gradient(180deg, rgba(31, 111, 174, 0.035), transparent);
}

.market-card h2,
.panel h2,
.table-panel h2 {
  color: #121b24;
}

.market-card .change {
  color: #17202a;
  font-size: 30px;
}

.market-card .change.positive-text {
  color: var(--value-up);
}

.market-card .change.negative-text {
  color: var(--value-down);
}

.leader-row {
  border-top-color: rgba(215, 225, 234, 0.72);
}

.panel,
.chart-wrap {
  padding: 16px;
}

.panel-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.panel-header h2::before,
.table-title h2::before {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #1f6fae, #0d8060);
}

.heatmap {
  gap: 7px;
}

.heat-cell {
  min-height: 74px;
  padding: 10px 11px;
  border-color: rgba(17, 26, 35, 0.1);
}

.heat-cell strong {
  color: #121b24;
  font-weight: 790;
}

.heat-cell span {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.mover-row,
.summary-tile,
.readout-card,
.metric,
.indicator-stack div,
.source-health-grid div,
.source-event,
.search-quality-item,
.news-item {
  border-color: rgba(210, 221, 231, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.992), rgba(248, 251, 253, 0.96)),
    var(--panel-bg-solid);
}

.mover-row {
  padding: 11px 12px;
}

.mover-row strong,
.metric .value,
.summary-tile strong,
.source-health-grid strong {
  color: #121b24;
}

.table-panel {
  border-radius: var(--radius);
}

.table-title {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.92)),
    var(--panel-bg);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #526171;
  background: #f4f7fa;
}

td {
  color: #1a2530;
}

tbody tr:nth-child(even) {
  background: rgba(246, 249, 252, 0.62);
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(31, 111, 174, 0.075), transparent 68%),
    #f9fbfd;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 370px;
}

.detail-header {
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(31, 111, 174, 0.075), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(249, 252, 253, 0.955)),
    var(--panel-bg-solid);
}

.detail-header h1 {
  font-size: 29px;
  font-weight: 860;
}

.quote-box {
  min-width: 228px;
}

.quote-price {
  font-size: 32px;
  font-weight: 880;
}

.chart-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.96)),
    var(--panel-bg-solid);
}

.chart-toolbar h2 {
  margin: 0;
  font-size: 15px;
}

.segmented {
  border-color: rgba(186, 202, 217, 0.82);
  background: #eef3f7;
}

.segmented button {
  border-radius: 6px;
}

.segmented button.active {
  background: #ffffff;
}

canvas {
  background:
    linear-gradient(rgba(31, 111, 174, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 174, 0.026) 1px, transparent 1px),
    #fbfdff;
  background-size:
    48px 48px,
    48px 48px,
    auto;
}

.source-health-summary button,
.search-quality-meta span,
.search-quality-meta button,
.source-health-meta span {
  background: rgba(255, 255, 255, 0.86);
}

.source-health-summary button {
  border-color: rgba(210, 221, 231, 0.82);
}

.search-quality-item.neutral {
  background:
    linear-gradient(180deg, #fffdf7, #fff8ea);
}

.news-item h3 {
  color: #121b24;
}

.analysis-block p,
.risk-list {
  color: #24313d;
}

.loading-card {
  min-height: 118px;
}

.loading-orbit {
  border-color: rgba(199, 212, 223, 0.78);
  border-top-color: var(--blue);
  border-right-color: var(--green);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1fr) auto;
  }

  .market-brief,
  .dashboard-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > aside,
  .detail-layout > aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 12px 10px 28px;
  }

  .topbar {
    grid-template-columns: 1fr;
    top: 8px;
    gap: 10px;
    padding: 10px;
  }

  .brand {
    padding: 2px;
  }

  .search input {
    min-height: 46px;
  }

  .actions {
    justify-content: flex-start;
  }

  .market-brief {
    min-height: auto;
    padding: 16px;
  }

  .market-brief h2 {
    font-size: 24px;
  }

  .brief-stats,
  .status-strip,
  .overview-grid,
  .heatmap,
  .chart-summary,
  .technical-readout,
  .indicator-stack,
  .news-insights,
  .metric-grid,
  .source-health-summary,
  .source-health-grid {
    grid-template-columns: 1fr;
  }

  .brief-stat {
    min-height: 86px;
  }

  .detail-header {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .quote-box {
    min-width: 0;
    text-align: left;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .search-item {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    padding: 10px;
  }

  .table-panel {
    overflow-x: auto;
  }

  table {
    min-width: 720px;
  }

  #priceChart {
    height: 340px;
  }
}
