* {
  box-sizing: border-box;
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.panel {
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.nav-link {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link svg {
  height: 1.35rem;
  width: 1.35rem;
}

.nav-link:hover,
.nav-link.active {
  color: #1767f2;
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: #1767f2;
  content: "";
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title h1,
.section-title h2 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.title-icon {
  display: inline-flex;
  height: 1.65rem;
  width: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: #1767f2;
  color: #fff;
}

.title-icon svg {
  height: 1.05rem;
  width: 1.05rem;
}

.field {
  display: grid;
  gap: 0.75rem;
}

.field-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.field-help {
  font-size: 1rem;
  color: #64748b;
}

.input-shell {
  display: flex;
  min-height: 64px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell:focus-within {
  border-color: #1767f2;
  box-shadow: 0 0 0 3px rgba(23, 103, 242, 0.12);
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 1.2rem;
  font-size: 1.55rem;
  font-weight: 500;
  color: #162033;
  outline: 0;
}

.input-unit {
  min-width: 3.6rem;
  border-left: 1px solid #edf1f6;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: #334155;
}

.stepper {
  display: grid;
  gap: 0.2rem;
  padding-right: 1rem;
  color: #64748b;
}

.stepper svg {
  height: 1rem;
  width: 1rem;
}

.segmented {
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
}

.segmented-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-right: 1px solid #dfe6ef;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segmented-btn:last-child {
  border-right: 0;
}

.segmented-btn.active {
  border-color: #1767f2;
  background: #f3f8ff;
  box-shadow: inset 0 0 0 2px #1767f2;
  color: #1767f2;
}

.mini-icon {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1767f2;
  color: #fff;
}

.mini-icon.muted {
  background: #64748b;
}

.mini-icon svg {
  height: 1.05rem;
  width: 1.05rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 62px;
  min-width: 270px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border-radius: 9px;
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: #1767f2;
  color: #fff;
  box-shadow: 0 12px 20px rgba(23, 103, 242, 0.2);
}

.primary-btn:hover {
  background: #0f55d9;
  transform: translateY(-1px);
}

.secondary-btn {
  border: 1px solid #dbe2ec;
  background: #fff;
  color: #253044;
}

.secondary-btn:hover {
  border-color: #b8c5d6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.primary-btn svg,
.secondary-btn svg {
  height: 1.45rem;
  width: 1.45rem;
}

.result-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  text-align: center;
  font-size: 1.12rem;
}

.result-table th,
.result-table td {
  border-right: 1px solid #d8e1ec;
  border-bottom: 1px solid #d8e1ec;
  padding: 1rem 1.1rem;
  vertical-align: middle;
}

.result-table th:last-child,
.result-table td:last-child {
  border-right: 0;
}

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

.result-table thead th {
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  font-weight: 800;
  line-height: 1.25;
}

.result-table thead span {
  font-size: 0.95rem;
  color: #334155;
}

.flag {
  margin-right: 0.8rem;
  font-size: 1.9rem;
  line-height: 1;
  vertical-align: middle;
}

.row-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.row-label b {
  display: block;
  font-size: 1.08rem;
}

.row-label small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.row-icon {
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
}

.row-icon svg {
  height: 1.1rem;
  width: 1.1rem;
}

.row-icon.blue {
  background: #e9f2ff;
  color: #1767f2;
}

.row-icon.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.row-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.formula-row td {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.72), rgba(255, 255, 255, 0.95));
  color: #334155;
  line-height: 1.7;
}

.money-dark {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
}

.money-green {
  color: #16a34a;
  font-size: 1.18rem;
  font-weight: 900;
}

.money-blue {
  color: #1767f2;
  font-size: 1.18rem;
  font-weight: 900;
}

.rate-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 0;
  font-size: 1.25rem;
}

.rate-row .currency {
  display: grid;
  gap: 0.18rem;
  font-weight: 700;
}

.rate-row .currency small {
  color: #64748b;
  font-size: 0.72em;
  font-weight: 600;
}

.rate-row .rate-value {
  color: #1767f2;
  font-weight: 900;
}

.icon-btn {
  display: inline-flex;
  height: 2.6rem;
  width: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #64748b;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: #eff6ff;
  color: #1767f2;
}

.icon-btn.loading {
  animation: spin 1s linear infinite;
}

.feature {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #e3e9f1;
  padding: 1rem;
}

.feature:last-child {
  border-bottom: 0;
}

.feature b {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
}

.feature small {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-icon {
  display: inline-flex;
  height: 3.8rem;
  width: 3.8rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
}

.feature-icon svg {
  height: 2.1rem;
  width: 2.1rem;
}

.feature-icon.blue {
  background: #eaf3ff;
  color: #1767f2;
}

.feature-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.feature-icon.violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.feature-icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.overview-card {
  min-height: 154px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.45rem;
}

.overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pair-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.pair-title .flag {
  margin-right: 0;
}

.overview-change {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.overview-change.up {
  color: #16a34a;
}

.overview-change.down {
  color: #ef4444;
}

.overview-value {
  margin-top: 1.05rem;
  color: #1767f2;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.overview-value.down {
  color: #1767f2;
}

.overview-meta {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.overview-meta .up {
  color: #16a34a;
}

.overview-meta .down {
  color: #ef4444;
}

.overview-meta .muted {
  color: #64748b;
}

.spark-chart {
  height: 54px;
  width: 48%;
  min-width: 150px;
}

.trend-tabs,
.range-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
  background: #fff;
}

.trend-tab,
.range-tab,
.quick-pair {
  min-height: 40px;
  border-right: 1px solid #d7e0ec;
  padding: 0 1.35rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.trend-tab:last-child,
.range-tab:last-child {
  border-right: 0;
}

.trend-tab.active,
.range-tab.active,
.quick-pair.active {
  background: #f6f9ff;
  box-shadow: inset 0 0 0 2px #1767f2;
  color: #1767f2;
}

.range-tab.calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.range-tab.calendar svg {
  height: 1.15rem;
  width: 1.15rem;
}

.custom-range {
  margin-left: 0.75rem;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-weight: 700;
}

.custom-range:not(.hidden) {
  display: inline-flex;
}

.custom-range input {
  height: 40px;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
  padding: 0 0.6rem;
  color: #334155;
  font-weight: 700;
}

.main-chart {
  height: 315px;
  width: 100%;
}

.history-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
}

.history-table th,
.history-table td {
  border-right: 1px solid #d8e1ec;
  border-bottom: 1px solid #d8e1ec;
  padding: 0.55rem 1rem;
}

.history-table th:last-child,
.history-table td:last-child {
  border-right: 0;
}

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

.history-table th {
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  color: #334155;
  font-weight: 900;
}

.history-table td {
  color: #475569;
  font-weight: 700;
}

.trend-tip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 0.75rem 1.5rem;
  color: #1767f2;
  font-size: 1rem;
  font-weight: 800;
}

.analysis-card {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 1.25rem;
}

.analysis-label {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 900;
}

.analysis-row {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analysis-row b {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.analysis-row small {
  display: block;
  margin-top: 0.2rem;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 700;
}

.analysis-icon {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.analysis-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.analysis-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.analysis-icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.analysis-icon.blue {
  background: #dbeafe;
  color: #1767f2;
}

.quick-pair {
  min-width: 0;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
  background: #fff;
}

.feature.compact {
  padding: 0.85rem;
}

.feature.compact .feature-icon {
  height: 2.9rem;
  width: 2.9rem;
  border-radius: 0.85rem;
}

.feature.compact .feature-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.feature.compact b {
  font-size: 1rem;
}

.feature.compact small {
  font-size: 0.88rem;
}

.trend-positive {
  color: #16a34a !important;
}

.trend-negative {
  color: #ef4444 !important;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  pointer-events: none;
  transform: translateY(1rem);
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  opacity: 0;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

@media (max-width: 640px) {
  .section-title h1,
  .section-title h2 {
    font-size: 1.25rem;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .segmented-btn {
    font-size: 1rem;
  }

  .trend-tab,
  .range-tab {
    padding: 0 0.75rem;
  }

  .main-chart {
    height: 280px;
  }
}

/* Visual restoration: shared icon, flag, navigation, and trend-page refinements. */
:root {
  --brand-blue: #1677ff;
  --brand-blue-dark: #0f63d8;
  --brand-blue-soft: #eff6ff;
  --panel-border: #e5eaf3;
  --page-bg: #f5f7fb;
  --trend-up: #16a34a;
  --trend-down: #ef4444;
}

body {
  background: var(--page-bg);
}

.logo-mark {
  display: inline-flex;
  height: 54px;
  width: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 119, 255, 0.18);
}

.nav-link {
  color: #334155;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  background: var(--brand-blue);
}

.language-btn,
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  border-radius: 9px;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-btn {
  padding: 0.45rem 0.55rem;
}

.language-btn:hover,
.login-link:hover {
  background: #f1f5f9;
  color: var(--brand-blue);
}

.language-btn svg,
.login-link svg {
  height: 1.35rem;
  width: 1.35rem;
}

.language-btn .chevron {
  height: 1rem;
  width: 1rem;
}

.login-link span {
  display: inline-flex;
  height: 38px;
  width: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 132px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.language-menu button {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  text-align: left;
  color: #334155;
  font-weight: 700;
}

.language-menu button:hover {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.panel,
.overview-card {
  border-color: var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.title-icon {
  height: 24px;
  width: 24px;
  border-radius: 6px;
  background: var(--brand-blue);
}

.title-icon svg {
  height: 15px;
  width: 15px;
  stroke-width: 2.6;
}

.flag-icon {
  display: inline-block;
  width: 38px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 3px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.08);
  vertical-align: middle;
}

.inline-flag {
  margin-right: 0.65rem;
}

.flag-us {
  background-image: url("https://flagcdn.com/w80/us.png");
}

.flag-eu {
  background-image: url("https://flagcdn.com/w80/eu.png");
}

.flag-gb {
  background-image: url("https://flagcdn.com/w80/gb.png");
}

.flag-in {
  background-image: url("https://flagcdn.com/w80/in.png");
}

.flag-cn {
  background-image: url("https://flagcdn.com/w80/cn.png");
}

.trend-page .overview-card {
  min-height: 118px;
  padding: 18px 20px;
}

.trend-page .overview-value {
  margin-top: 0.8rem;
  color: var(--brand-blue);
  font-size: 30px;
}

.trend-page .overview-meta {
  margin-top: 0.45rem;
  gap: 0.9rem;
}

.overview-change svg {
  height: 14px;
  width: 14px;
  stroke-width: 3;
}

.overview-change.up,
.overview-meta .up,
.trend-positive {
  color: var(--trend-up) !important;
}

.overview-change.down,
.overview-meta .down,
.trend-negative {
  color: var(--trend-down) !important;
}

.spark-chart {
  height: 48px;
  min-width: 136px;
}

.trend-page .panel {
  background: #fff;
}

.trend-tabs,
.range-tabs {
  border-color: #d9e2ef;
  border-radius: 7px;
}

.trend-tab,
.range-tab,
.quick-pair {
  min-height: 38px;
  border-color: #d9e2ef;
  color: #475569;
  font-size: 0.96rem;
}

.trend-tab.active,
.range-tab.active,
.quick-pair.active {
  background: #f0f6ff;
  box-shadow: inset 0 0 0 2px var(--brand-blue);
  color: var(--brand-blue);
}

.main-chart {
  height: 330px;
  min-height: 330px;
  display: block;
}

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

.history-table th,
.history-table td {
  height: 46px;
  border-color: var(--panel-border);
  padding: 0.45rem 1rem;
}

.history-table th {
  background: #eef4ff;
}

.analysis-card {
  border-color: var(--panel-border);
}

.analysis-icon.green {
  background: #dcfce7;
  color: var(--trend-up);
}

.analysis-icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.analysis-icon.blue {
  background: #dbeafe;
  color: var(--brand-blue);
}

.trend-tip {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.mini-icon,
.primary-btn {
  background: var(--brand-blue);
}

.primary-btn:hover {
  background: var(--brand-blue-dark);
}

.segmented-btn.active {
  border-color: var(--brand-blue);
  background: #f0f6ff;
  box-shadow: inset 0 0 0 2px var(--brand-blue);
  color: var(--brand-blue);
}

.money-blue,
.rate-row .rate-value {
  color: var(--brand-blue);
}

.stepper {
  padding-right: 0.7rem;
}

.stepper button {
  display: inline-flex;
  height: 18px;
  width: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #64748b;
}

.stepper button:hover {
  background: #eff6ff;
  color: var(--brand-blue);
}

/* Calculator page UI polish: scope these overrides to the homepage only. */
.calculator-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(22, 119, 255, 0.06), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.07), transparent 26%),
    linear-gradient(180deg, #f7fafe 0%, #f3f7fc 100%);
  color: #0f172a;
}

.calculator-home header {
  border-bottom-color: rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(18px);
}

.calculator-home header > div {
  height: 76px;
  max-width: 1480px;
  padding-right: 28px;
  padding-left: 28px;
}

.calculator-home .logo-mark {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2388ff 0%, #006bff 100%);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.25);
}

.calculator-home .logo-mark svg {
  height: 25px;
  width: 25px;
}

.calculator-home .logo-mark + span strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.calculator-home .logo-mark + span span {
  font-size: 13px;
  color: #64748b;
}

.calculator-home nav {
  gap: 12px;
  font-size: 14px;
}

.calculator-home .nav-link {
  height: 46px;
  gap: 8px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
}

.calculator-home .nav-link svg {
  height: 18px;
  width: 18px;
}

.calculator-home .nav-link:hover {
  background: rgba(22, 119, 255, 0.08);
}

.calculator-home .nav-link.active {
  background: rgba(22, 119, 255, 0.07);
}

.calculator-home .nav-link.active::after {
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 3px;
  border-radius: 999px;
}

.calculator-home .language-btn,
.calculator-home .login-link {
  font-size: 14px;
}

.calculator-home .language-btn svg,
.calculator-home .login-link svg {
  height: 18px;
  width: 18px;
}

.calculator-home .login-link span {
  height: 34px;
  width: 34px;
}

.calculator-layout {
  max-width: 1440px !important;
  gap: 26px !important;
  padding: 28px 28px 40px !important;
}

.calculator-layout > section,
.calculator-layout > aside {
  gap: 22px;
}

.calculator-home .panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.calculator-home .panel:hover {
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calculator-layout > aside {
  width: 100%;
}

.calculator-home .section-title {
  gap: 10px;
}

.calculator-home .section-title h1,
.calculator-home .section-title h2 {
  font-size: 20px;
  font-weight: 800;
}

.calculator-home .title-icon {
  height: 24px;
  width: 24px;
  border-radius: 7px;
  background: #1677ff;
}

.calculator-home .title-icon svg {
  height: 15px;
  width: 15px;
}

.calculator-home [aria-labelledby="settings-title"] {
  padding: 24px 26px !important;
}

.calculator-home [aria-labelledby="settings-title"] > .mt-5.h-px {
  background: rgba(226, 232, 240, 0.75);
}

.calculator-home [aria-labelledby="settings-title"] > .mt-7.grid {
  grid-template-columns: 1.15fr 1.1fr 1fr;
  gap: 28px;
}

.calculator-home .field {
  gap: 10px;
}

.calculator-home .field-label {
  font-size: 15px;
  font-weight: 800;
}

.calculator-home .field-help {
  font-size: 13px;
}

.calculator-home .input-shell {
  min-height: 52px;
  border-color: #d8e1ec;
  border-radius: 10px;
  background: #fff;
}

.calculator-home .input-shell:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}

.calculator-home .input-shell input {
  padding: 0 16px;
  font-size: 17px;
  font-weight: 650;
}

.calculator-home .input-shell input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.calculator-home .input-unit {
  min-width: 48px;
  border-left-color: #edf2f7;
  font-size: 16px;
}

.calculator-home .segmented {
  min-height: 52px;
  border-color: #d8e1ec;
  border-radius: 10px;
}

.calculator-home .segmented-btn {
  gap: 8px;
  border-right-color: rgba(216, 225, 236, 0.8);
  font-size: 14px;
  font-weight: 800;
}

.calculator-home .segmented-btn.active {
  background: linear-gradient(180deg, #eff6ff 0%, #eaf3ff 100%);
  box-shadow: inset 0 0 0 2px #1677ff;
}

.calculator-home .mini-icon {
  height: 24px;
  width: 24px;
  background: #1677ff;
}

.calculator-home .mini-icon.muted {
  background: #e2e8f0;
  color: #64748b;
}

.calculator-home .mini-icon svg {
  height: 14px;
  width: 14px;
}

.calculator-home .stepper {
  padding-right: 8px;
}

.calculator-home .stepper button {
  height: 17px;
  width: 22px;
}

.calculator-home [aria-labelledby="settings-title"] .mt-7.flex.items-center {
  min-height: 42px;
  border-color: #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #1677ff;
}

.calculator-home [aria-labelledby="settings-title"] .mt-7.flex.items-center svg {
  height: 18px;
  width: 18px;
}

.calculator-home [aria-labelledby="settings-title"] .mt-5.flex {
  margin-top: 18px;
  gap: 18px;
}

.calculator-home .primary-btn,
.calculator-home .secondary-btn {
  min-height: 48px;
  min-width: 210px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

.calculator-home .primary-btn {
  background: linear-gradient(180deg, #2082ff 0%, #006bff 100%);
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.22);
}

.calculator-home .primary-btn:hover,
.calculator-home .secondary-btn:hover,
.calculator-home .icon-btn:hover {
  transform: translateY(-1px);
}

.calculator-home .secondary-btn {
  border-color: #d8e1ec;
}

.calculator-home .primary-btn svg,
.calculator-home .secondary-btn svg {
  height: 18px;
  width: 18px;
}

.calculator-home [aria-labelledby="results-title"] {
  padding: 0 !important;
}

.calculator-home [aria-labelledby="results-title"] > .flex {
  padding: 22px 24px 14px;
}

.calculator-home [aria-labelledby="results-title"] .section-title > span:last-child,
.calculator-home [aria-labelledby="results-title"] > .flex > div:last-child {
  font-size: 13px;
}

.calculator-home [aria-labelledby="results-title"] > .overflow-x-auto {
  margin: 0 14px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
}

.calculator-home .result-table {
  min-width: 920px;
  table-layout: fixed;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.calculator-home .result-table th:first-child,
.calculator-home .result-table td:first-child {
  width: 200px;
}

.calculator-home .result-table th,
.calculator-home .result-table td {
  height: 66px;
  border-right-color: rgba(226, 232, 240, 0.65);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  padding: 12px 16px;
}

.calculator-home .result-table thead th {
  height: 58px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.calculator-home .result-table thead span {
  font-size: 12px;
  color: #64748b;
}

.calculator-home .result-table thead .inline-flag {
  width: 26px;
  height: 18px;
  margin-right: 7px;
}

.calculator-home .row-label {
  gap: 10px;
}

.calculator-home .row-label b {
  font-size: 14px;
  font-weight: 800;
}

.calculator-home .row-label small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}

.calculator-home .row-icon {
  height: 28px;
  width: 28px;
  border-radius: 9px;
}

.calculator-home .row-icon svg {
  height: 15px;
  width: 15px;
}

.calculator-home .money-dark,
.calculator-home .money-blue {
  font-size: 15px;
  font-weight: 850;
}

.calculator-home .copyable-amount {
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.calculator-home .copyable-amount:hover,
.calculator-home .copyable-amount:focus-visible {
  background: rgba(22, 119, 255, 0.08);
  color: #005bd8;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.18);
}

.calculator-home .copyable-amount::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #94a3b8;
  content: "点击复制";
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.calculator-home .copyable-amount:hover::after,
.calculator-home .copyable-amount:focus-visible::after {
  opacity: 1;
}

.calculator-home .money-green {
  color: #16a34a;
  font-size: 14px;
  font-weight: 850;
}

.calculator-home .formula-row td {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.8), rgba(248, 255, 250, 0.9));
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.calculator-home [aria-labelledby="results-title"] p:not(.result-declaration) {
  margin: 0 18px 18px !important;
  min-height: 42px;
  border-color: #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  padding: 10px 14px !important;
  color: #2563eb;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
}

.calculator-home .result-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 18px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #fff;
  padding: 10px 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.calculator-home .result-declaration svg {
  color: #1677ff;
}

.calculator-home [aria-labelledby="results-title"] p:not(.result-declaration) svg {
  height: 18px;
  width: 18px;
}

.calculator-home aside .panel {
  padding: 22px !important;
}

.calculator-home [aria-labelledby="rates-title"] > .mb-5 {
  margin-bottom: 12px;
  border-bottom-color: rgba(226, 232, 240, 0.75);
  padding-bottom: 14px;
}

.calculator-home [aria-labelledby="rates-title"] .section-title {
  flex-wrap: wrap;
}

.calculator-home [aria-labelledby="rates-title"] .section-title .rounded-full {
  background: #dcfce7;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1;
  color: #16a34a;
}

.calculator-home .icon-btn {
  height: 36px;
  width: 36px;
}

.calculator-home .icon-btn svg {
  height: 17px;
  width: 17px;
}

.calculator-home #rateList {
  border-color: rgba(226, 232, 240, 0.75);
}

.calculator-home .rate-row {
  min-height: 54px;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
}

.calculator-home .rate-row .flag-icon {
  width: 28px;
  height: 20px;
}

.calculator-home .rate-row .currency {
  font-weight: 800;
}

.calculator-home .rate-row .rate-value {
  font-weight: 850;
}

.calculator-home [aria-labelledby="rates-title"] .mt-5.flex {
  margin-top: 12px;
  gap: 8px;
  font-size: 13px;
}

.calculator-home [aria-labelledby="rates-title"] .mt-5.flex svg {
  height: 15px;
  width: 15px;
}

.calculator-home [aria-labelledby="features-title"] .section-title {
  border-bottom-color: rgba(226, 232, 240, 0.75);
  padding-bottom: 14px;
}

.front-frame-host[hidden],
#calculatorPage[hidden],
.front-shell-page[hidden] {
  display: none !important;
}

.front-frame-host {
  width: 100%;
  min-height: calc(100vh - 72px);
  animation: pageFadeIn 160ms ease-out;
}

.front-shell-page,
.page-view-content {
  width: 100%;
}

.front-shell-page > .trend-page {
  max-width: 1480px;
  padding: 24px 28px 40px;
}

.front-shell-page > .page-container {
  max-width: 1680px;
  width: calc(100vw - 96px);
  padding: 20px 0 28px;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-home [aria-labelledby="features-title"] > .mt-5 {
  margin-top: 16px;
  border-color: rgba(226, 232, 240, 0.9);
  border-radius: 14px;
}

.calculator-home .feature {
  min-height: 74px;
  align-items: center;
  gap: 14px;
  border-bottom-color: rgba(226, 232, 240, 0.85);
  padding: 16px 14px;
  transition: background 0.2s ease;
}

.calculator-home .feature:hover {
  background: #f8fbff;
}

.calculator-home .feature-icon {
  height: 44px;
  width: 44px;
  border-radius: 14px;
}

.calculator-home .feature-icon svg {
  height: 22px;
  width: 22px;
}

.calculator-home .feature-icon.blue {
  background: rgba(22, 119, 255, 0.1);
}

.calculator-home .feature-icon.green {
  background: rgba(34, 197, 94, 0.12);
}

.calculator-home .feature-icon.violet {
  background: rgba(168, 85, 247, 0.12);
}

.calculator-home .feature-icon.orange {
  background: rgba(249, 115, 22, 0.12);
}

.calculator-home .feature b {
  font-size: 15px;
  font-weight: 850;
}

.calculator-home .feature small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.calculator-home [aria-labelledby="features-title"] > .mt-6.flex {
  margin-top: 18px;
  gap: 10px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.7;
}

.calculator-home [aria-labelledby="features-title"] > .mt-6.flex svg {
  height: 18px;
  width: 18px;
  color: #94a3b8;
}

.calculator-home .toast {
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 750;
}

.calculator-home iframe[src*="1688"],
.calculator-home [id*="1688"],
.calculator-home [class*="1688"],
.calculator-home [aria-label*="1688"],
.calculator-home [id*="performance"],
.calculator-home [class*="performance"],
.calculator-home [id*="monitor"],
.calculator-home [class*="monitor"] {
  display: none !important;
}

@media (min-width: 1280px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) 370px !important;
  }
}

@media (max-width: 1180px) {
  .calculator-home [aria-labelledby="settings-title"] > .mt-7.grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .calculator-home header > div {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .calculator-home nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .calculator-layout {
    padding: 18px 14px 28px !important;
  }

  .calculator-home [aria-labelledby="results-title"] > .overflow-x-auto {
    overflow-x: auto;
  }
}

/* Trend page spacious layout pass: widen the workspace and give charts/tables room to breathe. */
.trend-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(22, 119, 255, 0.05), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(96, 165, 250, 0.06), transparent 24%),
    linear-gradient(180deg, #f7fafe 0%, #f3f7fc 100%);
  color: #0f172a;
}

.trend-body header {
  border-bottom-color: rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(18px);
}

.trend-body header > div {
  height: 76px;
  max-width: 1520px;
  padding-right: 28px;
  padding-left: 28px;
}

.trend-body .logo-mark {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2388ff 0%, #006bff 100%);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.22);
}

.trend-body .logo-mark svg {
  height: 24px;
  width: 24px;
}

.trend-body .logo-mark + span strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
}

.trend-body .logo-mark + span span {
  font-size: 13px;
  color: #64748b;
}

.trend-body nav {
  gap: 12px;
  font-size: 14px;
}

.trend-body .nav-link {
  height: 46px;
  gap: 8px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
}

.trend-body .nav-link svg {
  height: 18px;
  width: 18px;
}

.trend-body .nav-link:hover {
  background: rgba(22, 119, 255, 0.08);
}

.trend-body .nav-link.active {
  background: rgba(22, 119, 255, 0.07);
}

.trend-body .nav-link.active::after {
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 3px;
  border-radius: 999px;
}

.trend-body .language-btn,
.trend-body .login-link {
  font-size: 14px;
}

.trend-body .language-btn svg,
.trend-body .login-link svg {
  height: 18px;
  width: 18px;
}

.trend-body .login-link span {
  height: 34px;
  width: 34px;
}

.trend-page {
  max-width: 1500px !important;
  padding: 28px 28px 42px !important;
}

.trend-page,
.trend-main-column,
.trend-sidebar {
  gap: 22px;
}

.trend-body .panel,
.trend-body .overview-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.trend-body .panel:hover,
.trend-body .overview-card:hover {
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.trend-content-grid {
  gap: 24px !important;
}

.trend-body .section-title {
  gap: 10px;
}

.trend-body .section-title h1,
.trend-body .section-title h2 {
  color: #0f172a;
  font-size: 21px;
  font-weight: 800;
}

.trend-body .title-icon {
  height: 26px;
  width: 26px;
  border-radius: 8px;
  background: #1677ff;
}

.trend-body .title-icon svg {
  height: 16px;
  width: 16px;
}

.overview-grid {
  gap: 16px !important;
}

.trend-page .overview-card {
  min-height: 122px;
  padding: 16px 16px 14px;
}

.trend-page .overview-card-head {
  align-items: flex-start;
}

.trend-page .pair-title {
  gap: 9px;
  color: #0f172a;
  font-size: 15px;
}

.trend-page .pair-title .flag-icon {
  width: 24px;
  height: 16px;
}

.trend-page .overview-change {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(22, 163, 74, 0.08);
  font-size: 12px;
}

.trend-page .overview-change.down {
  background: rgba(239, 68, 68, 0.08);
}

.trend-page .overview-value {
  margin-top: 14px;
  color: #1677ff;
  font-size: 26px;
  font-weight: 850;
}

.trend-page .overview-meta {
  margin-top: 8px;
  gap: 12px;
  font-size: 13px;
}

.trend-page .spark-chart {
  width: 46%;
  min-width: 126px;
  height: 58px;
}

.trend-chart-panel {
  min-height: 548px;
  padding: 0 !important;
}

.trend-card-heading {
  margin-bottom: 0 !important;
  padding: 22px 24px 14px;
}

.trend-chart-panel .section-title h1 {
  font-size: 22px;
}

.trend-controls {
  border-top: 1px solid rgba(226, 232, 240, 0.72);
  padding: 18px 24px 0;
}

.trend-tabs,
.range-tabs {
  border-color: #d9e2ef;
  border-radius: 10px;
  background: #fff;
}

.trend-tab {
  min-height: 40px;
  padding: 0 17px;
  font-size: 14px;
}

.range-tab {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.trend-tab,
.range-tab,
.quick-pair {
  border-color: #d9e2ef;
  color: #475569;
  font-weight: 800;
}

.trend-tab.active,
.range-tab.active,
.quick-pair.active {
  background: #f0f6ff;
  box-shadow: inset 0 0 0 2px #1677ff;
  color: #1677ff;
}

.range-control-wrap {
  row-gap: 10px;
}

.custom-range {
  margin-left: 12px;
}

.custom-range input {
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
}

.trend-chart-shell {
  margin: 18px 18px 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
  padding: 8px 8px 0;
}

.trend-body .main-chart {
  height: 374px;
  min-height: 374px;
  width: 100%;
}

.trend-sidebar {
  gap: 20px !important;
}

.trend-sidebar .panel {
  padding: 20px !important;
}

.analysis-panel {
  min-height: 286px;
}

.analysis-panel .section-title {
  margin-bottom: 16px !important;
}

.analysis-panel .section-title h2,
.sidebar-features-panel .section-title h2 {
  font-size: 20px;
}

.analysis-card {
  border-color: rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 16px;
}

.analysis-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.analysis-card #analysisCode {
  font-size: 20px;
}

.analysis-card #analysisName {
  display: block;
  margin-left: 0;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.analysis-row {
  margin-top: 0;
  gap: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
  padding: 14px 0;
}

.analysis-row:first-of-type {
  margin-top: 16px;
}

.analysis-row:last-of-type {
  padding-bottom: 8px;
}

.analysis-row b {
  font-size: 14px;
  font-weight: 800;
}

.analysis-row small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.analysis-icon {
  height: 40px;
  width: 40px;
  border-radius: 12px;
}

.analysis-icon svg {
  height: 20px;
  width: 20px;
}

.analysis-card > p:last-child {
  margin-top: 10px !important;
  border-top: 1px solid rgba(226, 232, 240, 0.82);
  padding-top: 12px;
  color: #64748b;
  font-size: 12.5px;
}

.quick-panel {
  padding: 18px 18px 16px !important;
}

.quick-panel .section-title {
  margin-bottom: 14px !important;
}

.quick-panel .section-title h2 {
  font-size: 19px;
}

.quick-pair-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.quick-pair {
  min-height: 36px;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
}

.sidebar-features-panel {
  padding: 20px !important;
}

.sidebar-features-panel .section-title {
  border-bottom-color: rgba(226, 232, 240, 0.75);
  padding-bottom: 14px;
}

.sidebar-features-panel > .mt-5 {
  margin-top: 16px;
  border-color: rgba(226, 232, 240, 0.9);
  border-radius: 14px;
}

.trend-body .feature.compact {
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.trend-body .feature.compact .feature-icon {
  height: 42px;
  width: 42px;
  border-radius: 12px;
}

.trend-body .feature.compact .feature-icon svg {
  height: 20px;
  width: 20px;
}

.trend-body .feature.compact b {
  font-size: 14px;
  font-weight: 850;
}

.trend-body .feature.compact small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

.history-panel {
  padding: 0 !important;
}

.history-heading {
  margin-bottom: 0 !important;
  padding: 22px 24px 14px;
}

.history-heading h2 {
  font-size: 21px !important;
}

.history-heading #historyPair {
  font-size: 14px;
  font-weight: 700;
}

.history-table-shell {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
}

.history-table {
  min-width: 800px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.history-table th,
.history-table td {
  height: 54px;
  border-right-color: rgba(226, 232, 240, 0.66);
  border-bottom-color: rgba(226, 232, 240, 0.82);
  padding: 0 18px;
}

.history-table th {
  height: 52px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.history-table td {
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.history-table tbody tr {
  transition: background 0.18s ease;
}

.history-table tbody tr:hover {
  background: #f8fbff;
}

.history-table th:first-child,
.history-table td:first-child {
  width: 170px;
  color: #334155;
  font-weight: 800;
}

.trend-tip {
  margin: 0 18px 18px;
  gap: 10px;
  border-color: #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  padding: 12px 14px;
  color: #2563eb;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.6;
}

.trend-tip svg {
  height: 18px;
  width: 18px;
}

.trend-body iframe[src*="1688"],
.trend-body [id*="1688"],
.trend-body [class*="1688"],
.trend-body [aria-label*="1688"],
.trend-body [id*="performance"],
.trend-body [class*="performance"],
.trend-body [id*="monitor"],
.trend-body [class*="monitor"] {
  display: none !important;
}

@media (min-width: 1280px) {
  .trend-content-grid {
    grid-template-columns: minmax(0, 1fr) 340px !important;
  }
}

@media (max-width: 1180px) {
  .trend-page {
    max-width: 100% !important;
  }

  .trend-body .main-chart {
    height: 340px;
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .trend-body header > div {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .trend-body nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .trend-page {
    padding: 18px 14px 30px !important;
  }

  .trend-card-heading,
  .trend-controls,
  .history-heading {
    padding-right: 16px;
    padding-left: 16px;
  }

  .trend-chart-shell {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  .trend-body .main-chart {
    height: 310px;
    min-height: 310px;
  }

  .history-table-shell {
    overflow-x: auto;
  }
}
