.pw { width:min(100%, 59rem); margin:0 auto; padding:clamp(22px,4vw,54px) clamp(16px,4vw,42px) 90px; color:var(--puk-theme-text,#20392e); }
.pw-heading { margin-bottom:22px; }
.pw-heading p,.pw-kicker { margin:0 0 6px; color:var(--puk-theme-accent,#236844); font-weight:700; font-size:.87rem; }
.pw h1 { font:650 clamp(1.85rem,4vw,2.7rem)/1.15 system-ui,sans-serif; letter-spacing:-.035em; margin:0; }
.pw h2,.pw .card__header h3 { font:650 1.2rem/1.3 system-ui,sans-serif; letter-spacing:-.015em; margin:0 0 .65rem; }
.pw-week,.pw-daily,.pw-box,.pw-link { border-radius:18px; border:1px solid var(--puk-theme-border,#d9e3dc); background:var(--puk-theme-surface,#fff); }
.pw-week,.pw-daily,.pw-box { margin:0 0 16px; padding:clamp(15px,3vw,27px); }
.pw-week { max-width:100%; }
.pw-week h2 { font-size:1rem; }
.pw-week ol { list-style:none; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; padding:0; margin:10px 0 0; max-width:35rem; }
.pw-week li { text-align:center; font-size:.79rem; color:var(--puk-theme-muted,#50685b); }
.pw-week li span { width:31px; height:31px; margin:0 auto 4px; display:grid; place-content:center; border:1px solid var(--puk-theme-border,#dbe5dd); border-radius:50%; font-weight:700; }
.pw-week [data-state=done] span { background:#e1f3e7; color:#136537; }
.pw-week [data-state=done] i { width:24px; height:24px; background:currentColor; mask:url(/images/mbFace-noBG.png) center / contain no-repeat; }
.pw-week [data-state=missed] span { color:#9d3d3d; background:#faeeee; }
.pw-week [aria-current=date] span { outline:2px solid var(--puk-theme-accent,#36845d); }
.pw-daily { background:var(--puk-theme-success-soft,#eef7ef); }
.pw-daily:not(:has(#daily-mcq)) #daily-mcq-whiteboard { display:none; }
.pw .card--daily { background:transparent; border:0; box-shadow:none; padding:0; margin:0; scroll-margin-top:64px; }
.pw .card--daily .card__header,.pw .card--daily .card__body { padding:0; background:transparent; color:inherit; }
.pw .card--daily button#load-daily-mcq { background:var(--puk-theme-strong,#206342); color:white; border:0; border-radius:10px; padding:12px 18px; font-weight:650; }
.pw .daily-mcq-metric:not(:empty) { display:block!important; }
.pw .pw-meta { color:var(--puk-theme-muted,#526b5c); font-size:.88rem; }
.pw [data-week-status]:empty,.pw [data-inbox-status]:empty { display:none; }
.pw-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pw-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; margin-bottom:16px; }
.pw-link { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-height:62px; padding:14px 18px; color:inherit; }
.pw-link .puk-ico { width:24px; height:24px; color:var(--puk-theme-accent,#287047); }
.pw-link small { flex-basis:100%; }
.pw a:not(.btn,.pw-next-action),.pw button:not(.btn,.pw-next-action) { color:var(--puk-theme-accent,#1f6945); }
.pw a:hover,.pw a:focus-visible { text-decoration:underline; }
.pw-notices { list-style:none; margin:0; padding:0; }
.pw-notices li { padding:14px 0; border-top:1px solid var(--puk-theme-border,#d9e3dc); }
.pw-notices li p { margin:3px 0; }
.pw button:not(.btn,.pw-next-action):not(#load-daily-mcq) { font:inherit; }
.pw-secondary { display:inline-block; padding:10px 2px; }
.pw [data-progress-chart] svg { display:block; width:100%; height:auto; max-height:210px; }
.pw [data-progress-chart] details { margin:.5rem 0; }
.pw [data-progress-chart] td,.pw [data-progress-chart] th { padding:.25rem .75rem; }
.pupil-bell { display:inline-flex; align-items:center; gap:3px; justify-content:center; color:inherit; min-height:44px; min-width:44px; margin-left:auto; }
.pupil-bell [aria-hidden] { font-size:1.2rem; }
.pupil-bell i { display:inline-block; width:20px; height:21px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 5-2 7-3 9h18c-1-2-3-4-3-9ZM10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.pupil-bell i::before,body.puk-role-pupil .puk-app-topbar__burger i::before { content:none; }
body.puk-role-pupil .puk-app-topbar__burger i { display:inline-block; width:17px; height:13px; border-block:2px solid currentColor; background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat; }
.pupil-wallet-mobile { margin-left:auto; color:inherit; font-size:.77rem; }
.pupil-wallet-mobile + .pupil-bell { margin-left:0; }
.hw-class-links { display:flex; flex-wrap:wrap; gap:8px 18px; margin:0 0 16px; }
body:has(.puk-app-drawer--open) #puk-tutorbot { visibility:hidden; }
[data-notice-count]:not(:empty) { border-radius:12px; background:var(--puk-theme-strong,#1b653e); color:#fff; padding:1px 6px; font-size:.72rem; }
body.puk-role-pupil .puk-app-topbar__burger { display:flex; align-items:center; gap:6px; min-height:44px; }
.pw-next-card {
  container: next-step / inline-size;
  background: linear-gradient(110deg, var(--puk-theme-success-soft,#eff9f2), var(--puk-theme-surface,#fff) 65%);
}
.pw-next-layout { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; }
.pw-next-intro { display:flex; flex:1 1 16rem; align-items:flex-start; gap:14px; min-width:0; }
.pw-next-icon {
  display:grid; place-items:center; flex:none; width:48px; height:48px;
  border:1px solid var(--puk-theme-border,#bfdfcc); border-radius:14px;
  background:var(--puk-theme-surface,#fff);
}
.pw-next-text { min-width:0; align-self:center; overflow-wrap:anywhere; }
.pw-next-card h2 { margin:0; font-size:1.25rem; line-height:1.25; letter-spacing:-.025em; }
.pw-next-card p { margin:4px 0 0; color:var(--puk-theme-muted,#466353); font-size:.93rem; line-height:1.45; }
.pw-next-card [data-find-status]:empty { display:none; }
.pw-next-text:has([data-find-status]:not(:empty)) [data-next-copy] { display:none; }
.pw-next-title { display:block; margin-top:6px; color:var(--puk-theme-text,#193c28); }
.pw-next-card [data-next-control] { max-width:100%; }
.pw-next-card form { margin:0; }
.pw-next-action {
  display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; max-width:100%;
  padding:10px 17px; border:1px solid var(--puk-theme-action,#22c670); border-radius:12px;
  background:var(--puk-theme-action,#22c670); color:var(--puk-theme-on-action,#082719);
  font:650 .95rem/1.35 system-ui,sans-serif; text-align:center; overflow-wrap:anywhere; cursor:pointer;
}
.pw-next-action::after {
  content:""; flex:none; width:.52em; height:.52em; border:solid currentColor;
  border-width:2px 2px 0 0; transform:rotate(45deg);
}
.pw .pw-next-action:is(:hover,:focus-visible) {
  color:var(--puk-theme-on-action,#082719); text-decoration:none; border-color:var(--puk-theme-accent,#12683d);
}
.pw-next-action:focus-visible { outline:3px solid var(--puk-theme-accent,#12683d); outline-offset:3px; }
.pw .pw-next-action[aria-disabled="true"] { cursor:progress; background:var(--puk-theme-success-soft,#dcf4e5); color:var(--puk-theme-text,#193c28); }
.pw-next-action[aria-disabled="true"]::after { border:2px dotted currentColor; border-radius:50%; width:.8em; height:.8em; }
@media(prefers-reduced-motion:no-preference) {
  .pw-next-action[aria-disabled="true"]::after { animation:pw-next-loading 1.4s linear infinite; }
  @keyframes pw-next-loading { to { transform:rotate(405deg); } }
}
@container next-step (max-width:34rem) {
  .pw-next-icon { width:42px; height:42px; border-radius:12px; }
  .pw-next-intro { gap:11px; }
  .pw-next-card [data-next-control],.pw-next-action { width:100%; }
}
.pw .pw-secondary-action { background:transparent; border:0; text-decoration:underline; cursor:pointer; padding:4px 0; }
@media(max-width:600px) { .pw { padding:19px 14px 84px; } .pw-heading { margin-bottom:15px; } .pw-week,.pw-daily,.pw-box { border-radius:14px; } }
