[hidden] { display:none !important; }
.mm-dialog.engine-dialog{width:min(1400px,96vw);max-width:96vw;}
.engine-forms{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.engine-forms form{border:1px solid #d5dcea;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px;background:#f6f8fc;color:#17243c;}
.engine-forms label{display:flex;flex-direction:column;gap:6px;}
.engine-forms input{max-width:100%;box-sizing:border-box;}
.engine-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;margin-top:20px;}
.engine-job{display:flex;align-items:center;border:1px solid #d5dcea;border-radius:8px;margin:6px 0;}
.engine-job.selected{border-color:#2563eb;background:#eff6ff;}
.engine-job>button:first-child{flex:1;text-align:left;min-width:0;border:0;background:transparent;color:#17243c;padding:12px;cursor:pointer;}
.engine-job b,.engine-job small{display:block;overflow-wrap:anywhere;}.engine-job small{margin-top:6px;color:#516078;}
.engine-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0;}
.engine-warnings{padding:12px 12px 12px 30px;background:#fff7df;border-radius:8px;color:#694a0a;font-size:14px;}
.engine-error{color:#b42318;background:#fff1f0;padding:12px;}
.engine-review{margin:16px 0;padding:14px;background:#eff6ff;border:1px solid #a7c7f7;border-radius:8px;}
.engine-compare{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:12px;}
.engine-compare section{min-width:0;max-height:min(85vh,1000px);overflow:auto;border:1px solid #d5dcea;padding:8px;background:#fff;}
.engine-page{display:block;width:100%;height:auto;background:#fff;border:1px solid #e2e8f0;margin:12px 0;}
.engine-dialog input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;vertical-align:middle;margin-right:8px;}
.engine-score{min-width:0;}.engine-score>div{max-width:100%;height:auto!important;}.engine-score svg{width:100%!important;height:auto!important;}
@media(max-width:760px){.engine-forms,.engine-workspace,.engine-compare{grid-template-columns:1fr;}.engine-workspace aside{max-height:190px;overflow:auto;}}
.mm-page-hidden {display:none!important;}
#screen-practice.active {display:flex;flex-direction:column;height:100dvh;overflow:hidden;}
#screen-practice > .practice-body {flex:1;min-height:140px;}
#screen-practice > .mm-page-tools,#screen-practice > .mm-mic {flex:none;}
.mm-pages .osmd-inner {width:100%!important;box-sizing:border-box;}
@media(min-width:800px){
  #screen-practice.active{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto minmax(0,1fr) auto;}
  #screen-practice>.topbar{grid-row:1;grid-column:1/-1;}
  #screen-practice>.mm-page-tools{grid-row:2;grid-column:1/-1;}
  #screen-practice>.mm-mic{grid-row:3;grid-column:1/-1;}
  #screen-practice>.practice-body{grid-row:4;grid-column:1/-1;}
  #screen-practice>.scrub-row{grid-row:5;grid-column:1;}
  #screen-practice>.practice-controls{grid-row:5;grid-column:2;}
}
.mm-pages .dyn-dim {opacity:1!important;}
.mm-pages [id^="cursorImg"] {z-index:2!important;pointer-events:none;}
.mm-pages .osmd-inner {margin-right:0!important;}
.mm-pages .osmd-inner > div {margin:0 0 12px!important;}
.mm-tempo-ramp {grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:1px solid #c7d2fe;border-radius:8px;}.mm-tempo-ramp .mm-check{grid-column:1/-1;}
.mm-auth { display:grid; gap:14px; text-align:left; margin:20px 0; }
.mm-auth[hidden],.mm-auth [hidden],.mm-tabs[hidden] {display:none!important;}
.mm-auth .mm-consent {display:flex;align-items:flex-start;gap:10px;line-height:1.6;}
.mm-auth .mm-consent input {width:18px;min-width:18px;min-height:18px;height:18px;margin-top:3px;}
.mm-auth label,.mm-settings label,.mm-session label { display:grid; gap:7px; font-size:14px; color:#334155; }
.mm-auth input,.mm-dialog input,.mm-dialog select,.mm-dialog textarea,.mm-settings input,.mm-settings select { box-sizing:border-box; min-height:44px; width:100%; border:1px solid #cbd5e1; border-radius:9px; padding:10px; background:white; color:#172033; font:inherit; }
.mm-tabs { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }.mm-tabs .selected { background:#e0e7ff; color:#3730a3; }
.mm-status { font-size:14px; white-space:pre-line; color:#92400e; }.mm-local { padding:10px; background:#fff7df; color:#7c5311; font-size:12px; border-radius:8px; }
.mm-dialog { width:min(1000px,94vw); max-height:90vh; border:0; border-radius:18px; padding:24px; color:#172033; background:#f8fafc; }.mm-dialog::backdrop { background:#10182799; }.mm-dialog-head { display:flex; justify-content:space-between; gap:12px; align-items:center; position:sticky; top:-24px; background:#f8fafc; z-index:1; }
.mm-student { display:grid; grid-template-columns:2fr 1fr 1fr auto; align-items:end; gap:12px; padding:16px 0; border-bottom:1px solid #e2e8f0; }.mm-student small {display:block;overflow-wrap:anywhere;}.mm-student [role=status] {grid-column:1/-1;}
.mm-settings { padding:18px; margin:16px 0; background:#eef2ff; border-radius:12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.mm-settings h3,.mm-settings p {grid-column:1/-1;margin:0;}.mm-settings .mm-check { display:flex; align-items:center; gap:8px; }.mm-check input { width:18px;min-height:18px; }
.mm-session { display:grid; gap:10px; padding:18px; margin:14px 0; border:1px solid #e2e8f0; border-radius:12px; background:white; }.mm-session textarea {width:100%;box-sizing:border-box;}.mm-session p {white-space:pre-line;margin:0;}
.mm-teacher-note { margin-top:10px; padding:12px; border-left:3px solid #6366f1; background:#eef2ff; white-space:pre-wrap; }
.mm-page-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; background:#f1f5f9; padding:6px; flex-shrink:0; font-size:13px; }.mm-page-tools button,.mm-page-tools select { min-height:32px; border:1px solid #cbd5e1;border-radius:6px;background:white;color:#172033; padding:4px 10px; }
.mm-mic { padding:6px 12px; min-height:27px; font-size:13px; color:#475569; background:#f8fafc; display:flex; gap:10px; align-items:center; }.mm-mic meter {width:70px;}.mm-mic[data-state=live] {color:#166534;}.mm-mic[data-state=ended],.mm-mic[data-state=muted] {color:#b45309;}
.mm-pages .osmd-cover {display:none!important;}.mm-pages .osmd-inner {padding:12px!important;max-width:none!important;min-width:0;}.mm-pages {overflow:auto!important;}.mm-pages svg {background:white;box-shadow:0 2px 12px #0f172a18;flex-shrink:0;}.mm-pages .osmd-inner > div { margin:0 0 16px!important; }.mm-pages .osmd-inner > div.mm-page-hidden {display:none!important;}.mm-pages .score-marks {pointer-events:none;}
.mm-narrative {background:#eef2ff;padding:18px;border-radius:12px;line-height:1.8;white-space:pre-line;color:#28324a;margin:16px 0;}
.mm-plan-info {padding:12px 16px;background:#eef2ff;border-radius:12px;color:#3730a3;line-height:1.7;font-size:14px;}
.mm-membership {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:#eef2ff;border-radius:14px;margin:16px 0;}.mm-membership[hidden]{display:none;}
.mm-balance{font-size:32px;font-weight:700;color:#4338ca;}.mm-balance small{font-size:16px;}
.mm-ledger>div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e2e8f0;}.mm-ledger small,.mm-credit-row small{display:block;font-size:12px;color:#64748b;overflow-wrap:anywhere;}
.mm-credit-row{display:grid;grid-template-columns:1.4fr .7fr 1.3fr auto auto;gap:10px;align-items:end;padding:18px 0;border-bottom:1px solid #cbd5e1;}.mm-credit-row label{display:grid;gap:6px;}.mm-credit-row [role=status]{grid-column:1/-1;margin:0;}.mm-credit-amount{display:block;color:#4338ca;font-weight:700;margin-top:5px;}
.mm-level-row{padding:18px;margin:16px 0;background:white;border:1px solid #e2e8f0;border-radius:14px;display:grid;gap:12px;}.mm-level-row h3,.mm-level-row p{margin:0;}.mm-level-row label{display:grid;gap:8px;}.mm-level-row .mm-check{display:flex;align-items:center;}.mm-level-row .mm-check input{width:18px;min-height:18px;}.mm-level-row ul{margin:0;padding-left:22px;color:#475569;font-size:13px;line-height:1.7;}
.mm-level-badge{display:inline-block;background:#eef2ff;color:#4338ca;border-radius:6px;padding:3px 8px;margin-top:7px;font-size:12px;}#mm-practice-cost{margin-left:auto;font-size:11px;}
@media(max-width:700px){.mm-credit-row{grid-template-columns:1fr 1fr;}.mm-credit-row>div,.mm-credit-row label:has([name=reason]){grid-column:1/-1;}.mm-membership{flex-wrap:wrap;}#mm-practice-cost{margin-left:0;}}
@media(max-width:600px){.mm-student{grid-template-columns:1fr 1fr;}.mm-student>div{grid-column:1/-1;}.mm-settings,.mm-tempo-ramp{grid-template-columns:1fr;}.mm-dialog{padding:16px;}.mm-dialog-head{top:-16px;}.mm-mic{font-size:11px;flex-wrap:wrap;}}

/* Account forms: a quiet, single-column flow, scoped away from practice tools. */
body[data-mm-ui=practice]:has(#screen-login.active){background:var(--mm-bg);}
#screen-login{width:100%;max-width:none;background:transparent;}
#screen-login .login-wrap{flex:none;width:calc(100% - 48px);max-width:480px;margin:40px auto;padding:32px;justify-content:flex-start;background:var(--mm-surface);border:1px solid var(--mm-line);border-radius:var(--mm-radius);box-shadow:var(--mm-shadow);}
#screen-login .mm-auth-heading{margin-bottom:28px;}
#screen-login .mm-auth-mark{display:grid;place-items:center;width:44px;height:44px;margin-bottom:24px;border-radius:var(--mm-control-radius);background:var(--mm-primary-soft);color:var(--mm-primary);}
#screen-login .mm-auth-mark .ic{width:24px;height:24px;stroke-width:2.2;}
#screen-login h1{margin:0;text-align:left;white-space:pre-line;font-size:32px;line-height:1.4;letter-spacing:-1.1px;font-weight:750;color:var(--mm-text);}
#screen-login .sub{margin:12px 0 0;text-align:left;font-size:15px;line-height:1.6;color:#6b7684;word-break:keep-all;}
#screen-login .sub:empty{display:none;}
#screen-login .mm-plan-info{display:table;margin:14px 0 0;padding:5px 11px;background:var(--mm-primary-soft);color:var(--mm-primary);border-radius:20px;font-size:12px;line-height:1.7;font-weight:600;}
#screen-login #mm-account-message{color:#4e5968;font-size:15px;line-height:1.6;margin-bottom:20px;}
#screen-login #mm-account-message:empty{display:none;}
#screen-login #mm-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--mm-bg);border-radius:var(--mm-control-radius);}
#screen-login #mm-auth-tabs button{border:0;border-radius:8px;background:transparent;color:var(--mm-muted);font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer;min-height:44px;transition:background .15s,color .15s;}
#screen-login #mm-auth-tabs button.selected{background:#fff;color:#191f28;box-shadow:0 1px 5px #191f2810;}
#screen-login .mm-auth{margin:28px 0 0;gap:20px;}
#screen-login .mm-auth label,#screen-login .mm-auth-field{display:grid;gap:8px;font-size:13px;line-height:1.5;font-weight:600;color:#4e5968;}
#screen-login .mm-auth input:not([type=checkbox]){min-height:44px;width:100%;border:1px solid var(--mm-line);border-radius:var(--mm-control-radius);padding:9px 14px;background:var(--mm-surface);color:var(--mm-text);font-family:inherit;font-size:16px;line-height:24px;font-weight:400;transition:border-color .15s,background .15s,box-shadow .15s;}
#screen-login .mm-auth input::placeholder{color:#8b95a1;opacity:1;}
#screen-login .mm-auth input:not([type=checkbox]):focus{outline:0;background:var(--mm-surface);border-color:var(--mm-primary);box-shadow:0 0 0 3px #5e6ad21a;}
#screen-login .mm-password-input{display:flex;align-items:center;min-width:0;border:1px solid var(--mm-line);border-radius:var(--mm-control-radius);background:var(--mm-surface);transition:border-color .15s,background .15s,box-shadow .15s;}
#screen-login .mm-password-input input{flex:1;min-width:0;}
#screen-login .mm-password-input input:not([type=checkbox]),#screen-login .mm-password-input input:not([type=checkbox]):focus{border:0;box-shadow:none;background:transparent;padding-right:4px;}
#screen-login .mm-password-input:focus-within{background:var(--mm-surface);border-color:var(--mm-primary);box-shadow:0 0 0 3px #5e6ad21a;}
#screen-login .mm-password-input button{flex:none;min-width:52px;min-height:44px;margin:0 6px;border:0;border-radius:9px;background:transparent;color:#6b7684;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer;}
#screen-login .mm-password-input button:hover{color:var(--mm-primary-hover);background:var(--mm-primary-soft);}
#screen-login .mm-auth-field small{margin-top:-3px;color:#6b7684;font-size:12px;font-weight:400;}
#screen-login .mm-auth input[aria-invalid=true]{border-color:#f04452;background:#fff4f4;}
#screen-login .mm-password-input:has(input[aria-invalid=true]){border-color:#f04452;background:#fff4f4;box-shadow:0 0 0 3px #f0445212;}
#screen-login .mm-auth .mm-consent{display:flex;gap:12px;align-items:flex-start;padding-top:3px;font-size:13px;line-height:1.7;font-weight:400;color:#6b7684;}
#screen-login .mm-consent input{accent-color:var(--mm-primary);flex:none;width:22px;min-width:22px;height:22px;min-height:22px;margin:0;cursor:pointer;}
#screen-login .mm-consent b{font-weight:600;color:#4e5968;}
#screen-login .mm-consent a{color:#4e5968;text-decoration:underline;text-underline-offset:3px;}
#screen-login .mm-auth-challenge{padding:14px;border:1px solid var(--mm-line);border-radius:var(--mm-control-radius);}
#screen-login .mm-auth-challenge input:not([type=checkbox]){min-height:44px;padding:9px 12px;}
#screen-login #mm-captcha:empty{display:none;}
#screen-login #mm-captcha{min-width:0;max-width:100%;}
#screen-login #mm-setup-row{font-size:12px;color:#6b7684;}
#screen-login #mm-setup-row summary{padding:8px 0;cursor:pointer;}
#screen-login #mm-setup-row p{margin:4px 0 12px;}
#screen-login .btn.primary{min-height:44px;margin-top:4px;border-radius:var(--mm-control-radius);background:var(--mm-primary);color:#fff;font-size:15px;font-weight:600;box-shadow:none;transition:background .15s;}
#screen-login .btn.primary:hover:not(:disabled){background:var(--mm-primary-hover);}
#screen-login .btn.primary:disabled{background:#e1e4f7;color:#7f87aa;cursor:not-allowed;transform:none;}
#screen-login .btn.outline{min-height:44px;border:1px solid var(--mm-line);border-radius:var(--mm-control-radius);background:var(--mm-surface);color:var(--mm-text);}
#screen-login .mm-status{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#fff4f4;color:#b32634;font-size:13px;line-height:1.65;overflow-wrap:anywhere;user-select:text;}
#screen-login .mm-status:empty{display:none;}
#screen-login .mm-status[data-tone=success]{color:#136b43;background:#edf9f2;}
#screen-login .mm-status[data-tone=info]{color:var(--mm-primary);background:var(--mm-primary-soft);}
#screen-login .mm-auth-help{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:18px;color:#d1d6db;}
#screen-login .mm-auth-help button{padding:8px 2px;border:0;background:transparent;color:#6b7684;font-family:inherit;font-size:13px;cursor:pointer;}
#screen-login .mm-auth-help button:hover{color:var(--mm-primary);}
#screen-login .mm-local{padding:0;margin:14px 0 0;background:transparent;color:#6b7684;font-size:12px;line-height:1.7;}
#screen-login .mm-local summary{cursor:pointer;text-align:center;padding:8px;}
#screen-login .mm-local p{margin-top:4px;padding:12px;background:#f2f4f6;border-radius:12px;}
#screen-login .mm-auth-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:28px;padding-top:20px;border-top:1px solid #f2f4f6;}
#screen-login .mm-auth-footer a{padding:6px 0;color:#6b7684;font-size:12px;text-decoration:none;}
#screen-login .mm-auth-footer a:hover{text-decoration:underline;}
#screen-login button:focus-visible,#screen-login a:focus-visible,#screen-login input[type=checkbox]:focus-visible,#screen-login summary:focus-visible{outline:3px solid var(--mm-primary);outline-offset:3px;}
@media(max-width:600px){
  #screen-login .login-wrap{width:calc(100% - 32px);margin:24px auto;padding:24px;}
  #screen-login .mm-auth-mark{margin-bottom:20px;}
  #screen-login h1{font-size:26px;letter-spacing:-.9px;}
  #screen-login .mm-auth-heading{margin-bottom:24px;}
  #screen-login .mm-auth{margin-top:24px;gap:18px;}
}
@media(prefers-reduced-motion:reduce){#screen-login *{transition:none!important;}}

/* A quiet branded loading view, shared by session entry and password login. */
#screen-login #mm-auth-loading{display:flex;flex:1;align-items:center;justify-content:center;gap:0;width:100%;max-width:none;min-height:calc(100svh - var(--mm-header-height,93px));margin:0;padding:40px 24px 72px;border:0;border-radius:0;background:radial-gradient(ellipse 260px 200px at 50% 44%,#eeeffc 0%,transparent 100%);box-shadow:none;text-align:center;}
.mm-loading-art{position:relative;display:grid;place-items:center;width:176px;height:152px;flex:none;margin-bottom:12px;}
.mm-loading-art img{position:relative;display:block;width:80px;height:80px;border-radius:20px;box-shadow:0 12px 30px #5e6ad224;}
.mm-loading-halo{position:absolute;width:132px;height:132px;border:1px solid #dfe3f5;border-radius:50%;background:#ffffff50;}
.mm-loading-halo::after{content:"";position:absolute;inset:-17px;border:1px solid #e7e9f5;border-radius:50%;}
.mm-loading-note{position:absolute;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--mm-primary);}
.mm-loading-note-left{left:0;top:30px;transform:rotate(-14deg);opacity:.6;}
.mm-loading-note-right{right:0;bottom:28px;transform:rotate(12deg);opacity:.45;}
#screen-login .mm-loading-brand{margin:0;color:var(--mm-text);font-size:25px;font-weight:750;line-height:1.5;letter-spacing:-1px;}
#screen-login #mm-auth-loading-status{max-width:320px;margin:10px 0 0;color:var(--mm-muted);font-size:14px;line-height:1.7;word-break:keep-all;}
.mm-loading-wave{display:flex;align-items:center;justify-content:center;gap:5px;height:28px;margin-top:26px;}
.mm-loading-wave span{width:4px;height:22px;border-radius:4px;background:var(--mm-primary);transform:scaleY(.35);animation:mm-loading-beat 1.2s ease-in-out infinite;}
.mm-loading-wave span:nth-child(2){animation-delay:.12s;}.mm-loading-wave span:nth-child(3){animation-delay:.24s;}.mm-loading-wave span:nth-child(4){animation-delay:.36s;}.mm-loading-wave span:nth-child(5){animation-delay:.48s;}
#screen-login #mm-auth-retry{min-width:120px;margin-top:24px;}
body[data-mm-auth-state=error] .mm-loading-wave{display:none;}
@keyframes mm-loading-beat{0%,100%{transform:scaleY(.35);opacity:.4;}50%{transform:scaleY(1);opacity:1;}}
@media(prefers-reduced-motion:reduce){.mm-loading-wave span{animation:none;transform:scaleY(.55);opacity:.6;}.mm-loading-wave span:nth-child(3){transform:scaleY(1);opacity:1;}}

/* Hosted account recovery uses a private, one-time code instead of email links. */
#screen-login .mm-auth-note,#screen-login .mm-proof-status{margin:0;color:var(--mm-muted);font-size:12px;line-height:1.7;font-weight:400;}
#screen-login .mm-proof-status[data-ready=true]{color:#136b43;}
#screen-login .mm-recovery-save{display:grid;gap:18px;margin-top:24px;}
#screen-login .mm-recovery-save[hidden]{display:none!important;}
#screen-login .mm-recovery-save h2{margin:0;font-size:20px;line-height:1.5;letter-spacing:-.04em;}
#screen-login .mm-recovery-save p{margin:0;color:var(--mm-muted);font-size:14px;line-height:1.7;}
#screen-login .mm-recovery-save-code{display:block;padding:20px 16px;border:1px solid var(--mm-line);border-radius:12px;background:var(--mm-bg);color:var(--mm-text);font:600 17px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;user-select:all;}
#screen-login .mm-recovery-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
#screen-login .mm-recovery-save .mm-consent{display:flex;align-items:flex-start;gap:12px;font-size:13px;line-height:1.7;color:var(--mm-muted);}
#screen-login .mm-recovery-save .mm-consent input{flex:none;accent-color:var(--mm-primary);width:22px;height:22px;margin:0;}

/* The same member UI applies to student, score and credit management dialogs. */
body[data-mm-ui=practice] .mm-dialog{width:min(1120px,94vw);border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-bg);color:var(--mm-text);font-family:var(--mm-font);}
body[data-mm-ui=practice] .mm-dialog.engine-dialog{width:min(1400px,96vw);}
body[data-mm-ui=practice] .mm-dialog-head{background:var(--mm-bg);padding-bottom:18px;border-bottom:1px solid var(--mm-line);margin-bottom:18px;}
body[data-mm-ui=practice] .mm-dialog-head h2{font-size:26px;line-height:1.4;letter-spacing:-.7px;}
body[data-mm-ui=practice] .mm-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-height:44px;border-color:var(--mm-line);border-radius:var(--mm-control-radius);background:var(--mm-surface);color:var(--mm-text);font-family:var(--mm-font);}
body[data-mm-ui=practice] .mm-dialog :is(label,small){color:var(--mm-muted);}
body[data-mm-ui=practice] :is(.mm-settings,.mm-session,.mm-level-row,.mm-membership,.engine-forms form){border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);color:var(--mm-text);box-shadow:var(--mm-shadow);}
body[data-mm-ui=practice] :is(.mm-student,.mm-credit-row,.mm-ledger>div){border-color:var(--mm-line);}
body[data-mm-ui=practice] .mm-tabs{gap:8px;justify-content:flex-start;}
body[data-mm-ui=practice] #screen-home .mm-tabs .btn{width:auto;margin-top:0;}
body[data-mm-ui=practice] .mm-tabs .selected{background:var(--mm-primary-soft);color:var(--mm-primary);}
body[data-mm-ui=practice] :is(.mm-balance,.mm-credit-amount,.mm-level-badge){color:var(--mm-primary);}
body[data-mm-ui=practice] .mm-level-badge{background:var(--mm-primary-soft);border-radius:6px;}
body[data-mm-ui=practice] .mm-teacher-note{border-color:var(--mm-primary);background:var(--mm-primary-soft);}
body[data-mm-ui=practice] .engine-job{border-color:var(--mm-line);border-radius:var(--mm-control-radius);}
body[data-mm-ui=practice] .engine-job.selected{border-color:var(--mm-primary);background:var(--mm-primary-soft);}
body[data-mm-ui=practice] .engine-review{border-color:#dfe2f7;background:var(--mm-primary-soft);border-radius:var(--mm-control-radius);}
@media(max-width:600px){body[data-mm-ui=practice] .mm-dialog-head h2{font-size:22px;}body[data-mm-ui=practice] #screen-home .mm-tabs .btn{flex:1 1 140px;}}

.mm-home-actions{display:flex;align-items:center;gap:8px;flex:none;}
body[data-mm-ui=practice] .mm-profile{width:min(560px,94vw);margin:auto;}
.mm-profile-details{display:grid;gap:0;margin:0;padding:0;border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);}
.mm-profile-details>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;padding:16px 18px;}
.mm-profile-details>div+div{border-top:1px solid var(--mm-line);}
.mm-profile-details dt{color:var(--mm-muted);font-size:14px;}
.mm-profile-details dd{margin:0;color:var(--mm-text);font-size:15px;font-weight:600;overflow-wrap:anywhere;}
.mm-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.mm-profile-actions .btn{text-align:center;text-decoration:none;}
.mm-profile-admin{margin-top:24px;padding:20px;border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);}
.mm-profile-admin h3{margin:0;font-size:17px;}
#mm-profile-status{margin-top:12px;}
#mm-profile-status:empty{display:none;}
#mm-profile-logout{margin-top:20px;}
@media(max-width:480px){.mm-profile-details>div{grid-template-columns:64px minmax(0,1fr);padding:14px;gap:12px;}.mm-profile-actions{grid-template-columns:1fr;}}

/* Conversion and paired training data are separate administrator workspaces. */
body[data-mm-ui=practice] .engine-dialog .engine-tabs{display:flex;gap:4px;padding:4px;margin:0 0 20px;background:#eef0f6;border-radius:var(--mm-control-radius);}
body[data-mm-ui=practice] .engine-tabs [role=tab]{flex:1;min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:transparent;color:var(--mm-muted);font:600 15px/1.5 var(--mm-font);cursor:pointer;}
body[data-mm-ui=practice] .engine-tabs [aria-selected=true]{background:var(--mm-surface);color:var(--mm-primary-hover);box-shadow:0 1px 5px #191f2810;}
body[data-mm-ui=practice] .engine-tabs [role=tab]:focus-visible{outline:3px solid var(--mm-primary);outline-offset:2px;}
body[data-mm-ui=practice] .engine-dialog .engine-forms{grid-template-columns:minmax(0,1fr);}
body[data-mm-ui=practice] .engine-dialog .engine-forms form{min-width:0;padding:20px;gap:12px;}
body[data-mm-ui=practice] .engine-dialog .engine-forms form[hidden]{display:none!important;}
body[data-mm-ui=practice] .engine-dialog .engine-forms h3{margin:0 0 4px;font-size:18px;line-height:1.5;}
body[data-mm-ui=practice] .engine-dialog .engine-forms p{margin:0;color:var(--mm-muted);font-size:13px;}
body[data-mm-ui=practice] .engine-dialog .engine-forms button{align-self:flex-start;min-width:140px;}
body[data-mm-ui=practice] .engine-history,body[data-mm-ui=practice] .engine-result{min-width:0;padding:20px;border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);box-shadow:var(--mm-shadow);}
body[data-mm-ui=practice] .engine-history>h3,body[data-mm-ui=practice] .engine-result>h3{margin:0 0 16px;font-size:16px;line-height:1.5;}
body[data-mm-ui=practice] #engine-detail>h3{margin:0;font-size:20px;}
body[data-mm-ui=practice] #engine-detail:empty,body[data-mm-ui=practice] #engine-message:empty{display:none;}
@media(max-width:760px){body[data-mm-ui=practice] .engine-dialog .engine-history{max-height:250px;}body[data-mm-ui=practice] .engine-dialog .engine-workspace{grid-template-columns:minmax(0,1fr);}}

/* Put score selection first; keep account and administration beside the work. */
body[data-mm-ui=practice] #screen-home .mm-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"library sidebar" "records sidebar" "support sidebar";align-items:start;align-content:start;gap:32px 28px;}
.mm-home-library{grid-area:library;min-width:0;}
body[data-mm-ui=practice] #screen-home>.topbar{gap:16px;}
body[data-mm-ui=practice] #screen-home>.topbar>div:first-child{min-width:0;}
body[data-mm-ui=practice] #screen-home #home-user{overflow-wrap:anywhere;}
body[data-mm-ui=practice] #screen-home .song-card{min-width:0;width:100%;gap:14px;font:inherit;text-align:left;}
body[data-mm-ui=practice] #screen-home .song-card:focus-visible{outline:3px solid var(--mm-primary);outline-offset:3px;}
body[data-mm-ui=practice] #screen-home .song-card>div:first-child{flex:1;min-width:0;}
body[data-mm-ui=practice] #screen-home .song-card :is(.song-name,.song-meta){overflow-wrap:anywhere;}
body[data-mm-ui=practice] #screen-home .song-card .go{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:40px;padding:8px 12px;border-radius:10px;background:var(--mm-primary-soft);color:var(--mm-primary);font-size:13px;line-height:1.5;font-weight:650;white-space:nowrap;}
body[data-mm-ui=practice] #screen-home .song-card .go span{font-size:18px;line-height:1;}
.mm-home-sidebar{grid-area:sidebar;display:grid;gap:16px;min-width:0;}
.mm-home-records{grid-area:records;min-width:0;}
.mm-home-support{grid-area:support;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--mm-line);color:var(--mm-muted);font-size:13px;}
body[data-mm-ui=practice] #screen-home .mm-home-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;}
body[data-mm-ui=practice] #screen-home .mm-home-layout .section-title{margin:0 0 16px;}
body[data-mm-ui=practice] #screen-home .mm-home-section-head .section-title{margin-bottom:6px;font-size:22px;}
.mm-home-section-head p{margin:0;color:var(--mm-muted);font-size:14px;line-height:1.6;}
.mm-home-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;flex:none;color:var(--mm-primary);font-size:14px;font-weight:600;text-decoration:none;}
.mm-home-link:hover{text-decoration:underline;text-underline-offset:4px;}
.mm-home-link:focus-visible{outline:3px solid var(--mm-primary);outline-offset:3px;border-radius:4px;}
body[data-mm-ui=practice] #screen-home :is(.mm-home-notices,.mm-home-admin){padding:20px;border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:var(--mm-surface);}
body[data-mm-ui=practice] #screen-home .mm-home-sidebar .section-title{font-size:15px;margin-bottom:12px;}
body[data-mm-ui=practice] #screen-home .mm-home-notices:has(#notice-list:empty),body[data-mm-ui=practice] #screen-home .mm-home-admin:not(:has(button:not([hidden]))){display:none;}
body[data-mm-ui=practice] #screen-home .mm-home-sidebar #notice-list{display:flex;gap:12px;}
body[data-mm-ui=practice] #screen-home .mm-home-sidebar .notice-card{padding:0;border:0;border-radius:0;box-shadow:none;}
body[data-mm-ui=practice] #screen-home .mm-home-sidebar .notice-card+.notice-card{padding-top:12px;border-top:1px solid var(--mm-line);}
body[data-mm-ui=practice] #screen-home .mm-home-admin .mm-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
body[data-mm-ui=practice] #screen-home .mm-home-admin .mm-tabs .btn{width:100%;text-align:left;}
body[data-mm-ui=practice] #screen-home #mm-credit-summary{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:20px;}
body[data-mm-ui=practice] #screen-home #mm-wallet-open{margin:0;}
#mm-credit-message{font-size:13px;color:var(--mm-muted);line-height:1.6;}
#mm-credit-message:empty{display:none;}
body[data-mm-ui=practice] #screen-home .mm-home-support .fb-open{display:inline-flex;align-items:center;gap:8px;width:auto;max-width:none;margin:0;}
@media(max-width:860px){
  body[data-mm-ui=practice] #screen-home .mm-home-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"library" "sidebar" "records" "support";gap:28px;}
  body[data-mm-ui=practice] #screen-home .mm-home-admin .mm-tabs{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:480px){
  body[data-mm-ui=practice] #screen-home .mm-home-section-head{align-items:flex-start;gap:12px;}
  .mm-home-section-head p{font-size:13px;}
  .mm-home-link{font-size:13px;gap:6px;}
  body[data-mm-ui=practice] #screen-home .mm-home-section-head .section-title{font-size:20px;}
}

/* Keep the practice viewport below the shared header without a second page scroll. */
body[data-mm-ui=practice] .screen{min-height:calc(100dvh - var(--mm-header-height));}
body[data-mm-ui=practice] #screen-practice.active{height:calc(100dvh - var(--mm-header-height));min-height:0;}
body[data-mm-ui=practice] #screen-practice>.topbar{top:0;position:relative;}
body[data-mm-ui=practice] .practice-body{min-height:0!important;}
