/* The artwork stays visible; song names stay selectable and readable. */
.welcome-background{background-image:none}
.welcome-artwork{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.song-cover{position:relative;isolation:isolate;aspect-ratio:1.15;overflow:hidden;background:#0b1830;border-radius:14px;margin:10px 10px 0}
.song-cover-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--cover-position,76%) center;filter:saturate(1.12)}
.song-cover::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#07152905 14%,#07152952 45%,#071529f5 100%);pointer-events:none}
.song-cover-number{position:absolute;top:14px;left:14px;z-index:2;font-size:8px;letter-spacing:1.3px;font-weight:700;color:#eff2fa;background:#0a18356e;border:1px solid #dae6ff25;border-radius:7px;padding:6px 8px}
.song-cover-play{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#0b193899;border:1px solid #ffffff70;color:white;backdrop-filter:blur(5px)}
.song-cover-play .icon{width:18px;height:18px;margin-left:2px}
.song-cover-copy{position:absolute;inset:auto 15px 17px;z-index:2;pointer-events:none}
.song-cover-brand{display:block;color:var(--cover-accent,#b4dfe9);font-size:7px;font-weight:700;letter-spacing:1px;line-height:1.5;margin-bottom:8px}
.song-cover .song-cover-title{color:#fff;font-size:clamp(17px,1.55vw,23px);line-height:1.15;letter-spacing:-.4px;min-height:0;margin:0;overflow-wrap:anywhere;text-shadow:0 2px 9px #020b1d}
.song-cover>.song-open{position:absolute;inset:0;z-index:3;display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent}
.song-cover>.song-open:focus-visible{outline:3px solid #f4d49c;outline-offset:-4px}
.song-card:hover .song-cover-play{background:#f2d0a1;color:#192944;border-color:#f2d0a1}
.song-card .song-card-meta{margin:13px 14px 10px;gap:7px;flex-wrap:wrap}
.song-card .song-card-meta .pill{max-width:100%;line-height:1.45;white-space:normal}
.song-card .song-card-meta>span:last-child{margin-left:auto;white-space:nowrap}
.song-card .song-card-bottom{padding:0 13px 4px}
.song-card .song-lyrics-link{max-width:100%;white-space:normal;text-align:left;line-height:1.5}
.song-grid>*,.collection-grid>*,.resource-grid>*,.routine-grid>*,.rhythm-grid>*,.split-layout>*,.two-fields>*,.stats-grid>*{min-width:0}
.page-title>div,.section-heading>div,.group-card>div,.native-listen-heading>div:last-child{min-width:0}
.native-listen-heading h2{overflow-wrap:anywhere}
.welcome-background:after{pointer-events:none}
.audio-dock input[type=range],.music-dialog input[type=range]{padding:0;border:0;background:transparent;min-height:30px;height:30px}
.audio-dock .dock-volume input{width:70px;min-width:0}
.music-dialog .music-volume input{width:105px;min-width:0}

@media(max-width:760px){
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
  .welcome-screen{overflow:visible;justify-content:flex-start;min-height:100svh;min-height:100dvh}
  .welcome-brand{position:relative;inset:auto;margin:21px 22px 11px;left:auto;top:auto;font-size:23px;gap:10px}
  .welcome-brand img{width:37px;height:37px}
  .welcome-background{position:relative;inset:auto;z-index:0;width:100%;height:clamp(175px,52vw,320px);flex-shrink:0;background:none}
  .welcome-artwork{height:100%;object-fit:contain;object-position:center}
  .welcome-background:after{background:linear-gradient(180deg,transparent 62%,#0815298a 88%,#081529 100%)}
  .welcome-content{margin:0;width:100%;max-width:none;padding:19px 22px 24px}
  .welcome-eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:13px}
  .welcome-content h1{font-size:clamp(32px,8.8vw,46px);line-height:1.07;letter-spacing:-1.5px;max-width:none}
  .welcome-content h1 em{letter-spacing:-1.5px}
  .welcome-description{font-size:13px;line-height:1.6;margin-top:14px}
  .welcome-choices{gap:11px;margin-top:20px}
  .welcome-choice{min-height:80px;padding:14px 12px;gap:9px}
  .welcome-choice>span:nth-child(2){min-width:0;flex:1}
  .welcome-choice strong{font-size:22px}
  .welcome-choice small{font-size:9px;line-height:1.5;margin-top:4px}
  .welcome-choice .choice-icon{width:25px;flex-shrink:0}
  .welcome-choice .choice-icon .icon{width:25px;height:25px}
  .welcome-music{min-height:51px;margin-top:11px;font-size:12px;padding:13px 15px}
  .welcome-caption{gap:10px;font-size:9px;letter-spacing:0;margin-top:17px;flex-wrap:wrap}
  .welcome-credit{margin:0 22px 21px;padding-top:14px;line-height:1.8}
  .welcome-credit>span{display:none}
  .entry-view #main{padding:0}
  .music-library-header{height:auto;min-height:77px;gap:10px;flex-wrap:wrap;padding:16px 20px}
  .music-library-body{padding:27px 20px 45px}
  .music-library-intro{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:13px;align-items:start}
  .music-library-intro>div:first-child{min-width:0}
  .music-library-intro h1{font-size:clamp(28px,7.6vw,36px);overflow-wrap:normal}
  .music-library-cover{display:block;margin:27px 0 0;padding:5px;width:84px;transform:rotate(4deg)}
  .music-library-cover img{width:100%;height:auto}
  .song-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .song-cover{aspect-ratio:.91;margin:7px 7px 0;border-radius:11px}
  .song-cover-number{top:10px;left:9px;padding:5px 6px;font-size:6px;letter-spacing:.9px}
  .song-cover-play{top:9px;right:9px;width:29px;height:29px}
  .song-cover-play .icon{width:14px;height:14px}
  .song-cover-copy{inset:auto 11px 13px}
  .song-cover-brand{font-size:6px;letter-spacing:.65px;margin-bottom:6px}
  .song-cover .song-cover-title{font-size:clamp(15px,4.15vw,21px);line-height:1.18;letter-spacing:-.3px}
  .song-card .song-card-meta{margin:11px 11px 9px;font-size:8px;gap:6px}
  .song-card .song-card-bottom{padding:0 10px 4px;gap:4px}
  .song-card .song-card-bottom .song-listen{font-size:10px;padding:10px 11px;min-height:44px;gap:5px}
  .song-card .song-card-bottom .fav-button{width:34px;min-width:34px;min-height:44px;height:44px;padding:4px}
  .song-card .song-lyrics-link{font-size:10px;padding:9px 11px 13px;min-height:44px}
  .content-toolbar .search-field{flex-basis:100%;min-width:0}
  .content-toolbar select{min-width:0;flex:1}
  .content-toolbar .chip{min-height:46px}
  .section-heading{flex-wrap:wrap;align-items:flex-start}
  .hero-cta{flex-wrap:wrap}
  .profile-button{max-width:100%}
  .profile-button #profile-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
  .context-switch{flex-wrap:wrap;gap:4px}
  .group-card>div,.record-top{overflow-wrap:anywhere}
  .record-top{flex-wrap:wrap}
  .two-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .audio-dock{grid-template-columns:minmax(80px,1fr) auto 30px}
  .dock-controls>button{width:38px;height:44px}
  .dock-controls>.dock-toggle{width:44px;height:44px}
  .dock-dismiss{width:30px;height:44px}
  .dock-song strong{max-width:100%}
  .full-audio-timeline input,.dock-timeline input{min-height:30px}
  .audio-playlist-items{max-height:35svh}
  .audio-track-row{min-width:0}
  .audio-track-row>strong{min-width:0;overflow-wrap:anywhere}
  .native-listen-heading h2{font-size:clamp(21px,5.7vw,25px)}
  dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overscroll-behavior:contain}
}

@media(max-width:410px){
  .welcome-brand{font-size:22px}
  .welcome-content h1{font-size:clamp(32px,8.9vw,37px)}
  .welcome-choice strong{font-size:20px}
  .welcome-choice small{font-size:8px}
  .music-library-cover{display:block}
  .academic-path{flex-wrap:wrap;justify-content:center;row-gap:12px}
  .two-fields{grid-template-columns:1fr}
  .native-listen-art{width:76px}
  .native-listen-art .song-art{height:90px}
  .native-listen-heading{gap:12px;align-items:flex-start}
  .audio-options button{min-height:44px}
  .plan-day{flex-wrap:wrap}
  .plan-day>.button{width:100%}
}

@media(max-width:359px){
  .welcome-brand{margin-left:18px;margin-right:18px}
  .welcome-content{padding-left:18px;padding-right:18px}
  .welcome-credit{margin-left:18px;margin-right:18px}
  .welcome-choice{padding:13px 10px;gap:8px}
  .welcome-choice strong{font-size:19px}
  .welcome-description{font-size:12px}
  .music-library-brand{font-size:14px;gap:5px}
  .music-library-brand img{width:26px;height:26px}
  .music-library-header .button{max-width:80px}
  .song-grid{grid-template-columns:minmax(0,1fr)}
  .song-cover{aspect-ratio:1.3}
  .song-cover-copy{inset:auto 17px 20px}
  .song-cover .song-cover-title{font-size:25px;line-height:1.16}
  .song-cover-brand{font-size:8px;margin-bottom:8px}
  .song-cover-number{font-size:8px;top:13px;left:14px}
  .song-cover-play{width:38px;height:38px;top:12px;right:13px}
  .song-card .song-card-meta{margin-left:16px;margin-right:16px;font-size:10px}
  .song-card .song-card-bottom{padding-left:15px;padding-right:15px}
  .song-card .song-card-bottom .song-listen{font-size:12px;padding-left:15px;padding-right:15px}
  .song-card .song-lyrics-link{font-size:11px;padding-left:16px}
}

@media(prefers-reduced-motion:reduce){.song-cover-image{transition:none}}
@media print{.song-cover::after{background:#081529bb}.welcome-background{display:block;position:relative;height:auto}.welcome-artwork{height:auto}.song-cover>.song-open{display:none}}

/* Privacy access remains available on the entry screen and in app navigation. */
.welcome-credit a{color:inherit;text-underline-offset:3px;font-size:12px;position:relative;z-index:2}.app-footer{flex-wrap:wrap;gap:12px}.app-footer a{color:inherit;text-underline-offset:3px}

/* Hierarchy and controls for family and classroom use. */
.first-guide{display:block;margin:8px 0 0;padding:8px 14px;min-height:48px;border:1px solid #91b8cc;border-radius:14px;color:#fff;background:#142d42;font:inherit;font-weight:650;cursor:pointer}
.first-guide:hover{background:#20435b}.guide-progress,.guide-actions{display:flex;gap:10px}.guide-progress{margin:12px 0 20px}.guide-progress i{height:5px;flex:1;border-radius:4px;background:#c7d4df}.guide-progress .done{background:#126b70}.guide-actions{flex-wrap:wrap;align-items:center;margin:16px 0}.guide-actions .button,.welcome-choice,.welcome-music,.music-rhythm-options button,.audio-track-row,.sidebar-settings{min-height:48px}
.connection-note{border-inline-start:4px solid #177474;background:#e7f6f3;color:#103a40;padding:10px 14px;border-radius:6px;line-height:1.5}
:where(button,a,input,summary,select):focus-visible{outline:3px solid #006e77;outline-offset:3px;box-shadow:0 0 0 3px white}
@media(max-width:440px){.guide-actions .button{flex:1 1 100%}.first-guide{margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.welcome-choice,.welcome-music,.button,.first-guide{transition:none;animation:none}}
.welcome-choice.home-choice{background:linear-gradient(120deg,#ffe2b5,#f6adac);color:#331f32}.welcome-choice.school-choice{background:linear-gradient(120deg,#baefdf,#abcdf4);color:#142c45}.welcome-choice .choice-icon{display:grid;place-items:center;flex:0 0 36px;min-height:36px;border-radius:12px;background:rgba(255,255,255,.48)}
.welcome-choice small{font-size:clamp(.75rem,1.6vw,.9rem);line-height:1.35;opacity:1}.welcome-choice{min-height:76px}.welcome-music{min-height:52px}.music-rhythm-options button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-3px;font-weight:750}.guide-actions .button{white-space:normal}.first-guide{font-size:.9rem}
@media(max-width:380px){.welcome-choice .choice-icon{flex-basis:26px}.welcome-choice small{font-size:.75rem}.welcome-choice{padding-inline:8px}}
