/* Scoped to the personal tracker; the existing page and charts keep their styles. */
#progress-box.practice-progress {
  margin: 0 0 28px;
  padding: 26px;
  background: var(--clarity-surface-white);
  border: 1px solid var(--clarity-surface-light);
  border-radius: 12px;
  color: var(--clarity-text-primary);
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}
.practice-progress [hidden] { display: none !important; }
.practice-progress .practice-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.practice-progress .practice-streak { flex-shrink: 0; padding: 5px 14px; border: 1px solid var(--clarity-surface-light); border-radius: 999px; background: rgba(var(--clarity-surface-light-rgb), .5); color: var(--clarity-text-primary); font-size: 14px; font-weight: 600; line-height: 1.4; }
@media (max-width: 400px) {
  .practice-progress .practice-heading:has(.practice-streak:not([hidden])) h1 { font-size: 20px; }
  .practice-progress .practice-streak { font-size: 11px; padding: 5px 8px; }
}
.practice-progress .practice-module { font-size: 13px; margin: 0 0 6px; text-transform: uppercase; color: rgba(var(--clarity-navigation-surface-rgb), .65); font-weight: 600; letter-spacing: .03em; }
.practice-progress h1 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--clarity-text-primary); line-height: 1.3; }
/* Keep the numerical progress available to assistive technology without a second visual bar. */
.practice-progress .practice-meter { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.practice-progress .practice-days { position: relative; display: flex; flex-wrap: nowrap; overflow-x: auto; list-style: none; padding: 4px 0 10px; margin: 24px 0 0; }
.practice-progress .practice-day { position: relative; flex: 1 0 72px; text-align: center; }
.practice-progress .practice-day:not(:last-child)::after { content: ''; position: absolute; top: 49px; left: calc(50% + 26px); width: calc(100% - 52px); height: 2px; background: var(--clarity-surface-light); }
.practice-progress .practice-date { display: block; font-size: 11px; line-height: 18px; color: var(--clarity-text-disabled); white-space: nowrap; }
.practice-progress .practice-symbol { display: flex; width: 40px; height: 40px; margin: 12px auto 10px; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; line-height: 1; font-weight: 600; }
.practice-progress .practice-state { display: block; font-size: 12px; line-height: 18px; font-weight: 600; }
.practice-progress .practice-detail { display: block; max-width: 90px; margin: 4px auto 0; font-size: 10px; line-height: 1.4; }
.practice-progress .practice-detail:empty { display: none; }
.practice-progress .completed .practice-symbol { background: var(--clarity-success-green); color: var(--clarity-surface-white); }
.practice-progress .missed, .practice-progress .missed .practice-date { color: var(--clarity-error-red); }
.practice-progress .missed .practice-symbol { border: 1px solid rgba(var(--clarity-error-red-rgb), .4); background: rgba(var(--clarity-error-red-rgb), .08); }
.practice-progress .today .practice-symbol, .practice-progress .upcoming .practice-symbol { border: 2px dashed rgba(var(--clarity-navigation-surface-rgb), .25); color: var(--clarity-text-disabled); background: var(--clarity-surface-white); }
.practice-progress .upcoming .practice-state { color: var(--clarity-text-disabled); }
.practice-progress .is-today .practice-date, .practice-progress .today .practice-state { color: var(--clarity-brand-navy); font-weight: 600; }
.practice-progress .today .practice-symbol { color: var(--clarity-brand-navy); }
.practice-progress .practice-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--clarity-surface-light); padding-top: 20px; margin-top: 20px; }
.practice-progress .practice-action--button-only { display: block; text-align: center; }
.practice-progress .practice-action--button-only > div { display: none; }
.practice-progress h2 { margin: 0; font-size: 15px; font-weight: 700; }
.practice-progress .practice-notice { margin: 5px 0 0; font-size: 13px; max-width: 55ch; }
.practice-progress .practice-notice:empty { display: none; }
.practice-progress .practice-begin { padding: 10px 20px; border-radius: 6px; font-size: 14px; text-decoration: none; white-space: nowrap; background: var(--clarity-brand-navy); color: white; }
.practice-progress .practice-begin:hover { background: var(--clarity-accent-blue); }
.practice-progress .practice-reset { margin-top: 16px; font-size: 13px; }
.practice-progress summary { font-size: 13px; cursor: pointer; }
.practice-progress .practice-reset p { font-size: 13px; margin-bottom: 6px; }
.practice-progress .practice-reset .practice-days { margin-top: 10px; }
.practice-progress .practice-error { font-size: 14px; color: var(--clarity-text-primary); }
.practice-progress .practice-error.is-error { color: var(--clarity-error-red); }
.practice-progress a:focus-visible, .practice-progress summary:focus-visible, .practice-progress ol:focus-visible { outline: 3px solid var(--clarity-focus-accent); outline-offset: 3px; }
@media (max-width: 600px) {
  #progress-box.practice-progress { padding: 20px 14px; }
  .practice-progress .practice-action { flex-direction: column; align-items: flex-start; gap: 14px; }
}
