.program-directions{display:flex;gap:8px;padding:14px 22px;border-bottom:1px solid #29454d;overflow-x:auto;flex-shrink:0}
.program-directions button{white-space:nowrap;min-height:44px;padding:10px 16px;border:1px solid #34535b;border-radius:12px;color:#a9c4c9;background:#10242c;cursor:pointer;font:inherit;font-size:13px}
.program-directions button[aria-pressed=true]{background:#19443e;border-color:#7edbc4;color:#c4f4e5}
.program-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.program-topics{padding:24px 18px;border-right:1px solid #29454d;background:#091a22;display:flex;flex-direction:column;gap:9px}
.program-topics h3{font-size:20px;margin:8px 0}.program-topics p{font-size:12px;line-height:1.7;color:#95b0b7}
.program-topics>button,.program-lessons button{border:1px solid #304b54;border-radius:13px;background:#10262f;color:#c8dedf;text-align:left;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-height:44px;width:100%;font:inherit}
.program-topics>button[aria-current=step],.program-lessons button[aria-current=step]{border-color:#80d7c4;background:#173c39}
.program-topics button span,.program-lessons button span{font-size:10px;letter-spacing:.08em;color:#81cdbd}.program-topics button b,.program-lessons button b{font-size:13px;line-height:1.55;font-weight:500}.program-topics button small,.program-lessons button small{font-size:11px;color:#93b1b7}
.program-main{min-width:0;padding:28px 30px 34px}.program-topic-heading h3{font-size:28px;font-weight:550;line-height:1.3;margin:8px 0 14px;letter-spacing:-.03em}.program-topic-heading p{font-size:14px;line-height:1.7;color:#b1c9cc}.program-topic-heading small{display:block;font-size:12px;line-height:1.7;color:#8daeb5}#authorLevelReadiness{color:#8bdecb;font-variant-numeric:tabular-nums}
.program-lessons{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}.program-lessons li{min-width:0}.program-lessons button{height:100%}
.program-objective,.program-brief{border:1px solid #34545a;background:#102b31;border-radius:14px;padding:18px;margin:16px 0}.program-objective b,.program-brief>span{font-size:11px;color:#8edecb;letter-spacing:.06em}.program-objective p,.program-brief p{font-size:14px;line-height:1.7;color:#c3d9db;margin:8px 0}.program-objective small,.program-brief small{color:#9ab8bd;font-size:12px;line-height:1.7}.program-brief{margin:0 0 20px}.program-brief h4{font-size:18px;font-weight:500;line-height:1.5;margin:10px 0}
.program-editor{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px}.program-editor>*{min-width:0}.program-editor .author-blocks p{font-size:12px;color:#91adb6;line-height:1.7}.program-editor .author-blocks button{min-height:60px}.program-format{color:#9fd8cb;font-size:12px}
.program-source-notes{border-top:1px solid #34545a;margin-top:24px;padding-top:14px}.program-source-notes summary{cursor:pointer;min-height:44px;font-size:14px;line-height:1.6;color:#a2dfd0}.program-source-notes p,.program-demo-note{font-size:12px;line-height:1.8;color:#99b5bc}
.program-review-check{display:flex!important;flex-direction:row!important;gap:12px!important;align-items:flex-start;margin-top:26px!important;padding:18px;border:1px solid #34545a;border-radius:14px;font-size:13px!important;line-height:1.7!important;color:#bdd1d4!important}.program-review-check input{width:22px!important;height:22px;flex:0 0 22px;margin:2px 0;accent-color:#8bdcca}
.program-workspace button:focus-visible,.program-directions button:focus-visible{outline:2px solid #8ce6cc;outline-offset:3px}.author-footer a.author-secondary{display:flex;align-items:center;text-decoration:none;font-size:12px}
.light-theme .program-workspace{background:#f2f7f4;color:#25484b}.light-theme .program-topics{background:#e5eee9;border-color:#b9cec4}.light-theme .program-topics>button,.light-theme .program-lessons button,.light-theme .program-directions button{background:#edf5f0;color:#294d4d;border-color:#b1c9bf}.light-theme .program-topics>button[aria-current=step],.light-theme .program-lessons button[aria-current=step],.light-theme .program-directions button[aria-pressed=true]{background:#d5e9df;border-color:#3b8a72;color:#194e40}.light-theme .program-objective,.light-theme .program-brief{background:#e2eee7;border-color:#b1c9bf}.light-theme .program-main p,.light-theme .program-main small,.light-theme .program-topics p,.light-theme .program-topics small,.light-theme .program-lessons small{color:#527473}.light-theme .program-main h3,.light-theme .program-main h4,.light-theme .program-objective p,.light-theme .program-review-check{color:#254d4a!important}.light-theme .program-topics span,.light-theme .program-lessons span,.light-theme .program-objective b,.light-theme .program-brief>span,.light-theme .program-source-notes summary{color:#236d59}
@media(max-width:1100px){.program-editor{grid-template-columns:1fr}.program-editor .author-blocks ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.program-main{padding:22px}.program-workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:700px){.program-directions{padding:10px 14px}.program-workspace{display:block}.program-topics{border-right:0;border-bottom:1px solid #29454d;padding:16px;display:grid;grid-template-columns:repeat(15,210px);overflow-x:auto}.program-topics>div{grid-column:1/-1;max-width:calc(100vw - 64px)}.program-topics>button{grid-row:2}.program-topics>.program-legacy{grid-row:3;grid-column:1/-1;width:fit-content}.program-main{padding:20px 16px}.program-topic-heading h3{font-size:25px}.program-lessons{grid-template-columns:1fr 1fr}.program-lessons button{padding:12px}.program-editor .author-blocks ol{grid-template-columns:1fr}.program-review-check{padding:14px}.program-workspace input,.program-workspace textarea,.program-workspace select{font-size:16px!important}.program-workspace .author-tabs{position:static}}

.program-topic-select{display:none!important}.author-dialog select{width:100%;padding:12px;background:#10252c;color:#d4e4e4;border:1px solid #45636a;border-radius:10px;font:inherit;margin-top:8px}.author-dialog select:focus-visible{outline:2px solid #8cdeca;outline-offset:2px}.light-theme .author-dialog select{background:#f5faf6;color:#25494e;border-color:#a9c2b6}
@media(max-width:700px){.program-topics{display:block}.program-topics>div{max-width:none}.program-topics>div>p:last-child{display:none}.program-topics>button:not(.program-legacy){display:none}.program-topic-select{display:block!important;margin:12px 0}.program-topics .program-legacy{font-size:12px;min-height:44px;padding:10px 12px}.program-topics h3{font-size:18px}.program-topics>div>.library-eyebrow{margin-top:0}}

.program-demo-source{margin:16px 0;padding:16px;border:1px solid #9bcfc244;border-radius:14px;background:#69c9ad0c;color:var(--text-primary,#e4eeed)}
.program-demo-source p{font-size:13px;line-height:1.6;color:var(--text-secondary,#a9b9b8);margin:8px 0 12px}.program-demo-source button{white-space:normal;min-height:44px}
.profile-rank-summary progress{width:100%;max-width:360px;height:6px;accent-color:#71d9bc}.profile-rank-summary>div{min-width:0}.profile-rank-summary small{display:block;max-width:500px;line-height:1.5}
.library-player-level{color:#8bdfcb;letter-spacing:.12em;font-size:14px}

.program-direction-select{display:none;font-size:13px;color:#bdd1d4;padding:12px 16px;margin:0;border-bottom:1px solid #29454d}
@media(max-width:700px){.program-directions{display:none}.program-direction-select{display:block}.program-direction-select select{font-size:16px;min-height:48px}.program-lessons{grid-template-columns:1fr}}
.light-theme .program-direction-select{color:#254d4a;border-color:#b9cec4}

/* Clip the outer frame so field focus/scrollIntoView cannot scroll its header away.
   The workspace must have a bounded height before it can own scrolling.
   On compact/short screens the dialog itself is the single vertical scroller. */
.author-dialog[open]:has(>.program-workspace){display:flex;flex-direction:column;height:92dvh;overflow:clip;overscroll-behavior:contain}
.author-dialog:has(>.program-workspace)>:not(.program-workspace){flex-shrink:0}
.author-dialog>.program-workspace{grid-template-rows:minmax(0,1fr);overflow:clip;min-height:0}
.program-workspace>.program-topics,.program-workspace>.program-main,.program-workspace>.author-preview{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
.program-workspace>.program-topics>*{flex-shrink:0}
.program-workspace>.program-topics:focus-visible,.program-workspace>.program-main:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px}
@media(max-width:700px),(max-height:600px){
 .author-dialog[open]:has(>.program-workspace){display:block;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .author-dialog>.program-workspace{overflow:visible;grid-template-rows:auto}
 .program-workspace>.program-topics,.program-workspace>.program-main,.program-workspace>.author-preview{overflow:visible;scrollbar-gutter:auto;overscroll-behavior-y:auto}
 .author-dialog:has(>.program-workspace)>.author-footer{position:static}
}

@media(max-width:700px){.author-dialog[open]:has(>.program-workspace){height:100dvh;max-height:100dvh}}

.program-workspace>.author-preview{max-height:100%;margin:0 auto}
@media(max-width:700px),(max-height:600px){.program-workspace>.author-preview{max-height:none}}
