/* Dashboard 首页（doc/18）——三列网格对齐，参考句有趣看板而非引入其打包 CSS */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.22fr) minmax(0, .92fr);
  grid-template-areas:
    "today    hero  lb"
    "duration hero  lb"
    "checkin  hero  lb"
    "heatmap  tasks recent"
    "ad       ad    ad";
  gap: 16px;
  align-items: stretch;
}
.dash-span-today { grid-area: today; }
.dash-span-duration { grid-area: duration; }
.dash-span-checkin { grid-area: checkin; }
.dash-span-heatmap { grid-area: heatmap; display: flex; flex-direction: column; }
.dash-span-hero { grid-area: hero; }
.dash-span-tasks { grid-area: tasks; display: flex; flex-direction: column; }
.dash-span-lb { grid-area: lb; display: flex; flex-direction: column; }
.dash-span-recent { grid-area: recent; display: flex; flex-direction: column; }
.ad-banner {
  grid-area: ad;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 18px 22px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%);
  box-shadow: var(--shadow-sm);
}
.ad-banner:hover { text-decoration: none; color: #fff; }
.ad-banner--img { padding: 0; min-height: 0; }
.ad-banner--img img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.ad-banner__copy { min-width: 0; flex: 1; }
.ad-banner__title { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.ad-banner__desc { margin-top: 4px; font-size: 13px; opacity: .88; }
.ad-banner__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ad-banner__tags span {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.ad-banner__cta {
  flex-shrink: 0;
  background: #fff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 16px;
  border-radius: 999px;
}
.ad-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  background: rgba(15,23,42,.18);
  padding: 2px 6px;
  border-radius: 4px;
}
.ad-banner .ad-mark { left: 10px; right: auto; }
.ad-banner--img .ad-mark { background: rgba(15,23,42,.45); }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.dash-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 32px;
}
.dash-card__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-card__ico svg { width: 16px; height: 16px; }
.dash-card__ico--blue { background: #e8f1ff; color: #2563eb; }
.dash-card__ico--green { background: #e8f8ef; color: #16a34a; }
.dash-card__ico--amber { background: #fff4e5; color: #d97706; }
.dash-card__title { font-size: 14.5px; font-weight: 700; }
.dash-card__link {
  margin-left: auto;
  border: none;
  background: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.dash-card__link:hover { color: var(--primary-strong); text-decoration: none; }
.dash-card__link--blue { color: #60a5fa; }
.dash-card__link--blue:hover { color: #2563eb; }
.dash-card__link--green { color: #4ade80; }
.dash-card__link--green:hover { color: #16a34a; }
.dash-card__link--hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.dash-card:hover .dash-card__link--hover,
.dash-card:focus-within .dash-card__link--hover {
  opacity: 1;
  pointer-events: auto;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 64px;
}
.dash-metrics--3 { grid-template-columns: repeat(3, 1fr); }
.dash-metric { text-align: center; }
.dash-metric + .dash-metric { border-left: 1px solid var(--border); }
.dash-metric__label { font-size: 12px; color: var(--text-3); }
.dash-metric__num {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -.03em;
  color: var(--text);
}
.dash-metric__unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 2px;
}
.dash-metric__num--blue { color: #2563eb; }
.dash-metric__num--purple { color: #7c3aed; }
.dash-metric__num--green { color: var(--green); }
.dash-metric__num--amber { color: var(--amber); }

.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 0;
  height: 100%;
  padding: 22px 22px 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  background-color: #4f46e5;
  background-image:
    linear-gradient(180deg, rgba(15, 18, 40, .28) 0%, rgba(15, 18, 40, .08) 42%, rgba(15, 18, 40, .52) 100%),
    url('../images/dashboard/dashboard_hero.png');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dash-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.dash-hero__date { font-size: 48px; font-weight: 800; line-height: 1; }
.dash-hero__sub { opacity: .92; margin-top: 6px; font-size: 14px; }
.dash-hero__clock-wrap { text-align: right; }
.dash-hero__clock { font-size: 22px; font-weight: 700; }
.dash-hero__motto { margin-top: 4px; font-size: 12px; opacity: .85; }
.dash-hero__bar {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-hero__bar-text { flex: 1; font-size: 13px; min-width: 0; }
.dash-hero__people { opacity: .88; font-size: 12px; margin-top: 6px; }
.dash-hero__prog {
  height: 6px;
  background: rgba(255,255,255,.28);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.dash-hero__prog > i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 99px;
  transition: width .35s ease;
}
.dash-hero__go {
  flex-shrink: 0;
  border: none;
  background: #fff;
  color: var(--primary-strong);
  font-weight: 750;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
}
.dash-hero__go:hover { text-decoration: none; filter: brightness(1.04); }

.cal-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.cal-nav button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-2);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  flex: 0 0 auto;
}
.cal-dow { text-align: center; font-size: 10px; color: var(--text-3); line-height: 1.2; }
.cal-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #eef0f4;
  cursor: default;
}
.cal-cell.is-empty { visibility: hidden; pointer-events: none; }
.cal-cell.lv-1 { background: #c6e6d3; }
.cal-cell.lv-2 { background: #86d4a8; }
.cal-cell.lv-3 { background: #3fb76e; }
.cal-cell.lv-4 { background: #1f8a4c; }
/* 暗色空格不能压过 lv-*，否则学过的绿块会全部消失 */
html[data-theme="dark"] .cal-cell { background: #2a2e38; }
html[data-theme="dark"] .cal-cell.lv-1 { background: #1b5e3a; }
html[data-theme="dark"] .cal-cell.lv-2 { background: #238a4d; }
html[data-theme="dark"] .cal-cell.lv-3 { background: #3fb76e; }
html[data-theme="dark"] .cal-cell.lv-4 { background: #4ade80; }
.cal-cell.is-today { outline: 2px solid var(--primary); }
.cal-cell:hover { outline: 2px solid #93c5fd; }

.cal-tip {
  position: fixed;
  transform: translate(-50%, calc(-100% - 8px));
  background: #0f172a;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 320;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
}
.cal-tip.hidden { display: none; }
.cal-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f172a;
}
.cal-tip b { color: #4ade80; font-weight: 700; }

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  flex: 1;
  min-height: 72px;
}
.task-item.is-disabled { opacity: .72; }
.task-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.task-ico--check { background: #e8f8ef; color: #16a34a; }
.task-ico--post { background: #eef2ff; color: #6366f1; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 13.5px; font-weight: 700; }
.task-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.task-btn {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.task-btn:hover { text-decoration: none; filter: brightness(1.05); }
.task-btn.is-done,
.task-btn.is-off {
  background: var(--surface-2);
  color: var(--text-3);
  pointer-events: none;
}

.dash-card--lb {
  background: linear-gradient(165deg, #eef2ff 0%, #f5f3ff 42%, #ffffff 78%);
  border-color: #e0e7ff;
}
#lb-box { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 14px;
}
.lb-podium__slot {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.lb-podium__slot.is-1 { order: 2; transform: translateY(-10px); }
.lb-podium__slot.is-2 { order: 1; }
.lb-podium__slot.is-3 { order: 3; }
.lb-crown {
  height: 18px;
  color: #eab308;
  margin-bottom: 2px;
}
.lb-crown svg { width: 22px; height: 18px; }
.lb-podium__slot.is-2 .lb-crown,
.lb-podium__slot.is-3 .lb-crown { visibility: hidden; }
.lb-avatar {
  margin: 0 auto;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(99, 102, 241, .18);
}
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-podium .lb-avatar { width: 48px; height: 48px; }
.lb-podium__slot.is-1 .lb-avatar {
  width: 64px; height: 64px;
  box-shadow: 0 0 0 3px #fde68a, 0 6px 14px rgba(234, 179, 8, .28);
}
.lb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-top: -8px;
  position: relative;
  z-index: 1;
}
.lb-badge--1 { background: #eab308; }
.lb-badge--2 { background: #94a3b8; }
.lb-badge--3 { background: #d97706; }
.lb-podium .lb-name {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-podium .lb-time { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.lb-rest { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 12px;
}
.lb-row .lb-rank {
  width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-3);
  flex-shrink: 0;
}
.lb-row .lb-avatar { width: 36px; height: 36px; box-shadow: none; }
.lb-meta { min-width: 0; flex: 1; }
.lb-name { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-time { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.recent-list { display: flex; flex-direction: column; gap: 12px; }
.dash-span-recent .recent-list { flex: 1; }
.recent-item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 12px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.dash-span-recent .recent-item {
  flex: 1;
  min-height: 72px;
}
.recent-item:hover { background: var(--surface-2); text-decoration: none; }
.recent-item__cover {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.recent-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-item__body { flex: 1; min-width: 0; }
.recent-item__name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item__unit { font-size: 12px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item__when {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.recent-item__when svg { width: 12px; height: 12px; }
.dash-muted { color: var(--text-3); font-size: 13px; padding: 8px 0; }

.dash-modal .dash-modal__panel {
  max-width: 720px;
  padding: 20px 20px 0;
}
.dash-modal__panel--sm { max-width: 480px; padding-bottom: 20px; }
.dash-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 28px;
}
.dash-modal__title { font-size: 16px; font-weight: 750; margin: 0; }
.dash-modal__sub { margin: 4px 0 0; color: var(--text-3); font-size: 12.5px; }
.dash-legend {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
  padding-top: 4px;
}
.dash-legend__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.dash-legend__dot--blue { background: #3b82f6; }
.dash-legend__dot--pink { background: #ec4899; }
.dash-chart { height: 280px; margin: 8px 0 12px; }
.dash-modal__foot {
  margin: 0 -20px;
  padding: 12px 20px;
  font-size: 13px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.dash-modal__foot--blue { background: #eff6ff; color: #1e40af; }
.dash-modal__foot--green { background: #ecfdf3; color: #166534; text-align: center; }
.dash-modal__foot b { font-weight: 800; }
html[data-theme="dark"] .dash-modal__foot--blue { background: rgba(59,130,246,.16); color: #bfdbfe; }
html[data-theme="dark"] .dash-modal__foot--green { background: rgba(22,163,74,.16); color: #bbf7d0; }

.placeholder-page {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
}
.placeholder-page h2 { font-size: 20px; margin-bottom: 8px; }
.placeholder-page p { color: var(--text-3); font-size: 14px; line-height: 1.6; }

.rank-card { max-width: 560px; margin: 0 auto; }

.app--shell .app-main.rank-page {
  max-width: 980px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rank-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 420px;
  height: 100%;
  max-height: none;
  overflow: hidden;
  position: relative;
}
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  margin: 16px auto 8px;
  border-radius: 999px;
  width: fit-content;
  max-width: calc(100% - 32px);
}
.rank-tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 650;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.rank-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.rank-thead {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 140px 100px;
  gap: 8px;
  padding: 14px 22px 8px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 650;
}
.rank-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 96px;
}
.rank-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 140px 100px;
  gap: 8px;
  align-items: center;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  margin-bottom: 10px;
}
.rank-col--no { display: flex; align-items: center; }
.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.rank-no.is-gold {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #fff;
}
.rank-col--user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-user-meta { min-width: 0; flex: 1; }
.rank-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-bio {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-col--time {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-2);
}
.rank-col--active {
  font-size: 13px;
  color: var(--text-3);
  text-align: right;
}
.rank-end, .rank-empty {
  text-align: center;
  padding: 8px 0 16px;
  color: var(--text-3);
  font-size: 12.5px;
}
.rank-me {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%);
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  flex-shrink: 0;
  border-radius: 0 0 19px 19px;
  box-shadow: 0 -10px 28px rgba(49, 46, 129, .28);
}
.rank-me[hidden] { display: none !important; }
.rank-me .rank-name { color: #fff; }
.rank-me .rank-bio { color: rgba(255,255,255,.78); }
.rank-me .rank-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.rank-me__badge {
  flex-shrink: 0;
  background: #fff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.rank-me__badge.is-on { color: #b45309; }
.rank-me__user { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.rank-me__time {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.25;
}
.rank-me__time strong { display: block; font-size: 16px; font-weight: 800; }
.rank-me__time span { font-size: 12px; opacity: .85; }

html[data-theme="dark"] .rank-tabs { background: rgba(148,163,184,.14); }
html[data-theme="dark"] .rank-tab.is-active { background: var(--surface); }
html[data-theme="dark"] .rank-row { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .rank-no { background: rgba(148,163,184,.16); color: #94a3b8; }
html[data-theme="dark"] .dash-card--lb {
  background: linear-gradient(165deg, #20233a 0%, #1a1d2a 48%, var(--surface) 100%);
  border-color: var(--border);
}
html[data-theme="dark"] .dash-card__ico--blue { background: rgba(37, 99, 235, .22); color: #93c5fd; }
html[data-theme="dark"] .dash-card__ico--green { background: rgba(22, 163, 74, .22); color: #86efac; }
html[data-theme="dark"] .dash-card__ico--amber { background: rgba(217, 119, 6, .22); color: #fbbf24; }
html[data-theme="dark"] .task-ico--check { background: rgba(22, 163, 74, .22); color: #86efac; }
html[data-theme="dark"] .task-ico--post { background: rgba(99, 102, 241, .22); color: #a5b4fc; }
html[data-theme="dark"] .lb-avatar {
  box-shadow: 0 0 0 3px var(--surface), 0 4px 10px rgba(99, 102, 241, .28);
}

@media (max-width: 720px) {
  .rank-thead, .rank-row {
    grid-template-columns: 72px minmax(0, 1fr) 88px;
  }
  .rank-th--active, .rank-col--active { display: none; }
  .rank-col--time { font-size: 12.5px; }
  .rank-me { flex-wrap: wrap; }
  .rank-me__time { margin-left: auto; }
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "today duration"
      "checkin heatmap"
      "lb recent"
      "tasks tasks"
      "ad ad";
  }
  .dash-hero { min-height: 280px; }
}
@media (max-width: 767px) {
  .dash-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "today"
      "duration"
      "checkin"
      "tasks"
      "heatmap"
      "lb"
      "recent"
      "ad";
  }
  .dash-hero { min-height: 240px; }
  .dash-hero__date { font-size: 36px; }
  .dash-chart { height: 220px; }
  .dash-card__link--hover { opacity: 1; pointer-events: auto; }
  .ad-banner { flex-wrap: wrap; }
  .ad-banner__cta { margin-left: auto; }
}
