:root {
  --traffic-source: #d9604b;
  --traffic-egress: #2478b6;
  --traffic-preview: #15966f;
  --traffic-total: #6f63c8;
}

body {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(105, 179, 231, .22) 0%, transparent 42%),
    radial-gradient(ellipse at 86% 18%, rgba(155, 210, 244, .18) 0%, transparent 38%),
    linear-gradient(180deg, #fffefd 0%, var(--page) 100%);
}

.analytics-shell {
  position: relative;
  width: min(1180px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 76px 15px 36px;
  overflow-x: clip;
}

.dashboard {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-topbar {
  position: absolute;
  z-index: 30;
  top: 20px;
  left: 15px;
  right: 15px;
  min-width: 0;
  pointer-events: none;
}

.top-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.analytics-back-button,
.top-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(105, 179, 231, .34);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .76);
  color: var(--primary-deep);
  box-shadow: 0 8px 24px rgba(53, 108, 148, .08);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: all .22s ease;
}

.analytics-back-button {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 14px;
}

.analytics-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  line-height: 1;
  font-size: .82em;
  font-weight: 900;
}

.top-action-button .analytics-icon {
  font-size: 1.1rem;
}

.rank-tab .analytics-icon {
  min-width: 1.5em;
  font-size: .68rem;
  letter-spacing: 0;
}

.analytics-back-button:hover,
.top-action-button:hover:not(:disabled) {
  color: #fff;
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-1px);
}

.top-action-button:disabled {
  cursor: wait;
  opacity: .72;
}

.top-action-button.is-loading .refresh-icon {
  animation: analytics-spin .8s linear infinite;
}

.top-action-danger {
  border-color: rgba(190, 74, 74, .26);
  color: #9f3939;
  background: rgba(255, 255, 255, .76);
}

.top-action-danger:hover:not(:disabled) {
  color: #fff;
  background: #b94444;
  border-color: transparent;
}

.top-action-icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.top-action-icon span {
  display: none;
}

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

.analytics-panel {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-head,
.traffic-head,
.traffic-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head h2,
.traffic-head h2,
.traffic-detail-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.panel-head span,
.traffic-head span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.traffic-head > div:first-child {
  display: grid;
  gap: 4px;
}

.range-tabs,
.rank-tabs,
.rank-sort-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246, 251, 255, .78);
  box-shadow: 0 8px 24px rgba(53, 108, 148, .06);
  backdrop-filter: blur(14px);
}

.range-tab,
.rank-tab,
.rank-sort-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.range-tab:hover,
.rank-tab:hover,
.rank-sort-tab:hover {
  color: var(--ink);
  background: rgba(105, 179, 231, .14);
}

.range-tab.active,
.rank-tab.active,
.rank-sort-tab.active {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 8px 18px rgba(105, 179, 231, .24);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.traffic-metric {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 251, 255, .78);
}

.traffic-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 14px 0 0 14px;
  background: var(--traffic-total);
}

.traffic-metric.source::before { background: var(--traffic-source); }
.traffic-metric.egress::before { background: var(--traffic-egress); }
.traffic-metric.preview::before { background: var(--traffic-preview); }

.traffic-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.traffic-metric.source strong { color: var(--traffic-source); }
.traffic-metric.egress strong { color: var(--traffic-egress); }
.traffic-metric.preview strong { color: var(--traffic-preview); }
.traffic-metric.total strong { color: var(--traffic-total); }

.traffic-metric small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: .74rem;
  font-weight: 800;
}

.traffic-detail-head {
  margin: 2px 0 12px;
}

.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.traffic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}

.traffic-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.traffic-legend .source,
.trend-values .source { color: var(--traffic-source); }
.traffic-legend .egress,
.trend-values .egress { color: var(--traffic-egress); }
.traffic-legend .preview,
.trend-values .preview { color: var(--traffic-preview); }

.traffic-chart {
  display: grid;
  gap: 14px;
}

.traffic-plot {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(10px, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 210px;
  padding: 14px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(105, 179, 231, .10) 1px, transparent 1px),
    rgba(246, 251, 255, .66);
  background-size: 100% 42px, 100% 100%;
}

.traffic-bar {
  display: grid;
  grid-template-rows: minmax(160px, 1fr) 18px;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.traffic-bar-stack {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: 100%;
  height: var(--bar-height);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px 8px 4px 4px;
  background: rgba(138, 160, 180, .16);
  box-shadow: 0 8px 18px rgba(53, 108, 148, .08);
  transition: filter .16s ease, transform .16s ease;
}

.traffic-bar:hover .traffic-bar-stack {
  filter: saturate(1.12);
  transform: translateY(-2px);
}

.traffic-bar-stack i {
  display: block;
  width: 100%;
  min-height: 0;
}

.traffic-bar-stack .source {
  height: var(--source-height);
  background: var(--traffic-source);
}

.traffic-bar-stack .egress {
  height: var(--egress-height);
  background: var(--traffic-egress);
}

.traffic-bar-stack .preview {
  height: var(--preview-height);
  background: var(--traffic-preview);
}

.traffic-bar > span {
  min-width: 0;
  color: var(--subtle);
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

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

.traffic-highlight,
.traffic-empty-note {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
}

.traffic-highlight strong,
.traffic-highlight span {
  display: block;
}

.traffic-highlight strong {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
}

.traffic-highlight > span {
  margin: 4px 0 6px;
  color: var(--primary-deep);
  font-size: 1rem;
  font-weight: 900;
}

.trend-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  white-space: normal;
}

.trend-values span {
  font-weight: 900;
}

.traffic-empty-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}

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

.storage-item {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246, 251, 255, .78);
}

.storage-item span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.storage-item strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-deep);
  font-size: 1.05rem;
  font-weight: 900;
}

.rank-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.rank-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
  flex-wrap: wrap;
}

.rank-control-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rank-control-group > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.rank-range-group {
  justify-items: end;
}

.rank-table {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 96px 110px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246, 251, 255, .78);
}

.rank-row-head {
  color: var(--subtle);
  font-size: .76rem;
  font-weight: 900;
}

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(105, 179, 231, .16);
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--traffic-egress);
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(246, 251, 255, .78);
}

.history-record-groups {
  display: grid;
  gap: 14px;
}

.history-record-group,
.history-full-view {
  min-width: 0;
}

.history-record-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.history-record-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 900;
}

.history-record-group-head span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.history-view-all {
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.history-view-all:disabled {
  cursor: default;
  opacity: .45;
}

.history-filter-group {
  display: grid;
  gap: 6px;
}

.history-filter-group > label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.history-filter-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(105, 179, 231, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 24px rgba(53, 108, 148, .06);
}

.history-filter-combo:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(105, 179, 231, .15);
}

.history-filter-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.history-filter-input::placeholder {
  color: var(--subtle);
}

.history-filter-clear {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
}

.history-filter-clear:hover {
  background: rgba(105, 179, 231, .12);
  color: var(--primary-deep);
}

.history-table-wrap {
  width: 100%;
  overflow: visible;
}

.history-table,
.history-detail-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
}

.admin-history-table th:nth-child(1), .admin-history-table td:nth-child(1) { width: 12%; }
.admin-history-table th:nth-child(2), .admin-history-table td:nth-child(2) { width: 9%; }
.admin-history-table th:nth-child(3), .admin-history-table td:nth-child(3) { width: 7%; }
.admin-history-table th:nth-child(4), .admin-history-table td:nth-child(4) { width: 24%; }
.admin-history-table th:nth-child(5), .admin-history-table td:nth-child(5) { width: 11%; }
.admin-history-table th:nth-child(6), .admin-history-table td:nth-child(6) { width: 14%; }
.admin-history-table th:nth-child(7), .admin-history-table td:nth-child(7) { width: 8%; }
.admin-history-table th:nth-child(8), .admin-history-table td:nth-child(8) { width: 8%; }
.admin-history-table th:nth-child(9), .admin-history-table td:nth-child(9) { width: 7%; }

.music-history-table th:nth-child(1), .music-history-table td:nth-child(1) { width: 13%; }
.music-history-table th:nth-child(2), .music-history-table td:nth-child(2) { width: 9%; }
.music-history-table th:nth-child(3), .music-history-table td:nth-child(3) { width: 34%; }
.music-history-table th:nth-child(4), .music-history-table td:nth-child(4) { width: 14%; }
.music-history-table th:nth-child(5), .music-history-table td:nth-child(5) { width: 7%; }
.music-history-table th:nth-child(6), .music-history-table td:nth-child(6) { width: 12%; }
.music-history-table th:nth-child(7), .music-history-table td:nth-child(7) { width: 11%; }

.image-history-table th:nth-child(1), .image-history-table td:nth-child(1) { width: 13%; }
.image-history-table th:nth-child(2), .image-history-table td:nth-child(2) { width: 24%; }
.image-history-table th:nth-child(3), .image-history-table td:nth-child(3) { width: 10%; }
.image-history-table th:nth-child(4), .image-history-table td:nth-child(4) { width: 12%; }
.image-history-table th:nth-child(5), .image-history-table td:nth-child(5) { width: 9%; }
.image-history-table th:nth-child(6), .image-history-table td:nth-child(6) { width: 16%; }
.image-history-table th:nth-child(7), .image-history-table td:nth-child(7) { width: 9%; }
.image-history-table th:nth-child(8), .image-history-table td:nth-child(8) { width: 7%; }

.history-table th,
.history-table td,
.history-detail-table th,
.history-detail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-table th,
.history-detail-table th {
  color: var(--subtle);
  background: var(--primary-tint);
  font-size: .74rem;
  font-weight: 900;
}

.history-table tbody tr:hover {
  background: rgba(105, 179, 231, .08);
}

.analytics-open-detail {
  color: var(--ink);
  font-weight: 900;
}

.analytics-open-detail:hover {
  color: var(--primary-deep);
}

.history-title {
  display: block;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

.history-name-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.history-name-cell .history-title {
  flex: 1 1 100%;
}

.history-table small {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: .7rem;
  font-weight: 700;
}

.history-quality {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  color: inherit;
  line-height: 1.15;
}

.history-quality strong {
  display: block;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
}

.history-quality-en {
  display: block;
  color: var(--subtle);
  font-size: .66rem;
  font-weight: 900;
}

.history-chip-button,
.quality-filter-button,
.toggle-history-items,
.history-operation-chip,
.history-inline-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(105, 179, 231, .24);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(105, 179, 231, .10);
  color: var(--primary-deep);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.history-inline-filter.active {
  border-color: transparent;
  background: var(--gradient-1);
  color: #fff;
}

.history-operation-chip {
  min-width: 72px;
  border-color: rgba(63, 120, 176, .25);
  background: rgba(63, 120, 176, .12);
  color: #286092;
}

.history-operation-chip.operation-preview {
  border-color: rgba(28, 137, 128, .26);
  background: rgba(28, 137, 128, .13);
  color: #167067;
}

.history-operation-chip.operation-download_failed {
  border-color: rgba(190, 74, 74, .26);
  background: rgba(190, 74, 74, .12);
  color: #9f3939;
}

.history-detail-row td {
  padding: 0 12px 10px;
  background: rgba(246, 251, 255, .72);
}

.history-detail-row.d-none {
  display: none;
}

.history-detail-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.history-detail-table th,
.history-detail-table td {
  padding: 8px 10px;
  font-size: .72rem;
}

.heading-count,
.panel-count-extra {
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 900;
}

.history-pagination-bottom {
  justify-content: flex-end;
  margin-top: 14px;
}

.empty-row {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  text-align: center;
}

.skeleton-card,
.skeleton-row,
.skeleton-filter,
.analytics-table-skeleton {
  position: relative;
  overflow: hidden;
  border-color: rgba(105, 179, 231, .18);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent),
    rgba(246, 251, 255, .86);
  background-size: 220px 100%, 100% 100%;
  animation: analytics-skeleton 1.2s ease-in-out infinite;
}

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

.skeleton-row {
  min-height: 48px;
}

.skeleton-filter {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.analytics-table-skeleton {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@keyframes analytics-skeleton {
  from { background-position: -220px 0, 0 0; }
  to { background-position: calc(100% + 220px) 0, 0 0; }
}

.is-windows .top-action-button,
.is-windows .range-tab,
.is-windows .rank-tab,
.is-windows .rank-sort-tab,
.is-windows .panel-head h2,
.is-windows .traffic-head h2,
.is-windows .traffic-detail-head h3,
.is-windows .traffic-metric strong,
.is-windows .rank-row-head,
.is-windows .analytics-open-detail,
.is-windows .history-title,
.is-windows .history-quality strong,
.is-windows .history-quality-en,
.is-windows .history-chip-button,
.is-windows .quality-filter-button,
.is-windows .toggle-history-items,
.is-windows .history-operation-chip,
.is-windows .history-inline-filter {
  font-weight: 700;
}

@media (max-width: 920px) {
  .analytics-shell {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .rank-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics,
  .storage-metrics,
  .analytics-storage,
  .traffic-highlights,
  .history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .range-tabs,
  .rank-tabs,
  .rank-sort-tabs {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .history-table,
  .history-detail-table,
  .history-table thead,
  .history-detail-table thead,
  .history-table tbody,
  .history-detail-table tbody,
  .history-table tr,
  .history-detail-table tr,
  .history-table td,
  .history-detail-table td {
    display: block;
    width: 100% !important;
    min-width: 0;
  }

  .history-table thead,
  .history-detail-table thead {
    display: none;
  }

  .history-table tbody tr,
  .history-detail-table tbody tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    overflow: hidden;
  }

  .history-detail-row {
    border: 0 !important;
    background: transparent !important;
  }

  .history-detail-row > td {
    padding: 0 !important;
  }

  .history-table td,
  .history-detail-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    min-height: 38px;
    border-bottom: 1px solid var(--line);
  }

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

  .history-table td::before,
  .history-detail-table td::before {
    content: attr(data-label);
    color: var(--subtle);
    font-weight: 900;
  }

  .traffic-plot {
    gap: 4px;
    min-height: 180px;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .traffic-plot::-webkit-scrollbar {
    display: none;
  }

  .rank-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .rank-row-head {
    display: none;
  }

  .rank-row > * {
    min-width: 0;
  }

  .rank-row > *:nth-child(n + 3) {
    grid-column: 2;
  }

  .rank-row .mini-meter {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .analytics-shell {
    padding: 64px 9px 24px;
  }

  .admin-topbar {
    top: 10px;
    left: 9px;
    right: 9px;
  }

  .analytics-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .metrics,
  .storage-metrics,
  .analytics-storage,
  .history-filters,
  .traffic-highlights {
    grid-template-columns: 1fr;
  }

  .top-actions {
    gap: 8px;
  }

  .analytics-back-button,
  .top-action-button {
    min-height: 34px;
    padding: 8px 12px;
  }

  .top-action-icon {
    width: 34px;
    min-width: 34px;
  }

  .range-tabs,
  .rank-tabs,
  .rank-sort-tabs {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: hidden;
  }

  .range-tab,
  .rank-tab,
  .rank-sort-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .history-table td,
  .history-detail-table td {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .history-pagination-bottom {
    justify-content: stretch;
  }
}
