.profile-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 14px; }
.profile-actions .pixel-button { min-height: 48px; }
.profile-form > label { min-width: 0; }
.profile-form .status:empty { display: none; }
#dashboard { min-width: 0; }
.hero { padding: 24px 0 0; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
#progress-panel .filters { grid-template-columns: minmax(140px, 1fr) minmax(100px, .5fr); padding: 0; border: 0; max-width: 100%; }
#progress-panel .panel-heading > div { min-width: 0; }
.progress-scroll { overflow-x: auto; }
.progress-chart { display: block; width: 100%; min-width: 620px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 3; }
.chart-label { fill: var(--muted); font: 12px sans-serif; }
.chart-dot { fill: var(--blue); stroke: var(--ink); stroke-width: 1.5; }
.chart-dot.ranked, .chart-star { fill: var(--gold); }
.chart-point { cursor: pointer; }
.chart-point:focus { outline: none; }
.chart-point:focus .chart-dot, .chart-point[aria-pressed="true"] .chart-dot { stroke: var(--ink); stroke-width: 4; }
#trend-detail { min-height: 55px; margin: 16px 0; line-height: 1.6; }
#trend-detail p { margin-bottom: 10px; }
.recent-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.recent-game { display: grid; gap: 12px; padding: 18px; background: var(--panel-2); color: var(--ink); text-decoration: none; border: 2px solid var(--line); }
.recent-game:hover, .recent-game:focus-visible { border-color: var(--gold); }
.recent-game small { color: var(--muted); }
.recent-game > span:last-child { color: var(--gold); font-weight: 800; }
#history-panel > summary { padding: 24px; cursor: pointer; font-weight: 800; }
#results-status:empty, #share-trend-status:empty { display: none; }
#trend-image-download { display: block; margin-top: 20px; }
#trend-image-preview { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 680px) {
  #progress-panel .filters { width: 100%; }
  #progress-panel .panel-body { padding: 16px; }
  .profile-form > label { flex-basis: 100%; }
  .profile-actions { width: 100%; }
  .profile-actions .pixel-button { flex: 1 1 140px; }
  #run-list .run-item > :nth-child(2),
  #run-list .run-item > :nth-child(3) { display: block; }
  #run-list .run-item > :first-child,
  #run-list .run-item > :last-child { grid-column: 1 / -1; }
}
