:root {
  --bg: #f8efe1;
  --panel: rgba(255, 252, 246, 0.92);
  --panel-strong: #fffaf1;
  --line: rgba(195, 138, 55, 0.18);
  --text: #21180f;
  --muted: #8c7d6d;
  --orange: #f28a16;
  --orange-dark: #b95a08;
  --red: #ff2020;
  --green: #18a955;
  --shadow: 0 18px 48px rgba(144, 93, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32rem),
    linear-gradient(135deg, #fff7ea 0%, #f4e7d5 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  position: fixed;
  top: 96px;
  left: 14px;
  bottom: 20px;
  z-index: 5;
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 12px;
  color: #8f552b;
}

.side-item {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.side-item .icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #ff7f1a;
  font-size: 24px;
  line-height: 1;
}

.side-item.active,
.side-item:hover {
  background: rgba(255, 250, 241, 0.92);
  border-color: rgba(242, 138, 22, 0.24);
  box-shadow: 0 18px 48px rgba(144, 93, 31, 0.12);
  color: #b74f08;
  font-weight: 700;
}

.side-footer {
  margin-top: auto;
  text-align: center;
  font-size: 13px;
}

.main {
  width: 100%;
  padding-left: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 84px;
  display: grid;
  grid-template-columns: 190px 1fr 300px 86px;
  align-items: center;
  gap: 22px;
  padding: 0 26px 0 30px;
  background: rgba(255, 248, 236, 0.9);
  border-bottom: 1px solid rgba(220, 177, 111, 0.18);
  backdrop-filter: blur(18px);
}

.brand h1 {
  margin: 0;
  color: var(--orange-dark);
  font-size: 27px;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: #d06c12;
  font-size: 12px;
}

.brand-link {
  display: block;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-tab {
  display: inline-grid;
  place-items: center;
  min-width: 70px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d1711;
  font-weight: 700;
}

.nav-tab.active,
.nav-tab:hover {
  color: #db6b00;
  background: rgba(246, 142, 25, 0.12);
}

.nav-tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.side-item.disabled {
  cursor: not-allowed;
  color: #8f552b;
  opacity: 1;
}

.side-item.disabled .icon {
  color: #ff7f1a;
}

.search,
.table-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search input,
.table-search input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 24px;
  border: 1px solid rgba(229, 164, 83, 0.42);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 252, 246, 0.8);
}

.search span,
.table-search span {
  position: absolute;
  right: 18px;
  color: var(--orange);
  font-size: 22px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #e8b16a, #6f3c12);
  border: 3px solid #f8d49a;
}

.profile strong {
  padding: 3px 8px;
  border-radius: 999px;
  color: #16110c;
  background: #ffb11c;
  font-style: italic;
  font-size: 13px;
}

.dashboard {
  padding: 16px 28px 0 148px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1.1fr) 360px;
  gap: 12px;
  align-items: start;
}

.panel,
.quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px 24px;
}

.hero-card {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 416px;
}

.chart-panel {
  grid-column: 2;
  grid-row: 1;
  min-height: 416px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  color: #a34d05;
}

.panel-heading h2 {
  font-size: 27px;
}

.panel-heading h3 {
  position: relative;
  padding-left: 10px;
  font-size: 18px;
}

.panel-heading h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--orange);
}

.panel-heading a {
  color: #b56d25;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.primary-btn {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #f6a22d, #dc7108);
  box-shadow: 0 8px 18px rgba(225, 115, 8, 0.22);
}

.hero-value {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 8px;
}

.hero-value span {
  color: #22b35c;
  font-size: 36px;
  font-weight: 800;
}

.hero-value small {
  color: #1a9d53;
  font-weight: 700;
}

.hero-value .red {
  color: var(--red);
}

.hero-value .green {
  color: var(--green) !important;
}

.intro-wrap {
  position: relative;
  min-height: 78px;
  margin: 14px 0 18px;
}

.intro {
  display: -webkit-box;
  margin: 0;
  max-height: 76px;
  overflow: hidden;
  color: #5f5144;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.intro-more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: 34px;
  color: #db6b00;
  background: linear-gradient(90deg, rgba(255, 252, 246, 0), var(--panel) 32%);
  font-size: 13px;
  font-weight: 800;
}

.intro-more::before {
  content: "…";
  margin-right: 4px;
  color: #5f5144;
}

.intro-more:hover {
  color: #b74f08;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
}

.stat-row div {
  display: grid;
  place-items: center;
  min-height: 66px;
  border-radius: 6px;
  background: rgba(243, 231, 213, 0.54);
}

.stat-row span,
.meta-row span {
  color: #7e7163;
  font-size: 13px;
}

.stat-row strong {
  font-size: 22px;
}

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

.green {
  color: var(--green) !important;
}

.muted {
  color: #807164 !important;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  text-align: center;
}

.meta-row div {
  display: grid;
  gap: 8px;
}

.chart-panel canvas,
.market-card canvas {
  width: 100%;
  height: auto;
  margin-top: 16px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 7px;
  background: rgba(244, 229, 207, 0.65);
}

.segmented button {
  height: 27px;
  min-width: 42px;
  border: 0;
  border-radius: 5px;
  color: #b56818;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.segmented button.active {
  color: #d66c04;
  background: #fff8eb;
}

.right-col {
  grid-column: 3;
  grid-row: 1;
}

.market-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--red);
  font-size: 29px;
  font-weight: 900;
}

.market-card {
  min-height: 416px;
}

.market-number small {
  display: inline-flex;
  gap: 12px;
  font-size: 13px;
}

.market-more,
.panel-note {
  color: #8b7e70;
  font-size: 13px;
  font-weight: 700;
}

.market-more {
  color: #b95a08;
}

.index-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  color: #766a5f;
  font-size: 12px;
}

.index-row span {
  display: grid;
  gap: 5px;
}

.index-row strong {
  color: var(--red);
}

.quick-actions {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-panel {
  grid-column: 1 / 3;
  grid-row: 2;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.signal-item {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(222, 162, 84, 0.38);
  border-radius: 7px;
  color: #2b2117;
  background: rgba(255, 252, 246, 0.72);
  text-align: left;
}

.signal-item:hover {
  border-color: rgba(242, 138, 22, 0.68);
  background: rgba(255, 243, 222, 0.82);
}

.signal-item span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.signal-item strong {
  font-size: 16px;
}

.signal-item small {
  color: #6b5b4b;
  line-height: 1.6;
}

.quick-card {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  padding: 15px 20px;
  border: 0;
  text-align: left;
  color: var(--text);
}

.quick-card span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffc56d, #f28412);
  font-size: 22px;
}

.quick-card strong {
  font-size: 17px;
}

.quick-card small {
  color: #7d7064;
}

.ranking-panel {
  grid-column: 1 / 3;
  grid-row: 3;
}

.table-search {
  width: 180px;
}

.table-search input {
  height: 34px;
  padding-left: 18px;
}

.tab-row {
  display: flex;
  gap: 46px;
  margin: 18px 0 18px;
  border-bottom: 1px solid rgba(161, 104, 35, 0.16);
}

.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sort-row button {
  height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(222, 162, 84, 0.38);
  border-radius: 999px;
  color: #9a5f16;
  background: rgba(255, 252, 246, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.sort-row button.active {
  color: #fff;
  border-color: transparent;
  background: var(--orange);
}

.tab-row button {
  position: relative;
  height: 37px;
  border: 0;
  background: transparent;
  color: #6d6259;
  font-weight: 700;
}

.tab-row button.active {
  color: #df7207;
}

.tab-row button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.theme-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.theme-table th {
  padding: 8px 12px;
  color: #87786a;
  text-align: left;
  font-weight: 700;
}

.theme-table td {
  height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(150, 109, 58, 0.14);
  font-weight: 700;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: rgba(255, 244, 225, 0.55);
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 24px;
  border-radius: 4px 4px 9px 9px;
  color: #fff;
  background: linear-gradient(180deg, #ff9d21, #f05d10);
  font-size: 12px;
}

.rank-badge.plain {
  color: #59616a;
  background: #e9ecea;
}

.add-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(238, 157, 49, 0.48);
  border-radius: 50%;
  color: #e48616;
  background: #fff3df;
  font-size: 18px;
  line-height: 20px;
}

.add-btn.saved {
  color: #fff;
  background: var(--orange);
}

.link-btn {
  display: block;
  margin: 17px auto 0;
  border: 0;
  color: #e17708;
  background: transparent;
  font-weight: 800;
}

.link-btn.inline {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.right-col.lower {
  grid-column: 3;
  grid-row: 2 / span 2;
  display: grid;
  gap: 12px;
}

.graph {
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: 128px 24px 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.graph-root {
  display: grid;
  place-items: center;
  width: 124px;
  height: 66px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #ffad2b, #ee7b06);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.graph-root span {
  font-weight: 800;
}

.graph-line {
  width: 28px;
  height: 1px;
  background: #db9d48;
}

.graph-nodes {
  display: grid;
  gap: 12px;
}

.graph-nodes button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(222, 162, 84, 0.4);
  border-radius: 5px;
  color: #2b2117;
  background: rgba(255, 252, 246, 0.7);
  font-weight: 800;
}

.graph-nodes strong {
  color: var(--red);
}

.news-list,
.digest-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.news-item {
  display: grid;
  gap: 7px;
}

.news-item p,
.digest-item p {
  margin: 0;
  color: #2d241a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #ff6f43;
  font-size: 12px;
}

.tag.orange {
  background: #f39920;
}

.tag.pink {
  background: #ff5c8f;
}

.tag.purple {
  background: #9e83ff;
}

.news-item time,
.digest-item time {
  color: #8b7e70;
  font-size: 13px;
}

.digest-panel {
  grid-column: 1 / 3;
  grid-row: 4;
}

.digest-list {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}

.digest-item {
  display: grid;
  gap: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 30px 22px 18px;
  color: #6f655a;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  z-index: 20;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 25, 18, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-page {
  padding: 16px 28px 28px 148px;
}

.detail-hero {
  margin-bottom: 12px;
}

.detail-crumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: #8a7663;
  font-size: 13px;
}

.detail-crumb a {
  color: #df7207;
  font-weight: 700;
}

.detail-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-hero-main h2 {
  margin: 0;
  color: #a34d05;
  font-size: 32px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.detail-metrics div {
  display: grid;
  gap: 8px;
  min-height: 68px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(243, 231, 213, 0.54);
  text-align: center;
}

.detail-metrics span,
.detail-count {
  color: #806f60;
  font-size: 13px;
}

.detail-metrics strong {
  font-size: 18px;
}

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

.sector-tabs {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sector-tabs button {
  display: grid;
  gap: 7px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(222, 162, 84, 0.32);
  border-radius: 7px;
  color: #2b2117;
  background: rgba(255, 252, 246, 0.72);
  text-align: left;
}

.sector-tabs button.active,
.sector-tabs button:hover {
  border-color: rgba(242, 138, 22, 0.62);
  background: rgba(255, 243, 222, 0.82);
}

.sector-tabs strong {
  font-size: 15px;
}

.sector-tabs span {
  color: #8a7663;
  font-size: 12px;
}

.stock-tools {
  display: inline-flex;
  gap: 6px;
}

.sort-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(222, 162, 84, 0.36);
  border-radius: 999px;
  color: #9a5f16;
  background: rgba(255, 252, 246, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.sort-btn.active {
  color: #fff;
  border-color: transparent;
  background: var(--orange);
}

.stock-table td {
  height: 52px;
}

.stock-reason {
  color: #675848;
  font-weight: 500 !important;
  line-height: 1.6;
}

.detail-graph {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.detail-graph-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #ffad2b, #ee7b06);
}

.detail-graph-root span {
  font-weight: 800;
}

.detail-graph-branches {
  display: grid;
  gap: 12px;
}

.detail-branch {
  display: grid;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(226, 151, 49, 0.4);
}

.detail-branch button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border: 1px solid rgba(222, 162, 84, 0.4);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.75);
  font-weight: 800;
}

.detail-branch button span {
  color: var(--red);
}

.detail-stock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-stock-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #745a3d;
  background: rgba(242, 229, 210, 0.72);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(45, 31, 18, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.stock-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(222, 162, 84, 0.36);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 22px 70px rgba(75, 45, 16, 0.22);
  transform: translateY(12px);
  transition: 0.2s ease;
}

.modal-backdrop.show .stock-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(222, 162, 84, 0.34);
  border-radius: 50%;
  color: #9a5f16;
  background: #fff8eb;
  font-size: 20px;
  line-height: 24px;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-right: 34px;
}

.modal-heading h3 {
  margin: 0 0 6px;
  color: #a34d05;
  font-size: 26px;
}

.modal-heading span {
  color: #8a7663;
  font-weight: 700;
}

.modal-heading > strong {
  margin-top: 26px;
  font-size: 20px;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.modal-meta div {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(243, 231, 213, 0.54);
}

.modal-meta span,
.modal-reason span {
  color: #806f60;
  font-size: 13px;
}

.modal-meta strong {
  color: #2b2117;
}

.modal-reason {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.modal-reason p {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  color: #4f4031;
  background: rgba(255, 244, 225, 0.7);
  line-height: 1.8;
}

@media (max-width: 1280px) {
  body {
    min-width: 1000px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  }

  .hero-card {
    grid-column: 1;
    grid-row: 1;
  }

  .chart-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .right-col,
  .right-col.lower {
    grid-column: 1 / 3;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions,
  .signal-panel,
  .ranking-panel,
  .digest-panel {
    grid-column: 1 / 3;
    grid-row: auto;
  }

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

  .detail-graph-panel {
    grid-column: 1 / 3;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .side-nav {
    display: none;
  }

  .main {
    padding-left: 0;
  }

  .topbar {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .dashboard {
    padding: 12px;
  }

  .detail-page {
    padding: 12px;
  }

  .content-grid,
  .quick-actions,
  .signal-list,
  .digest-list,
  .right-col.lower {
    grid-template-columns: 1fr;
  }

  .right-col,
  .right-col.lower,
  .hero-card,
  .chart-panel,
  .quick-actions,
  .signal-panel,
  .ranking-panel,
  .digest-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-card {
    min-height: auto;
  }

  .market-card {
    min-height: auto;
  }

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

  .detail-graph-panel {
    grid-column: 1;
  }

  .detail-hero-main {
    display: grid;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }

  .stat-row,
  .meta-row {
    grid-template-columns: 1fr;
  }

  .tab-row {
    gap: 18px;
    overflow-x: auto;
  }

  .theme-table {
    min-width: 650px;
  }

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

  .footer {
    display: grid;
  }
}
