/*! © 2026 Nuvira Technologies, LLC. All rights reserved. WonderWise, its tutors, artwork, voices, lessons and software may not be copied, scraped or reused. See /terms. */
/* Profile page: name, age, grade and the teacher picker. */
.profile-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:28px;align-items:start}
.profile-form fieldset{border:1px solid #C9DEDC;border-radius:18px;padding:26px;min-width:0;margin:0}
.profile-form .setting-field small{font-weight:400;color:#3C5670;font-size:15px}
.profile-form .setting-field input{width:100%;font-size:20px;color:#17324D;background:#fff;border:1px solid #b9cabe;border-radius:10px;padding:12px 14px;min-height:52px}
.profile-form .setting-field input[aria-invalid=true]{border-color:#b3412d}
.profile-form .field-error{color:#a03a28;font-size:16px;font-weight:600}
.profile-form .field-error[hidden]{display:none}
.profile-form :is(input,select):focus-visible,.avatar-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.avatar-options{display:block}
.avatar-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px 16px;border:2px solid var(--action-border,#256F66);border-radius:16px;background:#fff;color:#17324D;text-align:center;min-height:44px}
.avatar-card img{width:100%;max-width:225px;aspect-ratio:1;object-fit:contain;background:transparent}
.avatar-card strong{font-size:20px}
.avatar-card span{font-size:16px;color:#3C5670;line-height:1.35}
.avatar-card:hover:not(:disabled):not([aria-disabled=true]){border-color:var(--action-primary-hover,#1C5A53);background:var(--action-selected,#E3F3F0)}
.avatar-card[aria-checked=true]{border-color:var(--action-border,#256F66);background:var(--action-selected,#E3F3F0);box-shadow:0 0 0 2px var(--action-border,#256F66) inset}
.avatar-card[aria-checked=true] strong{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.about-fieldset{grid-column:1/-1}
.profile-actions{grid-column:1/-1;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
@media(max-width:760px){
  .profile-form{grid-template-columns:minmax(0,1fr);gap:20px}
  .profile-form fieldset{padding:18px}
  .avatar-options{gap:10px}
  .avatar-card{padding:8px 6px 12px}
  .avatar-card strong{font-size:17px}
  .avatar-card span{display:none}
}
@media(prefers-reduced-motion:reduce){.avatar-card{transition:none}}
/* A fourth nav link needs room in the single-row header: let the right column take what it needs. */
@media(min-width:1400px){.app-shell>.topbar{grid-template-columns:auto auto minmax(0,1fr)}.topbar>.header-actions{justify-self:end}}
.profile-form .setting-help{margin:14px 0 0}
@media(max-width:600px){.topbar .main-nav a{padding:10px 8px;font-size:16px}}
@media(max-width:430px){.topbar .main-nav a{padding:10px 5px;font-size:15px}}

/* Round learner avatar, top right: opens the Profile page. */
.topbar .header-end{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.user-avatar{position:relative;display:inline-flex;flex:0 0 44px;width:44px;height:44px;border-radius:50%;text-decoration:none;outline-offset:3px}
.user-avatar-face{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#e4ece6;color:#fff;font-size:19px;font-weight:700;line-height:1;box-shadow:0 0 0 2px #fff,0 0 0 3px #C9DEDC}
.user-avatar-face img{width:100%;height:100%;object-fit:cover}
.user-avatar-face svg{width:26px;height:26px;fill:none;stroke:#3C5670;stroke-width:1.8;stroke-linecap:round}
.user-avatar:hover .user-avatar-face{box-shadow:0 0 0 2px #fff,0 0 0 4px #7FA9A3}
.user-avatar[aria-current=page] .user-avatar-face{box-shadow:0 0 0 2px #fff,0 0 0 4px #256F66}
.user-avatar .nav-dot{position:absolute;top:0;right:0;width:11px;height:11px;border-radius:50%;background:#EF8A6F;box-shadow:0 0 0 2px #fff}
.user-avatar .nav-dot[hidden]{display:none}
@media(max-width:1399px){.topbar .header-end{grid-column:3;grid-row:1;justify-self:end}}
@media(max-width:600px){.topbar .header-end{grid-column:2;grid-row:2}}
/* Phones: the avatar shares row 2 with the brand, so New lesson becomes icon-only (its label stays for screen readers). */
@media(max-width:600px){.topbar #new-lesson{padding:10px;min-width:44px;min-height:44px}.topbar #new-lesson>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.topbar .header-end{gap:8px}}
/* Voice picker: the current voice, then groups of voice cards inside a closed-by-default panel.
   Colours come from the brand tokens in web/brand.css. */
.voice-fieldset{grid-column:1/-1}
.voice-current-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.voice-current-actions .button{min-height:48px;font-size:18px}
.voice-current-actions .text-button{min-height:44px;font-size:17px;font-weight:650;color:var(--lagoon);text-decoration:underline;padding:8px 10px}
.voice-picker{margin-top:18px}
.voice-picker>summary{cursor:pointer;font-size:20px;font-weight:650;color:var(--ink);padding:12px 0;min-height:44px;display:flex;align-items:center}
.voice-picker>summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:8px}
.voice-filters{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 18px}
.voice-chip{min-height:44px;padding:8px 16px;border:2px solid var(--action-border,#256F66);border-radius:var(--action-radius,999px);background:var(--surface);color:var(--ink);font-size:16px;font-weight:600;cursor:pointer}
.voice-chip:hover:not(:disabled){border-color:var(--action-primary-hover,#1C5A53);background:var(--action-selected,#E3F3F0)}
.voice-chip[aria-pressed=true]{border-color:var(--action-border,#256F66);background:var(--action-selected,#E3F3F0);color:var(--ink);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.theme-chip:focus-visible,.voice-chip:focus-visible,.voice-card:focus-visible,.voice-hear:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.voice-group{margin:0 0 22px}
.voice-group[hidden]{display:none}
.voice-group h3{margin:0;font-size:21px;font-weight:650;color:var(--ink)}
.voice-group-help{margin:4px 0 12px;font-size:16px;color:var(--muted)}
.voice-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.voice-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name hear" "text hear" "tags hear";align-items:center;column-gap:10px;row-gap:2px;padding:12px 14px;border:2px solid var(--action-border,#256F66);border-radius:16px;background:var(--surface);color:var(--ink);cursor:pointer;min-height:84px}
.voice-card:hover:not([aria-disabled=true]){border-color:var(--action-primary-hover,#1C5A53);background:var(--action-selected,#E3F3F0)}
.voice-card[aria-checked=true]{border-color:var(--action-border,#256F66);background:var(--action-selected,#E3F3F0);box-shadow:0 0 0 2px var(--action-border,#256F66) inset}
.voice-card[aria-checked=true] strong{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.voice-card.unavailable{opacity:1;border-color:var(--action-disabled-border,#A5B4B1);background:var(--action-disabled-bg,#E6ECEB);color:var(--action-disabled-ink,#53636B);cursor:not-allowed;box-shadow:none}
.voice-card.unavailable :is(.voice-description,.voice-tags){color:inherit}
.voice-card strong{grid-area:name;font-size:19px}
.voice-card .voice-description{grid-area:text;font-size:16px;color:var(--muted);line-height:1.3}
.voice-card .voice-tags{grid-area:tags;font-size:15px;color:var(--lagoon);font-weight:600}
.voice-hear{grid-area:hear;min-width:44px;min-height:44px;padding:8px 12px;border:2px solid var(--action-border,#256F66);border-radius:var(--action-radius,999px);background:var(--action-secondary-bg,#fff);color:var(--ink);font-size:15px;font-weight:650;cursor:pointer;white-space:nowrap}
.voice-hear:hover:not(:disabled),.voice-hear:active:not(:disabled){background:var(--action-selected,#E3F3F0)}
.voice-hear[aria-pressed=true]{background:var(--action-selected,#E3F3F0);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px}
.voice-fieldset .setting-help{margin-top:4px}
@media(max-width:1100px){.voice-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .voice-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .voice-card{padding:10px 10px;min-height:76px}
  .voice-card strong{font-size:17px}
  .voice-card .voice-description{font-size:16px}
}
@media(max-width:480px){.voice-cards{grid-template-columns:minmax(0,1fr)}}

/* Profile picture: a round preview, then a panel of pictures to tap (teacher portraits and badges). */
.profile-picture-row{display:flex;align-items:center;gap:18px;margin:0 0 18px}
.profile-picture{flex:0 0 112px;width:112px;height:112px;border-radius:50%;box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--line);background:var(--mist)}
.profile-picture-face{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#e4ece6;color:#fff;font-size:46px;font-weight:700;line-height:1}
.profile-picture-face img{width:100%;height:100%;object-fit:cover;object-position:top}
.profile-picture-face svg{width:58px;height:58px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.profile-picture-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.profile-picture-actions .button{min-height:48px;font-size:18px}
.profile-picture-actions .text-button{min-height:44px;font-size:17px;font-weight:650;color:var(--lagoon);text-decoration:underline;padding:6px 8px}
.profile-picture-panel{border:1px solid var(--line);border-radius:16px;padding:14px 16px 16px;margin:0 0 14px;background:var(--surface)}
.profile-picture-panel[hidden]{display:none}
.profile-picture-panel>.setting-help{margin:0 0 10px}
.profile-picture-group{margin:0 0 14px}
.profile-picture-group h3{margin:0 0 8px;font-size:18px;font-weight:650;color:var(--ink)}
.profile-picture-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px}
.profile-picture-card{position:relative;width:100%;aspect-ratio:1;min-height:44px;padding:3px;border:2px solid var(--action-border,#256F66);border-radius:50%;background:var(--surface);cursor:pointer}
.profile-picture-card img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:50%;background:#fff}
.profile-picture-card:hover:not(:disabled){border-color:var(--action-primary-hover,#1C5A53);background:var(--action-selected,#E3F3F0)}
.profile-picture-card[aria-checked=true]{border-color:var(--action-border,#256F66);box-shadow:0 0 0 3px var(--action-selected,#E3F3F0)}
/* A separate check keeps picture selection visible without depending on its ring color. */
.profile-picture-card[aria-checked=true]::before{content:"";position:absolute;right:-2px;bottom:-2px;width:24px;height:24px;border-radius:50%;background:var(--action-primary,#256F66);border:2px solid #fff}
.profile-picture-card[aria-checked=true]::after{content:"";position:absolute;right:7px;bottom:6px;width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.profile-picture-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
#profile-picture-status{margin:0 0 12px;min-height:1.4em}
#profile-picture-status:empty{display:none}

/* Teacher picker grouped by grade team: the learner's own team first, other teams under "More teachers". */
.teacher-team{margin:0 0 18px}
.teacher-team-title{margin:0;font-size:28px;font-weight:650;color:var(--ink);line-height:1.25}
summary.teacher-team-title{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:4px 0}
summary.teacher-team-title:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:8px}
.teacher-team-help{margin:2px 0 12px;font-size:16px;color:var(--muted)}
.teacher-team[data-coming-soon=true] .teacher-team-help{color:var(--lagoon);font-weight:600}
.teacher-team-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:16px}
.teacher-team-cards>.avatar-card{height:100%;min-width:0;justify-content:flex-start}
@media(max-width:760px){
  .profile-picture{flex-basis:88px;width:88px;height:88px}
  .profile-picture-face{font-size:36px}
  .profile-picture-cards{grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px}
  .teacher-team-cards{gap:10px}
  .teacher-team-title{font-size:24px}
}
.theme-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:12px;margin:0}
.theme-tabs[hidden]{display:none}
.theme-chip{box-sizing:border-box;width:100%;min-width:0;min-height:88px;padding:16px 20px;border:3px solid var(--ink);border-radius:14px;background:var(--pool);color:var(--ink);font:inherit;font-size:22px;font-weight:650;line-height:1.25;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
.theme-chip:is(:hover,:active):not(:disabled){border-color:var(--lagoon);background:var(--lagoon);color:var(--surface)}
.theme-chip[aria-selected=true]{border-color:var(--ink);background:var(--lamp);color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
@media(max-width:600px){.theme-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-chip{padding:12px 8px}}
@media(min-width:1400px){.theme-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}}
.tutor-current{display:flex;align-items:center;gap:16px;margin:0;padding:14px 16px;border:2px solid var(--lagoon);border-radius:18px;background:var(--pool);color:var(--ink);min-width:0}
.tutor-current-img{flex:none;width:96px;height:96px;object-fit:contain;background:transparent}
.tutor-current-body{min-width:0;flex:1}
.tutor-current-body p{margin:0}
.tutor-current-label{font-size:14px;font-weight:650;color:var(--lagoon);text-transform:uppercase;letter-spacing:.04em}
.tutor-current-name{font-size:28px;font-weight:700;line-height:1.15;overflow-wrap:anywhere}
.tutor-current-text{font-size:16px;color:var(--muted);line-height:1.35}
@media(max-width:480px){.tutor-current{gap:12px;padding:12px}.tutor-current-img{width:72px;height:72px}.tutor-current-name{font-size:24px}}

/* Disabled controls keep their label legible and do not advertise hover/press feedback. */
:is(.avatar-card,.voice-chip,.voice-hear,.profile-picture-card,.theme-chip):is(:disabled,[aria-disabled=true]){opacity:1;border-color:var(--action-disabled-border,#A5B4B1);background:var(--action-disabled-bg,#E6ECEB);color:var(--action-disabled-ink,#53636B);cursor:not-allowed;transform:none;box-shadow:none}
@media(forced-colors:active){.profile-picture-card[aria-checked=true]::before{background:Highlight;border-color:Canvas}.profile-picture-card[aria-checked=true]::after{border-color:HighlightText}}

/* Pick a Category: unselected chips carry the gold tint; the selected chip stays solid gold. */
.theme-chip:not([aria-selected=true]):not(:hover):not(:active):not(:disabled):not([aria-disabled=true]){background:color-mix(in srgb,var(--lamp) 22%,var(--surface))}

/* My Tutor: Current Tutor and Pick a Category sit side by side on larger screens. */
@media(min-width:900px){
  .settings-grid.tutor-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-grid.tutor-form>*{grid-column:1/-1}
  .settings-grid.tutor-form>.tutor-current-section,.settings-grid.tutor-form>.category-fieldset,.settings-grid.tutor-form>.talking-fieldset,.settings-grid.tutor-form>.talking-fieldset+.section-card{grid-column:auto}
  .tutor-form .category-fieldset .theme-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-grid.tutor-form>.tutor-current-section,.settings-grid.tutor-form>.category-fieldset,.settings-grid.tutor-form>.talking-fieldset,.settings-grid.tutor-form>.talking-fieldset+.section-card{align-self:stretch}
  .settings-grid.tutor-form .tutor-current-section .tutor-current-note{flex-basis:100%;margin-left:0;text-align:left;white-space:normal}
  .settings-grid.tutor-form #motion-options{grid-template-columns:minmax(0,1fr)}
  .tutor-current-section .tutor-current{flex:1 1 auto;gap:24px;padding:20px 24px}
  .tutor-current-section .tutor-current-img{width:180px;height:180px}
  .tutor-current-section .tutor-current-name{font-size:40px}
  .tutor-current-section .tutor-current-text{font-size:22px;line-height:1.35}
}

/* Subtext line under or beside each My Tutor header, in the Current Tutor style. */
.tutor-form .section-title>.tutor-current-note{margin-left:auto;max-width:none;font-size:18px;font-weight:500;line-height:1.4;text-align:right}
@media(max-width:900px){.tutor-form .section-title>.tutor-current-note{flex-basis:100%;margin-left:0;text-align:left}}
@media(min-width:900px){.settings-grid.tutor-form :is(.category-fieldset,.talking-fieldset,.talking-fieldset+.section-card)>.section-title>.tutor-current-note{flex-basis:100%;margin-left:0;text-align:left}}

/* My Profile: text at the same sizes as the rest of the app (section titles 30px, field copy 22px, buttons 20px). */
#profile-page .profile-form>.section-card>.section-title,#profile-page .profile-form legend.section-title{font-size:30px}
#profile-page .profile-form .setting-field>span,#profile-page .profile-form .setting-field label,#profile-page .profile-form .setting-field{font-size:22px}
#profile-page .profile-form .setting-field input,#profile-page .profile-form .setting-field select{font-size:22px;min-height:56px}
#profile-page .profile-form .setting-field small,#profile-page .profile-form .setting-help{font-size:18px}
#profile-page .profile-form .field-error{font-size:18px}
#profile-page .profile-picture-change-text,#profile-page #profile-picture-change{font-size:20px}
#profile-page #profile-save{font-size:20px;min-height:56px;padding:10px 26px}
#profile-page .profile-picture-group-title,#profile-page .profile-picture-group h4,#profile-page .profile-picture-group h3{font-size:20px}
#profile-page .rewards-panel .progress-tile-label{font-size:18px}
#profile-page .rewards-badge-title{font-size:18px}
#profile-page .rewards-badge-how{font-size:16px}
#profile-page .rewards-day-name{font-size:14px}

/* Badges & Rewards: header and sub-headers sized like the other sections. */
#profile-page .profile-rewards-card>.section-title{font-size:30px}
#profile-page .profile-rewards-area h3{font-size:24px}
#profile-page .rewards-subtitle{font-size:20px}

/* Movement: unselected options carry the gold tint; the chosen one stays solid gold and hover stays teal. */
#motion-options>.choice-card[aria-checked=false]:not(:hover):not(:active):not(:disabled){background:color-mix(in srgb,var(--lamp) 22%,var(--surface))}

/* The account menu lists pages only: the learner's name and email are not shown at the top. */
.user-menu-panel .user-menu-who{display:none!important}

/* Pick a Category: hover is solid gold, like the selected chip. */
.theme-chip:is(:hover,:active):not(:disabled):not([aria-disabled=true]){background:var(--lamp);border-color:var(--ink);color:var(--ink)}
