/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0e1116;
  color: #e6edf3;
}

body:has(.analytics-page) {
  width: 100%;
  min-width: 0;
  background: #f5f6f8;
  color: #111827;
  overflow-x: hidden;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.btn {
  background: #238636;
  color: white;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn:disabled {
  background: #30363d;
  color: #7d8590;
  cursor: not-allowed;
}

.btn-secondary {
  background: #30363d;
}

.btn-danger {
  background: #da3633;
}

.input {
  background: #0e1116;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 10px;
  width: 100%;
  font-size: 14px;
}

.muted { color: #7d8590; }
.error { color: #f85149; }
.success { color: #56d364; }

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #30363d;
}

.nav a {
  color: #58a6ff;
  text-decoration: none;
}

.nav a:hover { text-decoration: underline; }

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

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

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-free       { background: #1f6feb44; color: #79c0ff; }
.tag-staked     { background: #d29922aa; color: #1f1500; }
.tag-converted  { background: #2da04444; color: #56d364; }
.tag-conflict   { background: #f8514944; color: #f85149; }

.balance-big {
  font-size: 28px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th, table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #30363d;
}
table th {
  font-weight: 600;
  color: #7d8590;
}

.analytics-page {
  width: 100vw;
  min-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f5f6f8;
  color: #111827;
}

.analytics-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #111827;
  text-decoration: none;
}

.brand-mark .brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.brand-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.side-nav {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.side-nav a,
.side-card,
.icon-button,
.search-pill {
  display: flex;
  align-items: center;
}

.side-nav a {
  min-height: 44px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
  background: #111827;
  color: #ffffff;
}

.side-card {
  margin-top: auto;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f6f7f9;
  border: 1px solid #ebeef3;
}

.side-card span {
  display: block;
  color: #7b8290;
  font-size: 12px;
}

.side-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.analytics-main {
  min-width: 0;
  padding: 20px;
}

.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.analytics-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: #ff684f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.subtle {
  color: #7b8290;
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.search-pill {
  width: min(360px, 34vw);
  min-height: 42px;
  gap: 9px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  color: #8a91a0;
  font-size: 13px;
}

.icon-button {
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

select.icon-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.icon-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn:focus-visible,
.input:focus-visible,
.nav a:focus-visible,
.side-nav a:focus-visible,
.brand-mark:focus-visible,
.icon-button:focus-visible,
.language-switch button:focus-visible,
.copy-button:focus-visible,
.analytics-clickable:focus-visible,
.clickable-analytics:focus-visible,
.chart-hover-target:focus-visible,
.heatmap-row span:focus-visible {
  outline: 3px solid rgba(79, 124, 255, 0.32);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(79, 124, 255, 0.48);
}

.icon-button.wide {
  width: max-content;
}

.language-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  background: #ffffff;
}

.language-switch button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  background: #111827;
  color: #ffffff;
}

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

.metric-card,
.analytics-panel,
.analytics-loading,
.analytics-error {
  background: #ffffff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.045);
}

.metric-card {
  min-height: 134px;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.metric-icon svg {
  width: 21px;
  height: 21px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: #7b8290;
}

.metric-card span {
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-card small {
  font-size: 12px;
}

.accent-red .metric-icon { background: #fff1ed; color: #ff684f; }
.accent-dark .metric-icon { background: #f0f1f4; color: #111827; }
.accent-blue .metric-icon { background: #eef4ff; color: #4f7cff; }
.accent-amber .metric-icon { background: #fff7e7; color: #b7791f; }

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

.analytics-panel {
  min-width: 0;
  padding: 16px;
}

.analytics-clickable,
.clickable-analytics {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.analytics-clickable:hover,
.clickable-analytics:hover,
.metric-card.analytics-clickable:hover,
.metric-card.clickable-analytics:hover,
.analytics-panel.analytics-clickable:hover,
.analytics-panel.clickable-analytics:hover {
  border-color: #d1d6df;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.075);
  transform: translateY(-1px);
}

.analytics-clickable[aria-disabled="true"],
.clickable-analytics[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.analytics-panel > header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-panel > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.analytics-panel > header svg {
  color: #ff684f;
}

.analytics-panel > header > span {
  color: #8a91a0;
  font-size: 12px;
  font-weight: 800;
}

.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.legend-label {
  color: #646b78;
  font-size: 12px;
}

.chart-tooltip {
  min-width: 154px;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.94);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

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

.chart-tooltip span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.chart-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.chart-canvas {
  min-width: 620px;
}

.chart-canvas-compact {
  min-width: 460px;
}

.donut-chart {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(160px, 1fr);
  align-items: center;
  grid-gap: 18px;
  gap: 18px;
}

.donut-visual {
  position: relative;
  min-height: 220px;
}

.donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  min-width: 88px;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center strong {
  color: #111827;
  font-size: 20px;
  line-height: 1;
}

.donut-center span {
  margin-top: 5px;
  color: #8a91a0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.donut-legend-list {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}

.donut-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 9px;
  gap: 9px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.donut-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.donut-legend-row span {
  overflow: hidden;
  color: #646b78;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-row b {
  color: #111827;
}

.chart-tooltip i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
}

.chart-hover-target,
.recharts-bar-rectangle,
.recharts-sector,
.recharts-dot {
  transition: opacity 140ms ease, filter 140ms ease, transform 140ms ease;
}

.chart-hover-target:hover,
.recharts-bar-rectangle:hover,
.recharts-sector:hover,
.recharts-dot:hover {
  filter: drop-shadow(0 7px 12px rgba(17, 24, 39, 0.14));
  opacity: 0.9;
}

.rank-list,
.segment-stack {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eff1f5;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f5f7;
  color: #7b8290;
  font-size: 12px;
  font-weight: 900;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-size: 13px;
}

.rank-copy span {
  margin-top: 3px;
  color: #8a91a0;
  font-size: 12px;
}

.rank-row b {
  font-size: 13px;
}

.segment-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 54px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.segment-row strong,
.segment-row span {
  display: block;
}

.segment-row strong {
  font-size: 13px;
}

.segment-row span {
  color: #8a91a0;
  font-size: 11px;
}

.segment-row b {
  text-align: right;
  font-size: 12px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f4;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.analytics-table {
  min-width: 100%;
  border-collapse: collapse;
  color: #111827;
  font-size: 13px;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eff1f5;
  text-align: left;
  white-space: nowrap;
}

.analytics-table th {
  color: #8a91a0;
  font-size: 11px;
  text-transform: uppercase;
}

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

.analytics-table tr.analytics-clickable:hover,
.analytics-table tr.clickable-analytics:hover,
.analytics-table tr.is-selected,
.analytics-table tr.selected {
  background: #f8fafc;
}

.analytics-table tr.is-selected td,
.analytics-table tr.selected td {
  border-bottom-color: #dbe1ea;
}

.analytics-table tr.is-selected td:first-child,
.analytics-table tr.selected td:first-child {
  box-shadow: inset 3px 0 0 #111827;
}

.analytics-badge,
.badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid #e2e6ee;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-muted { background: #f4f5f7; color: #667085; }
.badge-success { background: #ecfdf3; border-color: #c9f0d8; color: #067647; }
.badge-warning { background: #fffaeb; border-color: #f8e6b2; color: #b7791f; }
.badge-danger { background: #fff1f3; border-color: #ffd6dd; color: #c01048; }
.badge-info { background: #eef4ff; border-color: #d6e4ff; color: #3257a8; }

.brand-inline,
.copyable-value,
.detail-kpi-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.brand-inline {
  gap: 7px;
  vertical-align: middle;
}

.brand-inline > span:last-child,
.copyable-value > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.18);
  background: transparent;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 0 0 100%;
}

.brand-logo-tron {
  background: transparent;
}

.brand-logo-usdt {
  background: transparent;
}

.copyable-value {
  max-width: 100%;
  gap: 7px;
  position: relative;
}

.copyable-value > span:first-child:empty {
  display: none;
}

.copy-button {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e2e6ee;
  border-radius: 7px;
  background: #ffffff;
  color: #667085;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}

.copy-button:hover {
  border-color: #111827;
  color: #111827;
  transform: translateY(-1px);
}

.copy-button.copied {
  border-color: #b7ead0;
  background: #ecfdf3;
  color: #067647;
}

.copy-button.failed {
  border-color: #f8e6b2;
  background: #fffaeb;
  color: #b7791f;
}

.copy-fallback-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  left: 0;
  width: min(360px, 72vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-gap: 6px;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.copy-fallback-popover input {
  min-width: 0;
  height: 28px;
  border: 1px solid #e2e6ee;
  border-radius: 7px;
  padding: 0 8px;
  background: #f8fafc;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.copy-fallback-popover button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.search-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.search-summary strong {
  color: #111827;
}

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

.mini-insight-card {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  grid-gap: 8px;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  background: #fbfcfd;
}

.mini-insight-card span {
  color: #7b8290;
  font-size: 12px;
  font-weight: 700;
}

.mini-insight-card strong {
  color: #111827;
  font-size: 20px;
  line-height: 1;
}

.mini-insight-card small {
  color: #667085;
  font-size: 11px;
}

.quality-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.quality-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  background: #f7f8fa;
}

.quality-card i {
  width: 10px;
  height: 34px;
  border-radius: 99px;
}

.quality-card span {
  color: #6f7785;
  font-size: 13px;
}

.quality-card strong {
  font-size: 20px;
}

.heatmap {
  overflow-x: auto;
}

.heatmap-hours,
.heatmap-row {
  display: grid;
  grid-template-columns: 34px repeat(24, minmax(18px, 1fr));
  grid-gap: 4px;
  gap: 4px;
  min-width: 760px;
}

.heatmap-hours {
  margin-bottom: 6px;
}

.heatmap-hours b {
  color: #9aa1ad;
  font-size: 10px;
  text-align: center;
}

.heatmap-row {
  margin-bottom: 4px;
  align-items: center;
}

.heatmap-row strong {
  color: #7b8290;
  font-size: 11px;
}

.heatmap-row span {
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255, 104, 79, 0.12);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.heatmap-row span:hover,
.heatmap-row span:focus-visible {
  border-color: rgba(255, 104, 79, 0.52);
  box-shadow: 0 8px 18px rgba(255, 104, 79, 0.16);
  transform: scale(1.08);
}

.analytics-loading,
.analytics-error {
  width: min(520px, calc(100vw - 32px));
  margin: 12vh auto;
  padding: 22px;
}

.analytics-loading {
  position: relative;
  overflow: hidden;
}

.loader,
.analytics-loader {
  width: 34px;
  height: 34px;
  display: inline-block;
  border: 3px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 999px;
  animation: analytics-loader-spin 800ms linear infinite;
}

.skeleton,
.shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eceff3;
  color: transparent;
}

.skeleton::after,
.shimmer::after,
.analytics-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: analytics-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

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

.is-selected,
.selected {
  border-color: #111827;
  box-shadow: 0 0 0 1px #111827, 0 16px 34px rgba(17, 24, 39, 0.08);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  max-height: 100vh;
  z-index: 30;
  display: grid;
  align-content: start;
  grid-gap: 18px;
  gap: 18px;
  overflow: auto;
  padding: 24px;
  border-left: 1px solid #e3e6ed;
  background: #ffffff;
  box-shadow: -18px 0 50px rgba(17, 24, 39, 0.18);
}

.detail-drawer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-drawer h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
}

.detail-drawer dl {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin: 0;
}

.detail-drawer dt {
  color: #8a91a0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-drawer dd {
  margin: 2px 0 0;
  color: #111827;
  font-size: 13px;
}

.detail-insights {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #fff5f1;
  border: 1px solid #ffe0d7;
}

.detail-insights strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.detail-insights span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

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

.detail-kpi,
.detail-chart-card,
.detail-related {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  background: #fbfcfd;
}

.detail-kpi {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  grid-gap: 6px 10px;
  gap: 6px 10px;
}

.detail-kpi i {
  grid-row: span 3;
  width: 8px;
  height: 100%;
  min-height: 44px;
  border-radius: 99px;
}

.detail-kpi span,
.detail-kpi small,
.detail-chart-card header span {
  color: #7b8290;
  font-size: 12px;
  font-weight: 700;
}

.detail-kpi strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
  font-size: 22px;
  line-height: 1.05;
}

.detail-kpi-value {
  gap: 8px;
  max-width: 100%;
}

.detail-kpi-value strong {
  flex: 1 1 auto;
}

.detail-kpi-value .copyable-value {
  flex: 0 0 auto;
}

.detail-chart-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.detail-chart-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.detail-related {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.detail-section-title {
  color: #111827;
  font-size: 14px;
}

.analytics-error {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.analytics-error span {
  color: #7b8290;
}

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

@keyframes analytics-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-clickable,
  .clickable-analytics,
  .chart-hover-target,
  .recharts-bar-rectangle,
  .recharts-sector,
  .recharts-dot,
  .heatmap-row span,
  .loader,
  .analytics-loader,
  .skeleton::after,
  .shimmer::after,
  .analytics-loading::after {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .analytics-page {
    grid-template-columns: 1fr;
  }

  .analytics-sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #e6e8ee;
  }

  .side-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .side-nav a {
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .side-card {
    display: none;
  }

  .analytics-main {
    padding: 16px;
  }

  .analytics-header,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-pill {
    width: 100%;
  }

  .language-switch {
    width: max-content;
  }

  .mini-insight-grid {
    grid-template-columns: 1fr;
  }

  .donut-chart {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    width: 100%;
    max-height: none;
    border-top: 1px solid #e3e6ed;
    border-left: 0;
    box-shadow: 0 -14px 34px rgba(17, 24, 39, 0.1);
  }

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

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

  .analytics-header h1 {
    font-size: 26px;
  }

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

