/* Match the lesson settings: unboxed rows on a quiet full-screen backdrop. */
.math-settings-overlay{padding:48px 24px;background:rgba(5,9,35,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-family:"Work Sans",system-ui,sans-serif}
.math-settings-overlay .math-settings-panel{display:grid;width:min(100%,736px);max-height:calc(100dvh - 96px);padding:12px 32px;grid-template-rows:auto minmax(0,1fr);border:0;border-radius:0;background:none;box-shadow:none;text-align:left}
.math-settings-overlay .math-settings-header{align-items:center;margin:0 0 24px;gap:24px}
.math-settings-overlay .math-settings-header h2{margin:0;font:500 34px/1.2 "Work Sans",system-ui,sans-serif;letter-spacing:-.02em}
.math-settings-overlay .math-settings-close{width:40px;height:40px;border-radius:12px;background:#3a57dc;font-weight:400;box-shadow:none}
.math-settings-overlay .math-settings-body{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 4px 12px 0}
.math-settings-overlay .math-dashboard-setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:72px;padding:16px 0;box-sizing:border-box;border-bottom:1px solid #ffffff26;font:400 18px/1.4 "Work Sans",system-ui,sans-serif;color:#edf0ff}
.math-settings-overlay .math-language-list,.math-settings-overlay .math-dashboard-setting-options{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}
.math-settings-overlay .math-language-option,.math-settings-overlay .math-dashboard-setting-options button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid transparent;border-radius:8px;background:#ffffff10;color:#edf0ff!important;box-shadow:none;font:400 18px/1.3 "Work Sans",system-ui,sans-serif;transform:none}
.math-settings-overlay .math-language-option.is-selected,.math-settings-overlay .math-dashboard-setting-options button[aria-pressed="true"]{background:#3a57dc;color:#fff!important;border-color:transparent;box-shadow:none}
.math-settings-overlay .math-language-code,.math-settings-overlay .math-language-check{display:none}
.math-settings-overlay .math-language-name{font:inherit}
.math-settings-overlay .math-dashboard-setting-options button:disabled,.math-settings-overlay .math-dashboard-setting-switch:disabled{opacity:1;cursor:default;filter:none}
.math-settings-overlay .math-dashboard-setting-options button:not(:disabled){cursor:pointer}
.math-settings-overlay :is(a,button,select):focus-visible{outline:3px solid #fff;outline-offset:4px}
.math-settings-overlay .math-language-option:hover{background:#ffffff20;transform:none}
.math-settings-overlay .math-language-option.is-selected:hover{background:#405de2}
.math-settings-overlay .math-dashboard-setting-switch{position:relative;flex:none;width:52px;height:30px;min-height:30px;padding:0;border:0;border-radius:30px;background:#ffffff38;box-shadow:none}
.math-settings-overlay .math-dashboard-setting-switch:before{content:"";position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}
.math-settings-overlay .math-settings-preview-note{margin:16px 0 24px;color:#a9b2cf;font:400 14px/1.5 "Work Sans",system-ui,sans-serif}
.math-settings-overlay .math-settings-status{min-height:0;margin:0;font-weight:400;text-align:left}
.math-settings-overlay .math-settings-status:not(:empty){margin:16px 0}
/* Retain parent functions without the previous nested glass cards. */
.math-settings-overlay .math-settings-subscription,.math-settings-overlay .math-settings-summary{margin:0;padding:24px 0;border:0;border-bottom:1px solid #ffffff26;border-radius:0;background:none;box-shadow:none;gap:12px}
.math-settings-overlay .math-settings-subscription>small,.math-settings-overlay .math-settings-summary small{color:#a9b2cf;font:400 14px/1.4 "Work Sans",system-ui,sans-serif;letter-spacing:0;text-transform:none}
.math-settings-overlay .math-settings-summary h3,.math-settings-overlay .math-settings-subscription>strong{font:400 18px/1.4 "Work Sans",system-ui,sans-serif}
.math-settings-overlay .math-settings-summary p,.math-settings-overlay .math-settings-subscription>span,.math-settings-overlay .math-settings-subscription>p,.math-settings-overlay .math-settings-summary label,.math-settings-overlay .math-email-verified{font:400 14px/1.5 "Work Sans",system-ui,sans-serif;color:#a9b2cf}
.math-settings-overlay .math-settings-summary select{background:#ffffff10;border-radius:8px;font:400 16px "Work Sans",system-ui,sans-serif}
.math-settings-overlay .math-settings-summary button{background:#3a57dc;border-color:transparent;border-radius:8px;font:400 16px "Work Sans",system-ui,sans-serif}
.math-settings-overlay .math-settings-destinations{display:flex;flex-wrap:wrap;gap:12px;padding:28px 0 4px}
.math-settings-overlay .math-settings-destinations .math-settings-switch-profile{display:flex;flex:1 1 230px;align-items:center;justify-content:center;gap:12px;width:auto;min-height:50px;box-sizing:border-box;margin:0;padding:13px 18px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff10;box-shadow:none;transform:none;color:#fff;text-decoration:none}
.math-settings-overlay .math-settings-destinations .math-settings-switch-profile.is-parent-dashboard{background:#3a57dc;border-color:transparent}
.math-settings-overlay .math-settings-destinations .math-settings-switch-profile:hover{background:#ffffff20;transform:none;border-color:#ffffff60}
.math-settings-overlay .math-settings-destinations .math-settings-switch-profile.is-parent-dashboard:hover{background:#405de2;border-color:transparent}
.math-settings-overlay .math-settings-switch-profile svg{display:block;flex:none;width:22px;height:22px;pointer-events:none}
.math-settings-overlay .math-settings-switch-profile strong{font:400 18px/1.3 "Work Sans",system-ui,sans-serif}
@media(max-width:600px){.math-settings-overlay{padding:24px 16px}.math-settings-overlay .math-settings-panel{max-height:calc(100dvh - 48px);padding:12px 8px}.math-settings-overlay .math-settings-header h2{font-size:28px}.math-settings-overlay .math-dashboard-setting-row{gap:12px;align-items:flex-start;font-size:16px}.math-settings-overlay .math-dashboard-setting-options,.math-settings-overlay .math-language-list{max-width:62%;gap:6px}.math-settings-overlay .math-language-option,.math-settings-overlay .math-dashboard-setting-options button{padding:10px 12px;font-size:16px}}
/* Use the width of a landscape phone instead of stacking a tall list. */
@media(max-width:1024px) and (max-height:540px) and (orientation:landscape){
 .math-settings-overlay{padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 .math-settings-overlay .math-settings-panel{width:min(100%,920px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0 8px}
 .math-settings-overlay .math-settings-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;margin-bottom:12px;gap:12px}
 .math-settings-overlay .math-settings-header>div{grid-column:2;grid-row:1;text-align:center}
 .math-settings-overlay .math-settings-header .math-settings-close{grid-column:1;grid-row:1}
 .math-settings-overlay .math-settings-header h2{font-size:26px}
 .math-settings-overlay .math-settings-close{width:44px;height:44px}
 .math-settings-overlay .math-settings-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);column-gap:32px;align-items:start;padding-bottom:4px}
 .math-settings-overlay .math-dashboard-settings-controls{grid-column:1;grid-row:1;min-width:0}
 .math-settings-overlay .math-dashboard-setting-row{min-height:52px;gap:10px;padding:4px 0;font-size:16px;align-items:center}
 .math-settings-overlay .math-language-list,.math-settings-overlay .math-dashboard-setting-options{gap:4px;max-width:70%}
 .math-settings-overlay .math-language-option,.math-settings-overlay .math-dashboard-setting-options button{min-height:44px;padding:8px 10px;font-size:16px}
 .math-settings-overlay .math-settings-preview-note{grid-column:1/-1;margin:8px 0;font-size:12px}
 .math-settings-overlay .math-settings-status,.math-settings-overlay .math-settings-subscription,.math-settings-overlay .math-settings-summary,.math-settings-overlay .math-settings-destinations{grid-column:1/-1}
 .math-settings-overlay .math-settings-subscription,.math-settings-overlay .math-settings-summary{padding:12px 0;gap:6px}
 .math-settings-overlay .math-settings-destinations{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-self:center;padding:0;gap:12px;min-width:0}
 .math-settings-overlay .math-settings-destinations .math-settings-switch-profile{width:100%;min-height:48px;padding:12px 14px;flex:0 0 auto}
 .math-settings-overlay .math-settings-switch-profile strong{font-size:16px}
}
@media(max-width:640px) and (max-height:540px) and (orientation:landscape){
 .math-settings-overlay .math-settings-body{column-gap:16px}
 .math-settings-overlay .math-settings-body{grid-template-columns:minmax(0,1.45fr) minmax(180px,1fr)}
 .math-settings-overlay .math-dashboard-setting-row{flex-wrap:wrap;gap:4px}
 .math-settings-overlay .math-language-list,.math-settings-overlay .math-dashboard-setting-options{max-width:100%}
}
