#notice:empty { display: none; }
.welcome { display: grid; grid-template-columns: 1fr 45%; align-items: center; background: radial-gradient(ellipse at 77% 50%, #ffe8c7, #eee7ff 53%); border-radius: 26px; overflow: hidden; }
.welcome-copy { padding: clamp(20px, 5vw, 52px); }
.welcome p { line-height: 1.55; color: var(--muted); }
.welcome-illustration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: end; width: min(94%, 460px); gap: clamp(4px, .7vw, 10px); justify-self: center; padding-block: 12px; }
.welcome-illustration img { display: block; width: 100%; height: auto; object-fit: contain; }
.welcome label { display: block; margin-block: 1.25rem .35rem; }
.welcome input { max-width: 300px; display: block; margin-bottom: 1rem; }
.dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.children-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.children-grid > p { grid-column: 1 / -1; }
.child-panel { border-top: 4px solid #ccbbf6; display: grid; gap: .65rem; align-content: start; }
.child-panel p { margin: 0; }
.child-panel .workbooks { padding-top: .6rem; border-top: 1px solid var(--border); }
.child-panel .actions { margin-top: .4rem; }
.child-panel button.danger { color: #831c33; background: #fdf0f3; border-color: #ead0d9; }
.checkout-preview { width: min(28rem, calc(100% - 28px)); color: var(--ink); }
.checkout-preview::backdrop { background: rgb(36 24 54 / 45%); }
#checkout-preview-price { font-size: 1.25rem; font-weight: 800; }
#promo-form { align-items: end; }
#promo-form label { flex: 1 1 210px; max-width: 380px; }
#transactions ul { margin-block-end: 0; padding-left: 1.2em; }
#transactions li { margin-block: .5em; overflow-wrap: anywhere; }

.progress-report {
  width: min(45rem, calc(100% - 1.25rem));
  max-height: calc(100% - 1.25rem);
  padding: clamp(.85rem, 3vw, 1.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
}
.progress-report::backdrop { background: rgb(36 24 54 / 45%); }
.progress-header { display: flex; justify-content: space-between; align-items: start; gap: .55rem; }
.progress-header p { margin-block: .2rem 0; overflow-wrap: anywhere; }
.progress-header h2 { font-size: clamp(1.25rem, 4vw, 1.65rem); }
.progress-report h3 { font-size: 1rem; }
.progress-results { display: grid; gap: .8rem; }
.progress-results:not(:empty) { margin-top: 1rem; }
.progress-week, .progress-focus, .progress-empty { border: 1px solid var(--border); border-radius: 14px; padding: .7rem .8rem; }
.progress-week { background: #faf7ff; }
.progress-week-count { margin-block: .2rem .55rem; font-size: .88rem; }
.progress-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.progress-day {
  display: grid;
  justify-items: center;
  gap: .12rem;
  width: 100%;
  min-height: 44px;
  padding: .3rem .08rem;
  border: 1px solid #e4dceb;
  border-radius: 8px;
  background: #fff;
  color: #51455e;
  line-height: 1.1;
}
.progress-day[data-state="started"], .progress-day[data-state="partial"] { background: #eee6ff; color: #4b287f; }
.progress-day[data-state="complete"] { background: #e4f5ec; color: #225641; }
.progress-day[aria-pressed="true"] { border-color: #7547c4; box-shadow: inset 0 0 0 1px #7547c4; }
.progress-day-label { font-size: clamp(.62rem, 2vw, .79rem); }
.progress-day-count { font-size: clamp(.57rem, 1.9vw, .82rem); font-variant-numeric: tabular-nums; }
.progress-day-detail { margin-block: .55rem 0; font-size: .83rem; line-height: 1.35; }
.progress-subjects > p { margin-block: .2rem .52rem; font-size: .84rem; }
.progress-subject-list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.progress-subject {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: .35rem .7rem;
  padding: .5rem .65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.progress-subject-title h4 { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.progress-subject-title p { margin: .08rem 0 0; font-size: .77rem; }
.progress-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: 0; }
.progress-scores dt { color: var(--muted); font-size: .72rem; line-height: 1.15; }
.progress-scores dd { margin: .18rem 0 0; color: #4b287f; font-size: .93rem; font-weight: 790; font-variant-numeric: tabular-nums; }
.progress-focus { background: #f1ecfc; }
.progress-focus p, .progress-empty { margin: .25rem 0 0; font-size: .88rem; }
.progress-topic { font-weight: 750; overflow-wrap: anywhere; }
.progress-empty { color: var(--muted); line-height: 1.45; }
.progress-actions { padding-top: .8rem; }
.progress-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#progress-status:empty { display: none; }

@media (max-width: 620px) {
  .welcome, .children-grid { grid-template-columns: 1fr; }
  .welcome-illustration { width: min(94%, 320px); padding-top: 0; }
}
@media (max-width: 520px) {
  .progress-days { gap: .18rem; }
  .progress-week { padding-inline: .5rem; }
  .progress-subject { grid-template-columns: minmax(0, 1fr); }
}
