.milestone-banner {
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 71, 52, .22);
  border-left: 6px solid #164734;
  border-radius: 14px;
  background: #eaf6ef;
}

.milestone-banner strong,
.milestone-banner span {
  display: block;
}

.milestone-banner strong {
  font-size: 18px;
}

.milestone-banner span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.tier-progress {
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.tier-progress h2 {
  margin: 0 0 6px;
  font: 700 30px/1.15 "Atkinson Hyperlegible", Inter, sans-serif;
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.progress-heading h2 { margin: 0; }
.progress-heading .button { flex: 0 0 auto; }
.print-summary { display: none; }

.tier-progress > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.tier-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-progress-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8f1;
}

.tier-progress-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tier-progress-item strong {
  font-size: 15px;
}

.tier-progress-item span {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tier-progress-item progress {
  width: 100%;
  height: 12px;
  accent-color: #164734;
}

.tier-progress-item p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.library-card.completed {
  border-color: #2c795c;
  box-shadow: inset 0 4px 0 #2c795c;
}

.library-card.completed > span::after {
  content: " · Completed";
  color: #176844;
}

.library-card .practice-summary {
  margin: auto 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #315e4d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.library-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, .45fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.library-filters label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 750;
}

.library-filters input,
.library-filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #8b9691;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  font-size: 15px;
}

.library-filters .text-button { min-height: 46px; }
.filter-results { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .tier-progress-grid {
    grid-template-columns: 1fr;
  }

  .library-filters { grid-template-columns: 1fr; }
  .library-filters .text-button { justify-self: start; }
  .progress-heading { align-items: flex-start; flex-direction: column; }
  .progress-heading .button { width: 100%; }
}

@media print {
  @page { margin: .65in; }
  body.account-page { background: white; color: #102821; }
  .account-header,
  .account-loading,
  .account-dashboard > :not(.print-summary) { display: none !important; }
  .auth-main { width: 100%; max-width: none; margin: 0; padding: 0; }
  .account-dashboard,
  .print-summary { display: block !important; }
  .print-summary .brand { margin-bottom: 32px; }
  .print-summary h2 { margin: 0 0 24px; font: 700 30px/1.15 "Atkinson Hyperlegible", Inter, sans-serif; }
  .print-summary p { margin: 8px 0; }
  .print-summary ol { margin: 28px 0; padding-left: 24px; }
  .print-summary li { margin: 10px 0; }
  .print-disclaimer { margin-top: 34px !important; padding-top: 18px; border-top: 1px solid #9aa59f; font-size: 12px; line-height: 1.5; }
}
