:root {
  --deepseek: #1477ff;
  --deepseek-2: #13c2c2;
  --ink: #102033;
  --muted: #637083;
  --line: #dbe6f5;
  --panel: rgba(255, 255, 255, 0.88);
  --bg: #f4f8fc;
  --nav: #0b1f3a;
  --good: #0f9f6e;
  --warn: #d97706;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 119, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(19, 194, 194, 0.14), transparent 26rem),
    linear-gradient(180deg, #eef6ff 0%, var(--bg) 36%, #ffffff 100%);
}

.language-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  min-width: 58px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deepseek);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
  box-shadow: 0 12px 30px rgba(19, 194, 194, 0.28);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.main {
  min-width: 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 42px 0 22px;
  text-align: center;
}

.hero-inner {
  width: min(760px, 100%);
}

.hero-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  font-size: 25px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--deepseek);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
  box-shadow: 0 12px 28px rgba(20, 119, 255, 0.2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-status {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-opt-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #26384d;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.ranking-opt-in input {
  width: 16px;
  height: 16px;
  accent-color: var(--deepseek);
}

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

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deepseek);
  background: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
  box-shadow: 0 12px 28px rgba(20, 119, 255, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deepseek);
  background: white;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.sample-link {
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  color: var(--deepseek);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.help-inline {
  margin-top: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin: 8px 0 22px;
}

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid rgba(219, 230, 245, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 850;
  line-height: 1;
}

.stat-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.panel {
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
}

.panel.wide {
  grid-column: span 2;
}

.share-panel {
  margin: 8px 0 22px;
}

.intro-panel {
  width: min(900px, 100%);
  margin: 0 auto 26px;
  box-shadow: 0 12px 36px rgba(16, 32, 51, 0.08);
}

.home-leaderboards {
  margin: 8px 0 34px;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-section-header h2 {
  font-size: 24px;
}

.home-section-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.leaderboard-mini-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(219, 230, 245, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.mini-card-header h3 {
  margin: 0;
  font-size: 17px;
}

.mini-card-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.mini-rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: #26384d;
  background: #f8fbff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.mini-rank-row:hover,
.mini-rank-row.own {
  color: var(--deepseek);
  background: rgba(20, 119, 255, 0.08);
}

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

.mini-rank-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.leaderboard-link {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deepseek);
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.leaderboard-view {
  padding-top: 22px;
}

.leaderboard-header {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.leaderboard-header h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.leaderboard-header p {
  margin-top: 8px;
  color: var(--muted);
}

.my-rank-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--deepseek);
  font-size: 18px;
  font-weight: 900;
}

.my-rank-panel span {
  color: var(--ink);
}

.leaderboard-table .own-row td {
  color: var(--deepseek);
  background: rgba(20, 119, 255, 0.07);
  font-weight: 900;
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.help-steps div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid #e2ecf7;
  border-radius: 8px;
  background: #f8fbff;
}

.help-steps strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
}

.help-steps span {
  display: block;
  color: #26384d;
  font-size: 13px;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 26, 51, 0.38);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(219, 230, 245, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(16, 32, 51, 0.24);
}

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

.modal-header h2 {
  font-size: 22px;
}

.detail-view {
  padding-top: 10px;
}

.detail-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(219, 230, 245, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.1);
  backdrop-filter: blur(18px);
}

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

.detail-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.detail-nav-item:hover {
  color: var(--deepseek);
  background: rgba(20, 119, 255, 0.07);
}

.detail-nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
  box-shadow: 0 12px 26px rgba(20, 119, 255, 0.2);
}

.detail-nav-item [data-icon] {
  display: inline-flex;
  align-items: center;
}

.detail-content {
  min-width: 0;
}

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

.detail-kicker {
  margin-bottom: 6px;
  color: var(--deepseek);
  font-size: 13px;
  font-weight: 850;
}

.detail-page {
  min-width: 0;
}

.back-link {
  border: 0;
  color: var(--deepseek);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
}

.detail-range {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.comparison-panel {
  margin: 0 0 22px;
}

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

.comparison-card {
  padding: 16px;
  border: 1px solid #e2ecf7;
  border-radius: 8px;
  background: #f8fbff;
}

.comparison-provider {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comparison-value {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.comparison-note {
  margin-top: 8px;
  color: var(--deepseek);
  font-size: 13px;
  font-weight: 850;
}

.comparison-multiple {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(19, 194, 194, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.source-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.source-note a {
  color: var(--deepseek);
}

.share-card-frame {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(20, 119, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(20, 119, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(20, 119, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(20, 119, 255, 0.08) 75%);
  background-color: #f7fbff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

#shareCanvas {
  display: block;
  width: min(100%, 540px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(16, 32, 51, 0.22);
}

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

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

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.segmented button.active {
  color: white;
  background: linear-gradient(135deg, var(--deepseek), var(--deepseek-2));
  box-shadow: 0 8px 18px rgba(20, 119, 255, 0.2);
}

.panel h2 {
  font-size: 19px;
  letter-spacing: 0;
}

.panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--deepseek);
  background: rgba(20, 119, 255, 0.1);
  flex: 0 0 auto;
}

.chart {
  width: 100%;
  min-height: 280px;
}

.chart-large {
  min-height: 320px;
}

.axis-label {
  fill: #637083;
  font-size: 11px;
}

.chart-line {
  fill: none;
  stroke: var(--deepseek);
  stroke-width: 3;
}

.chart-area {
  fill: url(#areaGradient);
}

.bar-cost {
  fill: var(--deepseek);
}

.bar-usage {
  fill: var(--deepseek-2);
}

.bar-muted {
  fill: #b6c8de;
}

.donut-wrap {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.donut-legend {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.date-select {
  width: 150px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 13px;
}

.legend-row,
.ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.legend-name,
.ranking-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.ranking {
  display: grid;
  gap: 14px;
}

.ranking-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff9;
}

.ranking-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deepseek), var(--deepseek-2));
}

.ranking-value,
.legend-value {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.daily-share {
  display: grid;
  gap: 10px;
}

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

.share-date {
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.share-date:hover {
  color: var(--deepseek);
}

.share-track {
  position: relative;
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff9;
}

.share-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2px;
  padding: 0 6px;
  border: 0;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(16, 32, 51, 0.32);
}

.share-segment:hover {
  filter: brightness(0.9);
}

.share-segment span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-total {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.daily-breakdown {
  display: grid;
  gap: 14px;
}

.daily-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
}

.daily-total strong {
  color: var(--ink);
}

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

.breakdown-main,
.breakdown-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-main strong {
  margin-left: auto;
}

.breakdown-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.breakdown-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff9;
}

.breakdown-track div {
  height: 100%;
  border-radius: inherit;
}

.breakdown-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.model-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7fbff;
}

.model-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.model-name {
  min-width: 0;
  overflow: hidden;
  color: #26384d;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.insight {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2ecf7;
  border-radius: 8px;
  background: #f8fbff;
  color: #26384d;
  font-size: 13px;
  line-height: 1.45;
}

.insight .icon {
  color: var(--deepseek);
  margin-top: 1px;
}

.table-panel {
  margin-top: 18px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.leaderboard-table {
  min-width: 520px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #e6eef8;
  text-align: right;
  font-size: 13px;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 750;
  background: #f7fbff;
}

td {
  color: #26384d;
}

.key-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--deepseek);
  background: rgba(20, 119, 255, 0.09);
  font-weight: 750;
}

@media (max-width: 1100px) {
  .leaderboard-mini-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-sidebar {
    position: static;
  }

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

  .detail-nav-item {
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    text-align: center;
  }

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

  .panel.wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .main {
    width: min(100% - 28px, 1180px);
    padding: 20px 0 36px;
  }

  .hero {
    min-height: 58vh;
    padding-top: 36px;
  }

  .upload-button,
  .upload-status {
    width: 100%;
  }

  .upload-button {
    justify-content: center;
  }

  .sample-link {
    width: auto;
    margin: 0 auto;
  }

  .home-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .mini-rank-row em {
    grid-column: 2;
  }

  .my-rank-panel {
    align-items: flex-start;
    flex-direction: column;
    font-size: 15px;
  }

  .detail-sidebar {
    gap: 12px;
    padding: 12px;
  }

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

  .detail-nav-item {
    justify-content: flex-start;
  }

  .stat-grid,
  .section-grid,
  #usage,
  .help-steps,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel.wide {
    grid-column: auto;
  }

  .panel-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .segmented {
    width: 100%;
  }

  .stat-card {
    min-height: 110px;
  }

  .model-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .model-row span:nth-child(n + 3) {
    display: none;
  }
}
