/* Visual reference: references/little-swimmers/UI-PROTOTYPE.html. Data logic remains in app/model. */
body { background: var(--background); color: var(--ink); font-family: var(--swim-font-family); font-size: 16px; line-height: 1.5; }
h1,h2,h3,.mobile-screen-title,.home-tagline { font-family: var(--swim-font-heading-family); color: var(--swim-color-heading); line-height: 1.3; }
h1{font-size:26px}h2{font-size:20px}h3{font-size:17px}
h1,h2,h3,.little-lesson-info small,.detail-list dd{overflow-wrap:anywhere;min-width:0}
.button { border-radius:12px; min-height:48px; font:600 15px/22px var(--swim-font-family); padding:12px 16px; }
.button.primary,.page-attendance .attendance-search-row .attendance-mark-all { background:var(--swim-color-action);color:var(--swim-color-on-action);border:0; }
.button.primary:not(:disabled):hover { background:var(--swim-color-action-hover); }
.button.primary:not(:disabled):active,.page-attendance .attendance-mark-all:active { background:var(--swim-color-action-pressed);transform:none; }
.button.primary:disabled { background:var(--swim-color-disabled);color:var(--swim-color-on-disabled);opacity:1; }
:root[data-theme='dark'] .button.primary {color:var(--swim-color-on-action)}
:root[data-theme='dark'] .button.primary:disabled {color:var(--swim-color-on-disabled)}
.button.outline { background:transparent; color:var(--swim-color-heading); border-color:var(--swim-color-heading); }
.card,.table-frame,.empty-state,.next-lesson { border-radius:12px;box-shadow:none; }
.card { background:var(--surface);border:1px solid var(--line); }
.avatar {border-radius:50%;background:var(--primary-soft);color:var(--primary-ink);font-family:var(--swim-font-family);font-size:13px;font-weight:700}
.badge,.count-badge,.balance-badge {border-radius:5px;font:500 12px/18px var(--swim-font-family);padding:3px 7px;white-space:nowrap}
.badge.upcoming {background:var(--swim-color-accent);color:var(--swim-button-ink)}
.field {font-size:14px;line-height:22px;gap:6px;margin-bottom:16px}
.field >span {font-weight:600}.field input,.field select,.field textarea,.search-box input {border-radius:8px;font-family:var(--swim-font-family);font-size:16px}
.field textarea{min-height:112px}.preserve-lines{overflow-wrap:anywhere}
progress {height:6px;border-radius:9px;accent-color:var(--swim-color-action)}
progress::-webkit-progress-bar {background:var(--subtle-surface);border-radius:9px}
progress::-webkit-progress-value {background:var(--swim-color-action);border-radius:9px}
progress::-moz-progress-bar {background:var(--swim-color-action);border-radius:9px}
.little-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;text-align:center;padding:4px 0}
.little-stats strong {display:block;font:700 27px/36px var(--swim-font-heading-family);color:var(--swim-color-heading);font-variant-numeric:tabular-nums}
.little-stats span {display:block;font-size:12px;line-height:18px}
.lesson-stats {margin:16px 0 24px}.little-stats .present strong{color:var(--green)}.little-stats .absent strong{color:var(--red)}.little-stats .pending strong{color:var(--muted)}
.little-lesson-info {display:grid;gap:8px;padding:12px;background:var(--primary-soft);border:0;margin-bottom:16px}
.little-lesson-info h2{font-size:20px;line-height:26px}.little-lesson-info small{font-size:12px;line-height:18px;color:var(--muted)}
.little-lesson-info p{margin:0}.lesson-members{margin:20px 0}.person-row strong{font-size:15px;line-height:23px}.person-row small{font-size:12px;line-height:18px}
.little-success {display:flex;flex-direction:column;text-align:center;background:none;padding:12px 0;gap:12px;margin:16px 0 24px}
.little-success >span{width:64px;height:64px;border:0;background:var(--swim-color-action);color:var(--swim-button-ink);border-radius:50%}
.little-success >span .icon{width:32px;height:32px}.little-success h2{font-size:23px}.little-success p{font-size:13px;color:var(--muted);margin-top:8px}
.summary-note h2,.saved-student-feedback h2{margin:20px 0 12px}.summary-note .card{padding:12px}.feedback-saved-row{padding:12px;margin-bottom:12px}.feedback-saved-row p{font-size:14px;line-height:22px;margin:8px 0 0}
.summary-actions{display:grid;gap:12px;margin:24px 0}.summary-actions .button{width:100%}
.feedback-form{display:grid;gap:20px}.feedback-form h2{margin-bottom:12px}.feedback-form .field>span{font-size:13px;color:var(--muted)}
.feedback-suggestions{display:flex;flex-wrap:wrap;gap:10px}.feedback-suggestions .button{font-size:13px;min-height:44px;padding:8px 10px}.feedback-suggestions .icon{width:16px;height:16px}
.feedback-students>p{font-size:13px;margin-bottom:12px}.feedback-member{padding:12px;margin-bottom:12px}.feedback-member>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:44px}.feedback-member>summary::-webkit-details-marker{display:none}.feedback-member small{font-size:12px;margin-top:4px}.feedback-member .field{margin:16px 0 0}.feedback-member strong{overflow-wrap:anywhere;font-size:14px}.feedback-member textarea{min-height:100px}
.little-account{text-align:center;margin:0 0 24px}.little-account>.avatar{width:76px;height:76px;margin:0 auto 12px;background:var(--swim-color-accent);color:var(--swim-button-ink);font-size:23px}.little-account h2{font-size:23px}.little-account p{font-size:13px;margin-top:6px}
.student-list-intro{padding:16px;background:var(--primary-soft);border:0;margin-bottom:16px}.student-list-intro h2{font-size:25px;line-height:32px}.student-list-intro p{margin-top:4px;font-size:14px}
.student-progress-cell{display:none}
.little-topbar{display:none}
.attendance-desktop-tools{display:contents}
.header-circle{display:grid;place-items:center}.header-circle:hover{background:var(--swim-color-accent);color:var(--swim-heading)}
.profile-identity-top{flex-direction:column;text-align:center}.profile-identity-top .avatar{width:76px;height:76px;background:var(--swim-color-accent);color:var(--swim-button-ink)}.identity-meta{justify-content:center;flex-wrap:wrap}.profile-facts{margin-top:16px}
.profile-package-content{background:transparent;padding:0}.profile-package-content>p{font-size:12px}.profile-package{padding:12px}.profile-package-content .package-title{margin-top:12px}
.settings-grid .detail-card,.profile-identity,.profile-history,.profile-notes{box-shadow:none;border-radius:12px}
.page-settings .theme-preview>span b:last-child{background:var(--swim-color-action)}
.page-settings .theme-preview.light>i b:first-child{background:var(--swim-heading)}
.page-settings .theme-preview.dark>i b:first-child{background:var(--swim-night-blue)}
@media(width < 1024px){
  .workspace{position:relative}
  .little-topbar{display:block;position:relative;top:auto;height:auto;min-height:0;padding:calc(16px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:var(--swim-color-header);color:var(--swim-color-on-brand);border:0}
  .little-header-body{max-width:548px;margin:auto}.little-heading{display:flex;align-items:center;gap:10px;min-height:44px}.mobile-screen-title{font-size:26px;line-height:32px;font-weight:700;margin:0;overflow-wrap:anywhere}
  .little-date{font-size:12px;line-height:18px;margin:0 0 4px}.header-circle{flex-shrink:0;width:44px;height:44px;min-height:44px;min-width:44px;border-radius:50%;background:var(--swim-color-accent);color:var(--swim-heading)}.header-circle .icon{width:23px;height:23px}
  .little-back{width:44px;min-width:44px;height:44px;border-radius:8px;color:var(--swim-color-on-brand)}.little-back .icon{width:20px;height:20px}
  .little-wave{display:block;width:100%;height:14px;margin-top:12px}.little-home-hero img{display:block;width:100%;height:auto;margin:12px 0 0;aspect-ratio:340/164}.home-tagline{font-size:26px;line-height:34px;font-weight:700;margin-top:0}.home-tagline-copy{font-size:14px;line-height:22px;color:var(--swim-color-on-brand);margin-top:4px}
  .workspace main,.page-home,.page-attendance,.page-student,.page-lesson-new,.page-settings{position:static;width:100%;max-width:580px;min-height:calc(100dvh - 110px);margin:0 auto;padding:16px max(16px,env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .workspace main>.back-link,.create-desktop-back{display:none}
  .workspace main>.page-heading{display:flex;position:static;width:100%;height:auto;min-height:0;margin:0 0 16px;justify-content:flex-end;align-items:center}
  .workspace main>.page-heading>div{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .workspace main>.page-heading:not(:has(>.button)){display:contents}
  .workspace main>.page-heading .button{position:static;min-height:48px;height:auto;width:auto;font-size:14px;line-height:20px;padding:12px}
  .workspace main>.detail-toolbar{position:absolute;top:calc(16px + env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:auto;min-height:44px;margin:0;z-index:21;gap:0}
  .detail-toolbar>h1{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap}
  .detail-toolbar>.detail-back,.profile-toolbar .profile-edit{display:none}
  .detail-toolbar-actions:empty{display:none}.detail-menu>summary{background:var(--swim-color-accent);color:var(--swim-heading);border:0;border-radius:50%;width:44px;min-width:44px;height:44px}
  .workspace:has(.detail-toolbar .detail-menu) .little-heading .grow{padding-right:50px}.workspace:has(.detail-toolbar .detail-menu) .header-circle{display:none}
  .bottom-nav{height:calc(76px + env(safe-area-inset-bottom));min-height:calc(76px + env(safe-area-inset-bottom));padding:8px max(6px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:4px;background:var(--surface)}
  .bottom-nav .nav-item{min-height:48px;height:56px;padding:4px 0;gap:4px;border-radius:10px;font-size:12px;line-height:18px;color:var(--swim-color-heading)}
  .bottom-nav .nav-item.active{background:var(--primary-soft);font-weight:600}.bottom-nav .nav-symbol{width:24px;height:24px;background:none;border-radius:0}.bottom-nav .icon{width:24px;height:24px}
  .page-home .home-content{display:flex;flex-direction:column;gap:16px}.page-home .home-stats{margin:0}.page-home .home-next-heading{margin:0;font-size:20px;line-height:26px}
  .page-home .home-empty-card .button{width:fit-content;max-width:100%;height:auto;min-height:44px}
  .page-home .next-lesson{display:grid;gap:8px;padding:12px;min-height:0;background:var(--surface)!important;border:1px solid var(--line);margin:0}
  .page-home .home-lesson-eyebrow{font-family:var(--swim-font-family);font-size:12px;line-height:18px;min-height:0;gap:8px;flex-wrap:wrap;color:var(--muted)!important;align-items:center}
  .page-home .next-lesson .home-lesson-time{font:400 12px/18px var(--swim-font-family);margin:0;color:var(--muted)!important}
  .page-home .next-lesson .home-lesson-title{font:700 20px/26px var(--swim-font-heading-family);margin:0;color:var(--swim-color-heading)}
  .page-home .next-lesson .home-lesson-context{position:static;width:auto;height:auto;clip:auto;white-space:normal;overflow:visible;margin:0;font-size:12px;line-height:18px;color:var(--muted)}
  .page-home .home-attendance-progress{margin:0}.page-home .home-attendance-progress>div{font-size:12px;line-height:18px;min-height:0;color:var(--muted)}
  .page-home .home-attendance-action{height:auto;min-height:48px;width:100%;margin:0;padding:12px;font:700 15px/22px var(--swim-font-family)}
  .page-home .home-schedule,.page-home:has(.next-lesson) .home-schedule{margin:4px 0 0}.page-home .home-schedule .section-heading{margin-bottom:8px;gap:10px}.page-home .home-schedule h2{font-size:20px;line-height:26px;height:auto;flex:1}
  .page-home .home-schedule .text-link{font-size:12px;min-height:44px;white-space:nowrap}.page-home .lesson-row{padding:12px 0;min-height:72px;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:12px;box-shadow:none;background:none}
  .page-home .time-tile{background:none!important;width:44px;min-width:44px;height:auto;font:700 14px/22px var(--swim-font-family);color:var(--ink)}
  .page-home .lesson-row strong{font:600 14px/22px var(--swim-font-family)}.page-home .lesson-row small:not(.home-lesson-status){font-size:12px;line-height:18px;margin:4px 0 0}
  .page-home .expiry-widget,.page-home:has(.next-lesson) .expiry-widget{display:grid!important;gap:8px;padding:12px;min-height:0;margin:8px 0 0}.page-home .expiry-widget .section-heading{margin:0;min-height:0}.page-home .expiry-widget h2,.page-home:has(.next-lesson) .expiry-widget h2{font-size:18px;line-height:24px}
  .page-home .expiry-line,.page-home:has(.next-lesson) .expiry-line{margin:0;min-height:44px;font-size:13px;line-height:20px}.page-home .expiry-line a{min-height:44px;font-weight:600}.page-home .expiry-line>span{font-size:12px!important;line-height:18px}.page-home .expiry-widget .button,.page-home:has(.next-lesson) .expiry-widget .button{height:auto;min-height:44px;font:600 14px/20px var(--swim-font-family);margin:0;padding:10px}
  .calendar-month-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.calendar-month-row h2{text-transform:capitalize;font-size:20px;line-height:26px}.calendar-month-row .button{min-height:44px;font-size:12px;padding:8px}
  .page-calendar .week-panel{border:0;padding:0;box-shadow:none;background:none}.page-calendar .week-heading{margin-bottom:10px;justify-content:flex-end;min-height:44px}.page-calendar .week-actions{gap:8px}.page-calendar .week-actions .icon-button,.page-calendar .week-today{height:44px;min-height:44px;min-width:44px;border:1px solid var(--line);background:var(--surface);font:500 12px/20px var(--swim-font-family)}
  .page-calendar .week-days{width:100%;margin:0;padding:0;gap:4px;grid-template-columns:repeat(7,minmax(44px,1fr));overflow-x:auto}.page-calendar .day{height:60px;min-height:60px;min-width:44px;padding:7px 0;border:0;border-radius:8px;background:var(--surface);color:var(--swim-color-heading);position:relative}
  .page-calendar .day>span,.page-calendar .day strong{position:static;top:auto;font:400 12px/18px var(--swim-font-family);color:inherit}.page-calendar .day strong{display:block;font-size:16px;line-height:24px}.page-calendar .day small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .page-calendar .day.selected,.page-calendar .day.selected:hover{background:var(--swim-color-accent)!important;color:var(--swim-button-ink)!important;border:0}
  .page-calendar>.section{margin-top:20px}.page-calendar .section-heading{margin-bottom:16px;align-items:center}.page-calendar .section-heading h2{font:600 14px/22px var(--swim-font-family)}
  .page-calendar .schedule-list{border:0;padding:0;background:none;display:grid;gap:16px}.page-calendar .timeline-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:start;padding:0;min-height:0;border:0}.page-calendar .timeline-time{font:700 13px/22px var(--swim-font-family);grid-column:auto;grid-row:auto;padding:0}
  .timeline-card{padding:12px;display:grid;gap:8px;min-width:0}.timeline-card .row{flex-wrap:wrap;gap:4px}.timeline-card h3{font-size:19px;line-height:26px}.timeline-card small{font-size:12px;line-height:18px}.page-calendar .schedule-status{display:block;grid-row:auto;grid-column:auto}.page-calendar .schedule-status .badge{font-size:10px;line-height:16px;padding:3px 5px;white-space:normal}.timeline-card .button{font-size:14px;padding:12px;min-height:48px}
  .page-students .student-table-frame{border:0;box-shadow:none;background:none;overflow:visible}.student-table,.student-table tbody{display:block}.student-table tbody{display:grid;gap:10px}.page-students .student-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;gap:6px 8px}
  .page-students .student-table td{padding:0!important;border:0}.page-students .student-table td:first-child{grid-column:1;grid-row:1}.page-students .table-person{gap:10px;min-height:44px}.page-students .table-person strong{font:600 14px/22px var(--swim-font-family)}.page-students .table-person .avatar{width:40px;height:40px}
  .page-students .student-code{grid-column:1;grid-row:2;padding-left:50px!important;font-size:12px;line-height:18px}.page-students .student-balance{grid-column:2;grid-row:1;font:400 12px/18px var(--swim-font-family);max-width:84px;text-align:right;align-self:center}.page-students .student-package-status{grid-column:2;grid-row:2;text-align:right}.page-students .student-package-status .badge{font-size:11px;line-height:18px;padding:0;background:none}
  .page-students .student-progress-cell{display:block;grid-column:1/-1;grid-row:3;padding-top:4px!important}.student-progress-cell progress{display:block;width:100%;height:6px}
  .page-students .filter-tabs{min-height:48px;padding:4px;gap:4px;border-radius:8px;margin:0 0 16px}.page-students .filter-tabs button{font-size:12px;line-height:18px;min-height:44px;padding:4px;white-space:normal}
  .page-student .profile-identity{padding:16px 12px;border:0;background:none;min-height:0}.profile-identity-top h2{font-size:23px;line-height:30px}.profile-facts{gap:8px}.profile-facts>div{font-size:13px}.profile-history .history-row strong{font-size:13px}.profile-package{order:2}.profile-history{order:3}.profile-notes{order:4}
  .page-attendance .attendance-summary{padding:12px;min-height:0;margin:0;gap:8px;background:var(--primary-soft);border:0}.page-attendance .attendance-class-name{order:1;border-radius:0;background:none;padding:0;margin:0;font:700 20px/26px var(--swim-font-heading-family);color:var(--swim-color-heading);max-width:calc(100% - 48px)}
  .page-attendance .attendance-metadata{display:contents}.page-attendance .attendance-metadata>div{font-size:12px;line-height:18px;min-height:0}.attendance-metadata>div:first-child{order:0;color:var(--muted)}.attendance-metadata>div:nth-child(2){order:2;font-size:15px}.attendance-metadata>div:last-child{order:3;color:var(--muted)}.attendance-metadata .icon{display:none}
  .attendance-progress-details{top:6px;right:6px}.attendance-progress-details>summary{font-size:12px}.page-attendance .lesson-stats{margin:16px 0 20px}.page-attendance #attendance-form{gap:16px}
  .page-attendance .attendance-search-row{height:auto;min-height:52px;margin:0;gap:8px}.page-attendance .attendance-search-row .attendance-mark-all{width:auto;min-width:88px;padding:8px 10px;height:48px;min-height:48px;font-size:13px}.page-attendance .attendance-bulk-help{font-size:12px;line-height:18px}
  .page-attendance .attendance-tabs{height:auto;min-height:48px;border-radius:8px;margin:0;padding:4px}.page-attendance .attendance-tabs button{font:500 12px/18px var(--swim-font-family);min-width:0;min-height:44px;white-space:normal;padding:4px;flex:1}.page-attendance .attendance-tabs button:last-child{min-width:0;flex:1}
  .page-attendance .attendance-roster{border:0;background:none;box-shadow:none;padding:0}.page-attendance .attendance-entry{padding:16px 0 10px;min-height:0;border-bottom:1px solid var(--line)}.page-attendance .attendance-person-name .avatar{display:grid;width:40px;height:40px}.page-attendance .attendance-person-name h3{position:static;top:auto;font:600 14px/22px var(--swim-font-family)}
  .attendance-entry-tools{gap:0}.attendance-comment,.attendance-status-toggle{border:0!important;background:none!important;width:44px!important;min-width:44px!important;padding:10px!important}.page-attendance .attendance-entry .status-options{gap:4px;margin-top:10px}.page-attendance .attendance-entry .status-option>span{font:500 12px/18px var(--swim-font-family);padding:8px 2px;min-height:44px;border-radius:8px;background:var(--surface)}
  .page-attendance .status-option.selected.present>span{background:var(--green-soft)!important;color:var(--green)!important;border-color:var(--green)!important}.page-attendance .status-option.selected.absent>span{background:var(--red-soft)!important;color:var(--red)!important;border-color:var(--red)!important}.page-attendance .status-option.selected.pending>span{background:var(--subtle-surface)!important;color:var(--muted)!important;border-color:var(--muted)!important}
  .page-attendance .attendance-session-note{margin:0}.page-attendance .attendance-session-note>summary{font-size:13px}.page-attendance .attendance-save-bar{bottom:calc(76px + env(safe-area-inset-bottom));padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));min-height:66px;gap:10px}.page-attendance .attendance-save-bar .button{width:auto;min-width:137px;min-height:48px;height:auto;padding:12px 14px;font-size:14px;line-height:22px;flex-shrink:0}.attendance-save-feedback>span{font-size:12px!important;line-height:18px!important}.attendance-save-feedback small{font-size:11px!important;line-height:16px!important}
  .workspace main.page-attendance{padding-bottom:calc(190px + env(safe-area-inset-bottom))}
  .page-settings .settings-grid{display:grid;gap:20px}.page-settings .settings-grid>div:first-child,.page-settings .settings-data{gap:16px;margin:0}.page-settings .language-card,.page-settings .theme-card{min-height:0;padding:12px}.page-settings .language-card h2,.page-settings .theme-card h2{font-size:18px;line-height:26px;margin-bottom:12px}.page-settings .language-card select{height:48px;min-height:48px;padding:11px 40px 11px 12px}.page-settings .language-card .field{--select-height:48px}.page-settings .theme-option{height:auto;min-height:104px;border-radius:10px}.page-settings .theme-option>span:last-child{font:600 14px/22px var(--swim-font-family);margin-top:8px}.page-settings .settings-data .detail-card h2{font-size:18px;line-height:26px}
  .page-reports .report-filters{padding:12px;gap:12px}.page-reports .report-filters .field{font-size:14px}.page-reports .report-filters .field>span{font-size:14px}.page-reports .report-stats .stat-card>span{font-size:12px}.page-reports .report-stats .stat-card>strong{font-family:var(--swim-font-heading-family)}
  .page-summary>.little-lesson-info{margin-top:0}.feedback-form .attendance-save-bar{gap:8px}.feedback-form .attendance-save-bar .button{min-width:128px}
  :root[data-attendance-keyboard] .page-attendance textarea{font-size:16px;line-height:24px}
  .workspace:has(>main[data-skip-focus]:focus-visible) .mobile-screen-title{outline:2px solid var(--swim-color-focus);outline-offset:4px}
}
@media(width>=1024px){.little-stats{max-width:680px;margin:16px auto 24px}.home-content{max-width:760px}.page-home .next-lesson{background:var(--surface);border:1px solid var(--line);padding:16px}.home-next-heading{margin:24px 0 12px}.student-progress-cell{display:table-cell;min-width:120px}.student-progress-cell progress{width:100%}.page-attendance .lesson-stats{max-width:none}.page-attendance .attendance-summary{background:var(--primary-soft)}.page-summary,.page-lesson{max-width:760px}.feedback-form{max-width:760px}.little-account{margin-bottom:32px}}
@media(max-width:360px){.mobile-screen-title{font-size:23px;line-height:29px}.calendar-month-row .button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.calendar-month-row .button{min-width:44px}.home-tagline{font-size:24px}.page-home .home-schedule h2{font-size:18px}.page-home .home-schedule .text-link{font-size:11px}.page-attendance .attendance-save-bar .button{min-width:124px;font-size:13px;padding:12px 10px}.page-students .student-balance{max-width:76px;font-size:11px}}
@media(prefers-reduced-motion:no-preference){.button,.icon-button{transition:background-color 120ms ease,color 120ms ease,border-color 120ms ease}.button:active,.icon-button:active{transform:none}}
@media(min-width:1024px){.report-table{table-layout:fixed;width:100%;min-width:0}.report-table th:first-child{width:40%}.report-table th{white-space:normal}.report-table .table-link{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}}

/* Approved Dark Mode overrides. Light selectors, geometry and artwork remain unchanged. */
:root[data-theme='dark']{background:var(--swim-color-canvas);color-scheme:dark}
:root[data-theme='dark'] .bottom-nav{background:var(--swim-color-navigation)}
:root[data-theme='dark'] .bottom-nav .nav-item.active{background:var(--swim-color-navigation-active)}
:root[data-theme='dark'] .little-home-hero img{background:var(--swim-color-illustration);border-radius:var(--swim-radius-12);margin:var(--swim-space-12) 0}
:root[data-theme='dark'] :is(.little-lesson-info,.student-list-intro,.attendance-summary,.home-empty-card){background:var(--surface);outline:1px solid var(--line);outline-offset:-1px}
:root[data-theme='dark'] .empty-state{background:var(--surface);border-color:var(--line)}
:root[data-theme='dark'] :is(.detail-menu>div,.attendance-overview,.attendance-entry .status-options,.attendance-leave-dialog){background:var(--swim-color-elevated);border-color:var(--line);box-shadow:none}
@media(width < 1024px){:root[data-theme='dark'] .attendance-entry .status-options{background:transparent}}
:root[data-theme='dark'] .attendance-leave-dialog::backdrop{background:var(--swim-color-scrim)}
:root[data-theme='dark'] #toast{background:var(--swim-color-toast);color:var(--swim-color-toast-text);border:1px solid var(--line);box-shadow:none}
:root[data-theme='dark'] #toast.error{background:var(--red-soft);color:var(--red)}
:root[data-theme='dark'] :is(.badge.present,.status-option.present>span){--status-icon:url('../assets/status-present.svg');color:var(--green)}
:root[data-theme='dark'] :is(.badge.absent,.status-option.absent>span){--status-icon:url('../assets/status-absent.svg');color:var(--red)}
:root[data-theme='dark'] :is(.badge.pending,.status-option.pending>span){--status-icon:url('../assets/status-pending.svg');color:var(--swim-color-pending)}
:root[data-theme='dark'] .badge.present{background:var(--green-soft)}
:root[data-theme='dark'] .badge.absent{background:var(--red-soft)}
:root[data-theme='dark'] .badge.pending{background:var(--swim-color-pending-soft)}
:root[data-theme='dark'] .badge:is(.present,.absent,.pending){display:inline-flex;align-items:center;gap:4px}
:root[data-theme='dark'] :is(.badge.present,.badge.absent,.badge.pending,.status-option>span)::before{content:'';display:inline-block;flex-shrink:0;width:12px;height:12px;background:currentColor;-webkit-mask:var(--status-icon) center/contain no-repeat;mask:var(--status-icon) center/contain no-repeat}
:root[data-theme='dark'] .status-option>span{gap:4px;border-color:var(--input-line)}
:root[data-theme='dark'] .page-attendance .status-option.selected.pending>span{background:var(--swim-color-pending-soft)!important;color:var(--swim-color-pending)!important;border-color:var(--swim-color-pending)!important}
:root[data-theme='dark'] .lesson-stats .present strong{--status-icon:url('../assets/status-present.svg')}
:root[data-theme='dark'] .lesson-stats .absent strong{--status-icon:url('../assets/status-absent.svg')}
:root[data-theme='dark'] .lesson-stats .pending strong{--status-icon:url('../assets/status-pending.svg');color:var(--swim-color-pending)}
:root[data-theme='dark'] .lesson-stats strong::after{content:'';display:inline-block;width:12px;height:12px;margin-left:6px;vertical-align:middle;background:currentColor;-webkit-mask:var(--status-icon) center/contain no-repeat;mask:var(--status-icon) center/contain no-repeat}
:root[data-theme='dark'] .theme-preview.dark>i b:first-child{background:var(--swim-color-heading)}
/* New Dark reference; Light Mode geometry and decoration remain unchanged. */
:root[data-theme='dark'] :is(.little-lesson-info,.student-list-intro,.attendance-summary){background:var(--swim-color-support)}
:root[data-theme='dark'] .avatar{background:var(--swim-color-avatar);color:var(--swim-color-avatar-text)}
:root[data-theme='dark'] :is(.little-account,.profile-identity-top)>.avatar{background:var(--swim-color-accent);color:var(--swim-heading)}
:root[data-theme='dark'] .page-calendar .day.selected,:root[data-theme='dark'] .page-calendar .day.selected:hover{background:var(--swim-color-calendar-selected)!important;color:var(--swim-color-on-calendar-selected)!important}
:root[data-theme='dark'] .little-wave{opacity:var(--swim-header-wave-opacity)}
:root[data-theme='dark'] .little-theme-toggle{background:var(--surface);color:var(--swim-color-heading);border:1px solid var(--line);cursor:pointer}

/* Optional login preview. Every visual rule is scoped to this screen. */
.login-screen,.login-screen *{box-sizing:border-box}
.login-screen{min-height:100dvh;display:flex;flex-direction:column;background:var(--swim-color-canvas);color:var(--swim-color-text);font:400 16px/1.5 var(--swim-font-family)}
.login-screen button,.login-screen input{font:inherit}
.login-screen a,.login-screen button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.login-screen a{color:var(--swim-color-heading)}
.login-screen .login-hero{background:var(--swim-login-header);color:var(--swim-login-header-text);padding:calc(16px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left))}
.login-screen .login-hero-inner{max-width:440px;margin:auto}
.login-screen .login-brand-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.login-screen .login-wordmark{font:700 24px/30px var(--swim-font-heading-family);color:var(--swim-color-heading);text-decoration:none;min-height:44px;overflow-wrap:anywhere}
.login-screen .login-wordmark span{display:block;font:400 12px/18px var(--swim-font-family);color:var(--swim-login-header-text)}
.login-screen .login-icon-button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid var(--swim-color-input-border);border-radius:50%;background:var(--swim-login-surface);color:var(--swim-color-heading);cursor:pointer}
.login-screen .login-icon-button svg{display:block;width:20px;height:20px}
.login-screen .login-swimmer{display:block;width:min(100%,280px);height:auto;aspect-ratio:340/164;margin:16px auto 12px;background:var(--swim-login-illustration);border-radius:var(--swim-radius-12)}
.login-screen .login-tagline{margin:0;text-align:center;color:var(--swim-color-heading);font:700 24px/29px var(--swim-font-heading-family)}
.login-screen .login-wave{display:block;width:100%;height:14px;margin-top:12px;opacity:var(--swim-header-wave-opacity)}
.login-screen .login-main{width:100%;max-width:480px;min-width:0;min-height:0;margin:0 auto;padding:20px max(16px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.login-screen .login-card{background:var(--swim-login-surface);border:1px solid var(--swim-color-border);border-radius:var(--swim-login-card-radius);padding:20px}
.login-screen .login-preview-label{display:inline-block;margin-bottom:10px;padding:3px 8px;border-radius:5px;background:var(--swim-color-support);color:var(--swim-color-heading);font-size:12px;line-height:18px}
.login-screen h1{margin:0;color:var(--swim-color-heading);font:700 26px/34px var(--swim-font-heading-family);overflow-wrap:anywhere}
.login-screen .login-intro{margin:4px 0 20px;color:var(--swim-color-text-muted);font-size:14px;line-height:22px}
.login-screen .login-field{display:grid;gap:6px;margin-bottom:18px;font-size:14px;line-height:22px;font-weight:600}
.login-screen .login-field input{display:block;width:100%;min-width:0;min-height:var(--swim-login-input-height);padding:12px 14px;background:var(--swim-login-surface);color:var(--swim-color-text);border:1px solid var(--swim-color-input-border);border-radius:var(--swim-control-radius);font-size:16px;line-height:24px;font-weight:400}
.login-screen input::placeholder{color:var(--swim-color-text-muted);opacity:1}
.login-screen .login-password-wrap{position:relative}
.login-screen .login-password-wrap input{padding-right:56px}
.login-screen .login-password-toggle{position:absolute;top:4px;right:4px;border:0;background:transparent;border-radius:8px}
.login-screen .login-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:var(--swim-login-input-height);padding:12px 16px;background:var(--swim-color-action);color:var(--swim-color-on-action);border:0;border-radius:var(--swim-control-radius);font-weight:700;cursor:pointer;box-shadow:none}
.login-screen .login-submit:not(:disabled):hover{background:var(--swim-color-action-hover)}
.login-screen .login-submit:not(:disabled):active{background:var(--swim-color-action-pressed);transform:none}
.login-screen .login-preview-note{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;color:var(--swim-color-text-muted);font-size:12px;line-height:19px}
.login-screen .login-preview-note svg{flex-shrink:0;width:16px;height:16px;margin-top:2px}
.login-screen .login-feedback{margin:12px 0 0;color:var(--swim-color-heading);font-size:14px;line-height:22px}
.login-screen .login-feedback:empty{display:none}
.login-screen .login-return{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:14px;text-align:center;font-size:14px;font-weight:600;text-underline-offset:3px}
.login-screen :is(a,button,input):focus-visible{outline:3px solid var(--swim-color-focus);outline-offset:2px}
@media(width<360px){.login-screen .login-card{padding:16px}.login-screen h1{font-size:24px}.login-screen .login-wordmark{font-size:22px}}
@media(width>=900px){.login-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.login-screen .login-hero{display:grid;align-items:center;padding:48px 32px}.login-screen .login-hero-inner{width:100%;max-width:400px}.login-screen .login-swimmer{width:100%;margin:40px auto 24px}.login-screen .login-tagline{font-size:32px;line-height:40px}.login-screen .login-wave{margin-top:28px}.login-screen .login-main{align-self:center;padding-block:40px}}

/* Little Swimmers motion — progressive enhancement; no state depends on animation. */
.login-screen .login-mascot{position:relative;width:min(100%,280px);margin:16px auto 12px}
.login-screen .login-mascot .login-swimmer{width:100%;margin:0}
.login-screen .swim-pause{position:absolute;right:4px;bottom:4px;width:44px;height:44px}
.swim-ripple{position:absolute;display:block;border-radius:50%;background:var(--swim-motion-ripple-ink,currentColor);opacity:0;pointer-events:none}
.swim-nav-indicator{position:absolute;z-index:0;display:block;border-radius:10px;pointer-events:none}
:root[data-swim-motion='ready'] .workspace{overflow-x:clip}

/* Desktop extension. The phone reference and its viewport/keyboard rules stay below 1024px. */
@media (min-width:1024px) {
  .workspace:has(.page-home) .little-topbar{display:block;position:relative;height:auto;min-height:0;padding:24px var(--swim-desktop-page-gutter);background:var(--swim-color-header);color:var(--swim-color-on-brand);border:0}
  .workspace:has(.page-home) .little-header-body{position:relative;max-width:calc(var(--swim-desktop-page-max) - var(--swim-desktop-page-gutter) * 2);margin:auto;padding-right:calc(var(--swim-desktop-hero-art) + 40px);min-height:196px;display:flex;flex-direction:column;justify-content:center}
  .workspace:has(.page-home) .little-heading{display:flex;align-items:center;gap:16px}
  .workspace:has(.page-home) .little-date{font-size:14px;margin:0 0 4px}
  .workspace:has(.page-home) .mobile-screen-title{font-size:32px;line-height:40px;font-weight:700;margin:0}
  .workspace:has(.page-home) .header-circle{position:absolute;right:0;top:0;width:44px;height:44px;border-radius:50%;background:var(--swim-color-accent);color:var(--swim-heading);z-index:1}
  .workspace:has(.page-home) .little-home-hero img{position:absolute;right:0;bottom:24px;width:var(--swim-desktop-hero-art);height:auto;margin:0;aspect-ratio:340/164}
  .workspace:has(.page-home) .home-tagline{font:700 24px/32px var(--swim-font-heading-family);margin:12px 0 4px}
  .workspace:has(.page-home) .home-tagline-copy{font-size:14px;line-height:22px;margin:0}
  .workspace:has(.page-home) .little-wave{display:block;width:min(100%,440px);height:14px;margin:20px 0 0;object-fit:fill}
  .workspace main:is(.page-home,.page-attendance:not(.feedback-view)){width:100%;max-width:var(--swim-desktop-page-max);min-height:0;padding:var(--swim-desktop-page-gutter);margin:0 auto}
  .page-home>.page-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;white-space:nowrap}
  .page-home .home-content{display:grid;max-width:none;gap:var(--swim-desktop-group-gap)}
  .page-home .home-stats,.page-attendance:not(.feedback-view) .lesson-stats{max-width:none;width:100%;gap:16px;margin:0;padding:0}
  .page-home .home-stats>div,.page-attendance:not(.feedback-view) .lesson-stats>div{padding:16px 20px;text-align:left;border:1px solid var(--line);border-radius:var(--swim-card-radius);background:var(--surface)}
  .page-home .home-stats strong,.page-attendance:not(.feedback-view) .lesson-stats strong{font-size:30px;line-height:38px}
  .page-home .home-stats span,.page-attendance:not(.feedback-view) .lesson-stats span{font-size:14px;line-height:22px;color:var(--muted)}
  .page-home .home-next-heading{margin:0;font-size:22px;line-height:30px}
  .page-home .next-lesson{padding:24px;margin:0;border-radius:var(--swim-card-radius)}
  .page-home .home-empty-card{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--swim-card-radius)}
  .page-home .home-empty-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--primary-soft);color:var(--primary)}
  .page-home .home-empty-card h2{margin:16px 0 8px;font-size:22px;line-height:30px}
  .page-home .home-empty-card p{font-size:14px;line-height:22px;color:var(--muted);margin:0 0 20px}
  .page-home .next-lesson .home-lesson-time{font-size:20px;line-height:28px;margin:0}
  .page-home .next-lesson .home-lesson-title{font:700 26px/34px var(--swim-font-heading-family);margin:16px 0 8px}
  .page-home .home-lesson-context{font-size:14px;line-height:22px;margin:0 0 20px}
  .page-home .home-attendance-progress{margin-bottom:20px}
  .page-home .home-attendance-action{width:100%}
  .page-home .home-schedule,.page-home .expiry-widget{margin:0;padding:24px;border:1px solid var(--line);border-radius:var(--swim-card-radius);background:var(--surface)}
  .page-home :is(.home-schedule,.expiry-widget) h2{font-size:18px;line-height:26px}
  .page-home .home-schedule .section-heading{gap:12px;flex-wrap:wrap;margin-bottom:16px}
  .page-home .lesson-row{padding:16px 0;align-items:center;gap:12px}
  .page-home .lesson-row .grow{min-width:0;overflow-wrap:anywhere}
  .page-home .lesson-row strong{font-size:15px;line-height:24px}
  .page-home .lesson-row small{font-size:12px;line-height:20px}
  .page-home .time-tile{width:60px;min-width:60px;height:48px;background:var(--primary-soft);color:var(--primary);border-radius:8px}
  .page-home .expiry-line{gap:16px;align-items:center;font-size:14px;line-height:22px;padding:10px 0}
  .page-home .expiry-line a{min-width:0;overflow-wrap:anywhere}
  .page-home .expiry-line>span{flex-shrink:0}
  .page-home .expiry-widget .button{min-height:44px;font-size:14px;margin-top:12px}
  .page-attendance:not(.feedback-view) .attendance-summary{position:relative;padding:24px;background:var(--surface);margin-bottom:20px}
  .page-attendance:not(.feedback-view) .attendance-progress-details{position:absolute;top:16px;right:20px}
  .page-attendance:not(.feedback-view) .attendance-progress-details>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-width:52px;min-height:44px;list-style:none;cursor:pointer;color:var(--primary);border-radius:8px}
  .page-attendance:not(.feedback-view) .attendance-progress-details>summary::-webkit-details-marker{display:none}
  .page-attendance:not(.feedback-view) .attendance-progress-details .attendance-overview{position:absolute;top:48px;right:0;width:300px;max-width:calc(100vw - 96px);padding:16px;margin:0;border:1px solid var(--line);border-radius:var(--swim-card-radius);background:var(--surface)}
  .page-attendance:not(.feedback-view) .attendance-class-name{font-size:24px;line-height:32px;margin:0 70px 16px 0}
  .page-attendance:not(.feedback-view) .attendance-metadata{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
  .page-attendance:not(.feedback-view) .attendance-metadata>div{font-size:14px;line-height:22px;overflow-wrap:anywhere;align-items:flex-start}
  .page-attendance:not(.feedback-view) .attendance-metadata .icon{flex-shrink:0;margin-top:3px}
  .page-attendance:not(.feedback-view) .lesson-stats{margin-bottom:24px}
  .page-attendance:not(.feedback-view) #attendance-form{display:grid;gap:0}
  .page-attendance:not(.feedback-view) .attendance-search-row{gap:12px}
  .page-attendance:not(.feedback-view) .attendance-bulk-help{font-size:12px;line-height:20px;margin:8px 0 16px}
  .page-attendance:not(.feedback-view) .attendance-tabs{margin:0 0 16px}
  .page-attendance:not(.feedback-view) .attendance-tabs button{min-height:44px;font-size:13px}
  .page-attendance:not(.feedback-view) .attendance-roster{padding:0 20px;min-width:0}
  .page-attendance:not(.feedback-view) .attendance-entry{padding:20px 0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px 16px;align-items:center}
  .page-attendance:not(.feedback-view) .attendance-entry-heading{min-width:0;gap:8px}
  .page-attendance:not(.feedback-view) .attendance-person-name h3{font:600 14px/22px var(--swim-font-family)}
  .page-attendance:not(.feedback-view) .attendance-person-name .avatar{width:36px;height:36px;flex-shrink:0}
  .page-attendance:not(.feedback-view) .attendance-comment{width:44px;height:44px;min-width:44px}
  .page-attendance:not(.feedback-view) .attendance-comment .icon{width:20px;height:20px}
  .page-attendance:not(.feedback-view) .attendance-status-toggle{display:none}
  .page-attendance:not(.feedback-view) .attendance-entry .status-options{display:grid;position:static;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:auto;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:auto}
  .page-attendance:not(.feedback-view) .attendance-entry .status-option>span{font-size:12px;line-height:18px;min-height:44px;padding:8px 4px;border-radius:8px}
  .page-attendance:not(.feedback-view) .attendance-extra{display:flex;grid-column:1/-1;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;font-size:12px;line-height:20px;color:var(--muted)}
  .page-attendance:not(.feedback-view) .attendance-extra>span{min-width:0;overflow-wrap:anywhere}
  .page-attendance:not(.feedback-view) .attendance-extra>a{min-height:28px;display:inline-flex;align-items:center}
  .page-attendance:not(.feedback-view) .student-note-field{grid-column:1/-1;margin:0}
  .page-attendance:not(.feedback-view) .student-note-field textarea{font-size:16px;min-height:96px}
  .page-attendance:not(.feedback-view) .attendance-desktop-tools{display:flex;flex-direction:column;gap:16px;min-width:0;margin-top:24px}
  .page-attendance:not(.feedback-view) .attendance-feedback-action{font-size:14px;white-space:normal;line-height:22px;min-height:48px}
  .page-attendance:not(.feedback-view) .attendance-session-note{padding:20px;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--swim-card-radius)}
  .page-attendance:not(.feedback-view) .attendance-session-note>summary{display:flex;font-size:14px;line-height:22px;min-height:28px;color:var(--ink)}
  .page-attendance:not(.feedback-view) .attendance-session-note>summary::after{content:'+';margin-left:auto;font-size:20px}
  .page-attendance:not(.feedback-view) .attendance-session-note[open]>summary::after{content:'−'}
  .page-attendance:not(.feedback-view) .attendance-session-note textarea{font-size:16px;min-height:160px}
  .page-attendance:not(.feedback-view) .attendance-save-bar{position:static;display:flex;flex-direction:column;align-items:stretch;gap:16px;margin:0;padding:20px;border-radius:var(--swim-card-radius)}
  .page-attendance:not(.feedback-view) .attendance-save-feedback{overflow-wrap:anywhere}
  .page-attendance:not(.feedback-view) .attendance-save-feedback>span{font-size:13px!important;line-height:22px!important}
  .page-attendance:not(.feedback-view) .attendance-save-feedback small{font-size:12px!important;line-height:20px!important}
  .page-attendance:not(.feedback-view) .attendance-save-bar .button{width:100%;white-space:normal;min-height:48px}
}
@media (min-width:1280px) {
  .page-home .home-content{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;align-items:start;column-gap:var(--swim-desktop-group-gap);row-gap:16px}
  .page-home .home-stats{grid-column:1/-1;margin-bottom:8px}
  .page-home .home-next-heading{grid-column:1;grid-row:2}
  .page-home :is(.next-lesson,.home-empty-card){grid-column:1;grid-row:3}
  .page-home .home-schedule{grid-column:2;grid-row:2/4;min-height:100%}
  .page-home .expiry-widget{grid-column:1;grid-row:4;margin-top:8px}
  .page-attendance:not(.feedback-view) #attendance-form{grid-template-columns:minmax(0,1fr) var(--swim-desktop-attendance-panel);column-gap:var(--swim-desktop-group-gap);align-items:start}
  .page-attendance:not(.feedback-view) #attendance-form>:not(.attendance-desktop-tools){grid-column:1}
  .page-attendance:not(.feedback-view) .attendance-desktop-tools{grid-column:2;grid-row:1/5;position:sticky;top:24px;margin:0}
}
:root[data-swim-motion='ready'] .swim-ripple-host{overflow:hidden;isolation:isolate}
.phone nav{position:relative}
#app>.theme-loading{position:relative}
#app>.theme-loading.auth-loading{display:grid;place-items:center;min-height:100dvh;margin:0;color:var(--swim-color-text-muted);font:16px/24px var(--swim-font-family)}
.login-screen .login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-4px 0 16px;font-size:13px}
.login-screen .login-remember{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.login-screen .login-remember input{width:var(--swim-toggle-width,40px);height:var(--swim-toggle-height,24px);accent-color:var(--swim-color-heading)}
.login-screen .login-forgot{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--swim-color-heading);cursor:pointer;font-size:13px}
.auth-recovery{display:grid;place-items:center}
.auth-account p{overflow-wrap:anywhere}
.login-screen .login-feedback[role='alert']{color:var(--swim-color-danger)}
.login-screen .login-submit[data-swim-loading]::before{margin-right:0;flex-shrink:0}
:root[data-swim-motion='ready'] :is(.bottom-nav .nav-item,.phone nav button){position:relative;z-index:1}
@media(width>=900px){.login-screen .login-mascot{width:100%;margin:40px auto 24px}}
@media(prefers-reduced-motion:no-preference){
  :root[data-swim-motion='ready'] :is(.button,.icon-button,.login-icon-button,.theme-option,.status-option>span,.phone button){transition:transform var(--swim-motion-fast) var(--swim-motion-ease-standard),background-color var(--swim-motion-normal) var(--swim-motion-ease-standard),color var(--swim-motion-normal) var(--swim-motion-ease-standard),border-color var(--swim-motion-normal) var(--swim-motion-ease-standard)}
  :root[data-swim-motion='ready'] :is(.button:not(:disabled),.icon-button,.login-icon-button,.theme-option,.phone button:not(:disabled)):active{transform:scale(var(--swim-motion-press-scale))}
  :root[data-swim-motion='ready'] :is(.bottom-nav .nav-symbol,.phone nav svg){transition:transform var(--swim-motion-normal) var(--swim-motion-ease-standard)}
  :root[data-swim-motion='ready'] :is(.bottom-nav .active .nav-symbol,.phone nav .active svg){transform:translateY(var(--swim-motion-nav-lift))}
  :root[data-swim-motion='ready'] :is(input,textarea,select){transition:border-color var(--swim-motion-focus) var(--swim-motion-ease-standard)}
  :root[data-swim-motion='ready'] :is(input,textarea,select):focus:not([aria-invalid="true"]){border-color:var(--swim-motion-focus-color)}
  :root[data-swim-motion='ready'] .login-mascot .login-swimmer{animation:swim-float var(--swim-motion-float) ease-in-out infinite}
  :root[data-swim-paused='true'] .login-mascot .login-swimmer,:root[data-swim-motion='ready'] .login-screen:has(input:focus) .login-swimmer{animation-play-state:paused}
  :root[data-swim-motion='ready'] #toast{transition:opacity var(--swim-motion-normal) var(--swim-motion-ease-enter),transform var(--swim-motion-normal) var(--swim-motion-ease-enter)}
  :root[data-swim-motion='ready'] dialog{opacity:0;transform:translateY(var(--swim-motion-page-offset)) scale(.97);transition:opacity var(--swim-motion-exit) var(--swim-motion-ease-exit),transform var(--swim-motion-sheet) var(--swim-motion-ease-spring),display var(--swim-motion-sheet) allow-discrete,overlay var(--swim-motion-sheet) allow-discrete}
  :root[data-swim-motion='ready'] dialog[open]{opacity:1;transform:none}
  :root[data-swim-motion='ready'] dialog:not([open]),:root[data-swim-motion='ready'] dialog:not([open])::backdrop{pointer-events:none}
  @starting-style{:root[data-swim-motion='ready'] dialog[open]{opacity:0;transform:translateY(var(--swim-motion-page-offset)) scale(.97)}}
}
@keyframes swim-float{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(-1 * var(--swim-motion-float-offset)))}}
/* Motion Design 2.0. Decorative layers never receive pointer or keyboard input. */
/* Approved calendar week slide. Floating lesson action menu removed by request. */
.calendar-week-viewport{overflow:clip;overflow-clip-margin:3px}
.prototype-calendar-lessons{display:flex;flex-direction:column;gap:16px}
.phone[data-screen='1'] main>h2{display:flex;align-items:center;justify-content:space-between;gap:8px}
.prototype-week-controls{display:inline-flex;gap:8px}
.prototype-week-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0}
.swim-bubbles,.swim-water-wave,.swim-stars{position:fixed;pointer-events:none;z-index:var(--swim-layer-toast,60);user-select:none}
.swim-bubbles{width:1px;height:1px;color:var(--swim-motion-water-color)}
.swim-bubbles i{position:absolute;width:9px;height:9px;border:1.5px solid currentColor;border-radius:50%;left:-18px;top:-8px}
.swim-bubbles i:nth-child(2){width:6px;height:6px;left:8px;top:-18px}
.swim-bubbles i:nth-child(3){width:5px;height:5px;left:18px;top:4px}
.swim-wave-viewport{position:fixed;overflow:hidden;pointer-events:none;z-index:var(--swim-layer-toast,60);contain:strict}
.swim-wave-viewport>.swim-water-wave{position:absolute;left:0;top:-30%;width:100%;height:160%;overflow:hidden;opacity:0;contain:strict}
.swim-water-wave svg{width:100%;height:100%;fill:var(--swim-motion-water-color)}
.swim-stars{width:100px;height:64px;opacity:0}
.swim-stars svg{width:100%;height:100%;fill:var(--swim-motion-star-color)}
.swim-counting{position:relative;color:transparent!important;font-variant-numeric:tabular-nums}
.swim-count-visual{position:absolute;inset:0;color:var(--swim-count-ink);pointer-events:none}
.home-stats strong>.swim-count-visual,.phone .stats strong>.swim-count-visual{font:inherit;line-height:inherit}
.swim-count-visual::before{content:attr(data-count)}
.home-stats strong,.phone .stats strong{font-variant-numeric:tabular-nums}
.phone .bar i{transform-origin:left center}
:root[data-swim-motion='ready'] :is(.bottom-nav,.phone nav) .active.swim-nav-moving{background:transparent}
.little-home-hero{position:relative}
.little-home-hero .swim-home-pause{position:absolute;top:4px;right:0;width:44px;height:44px;min-height:44px;color:var(--swim-color-heading);background:var(--swim-color-surface);border:1px solid var(--swim-color-border);border-radius:50%;z-index:1}
.phone[data-screen='0'] header{position:relative}
.phone .swim-home-pause{position:absolute;top:100px;right:16px;width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--blue);z-index:1;display:grid;place-items:center}
#app>.theme-loading,#app>.theme-loading.auth-loading{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:100dvh;margin:0;background:var(--swim-color-canvas);color:var(--swim-color-text-muted);font:16px/24px var(--swim-font-family)}
#app>.theme-loading::before{display:none}
.swim-skeleton{display:block;width:min(280px,75vw);height:116px}
.swim-pool-lanes svg{display:block;width:100%;height:116px;color:var(--swim-color-heading,var(--blue));--swim-lane-distance:260px}
.swim-pool-lanes path{stroke:var(--swim-color-brand,var(--sky));stroke-width:1.5}
.swim-lane-swimmer{fill:var(--swim-color-action,var(--action));stroke:var(--swim-color-on-action,var(--ink));stroke-width:1;transform-box:view-box}
.swim-pool-loader{display:inline-flex;flex:0 0 16px;width:16px;height:16px;margin-right:10px;vertical-align:middle;--swim-lane-distance:8px}
.swim-pool-loader svg{display:block;width:16px;height:16px}
.swim-pool-loader path{stroke:currentColor;stroke-width:1;opacity:.55}
.swim-pool-loader .swim-lane-swimmer{fill:currentColor;stroke:none}
.swim-duck .swim-duck-body{fill:var(--swim-color-accent,var(--yellow));stroke:var(--swim-color-on-action,var(--ink));stroke-width:.7;opacity:1}
.swim-duck .swim-duck-beak{fill:var(--swim-color-decoration,var(--pink));stroke:var(--swim-color-on-action,var(--ink));stroke-width:.5;opacity:1}
.swim-duck .swim-duck-eye{fill:var(--swim-color-on-action,var(--ink));stroke:none}
.login-screen .login-submit>.swim-pool-loader{margin-right:0}
[data-swim-loading]::before{content:none!important;animation:none!important}
.swim-clear-wrap{display:block;position:relative;width:100%;min-width:0;flex:1}
.field>.swim-clear-wrap{font-weight:400}
.swim-clear-host{position:relative}
.swim-clear-host input.swim-clear-input{padding-right:48px}
input.swim-clear-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none;width:0;height:0}
.swim-clear-host>.swim-clear-control{-webkit-appearance:none;appearance:none;position:absolute;right:2px;top:calc(50% - 22px);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--swim-color-text-muted,var(--text));cursor:pointer;z-index:1}
.swim-clear-control[hidden],.swim-clear-host:has(>input:disabled)>.swim-clear-control{display:none}
.swim-clear-control:focus-visible{outline:2px solid var(--swim-color-focus,var(--blue));outline-offset:-3px}
.swim-date-spotlight{position:absolute;inset:3px;border:2px solid var(--swim-color-on-calendar-selected,var(--ink));border-radius:inherit;pointer-events:none;opacity:0}
.phone .week button{position:relative}
/* Reuse binary controls at their approved size; native checkbox semantics stay intact. */
:is(.login-remember,.repeat-checkbox) input[type='checkbox'],.phone[data-screen='3'] input[type='checkbox']{appearance:none;position:relative;display:inline-block;box-sizing:border-box;width:var(--swim-toggle-width,40px);height:var(--swim-toggle-height,24px);min-height:var(--swim-toggle-height,24px);padding:0;flex-shrink:0;border:1px solid var(--swim-color-input-border,var(--border));border-radius:var(--swim-toggle-height,24px);background:var(--swim-color-surface,var(--surface));vertical-align:middle;cursor:pointer}
.phone[data-screen='3'] input[type='checkbox']{width:var(--swim-toggle-width,40px)!important}
.repeat-checkbox{min-height:var(--swim-touch-target,44px)}
:is(.login-remember,.repeat-checkbox) input[type='checkbox']::before,.phone[data-screen='3'] input[type='checkbox']::before{content:'';position:absolute;left:var(--swim-toggle-offset,3px);top:var(--swim-toggle-offset,3px);width:var(--swim-toggle-thumb,16px);height:var(--swim-toggle-thumb,16px);border-radius:50%;background:var(--swim-color-text-muted,var(--text));transform:translateX(0)}
:is(.login-remember,.repeat-checkbox) input[type='checkbox']:checked,.phone[data-screen='3'] input[type='checkbox']:checked{background:var(--swim-color-action,var(--action));border-color:var(--swim-color-on-action,var(--ink))}
:is(.login-remember,.repeat-checkbox) input[type='checkbox']:checked::before,.phone[data-screen='3'] input[type='checkbox']:checked::before{transform:translateX(var(--swim-toggle-travel,16px));background:var(--swim-color-on-action,var(--ink))}
@media(prefers-reduced-motion:no-preference){
  :root[data-swim-motion='ready'] .little-home-hero>img,:root[data-swim-motion='ready'] .phone[data-screen='0'] .hero{animation:swim-float var(--swim-motion-float) ease-in-out infinite}
  /* Focus on Resume itself must not override the user's explicit resume action. */
  :root[data-swim-paused='true'] .little-home-hero>img,:root[data-swim-paused='true'] .phone .hero,:root[data-swim-motion='ready'] .little-home-hero:focus-within:not(:has([data-swim-pause]:focus))>img{animation-play-state:paused}
  :root[data-swim-motion='ready'] .swim-progress-enter::-webkit-progress-value{transform-origin:left center;animation:swim-progress var(--swim-motion-progress) var(--swim-motion-ease-enter)}
  :root[data-swim-motion='ready'] .swim-progress-enter::-moz-progress-bar{transform-origin:left center;animation:swim-progress var(--swim-motion-progress) var(--swim-motion-ease-enter)}
  .swim-lane-swimmer{animation:swim-pool-lane var(--swim-motion-duck) linear infinite alternate}
  :root[data-swim-paused='true'] .swim-lane-swimmer{animation-play-state:paused}
  :is(.login-remember,.repeat-checkbox) input::before,.phone[data-screen='3'] input[type='checkbox']::before{transition:transform var(--swim-motion-normal) var(--swim-motion-ease-standard),background-color var(--swim-motion-normal) var(--swim-motion-ease-standard)}
  :root[data-swim-motion='ready'] :is(input,textarea,select)[aria-invalid='true']{animation:swim-validation var(--swim-motion-focus) var(--swim-motion-ease-standard)}
  :root[data-swim-motion='ready'] .motion-demo-sheet{transform:translateY(100%)}
  :root[data-swim-motion='ready'] .motion-demo-sheet[open]{transform:none}
  @starting-style{:root[data-swim-motion='ready'] .motion-demo-sheet[open]{transform:translateY(100%)}}
  @supports selector(details::details-content){
    :root[data-swim-motion='ready'] :is(.feedback-member,.phone details)::details-content{opacity:0;transform:translateY(-4px);transition:opacity var(--swim-motion-exit) var(--swim-motion-ease-standard),transform var(--swim-motion-normal) var(--swim-motion-ease-standard),content-visibility var(--swim-motion-exit) allow-discrete}
    :root[data-swim-motion='ready'] :is(.feedback-member,.phone details)[open]::details-content{opacity:1;transform:none}
    @starting-style{:root[data-swim-motion='ready'] :is(.feedback-member,.phone details)[open]::details-content{opacity:0;transform:translateY(-4px)}}
  }
}
@keyframes swim-progress{from{transform:scaleX(var(--swim-progress-from,0))}to{transform:scaleX(1)}}
@keyframes swim-pool-lane{from{transform:translateX(0)}to{transform:translateX(var(--swim-lane-distance))}}
@keyframes swim-validation{from{opacity:.65}to{opacity:1}}
/* Existing-control motion collection. No new card menu or drag interaction. */
.detail-menu>.swim-context-pop{position:fixed;inset:auto;margin:0;box-sizing:border-box;min-width:0;width:220px;max-width:calc(100vw - 16px);padding:5px;overflow:auto;transform-origin:top right;background:var(--swim-color-surface,var(--surface));color:var(--swim-color-text,var(--text));border:1px solid var(--swim-color-border,var(--border));border-radius:var(--swim-card-radius,12px);box-shadow:none;z-index:var(--swim-layer-popover,50)}
.detail-menu>.swim-context-pop[popover]:not(:popover-open){display:none}
.detail-menu>.swim-context-pop>a,.detail-menu>.swim-context-pop>button{white-space:normal;min-height:44px;box-sizing:border-box;max-width:100%}
.swim-menu-dots,.swim-menu-close{transform-box:fill-box;transform-origin:center}
.detail-menu .swim-menu-close{opacity:0}.detail-menu[open] .swim-menu-close{opacity:1}.detail-menu[open] .swim-menu-dots{opacity:0}
.filter-tabs button[aria-pressed]{position:relative}
.swim-chip-check{position:absolute;right:3px;top:3px;display:block;width:9px;height:9px;opacity:0;pointer-events:none}
.swim-chip-check svg{display:block;width:100%;height:100%}
.filter-tabs button[aria-pressed='true']>.swim-chip-check{opacity:1}
.theme-option,.checkbox-person{position:relative}
.theme-option::after,.checkbox-person::after{content:'';position:absolute;inset:1px;border:2px solid var(--swim-color-focus);border-radius:inherit;opacity:0;pointer-events:none}
.theme-option.selected::after,.checkbox-person:has(input:checked)::after{opacity:1}
.swim-empty-mascot{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;object-position:center;border-radius:inherit}
.attendance-progress-details>summary{position:relative}
.swim-completion-value{position:relative;display:inline-block;font:inherit;line-height:inherit}
.package-metrics strong>.swim-completion-value,.attendance-progress-details>summary>.swim-completion-value{font:inherit;line-height:inherit;color:inherit}
.swim-completion-ring{position:absolute;left:calc(50% - 16px);top:calc(50% - 16px);width:32px;height:32px;pointer-events:none;overflow:visible}
.swim-completion-ring circle{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}
.swim-ring-track{stroke:var(--swim-color-border)}
.swim-ring-value{stroke:var(--swim-color-success);stroke-dasharray:100 100;transform-origin:center;transform:rotate(-90deg)}
@media(prefers-reduced-motion:no-preference){.theme-option::after,.checkbox-person::after{transition:opacity var(--swim-motion-fast) var(--swim-motion-ease-standard)}}
@media(prefers-reduced-motion:reduce){
  :root[data-swim-motion='ready'] *,:root[data-swim-motion='ready'] *::before,:root[data-swim-motion='ready'] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .login-screen .swim-pause,.swim-home-pause{display:none!important}
}

/* Parent layout. Every rule is scoped; Teacher geometry and colors stay intact. */
body.parent-portal{margin:0;min-height:100dvh;background:var(--swim-color-canvas);color:var(--swim-color-text);font:400 16px/1.5 'Be Vietnam Pro',sans-serif}
.parent-portal *{box-sizing:border-box}
.parent-portal :is(h1,h2,h3,p){margin:0}
.parent-portal :is(h1,h2,h3){color:var(--swim-color-heading);font-family:'Baloo Bhaina 2',sans-serif;line-height:1.25}
.parent-portal h1{font-size:clamp(26px,3vw,34px);font-weight:700;text-wrap:balance}
.parent-portal h2{font-size:21px;font-weight:700}
.parent-portal h3{font-size:17px}
.parent-portal :is(button,input,select){font:inherit}
.parent-portal a{color:var(--swim-color-heading)}
.parent-portal .icon{display:inline-block;width:22px;height:22px;flex-shrink:0;vertical-align:middle}
.parent-portal :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--swim-color-focus);outline-offset:3px}
.parent-portal :is(button,a,select,summary){touch-action:manipulation}
.parent-portal :is(button,summary){cursor:pointer}
.parent-portal :is(button,select):disabled{cursor:default}
.parent-portal :is(a,button,input,select){scroll-margin-block:20px calc(var(--swim-parent-nav-min-height) + 20px)}
.parent-portal .parent-muted,.parent-portal small{color:var(--swim-color-text-muted);font-size:14px;line-height:1.6}
.parent-portal .parent-eyebrow{color:var(--swim-color-heading);font-size:12px;font-weight:700;letter-spacing:.05em;line-height:1.5}
.parent-portal .button{min-height:var(--swim-control-height);border-radius:var(--swim-control-radius);font:700 16px/1.5 'Be Vietnam Pro',sans-serif;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;text-align:center;white-space:normal;box-shadow:none}
.parent-portal .button.primary{background:var(--swim-color-action);color:var(--swim-color-on-action);border:1px solid var(--swim-color-action)}
.parent-portal .button.primary:not(:disabled):hover{background:var(--swim-color-action-hover)}
.parent-portal .button.primary:not(:disabled):active{background:var(--swim-color-action-pressed)}
.parent-portal .button.outline{background:transparent;color:var(--swim-color-heading);border:1px solid var(--swim-color-heading)}
.parent-portal .button:disabled{background:var(--swim-color-disabled);color:var(--swim-color-on-disabled);border-color:transparent;opacity:1;transform:none}
.parent-portal .parent-shell{max-width:var(--swim-parent-shell-max);min-height:100dvh;margin-inline:auto;display:grid;grid-template-columns:var(--swim-parent-sidebar-width) minmax(0,1fr)}
.parent-portal .parent-sidebar{background:var(--swim-color-surface);border-right:1px solid var(--swim-color-border);padding:26px 16px;position:sticky;top:0;height:100dvh;overflow-y:auto;display:flex;flex-direction:column;gap:24px}
.parent-portal .parent-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--swim-color-heading);font-weight:800;font-size:19px;line-height:1.25;min-width:0;min-height:44px}
.parent-portal .parent-brand>span:last-child{min-width:0;overflow-wrap:anywhere}
.parent-portal .parent-brand small{display:block;font-size:12px;font-weight:500;margin-top:4px}
.parent-portal .parent-logo{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--swim-color-accent);color:var(--swim-parent-logo-ink)}
.parent-portal .parent-sidebar-nav{display:grid;gap:5px}
.parent-portal .parent-nav-item{display:flex;align-items:center;gap:12px;min-height:48px;padding:11px 12px;border-radius:10px;color:var(--swim-color-text-muted);text-decoration:none;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.parent-portal .parent-nav-item:hover{background:var(--swim-color-surface-muted)}
.parent-portal .parent-nav-item.active{background:var(--swim-color-navigation-active);color:var(--swim-color-heading);font-weight:700}
.parent-portal .parent-aside-footer{margin-top:auto;padding:12px;border:1px solid var(--swim-color-border);border-radius:var(--swim-control-radius);font-size:14px}
.parent-portal .parent-aside-footer p+p{margin-top:4px;color:var(--swim-color-text-muted)}
.parent-portal .parent-workspace{min-width:0}
.parent-portal .parent-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px var(--swim-parent-desktop-gutter);background:var(--swim-parent-topbar);border-bottom:1px solid var(--swim-color-border)}
.parent-portal .parent-mobile-brand{display:none}
.parent-portal .parent-child-picker{display:flex;align-items:center;gap:9px;min-width:0}
.parent-portal .parent-avatar{display:grid;place-items:center;flex:none;width:46px;height:46px;background:var(--swim-color-avatar);color:var(--swim-color-avatar-text);border-radius:50%;font-weight:800}
.parent-portal .parent-child-field{position:relative;min-width:0;display:block}
.parent-portal .parent-child-field>svg{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--swim-color-heading);width:16px;height:16px}
.parent-portal .parent-child-field select{appearance:none;max-width:240px;min-height:var(--swim-touch-target);padding:9px 34px 9px 12px;line-height:1.5;border:1px solid var(--swim-color-input-border);border-radius:10px;background:var(--swim-color-surface);color:var(--swim-color-text);width:100%}
.parent-portal .parent-child-field select:disabled{opacity:1;color:var(--swim-color-text-muted);border-color:var(--swim-color-border)}
.parent-portal .parent-top-actions{display:flex;gap:8px;flex:none}
.parent-portal .parent-icon-button{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:8px;border:1px solid var(--swim-color-border);background:var(--swim-color-surface);color:var(--swim-color-heading);border-radius:12px;text-decoration:none;flex:none}
.parent-portal .parent-icon-button:hover{background:var(--swim-color-navigation-active)}
.parent-portal .parent-main{display:grid;align-content:start;gap:var(--swim-parent-page-gap);width:100%;max-width:var(--swim-parent-content-max);margin:0 auto;padding:var(--swim-parent-desktop-gutter);min-width:0}
.parent-portal .parent-main :is(p,h1,h2,h3,small,option){overflow-wrap:anywhere}
.parent-portal .parent-hero{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:12px;padding:24px;border-radius:var(--swim-parent-hero-radius);background:var(--swim-parent-hero);overflow:hidden}
.parent-portal .parent-hero>div{min-width:0}
.parent-portal .parent-hero h1{font-size:clamp(26px,3.2vw,40px);max-width:380px;margin:7px 0 10px;color:var(--swim-parent-hero-text)}
.parent-portal .parent-hero p:not(.parent-eyebrow){font-size:16px}
.parent-portal .parent-art-wrap{position:relative}
.parent-portal .parent-hero-art{display:block;width:100%;height:auto;max-height:var(--swim-parent-art-max);object-fit:contain;animation:swim-float var(--swim-motion-float) ease-in-out infinite}
.parent-portal .parent-pause{position:absolute;right:0;bottom:0;background:var(--swim-color-surface);width:44px;height:44px}
.parent-portal :is(.parent-hero:focus-within,.parent-hero:hover) .parent-hero-art,:root[data-swim-paused='true'] .parent-portal .parent-hero-art{animation-play-state:paused}
.parent-portal .parent-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.parent-portal .parent-stat{display:grid;align-content:start;gap:4px;min-width:0;padding:18px;background:var(--swim-color-surface);border:1px solid var(--swim-color-border);border-radius:var(--swim-parent-panel-radius)}
.parent-portal .parent-stat>.icon{color:var(--swim-color-heading)}
.parent-portal .parent-stat strong{font-size:26px;color:var(--swim-color-heading);font-variant-numeric:tabular-nums}
.parent-portal .parent-stat p{font-size:14px;line-height:1.5;color:var(--swim-color-text-muted)}
.parent-portal .parent-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.parent-portal .parent-panel{display:grid;align-content:start;gap:12px;min-width:0;padding:18px;border:1px solid var(--swim-color-border);border-radius:var(--swim-parent-panel-radius);background:var(--swim-color-surface)}
.parent-portal .parent-empty-inline{display:grid;gap:8px;align-content:start}
.parent-portal .parent-empty-inline>.icon{color:var(--swim-color-heading);margin-block:4px}
.parent-portal .parent-progress-value{font-size:28px;color:var(--swim-color-heading)}
.parent-portal .parent-progress-placeholder{display:block;height:9px;border-radius:12px;background:var(--swim-color-border)}
.parent-portal .parent-feedback-empty{display:flex;align-items:flex-start;gap:12px}
.parent-portal .parent-feedback-empty>div{display:grid;gap:4px;min-width:0}
.parent-portal .parent-state{display:grid;justify-items:center;align-content:center;gap:16px;min-height:360px;padding:32px 20px;border:1px solid var(--swim-color-border);border-radius:var(--swim-parent-panel-radius);background:var(--swim-color-surface);text-align:center}
.parent-portal .parent-state h1{font-size:26px;max-width:640px}
.parent-portal .parent-state p{max-width:540px}
.parent-portal .parent-state-icon{display:grid;place-items:center;width:64px;height:64px;background:var(--swim-color-support);color:var(--swim-color-heading);border-radius:50%}
.parent-portal .parent-state-icon>.icon{width:30px;height:30px}
.parent-portal .parent-skeleton-group{display:grid;gap:12px;width:min(100%,400px);padding-top:8px}
.parent-portal .parent-skeleton-group span{display:block;height:18px;border-radius:8px;background:var(--swim-color-surface-muted);animation:parent-skeleton var(--swim-motion-skeleton) ease-in-out infinite}
.parent-portal .parent-skeleton-group span:last-child{width:65%;justify-self:center}
.parent-portal .parent-control-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.parent-portal .badge{display:inline-flex;align-items:center;gap:6px;min-height:30px;border-radius:7px;font-size:14px;font-weight:600;line-height:1.5;padding:4px 9px;white-space:normal}
.parent-portal .badge .icon{width:16px;height:16px}
.parent-portal .badge.present{background:var(--swim-color-success-soft);color:var(--swim-color-success)}
.parent-portal .badge.absent{background:var(--swim-color-danger-soft);color:var(--swim-color-danger)}
.parent-portal .badge.pending{background:var(--swim-color-pending-soft);color:var(--swim-color-pending)}
.parent-portal .parent-field{display:grid;gap:8px;font-size:16px;line-height:1.5}
.parent-portal .parent-field :is(input,select){min-width:0;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--swim-color-input-border);border-radius:10px;color:var(--swim-color-text);background:var(--swim-color-surface);font-size:16px}
.parent-portal .parent-field progress{width:100%;height:12px;accent-color:var(--swim-color-action)}
.parent-portal .parent-theme-options{display:flex;flex-wrap:wrap;gap:8px}
.parent-portal .parent-theme-choice{display:flex;align-items:center;gap:8px;min-height:48px;max-width:100%;padding:10px 12px;border:1px solid var(--swim-color-input-border);border-radius:10px;background:var(--swim-color-surface);color:var(--swim-color-text);text-align:left}
.parent-portal .parent-theme-choice.selected{background:var(--swim-color-navigation-active);border-color:var(--swim-color-heading);color:var(--swim-color-heading);box-shadow:inset 0 0 0 1px var(--swim-color-heading)}
.parent-portal .parent-bottom-nav{display:none}
.parent-portal .parent-preview-notice{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:12px;row-gap:4px;padding:8px 16px;border-bottom:1px solid var(--swim-color-border);background:var(--swim-color-surface);font-size:12px;line-height:1.5;color:var(--swim-color-text-muted)}
.parent-portal [data-parent-preview-title]{font-weight:700;color:var(--swim-color-heading)}
.parent-portal #parent-review-controls{font-size:12px;max-width:100%}
.parent-portal #parent-review-controls>summary{display:flex;align-items:center;min-height:44px;padding:4px 8px;color:var(--swim-color-heading);text-decoration:underline}
.parent-portal .parent-review-fields{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:8px}
.parent-portal .parent-review-fields label{display:grid;gap:4px;max-width:100%}
.parent-portal .parent-review-fields select{min-height:44px;max-width:100%;padding:8px;border-radius:8px;border:1px solid var(--swim-color-input-border);background:var(--swim-color-surface);color:var(--swim-color-text);font-size:16px}
.parent-portal .parent-review-fields a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.parent-portal .parent-skip{position:fixed;top:8px;left:8px;transform:translateY(-200%);z-index:var(--swim-layer-skip);background:var(--swim-color-action);color:var(--swim-color-on-action);padding:12px;border-radius:8px}
.parent-portal .parent-skip:focus{transform:none}
@keyframes parent-skeleton{50%{opacity:.45}}
@media(width < 1024px){
 .parent-portal .parent-shell{display:block}
 .parent-portal .parent-sidebar{display:none}
 .parent-portal .parent-topbar{padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));gap:8px;flex-wrap:wrap}
 .parent-portal .parent-mobile-brand{display:block;flex:1;min-width:0}
 .parent-portal .parent-brand{font-size:16px}
 .parent-portal .parent-brand .parent-logo{width:34px;height:34px}
 .parent-portal .parent-child-picker{order:3;width:100%;border-top:1px solid var(--swim-color-border);padding-top:10px}
 .parent-portal .parent-child-field{flex:1}
 .parent-portal .parent-child-field select{max-width:none}
 .parent-portal .parent-avatar{width:38px;height:38px;font-size:14px}
 .parent-portal .parent-main{padding:16px max(16px,env(safe-area-inset-right)) calc(var(--parent-nav-space,var(--swim-parent-nav-min-height)) + 24px) max(16px,env(safe-area-inset-left));gap:16px}
 .parent-portal .parent-hero{padding:18px 14px;gap:5px}
 .parent-portal .parent-hero h1{font-size:25px}
 .parent-portal .parent-hero p:not(.parent-eyebrow){font-size:14px}
 .parent-portal .parent-hero-art{max-height:155px}
 .parent-portal .parent-pause{right:0;bottom:-2px}
 .parent-portal .parent-stats{gap:8px}
 .parent-portal .parent-stat{padding:12px 10px}
 .parent-portal .parent-stat p{font-size:12px}
 .parent-portal .parent-stat strong{font-size:24px}
 .parent-portal .parent-columns{grid-template-columns:1fr;gap:12px}
 .parent-portal .parent-panel{padding:15px}
 .parent-portal .parent-bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-height:var(--swim-parent-nav-min-height);border-top:1px solid var(--swim-color-border);padding:5px max(4px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));z-index:var(--swim-layer-navigation);background:var(--swim-color-navigation)}
 .parent-portal .parent-bottom-nav .parent-nav-item{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:60px;min-width:0;padding:5px 2px;border-radius:8px;font-size:12px;line-height:1.25;text-align:center}
 .parent-portal .parent-bottom-nav .parent-nav-item>span{max-width:100%;overflow-wrap:anywhere}
 .parent-portal .parent-state{min-height:320px}
}
@media(width >= 768px) and (width < 1024px){.parent-portal .parent-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-portal .parent-hero h1{font-size:34px}.parent-portal .parent-hero-art{max-height:190px}}
@media(prefers-reduced-motion:reduce){.parent-portal .parent-hero-art,.parent-portal .parent-skeleton-group span{animation:none}.parent-portal .parent-pause{display:none}}

/* Verified portal entry. Existing Teacher view selectors are unchanged. */
.portal-pending{display:grid;place-content:center;justify-items:center;gap:18px;min-height:100dvh;margin:0;padding:24px;text-align:center;background:var(--swim-color-canvas);color:var(--swim-color-text);font:16px/1.5 'Be Vietnam Pro',sans-serif}
.portal-pending-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--swim-color-support);color:var(--swim-color-heading)}
.portal-access .login-card{display:grid;gap:16px;max-width:480px;width:100%;overflow-wrap:anywhere}
.portal-access .login-card h1{text-wrap:balance}
.portal-access .portal-access-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--swim-color-support);color:var(--swim-color-heading)}
.portal-access .portal-options{display:grid;gap:12px}
.portal-access .portal-option{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:64px;width:100%;white-space:normal;text-align:left}
.portal-access .portal-option .icon{flex:none}
.portal-access .portal-option span{min-width:0;overflow-wrap:anywhere}
.portal-access .button{min-height:48px;white-space:normal}
.parent-portal .parent-phase-note{padding:12px 16px;background:var(--swim-color-support);border-radius:12px;color:var(--swim-color-text-muted);font-size:14px}

/* Parent Home: published API data only; never styles the Teacher portal. */
.parent-portal .parent-home{display:grid;gap:var(--swim-parent-page-gap);min-width:0}
.parent-portal .parent-home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.parent-portal .parent-home-heading>p{flex:1;min-width:0;font-size:16px}
.parent-portal .parent-home-heading>button:disabled{opacity:.45}
.parent-portal .parent-home-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.parent-portal .parent-home .parent-stat strong{font-size:clamp(20px,3.5vw,26px);overflow-wrap:anywhere;min-width:0}
.parent-portal .parent-home-skeleton{display:inline-block;background:var(--swim-color-surface-muted);border-radius:8px;animation:parent-skeleton var(--swim-motion-skeleton) ease-in-out infinite}
.parent-portal .parent-home-skeleton-number{height:32px;width:var(--swim-parent-home-metric-width);max-width:100%}
.parent-portal .parent-next-lesson{display:grid;gap:8px;min-width:0}
.parent-portal .parent-datebox{display:flex;align-items:center;gap:8px;max-width:100%;padding:10px 12px;border-radius:var(--swim-control-radius);background:var(--swim-color-support);color:var(--swim-color-heading);font-size:14px}
.parent-portal .parent-home-used{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.parent-portal .parent-home-used strong{font-size:28px;color:var(--swim-color-heading)}
.parent-portal .parent-home progress{display:block;width:100%;height:var(--swim-parent-home-progress-height);accent-color:var(--swim-color-success)}
.parent-portal .parent-home progress::-webkit-progress-value{background:var(--swim-color-success)}
.parent-portal .parent-home progress::-moz-progress-bar{background:var(--swim-color-success)}
.parent-portal .parent-home-progress-note{padding-top:4px;border-top:1px solid var(--swim-color-border)}
.parent-portal .parent-home-teacher{display:flex;align-items:center;gap:8px;font-weight:600}
.parent-portal .parent-home-feedback{white-space:pre-wrap;line-height:1.65}
.parent-portal .parent-home-skill{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border-radius:var(--swim-control-radius);background:var(--swim-color-accent);color:var(--swim-parent-logo-ink)}
.parent-portal .parent-home-skill strong{min-width:0;overflow-wrap:anywhere}
.parent-portal .parent-home-notices{display:grid;gap:12px}
.parent-portal .parent-home-notices article{display:grid;gap:8px;min-width:0;padding-bottom:12px;border-bottom:1px solid var(--swim-color-border)}
.parent-portal .parent-home-notices article:last-child{border-bottom:0;padding-bottom:0}
.parent-portal .parent-home-notices p{white-space:pre-wrap}
.parent-portal .parent-home-message{min-height:260px}
@media(width < 1024px){.parent-portal .parent-home{gap:16px}}
@media(prefers-reduced-motion:reduce){.parent-portal .parent-home-skeleton{animation:none}}

/* Explicit demo context; the authenticated portal never gets these selectors. */
.parent-demo .parent-demo-banner{position:sticky;top:0;z-index:var(--swim-layer-header);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;padding:8px 16px;background:var(--swim-color-accent);color:var(--swim-color-on-selected);font-size:14px;line-height:1.5}
.parent-demo .parent-demo-banner strong{font-weight:800}
.parent-demo .parent-demo-banner a{display:inline-flex;align-items:center;min-height:44px;color:var(--swim-parent-logo-ink);font-weight:700}
.parent-demo .parent-sidebar{top:var(--parent-demo-banner-height,var(--swim-navigation-height));height:calc(100dvh - var(--parent-demo-banner-height,var(--swim-navigation-height)))}
.parent-demo #main{scroll-margin-top:calc(var(--parent-demo-banner-height,var(--swim-navigation-height)) + 16px)}
.parent-demo .parent-demo-login{max-width:720px;margin-inline:auto}
.parent-demo .parent-demo-login form{display:grid;gap:16px}
.parent-demo .parent-demo-account{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.parent-demo .parent-demo-account>div{min-width:0;overflow-wrap:anywhere}
.parent-demo .parent-demo-password{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.parent-demo .parent-demo-credentials summary{min-height:44px;cursor:pointer;padding-block:10px;font-weight:700}
.parent-demo .parent-demo-credentials ul{display:grid;gap:12px;padding-inline-start:20px}
.parent-demo .parent-demo-credentials code{overflow-wrap:anywhere}
.parent-demo .parent-demo-calendar,.parent-demo .parent-demo-lessons{display:grid;align-content:start;gap:16px;min-width:0}
.parent-demo .parent-demo-week-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;text-align:center}
.parent-demo .parent-demo-week-controls strong{font-size:14px;overflow-wrap:anywhere}
.parent-demo .parent-demo-week-viewport{overflow:clip;overflow-clip-margin:var(--swim-space-8)}
.parent-demo .parent-demo-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.parent-demo .parent-demo-day{display:grid;justify-items:center;align-content:center;gap:4px;min-width:0;min-height:68px;padding:8px 2px;border:1px solid var(--swim-color-border);border-radius:var(--swim-control-radius);background:var(--swim-color-surface);color:var(--swim-color-text);font:inherit;font-size:12px;cursor:pointer;position:relative}
.parent-demo .parent-demo-day strong{font-size:17px}
.parent-demo .parent-demo-day[aria-current="date"]{border-color:var(--swim-color-heading)}
.parent-demo .parent-demo-day[aria-pressed="true"]{background:var(--swim-color-selected);color:var(--swim-color-on-selected);border-color:var(--swim-color-heading)}
html[data-theme="dark"] .parent-demo .parent-demo-day[aria-pressed="true"]{background:var(--swim-color-heading)}
.parent-demo .parent-demo-day-marker{width:5px;height:5px;border-radius:50%;background:transparent}
.parent-demo .parent-demo-day-marker[data-has-lessons="true"]{background:currentColor}
.parent-demo .parent-demo-calendar-columns{display:grid;gap:24px;min-width:0}
.parent-demo .parent-demo-lesson-row .badge{justify-self:start}
.parent-demo .parent-demo-back{justify-self:start}
.parent-demo .parent-demo-general-feedback{white-space:pre-wrap}
.parent-demo .parent-demo-week-next{animation:parent-demo-week-next var(--swim-motion-calendar-week) var(--swim-motion-ease-standard)}
.parent-demo .parent-demo-week-prev{animation:parent-demo-week-prev var(--swim-motion-calendar-week) var(--swim-motion-ease-standard)}
@keyframes parent-demo-week-next{from{opacity:.4;transform:translateX(20%)}to{opacity:1;transform:none}}
@keyframes parent-demo-week-prev{from{opacity:.4;transform:translateX(-20%)}to{opacity:1;transform:none}}
@media(min-width:1024px){.parent-demo .parent-demo-calendar-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-swim-paused="true"] .parent-demo .parent-demo-week{animation:none}
@media(prefers-reduced-motion:reduce){.parent-demo .parent-demo-week{animation:none}}
.parent-demo .parent-demo-progress,.parent-demo .parent-demo-progress-history,.parent-demo .parent-demo-progress-records,.parent-demo .parent-demo-progress-columns{display:grid;gap:16px;min-width:0;align-content:start}
.parent-demo .parent-demo-progress-value{font-size:28px;font-weight:800;color:var(--swim-color-heading);font-variant-numeric:tabular-nums}
.parent-demo .parent-demo-progress progress{display:block;width:100%;height:var(--swim-parent-home-progress-height);accent-color:var(--swim-color-success)}
.parent-demo .parent-demo-progress-history>.parent-home-row{flex-wrap:wrap;align-items:end}
.parent-demo .parent-demo-progress-history .parent-field{min-width:180px;max-width:100%}
.parent-demo .parent-demo-skill{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding-block:12px;border-top:1px solid var(--swim-color-border)}
.parent-demo .parent-demo-skill-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--swim-color-navigation-active);color:var(--swim-color-heading)}
.parent-demo .parent-demo-skill[data-skill-status="achieved"] .parent-demo-skill-symbol{color:var(--swim-color-success)}
.parent-demo .parent-demo-skill-link{display:flex;align-items:center;min-height:44px;color:var(--swim-color-heading);font-weight:600}
.parent-demo .parent-demo-progress-feedback summary{min-height:44px;cursor:pointer;padding-block:8px}
.parent-demo .parent-demo-progress-feedback summary span{display:block;color:var(--swim-color-text-muted);font-size:14px;margin-inline-start:16px}
.parent-demo .parent-demo-progress-feedback>div{display:grid;gap:12px;padding-top:12px}
.parent-demo .parent-demo-feedback-copy{white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:1024px){.parent-demo .parent-demo-progress-columns,.parent-demo .parent-demo-progress-records{grid-template-columns:repeat(2,minmax(0,1fr))}}
.parent-demo .parent-demo-inbox,.parent-demo .parent-demo-notice-list,.parent-demo .parent-demo-profile,.parent-demo .parent-demo-profile-columns,.parent-demo .parent-demo-profile-children{display:grid;align-content:start;gap:16px;min-width:0}
.parent-demo .parent-demo-inbox-controls{flex-wrap:wrap;align-items:end}
.parent-demo .parent-demo-inbox-controls .parent-field{min-width:180px;max-width:100%}
.parent-demo .parent-demo-notice[data-read="false"]{border-inline-start:4px solid var(--swim-color-heading)}
.parent-demo .parent-demo-read-state{font-size:14px;font-weight:700;color:var(--swim-color-heading)}
.parent-demo .parent-demo-notice[data-read="true"] .parent-demo-read-state{color:var(--swim-color-text-muted);font-weight:400}
.parent-demo .parent-demo-notice-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.parent-demo .parent-top-actions a{position:relative}
.parent-demo .parent-demo-unread-count{position:absolute;inset-block-start:-4px;inset-inline-end:-4px;display:grid;place-items:center;min-width:20px;min-height:20px;padding:2px;border-radius:50%;font-size:12px;font-weight:700;background:var(--swim-color-accent);color:var(--swim-color-on-selected)}
.parent-demo .parent-demo-profile-child{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:64px;width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--swim-color-border);background:transparent;color:var(--swim-color-text);font:inherit;text-align:start;cursor:pointer}
.parent-demo .parent-demo-profile-child strong,.parent-demo .parent-demo-profile-child small{display:block;overflow-wrap:anywhere}
.parent-demo .parent-demo-preference{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;cursor:pointer}
.parent-demo .parent-demo-preference input{width:22px;height:22px;flex-shrink:0;accent-color:var(--swim-color-success)}
@media(min-width:1024px){.parent-demo .parent-demo-profile-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
.parent-demo .parent-page-content{display:grid;align-content:start;gap:var(--swim-parent-page-gap);min-width:0}
.parent-demo .parent-demo-week-viewport{position:relative}
.parent-demo .parent-demo-selection-trace{position:absolute;pointer-events:none;border:2px solid var(--swim-color-heading);border-radius:var(--swim-control-radius)}
.parent-demo .parent-demo-week-viewport:focus-within{overflow:visible}

/* Teacher Compact Profile & Settings. Shared/Parent presentation stays unchanged. */
.teacher-settings-shell .teacher-profile-topbar{display:block;position:static;min-height:64px;height:auto;padding:16px;border:0;background:var(--swim-color-canvas);box-shadow:none}
.teacher-profile-heading{display:flex;align-items:center;gap:8px;max-width:var(--swim-teacher-profile-max);margin:0 auto}
.teacher-profile-heading h1{margin:0;font:700 26px/32px var(--swim-font-heading-family);color:var(--swim-color-heading);overflow-wrap:anywhere}
.teacher-profile-back{display:grid;place-items:center;flex:none;width:48px;min-height:48px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--swim-color-heading)}
.teacher-settings-shell main.page-settings{display:block;width:100%;max-width:none;min-height:0;padding:0 16px calc(var(--swim-navigation-height) + 24px + env(safe-area-inset-bottom));background:var(--swim-color-canvas)}
.teacher-profile{display:grid;gap:var(--swim-teacher-profile-gap);width:100%;max-width:var(--swim-teacher-profile-max);min-width:0;margin:0 auto;color:var(--swim-color-text);font:400 16px/24px var(--swim-font-family)}
.teacher-profile .card{margin:0;box-shadow:none}
.teacher-profile .icon{width:20px;height:20px;flex-shrink:0}
.teacher-profile .teacher-profile-card{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:16px;border:0;border-radius:var(--swim-teacher-profile-radius);background:var(--swim-color-support)}
.teacher-profile-avatar{display:grid;place-items:center;flex:none;width:var(--swim-teacher-profile-avatar);height:var(--swim-teacher-profile-avatar);padding:0;border:1px solid var(--swim-color-border);border-radius:50%;background:var(--swim-color-surface);color:var(--swim-color-heading);font:700 24px/1 var(--swim-font-heading-family);overflow:hidden;cursor:pointer}
.teacher-profile-avatar img,.teacher-profile-avatar-large img{display:block;width:100%;height:100%;object-fit:cover}
.teacher-profile-avatar>.icon{width:28px;height:28px}
.teacher-profile-identity{position:relative;z-index:1;display:grid;gap:4px;min-width:0;flex:1}
.teacher-profile-identity h2{margin:0;color:var(--swim-color-heading);font:700 22px/28px var(--swim-font-heading-family);overflow-wrap:anywhere}
.teacher-profile-identity p{margin:0;font-size:14px;line-height:20px;overflow-wrap:anywhere;color:var(--swim-color-text-muted)}
.teacher-profile-role{justify-self:start;width:fit-content;max-width:100%;padding:2px 8px;border-radius:999px;background:var(--swim-color-accent);color:var(--swim-color-on-selected);font-size:12px;line-height:18px;font-weight:600;overflow-wrap:anywhere}
.teacher-profile-wave{position:absolute;right:12px;bottom:10px;width:72px;height:12px;color:var(--swim-color-brand);opacity:.65;pointer-events:none}
.teacher-profile-section{display:grid;gap:8px;min-width:0}
.teacher-profile .teacher-profile-section-title{margin:0;font:700 18px/24px var(--swim-font-heading-family);color:var(--swim-color-heading)}
.teacher-profile .teacher-profile-group{min-width:0;padding:0;border:1px solid var(--swim-color-border);border-radius:var(--swim-teacher-profile-radius);background:var(--swim-color-surface);overflow:hidden}
.teacher-profile-appearance{padding:12px 16px}
.teacher-profile-appearance-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-weight:600}
.teacher-profile-theme-emblem{position:relative;display:block;flex:none;width:24px;height:24px;color:var(--swim-color-heading)}
.teacher-profile-theme-emblem>span{position:absolute;inset:0;display:grid;place-items:center;transition:transform var(--swim-motion-theme) var(--swim-motion-ease-standard),opacity var(--swim-motion-theme)}
.teacher-profile-theme-emblem .teacher-profile-sun{opacity:1;transform:rotate(0) scale(1);color:var(--swim-color-on-selected);background:var(--swim-color-accent);border-radius:50%}
.teacher-profile-theme-emblem .teacher-profile-moon{opacity:0;transform:rotate(70deg) scale(.65)}
:root[data-theme='dark'] .teacher-profile-sun{opacity:0;transform:rotate(-70deg) scale(.65)}
:root[data-theme='dark'] .teacher-profile-moon{opacity:1;transform:rotate(0) scale(1)}
.teacher-profile-themes{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:4px;border-radius:12px;background:var(--swim-color-surface-muted);min-width:0}
.teacher-profile-themes button{position:relative;z-index:1;min-width:0;min-height:48px;padding:8px 4px;border:0;border-radius:9px;background:transparent;color:var(--swim-color-text);font:600 16px/24px var(--swim-font-family);white-space:normal;overflow-wrap:normal;cursor:pointer}
.teacher-profile-themes button[aria-pressed='true']{color:var(--swim-color-on-action)}
.teacher-profile-theme-indicator{position:absolute;z-index:0;inset-block:4px;left:4px;width:calc((100% - 8px)/3);border:1px solid var(--swim-color-on-action);border-radius:9px;background:var(--swim-color-action);transform:translateX(calc(var(--profile-index)*100%));pointer-events:none}
.teacher-profile-themes[data-profile-glide] .teacher-profile-theme-indicator{animation:teacher-profile-glide var(--swim-motion-normal) var(--swim-motion-ease-standard)}
@keyframes teacher-profile-glide{from{transform:translateX(calc(var(--profile-from)*100%))}to{transform:translateX(calc(var(--profile-index)*100%))}}
.teacher-profile-row{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;min-width:0;min-height:var(--swim-teacher-profile-row-height);padding:12px 16px;border:0;background:transparent;color:var(--swim-color-text);text-decoration:none;text-align:start;font:400 16px/24px var(--swim-font-family);cursor:pointer;transition:background-color var(--swim-motion-fast),transform var(--swim-motion-fast)}
.teacher-profile-group>.teacher-profile-row+.teacher-profile-row{border-top:1px solid var(--swim-color-border)}
.teacher-profile-row-copy{display:grid;gap:2px;min-width:0}
.teacher-profile-row strong,.teacher-profile-language-option strong{font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
.teacher-profile-row small{font-size:14px;line-height:20px;font-weight:400;color:var(--swim-color-text-muted);overflow-wrap:anywhere}
.teacher-profile-row>.icon:first-child{color:var(--swim-color-heading)}
.teacher-profile-row>.icon:last-child{color:var(--swim-color-text-muted);width:18px;height:18px}
.teacher-profile-row:hover,.teacher-profile-row:active{background:var(--swim-color-action-soft)}
.teacher-profile-row:active{transform:scale(.99)}
.teacher-profile-language{grid-template-columns:20px minmax(0,1fr) auto 20px;border-top:1px solid var(--swim-color-border)}
.teacher-profile-language>span{font-size:14px;line-height:20px;color:var(--swim-color-text-muted)}
.teacher-profile :is(button,a):focus-visible,.teacher-profile-back:focus-visible{outline:2px solid var(--swim-color-focus);outline-offset:-3px}
.teacher-profile-intro{margin:0;color:var(--swim-color-text-muted);font-size:16px;line-height:24px}
.teacher-profile-language-options{min-inline-size:0;margin:0}
.teacher-profile-language-option{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:56px;padding:12px 16px;cursor:pointer}
.teacher-profile-language-option+.teacher-profile-language-option{border-top:1px solid var(--swim-color-border)}
.teacher-profile-language-option input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0}
.teacher-profile-language-option strong{flex:1;min-width:0}
.teacher-profile-language-option:focus-within{outline:2px solid var(--swim-color-focus);outline-offset:-3px}
.teacher-profile-choice{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid var(--swim-color-input-border);border-radius:50%;color:var(--swim-color-on-action);transition:background-color var(--swim-motion-fast),border-color var(--swim-motion-fast)}
.teacher-profile-choice svg{width:16px;height:16px;opacity:0;transform:scale(.7);transition:opacity var(--swim-motion-fast),transform var(--swim-motion-fast)}
.teacher-profile-language-option input:checked~.teacher-profile-choice{background:var(--swim-color-action);border-color:var(--swim-color-action)}
.teacher-profile-language-option input:checked~.teacher-profile-choice svg{opacity:1;transform:scale(1)}
.teacher-profile-language-option input:checked~.teacher-profile-choice path{animation:teacher-profile-check var(--swim-motion-normal) var(--swim-motion-ease-standard)}
@keyframes teacher-profile-check{from{stroke-dasharray:24;stroke-dashoffset:24}to{stroke-dasharray:24;stroke-dashoffset:0}}
.teacher-profile .teacher-profile-detail{padding:16px;border:1px solid var(--swim-color-border);border-radius:var(--swim-teacher-profile-radius);background:var(--swim-color-surface)}
.teacher-profile-detail h2{margin:0 0 12px;font:700 20px/28px var(--swim-font-heading-family);color:var(--swim-color-heading)}
.teacher-profile-detail p{margin:0 0 12px;font-size:16px;line-height:24px;overflow-wrap:anywhere}
.teacher-profile-detail dl{margin:16px 0}
.teacher-profile-detail dl>div{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--swim-color-border)}
.teacher-profile-detail dt,.teacher-profile-detail dd{margin:0;font-size:14px;line-height:20px;overflow-wrap:anywhere;min-width:0}
.teacher-profile-detail dt{color:var(--swim-color-text-muted)}
.teacher-profile-detail dd{text-align:end}
.teacher-profile .teacher-profile-backup{height:auto;width:fit-content;max-width:100%;white-space:normal}
.teacher-profile-backup span{min-width:0;overflow-wrap:anywhere}
.teacher-profile-about>img{display:block;margin-bottom:16px}
.teacher-profile .teacher-profile-about-tagline{color:var(--swim-color-heading);font-weight:600}
.teacher-profile-footer{display:grid;justify-items:center;gap:8px;min-width:0}
.teacher-profile-footer p{margin:0;font-size:12px;line-height:18px;color:var(--swim-color-text-muted)}
.teacher-profile-status{display:inline-flex;align-items:center;gap:8px;max-width:100%;font-size:13px;line-height:20px;color:var(--swim-color-text-muted);overflow-wrap:anywhere}
.teacher-profile-status-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--swim-color-success);transition:background-color var(--swim-motion-fast)}
.teacher-profile-status[data-state=offline] .teacher-profile-status-dot,.teacher-profile-status[data-state=unconfirmed] .teacher-profile-status-dot{background:var(--swim-color-warning)}
.teacher-profile-status[data-state=storage-error] .teacher-profile-status-dot{background:var(--swim-color-danger)}
.teacher-profile-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;max-width:100%;padding:8px 16px;border:0;border-radius:12px;background:transparent;color:var(--swim-color-danger);font:600 16px/24px var(--swim-font-family);cursor:pointer}
.teacher-profile-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--swim-color-border);border-radius:16px;background:var(--swim-color-surface);color:var(--swim-color-text);box-shadow:none;overflow:auto}
.teacher-profile-dialog::backdrop{background:var(--swim-color-scrim)}
.teacher-profile-sheet{position:relative;padding:20px}
.teacher-profile-dialog[open] .teacher-profile-sheet{animation:teacher-profile-sheet-in var(--swim-motion-sheet) var(--swim-motion-ease-enter)}
.teacher-profile-dialog h2{margin:0 0 12px;font:700 22px/30px var(--swim-font-heading-family);color:var(--swim-color-heading);overflow-wrap:anywhere}
.teacher-profile-dialog p{margin:0 0 20px;font:400 16px/24px var(--swim-font-family)}
.teacher-profile-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.teacher-profile-dialog-actions button,.teacher-profile-dialog-close{min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:var(--swim-color-surface-muted);color:var(--swim-color-text);font:600 16px/24px var(--swim-font-family);cursor:pointer}
.teacher-profile-dialog-actions .teacher-profile-confirm{background:var(--swim-color-danger-soft);color:var(--swim-color-danger)}
.teacher-profile-dialog-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:48px;background:transparent}
.teacher-profile-avatar-dialog{text-align:center}
.teacher-profile-avatar-large{display:grid;place-items:center;width:192px;height:192px;max-width:100%;margin:36px auto 20px;border-radius:50%;background:var(--swim-color-support);color:var(--swim-color-heading);font:700 56px/1 var(--swim-font-heading-family);overflow:hidden}
.teacher-profile-avatar-dialog[open] .teacher-profile-avatar-large{animation:teacher-profile-avatar-in var(--swim-motion-shared) var(--swim-motion-ease-enter)}
@keyframes teacher-profile-sheet-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes teacher-profile-avatar-in{from{opacity:.4;transform:scale(.75)}to{opacity:1;transform:scale(1)}}
@media(width < 1024px){.teacher-profile-dialog:not(.teacher-profile-avatar-dialog){position:fixed;inset:auto 0 max(16px,env(safe-area-inset-bottom));margin:0 auto}}
@media(min-width:1024px){.teacher-settings-shell main.page-settings{padding-bottom:24px}.teacher-profile-heading h1{font-size:28px;line-height:36px}}
@media(prefers-reduced-motion:reduce){.teacher-profile *,.teacher-profile *::before,.teacher-profile *::after{animation:none!important;transition:none!important}.teacher-profile-row:active{transform:none}}

/* Parent staging only; merged into its final little-swimmers.css artifact. */
.parent-portal .parent-notice-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;cursor:pointer}
.parent-portal .parent-notice-copy{display:grid;gap:4px;min-width:0;flex:1}
.parent-portal .parent-notice-copy strong{font-size:16px;font-weight:600;line-height:1.5}
.parent-portal .parent-notice-copy small{font-size:14px;line-height:1.5}
.parent-portal .parent-notice-toggle{appearance:none;-webkit-appearance:none;position:relative;display:block;flex:none;width:var(--swim-toggle-width);height:var(--swim-toggle-height);min-height:var(--swim-toggle-height);padding:0;margin:0;border:1px solid var(--swim-color-input-border);border-radius:var(--swim-toggle-height);background:var(--swim-color-surface-muted);cursor:pointer}
.parent-portal .parent-notice-toggle::before{content:'';position:absolute;left:var(--swim-toggle-offset);top:var(--swim-toggle-offset);width:var(--swim-toggle-thumb);height:var(--swim-toggle-thumb);border-radius:50%;background:var(--swim-color-text-muted);transform:translateX(0)}
.parent-portal .parent-notice-toggle:checked{background:var(--swim-color-action);border-color:var(--swim-color-on-action)}
.parent-portal .parent-notice-toggle:checked::before{background:var(--swim-color-on-action);transform:translateX(var(--swim-toggle-travel))}
.parent-portal .parent-notice-toggle:disabled{cursor:wait;opacity:.6}
.parent-portal .parent-notice-note{padding-top:12px;border-top:1px solid var(--swim-color-border)}
@media(prefers-reduced-motion:no-preference){.parent-portal .parent-notice-toggle::before{transition:transform var(--swim-motion-normal) var(--swim-motion-ease-standard),background-color var(--swim-motion-normal) var(--swim-motion-ease-standard)}}
.parent-portal .parent-header-notifications.active{background:var(--swim-color-navigation-active);border-color:var(--swim-color-heading)}
@media(width < 1024px){.parent-portal .parent-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Profile uses the established semantic palette and typography in both themes. */
.parent-portal .parent-profile{display:grid;gap:24px;min-width:0;padding-bottom:16px}
.parent-portal .parent-profile>h1{margin:0;font-size:28px;line-height:1.35}
.parent-portal .profile-hero{position:relative;display:flex;align-items:center;gap:16px;min-width:0;padding:24px 20px 30px;border-radius:var(--swim-radius-16);background:var(--swim-color-support);overflow:hidden}
.parent-portal .profile-avatar-button{z-index:1;flex-shrink:0;padding:0;background:none;border:0;border-radius:50%;cursor:pointer}
.parent-portal .profile-avatar{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:50%;background:var(--swim-color-avatar);color:var(--swim-color-avatar-text);font-size:16px;font-weight:800;line-height:1}
.parent-portal .profile-avatar-large{width:72px;height:72px;font-size:25px;background:var(--swim-color-surface);color:var(--swim-color-heading);border:3px solid var(--swim-color-accent)}
.parent-portal .profile-hero-copy{position:relative;z-index:1;min-width:0;flex:1}
.parent-portal .profile-hero-copy>p{font-size:12px;font-weight:600;color:var(--swim-color-heading);margin:0 0 6px}
.parent-portal .profile-hero-copy h2{font-size:25px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.parent-portal .profile-view-button{display:flex;align-items:center;gap:4px;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--swim-color-heading);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.parent-portal .profile-view-button .icon{width:16px;height:16px}
.parent-portal .profile-wave{position:absolute;bottom:0;left:0;width:100%;height:44px;object-fit:fill;opacity:.22;pointer-events:none}
.parent-portal .profile-columns{display:grid;gap:28px;min-width:0}
.parent-portal .profile-columns>div{min-width:0;display:grid;align-content:start;gap:28px}
.parent-portal .profile-group{min-width:0}
.parent-portal .profile-group>h2{font-size:14px;line-height:1.5;font-weight:700;letter-spacing:.03em;color:var(--swim-color-text-muted);margin:0 0 8px}
.parent-portal .profile-group-body{min-width:0}
.parent-portal .profile-row,.parent-portal .profile-family-row{display:flex;align-items:center;gap:12px;min-width:0;width:100%;min-height:78px;padding:16px 0;border:0;border-bottom:1px solid var(--swim-color-border);background:transparent;color:var(--swim-color-text);font:inherit;text-align:start;text-decoration:none;cursor:pointer}
.parent-portal .profile-row:last-child,.parent-portal .profile-family-row:last-child{border-bottom:0}
.parent-portal .profile-row>.icon,.parent-portal .profile-family-row>.icon{flex-shrink:0;width:18px;height:18px;color:var(--swim-color-text-muted);margin-inline-start:auto}
.parent-portal .profile-row-copy{display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}
.parent-portal .profile-row-copy strong,.parent-portal .profile-row>strong{font-size:15px;line-height:1.5;font-weight:600}
.parent-portal .profile-row-copy small{font-size:12px;line-height:1.6;color:var(--swim-color-text-muted)}
.parent-portal .profile-row-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:var(--swim-radius-12);background:var(--swim-color-action-soft);color:var(--swim-color-heading)}
.parent-portal .profile-row-icon>.icon{width:20px;height:20px}
.parent-portal .profile-row-static{cursor:default}
.parent-portal .profile-logout,.parent-portal .profile-logout>.icon{color:var(--swim-color-danger)}
.parent-portal .profile-logout .profile-row-icon{background:var(--swim-color-danger-soft);color:var(--swim-color-danger)}
.parent-portal .profile-family-empty{display:grid;justify-items:start;gap:8px;padding:20px 0}
.parent-portal .profile-family-empty>.icon{color:var(--swim-color-heading);width:28px;height:28px}
.parent-portal .profile-family-empty p{font-size:15px;margin:0}
.parent-portal .profile-family-empty small{font-size:13px}
.parent-portal .profile-theme-setting{padding:14px 0 20px;border-bottom:1px solid var(--swim-color-border)}
.parent-portal .profile-setting-label{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:600;margin-bottom:12px}
.parent-portal .profile-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.parent-portal .profile-theme-options button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:12px 7px;border:1px solid var(--swim-color-border);border-radius:var(--swim-radius-12);background:var(--swim-color-surface);color:var(--swim-color-text-muted);font:inherit;font-size:12px;line-height:1.5;cursor:pointer}
.parent-portal .profile-theme-options button>.icon{width:22px;height:22px}
.parent-portal .profile-theme-options button[aria-pressed=true]{background:var(--swim-color-navigation-active);color:var(--swim-color-heading);border-color:var(--swim-color-heading)}
.parent-portal .profile-check{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--swim-color-accent);color:var(--swim-color-on-action)}
.parent-portal .profile-check>.icon{width:12px;height:12px;stroke-width:2.5}
.parent-portal .profile-setting-row{display:flex;align-items:center;gap:12px;min-width:0;min-height:80px;border-bottom:1px solid var(--swim-color-border);font-size:15px}
.parent-portal .profile-setting-row strong{flex:1;font-size:15px;font-weight:600}
.parent-portal .profile-setting-row select{width:auto;max-width:50%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--swim-color-input-border);border-radius:var(--swim-radius-12);background:var(--swim-color-surface);color:var(--swim-color-text);font:inherit;font-size:16px}
.parent-portal .profile-notice-row{gap:12px;padding:20px 0 10px;cursor:pointer}
.parent-portal .profile-notice-row .parent-notice-copy strong{font-size:15px}
.parent-portal .profile-notice-row .parent-notice-copy small{font-size:12px;line-height:1.6}
.parent-portal .profile-switch-target{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;min-width:44px;min-height:44px}
.parent-portal .profile-settings-note{font-size:11px;line-height:1.7;color:var(--swim-color-text-muted);margin:0;padding-inline-start:48px}
.parent-portal .profile-save-status{font-size:13px;color:var(--swim-color-heading);margin:0}
.parent-portal .profile-save-error{display:grid;gap:8px;font-size:13px;color:var(--swim-color-danger)}
.parent-portal .profile-save-error p{margin:0}
.parent-portal .profile-text-button{justify-self:start;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--swim-color-heading);font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.parent-portal .parent-profile :is(button,select):disabled{opacity:.6;cursor:wait}
.parent-portal .parent-profile :is(button,select):focus-visible,.parent-portal .profile-sheet :is(button,a):focus-visible{outline:3px solid var(--swim-color-focus);outline-offset:3px}
.parent-portal .profile-sheet{position:fixed;inset:0;margin:auto;width:min(600px,calc(100% - 32px));max-width:none;max-height:85dvh;padding:0;border:1px solid var(--swim-color-border);border-radius:var(--swim-radius-16);background:var(--swim-color-surface);color:var(--swim-color-text);overflow:hidden}
.parent-portal .profile-sheet::backdrop{background:color-mix(in srgb,var(--swim-night) 65%,transparent)}
.parent-portal .profile-sheet-frame{display:flex;flex-direction:column;max-height:85dvh;min-height:240px}
.parent-portal .profile-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--swim-color-border)}
.parent-portal .profile-sheet-header h2{font-size:23px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.parent-portal .profile-sheet-header h2:focus{outline:none}
.parent-portal .profile-sheet-header>.parent-icon-button{flex-shrink:0}
.parent-portal .profile-sheet-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:24px;line-height:1.8;font-size:15px}
.parent-portal .profile-sheet-body>p{margin:0 0 16px}
.parent-portal .profile-sheet-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--swim-color-border)}
.parent-portal .profile-sheet-footer .button{min-height:48px;font-size:14px}
.parent-portal .profile-panel-avatar,.parent-portal .profile-child-heading{display:grid;justify-items:center;gap:12px;padding:4px 0 20px}
.parent-portal .profile-panel-avatar p{margin:0;font-size:13px;color:var(--swim-color-text-muted)}
.parent-portal .profile-child-heading h3{margin:0;font-size:23px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.parent-portal .profile-account-details{display:grid;margin:0 0 16px}
.parent-portal .profile-account-details>div{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--swim-color-border);font-size:14px}
.parent-portal .profile-account-details dt{color:var(--swim-color-text-muted)}
.parent-portal .profile-account-details dd{margin:0;overflow-wrap:anywhere}
.parent-portal .profile-dialog-note{color:var(--swim-color-text-muted);font-size:12px;line-height:1.8;margin:16px 0 0}
.parent-portal .profile-dialog-symbol{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--swim-color-action-soft);color:var(--swim-color-heading);margin-bottom:20px}
.parent-portal .profile-dialog-symbol .icon{width:28px;height:28px}
.parent-portal .profile-reset-email{display:block;margin:12px 0 20px;overflow-wrap:anywhere}
.parent-portal .profile-password-success{display:grid;justify-items:center;gap:12px;text-align:center}
.parent-portal .profile-password-success h3{margin:0;font-size:23px}
.parent-portal .profile-password-success p{margin:0}
.parent-portal .profile-check-circle{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--swim-color-action);color:var(--swim-color-on-action)}
.parent-portal .profile-check-circle .icon{width:28px;height:28px;stroke-width:2}
.parent-portal .profile-child-section{padding:20px 0;border-bottom:1px solid var(--swim-color-border)}
.parent-portal .profile-child-section h3,.parent-portal .profile-help h3{font-size:18px;line-height:1.5;margin:0 0 8px}
.parent-portal .profile-child-section p{font-size:14px;margin:6px 0 0;overflow-wrap:anywhere}
.parent-portal .profile-package{font-size:28px;color:var(--swim-color-heading);font-variant-numeric:tabular-nums}
.parent-portal .profile-shared-feedback{white-space:pre-wrap}
.parent-portal .profile-help section{padding:20px 0;border-bottom:1px solid var(--swim-color-border)}
.parent-portal .profile-help section:first-child{padding-top:0}
.parent-portal .profile-help section:last-child{border:0;padding-bottom:0}
.parent-portal .profile-help p{font-size:14px;margin:0}
html[data-theme=dark] .parent-portal .profile-wave{opacity:.12}
html[data-swim-paused=true] .parent-portal .parent-notice-toggle::before{transition:none}
@media(min-width:760px){.parent-portal .profile-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px}.parent-portal .profile-hero{padding:32px;gap:24px;min-height:166px}.parent-portal .profile-hero-copy h2{font-size:30px}.parent-portal .profile-avatar-large{width:80px;height:80px;font-size:28px}.parent-portal .profile-hero-copy>p{font-size:13px}.parent-portal .profile-wave{height:56px}.parent-portal .profile-group>h2{font-size:15px}}
@media(max-width:599px){.parent-portal .profile-sheet{inset:auto 0 0;width:100%;margin:0;border-radius:var(--swim-radius-16) var(--swim-radius-16) 0 0;max-height:88dvh}.parent-portal .profile-sheet-frame{max-height:88dvh}.parent-portal .profile-sheet-header{padding:18px 20px}.parent-portal .profile-sheet-body{padding:20px}.parent-portal .profile-sheet-footer{padding-inline:20px}.parent-portal .profile-sheet-footer .button{flex:1}.parent-portal .profile-sheet-header h2{font-size:22px}}
@media(max-width:359px){.parent-portal .profile-hero{gap:12px;padding-inline:16px}.parent-portal .profile-hero-copy h2{font-size:22px}.parent-portal .profile-hero-copy>p{font-size:11px}.parent-portal .profile-avatar-large{width:60px;height:60px;font-size:22px}.parent-portal .profile-row-copy strong{font-size:14px}.parent-portal .profile-setting-row{gap:8px}.parent-portal .profile-setting-row select{font-size:16px;padding-inline:6px}.parent-portal .profile-notice-row{gap:8px}}
@media(prefers-reduced-motion:no-preference){.parent-portal .profile-row:not(.profile-row-static):active,.parent-portal .profile-family-row:active{transform:scale(.99)}.parent-portal .parent-notice-toggle::before{transition-timing-function:var(--swim-motion-ease-spring)}}
@media(prefers-reduced-motion:reduce){.parent-portal .parent-profile *,.parent-portal .profile-sheet *{animation:none!important;transition:none!important}}

/* Parent staging only. Appended to the artifact's final little-swimmers.css.
   Existing semantic tokens supply both themes; Teacher and generated tokens stay intact. */
.parent-portal .parent-schedule,.parent-portal .parent-lesson-detail{display:grid;gap:28px;min-width:0;padding-bottom:60px}
.parent-portal .schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.parent-portal .schedule-heading h1{margin:0;font-size:30px;line-height:1.3}
.parent-portal .schedule-heading p{color:var(--swim-color-text-muted);margin:4px 0 0;font-size:14px}
.parent-portal .schedule-heading-art{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;background:var(--swim-color-accent);color:var(--swim-color-on-action);transform:rotate(-8deg)}
.parent-portal .schedule-heading-art .icon{width:30px;height:30px}
.parent-portal .schedule-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'calendar' 'upcoming' 'timeline';gap:24px;align-items:start;min-width:0}
.parent-portal .schedule-calendar{grid-area:calendar;background:var(--swim-color-surface);padding:20px 16px 16px;border-radius:var(--swim-radius-16);min-width:0}
.parent-portal .schedule-calendar-top,.parent-portal .schedule-calendar-controls{display:flex;align-items:center;gap:8px;min-width:0}
.parent-portal .schedule-calendar-top{justify-content:space-between;margin-bottom:12px;gap:12px}
.parent-portal .schedule-calendar-top h2{margin:0;font-size:20px;line-height:1.3;text-transform:capitalize;min-width:0}
.parent-portal .schedule-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:0;border-radius:var(--swim-radius-12);background:var(--swim-color-action-soft);color:var(--swim-color-heading);font:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;text-align:center;touch-action:manipulation;max-width:100%}
.parent-portal .schedule-button:disabled{cursor:wait;opacity:.65}
.parent-portal .schedule-button:hover:not(:disabled){background:var(--swim-color-navigation-active)}
.parent-portal .schedule-segment{display:flex;position:relative;isolation:isolate;gap:4px;padding:4px;border-radius:var(--swim-radius-12);background:var(--swim-color-canvas);min-width:0}
.parent-portal .schedule-segment .schedule-button{background:transparent;color:var(--swim-color-text-muted);min-height:40px;padding:8px 14px;position:relative;flex:1;z-index:1;white-space:nowrap}
.parent-portal .schedule-segment .schedule-button[aria-pressed=true]{background:var(--swim-color-surface);color:var(--swim-color-heading)}
.parent-portal .schedule-view-switch{flex-shrink:0}
.parent-portal .schedule-view-switch .schedule-button{font-size:13px;padding-inline:12px}
.parent-portal .schedule-calendar-controls p{margin:0;flex:1;font-size:13px;line-height:1.5;color:var(--swim-color-text-muted)}
.parent-portal .schedule-arrow{flex-shrink:0;width:40px;min-height:44px;padding:8px;background:transparent}
.parent-portal .schedule-today{padding-inline:10px;flex-shrink:0;font-size:12px;background:transparent}
.parent-portal .schedule-date-viewport{position:relative;margin-top:12px;touch-action:pan-y;user-select:none}
.parent-portal .schedule-weekdays,.parent-portal .schedule-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.parent-portal .schedule-weekdays{color:var(--swim-color-text-muted);font-size:12px;line-height:24px;text-align:center;margin-bottom:6px}
.parent-portal .schedule-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:58px;padding:6px 0;border:2px solid transparent;border-radius:var(--swim-radius-12);background:transparent;color:var(--swim-color-text);font:inherit;font-size:16px;font-weight:600;line-height:1.25;cursor:pointer;touch-action:manipulation}
.parent-portal .schedule-days[data-calendar-view=month]{row-gap:6px}
.parent-portal .schedule-days[data-calendar-view=month] .schedule-day{min-height:48px;gap:4px;font-size:14px}
.parent-portal .schedule-day.outside-month{color:var(--swim-color-text-muted);font-weight:400}
.parent-portal .schedule-day[aria-current=date]{border-color:var(--swim-color-heading)}
.parent-portal .schedule-day:hover{background:var(--swim-color-action-soft)}
.parent-portal .schedule-day[aria-pressed=true]{background:var(--swim-color-accent);color:var(--swim-color-on-action);font-weight:700}
.parent-portal .schedule-dot{display:inline-block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:transparent}
.parent-portal .schedule-dot.has-lessons{background:var(--swim-color-heading)}
.parent-portal .schedule-day[aria-pressed=true] .has-lessons{background:var(--swim-color-on-action)}
.parent-portal .schedule-calendar-key{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:16px;color:var(--swim-color-text-muted);font-size:11px;line-height:1.5}
.parent-portal .schedule-calendar-key>span{display:inline-flex;align-items:center;gap:6px}
.parent-portal .schedule-calendar-key small{font-size:10px;margin-inline-start:auto}
.parent-portal .schedule-today-key{width:10px;height:10px;border:1.5px solid var(--swim-color-heading);border-radius:4px}
.parent-portal .schedule-upcoming{grid-area:upcoming;background:var(--swim-color-success-soft);border-radius:var(--swim-radius-16);padding:20px;min-width:0}
.parent-portal .schedule-upcoming-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.parent-portal .schedule-upcoming-heading h2{font-size:21px;line-height:1.3;margin:6px 0 0}
.parent-portal .schedule-eyebrow{font-size:10px;font-weight:700;letter-spacing:.07em;line-height:1.6;color:var(--swim-color-text-muted);margin:0}
.parent-portal .schedule-mascot{display:block;object-fit:contain;max-width:100%;flex-shrink:0}
.parent-portal .schedule-upcoming-heading .schedule-mascot{width:92px;height:72px}
.parent-portal .schedule-upcoming h3{font-size:18px;line-height:1.4;overflow-wrap:anywhere;margin:0 0 12px;color:var(--swim-color-text)}
.parent-portal .schedule-meta{display:grid;gap:10px;margin:0 0 20px;font-size:14px;line-height:1.6}
.parent-portal .schedule-meta>div{display:flex;align-items:flex-start;gap:10px;min-width:0}
.parent-portal .schedule-meta dd{margin:0;overflow-wrap:anywhere}
.parent-portal .schedule-meta .icon{flex-shrink:0;width:18px;height:18px;margin-top:2px;color:var(--swim-color-heading)}
.parent-portal .schedule-primary{width:100%;display:flex;justify-content:space-between;gap:12px;font-size:14px;min-height:46px}
.parent-portal .schedule-upcoming-none{background:var(--swim-color-surface)}
.parent-portal .schedule-upcoming-none .schedule-mascot{margin-bottom:12px}
.parent-portal .schedule-upcoming-none h2{font-size:20px;line-height:1.4}
.parent-portal .schedule-upcoming-none p{font-size:14px;color:var(--swim-color-text-muted);margin-bottom:0;line-height:1.7}
.parent-portal .schedule-timeline{grid-area:timeline;min-width:0}
.parent-portal .schedule-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.parent-portal .schedule-list-heading h2{font-size:19px;line-height:1.4;margin:0;min-width:0;text-transform:capitalize}
.parent-portal .schedule-list-heading>span{font-size:12px;white-space:nowrap;color:var(--swim-color-text-muted)}
.parent-portal .schedule-list{position:relative;min-width:0}
.parent-portal .schedule-lesson{display:flex;align-items:flex-start;gap:12px;padding:22px 0;border-bottom:1px solid var(--swim-color-border);min-width:0}
.parent-portal .schedule-date-stamp{display:grid;justify-items:center;align-content:center;flex-shrink:0;gap:2px;width:48px;min-height:62px;border-radius:var(--swim-radius-12);background:var(--swim-color-action-soft);color:var(--swim-color-heading)}
.parent-portal .schedule-date-stamp span{font-size:10px;text-transform:uppercase;line-height:1.5}
.parent-portal .schedule-date-stamp strong{font-size:23px;line-height:1.2}
.parent-portal .schedule-lesson-copy{flex:1;min-width:0}
.parent-portal .schedule-lesson-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.parent-portal .schedule-time{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.parent-portal .schedule-temporal{display:inline-block;font-size:11px;line-height:1.5;color:var(--swim-color-text-muted)}
.parent-portal .schedule-lesson h3{font-size:18px;line-height:1.4;margin:6px 0 8px;overflow-wrap:anywhere}
.parent-portal .schedule-lesson h3 a{color:var(--swim-color-heading);text-decoration:none}
.parent-portal .schedule-lesson p{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.6;margin:5px 0;color:var(--swim-color-text-muted);overflow-wrap:anywhere}
.parent-portal .schedule-lesson p .icon{width:15px;height:15px;flex-shrink:0;margin-top:2px}
.parent-portal .schedule-result-pending{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.6;color:var(--swim-color-text-muted);margin-top:8px}
.parent-portal .schedule-result-pending .icon{width:14px;height:14px;flex-shrink:0}
.parent-portal .schedule-lesson .badge{font-size:12px;margin-top:8px}
.parent-portal .schedule-row-link{display:grid;place-items:center;align-self:center;width:32px;min-height:44px;flex-shrink:0;color:var(--swim-color-heading);border-radius:8px}
.parent-portal .schedule-empty,.parent-portal .schedule-state{display:grid;justify-items:center;text-align:center;padding:28px 16px;gap:12px;min-width:0}
.parent-portal .schedule-empty .schedule-mascot,.parent-portal .schedule-state .schedule-mascot{background:var(--swim-color-action-soft);width:132px;height:102px;padding:10px;border-radius:50%}
.parent-portal .schedule-empty h3,.parent-portal .schedule-state h2{margin:0;font-size:20px;line-height:1.4;max-width:360px}
.parent-portal .schedule-empty p,.parent-portal .schedule-state p{margin:0;font-size:14px;line-height:1.7;color:var(--swim-color-text-muted);max-width:360px}
.parent-portal .schedule-next-action{background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:13px}
.parent-portal .schedule-range{padding-top:20px;display:grid;justify-items:start;gap:12px}
.parent-portal .schedule-range p{font-size:12px;color:var(--swim-color-text-muted);line-height:1.7;margin:0}
.parent-portal .schedule-loading{min-height:200px;padding:24px 0}
.parent-portal .schedule-loading p{font-size:14px;color:var(--swim-color-text-muted)}
.parent-portal .schedule-fab{position:fixed;z-index:35;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--parent-nav-space,76px) + 12px);display:grid;justify-items:end;gap:10px}
.parent-portal .schedule-fab-trigger{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 16px;border:0;border-radius:var(--swim-radius-round);background:var(--swim-color-action);color:var(--swim-color-on-action);font:inherit;font-weight:700;font-size:13px;box-shadow:var(--swim-shadow-popover);cursor:pointer}
.parent-portal .schedule-quick-actions{position:absolute;bottom:calc(100% + 10px);right:0;display:grid;gap:4px;width:234px;padding:8px;border-radius:var(--swim-radius-16);background:var(--swim-color-surface);border:1px solid var(--swim-color-border);box-shadow:var(--swim-shadow-popover)}
.parent-portal .schedule-quick-actions[hidden]{display:none}
.parent-portal .schedule-quick-actions .schedule-button{justify-content:flex-start;background:transparent;color:var(--swim-color-text);text-align:start}
.parent-portal .schedule-selection-trace,.parent-portal .schedule-segment-trace{position:absolute;pointer-events:none;border-radius:var(--swim-radius-12);z-index:2;background:var(--swim-color-accent)}
.parent-portal .schedule-segment-trace{background:var(--swim-color-action);z-index:0}
.parent-portal .schedule-back{display:inline-flex;align-items:center;gap:8px;justify-self:start;min-height:44px;color:var(--swim-color-heading);font-size:14px;font-weight:600;text-decoration:none}
.parent-portal .schedule-detail-heading h1{font-size:30px;line-height:1.35;margin:8px 0;overflow-wrap:anywhere}
.parent-portal .schedule-detail-layout{display:grid;gap:28px;min-width:0}
.parent-portal .schedule-detail-layout h2{font-size:22px;line-height:1.4;margin:0 0 18px}
.parent-portal .schedule-detail-information{padding:24px;border-radius:var(--swim-radius-16);background:var(--swim-color-surface)}
.parent-portal .schedule-detail-information small{font-size:12px;color:var(--swim-color-text-muted)}
.parent-portal .schedule-published h3{margin:24px 0 8px;font-size:17px}
.parent-portal .schedule-published>p{font-size:14px;line-height:1.8;color:var(--swim-color-text-muted)}
.parent-portal .schedule-feedback{white-space:pre-wrap;overflow-wrap:anywhere}
.parent-portal .schedule-publication{display:flex;align-items:center;gap:6px}
.parent-portal .schedule-publication .icon{width:16px;height:16px;flex-shrink:0}
.parent-portal .schedule-preparation{display:flex;align-items:center;gap:16px;padding:24px;border-radius:var(--swim-radius-16);background:var(--swim-color-action-soft)}
.parent-portal .schedule-preparation h2{margin-bottom:8px}
.parent-portal .schedule-preparation p{margin:0;font-size:14px;line-height:1.8}
.parent-portal .schedule-preparation .schedule-mascot{width:100px}
.parent-portal :is(.schedule-button,.schedule-day,.schedule-row-link,.schedule-back,.schedule-fab-trigger,.schedule-lesson a):focus-visible{outline:3px solid var(--swim-color-focus);outline-offset:3px}
html[data-theme=dark] .parent-portal .schedule-upcoming{background:var(--swim-color-surface)}
html[data-theme=dark] .parent-portal .schedule-upcoming-heading h2{color:var(--swim-color-action)}
html[data-theme=dark] .parent-portal .schedule-view-switch{background:var(--swim-color-canvas)}
@media(min-width:700px){.parent-portal .schedule-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.85fr);grid-template-areas:'calendar upcoming' 'timeline upcoming';gap:28px}.parent-portal .schedule-upcoming{position:sticky;top:24px}.parent-portal .schedule-calendar{padding:24px}.parent-portal .schedule-detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.parent-portal .schedule-preparation{grid-column:1/-1}}
@media(min-width:1024px){.parent-portal .parent-schedule{gap:32px}.parent-portal .schedule-heading h1{font-size:34px}.parent-portal .schedule-layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:32px}.parent-portal .schedule-calendar{padding:28px}.parent-portal .schedule-day{min-height:64px}.parent-portal .schedule-days[data-calendar-view=month] .schedule-day{min-height:54px}.parent-portal .schedule-upcoming{padding:28px}.parent-portal .schedule-fab{bottom:24px;right:28px}}
@media(max-width:359px){.parent-portal .schedule-calendar{padding:16px 8px}.parent-portal .schedule-calendar-top{gap:6px}.parent-portal .schedule-calendar-top h2{font-size:18px}.parent-portal .schedule-view-switch .schedule-button{padding-inline:8px}.parent-portal .schedule-calendar-controls{gap:2px}.parent-portal .schedule-calendar-controls p{font-size:11px}.parent-portal .schedule-today{font-size:11px;padding-inline:6px}.parent-portal .schedule-row-link{width:24px}.parent-portal .schedule-lesson{gap:8px}.parent-portal .schedule-preparation .schedule-mascot{display:none}}
@media(prefers-reduced-motion:reduce){.parent-portal :is(.schedule-calendar,.schedule-list,.schedule-quick-actions,.schedule-day){animation:none!important;transition:none!important}}

/* Playful Soft Card: Parent Calendar presentation only; palette/tokens unchanged. */
.parent-portal .parent-schedule{gap:20px;max-width:1080px;margin-inline:auto;width:100%}
.parent-portal .parent-schedule .schedule-heading{gap:12px}
.parent-portal .parent-schedule .schedule-heading h1{font-size:26px;line-height:1.3;font-weight:700}
.parent-portal .parent-schedule .schedule-heading p{font-size:13px;line-height:1.6;margin-top:3px}
.parent-portal .parent-schedule .schedule-heading-art{width:44px;height:44px}
.parent-portal .parent-schedule .schedule-heading-art .icon{width:26px;height:26px}
.parent-portal .parent-schedule .schedule-layout{gap:20px}
.parent-portal .parent-schedule :is(.schedule-calendar,.schedule-upcoming){border-radius:20px;box-shadow:none;border:0}
.parent-portal .parent-schedule .schedule-calendar{padding:18px 16px 16px}
.parent-portal .parent-schedule .schedule-calendar-top{gap:10px;margin-bottom:12px}
.parent-portal .parent-schedule .schedule-calendar-top h2{font-size:19px;line-height:1.35;font-weight:600}
.parent-portal .parent-schedule .schedule-view-switch{border-radius:var(--swim-radius-round);padding:4px;gap:2px}
.parent-portal .parent-schedule .schedule-view-switch .schedule-button{min-height:40px;border-radius:var(--swim-radius-round);font-size:12px;padding-inline:12px;font-weight:600}
.parent-portal .parent-schedule .schedule-calendar-controls{gap:8px;justify-content:space-between}
.parent-portal .parent-schedule .schedule-period-capsule{display:flex;align-items:center;flex:1;min-width:0;border-radius:var(--swim-radius-round);background:var(--swim-color-canvas);padding:2px;gap:0}
.parent-portal .parent-schedule .schedule-period-capsule .schedule-arrow{width:40px;min-height:44px;padding:8px;border-radius:50%;background:transparent}
.parent-portal .parent-schedule [data-schedule-step="-1"] .icon{transform:rotate(180deg)}
.parent-portal .parent-schedule .schedule-period-capsule p{min-width:0;text-align:center;font-size:12px;line-height:1.4;font-weight:500;color:var(--swim-color-text);font-variant-numeric:tabular-nums}
.parent-portal .parent-schedule .schedule-today{min-height:44px;padding:8px 10px;border-radius:var(--swim-radius-round);font-size:12px;font-weight:600;background:transparent;white-space:nowrap}
.parent-portal .parent-schedule .schedule-date-viewport{margin-top:12px}
.parent-portal .parent-schedule .schedule-weekdays{margin-bottom:4px;font-size:12px;line-height:22px}
.parent-portal .parent-schedule .schedule-day{min-height:52px;gap:5px;font-weight:500}
.parent-portal .parent-schedule .schedule-day[aria-pressed=true]{font-weight:700}
.parent-portal .parent-schedule .schedule-days[data-calendar-view=month]{row-gap:3px}
.parent-portal .parent-schedule .schedule-days[data-calendar-view=month] .schedule-day{min-height:44px;gap:3px}
.parent-portal .parent-schedule .schedule-dot{width:6px;height:6px}
.parent-portal .parent-schedule .schedule-dot.has-lessons{background:var(--swim-sky);border:1px solid var(--swim-color-heading)}
.parent-portal .parent-schedule .schedule-day[aria-pressed=true] .has-lessons{background:var(--swim-sky);border-color:var(--swim-color-on-action)}
.parent-portal .parent-schedule .schedule-calendar-key{margin-top:12px;gap:7px 12px}
.parent-portal .parent-schedule .schedule-upcoming{padding:20px;display:grid;gap:18px}
.parent-portal .parent-schedule .schedule-upcoming-heading{gap:12px;margin:0}
.parent-portal .parent-schedule .schedule-eyebrow{font-size:10px;line-height:1.6;font-weight:600;letter-spacing:.045em}
.parent-portal .parent-schedule .schedule-upcoming-heading h2{font-size:21px;line-height:1.35;font-weight:600;margin-top:6px}
.parent-portal .parent-schedule .schedule-upcoming-heading .schedule-mascot{width:72px;height:56px}
.parent-portal .parent-schedule .schedule-upcoming h3{font-size:20px;line-height:1.45;font-weight:600;margin:0 0 14px;overflow-wrap:anywhere}
.parent-portal .parent-schedule .schedule-upcoming .schedule-meta{margin:0;gap:11px;font-size:14px;line-height:1.7}
.parent-portal .parent-schedule .schedule-upcoming .schedule-meta .icon{width:18px;height:18px;margin-top:3px}
.parent-portal .parent-schedule .schedule-upcoming .schedule-primary{min-height:48px;border-radius:var(--swim-radius-round);font-size:14px;font-weight:600;padding-inline:18px}
.parent-portal .parent-schedule .schedule-list-heading h2{font-size:19px;font-weight:600;line-height:1.5}
.parent-portal .parent-schedule .schedule-empty{padding-block:24px}
@media(min-width:700px){.parent-portal .parent-schedule .schedule-calendar{padding:22px}.parent-portal .parent-schedule .schedule-layout{gap:24px}.parent-portal .parent-schedule .schedule-upcoming{padding:24px;gap:20px}}
@media(min-width:1024px){.parent-portal .parent-schedule{gap:24px}.parent-portal .parent-schedule .schedule-heading h1{font-size:30px}.parent-portal .parent-schedule .schedule-heading p{font-size:14px}.parent-portal .parent-schedule .schedule-layout{grid-template-columns:minmax(0,1.3fr) minmax(290px,.9fr);gap:28px}.parent-portal .parent-schedule .schedule-calendar{padding:24px}.parent-portal .parent-schedule .schedule-day{min-height:58px}.parent-portal .parent-schedule .schedule-days[data-calendar-view=month] .schedule-day{min-height:48px}}
@media(max-width:359px){.parent-portal .parent-schedule .schedule-calendar{padding:16px 12px 14px}.parent-portal .parent-schedule .schedule-calendar-top h2{font-size:18px}.parent-portal .parent-schedule .schedule-view-switch .schedule-button{padding-inline:10px}.parent-portal .parent-schedule .schedule-period-capsule .schedule-arrow{width:36px;padding:7px}.parent-portal .parent-schedule .schedule-period-capsule p{font-size:11px}.parent-portal .parent-schedule .schedule-today{padding-inline:6px;font-size:11px}.parent-portal .parent-schedule .schedule-upcoming{padding:18px;gap:16px}.parent-portal .parent-schedule .schedule-upcoming-heading .schedule-mascot{width:60px;height:50px}.parent-portal .parent-schedule .schedule-upcoming-heading h2{font-size:20px}.parent-portal .parent-schedule .schedule-upcoming h3{font-size:19px}}

/* Final Parent artifact layer. Uses the shared palette in Light and Dark. */
.parent-portal .parent-inbox{display:grid;gap:20px;min-width:0}
.parent-portal .inbox-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.parent-portal .inbox-heading h1{font-size:30px;line-height:1.3;margin:0}
.parent-portal .inbox-heading p{font-size:14px;line-height:1.7;color:var(--swim-color-text-muted);margin:8px 0 0;max-width:540px}
.parent-portal .inbox-heading>.parent-icon-button{flex-shrink:0}
.parent-portal .inbox-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:4px 0}
.parent-portal .inbox-count{display:inline-flex;align-items:center;min-height:34px;padding:5px 12px;border-radius:var(--swim-radius-round);background:var(--swim-color-accent);color:var(--swim-color-on-action);font-size:14px;line-height:1.5}
.parent-portal .inbox-toolbar p{font-size:12px;line-height:1.6;color:var(--swim-color-text-muted);margin:8px 0 0}
.parent-portal .inbox-text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--swim-color-heading);font:inherit;font-size:13px;font-weight:600;line-height:1.6;text-align:start;cursor:pointer}
.parent-portal .inbox-text-button>.icon{flex-shrink:0;width:17px;height:17px}
.parent-portal .inbox-text-button:disabled{opacity:.5;cursor:default}
.parent-portal .inbox-filters{position:relative;display:flex;flex-wrap:wrap;gap:8px;isolation:isolate}
.parent-portal .inbox-filter{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 12px;border:0;border-radius:var(--swim-radius-round);background:var(--swim-color-surface-muted);color:var(--swim-color-text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.parent-portal .inbox-filter>.icon{width:17px;height:17px;flex-shrink:0}
.parent-portal .inbox-filter[aria-pressed=true]{background:var(--swim-color-action);color:var(--swim-color-on-action)}
.parent-portal .inbox-filter:disabled{opacity:.5;cursor:default}
.parent-portal .inbox-type-note{color:var(--swim-color-text-muted);font-size:12px;line-height:1.7;margin:-8px 0 0}
.parent-portal .inbox-list{min-width:0}
.parent-portal .inbox-day-group{min-width:0;margin-bottom:28px}
.parent-portal .inbox-day-group>h2{font-size:14px;line-height:1.5;font-weight:700;color:var(--swim-color-text-muted);margin:0;padding:8px 0}
.parent-portal .inbox-message{border:0;border-bottom:1px solid var(--swim-color-border);min-width:0;background:transparent}
.parent-portal .inbox-message.is-important{border-inline-start:3px solid var(--swim-color-accent);padding-inline-start:12px}
.parent-portal .inbox-target{padding:16px 0;border-top:1px solid var(--swim-color-border);margin:12px 0;display:grid;gap:10px}
.parent-portal .inbox-target h3{font-size:16px;margin:6px 0 0}
.parent-portal .inbox-target p{font-size:14px;line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.parent-portal .inbox-target>.badge{justify-self:start}
.parent-portal .inbox-message>summary{display:flex;align-items:flex-start;gap:12px;min-height:92px;padding:18px 0;list-style:none;cursor:pointer;color:var(--swim-color-text)}
.parent-portal .inbox-message>summary::-webkit-details-marker{display:none}
.parent-portal .inbox-type-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:var(--swim-radius-12);color:var(--swim-color-heading);background:var(--swim-color-action-soft)}
.parent-portal .inbox-message-copy{display:grid;gap:7px;min-width:0;flex:1;overflow-wrap:anywhere}
.parent-portal .inbox-message-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;line-height:1.6;color:var(--swim-color-text-muted)}
.parent-portal .inbox-message-meta>time{font-variant-numeric:tabular-nums}
.parent-portal .inbox-message-copy>strong{font-size:16px;line-height:1.6;font-weight:700}
.parent-portal .inbox-message.is-read .inbox-message-copy>strong{font-weight:500}
.parent-portal .inbox-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:1.7;color:var(--swim-color-text-muted)}
.parent-portal .inbox-unread-dot{flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--swim-color-heading);margin-top:10px}
.parent-portal .inbox-unread-dot[data-read=true]{opacity:0}
.parent-portal .inbox-message>summary>.icon{flex-shrink:0;width:16px;height:16px;margin-top:6px;color:var(--swim-color-text-muted)}
.parent-portal .inbox-message[open]>summary>.icon{transform:rotate(180deg)}
.parent-portal .inbox-message[open] .inbox-preview{display:none}
.parent-portal .inbox-message-body{padding:0 0 20px 52px;min-width:0}
.parent-portal .inbox-message-body>p{margin:0 0 12px;font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.parent-portal .inbox-message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.parent-portal .inbox-result-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;color:var(--swim-color-heading);font-size:13px;font-weight:600;line-height:1.6;text-decoration:none}
.parent-portal .inbox-result-link>.icon{width:17px;height:17px;flex-shrink:0}
.parent-portal .inbox-state{display:grid;justify-items:center;gap:16px;padding:36px 16px;text-align:center;min-width:0}
.parent-portal .inbox-mascot{width:132px;height:100px;object-fit:contain;border-radius:50%;padding:8px;background:var(--swim-color-action-soft)}
.parent-portal .inbox-state h2{font-size:23px;line-height:1.4;margin:0;max-width:380px}
.parent-portal .inbox-state p{font-size:14px;line-height:1.8;color:var(--swim-color-text-muted);margin:0;max-width:440px}
.parent-portal .inbox-loading{display:grid;gap:16px;min-height:260px;padding:24px 0;color:var(--swim-color-text-muted)}
.parent-portal .inbox-loading>p{font-size:14px;margin:0}
.parent-portal .inbox-write-error{padding:16px;border-radius:var(--swim-radius-12);background:var(--swim-color-warning-soft);color:var(--swim-color-warning);font-size:14px;line-height:1.7}
.parent-portal .inbox-write-error p{margin:0}
.parent-portal .inbox-pagination{display:flex;justify-content:center;padding:8px 0 24px}
.parent-portal .inbox-filter-trace{position:absolute;pointer-events:none;z-index:2;background:var(--swim-color-action);border-radius:var(--swim-radius-round)}
.parent-portal .parent-inbox :is(button,a,summary):focus-visible{outline:3px solid var(--swim-color-focus);outline-offset:3px}
.parent-portal #parent-lesson-results{scroll-margin-block:20px calc(var(--parent-nav-space,80px) + 20px)}
@media(min-width:760px){.parent-portal .parent-inbox{gap:24px}.parent-portal .inbox-heading h1{font-size:34px}.parent-portal .inbox-message>summary{padding:22px 0;gap:16px}.parent-portal .inbox-message-body{padding-inline-start:56px}.parent-portal .inbox-message-meta{justify-content:space-between}.parent-portal .inbox-state{padding:56px 24px}}
@media(max-width:359px){.parent-portal .inbox-message>summary{gap:8px}.parent-portal .inbox-type-icon{width:32px;height:36px}.parent-portal .inbox-message-body{padding-inline-start:0}.parent-portal .inbox-filter{padding-inline:10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.parent-portal .parent-inbox *{animation:none!important;transition:none!important}}

/* Parent Home only; existing semantic palette, fonts and finite shared motion. */
.parent-portal .parent-home-soft{display:grid;gap:20px;width:100%;max-width:1080px;margin-inline:auto;min-width:0}
.parent-portal .parent-home-soft :is(h1,h2,h3,p,dl,dd){margin:0;min-width:0}
.parent-portal .home-soft-welcome{display:flex;align-items:center;gap:12px;padding:22px 20px;border-radius:20px;background:var(--swim-parent-hero);color:var(--swim-color-text);overflow:hidden;position:relative}
.parent-portal .home-soft-welcome>div{flex:1;min-width:0;position:relative;z-index:1}
.parent-portal .home-soft-welcome h1{font-size:clamp(25px,3vw,32px);font-weight:600;line-height:1.3;color:var(--swim-color-heading);margin:5px 0 8px}
.parent-portal .home-soft-welcome h1{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.parent-portal .home-soft-welcome p:not(.home-soft-eyebrow){font-size:13px;line-height:1.7}
.parent-portal .home-soft-eyebrow{font-size:10px;line-height:1.6;letter-spacing:.06em;font-weight:600;color:var(--swim-color-text-muted)}
.parent-portal .home-soft-mascot{display:block;width:110px;height:auto;flex:none;object-fit:contain}
.parent-portal .home-soft-welcome:after{content:"";position:absolute;width:84px;height:84px;border:1px solid var(--swim-color-heading);opacity:.12;border-radius:50%;right:-32px;top:-38px;pointer-events:none}
.parent-portal .home-soft-columns{display:grid;gap:20px;min-width:0;align-items:start}
.parent-portal .home-soft-card{display:grid;gap:20px;min-width:0;padding:22px 20px;border-radius:20px;background:var(--swim-color-surface);border:0;box-shadow:none;align-content:start}
.parent-portal .home-soft-card-heading{display:flex;align-items:center;gap:12px;min-width:0}
.parent-portal .home-soft-card-heading>div{min-width:0}
.parent-portal .home-soft-card h2{font-size:22px;line-height:1.35;font-weight:600;color:var(--swim-color-heading)}
.parent-portal .home-soft-card-heading p{font-size:12px;color:var(--swim-color-text-muted);line-height:1.7;margin-top:4px}
.parent-portal .home-soft-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:14px;background:var(--swim-color-navigation-active);color:var(--swim-color-heading)}
.parent-portal .home-soft-icon .icon{width:22px;height:22px}
.parent-portal .home-soft-card h3{font-size:20px;font-weight:600;line-height:1.45;color:var(--swim-color-text)}
.parent-portal .home-soft-meta{display:grid;gap:12px;font-size:14px;line-height:1.7}
.parent-portal .home-soft-meta>div{display:flex;align-items:flex-start;gap:10px;min-width:0}
.parent-portal .home-soft-meta .icon{flex:none;width:18px;height:18px;margin-top:3px;color:var(--swim-color-heading)}
.parent-portal .home-soft-meta dd{overflow-wrap:anywhere}
.parent-portal .home-soft-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 18px;border-radius:var(--swim-radius-round);font-size:14px;font-weight:600;line-height:1.6;text-align:left;white-space:normal;width:100%;min-width:0}
.parent-portal .home-soft-cta .icon{flex:none;width:20px;height:20px}
.parent-portal .home-soft-feedback-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:12px;color:var(--swim-color-text-muted)}
.parent-portal .home-soft-note{font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--swim-color-text)}
.parent-portal .home-soft-coach{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;color:var(--swim-color-text-muted)}
.parent-portal .home-soft-coach .icon{width:18px;height:18px;flex:none}
.parent-portal .home-soft-text-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-size:13px;font-weight:600;color:var(--swim-color-heading);text-underline-offset:4px}
.parent-portal .home-soft-empty{display:grid;justify-items:center;text-align:center;gap:14px;padding-block:8px}
.parent-portal .home-soft-empty p{font-size:13px;line-height:1.8;color:var(--swim-color-text-muted);max-width:34em}
.parent-portal .home-soft-empty .home-soft-mascot{width:92px}
.parent-portal .parent-header-notifications{position:relative}
.parent-portal .parent-header-unread-dot{position:absolute;right:8px;top:7px;width:8px;height:8px;border:1px solid var(--swim-color-heading);border-radius:50%;background:var(--swim-color-action);box-shadow:0 0 0 2px var(--swim-color-surface);pointer-events:none}
@media(max-width:359px){.parent-portal .home-soft-welcome{padding:20px 16px;gap:6px}.parent-portal .home-soft-welcome .home-soft-mascot{width:82px}.parent-portal .home-soft-welcome h1{font-size:24px}.parent-portal .home-soft-card{padding:20px 16px;gap:18px}.parent-portal .home-soft-card h2{font-size:21px}.parent-portal .home-soft-cta{font-size:13px;padding-inline:16px}}
@media(min-width:768px){.parent-portal .home-soft-welcome{padding:28px}.parent-portal .home-soft-welcome .home-soft-mascot{width:160px}.parent-portal .home-soft-welcome p:not(.home-soft-eyebrow){font-size:15px}.parent-portal .home-soft-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.parent-portal .home-soft-card{padding:24px}}
@media(prefers-reduced-motion:reduce){.parent-portal .parent-home-soft *{animation:none!important;transition:none!important}}
