:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #131722;
  --muted: #6b7280;
  --faint: #94a3b8;
  --line: #e5e7eb;
  --line-strong: #d9dde5;
  --green: #00897b;
  --chart-green: #00b87c;
  --red: #ef4444;
  --blue: #2962ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.breadcrumb-nav {
  display: flex;
  width: min(1660px, calc(100vw - 120px));
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 18px 0 10px;
  color: #8a93a5;
  font-size: 12px;
}

.breadcrumb-nav a {
  color: #6b7280;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav span:last-child {
  color: #111827;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: #4b5563;
}

.nav-links a.active {
  color: #111827;
  font-weight: 800;
}

.auth-actions {
  position: relative;
  justify-content: flex-end;
}

.auth-menu-trigger {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.auth-menu-trigger:hover,
.auth-menu-trigger[aria-expanded="true"] {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.auth-menu-trigger img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  padding: 6px;
}

.auth-menu button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  text-align: left;
}

.auth-menu button:hover {
  background: #f1f5f9;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid var(--border-soft, #e6ebf2);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.auth-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  place-items: center;
}

.auth-panel-head {
  padding-right: 42px;
}

.auth-panel-head span,
.auth-panel-head small {
  display: block;
}

.auth-panel-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel-head strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 28px;
}

.auth-panel-head small {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 20px 0 14px;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px;
}

.auth-tabs[hidden] {
  display: none;
}

.auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526071;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.auth-tabs button.active {
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.auth-status {
  margin-bottom: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}

.auth-status.negative {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.google-auth-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-weight: 800;
}

.google-auth-button span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #ef4444;
  place-items: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: #eef2f7;
  content: "";
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  padding: 11px 12px;
}

.auth-form textarea {
  resize: vertical;
  line-height: 1.7;
}

.auth-form input:focus,
.auth-form textarea:focus {
  border-color: #94b4ff;
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.1);
}

.auth-empty-profile {
  display: grid;
  gap: 10px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px;
}

.auth-empty-profile strong {
  color: #0f172a;
  font-size: 18px;
}

.auth-empty-profile p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.profile-head-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
}

.profile-avatar-preview {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
  place-items: center;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head-card strong,
.profile-head-card span,
.profile-head-card small {
  display: block;
}

.profile-head-card strong {
  color: #0f172a;
}

.profile-head-card span,
.profile-head-card small {
  color: #64748b;
  font-size: 12px;
}

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

.profile-list-grid section {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fbfcfe;
  padding: 12px;
}

.profile-list-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
}

.profile-list-grid div {
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.profile-mini-user {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.profile-mini-user b {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  overflow: hidden;
  place-items: center;
}

.profile-mini-user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-mini-user span {
  overflow: hidden;
  color: #0f172a;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-button,
.solid-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.text-button {
  border: 1px solid var(--line);
  background: #ffffff;
}

.solid-button {
  border: 1px solid #13c690;
  background: #13c690;
  color: #052c20;
  cursor: pointer;
}

.market-page,
.home-page,
.detail-page,
.usd-detail-page,
.onchain-detail-page,
.coin-detail-page,
.community-page,
.footer {
  width: min(1660px, calc(100vw - 120px));
  margin: 0 auto;
}

.market-page,
.home-page,
.detail-page,
.usd-detail-page,
.onchain-detail-page,
.coin-detail-page,
.community-page {
  padding-block: 52px 40px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head .eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.page-head h1 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 34px;
  line-height: 1.16;
}

.page-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
p {
  margin-top: 0;
}

.summary-head h1,
.detail-head h1 {
  margin-bottom: 0;
  color: #161a25;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.summary-head h1 span {
  display: inline-block;
  margin-left: 3px;
  font-weight: 700;
}

.section-title-link {
  display: inline-block;
}

.section-title-link:hover h1 {
  color: #000000;
}

.freshness {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.freshness-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chart-green);
  box-shadow: 0 0 0 5px rgba(0, 184, 124, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 319px));
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.metric-grid.six {
  display: flex;
  grid-template-columns: none;
  gap: 24px;
  margin-bottom: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.metric-grid.six::-webkit-scrollbar {
  display: none;
}

.onchain-section {
  margin-top: 34px;
}

.metric-carousel {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
}

.crypto-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.crypto-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.crypto-table-toolbar strong {
  font-size: 18px;
}

.crypto-table-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.crypto-table-scroll {
  overflow-x: auto;
}

.crypto-table {
  min-width: 1420px;
}

.crypto-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) 80px 130px 130px 140px 160px 170px 130px minmax(230px, 1.2fr);
  align-items: center;
  gap: 16px;
  min-height: 54px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0 18px;
  color: #131722;
  text-align: left;
}

.crypto-row-head {
  min-height: 44px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.crypto-row-head small {
  font-size: 10px;
  font-weight: 600;
}

.crypto-asset-row {
  cursor: pointer;
  font-size: 14px;
}

.crypto-asset-row:hover {
  background: #f8fafc;
}

.crypto-asset-cell {
  display: grid;
  grid-template-columns: 28px minmax(54px, auto) minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crypto-icon-wrap {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2f7;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  overflow: hidden;
  place-items: center;
}

.crypto-icon-wrap img {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2f7;
}

.crypto-icon-wrap img[hidden] {
  display: none;
}

.crypto-icon-wrap i {
  font-style: normal;
}

.crypto-asset-cell b {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f1f5f9;
  padding: 0 10px;
  font-size: 13px;
}

.crypto-asset-cell em {
  overflow: hidden;
  color: #263040;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-tags,
.coin-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crypto-tags i,
.coin-tag-list i {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  padding: 0 9px;
  white-space: nowrap;
}

.crypto-empty {
  padding: 32px 18px;
  color: var(--muted);
  font-size: 14px;
}

.coin-detail-hero {
  display: block;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.coin-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.coin-logo-wrap {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  place-items: center;
}

.coin-logo-wrap img {
  position: absolute;
  inset: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #f1f5f9;
}

.coin-logo-wrap img[hidden] {
  display: none;
}

.coin-logo-wrap b {
  font-size: 24px;
}

.coin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.coin-title-row h1 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.1;
}

.coin-title-row > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 12px;
}

.coin-identity p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.coin-section-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 2px 0 20px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.coin-section-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 15px 0 13px;
  white-space: nowrap;
}

.coin-section-tabs button:not(.active) {
  color: #4b5563;
  font-weight: 600;
}

.coin-section-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #111827;
  content: "";
}

.coin-section-tabs button:hover {
  color: #111827;
}

.coin-price-panel {
  margin-top: 12px;
  text-align: left;
}

.coin-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.coin-price-line span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.coin-price-panel strong {
  color: #111827;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: 0;
}

.coin-price-panel small {
  font-size: 18px;
  font-weight: 800;
}

.coin-price-panel em {
  display: block;
  margin-top: 7px;
  color: #8a93a5;
  font-size: 13px;
  font-style: normal;
}

.coin-chart-panel,
.coin-info-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.coin-chart-panel {
  padding: 18px 20px 20px;
  margin-bottom: 22px;
}

.coin-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.coin-info-panel {
  padding: 18px 20px;
}

.coin-info-panel h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.coin-info-panel p {
  margin-bottom: 0;
  color: #475569;
  line-height: 1.9;
}

.coin-links,
.coin-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.coin-links a,
.coin-venues span,
.muted-inline {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  padding: 0 12px;
}

.coin-links a:hover {
  border-color: #cbd5e1;
  color: #111827;
}

.coin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
}

.coin-indicator-stack {
  display: grid;
  gap: 28px;
}

.coin-indicator-section {
  display: grid;
  gap: 14px;
}

.coin-indicator-section + .coin-indicator-section {
  border-top: 1px solid #eef2f7;
  padding-top: 24px;
}

.coin-indicator-section h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
}

.coin-indicator-section p {
  margin: 0;
  color: #526071;
  font-size: 13px;
  line-height: 1.75;
}

.coin-stat {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.coin-stat span,
.coin-stat strong {
  display: block;
}

.coin-stat span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.coin-stat strong {
  color: #111827;
  font-size: 18px;
}

.coin-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.coin-stat-action {
  cursor: pointer;
}

.coin-stat-action:hover strong,
.coin-stat-action:focus-visible strong {
  color: var(--accent-blue);
}

.coin-stat-action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 4px;
}

.coin-macro-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.coin-macro-card {
  border-radius: 12px;
  border: 0;
  background: #f8fafc;
  padding: 12px;
  text-align: left;
}

.coin-macro-grid span,
.coin-macro-grid strong,
.coin-macro-grid small {
  display: block;
}

.coin-macro-grid strong {
  margin-top: 6px;
  color: #111827;
  font-size: 16px;
}

.coin-macro-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.coin-about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 48px;
  margin-bottom: 24px;
}

.coin-about-cell > span {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.coin-about-cell a {
  color: #111827;
  font-size: 14px;
}

.coin-about-cell .empty-link {
  color: var(--muted);
}

.coin-description,
.coin-description-details p {
  color: #475569;
  line-height: 1.9;
}

.coin-description-details summary {
  display: grid;
  cursor: pointer;
  gap: 10px;
  list-style: none;
}

.coin-description-details summary::-webkit-details-marker {
  display: none;
}

.coin-description-details summary span {
  color: #475569;
}

.coin-description-details summary b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.coin-description-details[open] summary b {
  font-size: 0;
}

.coin-description-details[open] summary b::after {
  content: "收起";
  font-size: 13px;
}

.coin-description-details[open] summary span {
  display: none;
}

.coin-description-details p {
  margin: 0;
}

.coin-community-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.coin-community-lock {
  display: grid;
  min-height: 360px;
  align-content: center;
  justify-items: center;
  padding: 56px 24px;
  text-align: center;
}

.coin-community-lock span {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.coin-community-lock strong {
  color: #111827;
  font-size: 28px;
}

.coin-community-lock p {
  max-width: 620px;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.coin-community-lock div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.coin-community-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  min-height: 640px;
  background: #ffffff;
}

.coin-community-sidebar,
.coin-community-aside {
  background: #fbfcfe;
}

.coin-community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.coin-community-sidebar button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.coin-community-sidebar button.active,
.coin-community-sidebar button:hover {
  background: #eef2f7;
  color: #111827;
}

.coin-compose-long {
  margin-top: 12px;
  background: #111827 !important;
  color: #ffffff !important;
  text-align: center !important;
}

.coin-community-profile {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.coin-community-profile strong,
.coin-community-profile span {
  display: block;
}

.coin-community-profile strong {
  font-size: 13px;
}

.coin-community-profile span {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.coin-community-profile button {
  min-height: auto;
  color: var(--blue);
  font-size: 12px;
  padding: 0;
}

.coin-community-feed {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.coin-post-composer {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.coin-post-composer textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: #111827;
  outline: none;
}

.coin-post-composer textarea:focus {
  border-color: #b9c4d3;
}

.coin-post-composer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.coin-community-post {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.coin-community-post > div {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.coin-community-post strong {
  font-size: 14px;
}

.coin-community-post span,
.coin-community-post p,
.coin-community-post footer button {
  color: var(--muted);
}

.coin-community-post p {
  margin-bottom: 14px;
  line-height: 1.75;
}

.coin-community-post footer {
  display: flex;
  gap: 24px;
}

.coin-community-post footer button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.coin-community-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.coin-community-search span {
  display: none;
}

.coin-community-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}

.coin-community-aside section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.coin-community-aside h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.coin-community-aside a {
  display: block;
  border-top: 1px solid #f1f5f9;
  padding: 11px 0;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.coin-community-aside a:first-of-type {
  border-top: 0;
}

.coin-community-aside a span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.suggested-account {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding: 12px 0;
}

.suggested-account:first-of-type {
  border-top: 0;
}

.suggested-account > span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2f7;
  color: #111827;
  font-weight: 800;
  place-items: center;
}

.suggested-account strong,
.suggested-account small {
  display: block;
}

.suggested-account strong {
  font-size: 13px;
}

.suggested-account small {
  margin-top: 2px;
  color: var(--muted);
}

.suggested-account button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.coin-coming-panel {
  display: grid;
  min-height: 280px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.coin-coming-panel strong {
  margin-bottom: 8px;
  color: #111827;
  font-size: 22px;
}

.coin-signal-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
}

.coin-square-panel {
  display: grid;
  gap: 18px;
}

.coin-square-shell {
  display: grid;
  width: min(100%, 1266px);
  grid-template-columns: 280px 602px 352px;
  gap: 16px;
  align-items: start;
  margin-inline: auto;
}

.coin-square-sidebar,
.coin-square-main,
.coin-square-insights {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.coin-square-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.coin-square-sidebar button {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  text-align: left;
}

.coin-square-sidebar button.active,
.coin-square-sidebar button:hover {
  background: #f1f5f9;
  color: #111827;
}

.coin-square-sidebar button:last-child {
  margin-top: 8px;
  background: #111827;
  color: #ffffff;
}

.coin-square-main {
  min-height: 520px;
  overflow: hidden;
}

.coin-square-insights {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.coin-article-feed {
  display: grid;
  gap: 0;
}

.coin-feed-head,
.coin-article-card {
  border-bottom: 1px solid #eef1f5;
  padding: 18px 20px;
}

.coin-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.coin-feed-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.coin-feed-head p,
.coin-feed-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.coin-article-card header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.coin-author-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.coin-article-card header strong,
.coin-article-card header span {
  display: block;
}

.coin-article-card header span,
.coin-article-card footer,
.coin-article-card p {
  color: var(--muted);
}

.coin-article-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
}

.coin-article-card p {
  margin: 0;
  line-height: 1.8;
}

.coin-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.coin-article-tags span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.coin-article-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 12px;
}

.square-compact-card {
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 14px;
}

.square-compact-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.square-compact-card span {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.square-compact-card strong {
  color: #111827;
  font-size: 22px;
}

.square-compact-card strong.hot {
  color: #ef4444;
}

.square-compact-card strong.warm {
  color: #f59e0b;
}

.square-compact-card strong.cool {
  color: #2962ff;
}

.square-compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.article-editor-page {
  display: grid;
  min-height: 720px;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f8fafc;
  color: #111827;
}

.article-editor-topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0 18px;
}

.article-editor-topbar button,
.article-editor-tools button {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.article-editor-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.article-editor-tools button {
  min-width: 22px;
  height: 26px;
  border-radius: 6px;
  font-weight: 700;
}

.article-editor-tools button:hover {
  background: #f1f5f9;
  color: #111827;
}

.article-editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.article-editor-actions .publish {
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  padding: 9px 18px;
}

.article-editor-canvas {
  display: grid;
  min-height: 0;
  padding: 16px;
}

.article-editor-sheet {
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-rows: auto auto auto minmax(260px, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 28px 36px 36px;
}

.article-cover-upload {
  display: grid;
  min-height: 96px;
  align-content: center;
  justify-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  text-align: center;
}

.article-cover-upload input {
  display: none;
}

.article-cover-upload strong {
  color: #111827;
  font-size: 13px;
}

.article-cover-upload span {
  margin-top: 4px;
  font-size: 11px;
}

.article-title-input,
.article-body-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  outline: none;
}

.article-title-input {
  margin-top: 22px;
  font-size: 26px;
  font-weight: 800;
}

.article-editor-author {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #111827;
  font-size: 13px;
}

.article-editor-author span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  place-items: center;
}

.article-editor-author small {
  color: #64748b;
}

.article-body-input {
  min-height: 100%;
  margin-top: 22px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.8;
}

.article-publish-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid #eef1f5;
  padding-top: 18px;
}

.article-publish-panel strong,
.article-publish-panel span,
.article-publish-panel p {
  display: block;
}

.article-publish-panel span,
.article-publish-panel p {
  color: #64748b;
  font-size: 12px;
}

.platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-options label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 10px;
}

/* Premium product layer */
:root {
  --app-bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --panel-hover: #f3f6fa;
  --ink-strong: #0f172a;
  --ink-soft: #334155;
  --border-soft: #e6ebf2;
  --border-subtle: #eef2f7;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.06);
  --shadow-tight: 0 8px 24px rgba(15, 23, 42, 0.05);
  --radius-lg: 18px;
  --radius-md: 12px;
}

body {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(246, 248, 251, 1) 280px),
    var(--app-bg);
}

.topbar {
  min-height: 72px;
  border-bottom-color: rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.brand strong {
  color: var(--ink-strong);
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: #64748b;
  font-size: 11px;
}

.nav-links {
  gap: 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.78);
  padding: 5px;
}

.nav-links a {
  min-height: 34px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  padding: 7px 14px;
}

.nav-links a:hover {
  background: #ffffff;
  color: var(--ink-strong);
}

.nav-links a.active {
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  color: var(--ink-strong);
}

.auth-menu-trigger {
  width: 40px;
  height: 40px;
  border-color: var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-tight);
}

.breadcrumb-nav {
  padding: 18px 0 4px;
}

.market-page,
.home-page,
.detail-page,
.usd-detail-page,
.onchain-detail-page,
.coin-detail-page,
.community-page {
  padding-block: 38px 42px;
}

.crypto-table-card,
.chart-panel,
.coin-chart-panel,
.coin-info-panel,
.table-card,
.agent-workbench,
.detail-stat,
.usd-metric-panel,
.onchain-module-card,
.analysis-module,
.coin-square-sidebar,
.coin-square-main,
.coin-square-insights {
  border-color: var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-tight);
}

.crypto-table-toolbar {
  min-height: 58px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  padding: 0 22px;
}

.crypto-table-toolbar strong {
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 800;
}

.crypto-row {
  min-height: 58px;
  border-bottom-color: var(--border-subtle);
  padding-inline: 22px;
}

.crypto-row-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 46px;
  background: #fbfcfe;
  color: #64748b;
  box-shadow: inset 0 -1px 0 var(--border-subtle);
}

.crypto-asset-row:hover {
  background: #f8fafc;
}

.crypto-asset-row:hover .asset-symbol {
  background: #eaf0f7;
}

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

.coin-identity {
  min-height: 142px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background:
    radial-gradient(circle at 5% 0%, rgba(0, 184, 124, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: var(--shadow-tight);
  padding: 24px 28px;
}

.coin-logo-wrap {
  width: 88px;
  height: 88px;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.coin-logo-wrap img {
  width: 88px;
  height: 88px;
}

.coin-title-row h1 {
  color: var(--ink-strong);
  font-size: 38px;
}

.coin-title-row > span {
  min-height: 28px;
  border-radius: 999px;
  background: #0f172a;
  font-size: 13px;
}

.coin-price-panel {
  margin-top: 10px;
}

.coin-price-panel strong {
  font-size: 42px;
  font-weight: 800;
}

.coin-price-panel small {
  font-size: 17px;
}

.coin-section-tabs {
  gap: 4px;
  width: fit-content;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  margin: 0 0 18px;
  padding: 4px;
}

.coin-section-tabs button {
  min-width: 72px;
  border-radius: 999px;
  padding: 9px 18px;
}

.coin-section-tabs button.active {
  background: #0f172a;
  color: #ffffff;
}

.coin-section-tabs button.active::after {
  content: none;
}

.coin-chart-panel {
  padding: 20px 22px 22px;
}

.coin-detail-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.coin-info-panel {
  padding: 20px 22px;
}

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

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

.coin-square-shell {
  width: min(100%, 1266px);
  grid-template-columns: 280px 602px 352px;
  gap: 16px;
  justify-content: center;
}

.coin-square-sidebar,
.coin-square-insights {
  top: 94px;
}

.coin-square-sidebar {
  gap: 4px;
  padding: 12px;
}

.coin-square-sidebar button {
  min-height: 38px;
  border-radius: 10px;
  color: #526071;
  font-size: 13px;
  padding-inline: 12px;
}

.coin-square-sidebar button.active,
.coin-square-sidebar button:hover {
  background: #eef3f8;
  color: var(--ink-strong);
}

.coin-square-sidebar button:last-child {
  margin-top: 8px;
  background: linear-gradient(180deg, #111827, #0b1220);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.coin-square-main {
  min-height: 640px;
}

.coin-feed-head {
  min-height: 70px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  padding: 18px 22px;
}

.coin-feed-head h2 {
  color: var(--ink-strong);
  font-size: 21px;
  letter-spacing: 0;
}

.coin-feed-head > span {
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: #f8fafc;
  color: #526071;
  font-weight: 700;
  padding: 6px 10px;
}

.coin-article-card {
  padding: 22px 24px;
  transition:
    background 140ms ease,
    box-shadow 140ms ease;
}

.coin-article-card:hover {
  background: #fbfcfe;
}

.coin-author-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, #111827, #334155);
}

.coin-article-card h3 {
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.35;
}

.coin-article-card p {
  color: #526071;
  font-size: 14px;
}

.coin-article-tags span {
  background: #edf3f7;
  color: #526071;
}

.coin-square-insights {
  gap: 10px;
  padding: 12px;
}

.square-compact-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border-subtle);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
  padding: 16px;
}

.square-compact-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #94a3b8;
  content: "";
}

.square-compact-card.cool::before {
  background: var(--blue);
}

.square-compact-card.warm::before {
  background: #f59e0b;
}

.square-compact-card.hot::before {
  background: var(--red);
}

.square-compact-card div {
  margin-bottom: 10px;
}

.square-compact-card span {
  color: var(--ink-strong);
  font-size: 13px;
}

.square-compact-card strong {
  font-size: 24px;
  letter-spacing: 0;
}

.square-compact-card.hot strong {
  color: var(--red);
}

.square-compact-card.warm strong {
  color: #f59e0b;
}

.square-compact-card.cool strong {
  color: var(--blue);
}

.square-compact-card > i {
  display: block;
  height: 5px;
  margin-bottom: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, currentColor var(--score), #edf2f7 var(--score));
  color: #94a3b8;
  font-style: normal;
}

.square-compact-card.cool > i {
  color: var(--blue);
}

.square-compact-card.warm > i {
  color: #f59e0b;
}

.square-compact-card.hot > i {
  color: var(--red);
}

.square-compact-card p {
  color: #64748b;
}

.article-editor-page {
  min-height: 640px;
  background: #f6f8fb;
}

.article-editor-topbar {
  min-height: 54px;
  border-bottom-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.94);
}

.article-editor-tools {
  gap: 4px;
}

.article-editor-tools button {
  min-width: 25px;
  border-radius: 7px;
  color: #64748b;
}

.article-editor-actions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 700;
}

.article-editor-actions .publish {
  min-height: 36px;
  padding: 0 18px;
}

.article-editor-canvas {
  padding: 14px;
}

.article-editor-sheet {
  border-color: var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-tight);
  padding: 26px 30px 30px;
}

.article-cover-upload {
  min-height: 88px;
  border-color: #d5dde8;
  background: #fbfcfe;
}

.article-title-input {
  font-size: 28px;
}

.article-body-input {
  color: #334155;
}

.analysis-module {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
}

.signal-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.signal-head h2 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 22px;
}

.signal-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.signal-score {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  text-align: right;
}

.signal-score span,
.signal-score small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.signal-score strong {
  display: block;
  margin: 4px 0;
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.signal-score.hot strong {
  color: #ef4444;
}

.signal-score.warm strong {
  color: #f59e0b;
}

.signal-score.cool strong {
  color: #2962ff;
}

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

.signal-card {
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 14px;
}

.signal-card span,
.signal-card strong,
.signal-card small {
  display: block;
}

.signal-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signal-card strong {
  margin: 7px 0 6px;
  color: #111827;
  font-size: 18px;
}

.signal-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.news-signal-list article {
  min-height: 120px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 14px;
}

.news-signal-list span {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.news-signal-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.news-signal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-signal-links a,
.news-signal-links .empty-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 12px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.news-signal-links a:hover {
  border-color: #111827;
}

.signal-note {
  margin-top: 18px;
  border-top: 1px solid #eef1f5;
  padding-top: 16px;
}

.signal-note strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
}

.signal-note p {
  margin-bottom: 0;
  color: #475569;
  line-height: 1.85;
}

.metric-grid.six .metric-card {
  flex: 0 0 319px;
}

.carousel-next {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  color: #111827;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  place-items: center;
  transform: translateY(-50%);
}

.carousel-next:hover {
  border-color: #c7d2e1;
  background: #ffffff;
}

.summary-head.compact {
  margin-bottom: 18px;
}

.metric-card {
  appearance: none;
  position: relative;
  width: 319px;
  min-height: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px 10px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.metric-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.metric-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
  color: #131722;
  font-size: 14px;
  font-weight: 500;
}

.metric-card i {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card strong {
  display: block;
  color: #131722;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 600;
}

.metric-card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.metric-card b {
  display: block;
  font-weight: 500;
}

.metric-card em {
  display: block;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

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

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

.chart-panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 6px;
}

.chart-toolbar h2 {
  margin-bottom: 3px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
}

.chart-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

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

.legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2px solid var(--chart-green);
}

.legend-line.btc {
  border-top-color: #f59e0b;
  border-top-style: dashed;
}

.legend-line.onchain {
  border-top-color: var(--blue);
}

.range-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-switch button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.range-switch button:hover,
.range-switch .active {
  background: #e8edf5;
  color: #111827;
}

.range-switch button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.chart-wrap {
  position: relative;
  padding: 4px 0 0;
}

#flowChart {
  display: block;
  width: 100%;
  height: 430px;
}

#coinPriceChart {
  display: block;
  width: 100%;
  height: 430px;
}

.coin-performance-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid #eef1f5;
  padding-top: 18px;
}

.coin-performance-item {
  min-height: 74px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 13px 10px;
  text-align: center;
}

.coin-performance-item.active {
  background: #f3f4f6;
}

.coin-performance-item:hover {
  background: #f8fafc;
}

.coin-performance-item span,
.coin-performance-item strong {
  display: block;
}

.coin-performance-item span {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.coin-performance-item strong {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}

#onchainChart {
  display: block;
  width: 100%;
  height: 360px;
}

#onchainDetailChart {
  display: block;
  width: 100%;
  height: 390px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  width: 204px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  color: #111827;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 6px;
  font-size: 12px;
}

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

.timeline-control {
  margin: 12px 20px 22px;
  border-top: 1px solid #edf0f5;
  padding-top: 16px;
}

.timeline-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #8390a4;
  font-size: 12px;
}

.timeline-track {
  padding: 0 64px;
}

.dual-range {
  position: relative;
  --range-left: 0%;
  --range-right: 100%;
  height: 46px;
  border-radius: 4px;
  background:
    linear-gradient(
      90deg,
      transparent 0 var(--range-left),
      rgba(0, 184, 124, 0.18) var(--range-left) var(--range-right),
      transparent var(--range-right) 100%
    ),
    linear-gradient(180deg, transparent 0 8px, rgba(241, 245, 249, 0.92) 8px 38px, transparent 38px),
    linear-gradient(180deg, transparent 0 22px, #d7dee9 22px 24px, transparent 24px);
}

.dual-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 46px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 28px;
  appearance: none;
  border: 2px solid rgba(0, 184, 124, 0.28);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 28px;
  border: 2px solid rgba(0, 184, 124, 0.28);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
}

.onchain-timeline .dual-range {
  background:
    linear-gradient(
      90deg,
      transparent 0 var(--range-left),
      rgba(41, 98, 255, 0.15) var(--range-left) var(--range-right),
      transparent var(--range-right) 100%
    ),
    linear-gradient(180deg, transparent 0 8px, rgba(241, 245, 249, 0.92) 8px 38px, transparent 38px),
    linear-gradient(180deg, transparent 0 22px, #d7dee9 22px 24px, transparent 24px);
}

.onchain-timeline .dual-range input[type="range"]::-webkit-slider-thumb {
  border-color: rgba(41, 98, 255, 0.28);
}

.onchain-timeline .dual-range input[type="range"]::-moz-range-thumb {
  border-color: rgba(41, 98, 255, 0.28);
}

.timeline-ticks {
  display: grid;
  margin: 2px 64px 0;
  color: #8a97aa;
  font-size: 12px;
  text-align: center;
}

.detail-page[hidden],
.usd-detail-page[hidden],
.onchain-detail-page[hidden],
.coin-detail-page[hidden],
.coin-tab-panel[hidden],
.community-page[hidden],
.home-page[hidden],
.market-page[hidden],
.usd-chart-modal[hidden] {
  display: none;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.community-hero .eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.community-hero h1 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 34px;
  line-height: 1.16;
}

.community-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.agent-badge {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: right;
}

.agent-badge span,
.agent-badge strong {
  display: block;
}

.agent-badge span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.agent-badge strong {
  font-size: 18px;
}

.agent-workbench {
  display: grid;
  gap: 20px;
}

.agent-input-panel,
.analysis-result {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.agent-input-panel {
  padding: 20px;
}

.agent-input-panel label {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.agent-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.agent-input-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  color: #111827;
  outline: none;
}

.agent-input-row input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.08);
}

.agent-input-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.agent-input-panel p.is-error {
  color: var(--red);
}

.analysis-result {
  min-height: 360px;
  padding: 24px;
}

.empty-report {
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-report strong {
  color: #111827;
  font-size: 20px;
}

.empty-report span {
  max-width: 560px;
  line-height: 1.8;
}

.analysis-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.analysis-report-head h2 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 24px;
}

.analysis-report-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.analysis-report-head .analysis-engine {
  margin-top: 8px;
  font-size: 12px;
}

.analysis-score {
  min-width: 132px;
  text-align: right;
}

.analysis-score span,
.analysis-score small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analysis-score strong {
  display: block;
  margin: 5px 0;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.analysis-markdown {
  margin: 0;
  color: #1f2937;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}

.analysis-markdown h2,
.analysis-markdown h3,
.analysis-markdown h4 {
  margin: 24px 0 10px;
  color: #111827;
  line-height: 1.3;
}

.analysis-markdown h2 {
  font-size: 22px;
}

.analysis-markdown h3 {
  font-size: 18px;
}

.analysis-markdown h4 {
  font-size: 16px;
}

.analysis-markdown p {
  margin: 8px 0;
}

.analysis-markdown ul {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.analysis-markdown li {
  margin: 5px 0;
}

.analysis-table-wrap {
  margin: 12px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.analysis-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.analysis-table th,
.analysis-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.analysis-table th {
  background: #f8fafc;
  color: #4b5563;
  font-size: 12px;
}

.analysis-table tr:last-child td {
  border-bottom: 0;
}

.back-button {
  margin-bottom: 26px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.detail-page > .back-button,
.usd-detail-page > .back-button {
  display: none;
}

.detail-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.detail-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: right;
}

.detail-stat span,
.detail-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-stat strong {
  display: block;
  margin: 6px 0;
  font-size: 26px;
  font-weight: 600;
}

.table-card {
  padding: 18px 20px;
}

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

.usd-metric-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 20px;
  background: #ffffff;
}

.usd-metric-panel.modal-panel {
  border: 0;
  padding: 0;
}

.usd-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.usd-metric-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.usd-metric-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.usd-metric-stat {
  min-width: 160px;
  text-align: right;
}

.usd-metric-stat span,
.usd-metric-stat small {
  display: block;
}

.usd-metric-stat span {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.usd-metric-stat small {
  margin-top: 4px;
  font-size: 12px;
}

.usd-panel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-tabs,
.mini-range,
.usd-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-tabs,
.mini-range {
  border-radius: 10px;
  background: #f1f5f9;
  padding: 3px;
}

.mini-tabs button,
.mini-range button,
.panel-action {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-tabs button,
.mini-range button {
  padding: 0 10px;
}

.mini-tabs button.active,
.mini-range button.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.panel-action {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  padding: 0 10px;
}

.panel-action:hover {
  border-color: #b8c3d2;
  color: #111827;
}

.mini-chart-wrap {
  position: relative;
  margin-bottom: 16px;
}

.mini-chart {
  display: block;
  width: 100%;
  height: 260px;
}

.mini-tooltip {
  width: 176px;
}

.usd-history-table {
  display: grid;
  max-height: 430px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.usd-series-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

.usd-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  padding: 32px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
  place-items: center;
}

.usd-chart-modal-card {
  width: min(1280px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  padding: 22px;
}

.usd-chart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.usd-chart-modal-head strong,
.usd-chart-modal-head span {
  display: block;
}

.usd-chart-modal-head strong {
  font-size: 20px;
}

.usd-chart-modal-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.usd-chart-modal .mini-chart {
  height: 420px;
}

.history-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-loading {
  display: grid;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  place-items: center;
}

.history-loading.error {
  color: var(--negative);
}

.indicator-history-chart {
  height: 360px;
  margin-bottom: 18px;
}

.indicator-history-table {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.onchain-detail-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.onchain-module-card {
  display: grid;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.onchain-module-card span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.onchain-module-card strong,
.onchain-module-card em,
.onchain-module-card b,
.onchain-module-card small {
  display: block;
}

.onchain-module-card strong {
  color: #111827;
  font-size: 15px;
}

.onchain-module-card em,
.onchain-module-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.onchain-module-card b {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.onchain-module-card small {
  align-self: end;
  margin-top: 10px;
}

.onchain-detail-tables {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.onchain-module-table {
  min-width: 0;
  overflow: hidden;
}

.onchain-module-table .data-table {
  overflow-x: auto;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.table-head strong {
  font-size: 18px;
}

.table-head span {
  color: var(--muted);
  font-size: 13px;
}

.data-table {
  display: grid;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 1fr 1fr 1fr;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
  color: #263040;
  font-size: 13px;
}

.data-row.onchain-detail-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(105px, 0.8fr) minmax(150px, 1fr) repeat(4, minmax(72px, 0.55fr)) minmax(110px, 0.75fr);
}

.data-row.header {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.data-row > span {
  min-width: 0;
  overflow: hidden;
  padding-right: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row strong {
  color: #111827;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.4fr);
  gap: 32px 56px;
  align-items: start;
  padding-block: 34px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer section {
  min-width: 0;
}

.footer strong,
.footer span,
.footer a {
  display: block;
}

.footer strong {
  margin-bottom: 8px;
  color: #111827;
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
  line-height: 1.75;
}

.footer a {
  color: var(--blue);
  font-weight: 600;
}

.footer-brand p {
  margin-top: 12px;
}

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

.footer-links a,
.footer-links span {
  margin-top: 8px;
  color: #64748b;
}

.footer-risk {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-top: 1px solid #eef1f5;
  padding-top: 18px;
}

.footer-risk strong {
  white-space: nowrap;
}

.footer-risk span {
  color: #94a3b8;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .topbar,
  .breadcrumb-nav,
  .home-page,
  .market-page,
  .coin-detail-page,
  .detail-page,
  .usd-detail-page,
  .onchain-detail-page,
  .community-page,
  .footer {
    width: auto;
    padding-inline: 24px;
  }

  .topbar {
    padding-inline: 24px;
  }

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

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

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

  .metric-card {
    width: 100%;
  }

  .metric-grid.six {
    display: flex;
  }

  .metric-grid.six .metric-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .chart-toolbar,
  .page-head,
  .coin-detail-hero,
  .detail-head,
  .community-hero,
  .analysis-report-head,
  .usd-metric-head,
  .usd-panel-controls {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .agent-badge,
  .analysis-score {
    text-align: left;
  }

  .usd-metric-stat {
    text-align: left;
  }

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

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

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

  .coin-community-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .coin-community-aside {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

  .news-signal-list {
    grid-template-columns: 1fr;
  }

  .coin-square-shell {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .coin-square-insights {
    position: static;
    grid-column: 1 / -1;
  }

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

  .coin-price-panel {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding-block: 14px;
  }

  .breadcrumb-nav {
    gap: 8px;
    overflow-x: auto;
    padding-block: 12px 4px;
    white-space: nowrap;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
  }

  .auth-actions {
    gap: 8px;
  }

  .summary-head,
  .page-head,
  .coin-detail-hero,
  .chart-toolbar,
  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .agent-input-row {
    grid-template-columns: 1fr;
  }

  .community-hero h1 {
    font-size: 28px;
  }

  .coin-identity {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .coin-stats-grid,
  .coin-about-grid {
    grid-template-columns: 1fr;
  }

  .coin-macro-grid {
    grid-template-columns: 1fr;
  }

  .coin-community-shell {
    grid-template-columns: 1fr;
  }

  .coin-square-shell {
    grid-template-columns: 1fr;
  }

  .coin-square-sidebar,
  .coin-square-insights {
    position: static;
  }

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

  .article-editor-topbar {
    grid-template-columns: 36px 1fr;
  }

  .article-editor-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .article-editor-tools {
    justify-content: flex-start;
  }

  .article-editor-sheet {
    padding: 22px 18px;
  }

  .coin-community-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coin-compose-long,
  .coin-community-profile {
    grid-column: 1 / -1;
  }

  .signal-head {
    flex-direction: column;
  }

  .signal-score {
    width: 100%;
    text-align: left;
  }

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

  .analysis-module {
    padding: 16px;
  }

  .news-signal-list {
    grid-template-columns: 1fr;
  }

  .coin-logo-wrap,
  .coin-logo-wrap img {
    width: 78px;
    height: 78px;
  }

  .coin-title-row h1 {
    font-size: 32px;
  }

  .coin-price-panel strong {
    font-size: 32px;
  }

  .coin-price-panel small {
    font-size: 16px;
  }

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

  .coin-macro-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid.six {
    display: flex;
  }

  .metric-grid.six .metric-card {
    flex-basis: 100%;
  }

  .carousel-next {
    right: 10px;
  }

  .range-switch {
    flex-wrap: wrap;
  }

  .usd-actions {
    flex-wrap: wrap;
  }

  #flowChart {
    height: 330px;
  }

  #onchainDetailChart {
    height: 340px;
  }

  .mini-chart {
    height: 230px;
  }

  .usd-chart-modal {
    padding: 14px;
  }

  .usd-chart-modal-card {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 16px;
  }

  .usd-chart-modal .mini-chart {
    height: 330px;
  }

  .timeline-ticks {
    margin-inline: 24px;
    font-size: 10px;
  }

  .timeline-track {
    padding-inline: 24px;
  }

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

  .data-row {
    grid-template-columns: 130px 130px 110px 130px;
    min-width: 500px;
  }

  .data-row.onchain-detail-row {
    grid-template-columns: 180px 120px 160px repeat(4, 90px) 120px;
    min-width: 940px;
  }

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

  .footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links,
  .footer-risk {
    grid-template-columns: 1fr;
  }

  .footer-risk span {
    white-space: normal;
  }
}
