/* ═══════════════════════════════════════════════
   TRACKER — Grid, badges, rows, dots
   ═══════════════════════════════════════════════ */

.mylog-centered-stack {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.mylog-centered-stack .status-banner {
  width: 100%;
}

/* tracker-section: overflow:hidden is required so the badge corner-radius clips correctly */
.tracker-section {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding-bottom: 12px;
  width: 100%;
}

.tracker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
  /* gear btn is positioned relative to tracker-section, not badge */
}

.badge-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.badge-name  { font-weight: 700; }
.badge-sticker {
  font-style: normal;
  display: inline-flex;
  align-items: center;
}

.tracker-header-row,
.tracker-row {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.tracker-header-row::-webkit-scrollbar,
.tracker-row::-webkit-scrollbar { display: none; }

.activity-label {
  width: 185px;
  min-width: 185px;
  max-width: 185px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.activity-name-text {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.activity-cad-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  flex-shrink: 0;
  white-space: nowrap;
  text-transform: none;
}

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.day-header {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.day-num  { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.day-label { font-size: 0.6rem; color: var(--text-faint); }

.day-header-today { background: var(--bg-subtle); border-radius: var(--radius-sm); }
.day-num.today    { color: var(--color-primary); font-weight: 700; }

.day-header-sunday {
  background: rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -2px 0 rgba(249, 115, 22, 0.32);
}

.day-header-sunday .day-num {
  color: #ffb98f;
  font-weight: 700;
}

.day-header-sunday .day-label {
  color: #ffb98f;
  font-weight: 600;
}

.day-header-sunday.day-header-future .day-num,
.day-header-sunday.day-header-future .day-label {
  opacity: 0.9;
}

.day-header-sunday .day-num.today {
  color: var(--color-primary);
}

[data-theme="side-a"] .day-header-sunday {
  background: rgba(249, 115, 22, 0.12);
  box-shadow: inset 0 -2px 0 rgba(234, 88, 12, 0.28);
}

[data-theme="side-a"] .day-header-sunday .day-num,
[data-theme="side-a"] .day-header-sunday .day-label {
  color: #c2410c;
}

.day-header-future .day-num,
.day-header-future .day-label { opacity: 0.45; }
[data-theme="side-a"] .day-header-future .day-num,
[data-theme="side-a"] .day-header-future .day-label { opacity: 0.7; }

.day-header.week-start,
.day-header.week-mid,
.day-header.week-end {
  border-top: 2px solid rgba(99, 102, 241, 0.35);
}
.day-header.week-start { border-top-left-radius: var(--radius-sm); }
.day-header.week-end   { border-top-right-radius: var(--radius-sm); }
[data-theme="side-a"] .day-header.week-start,
[data-theme="side-a"] .day-header.week-mid,
[data-theme="side-a"] .day-header.week-end {
  border-top-color: rgba(99, 102, 241, 0.25);
}

.day-start-square {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--color-primary);
  margin: 0 auto 1px;
}

.tracker-grid-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 16px 0;
  border-top: 1px solid var(--border-faint);
  font-size: 0.62rem;
  color: var(--text-faint);
}
.tgl-item {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}
.tgl-square {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
}
.tgl-sunday {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: rgba(249, 115, 22, 0.3);
  flex-shrink: 0;
}
[data-theme="side-a"] .tgl-sunday {
  background: rgba(234, 88, 12, 0.2);
}
.tgl-week {
  width: 22px;
  height: 3px;
  border-radius: 1px;
  background: rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}
[data-theme="side-a"] .tgl-week {
  background: rgba(99, 102, 241, 0.35);
}

.day-cell {
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all var(--transition);
  background: var(--bg-surface);
}

.day-cell-today     { border-color: var(--color-primary); border-width: 2px; }
.day-cell.future    { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
[data-theme="side-a"] .day-cell.future { opacity: 0.7; }
.day-cell.clickable:hover { transform: scale(1.2); border-color: var(--text-muted); cursor: pointer; }
.day-cell.clickable.day-cell-today:hover { border-color: var(--color-primary); }
.day-cell.marked    { font-size: 0.8rem; }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 80px 24px;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════
   STATUS BANNER
   ═══════════════════════════════════════════════ */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.status-banner--pending {
  background: rgba(249, 115, 22, 0.10);
  border-color: rgba(249, 115, 22, 0.30);
}

.status-banner--done {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.28);
}

.status-banner__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.status-banner__body {
  flex: 1;
  min-width: 0;
}

.status-banner__title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.status-banner__sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.status-banner__pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-banner--pending .status-banner__pill {
  background: var(--color-primary);
  color: #fff;
}

.status-banner--done .status-banner__pill {
  background: var(--status-hit);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   PROGRESS SUMMARY CARD
   ═══════════════════════════════════════════════ */
.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  margin-bottom: 24px;
}

.summary-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.summary-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-card__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.summary-share-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.summary-stat {
  padding: 16px 12px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.summary-stat:last-child { border-right: none; }

.summary-stat__icon  { font-size: 15px; display: block; margin-bottom: 5px; }

.summary-stat__val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 3px;
}

.summary-stat__unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-stat__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  display: block;
  position: relative;
  line-height: 1.25;
}

.summary-stat__label-text {
  display: inline;
}

.summary-stat__help-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 4px;
}

.summary-stat__help-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 9px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  text-transform: none;
  cursor: help;
  padding: 0;
}

.summary-stat__help-btn:focus-visible {
  outline: 2px solid rgba(99,102,241,0.55);
  outline-offset: 2px;
}

[data-theme="side-a"] .summary-stat__help-btn {
  border-color: rgba(15, 23, 42, 0.28);
  color: #475569;
  background: rgba(255, 255, 255, 0.92);
}

.summary-stat__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(290px, 72vw);
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(38, 47, 82, 0.97);
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0.01em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 9;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.summary-stat__help-wrap:hover .summary-stat__tooltip,
.summary-stat__help-wrap:focus-within .summary-stat__tooltip,
.summary-stat__help-wrap.is-open .summary-stat__tooltip {
  opacity: 1;
  visibility: visible;
}

[data-theme="side-a"] .summary-stat__tooltip {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}

@media (max-width: 700px) {
  .summary-stat__label {
    letter-spacing: 0.06em;
  }

  .summary-stat__tooltip {
    width: min(220px, 86vw);
  }

  .summary-stat:first-child .summary-stat__tooltip {
    left: 8px;
    transform: none;
  }

  .summary-stat:last-child .summary-stat__tooltip {
    left: auto;
    right: 8px;
    transform: none;
  }
}

.summary-note {
  margin: 0 18px 14px;
  padding: 9px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.summary-note strong { color: var(--text-primary); }

.top-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.10));
  border: 1px solid rgba(139,92,246,0.22);
  animation: insightFadeIn 0.5s ease-out;
}

.top-insight__emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.top-insight__msg {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

[data-theme="side-a"] .top-insight {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.07));
  border-color: rgba(139,92,246,0.18);
}

@keyframes insightFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.summary-habits {
  padding: 0 18px 16px;
}

.summary-habits-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.summary-habits-grid__left,
.summary-habits-grid__right {
  min-width: 0;
}

.summary-habits__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.summary-habit-row { margin-bottom: 12px; }
.summary-habit-row:last-child { margin-bottom: 0; }

.summary-habit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.summary-habit-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-habit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-habit-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.summary-habit-cad {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-faint);
}

.summary-habit-pct {
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 0.25s ease;
}

.summary-habit-pct--hit,
.summary-habit-pct--over     { color: var(--status-hit); }
.summary-habit-pct--caution  { color: var(--status-caution); }
.summary-habit-pct--miss     { color: var(--status-miss); }

.summary-habit-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.summary-habit-streak--togo {
  background: var(--status-caution-wash);
  color: var(--status-caution);
  border-color: var(--status-caution-border);
}

.summary-habit-streak--met {
  background: var(--status-hit-wash);
  color: var(--status-hit);
  border-color: var(--status-hit-border);
}

.summary-habit-streak--empty {
  display: none;
}

.summary-week-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.summary-week-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.summary-week-chip--hit {
  color: var(--status-hit);
  border-color: var(--status-hit-border);
  background: var(--status-hit-wash);
}

.summary-week-chip--miss {
  color: var(--status-miss);
  border-color: var(--status-miss-border);
  background: var(--status-miss-wash);
}

.fullweek-calendar-wrap {
  position: relative;
}

.fullweek-calendar {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.fullweek-calendar__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fullweek-calendar__sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}

.fw-dow,
.fw-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fw-dow {
  font-size: 0.58rem;
  color: var(--text-faint);
  margin-bottom: 4px;
  text-align: center;
}

.fw-week {
  margin-bottom: 6px;
}

.fw-week--full {
  border-radius: 10px;
  padding: 6px;
  background: rgba(99, 102, 241, 0.06);
  outline: 1.5px solid rgba(99, 102, 241, 0.28);
  outline-offset: 0px;
}

[data-theme="side-b"] .fw-week--full {
  background: rgba(99, 102, 241, 0.14);
  outline-color: rgba(165, 180, 252, 0.45);
}

.fw-day {
  position: relative;
  min-height: 36px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3px 4px 3px 4px;
  overflow: visible;
}

.fw-day--muted { opacity: 0.4; }

.fw-day-num {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  align-self: flex-end;
}

.fw-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  padding-top: 2px;
}

.fw-habit-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fw-habit-dot--more {
  width: auto;
  height: auto;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 3px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}

.fw-day--has-overflow { cursor: pointer; }

.fw-join-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 1px;
  margin-top: 1px;
}

.fw-join-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: --text;
  line-height: 1;
  white-space: nowrap;
}

.fw-day:has(.fw-join-indicator) {
  background: color-mix(in srgb, var(--red) 15%, transparent);
  border-color: color-mix(in srgb, var(--red) 50%, transparent);
}

.fw-badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
  vertical-align: middle;
}

.fw-popover {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  white-space: nowrap;
}

.fw-popover-item {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text);
}

.fw-badges {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.fw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.fw-badge--hit   { color: var(--status-hit);     border-color: var(--status-hit-border);     background: var(--status-hit-wash); }
.fw-badge--close { color: var(--status-caution); border-color: var(--status-caution-border); background: var(--status-caution-wash); }
.fw-badge--miss  { color: var(--status-miss);    border-color: var(--status-miss-border);    background: var(--status-miss-wash); }

.fw-legend {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.fw-legend-pill { font-size: 0.62rem; }

.fw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.fw-dot--hit   { background: var(--status-hit); }
.fw-dot--close { background: var(--status-caution); }
.fw-dot--miss  { background: var(--status-miss); }

.fw-has-empty-overlay .fullweek-calendar {
  opacity: 0.9;
  pointer-events: none;
}

.fw-empty-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--fw-overlay);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.fw-empty-overlay h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.fw-empty-overlay p {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.fw-overlay-join-note {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 900px) {
  .summary-habits-grid { grid-template-columns: 1fr; }
}

.summary-habit-track {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.summary-habit-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.summary-habit-fill--hit     { background: var(--bar-hit); }
.summary-habit-fill--caution { background: var(--bar-caution); }
.summary-habit-fill--miss    { background: var(--bar-miss); }

/* ═══════════════════════════════════════════════
   PACE STATUS ROW
   ═══════════════════════════════════════════════ */
.summary-habit-sub {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.pace-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pace-badge--ahead {
  color: var(--pace-ahead);
  background: var(--pace-ahead-wash);
  border-color: var(--pace-ahead-border);
}

.pace-badge--on-track {
  color: var(--pace-ontrack);
  background: var(--pace-ontrack-wash);
  border-color: var(--pace-ontrack-border);
}

.pace-badge--behind {
  color: var(--pace-behind);
  background: var(--pace-behind-wash);
  border-color: var(--pace-behind-border);
}

.pace-badge--early {
  color: var(--pace-early);
  background: var(--pace-early-wash);
  border-color: var(--pace-early-border);
}

.pace-badge--started {
  color: var(--pace-started);
  background: var(--pace-started-wash);
  border-color: var(--pace-started-border);
}

.pace-message {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.habit-insight {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border-left: 2px solid var(--border);
  animation: insightFadeIn 0.45s ease-out;
}

[data-theme="side-a"] .habit-insight {
  color: var(--text);
  background: rgba(0,0,0,0.03);
}

/* ═══════════════════════════════════════════════
   CADENCE PICKER (month setup)
   ═══════════════════════════════════════════════ */
.ms-activity-row {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.ms-activity-row:last-child { border-bottom: none; }

.ms-cadence-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ms-cadence-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ms-cadence-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.ms-cadence-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ms-cadence-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
