/* appsium.io/charts: daily App Store top charts, built by scripts/build_charts.py. Editorial paper layer, color only for moves. */
.ch-nav { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ch-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ch-pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.ch-row > span { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin-right: 6px; min-width: 76px; }
.ch-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--border-grid); border-radius: 999px; font-size: 13px; color: var(--text-secondary); text-decoration: none; background: var(--bg-surface); white-space: nowrap; }
.ch-pill:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.ch-pill.on { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.ch-pills.ch-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }

.ch-movers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 28px; }
.ch-box { border: 1px solid var(--border-grid); border-radius: 18px; background: var(--bg-surface); padding: 18px 20px; }
.ch-box h2 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); margin: 0 0 12px; }
.ch-box ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-box li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.ch-box li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ch-box li img, .ch-box li .ch-noicon { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.ch-box .ch-empty { color: var(--text-tertiary); font-size: 14px; margin: 0; }
.ch-locked { position: relative; overflow: hidden; }
.ch-locked ol { filter: blur(5px); user-select: none; pointer-events: none; }
.ch-unlock { position: absolute; inset: 44px 16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 14px; color: var(--text-secondary); }
.ch-unlock a, .ch-lock-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--text-primary); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; }

.ch-table-wrap { border: 1px solid var(--border-grid); border-radius: 18px; background: var(--bg-surface); overflow: hidden; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ch-table th { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); border-bottom: 1px solid var(--border-grid); white-space: nowrap; }
.ch-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-grid); vertical-align: middle; }
.ch-table tr:last-child td { border-bottom: 0; }
.ch-rank { width: 56px; font-family: var(--font-mono); color: var(--text-secondary); }
.ch-app { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.ch-app img, .ch-noicon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-grid); flex: none; background: var(--bg-subtle); }
.ch-app span { display: flex; flex-direction: column; min-width: 0; }
.ch-app b { font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ch-app small { font-size: 12.5px; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ch-app:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ch-move { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.ch-move.up { color: #15803d; }
.ch-move.down { color: #be123c; }
.ch-move.new { color: #15803d; font-size: 11px; letter-spacing: .06em; }
.ch-move.flat { color: var(--text-tertiary); }
.ch-spark { display: block; color: var(--text-primary); }
.ch-ratings { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.ch-ratings b { font-weight: 500; color: var(--text-primary); }
.ch-gain { font-size: 11.5px; color: #15803d; }
.ch-lock-cell { width: 120px; }
.ch-lock-cell svg { filter: blur(3px); opacity: .55; }
.ch-th-lock a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--text-tertiary); }
.ch-cta-row td { background: var(--bg-subtle); padding: 18px 16px; }
.ch-cta-row div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.ch-cta-row b { font-weight: 500; }
.ch-updated { margin: 14px 2px 0; font-size: 13px; color: var(--text-tertiary); }

.ch-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 36px; }
.ch-country { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border-grid); border-radius: 14px; background: var(--bg-surface); text-decoration: none; color: var(--text-primary); font-size: 15px; }
.ch-country:hover { border-color: var(--text-secondary); }
.ch-country span { font-size: 20px; }
.ch-section-title { font-weight: 300; letter-spacing: -.03em; font-size: clamp(26px, 3vw, 36px); margin: 8px 0 18px; }

@media (max-width: 720px) {
  .ch-hide-sm { display: none; }
  .ch-table th, .ch-table td { padding: 10px 10px; }
  .ch-app b, .ch-app small { max-width: 190px; }
  .ch-row { flex-direction: column; align-items: stretch; }
  .ch-pills { width: 100%; }
}
.ch-summary { margin: -8px 0 24px; font-size: 15.5px; color: var(--text-secondary); max-width: 80ch; }
.ch-list-tag { font-size: 13px; color: var(--text-secondary); text-decoration: none; border-bottom: 1px dashed var(--border-grid); white-space: nowrap; }
.ch-list-tag:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.ch-from { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-tertiary); white-space: nowrap; }
.ch-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.ch-empty { color: var(--text-tertiary); }
