/* Shared adult learning controls; English examples retain their own reading direction. */
body.adult-luxury{--polish-lime:#ddf778;--polish-ink:#183e37}
body.adult-luxury .brand-name{font-weight:800}
body.adult-luxury .button:not(.secondary):not(.outline){background:var(--polish-lime);color:var(--polish-ink);border-color:var(--polish-lime)}
body.adult-luxury .button:focus-visible,body.adult-luxury button:focus-visible,body.adult-luxury a:focus-visible{outline:3px solid #367764;outline-offset:3px}
.polish-example,.resume-controls,.polish-help{border:1px solid #cbd5c4;border-radius:16px;background:#f5f8ec;color:#183e37;margin:20px 0;padding:16px 20px;line-height:1.65}
.polish-example summary,.resume-controls summary,.polish-help summary{font-weight:700;cursor:pointer;min-height:44px;display:list-item;align-content:center}
.polish-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:16px 0}
.polish-example-grid section{border-inline-start:3px solid #b6d748;padding-inline-start:14px;min-width:0}
.polish-example-grid h3{font-family:inherit;font-weight:700;font-size:16px;line-height:1.5;margin:0 0 8px}
.polish-example-grid p{margin:0;font-size:16px;overflow-wrap:anywhere}
.polish-kicker{font-weight:700;font-size:14px;margin:12px 0;letter-spacing:.03em}
.polish-small{font-size:14px;line-height:1.65;color:#455d50}
.polish-actions{display:flex;flex-wrap:wrap;gap:12px}
.resume-controls{margin:12px 24px 20px}
.resume-controls label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.resume-controls input{flex:0 0 auto;inline-size:20px;block-size:20px;accent-color:#2b5d47}
.resume-controls [data-resume-status]{font-size:14px;min-height:24px}
.polish-report-action{padding:12px 0;margin-block-start:18px;border-block-start:1px solid #d7ddcf}
#lesson-dialog>.polish-report-action{margin-inline:24px}
.polish-report-action button{font-size:14px;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.polish-dialog{color:#183e37;background:#fffdf5;border:1px solid #c4ccb9;border-radius:22px;width:min(620px,calc(100% - 24px));max-height:90dvh;padding:0;overflow:auto}
.polish-dialog::backdrop{background:#112a26aa}
.polish-dialog .modal-header{position:sticky;top:0;background:#fffdf5;z-index:1;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.polish-dialog .modal-header h2{font-size:24px;margin:0;overflow-wrap:anywhere}
.polish-dialog .close-button{flex-shrink:0;min-height:44px;min-width:44px}
.polish-dialog-body{padding:4px 24px 24px;line-height:1.65}
.polish-dialog-body label{display:block;font-weight:650;margin-top:16px}
.polish-dialog-body textarea,.polish-dialog-body select{display:block;width:100%;max-width:100%;font-family:inherit;font-weight:400;font-size:16px;line-height:1.6;border:1px solid #829681;border-radius:10px;background:#fffef9;color:#183e37;padding:12px;margin:8px 0 16px;box-sizing:border-box}
.polish-dialog-body textarea{resize:vertical;min-height:100px}
.polish-dialog-body blockquote{border-inline-start:4px solid #b6d748;margin:20px 0;padding:12px 18px;font-size:20px;background:#f2f6e8}
.polish-word{font-size:32px;margin:8px 0;overflow-wrap:anywhere}
.polish-word-help{background:#f2f6e8;padding:10px 14px;border-radius:8px;font-size:15px}
.polish-feedback{background:#eff5dd;border:1px solid #c4d58b;border-radius:12px;padding:18px;margin-top:20px}
.polish-feedback[hidden],#polish-email-preview[hidden]{display:none}
.polish-report-context{font-size:14px;overflow-wrap:anywhere}
.polish-dialog .button,.polish-dialog .text-button,[data-practice-word]{min-height:44px;white-space:normal}
body.adult-luxury .dict-audio [data-practice-word]{background:#ddf778;color:#183e37;border:1px solid #b6cc70}
/* Consistent reading hierarchy across adult screens and lesson dialogs. */
body.adult-luxury :is(#app,dialog) :is(h1,h2,h3){font-weight:700;text-wrap:pretty;overflow-wrap:anywhere}
body.adult-luxury :is(#app,dialog) :is(.button,.text-button,.nav-btn,.dict-full-entry,.dict-audio button,.dict-save,summary){font-weight:700}
body.adult-luxury :is(#app,dialog) :is(label,legend){font-weight:700}
body.adult-luxury :is(#app,dialog) :is(input,select,textarea){font-weight:400}
body.adult-luxury :is(.eyebrow,.polish-kicker,.sample-label){font-weight:800;text-transform:uppercase;letter-spacing:.08em;line-height:1.5}
body.adult-luxury .dict-meaning h3{font-style:normal;font-weight:700}
body.adult-luxury .dict-pos{font-weight:700;text-transform:uppercase;letter-spacing:.04em}
body.adult-luxury :is(.polish-actions,.account-actions,.path-setup-actions){align-items:center;gap:12px}
body.adult-luxury :is(.button,.text-button){white-space:normal;overflow-wrap:anywhere}
/* Keep related dictionary text together without shrinking reading or touch sizes. */
.dict-reference h2{margin-block:4px 10px}
.dict-learner-hint{margin-top:18px;padding:16px}
.dict-learner-hint h3{margin:0 0 8px;line-height:1.3}
.dict-learner-hint p{margin:4px 0;line-height:1.5}
.dict-learner-hint ol{margin:12px 0 0;padding-inline-start:22px}
.dict-learner-hint li{margin:0;line-height:1.5}
.dict-learner-hint li+li{margin-top:16px}
.dict-learner-hint blockquote{margin:6px 0;padding:8px 12px;line-height:1.5}
.dict-learner-hint .dict-full-entry{margin-top:4px;min-height:44px}
.dict-meaning{margin-top:18px;padding-top:8px}
.dict-meaning h3{margin:8px 0}
.dict-meaning ol{margin-block:8px;line-height:1.5}
.dict-meaning li{margin:8px 0;padding-inline-start:2px}
body.adult-luxury .shell-secondary{padding-inline:18px}
body.adult-luxury .launch-shell>.shell-secondary{padding-inline:0}
body.adult-luxury .shell-secondary>div{min-width:0;flex-wrap:wrap}
body.adult-luxury .footer-links{display:grid;gap:8px}
.footer-main-links,.footer-follow-links{display:flex;flex-wrap:wrap;gap:4px 20px;min-width:0}
body.adult-luxury .footer-links a{max-width:100%;overflow-wrap:anywhere;align-self:start}
.footer-follow-links{border-top:1px solid #dfdacd;padding-top:8px}
@media(max-width:480px){
 body.adult-luxury .brand .brand-name{min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.adult-luxury .shell-secondary{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:4px;padding-block:8px}
 body.adult-luxury .shell-secondary>div{gap:12px;max-width:100%}
 body.adult-luxury .shell-secondary a{padding-inline:4px}
 .footer-main-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));gap:0 20px}
 .footer-follow-links{gap:0 20px}
 .dict-learner-hint{padding:14px 12px}
}
/* A little more reading size on phones, keeping the compact spacing above. */
@media(max-width:700px){
 body.adult-luxury [data-shell-primary] .nav-btn,
 body.adult-luxury .shell-secondary a,
 body.adult-luxury .footer-links a{font-size:1rem}
 body.adult-luxury .footer-location{font-size:.9375rem}
 body.adult-luxury .launch-footer p{font-size:.875rem}
 body.adult-luxury .dict-reference{font-size:1.0625rem}
 body.adult-luxury .dict-learner-hint h3{font-size:1.375rem}
 body.adult-luxury .dict-pos{font-size:.9375rem}
 body.adult-luxury .dict-audio button,
 body.adult-luxury .dict-save,
 body.adult-luxury .dict-full-entry{font-size:1rem}
}
@media(max-width:640px){.polish-example-grid{grid-template-columns:1fr;gap:18px}.polish-example,.polish-help{padding:14px}.resume-controls{margin:12px 14px}.polish-dialog .modal-header{padding:14px}.polish-dialog-body{padding:4px 16px 18px}.polish-dialog .modal-header h2{font-size:21px}.polish-dialog-body .button{width:100%}}

/* Primary destinations stay visible; utilities and secondary routes share More. */
body.adult-luxury .launch-header:has(.header-identity){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding-block:12px}
body.adult-luxury .launch-header .header-identity{grid-column:1;grid-row:1}
body.adult-luxury .launch-header>[data-shell-primary]{grid-column:1 / -1;grid-row:2}
.shell-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;position:relative;min-width:0}
body.adult-luxury .sidebar:has(.shell-more[open]){z-index:2}
body.adult-luxury .shell-header-actions>.compact-dictionary-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:8px;border:2px solid #173e34;border-radius:10px;background:#173e34;color:#e7f3a2;cursor:pointer}
.shell-header-actions>.compact-dictionary-button .icon{width:24px;height:24px;stroke-width:2.8}
.shell-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;padding:8px 12px;border:1px solid #9daa83;border-radius:10px;background:#fffdf5;color:#183e37;font-size:1rem;font-weight:700;cursor:pointer;list-style:none}
.shell-more>summary::-webkit-details-marker{display:none}
.shell-more[open]>summary{background:#eaf0dc}
.shell-more:not([open])>.shell-more-panel{display:none}
.shell-more-panel{position:absolute;inset-inline-end:0;top:calc(100% + 10px);z-index:100;width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 140px);overflow:auto;box-sizing:border-box;padding:18px;background:#fffdf5;border:1px solid #c5cfb8;border-radius:16px;box-shadow:0 14px 36px #173e3326;display:flex;flex-direction:column;gap:16px}
/* English utilities retain LTR reading; their dropdown opens inward from an RTL header. */
html[dir="rtl"] body.adult-luxury .launch-header .shell-more-panel{inset-inline-end:auto;inset-inline-start:0}
@media(min-width:901px){
 html:not([dir="rtl"]) body.adult-luxury .sidebar .shell-more-panel{inset-inline-end:auto;inset-inline-start:0}
 body.adult-luxury .sidebar>[data-shell-primary]{flex:0 1 auto;margin-top:12px}
 body.adult-luxury .sidebar>.sidebar-bottom{margin-top:auto}
}
.shell-more-panel>.eyebrow{margin:0}
.shell-more-panel>*{order:0!important}
body.adult-luxury .shell-more-panel .shell-secondary{display:flex;flex-direction:column;align-items:stretch;justify-items:stretch;margin:0;padding:0;border:0;gap:10px;width:100%;flex:none;overflow:visible}
body.adult-luxury .shell-more-panel .shell-secondary>div{display:flex;flex-wrap:wrap;gap:12px}
body.adult-luxury .shell-more-panel .shell-secondary a{font-size:1rem;min-height:44px}
body.adult-luxury .shell-more-panel .header-utility.compact-tools{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;padding:12px 0 0;border:0;border-top:1px solid #dce0d1;border-radius:0;background:transparent;width:100%;grid-area:auto}
body.adult-luxury .shell-more-panel .header-languages{position:static;width:100%}
body.adult-luxury .shell-more-panel .compact-language-options{position:static;width:100%;max-height:220px;margin-top:8px;box-shadow:none}
body.adult-luxury .shell-more-panel .language-label-full{display:inline}
body.adult-luxury .shell-more-panel .language-label-short{display:none}
body.adult-luxury .shell-more-panel .header-today{margin:0;padding-top:12px;border-top:1px solid #dce0d1}
body.adult-luxury .shell-more-panel .today-open{align-items:flex-start;text-align:start;justify-content:flex-start}
body.adult-luxury .sidebar .shell-header-actions{justify-content:flex-start;margin-block:12px}
body.adult-luxury .workspace>.topbar{display:none}
.lesson-preview{margin-top:12px;border-top:1px solid #58705b;padding-top:6px}
.lesson-preview>summary,.path-personalize>summary{min-height:44px;align-content:center;font-weight:700;cursor:pointer}
.path-personalize{padding:10px 18px;margin:0 0 24px;border:1px solid #dcd5c3;border-radius:14px;background:#fffcf6}
.path-personalize .path-setup{margin:8px 0 12px;box-shadow:none}
.practice-jumps{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.practice-jumps button{font:inherit;font-weight:700;min-height:44px;padding:9px 14px;background:#edf2df;color:#183e37;border:1px solid #b9c7a5;border-radius:10px;cursor:pointer}
body.adult-luxury .practice-tool-grid article{display:flex;flex-direction:column}
body.adult-luxury .practice-tool-grid .text-button{margin-top:auto}
@media(max-width:900px){
 html[dir="rtl"] body.adult-luxury .sidebar .shell-more-panel{inset-inline-end:auto;inset-inline-start:0}
 body.adult-luxury .sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px}
 body.adult-luxury .sidebar .shell-header-actions{margin:0}
 body.adult-luxury .sidebar .brand{margin:0;min-width:0}
 body.adult-luxury .sidebar [data-shell-primary]{grid-column:1 / -1;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));margin:0!important;gap:4px!important}
 body.adult-luxury .sidebar [data-shell-primary] .nav-btn{white-space:normal;overflow-wrap:anywhere;padding:8px 6px;min-height:44px;justify-content:center}
 body.adult-luxury .sidebar-bottom{display:none}
}
@media(max-width:700px){
 body.adult-luxury .launch-header>[data-shell-primary]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
 body.adult-luxury .launch-header>[data-shell-primary] .nav-btn{white-space:normal;overflow-wrap:anywhere;padding:8px 6px}
 body.adult-luxury .learn-heading{margin-bottom:18px}
 body.adult-luxury .launch-shell .learn-dashboard{padding-top:18px}
 body.adult-luxury .path-next-card{padding:20px 18px}
}
@media(max-width:480px){
 body.adult-luxury .launch-header:has(.header-identity),body.adult-luxury .sidebar{display:flex;flex-direction:row;flex-wrap:wrap}
 body.adult-luxury .launch-header .header-identity,body.adult-luxury .sidebar>.brand{flex:1 1 10rem;width:auto;min-width:0;max-width:100%}
 body.adult-luxury .launch-header .header-identity .brand{max-width:100%}
 body.adult-luxury .shell-header-actions{flex:0 0 auto;margin-inline-start:auto}
 body.adult-luxury :is(.launch-header,.sidebar)>[data-shell-primary]{flex:1 0 100%;width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(7rem,calc(50% - 2px))),1fr))}
 body.adult-luxury .brand .brand-name{white-space:normal;overflow-wrap:anywhere}
}

/* Keep paired utilities apart, with comfortable mobile tap targets. */
body.adult-luxury .shell-more-panel .header-utility.compact-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;align-items:start}
body.adult-luxury .shell-more-panel .header-languages{width:auto;min-width:0}
body.adult-luxury .shell-more-panel .compact-ai{justify-self:end;margin:0;min-height:44px}
body.adult-luxury .shell-more-panel .header-today{width:100%;box-sizing:border-box}
body.adult-luxury .shell-more-panel .today-open{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 20px;width:100%}
body.adult-luxury .shell-more-panel .today-label,body.adult-luxury .shell-more-panel .today-open-hint{grid-column:1 / -1}
body.adult-luxury .shell-more-panel .today-clock-row{grid-column:1;min-width:0}
body.adult-luxury .shell-more-panel [data-today-brief]{grid-column:2;justify-self:end;text-align:end;max-width:10rem;font-size:1rem;font-weight:750;line-height:1.4}
body.adult-luxury .shell-more-panel .temperature-value{font-size:1.125rem;font-weight:850;white-space:nowrap}
@media(max-width:360px){body.adult-luxury .shell-more-panel .header-utility.compact-tools,body.adult-luxury .shell-more-panel .today-open{column-gap:12px}body.adult-luxury .shell-more-panel [data-today-brief]{max-width:8rem}}
