[hidden]{display:none!important}
.emailAuth{display:grid;gap:12px;text-align:left;margin:24px auto 0;padding-top:20px;border-top:1px dashed var(--line);max-width:420px}
.emailAuth h3{font-size:17px;margin:0}.emailAuth label{display:grid;gap:6px;font-size:14px;font-weight:700}
.emailAuth input{min-width:0;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fffaf0;color:var(--ink);font:inherit}
.authActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.authMsg{font-size:14px;line-height:1.6;min-height:1.5em}
:focus-visible{outline:3px solid #977242;outline-offset:3px}
@media(max-width:600px){.authActions button{flex:1}.emailAuth{max-width:100%}}

/* Compact account header; empty save status takes no space. */
.accountLine{display:flex;align-items:center;gap:10px;min-width:0;}
.accountLine #headerInfo{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.accountLine .userBar{flex-shrink:0;}
.accountLine #userName{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.saveState:empty{display:none;}
.topRight .saveState{min-height:0;}
.deleteAccountArea{margin-top:18px;padding-top:16px;border-top:1px dashed var(--line);}
.deleteAccountLink{padding:6px 0;background:none;color:#9b4638;text-decoration:underline;text-underline-offset:4px;font-size:13px;}
.deleteDialog{width:min(440px,calc(100% - 32px));padding:24px;border:2px solid var(--line);border-radius:20px;background:#fffaf0;color:var(--ink);box-shadow:0 16px 60px #38271345;}
.deleteDialog::backdrop{background:#38271366;}
.deleteDialog h2{font-size:22px;}.deleteDialog p{margin-top:14px;font-size:14px;line-height:1.7;}
.deleteDialog .btns{justify-content:flex-end;margin-top:18px;}
.deleteConfirm{background:#9b4638;color:#fffaf0;}
@media(max-width:600px){
 .app>.top{padding:12px 16px;gap:8px;}
 .top .brand{font-size:24px;}.top .subtitle{font-size:11px;}
 .top>.topRight{width:100%;gap:3px;align-items:stretch;}
 .top .accountLine{width:100%;gap:7px;}
 .top #headerInfo{flex:1;font-size:10px;letter-spacing:-.03em;}
 .top .userBar{gap:5px;font-size:10px;}
 .top .userBar img{width:18px;height:18px;}
 .top #userName{max-width:56px;}
 .top #logoutBtn{font-size:10px;padding:4px 6px;}
 .top .saveState{font-size:10px;line-height:1.2;}
}
@media(max-width:360px){.top #headerInfo{font-size:9px;}.top #userName{max-width:35px;}}
.phoneAccountHint{font-size:12px;line-height:1.5;color:#81684a;}
.phoneAccount .authActions button{padding:12px 8px;font-size:14px;white-space:nowrap;}
@media(max-width:360px){.phoneAccount .authActions button{padding:12px 4px;font-size:12px;}}
.top #userName[data-phone-account=true]{max-width:76px;}

/* Weekly alternatives share one existing mission score slot. */
.weeklyMissions{min-width:0;margin:6px 0 0;padding:12px;border:1px dashed var(--line);border-radius:14px;display:grid;gap:8px;background:#faf2df}
.weeklyMissions legend{padding:0 6px;font-size:14px;font-weight:900;color:var(--ink)}
.weeklyHint{margin:0;font-size:12px;line-height:1.65;color:#7a6344}
.weeklyMissions .step:has(input:checked){background:#eef3e6;border-color:#9fb58f}
.weeklyMissions input[type=radio]{accent-color:var(--green);flex-shrink:0;width:19px;height:19px}
.weeklyClear{justify-self:start;margin-top:2px}

/* Keep the department beside the title at every screen size. */
.top .brand{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.top .brandDept{font-size:16px;font-weight:700;letter-spacing:0;color:var(--accent)}
@media(max-width:600px){.top .brand{gap:7px}.top .brandDept{font-size:12px}}
@media(max-width:360px){.top .brand{font-size:20px;gap:6px}.top .brandDept{font-size:11px}}

.stepBody{display:flex;flex-direction:column;gap:8px;min-width:0}
.songLinks{display:flex;flex-wrap:wrap;gap:6px}
.songLink{display:inline-flex;align-items:center;gap:5px;padding:5px 11px 5px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--accent);font-size:12.5px;font-weight:800;line-height:1.3;text-decoration:none;white-space:nowrap}
.songLink:hover,.songLink:focus-visible{border-color:var(--accent);background:#fbf3e3}
.songPlay{font-size:9px;color:var(--danger)}
