:root{--ink:#24312d;--muted:#6d7773;--bg:#f7f5f1;--card:#fff;--accent:#476c60;--soft:#e8efeb;--line:#d9dfdc;--warn:#8a5b3d;--pro:#aebdb7}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.wrap{max-width:1180px;margin:auto;padding:20px}.hero{display:flex;gap:18px;align-items:flex-end;justify-content:space-between;padding:18px 0}.hero h1{margin:0;font-size:clamp(27px,5vw,46px);line-height:1}.hero p{margin:8px 0 0;color:var(--muted)}.badge{background:var(--soft);padding:9px 12px;border-radius:999px;font-weight:700;white-space:nowrap}.account{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.plan{padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#eef0ee}.plan.pro{background:#f2ead8;color:#735b2f}.grid{display:grid;grid-template-columns:340px 1fr;gap:18px}@media(max-width:850px){.grid{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.wrap{padding:14px}}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:16px}.card h2,.card h3{margin-top:0}.field{margin:12px 0}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px;background:white;color:var(--ink)}textarea{min-height:80px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{border:0;border-radius:11px;padding:11px 14px;font-weight:800;background:var(--accent);color:white}.btn.secondary{background:var(--soft);color:var(--ink)}.btn.ghost{background:white;color:var(--ink);border:1px solid var(--line)}.btn.danger{background:#f7e9e5;color:#733c2f}.btn.pro{background:var(--pro)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.deleteSec{width:34px;height:34px;padding:0;border-radius:9px;font-size:20px;line-height:1}.actions{display:flex;gap:8px;flex-wrap:wrap}.section{border:1px solid var(--line);border-radius:15px;margin:12px 0;overflow:hidden}.section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px;background:#fafaf8}.section-head h3{margin:0;font-size:16px}.section-head small,.notice{color:var(--muted);font-size:12px}.exercise{padding:13px;border-top:1px solid var(--line);display:grid;grid-template-columns:1.2fr .7fr .7fr .7fr auto;gap:8px;align-items:end}@media(max-width:760px){.exercise{grid-template-columns:1fr 1fr}.exercise .wide{grid-column:1/-1}}.mini label{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:4px}.mini input{width:100%;padding:9px;border:1px solid var(--line);border-radius:9px}.remove{border:0;background:#f7e9e5;color:#733c2f;border-radius:9px;padding:9px}.summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0}.stat{background:var(--soft);padding:12px;border-radius:12px}.stat b{display:block;font-size:20px}.library-item{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.pill{font-size:11px;padding:4px 7px;background:var(--soft);border-radius:999px}.tip{border-left:4px solid var(--accent);background:#f5f8f6;padding:11px;border-radius:8px;color:#4f5c57;font-size:13px}.hidden{display:none!important}.pro-lock{border:1px dashed #c9b27b;background:#fbf7ed;padding:12px;border-radius:12px;margin-top:10px}.pro-lock b{color:#735b2f}.login-shell{max-width:520px;margin:2vh auto;padding:20px}.login-tabs{display:flex;gap:8px;margin-bottom:16px}.login-tabs button.active{background:var(--accent);color:#fff}.status{margin-top:12px;font-size:13px}.error{color:var(--muted)}.success{color:#28603f}a{color:var(--accent)}.print-header{display:none}@media print{@page{size:A4;margin:14mm 13mm 16mm}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}body{background:#fff;color:#27342f;font-size:10.5pt}.no-print,.sidebar,.account,.hero,.tip,#checkoutStatus,.compare-plans-card{display:none!important}.wrap{max-width:none;padding:0}.grid{display:block}.grid>main{width:100%}.print-header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid var(--accent);padding-bottom:10px;margin-bottom:16px}.print-header h1{font-size:22pt;line-height:1;margin:0;color:#27342f}.print-header p{margin:5px 0 0;color:var(--accent);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:8.5pt}.print-meta{text-align:right;display:flex;flex-direction:column;gap:3px;color:var(--muted)}#printClassName{font-weight:800;color:#27342f;font-size:12pt}.card{border:0;box-shadow:none;padding:0;margin:0}.card:has(.summary){margin-bottom:14px}.summary{grid-template-columns:1fr 1fr;gap:8px;margin:0}.stat{border:1px solid #d8e0dc;background:#f5f8f6;padding:8px 10px;border-radius:8px}.stat b{font-size:14pt}.section{break-inside:avoid;border:1px solid #d8e0dc;border-radius:10px;margin:0 0 12px;padding:11px 12px;box-shadow:none;outline:0!important}.section-head{border-bottom:1px solid #d8e0dc;padding-bottom:7px;margin-bottom:8px}.section h3{font-size:13pt;color:var(--accent);margin:0}.section small{font-size:8.5pt;color:#68766f}.exercise{break-inside:avoid;background:#fff;border:0;border-bottom:1px solid #e6ebe8;border-radius:0;padding:8px 0;margin:0}.exercise:last-child{border-bottom:0}.exercise input,.exercise textarea,.exercise select{border:0!important;background:transparent!important;padding:2px 0!important;box-shadow:none!important;color:#27342f!important;font:inherit}.exercise textarea{resize:none;min-height:0}.exercise label{font-size:7.5pt;text-transform:uppercase;letter-spacing:.04em;color:#78847f}.exercise-grid{gap:8px}.notice{color:#68766f;font-size:8.5pt}main>.card:nth-of-type(2)>div:first-child{margin-bottom:8px}h2{font-size:15pt}input,textarea,select{overflow:visible} }

.forgot-row{text-align:right;margin:-4px 0 14px}.forgot-row a{font-size:13px;font-weight:800;text-decoration:none}.forgot-row a:hover{text-decoration:underline}

.unlock-shell{max-width:680px;margin:1.25vh auto;padding:20px}.unlock-card{margin-top:18px;padding:28px}.unlock-card h1{font-size:38px;margin-bottom:6px}.unlock-lead{color:var(--muted);margin-top:0;margin-bottom:24px}.plan-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 20px}.price-card{display:block;border:2px solid var(--line);border-radius:16px;padding:16px;cursor:pointer;background:#fff}.price-card.selected{border-color:var(--pro);background:#fbf7ed}.price-card input{position:absolute;opacity:0}.price-card span{display:flex;flex-direction:column;gap:5px}.price-card strong{font-size:22px}.price-card small{color:var(--muted)}.unlock-submit{width:100%;padding:14px}.signin-prompt{text-align:center;color:var(--muted);font-size:14px}@media(max-width:560px){.plan-options{grid-template-columns:1fr}.unlock-card{padding:20px}}

.hello-name{font-size:14px;font-weight:700;color:var(--muted);padding:7px 4px;white-space:nowrap}

.account-link{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:6px 8px;border-radius:10px;color:var(--ink);cursor:pointer}.account-link:hover{background:var(--soft)}.account-label{font-size:12px;color:var(--accent);font-weight:800}.account-panel{max-width:520px;margin:0 0 18px auto;box-shadow:0 12px 30px rgba(36,49,45,.08)}.account-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.account-panel-head h3{margin-bottom:3px}.account-panel-head p{margin:0;color:var(--muted)}.account-close{border:0;background:var(--soft);width:32px;height:32px;border-radius:9px;font-size:20px;color:var(--ink)}.account-details{display:grid;gap:10px;margin-top:16px}.account-details>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-top:1px solid var(--line)}.account-details span{color:var(--muted);font-size:13px}.account-details b{text-align:right;font-size:14px}@media(max-width:850px){.account-panel{max-width:none;margin-bottom:16px}}

/* Make locked Pro features visually consistent for Free users. */
body.free-user .pro-feature{background:var(--pro)!important;color:#fff!important;border-color:var(--pro)!important}

/* Branded Pro upgrade modal */
.pro-modal{position:fixed;inset:0;z-index:1000;background:rgba(36,49,45,.48);display:grid;place-items:center;padding:20px}.pro-modal-card{position:relative;width:min(520px,100%);background:#fff;border:1px solid #d8c89e;border-radius:22px;padding:30px;box-shadow:0 24px 70px rgba(36,49,45,.24);text-align:center}.pro-modal-icon{font-size:34px;margin-bottom:8px}.pro-modal-card h2{margin:0 30px 10px;font-size:26px}.pro-modal-card p{color:var(--muted);line-height:1.55}.pro-modal-feature{font-weight:800;color:var(--accent)!important}.pro-modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f5efdf;color:#735b2f;font-size:22px;line-height:1}.pro-modal-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}.pro-modal-actions .btn{text-decoration:none}@media(max-width:560px){.pro-modal-card{padding:26px 20px}.pro-modal-card h2{font-size:23px}}

/* Clear Free-to-Pro and returning Pro paths */
.pro-access-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.pro-returning{font-size:12px;color:var(--muted);font-weight:700}.pro-modal-signin{font-size:12px!important;margin:12px 0 0!important}.pro-modal-actions a.btn{display:inline-flex;align-items:center;justify-content:center}@media(max-width:560px){.pro-returning{display:none}.pro-access-links{gap:6px}}

/* Tap or click a section to make it active */
.section[role="button"]{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}.section[role="button"]:hover{border-color:#aebdb7}.section.selected-section{outline:2px solid var(--accent);outline-offset:0}.section[role="button"]:focus-visible{outline:3px solid rgba(71,108,96,.28);outline-offset:3px}.section input,.section button{cursor:auto}.section button{cursor:pointer}@media(hover:none){.section[role="button"]:hover{border-color:var(--line)}}

/* Free users can see Pro section-reorder controls as locked premium actions. */
body.free-user .locked-reorder{background:var(--pro)!important;color:var(--pro)!important;border-color:var(--pro)!important;opacity:1}body.free-user .locked-reorder{color:#fff!important}body.free-user .locked-reorder svg,body.free-user .locked-reorder path{fill:currentColor!important;stroke:currentColor!important}

/* Pro visual rule: locked Pro features use a muted sage green for Free users; active Pro features use the primary green for Pro users. */
body:not(.pro-user) .pro-feature,body:not(.pro-user) .btn.pro,body:not(.pro-user) .locked-reorder{background:var(--pro)!important;color:#fff!important;border-color:var(--pro)!important}
body.pro-user .pro-feature,body.pro-user .btn.pro,body.pro-user .locked-reorder{background:var(--accent)!important;color:#fff!important;border-color:var(--accent)!important}

/* Free vs Pro comparison */
.compare-plans-card{margin-top:14px}.compare-modal-card{max-width:680px}.plan-comparison{display:grid;grid-template-columns:minmax(180px,2fr) minmax(75px,1fr) minmax(75px,1fr);margin:18px 0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.plan-comparison>div{padding:11px 12px;border-bottom:1px solid var(--line);background:#fff}.plan-comparison>div:nth-child(3n+2),.plan-comparison>div:nth-child(3n+3){text-align:center;border-left:1px solid var(--line)}.plan-comparison .compare-head{font-weight:800;background:var(--soft)}.plan-comparison .yes{font-weight:800;color:var(--accent)}.plan-comparison .no{font-weight:800;color:#8a6258}.plan-comparison>div:nth-last-child(-n+3){border-bottom:0}@media(max-width:520px){.plan-comparison{grid-template-columns:minmax(130px,1.7fr) minmax(60px,.8fr) minmax(60px,.8fr);font-size:12px}.plan-comparison>div{padding:9px 7px}}


/* Compact print layout: target one A4 page for typical programs, allow two for longer classes. */
@media print{@page{size:A4 portrait;margin:8mm 9mm 9mm}body{font-size:8pt;line-height:1.16}.wrap{zoom:.82}.print-header{padding-bottom:5px;margin-bottom:7px}.print-header h1{font-size:16pt}.print-header p{margin-top:2px;font-size:6.5pt}.print-meta{gap:1px}#printClassName{font-size:9.5pt}.summary{gap:4px}.stat{padding:4px 6px;border-radius:5px}.stat b{font-size:10pt}.section{margin-bottom:5px;padding:5px 7px;border-radius:6px;break-inside:auto}.section-head{padding-bottom:3px;margin-bottom:3px}.section h3{font-size:9.5pt}.section small{font-size:6.5pt}.exercise{padding:3px 0;break-inside:avoid}.exercise label{font-size:5.8pt}.exercise input,.exercise textarea,.exercise select{font-size:7.5pt!important;line-height:1.08!important;padding:0!important}.exercise textarea{height:auto!important;min-height:0!important;max-height:22px}.exercise-grid{gap:3px}.notice{font-size:6.5pt}h2{font-size:11pt;margin:0 0 4px}.card:has(.summary){margin-bottom:6px}}
.props-choices{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.props-choices label{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:999px;padding:6px 9px;background:#fff;font-size:12px;font-weight:700;cursor:pointer}.props-choices input{width:auto;margin:0}.props-choices label:has(input:checked){border-color:var(--accent);background:#eef4f0;color:var(--accent)}

.print-brief{display:none}@media print{.print-brief{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;border:1px solid #d8e0dc;border-radius:6px;padding:6px 8px;margin-bottom:7px}.print-brief>div{display:flex;gap:5px;min-width:0}.print-brief b{font-size:6.5pt;color:#68766f;white-space:nowrap}.print-brief span{font-size:7.5pt;color:#27342f}.print-notes{grid-column:1/-1}}

/* Denser, space-efficient PDF composition. */
@media print{@page{size:A4 portrait;margin:6mm 7mm 7mm}.wrap{zoom:.9}.print-header{align-items:center;padding:0 0 4px;margin:0 0 5px}.print-header h1{font-size:14pt}.print-header p{font-size:5.8pt;margin-top:1px}.print-meta{line-height:1.05}#printClassName{font-size:9pt}.print-brief{grid-template-columns:1fr 1fr 1fr;gap:2px 9px;padding:4px 6px;margin-bottom:5px}.print-brief>div{display:block}.print-brief b{display:block;font-size:5.5pt;line-height:1;margin-bottom:1px}.print-brief span{font-size:7pt;line-height:1.05}.print-notes{grid-column:1/-1}.card:has(.summary){margin-bottom:4px}.summary{gap:3px}.stat{padding:2px 5px}.stat span{font-size:6pt}.stat b{font-size:8.5pt}.grid main>.card:nth-of-type(2)>div:first-child{margin:0 0 3px!important}.grid main>.card:nth-of-type(2) h2{font-size:9.5pt!important;line-height:1;margin:0!important}.section{margin:0 0 3px;padding:3px 5px;border-radius:4px}.section-head{padding:0 0 2px;margin:0 0 2px}.section h3{font-size:8.5pt;line-height:1}.section small{font-size:5.7pt;line-height:1}.exercise{padding:2px 0}.exercise label{font-size:5pt;line-height:1}.exercise input,.exercise textarea,.exercise select{font-size:6.8pt!important;line-height:1!important}.exercise textarea{max-height:15px}.exercise-grid{gap:2px}.tip{display:none!important}}

/* One-page A4 print pass: halve whitespace while increasing readable type. */
@media print{@page{size:A4 portrait;margin:4mm 5mm}.wrap{zoom:.88}body{font-size:9pt;line-height:1.05}.print-header{padding-bottom:2px;margin-bottom:3px}.print-header h1{font-size:16pt}.print-header p{font-size:6.5pt}.print-meta{gap:0}#printClassName{font-size:10pt}.print-brief{gap:1px 6px;padding:3px 5px;margin-bottom:3px}.print-brief b{font-size:6pt;margin-bottom:0}.print-brief span{font-size:7.8pt;line-height:1}.card:has(.summary){margin-bottom:2px}.summary{gap:2px}.stat{padding:1px 4px;border-radius:3px}.stat span{font-size:6.3pt}.stat b{font-size:9pt}.grid main>.card:nth-of-type(2)>div:first-child{margin-bottom:2px!important}.grid main>.card:nth-of-type(2) h2{font-size:10.5pt!important}.section{margin-bottom:1.5px;padding:2px 4px;border-radius:3px}.section-head{padding-bottom:1px;margin-bottom:1px}.section h3{font-size:9.5pt}.section small{font-size:6.2pt}.exercise{padding:1px 0}.exercise label{font-size:5.4pt}.exercise input,.exercise textarea,.exercise select{font-size:7.6pt!important;line-height:.98!important}.exercise textarea{max-height:12px}.exercise-grid{gap:1px}.notice{font-size:6.5pt}}

/* Approved PDF export layout based on instructor-formatted reference. */
.print-sheet{display:none}@media print{@page{size:A4 portrait;margin:4mm 4mm 4mm}.wrap>*:not(.print-sheet){display:none!important}.print-sheet{display:block!important;width:100%;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;color:#111;font-size:8.5pt;line-height:1.05}.print-sheet h1{font-size:17pt;line-height:1;margin:0 0 7mm;font-weight:700}.print-brief-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 7mm}.print-brief-table td{border:.7pt solid #333;padding:1.2mm 1.8mm;vertical-align:top;height:8mm;box-sizing:border-box}.print-brief-table b{display:block;font-size:8.5pt;line-height:1.05}.print-brief-table span{display:block;font-size:8.5pt;line-height:1.05;margin-top:.5mm}.print-brief-table b span{display:inline;margin:0}.print-sheet>h2{font-size:13pt;margin:0 0 3mm;line-height:1}.print-section{margin:0 0 5mm;break-inside:avoid}.print-section h3{font-size:10.5pt;line-height:1;margin:0 0 1mm;font-weight:700}.print-section>p{font-size:6.8pt;font-style:italic;margin:0 0 .8mm}.print-section table{width:100%;border-collapse:collapse;table-layout:fixed}.print-section th,.print-section td{border:.7pt solid #333;padding:.6mm 1.4mm;vertical-align:middle;box-sizing:border-box}.print-section th{font-size:7.8pt;line-height:1;text-align:center;font-weight:700}.print-section td{font-size:8.2pt;line-height:1.05}.print-section th:nth-child(1),.print-section td:nth-child(1){width:17%;text-align:left}.print-section th:nth-child(2),.print-section td:nth-child(2){width:17%;text-align:center}.print-section th:nth-child(3),.print-section td:nth-child(3){width:17%;text-align:center}.print-section th:nth-child(4),.print-section td:nth-child(4){width:17%;text-align:center}.print-section th:nth-child(5),.print-section td:nth-child(5){width:32%;text-align:left}.print-section th:nth-child(5){text-align:center}.print-section tbody tr{break-inside:avoid;height:5.2mm}}

/* Pro feature previews */
.preview-card{max-width:700px;text-align:left}.preview-card>h2,.preview-card>.preview-lead,.preview-card>.preview-note{text-align:center}.preview-lead{margin-bottom:16px}.preview-note{font-size:12px!important}.deferred-demo-brief{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.deferred-demo-brief span{background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.deferred-demo-flow{display:grid;grid-template-columns:minmax(170px,.8fr) 1.5fr;border:1px solid var(--line);border-radius:14px;overflow:hidden}.deferred-demo-flow>*{padding:9px 11px;border-bottom:1px solid var(--line)}.deferred-demo-flow b{background:#f7f4eb;color:#735b2f}.deferred-demo-flow>*:nth-last-child(-n+2){border-bottom:0}.pdf-preview-card{max-width:780px}.pdf-demo{background:#fff;border:1px solid #bbb;padding:14px;color:#111;font-family:Arial,sans-serif;font-size:10px}.pdf-demo h3{font-size:18px;margin:0 0 12px}.pdf-demo h4{font-size:13px;margin:12px 0 5px}.pdf-demo-brief{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #555;border-left:1px solid #555;margin-bottom:10px}.pdf-demo-brief span{border-right:1px solid #555;border-bottom:1px solid #555;padding:5px}.pdf-demo-brief b{display:block}.pdf-demo small{display:block;font-style:italic;margin:2px 0 3px}.pdf-demo table{width:100%;border-collapse:collapse;margin:3px 0 8px;table-layout:fixed}.pdf-demo th,.pdf-demo td{border:1px solid #555;padding:4px;text-align:center}.pdf-demo th:first-child,.pdf-demo td:first-child,.pdf-demo td:last-child{text-align:left}.pdf-demo th:last-child{width:32%}@media(max-width:620px){.deferred-demo-flow{grid-template-columns:1fr}.deferred-demo-flow>*{border-bottom:1px solid var(--line)!important}.pdf-demo{overflow:auto}.pdf-demo-brief{grid-template-columns:1fr 1fr}}

/* Deferred feature styles */
.deferred-preview-card{max-width:650px}.deferred-explain{display:grid;gap:10px;margin:18px 0;text-align:left}.deferred-explain>div{padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#faf8f1}.deferred-explain b{display:block;color:#735b2f;margin-bottom:4px}.deferred-explain span{font-size:13px;line-height:1.45}.deferred-control-message{text-align:center;background:var(--soft);border-radius:14px;padding:14px 16px;margin:16px 0}.deferred-control-message b{font-size:15px}

/* Keep Pro dialogs fully usable at 100% zoom and on mobile */
.pro-modal{overflow-y:auto;overscroll-behavior:contain;padding:20px}
.pro-modal-card{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain}
#proFeatureModal .pro-modal-card{display:flex;flex-direction:column}
#proFeatureModal .pro-modal-actions{flex-shrink:0}
@media(max-width:620px){
  .pro-modal{padding:10px;align-items:flex-start}
  .pro-modal-card{width:100%;max-height:calc(100dvh - 20px);margin:auto;padding:18px 16px}
  #proFeatureModal .deferred-explain{gap:7px;margin:12px 0}
  #proFeatureModal .deferred-explain>div{padding:10px 12px}
  #proFeatureModal .deferred-control-message{padding:10px 12px;margin:10px 0}
  #proFeatureModal .pro-modal-actions{position:sticky;bottom:-18px;background:inherit;padding:10px 0 2px;margin-top:4px;z-index:2}
}
@media(max-height:760px) and (min-width:621px){
  #proFeatureModal .pro-modal-card{padding-top:16px;padding-bottom:16px}
  #proFeatureModal .deferred-explain{gap:6px;margin:10px 0}
  #proFeatureModal .deferred-explain>div{padding:8px 12px}
  #proFeatureModal .deferred-control-message{padding:9px 12px;margin:9px 0}
}

/* Deferred feature desktop modal */
@media(min-width:621px){
  #proFeatureModal .pro-modal-card{max-width:820px}
  #proFeatureModal .deferred-build-info{font-size:13px;line-height:1.35}
  #proFeatureModal .deferred-explain{grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
  #proFeatureModal .deferred-explain>div{padding:10px 12px}
  #proFeatureModal .deferred-control-message{padding:10px 14px;margin:10px 0}
}
@media(min-width:621px) and (max-height:760px){
  #proFeatureModal .pro-modal-card{max-height:calc(100dvh - 24px);overflow:visible}
  #proFeatureModal .deferred-build-info{font-size:12.5px;line-height:1.3}
  #proFeatureModal .deferred-explain{margin:8px 0;gap:8px}
  #proFeatureModal .deferred-explain>div{padding:8px 10px}
  #proFeatureModal .deferred-control-message{padding:8px 12px;margin:8px 0}
}

/* Compact Free vs Pro link beside upgrade controls */
.compare-plans-link{border:0;background:transparent;padding:2px 0;color:var(--muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}.compare-plans-link:hover{color:var(--ink)}@media(max-width:620px){.pro-access-links{flex-wrap:wrap}.compare-plans-link{width:100%;text-align:right;font-size:11px}}

/* Cleaner Free / Pro header hierarchy */
.hero-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hero-title-row h1{margin-bottom:0}.hero-copy>p{margin-top:6px}.pro-access-links{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.pro-primary-row,.pro-returning-row{display:flex;align-items:center;gap:12px}.pro-returning-row{font-size:12px;color:var(--muted);gap:6px}.pro-signin-link{color:var(--ink);font-weight:800;text-decoration:underline;text-underline-offset:3px}.pro-signin-link:hover{opacity:.72}.compare-plans-link{width:auto!important;text-align:left!important}
@media(max-width:620px){.hero-title-row{gap:8px}.hero-title-row .plan{font-size:11px}.account{width:100%}.pro-access-links{width:100%;align-items:flex-start}.pro-primary-row{width:100%;flex-wrap:wrap;gap:10px}.pro-returning-row{width:100%}.compare-plans-link{font-size:11px}}

/* Simplify header typography */
.hero-title-row .plan,.pro-access-links,.pro-access-links .btn,.compare-plans-link,.pro-returning-row,.pro-signin-link{font-family:inherit}
.pro-access-links{font-size:13px}
.pro-access-links .btn{font-size:13px;font-weight:700}
.compare-plans-link,.pro-returning-row,.pro-signin-link{font-size:13px;font-weight:500}
.pro-signin-link{font-weight:700}
.hero-title-row .plan{font-size:12px;font-weight:700;letter-spacing:0}

/* Pro account header: match simplified Free header feel */
.account-link{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important;border-radius:0!important;display:flex;align-items:center;gap:6px;font-family:inherit;font-size:13px!important;font-weight:500!important;color:var(--muted)!important}
.account-link .hello-name{font:inherit!important;color:inherit!important}
.account-link .account-label{font-family:inherit!important;font-size:13px!important;font-weight:700!important;color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px}
.account-link:hover{opacity:.75}
#logoutBtn{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important;border-radius:0!important;font-family:inherit;font-size:13px!important;font-weight:700!important;color:var(--ink)!important;text-decoration:underline;text-underline-offset:3px}
#logoutBtn:hover{opacity:.75}
.account:has(.account-link:not(.hidden)){gap:14px;align-items:center}

/* Section reorder handle */
.reorderHandle{font-size:20px!important;line-height:1;padding:5px 9px!important;cursor:pointer}.free-user .reorderHandle{cursor:pointer}.pro-user .reorderHandle{cursor:grab}

/* Reorder handle beside section title */
.section-title-group{display:flex;align-items:center;gap:9px;min-width:0}.section-title-group .reorderHandle{flex:0 0 auto;margin:0}.section-title-group>div{min-width:0}

/* True drag-to-reorder sections: mouse and touch */
.pro-user .reorderHandle{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.pro-user .reorderHandle.dragging-handle{cursor:grabbing}.dragging-section{opacity:.72;outline:2px solid var(--sage,#788b74);outline-offset:2px;position:relative;z-index:5}

/* Left-side section reorder arrows */
.section-reorder-controls{display:flex;align-items:center;gap:4px;flex:0 0 auto}.section-reorder-controls .btn{padding:5px 8px!important;min-width:32px}.section-title-group>.section-reorder-controls{margin:0}

/* Discreet stacked section reorder arrows */
.section-reorder-controls{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0!important;
  flex:0 0 auto;
}
.section-reorder-controls .btn{
  width:30px;
  min-width:30px!important;
  height:25px;
  min-height:25px;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:7px;
  font-size:15px;
  line-height:1;
  opacity:.72;
  transition:opacity .15s ease,background .15s ease,color .15s ease,transform .1s ease;
}
.section-reorder-controls .btn:hover,
.section-reorder-controls .btn:focus-visible{
  opacity:1;
  background:rgba(0,0,0,.045)!important;
}
.section-reorder-controls .btn:active{transform:scale(.92)}

/* Give stacked reorder arrows a little breathing room */
.section-reorder-controls{gap:3px!important}
.section-reorder-controls .btn{
  width:28px;
  min-width:28px!important;
  height:21px;
  min-height:21px;
  border-radius:6px;
}


/* Movement Library drawer */
.movement-drawer-backdrop{position:fixed;inset:0;background:rgba(36,49,45,.24);z-index:80}
.movement-drawer{position:fixed;z-index:81;top:0;right:0;width:min(430px,92vw);height:100%;overflow-y:auto;background:var(--card);border-left:1px solid var(--line);box-shadow:-10px 0 28px rgba(36,49,45,.12);padding:22px}
.movement-drawer.hidden,.movement-drawer-backdrop.hidden{display:none!important}
.movement-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.movement-drawer-head h2{margin:0 0 4px;font-size:22px}.movement-drawer-head p{margin:0;color:var(--muted);font-size:13px}
.movement-drawer-close{border:0;background:transparent;color:var(--muted);font-size:26px;line-height:1;width:38px;height:38px;border-radius:9px}
.movement-drawer-close:hover{background:var(--soft);color:var(--ink)}
.movement-drawer-list{padding-bottom:24px}
body.drawer-open{overflow:hidden}
@media(max-width:600px){.movement-drawer{top:auto;bottom:0;left:0;right:0;width:100%;height:85%;max-height:760px;border-left:0;border-top:1px solid var(--line);border-radius:18px 18px 0 0;padding:18px}}

/* Custom exercise stays prominent at top of movement drawer */
.custom-exercise-item{background:var(--soft);border-radius:12px;margin-bottom:10px;padding-left:12px;padding-right:8px}.custom-exercise-item b{color:var(--ink)}

/* Keep section delete control balanced at the far right on mobile */
@media(max-width:760px){.section-head{position:relative;align-items:flex-start}.section-head>.actions{margin-left:auto;flex:0 0 auto;justify-content:flex-end;align-items:center}.section-head .deleteSec{margin-left:4px;margin-right:2px;align-self:center}}

/* Persistent movement-added state for the current drawer session */
.addLib.is-added{background:var(--accent);color:#fff;opacity:1;cursor:default;min-width:44px}

/* Full-width custom exercise action above Movement Library filter */
.custom-exercise-action{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:12px;background:var(--soft);color:var(--ink);padding:13px 14px;margin:2px 0 14px;text-align:left;cursor:pointer}
.custom-exercise-action:hover,.custom-exercise-action:focus-visible{filter:brightness(.97);outline:2px solid rgba(71,108,96,.22);outline-offset:2px}
.custom-exercise-action b{display:block;font-size:14px}.custom-exercise-action small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.custom-exercise-plus{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:var(--accent);color:#fff;font-size:20px;font-weight:800}

/* Clear delete iconography for sections and exercises */
.trash-icon{display:block;width:17px;height:17px;margin:auto}
.deleteSec,.remove{display:grid;place-items:center}
.deleteSec .trash-icon,.remove .trash-icon{pointer-events:none}

/* Exercise reordering — available to Free and Pro */
.exercise{position:relative}
.exercise-reorder{display:flex;flex-direction:column;gap:3px;align-self:center}
.exercise-reorder button{width:28px;height:21px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:13px;line-height:1}
.exercise-reorder button:hover,.exercise-reorder button:focus-visible{background:var(--soft);color:var(--ink);outline:none}
@media(min-width:761px){.exercise{grid-template-columns:auto 1.2fr .7fr .7fr .7fr auto}.exercise .wide[style]{grid-column:2/-1!important}}
@media(max-width:760px){.exercise-reorder{grid-column:1/-1;flex-direction:row;justify-content:flex-start;margin-bottom:-2px}}

/* Distinguish section delete from exercise delete */
.deleteSec{width:38px!important;height:38px!important}
.deleteSec .trash-icon{width:19px;height:19px}
.remove .trash-icon{width:16px;height:16px}

/* Mobile-only: larger touch targets for section and exercise reorder controls */
@media(max-width:760px){
  .reorder button,.exercise-reorder button{
    width:44px!important;
    height:44px!important;
    min-width:44px;
    min-height:44px;
    border-radius:9px;
    font-size:18px;
    line-height:1;
    touch-action:manipulation;
  }
  .reorder,.exercise-reorder{gap:6px}
  .exercise-reorder{margin-bottom:4px}
}

/* Deferred feature popup spacing */
#proFeatureModal:has(#deferredBuildInfo:not(.hidden)) .pro-modal-actions{margin-top:0}

/* Mobile Free header: Unlock Pro, Compare, then visually separate Sign in */
@media(max-width:620px){
  .pro-access-links:not(.hidden){display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start;align-items:center;gap:8px;width:100%}
  .pro-primary-row{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
  .compare-plans-link{width:auto!important;text-align:right;font-size:11px;white-space:nowrap}
  .pro-returning-row{display:flex;align-items:center;margin-left:6px;padding-left:10px;border-left:1px solid var(--line)}
  .pro-returning-row .pro-returning{display:none}
  .pro-signin-link{white-space:nowrap}
}


/* Final mobile Free header alignment: keep all three actions on one row */
@media(max-width:620px){
  .pro-access-links:not(.hidden){
    display:grid!important;
    grid-template-columns:max-content max-content max-content;
    align-items:center!important;
    justify-content:start!important;
    column-gap:10px!important;
    width:100%!important;
  }
  .pro-primary-row,.pro-returning-row{
    display:contents!important;
  }
  .pro-returning-row{margin:0!important;padding:0!important;border-left:0!important;width:auto!important}
  .pro-returning-row .pro-returning{display:none!important}
  .compare-plans-link{font-size:11px!important;white-space:nowrap!important}
  .pro-signin-link{white-space:nowrap!important}
}

/* Unlock Pro is a button, not a text link */
a.btn.pro,
.pro-modal-actions a.btn.pro,
#loginLink{
  text-decoration:none!important;
}
a.btn.pro:hover,
.pro-modal-actions a.btn.pro:hover,
#loginLink:hover{
  text-decoration:none!important;
}


/* Add section modal */
.section-modal{position:fixed;inset:0;z-index:1200;background:rgba(38,47,43,.42);display:flex;align-items:center;justify-content:center;padding:20px}
.section-modal.hidden{display:none!important}
.section-modal-card{position:relative;width:min(100%,520px);background:var(--card,#fff);border:1px solid var(--line,#d9ddd9);border-radius:22px;padding:28px;box-shadow:0 24px 70px rgba(34,45,40,.18)}
.section-modal-kicker{display:block;margin-bottom:8px;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--sage,#667a6d)}
.section-modal-card h2{margin:0 38px 7px 0;font-size:25px}
.section-modal-card>p{margin:0 0 22px;color:var(--muted,#6d746f);line-height:1.5}
.section-modal-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:0;background:transparent;border-radius:50%;font-size:27px;line-height:1;cursor:pointer;color:inherit}
.section-modal-close:hover{background:rgba(0,0,0,.05)}
.section-modal-card .field{margin-bottom:17px}
.section-modal-card .field label{display:block;margin-bottom:7px;font-weight:700}
.section-modal-card input{width:100%;box-sizing:border-box}
.section-time-input{display:flex;align-items:center;gap:10px}
.section-time-input input{max-width:150px}
.section-time-input span{font-size:14px;color:var(--muted,#6d746f)}
.section-modal-card small{display:block;margin-top:7px;color:var(--muted,#6d746f)}
.section-form-error{margin:2px 0 14px;padding:10px 12px;border-radius:10px;background:#fff4f1;font-size:13px}
.section-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.section-modal-actions .btn.pro{text-decoration:none!important}
@media(max-width:620px){.section-modal{align-items:flex-end;padding:0}.section-modal-card{width:100%;border-radius:22px 22px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom));max-height:88vh;overflow:auto}.section-modal-actions{display:grid;grid-template-columns:1fr 1fr}.section-modal-actions .btn{width:100%}.section-time-input input{max-width:none;flex:1}}


/* Deferred guidance panel */
.program-coach{overflow:hidden}
.coach-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.coach-copy{min-width:0}
.coach-kicker{display:block;margin-bottom:6px;font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--sage,#667a6d)}
.program-coach h3{margin:0;font-size:20px;line-height:1.25}
.coach-stats{flex:0 0 auto;gap:8px}
.coach-stats .stat{min-width:92px;padding:8px 11px;border-radius:12px;background:rgba(105,125,112,.07)}
.coach-stats .stat span{font-size:10px}
.coach-stats .stat b{font-size:14px}
.coach-progress-track{height:5px;margin:17px 0 14px;border-radius:99px;background:rgba(105,125,112,.11);overflow:hidden}
.coach-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--sage,#718578);transition:width .25s ease}
.coach-message{font-size:14px;line-height:1.55;color:var(--text,#36413b)}
.program-coach[data-tone="attention"] .coach-kicker{color:#9a704b}
.program-coach[data-tone="attention"] .coach-progress-track span{background:#b4875d}
.program-coach[data-tone="ready"] .coach-kicker{color:#557461}
.program-coach[data-tone="ready"] .coach-progress-track span{background:#557461}
@media(max-width:620px){.coach-head{display:block}.coach-stats{display:flex!important;margin-top:14px;width:100%}.coach-stats .stat{flex:1}.coach-progress-track{margin-top:14px}.program-coach h3{font-size:18px}}

/* Reset modal: match the Create section in-app experience */
.reset-modal-card>p{margin:0 0 22px;color:var(--muted,#6d746f);line-height:1.5}
.reset-modal-card .section-modal-actions{margin-top:0}
.reset-modal-card #confirmReset{min-width:120px}

/* Mat unavailable feature state */
#autoBuild.mat-unavailable{background:#a85f55!important;border-color:#a85f55!important;color:#fff!important;box-shadow:none}
#autoBuild.mat-unavailable:hover{background:#945148!important;border-color:#945148!important}

/* Exercise layers */
.layer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.layerDelete{border:0;background:transparent;color:#9b5b52;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}
.layerDelete:hover{background:rgba(155,91,82,.1)}
.layer-actions{display:flex;justify-content:flex-start;margin-top:-2px}
.layer-actions .btn{padding:7px 11px;font-size:12px}

.layerDelete{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;background:transparent;color:#9b5b52;cursor:pointer;padding:5px;border-radius:8px}
.layerDelete .trash-icon{width:16px;height:16px}

.exercise-equipment{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:8px 0 4px;border-top:1px solid rgba(74,88,77,.12)}
.exercise-equipment-label{font-size:12px;font-weight:700;color:#4a584d;margin-right:2px}
.exercise-equipment label{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#4a584d;white-space:nowrap;cursor:pointer}
.exercise-equipment input{width:15px;height:15px;margin:0;accent-color:#6f806f}
@media(max-width:700px){.exercise-equipment{gap:10px 14px}.exercise-equipment-label{width:100%}}

.library-item-actions{display:flex;align-items:center;gap:7px}.movement-favourite{border:0;background:transparent;color:#a9ada7;font-size:20px;line-height:1;padding:5px 2px;cursor:pointer}.movement-favourite:hover{color:#c8a947}.movement-favourite.is-favourite{color:#e0b62f}

.saved-movement-note{font-size:50%}

.movement-favourite.free-favourite{color:#c9ad63;opacity:.42}.movement-favourite.free-favourite:hover{color:#c9ad63;opacity:.65}

.deferred-explain b{text-align:center;display:block}

.deferred-explain>div{text-align:center}

.locked-save-movement{background:var(--pro)!important;border-color:var(--pro)!important;color:#fff!important}.locked-save-movement:hover{background:var(--pro)!important;border-color:var(--pro)!important;color:#fff!important;filter:brightness(.94)}

.layer-actions{display:flex;align-items:center;gap:10px}.layer-actions .saveMovement,.layer-actions .saved-movement-note{margin-left:auto}

/* Legal pages and footer */
.site-footer{max-width:1180px;margin:18px auto 28px;padding:18px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:12px}.site-footer span:last-child{display:flex;gap:16px}.site-footer a{font-weight:700;text-decoration:none}.legal-shell{max-width:860px;margin:40px auto;padding:0 20px}.legal-shell>a{display:inline-block;margin-bottom:18px;font-weight:700;text-decoration:none}.legal-card{padding:clamp(22px,5vw,46px)}.legal-card h1{margin-top:0;font-size:clamp(30px,5vw,44px)}.legal-card h2{margin-top:28px;font-size:19px}.legal-card p{line-height:1.7}.legal-updated{color:var(--muted);font-size:13px}.legal-note{margin-top:30px;padding:14px;border-radius:12px;background:#fbf7ed;color:#735b2f}.legal-consent{display:flex;align-items:flex-start;gap:9px;margin:18px 0;color:var(--muted);font-size:12px;line-height:1.5}.legal-consent input{width:auto;margin-top:3px;flex:0 0 auto}.legal-consent a{font-weight:800}@media(max-width:600px){.site-footer{flex-direction:column}.site-footer span:last-child{flex-wrap:wrap}.legal-shell{margin-top:20px}}

/* Keep the primary Unlock Pro CTA clearly actionable for Free users. */
body.free-user a.btn.pro[href*="unlock-pro"],
body.free-user #unlockProBtn,
body.free-user .unlock-pro-btn{
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:#fff!important;
}

/* Plan badge colours: align Free and Pro status circles with the MyPilates Toolbox palette. */
.plan{background:var(--pro);color:#fff}
.plan.pro{background:var(--accent);color:#fff}

/* Align section Props in full rows, with no options beneath the Props label. */
.exercise-equipment{
  display:grid;
  grid-template-columns:max-content repeat(4,minmax(0,max-content));
  justify-content:start;
  column-gap:14px;
  row-gap:10px;
  align-items:center
}
.exercise-equipment-label{
  grid-column:1;
  grid-row:1 / span 2;
  align-self:start;
  padding-top:1px;
  margin-right:2px
}
.exercise-equipment label{margin:0}
.exercise-equipment label:nth-of-type(1){grid-column:2;grid-row:1}
.exercise-equipment label:nth-of-type(2){grid-column:3;grid-row:1}
.exercise-equipment label:nth-of-type(3){grid-column:4;grid-row:1}
.exercise-equipment label:nth-of-type(4){grid-column:5;grid-row:1}
.exercise-equipment label:nth-of-type(5){grid-column:2;grid-row:2}
.exercise-equipment label:nth-of-type(6){grid-column:3;grid-row:2}
.exercise-equipment label:nth-of-type(7){grid-column:4;grid-row:2}
.exercise-equipment label:nth-of-type(8){grid-column:5;grid-row:2}
@media(max-width:700px){
  .exercise-equipment{
    grid-template-columns:repeat(2,max-content);
    column-gap:14px
  }
  .exercise-equipment-label{
    grid-column:1/-1;
    grid-row:auto;
    width:auto;
    padding-top:0
  }
  .exercise-equipment label:nth-of-type(n){
    grid-column:auto;
    grid-row:auto
  }
}

/* Match Class Overview and Class Structure heading typography. */
.sidebar .card > h3,
.grid main > .card:first-of-type h2{
  font-size:1.5em;
  font-weight:700;
  line-height:1.2;
  font-family:inherit
}

/* Faint running total beneath Class Overview duration. */
.planned-time-total{margin-top:6px;font-size:11px;color:var(--muted);opacity:.72;font-weight:600}

/* Position Add Layer/Progression at the far right of the exercise box. */
.layer-actions .addLayer{margin-left:auto}

/* Centre Save to Exercise Library at the bottom while keeping Add Layer/Progression right-aligned. */
.layer-actions{position:relative;justify-content:flex-end;min-height:34px}
.layer-actions .saveMovement,
.layer-actions .saved-movement-note{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  margin-left:0
}
.layer-actions .addLayer{margin-left:auto}

/* Full-width auto-growing Modifications field below Layers/Progressions. */
.exercise-modifications{grid-column:1/-1}
.exercise-modifications label{display:block;font-size:12px;font-weight:700;color:#4a584d;margin-bottom:5px}
.exercise-modifications textarea{
  display:block;
  width:100%;
  min-height:36px;
  height:36px;
  resize:none;
  overflow:hidden;
  box-sizing:border-box
}

/* Match Modifications styling exactly to Layer/Progression fields. */
.exercise-modifications{grid-column:1/-1}
.exercise-modifications label{display:block}
.exercise-modifications textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 11px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  line-height:normal;
  min-height:39px;
  height:39px;
  resize:none;
  overflow:hidden;
  box-sizing:border-box
}

/* My Programs search and Class Overview filters. */
.saved-programs-tools{margin:16px 0 18px}
.saved-programs-tools>input[type="search"]{width:100%;margin-bottom:10px}
.saved-program-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.saved-program-filters input,.saved-program-filters select{width:100%;min-width:0}
.saved-program-filters .btn{justify-self:start}
.saved-programs-empty{padding:20px 8px;color:var(--muted);text-align:center}
@media(max-width:760px){.saved-program-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.saved-program-filters{grid-template-columns:1fr}}

/* My Programs controls use the same visual language as Class Structure. */
.saved-programs-card{color:var(--ink);font-family:inherit}
.saved-programs-tools{
  margin:16px 0 18px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fafaf8
}
.saved-programs-tools input,
.saved-programs-tools select{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  outline:none
}
.saved-programs-tools input::placeholder{color:var(--muted)}
.saved-programs-tools input:focus,
.saved-programs-tools select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--soft)
}
.saved-programs-tools>input[type="search"]{
  width:100%;
  margin:0 0 10px;
  padding:11px;
  border-radius:11px
}
.saved-program-filters{gap:8px}
.saved-program-filters .btn{
  justify-self:start;
  border-radius:9px;
  background:var(--soft);
  color:var(--ink);
  border:1px solid var(--line)
}

/* Keep Clear filters on one line. */
#clearProgramFilters{white-space:nowrap}

/* Compact My Programs action buttons. */
#clearProgramFilters,
.saved-program-row .openCloudProgram,
.saved-program-row .duplicateCloudProgram{
  padding:6.875px 8.75px;
  border-radius:7.5px;
  font-size:62.5%;
  line-height:1.2;
}

/* PDF export: omit unused Class Overview fields and rows. */
@media print{
  .print-brief-table td.print-empty,
  .print-brief-table tr.print-empty{display:none!important}
}

/* Keep website footer links out of exported/printed PDFs. */
@media print{
  .site-footer{display:none!important}
}

/* Subtle helper text beneath Class Overview Props. */
.props-help{margin:3px 0 8px;font-size:11px;line-height:1.35;color:var(--muted);opacity:.72}

/* PDF export attribution footer. */
.print-toolbox-footer{display:none}
@media print{
  .print-toolbox-footer{
    display:block;
    text-align:center;
    margin-top:24px;
    padding-top:10px;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:10px;
  }
}

/* Pro-only guidance beneath Class Overview. */
.class-overview-pro-help{margin:-10px 0 14px;font-size:11px;line-height:1.4;color:var(--muted);opacity:.72}


/* Layer/Progression fields expand vertically as instructors type. */
.exercise-layer textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 11px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  line-height:normal;
  min-height:39px;
  height:39px;
  resize:none;
  overflow:hidden;
  box-sizing:border-box
}

/* Instructor Notes starts as one line and expands with content. */
#notes{min-height:39px;height:39px;resize:none;overflow:hidden;box-sizing:border-box}

/* Header logo placeholder: sized to the title + tagline block. */
.hero-brand{display:flex;align-items:stretch;gap:16px;min-width:0}
.hero-copy{min-width:0}
.site-logo-placeholder{
  width:76px;
  height:76px;
  flex:0 0 76px;
  align-self:center;
  border:1px dashed var(--line);
  border-radius:50%;
  background:var(--soft);
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}
@media(max-width:850px){
  .hero-brand{width:100%;justify-content:space-between}
  .site-logo-placeholder{width:64px;height:64px;flex-basis:64px}
}
@media(max-width:520px){
  .site-logo-placeholder{width:56px;height:56px;flex-basis:56px}
}

.site-logo-placeholder{border:0;background:transparent;overflow:hidden}
.site-logo-placeholder img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}

/* Compact signed-in account menu. */
.account{position:relative}
.account-menu-trigger{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border:0;background:transparent;padding:8px 4px;cursor:pointer}
.account-menu-trigger:hover .hello-name{color:var(--accent)}
.account-menu-chevron{font-size:12px;color:var(--muted);transition:transform .18s ease}
.account-menu-trigger[aria-expanded="true"] .account-menu-chevron{transform:rotate(180deg)}
.account-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  min-width:150px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  box-shadow:0 10px 28px rgba(36,49,45,.12);
}
.account-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:8px;color:var(--ink);font:inherit;cursor:pointer}
.account-menu button:hover{background:var(--soft)}
.account-legacy-logout{display:none!important}

/* Refined account control to match MyPilates Toolbox cards and buttons. */
.account-menu-trigger{
  gap:9px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--ink);
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  box-shadow:0 1px 2px rgba(36,49,45,.04);
}
.account-menu-trigger:hover{background:var(--soft);border-color:#cbd5d0}
.account-menu-trigger:hover .hello-name{color:var(--ink)}
.account-menu-chevron{font-size:18px;line-height:.7;color:var(--accent);font-weight:700;transform-origin:center}
.account-menu{
  top:calc(100% + 6px);
  min-width:170px;
  padding:7px;
  border-radius:10px;
  box-shadow:0 8px 22px rgba(36,49,45,.10);
}
.account-menu button{
  padding:10px 12px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
}
.account-menu button + button{margin-top:2px}

/* Account opens as a modal, using the My Programs visual language. */
.account-modal{position:fixed;inset:0;z-index:1000;background:rgba(36,49,45,.48);display:grid;place-items:center;padding:20px}
.account-modal-card{position:relative;width:min(620px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;color:var(--ink);font-family:inherit}
.account-modal .account-panel-head{align-items:center;margin-bottom:4px}
.account-modal .account-panel-head h2{margin:0;font-size:24px}
.account-modal .account-panel-head p{margin:3px 0 0}
.account-modal .account-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:var(--soft);color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.account-modal .account-details{margin:16px 0 18px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fafaf8}
.account-modal .account-details>div:first-child{border-top:0}
.account-modal .actions{margin-top:14px}
@media(max-width:600px){.account-modal{padding:12px}.account-modal-card{max-height:calc(100vh - 24px)}}

.account-value{display:flex;align-items:center;justify-content:flex-end;gap:9px;text-align:right}
.account-inline-action{border:0;background:transparent;padding:2px 0;color:var(--accent);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.account-inline-action:hover{text-decoration:underline}
.account-edit-panel{margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fafaf8}
.account-edit-panel .actions{margin-top:10px}

.account-email-value{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.account-password-action{display:block}

/* Simple signed-in header actions. */
.signed-in-account-links{display:inline-flex;align-items:center;gap:9px;white-space:nowrap}
.header-account-link{border:0;background:transparent;padding:6px 0;color:var(--accent);font:inherit;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer}
.header-account-link:hover{text-decoration:underline}
.header-account-separator{color:var(--line);font-size:14px}

/* Match returning Pro sign-in links to signed-in header actions. */
.header-signin-row{display:inline-flex;align-items:center;gap:9px}
.header-signin-row .header-account-label{cursor:default;text-decoration:none}
.header-signin-row .pro-signin-link{color:var(--accent);font-weight:700;text-decoration:none}
.header-signin-row .pro-signin-link:hover{text-decoration:underline}

/* Mobile header actions align to the right edge. */
@media(max-width:850px){
  .account{width:100%;display:flex;flex-direction:column;align-items:flex-end}
  .pro-access-links{align-items:flex-end;text-align:right}
  .pro-primary-row,.pro-returning-row{justify-content:flex-end}
  .signed-in-account-links{align-self:flex-end;justify-content:flex-end}
}

/* Final mobile Free header alignment: right align upgrade and sign-in actions. */
@media(max-width:620px){
  .account .pro-access-links:not(.hidden){
    display:grid!important;
    grid-template-columns:max-content max-content max-content;
    justify-content:end!important;
    justify-items:end!important;
    align-self:stretch!important;
    width:100%!important;
    text-align:right!important;
  }
}

/* Auth-page brand lockup: logo sits to the left of MyPilates, matching homepage scale. */
.auth-brand-heading{display:flex;align-items:center;gap:16px;margin-top:20px}
.auth-brand-heading img{display:block;width:76px;height:76px;flex:0 0 76px;object-fit:contain;border-radius:50%}
.auth-brand-heading h1{margin:0}
@media(max-width:850px){.auth-brand-heading img{width:64px;height:64px;flex-basis:64px}}
@media(max-width:520px){.auth-brand-heading img{width:56px;height:56px;flex-basis:56px}}

/* Unlock Pro CTA: muted until Terms are accepted, then solid logo green. */
.unlock-submit.terms-pending{background:#a9b9b3!important;border-color:#a9b9b3!important;color:#fff!important}
.unlock-submit.terms-agreed{background:#476c60!important;border-color:#476c60!important;color:#fff!important}
.unlock-submit.terms-agreed:hover{background:#3f6156!important;border-color:#3f6156!important}

/* Give the Pro sign-in card enough desktop width to keep its brand title on one line. */
@media(min-width:851px){
  .login-shell{max-width:680px}
  .login-shell .auth-brand-heading h1{white-space:nowrap}
}

/* Mobile builder header: actions sit above the logo/title while retaining right alignment. */
@media(max-width:850px){
  .hero{display:flex;flex-direction:column;align-items:stretch}
  .hero .account{order:1;width:100%;align-items:flex-end;margin-bottom:2px}
  .hero .hero-brand{order:2;width:100%}
  .hero .pro-access-links{align-items:flex-end;text-align:right}
  .hero .pro-primary-row,.hero .pro-returning-row{justify-content:flex-end}
  .hero .signed-in-account-links{align-self:flex-end;justify-content:flex-end}
}

/* Centre all footer content and legal links on mobile. */
@media(max-width:600px){
  .site-footer{align-items:center;text-align:center}
  .site-footer span:last-child{justify-content:center;width:100%}
}

/* Mobile brand lockup: keep title/tagline directly beside the logo. */
@media(max-width:850px){
  .hero .hero-brand{justify-content:flex-start;align-items:center;gap:12px}
  .hero .hero-copy{text-align:left}
}

/* Clean on-screen program view for teaching from My Programs. */
.teach-program-card{width:min(1180px,94vw);max-width:1180px;max-height:92vh;overflow:auto}
.teach-program-card>h2{margin:0 42px 18px 0}
.teach-program-preview{font-size:14px}
.teach-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:22px}
.teach-overview>div{padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.teach-overview b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:4px}
.teach-overview span{display:block}
.teach-sections section{margin:0 0 24px}
.teach-sections h3{margin:0 0 8px;color:var(--accent)}
.teach-table-wrap{overflow-x:auto}
.teach-sections table{width:100%;border-collapse:collapse;background:#fff}
.teach-sections th,.teach-sections td{padding:10px 12px;border:1px solid var(--line);text-align:left;vertical-align:top}
.teach-sections th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;background:var(--soft)}
@media(max-width:700px){
 .teach-program-card{width:96vw;max-height:94vh;padding:16px}
 .teach-overview{grid-template-columns:1fr 1fr}
 .teach-sections th,.teach-sections td{padding:8px;font-size:13px}
}
@media(max-width:480px){.teach-overview{grid-template-columns:1fr}}

/* My Programs: Teach uses exactly the same shape, size and typography as Open and Duplicate. */
.saved-program-row .teachCloudProgram{
  padding:6.875px 8.75px;
  border-radius:7.5px;
  font-size:62.5%;
  line-height:1.2;
}
