html.cwAdvancedCreation{color-scheme:dark}html.cwAdvancedCreation *{box-sizing:border-box}html.cwAdvancedCreation [hidden]{display:none!important}html.cwAdvancedCreation .advContent{max-width:1500px;padding:16px 24px 30px}html.cwAdvancedCreation button,html.cwAdvancedCreation select,html.cwAdvancedCreation textarea{font:inherit}html.cwAdvancedCreation button{cursor:pointer}html.cwAdvancedCreation button:disabled{opacity:.45;cursor:default}html.cwAdvancedCreation button:focus-visible,html.cwAdvancedCreation select:focus-visible,html.cwAdvancedCreation textarea:focus-visible{outline:2px solid #c6b8ff;outline-offset:2px}.advSticky{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#131c2b;padding:10px 24px;border-bottom:1px solid #54617b}.advSticky label,.advSticky span{font-size:12px}.advSticky span{color:#adbbd0;margin-left:auto}.advSticky select{max-width:340px}.advHeading h1{font-size:clamp(24px,2.2vw,32px);margin:4px 0 7px}.advHeading p{font-size:13px;line-height:1.55;max-width:none;margin:5px 0 12px;color:#c3cede}.advHeading .eyebrow{font-size:10px;letter-spacing:.13em;color:#c4b4f1;margin:0}.advWorkspace{border:1px solid #485d79;border-radius:12px;background:#0d141e;padding:12px}.advWorkspace button,.advSticky select,#advGuide button{background:#0c121c;border:1px solid #43536b;border-radius:6px;color:#dce5f3;padding:8px 12px;font-size:12px;min-height:34px}.advWorkspace select{background:#182338;border:1px solid #7088ae;border-radius:5px;color:#e1e9f6;padding:5px;font-size:12px}.advTop,.advListen,.advPaletteHeader,.advReviewActions,.advRecord,#advEditTools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.advTop{justify-content:space-between;gap:12px;margin-bottom:8px}#advSource{font-size:12px;color:#d6dfed;font-weight:bold}.advTransport{margin:0!important;padding:4px!important;gap:6px!important}.advTransport label{font-size:11px;display:flex;align-items:center;gap:7px}.advTransport input{width:90px}.advTransport button{min-width:36px;padding:7px 9px}.advListen{padding:6px;background:#131d2c;border:1px solid #40536f;border-radius:6px;margin-bottom:9px}.advListen button{font-size:11px;padding:6px 10px;min-height:31px}.advListen button[aria-pressed=true],#advLaneTabs button[aria-pressed=true]{background:#332b4d;border-color:#bbabed;color:#f5edff}.advPalette{border:1px solid #4f6482;background:#141e2d;border-radius:8px;padding:8px;margin:8px 0 10px}.advPaletteHeader{font-size:11px;gap:12px}.advPaletteHeader strong{font-size:12px}.advPaletteHeader #advPosition{color:#bccce1;margin-left:auto}.advPaletteHeader button{font-size:11px;min-height:29px;padding:5px 9px}#advLaneTabs{display:flex;gap:5px}#advEditTools{justify-content:center;font-size:11px;color:#b9c7da;min-height:34px;margin:5px 0}#advArticulation{position:relative}#advArticulation summary{cursor:pointer;padding:6px}#advArticulation[open] label{position:absolute;top:30px;left:0;z-index:15;width:230px;padding:10px;background:#1d2b40;border:1px solid #7187a6;border-radius:6px}#advChoices{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:8px;border-top:1px solid #35475f}#advChoices button{min-width:44px;font-size:12px;padding:7px 10px}#advChoices .advGesture{min-width:105px}#advChoices button small{display:block;font-size:9px;color:#b4c4d9;margin-top:3px}#advChoices .advRest{border-style:dashed}#advPages{display:flex;gap:7px;margin:6px 0}#advPages button{font-size:11px}.advTimeline{display:grid;grid-template-columns:54px repeat(4,minmax(0,1fr));gap:5px;position:relative}.advRowLabel{font-size:11px;color:#adbed7;display:flex;align-items:center}.advBarHead{background:#1b2639;border:1px solid #455d7c;border-radius:5px;text-align:center;min-height:66px;padding:7px 3px;display:flex;flex-direction:column;gap:3px;justify-content:center}.advBarHead small{font-size:9px;color:#bed0e5}.advBarHead b{font-size:13px}.advBarHead span{font-size:9px;color:#d6deea}.advTrack{position:relative;border:1px solid #3e536e;border-radius:5px;min-height:64px;padding:0;background:#111a28;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.advBeat{position:relative;z-index:1;background:transparent!important;border:0!important;border-left:1px solid #2c3c53!important;border-radius:0!important;padding:20px 0 0!important;min-width:0!important;min-height:62px!important;color:#7f94b1!important;font-size:11px!important}.advBeat:first-child{border-left:0!important}.advBeat:before{content:attr(data-beat-label);position:absolute;left:0;right:0;top:5px;font-size:9px;color:#aabdd7}.advBeat.selected{outline:2px solid #c8b5f6;outline-offset:-2px;z-index:5}.advNote{position:absolute;z-index:3;top:24px;height:29px;border:1px solid;border-radius:4px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:11px;pointer-events:none;overflow:hidden;white-space:nowrap}.advNote.melody{background:#46375f;border-color:#bf9de7;color:#f2e8ff}.advNote.harmony{background:#293f61;border-color:#7a9ed3;color:#e2edff}.advNote.bass{background:#504827;border-color:#d9bd56;color:#ffefab}.advNote.outside{background:#69482a;border-color:#f0b351;color:#fff2ce}.advNote.borrowed{background:#643f35;border-color:#e79178;color:#ffe6da}.advNote.approach{background:#244d4b;border-color:#77d1ca;color:#dafdf9}.advNote.rest{background:#16202c;border-color:#52647a;color:#a6b5c8;border-style:dashed}.advNote small{font-size:8px;margin-left:4px;opacity:.75}.advNote.sounding{outline:2px solid #fff;outline-offset:-2px}.advBarHead.playing{outline:2px solid #eef4ff;outline-offset:-2px}.advPlayhead{position:absolute;top:21px;bottom:3px;width:2px;background:#fff;z-index:6;box-shadow:0 0 5px #fff;pointer-events:none}.advLegend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#c5d0df;margin:10px 0 7px}.advLegend .melody{color:#c6a5ed}.advLegend .harmony{color:#98b5e3}.advLegend .bass{color:#ebd16a}.advLegend .outside{color:#efb14f}.advLegend .borrowed{color:#eb9a7f}.advLegend .approach{color:#77d1ca}.advKeyboardViewport{overflow-x:auto;border-radius:6px;border:1px solid #596c86}#advKeyboard{height:134px;min-width:950px;display:flex;position:relative;background:#eff3fb}#advKeyboard>div{position:relative;flex:1;border-right:1px solid #9aacc5;color:#0b1320}#advKeyboard>div.black{position:absolute;top:0;height:60%;background:#070c13;border:1px solid #070c13;border-radius:0 0 4px 4px;z-index:2}#advKeyboard>div span{position:absolute;bottom:6px;width:100%;text-align:center;font-size:9px;font-weight:bold}#advKeyboard [data-role=melody]{background:#b895df!important}#advKeyboard [data-role=harmony]{background:#779acf!important}#advKeyboard [data-role=bass]{background:#d8bd61!important}.advStatus{font-size:11px!important;min-height:15px;margin:7px 0!important;max-width:none!important;color:#b9cbdf}.advReviewActions{border-top:1px solid #34475e;padding-top:9px;margin-top:8px;align-items:flex-start}.advReviewActions .advPrimary{background:#b9a8f7;color:#11182a;border-color:#b9a8f7;font-weight:bold}.advReviewActions>details{margin-left:auto;font-size:11px;color:#c9d8ec;max-width:400px;min-width:180px}.advReviewActions summary{padding:8px;cursor:pointer}.advReviewActions textarea{display:block;width:100%;background:#172237;color:#e0eafa;border:1px solid #677e9e;padding:8px;resize:vertical;margin-top:6px}.advReviewActions label{display:block;font-size:11px}.advRecord{margin-top:10px;font-size:11px;color:#aebfd6}#advFeedback{margin-top:12px;padding:13px;border:1px solid #526987;border-radius:8px;background:#141e2c;font-size:13px;line-height:1.6}#advFeedback h2{font-size:17px;margin:0 0 6px}#advFeedback h3{font-size:13px;margin:10px 0 4px}#advFeedback p{max-width:none;font-size:12px;margin:4px 0}#advFeedback ul{padding-left:20px;margin:4px 0}#advFeedback .advGood{color:#b5dfc4}#advFeedback .advIssue{color:#efce98}#advExampleTools{font-size:12px;margin-top:9px;padding:10px;border:1px solid #4c6080;border-radius:7px}#advExampleTools p{font-size:12px;max-width:none;margin:7px 0 0}#advGuide{width:min(1050px,95vw);max-height:90vh;overflow:auto;background:#101923;border:1px solid #7388a5;color:#e5edf8;border-radius:10px;padding:24px}#advGuide::backdrop{background:#000b}#advGuide h2{font-size:27px}#advGuideBody{font-size:14px;line-height:1.75}#advGuideBody p{max-width:none}#advGuideBody h3{font-size:18px;margin:22px 0 8px}#advGuideBody .advGuideGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#advGuideBody article{padding:15px;background:#162232;border:1px solid #344b67;border-radius:8px}.advGuideGrid h3{margin-top:0!important}@media(max-width:1100px){html.cwAdvancedCreation .advContent{padding:12px}.advTop{gap:6px}.advPaletteHeader #advPosition{margin-left:0}.advSticky{padding:9px 12px}.advSticky span{display:none}.advReviewActions>details{margin-left:0}.advKeyboardViewport #advKeyboard{min-width:950px}}@media(max-width:650px){.advTimeline{grid-template-columns:40px repeat(4,minmax(0,1fr))}.advBarHead b{font-size:10px}.advNote{font-size:9px}.advNote small{display:none}#advGuideBody .advGuideGrid{grid-template-columns:1fr}.advListen{gap:5px}.advListen button{font-size:10px;padding:6px}.advTop{align-items:flex-start;flex-direction:column}.advSticky select{max-width:250px}.advTrack,.advBeat{min-height:62px!important}}

/* Keep the new workspace within the established compact lesson measure. */
html.cwAdvancedCreation main>.lesson-nav{position:sticky!important;top:0!important;z-index:100!important}
html.cwAdvancedCreation .advSticky{position:sticky!important;top:var(--adv-nav-height,64px)!important;z-index:90!important}
html.cwAdvancedCreation .advHeading h1{font-size:clamp(24px,2.2vw,32px)!important;line-height:1.25!important;margin:4px 0 7px!important}
html.cwAdvancedCreation .advHeading p{font-size:13px!important;max-width:none!important;line-height:1.5!important}
html.cwAdvancedCreation .advHeading .eyebrow{font-size:10px!important;letter-spacing:.13em!important}
html.cwAdvancedCreation .advWorkspace button{font-size:12px!important}
html.cwAdvancedCreation .advWorkspace .advBeat{font-size:11px!important}
html.cwAdvancedCreation .advWorkspace .advPrimary{background:#b9a8f7!important;color:#10182a!important;border-color:#b9a8f7!important}
html.cwAdvancedCreation #advFeedback,html.cwAdvancedCreation #advTimeline{scroll-margin-top:150px}
html.cwAdvancedCreation #advGuide h2{font-size:27px!important;line-height:1.3!important}

html.cwAdvancedCreation .advListenLabel{font-size:11px;margin-right:auto;display:flex;align-items:center;gap:6px}.advTrack.muted{opacity:.42}

/* Selection remains visible without covering the assigned note or chord. */
html.cwAdvancedCreation .advBeat.selected{z-index:2!important;background:transparent!important}
html.cwAdvancedCreation .advNote{z-index:3!important}
html.cwAdvancedCreation .advTrack[data-edit-target=true]{border-color:#c6b2f5;box-shadow:inset 0 0 0 1px #c6b2f5}
html.cwAdvancedCreation .advBarHead[data-edit-target=true]{outline:2px solid #c6b2f5;outline-offset:-2px}
html.cwAdvancedCreation button.advBarHead{width:100%;min-width:0;display:flex;background:#1b2639!important;padding:7px 3px!important}
html.cwAdvancedCreation button.advBarHead:hover{border-color:#c6b2f5}
html.cwAdvancedCreation #advPosition{font-weight:bold;color:#e0d4ff}
html.cwAdvancedCreation #advFixedNotice{color:#d9e2f1}

html.cwAdvancedCreation .advRowLabel{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}html.cwAdvancedCreation .advRowLabel small{font-size:9px;color:#8e9fb7}

/* Harmony is one whole-bar assignment, not four beat assignments under an overlay. */
html.cwAdvancedCreation .advTrack.harmonyTrack{display:block;padding:4px;min-height:64px}
html.cwAdvancedCreation .advHarmonySlot{position:relative;width:100%;height:54px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#293f61!important;color:#e2edff!important;border:1px solid #7a9ed3!important;padding:4px!important}
html.cwAdvancedCreation .advHarmonySlot b{font-size:12px}
html.cwAdvancedCreation .advHarmonySlot small{font-size:9px;opacity:.8}
html.cwAdvancedCreation .advHarmonySlot.empty{background:#131e2e!important;border-style:dashed!important}
html.cwAdvancedCreation .advHarmonySlot.sounding{outline:2px solid white;outline-offset:-2px}
html.cwAdvancedCreation .advTrack.muted{opacity:1!important}
html.cwAdvancedCreation #advGivenNotice{font-size:11px;color:#b9c9df}
html.cwAdvancedCreation .advRowLabel .advNotHeard{color:#dfbd76}

html.cwAdvancedCreation .advBeatGrid{position:relative;min-height:62px;border-left:1px solid #293a50;pointer-events:none}
html.cwAdvancedCreation .advBeatGrid:first-child{border-left:0}
html.cwAdvancedCreation .advBeatGrid:before{content:attr(data-beat-label);position:absolute;top:5px;left:0;right:0;text-align:center;color:#93a8c5;font-size:9px}

html.cwAdvancedCreation #advTimeline .advTrack>.advHarmonySlot{background:#293f61!important;border-color:#7a9ed3!important;color:#e2edff!important;opacity:1!important}
html.cwAdvancedCreation #advTimeline .advTrack>.advHarmonySlot.empty{background:#131e2e!important;border-color:#637b9c!important}

/* B078AL: transport at the point of composition; direct duration controls. */
html.cwAdvancedCreation .advPaletteHeader{display:grid;grid-template-columns:auto auto 1fr auto;gap:8px 12px;align-items:center}
html.cwAdvancedCreation .advPaletteHeader strong{grid-column:1;grid-row:1}
html.cwAdvancedCreation #advLaneTabs{grid-column:2;grid-row:1}
html.cwAdvancedCreation .advPaletteHeader .advTransport{grid-column:3;grid-row:1;justify-self:center}
html.cwAdvancedCreation #advClear{grid-column:4;grid-row:1}
html.cwAdvancedCreation #advGivenNotice{grid-column:1/3;grid-row:2}
html.cwAdvancedCreation #advPosition{grid-column:3/5;grid-row:2;justify-self:end;margin:0}
html.cwAdvancedCreation #advDurationLabel,html.cwAdvancedCreation #advDurationButtons{display:inline-flex;align-items:center;gap:7px}
html.cwAdvancedCreation #advDurationButtons button[aria-pressed=true]{background:#b9a8f7!important;color:#11182a!important;border-color:#d1c5ff!important}
html.cwAdvancedCreation #advRetake{margin-left:auto;order:10}
html.cwAdvancedCreation #advTimeline .advTrack>.advNote{display:flex!important;visibility:visible!important;opacity:1!important;z-index:4!important}
@media(max-width:1150px){html.cwAdvancedCreation .advPaletteHeader{grid-template-columns:auto 1fr auto}html.cwAdvancedCreation .advPaletteHeader .advTransport{grid-column:1/4;grid-row:2}html.cwAdvancedCreation #advClear{grid-column:3}html.cwAdvancedCreation #advGivenNotice{grid-column:1/3;grid-row:3}html.cwAdvancedCreation #advPosition{grid-column:1/4;grid-row:4;justify-self:start}}
@media(max-width:600px){html.cwAdvancedCreation .advPaletteHeader .advTransport{flex-wrap:wrap;justify-content:center;max-width:100%}html.cwAdvancedCreation #advGivenNotice{grid-column:1/4}}

/* B078AN: register choices and worked examples remain outside the main explanation flow. */
html.cwAdvancedCreation #advRegister{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:5px 0 8px;font-size:11px;color:#b9c9df}
html.cwAdvancedCreation #advRegister button{padding:5px 10px;min-height:29px;font-size:11px!important}
html.cwAdvancedCreation #advRegister button[aria-pressed=true]{background:#332b4d!important;border-color:#bbabed!important}
html.cwAdvancedCreation .advBassGuide{margin:0 0 20px;border-bottom:1px solid #415773;padding-bottom:20px}
html.cwAdvancedCreation .advBassGuide li{margin:7px 0}
html.cwAdvancedCreation .advBassGuide h4{margin:0 0 10px;font-size:16px}
html.cwAdvancedCreation .advBassExample{background:#162232;border:1px solid #405570;border-radius:7px;padding:14px;margin:14px 0}
html.cwAdvancedCreation .advBassTableWrap{overflow-x:auto}
html.cwAdvancedCreation .advBassExample table{border-collapse:collapse;min-width:480px;width:100%;font-size:12px}
html.cwAdvancedCreation .advBassExample td,html.cwAdvancedCreation .advBassExample th{border:1px solid #465d78;padding:7px;text-align:center}
html.cwAdvancedCreation .advBassExample button{font-size:12px;padding:8px 12px}

/* B078AO: compact the editing controls without changing timeline or keyboard geometry. */
html.cwAdvancedCreation main>.lesson-nav{min-height:46px!important;padding:6px 24px!important}
html.cwAdvancedCreation .lesson-actions{gap:6px!important}
html.cwAdvancedCreation .lesson-actions .nav-link{min-height:32px!important;padding:6px 10px!important;font-size:12px!important;line-height:18px!important}
html.cwAdvancedCreation .advSticky{padding:5px 24px!important;gap:10px!important}
html.cwAdvancedCreation .advSticky select{min-height:30px!important;padding:4px 6px!important;font-size:12px!important}
html.cwAdvancedCreation .advContent{padding-top:8px!important}
html.cwAdvancedCreation .advHeading .eyebrow{display:none}
html.cwAdvancedCreation .advHeading h1{font-size:24px!important;margin:0 0 3px!important;line-height:1.2!important}
html.cwAdvancedCreation .advHeading p{font-size:12px!important;line-height:1.4!important;margin:3px 0 8px!important}
html.cwAdvancedCreation .advWorkspace{padding:8px}
html.cwAdvancedCreation .advPlaybackRow{display:flex;align-items:center;gap:10px;padding:4px 6px;margin-bottom:5px;border:1px solid #40536f;border-radius:6px;background:#131d2c}
html.cwAdvancedCreation .advPlaybackRow .advTop{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:0 0 175px;gap:2px;margin:0}
html.cwAdvancedCreation #advSource{font-size:10px;line-height:12px;font-weight:600}
html.cwAdvancedCreation .advListenLabel{font-size:10px;gap:4px}
html.cwAdvancedCreation .advListenLabel select{min-height:28px;padding:3px 5px;font-size:11px}
html.cwAdvancedCreation .advPlaybackRow .advListen{flex:1;min-width:0;margin:0;padding:0;border:0!important;background:transparent;gap:5px}
html.cwAdvancedCreation .advListen button{min-height:30px;padding:5px 8px;font-size:11px!important}
html.cwAdvancedCreation .advPalette{padding:6px;margin:5px 0 6px}
html.cwAdvancedCreation .advPaletteHeader{gap:3px 8px}
html.cwAdvancedCreation .advPaletteHeader #advClear{min-height:28px;padding:4px 8px}
html.cwAdvancedCreation #advLaneTabs{gap:4px}
html.cwAdvancedCreation #advLaneTabs button{min-height:28px;padding:4px 8px;font-size:11px!important}
html.cwAdvancedCreation .advTransport{padding:2px!important;gap:4px!important}
html.cwAdvancedCreation .advTransport button{min-height:28px;min-width:30px;padding:4px 7px}
html.cwAdvancedCreation .advTransport label{gap:5px;font-size:10px}
html.cwAdvancedCreation .advTransport input{width:80px}
html.cwAdvancedCreation #advGivenNotice,html.cwAdvancedCreation #advPosition{font-size:10px;line-height:13px}
html.cwAdvancedCreation #advEditTools{min-height:28px;margin:3px 0;gap:10px;justify-content:center}
html.cwAdvancedCreation #advDurationLabel,html.cwAdvancedCreation #advDurationButtons{gap:4px;font-size:10px}
html.cwAdvancedCreation #advDurationButtons button{min-height:28px;padding:4px 8px;font-size:11px!important}
html.cwAdvancedCreation #advRegister{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:0;min-height:28px;border:0!important;background:transparent;font-size:10px}
html.cwAdvancedCreation #advRegister button{min-height:28px;padding:4px 8px;font-size:11px!important}
html.cwAdvancedCreation #advArticulation summary{padding:4px;font-size:10px}
html.cwAdvancedCreation #advFixedNotice{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html.cwAdvancedCreation #advChoices{gap:5px;padding:5px 2px 2px}
html.cwAdvancedCreation #advChoices button{min-width:36px;min-height:29px;padding:4px 6px;font-size:11px!important}
html.cwAdvancedCreation #advChoices .advGesture{min-width:104px}
html.cwAdvancedCreation #advChoices button small{font-size:8px;margin-top:1px}
html.cwAdvancedCreation #advPages{gap:5px;margin:4px 0}
html.cwAdvancedCreation #advPages button{min-height:28px;padding:4px 8px;font-size:11px!important}
@media(max-width:1150px){html.cwAdvancedCreation main>.lesson-nav{padding-left:12px!important;padding-right:12px!important}html.cwAdvancedCreation .advSticky{padding-left:12px!important;padding-right:12px!important}html.cwAdvancedCreation .advPaletteHeader{grid-template-columns:auto auto 1fr auto}html.cwAdvancedCreation .advPaletteHeader .advTransport{grid-column:3;grid-row:1}html.cwAdvancedCreation #advClear{grid-column:4;grid-row:1}html.cwAdvancedCreation #advGivenNotice{grid-column:1/3;grid-row:2}html.cwAdvancedCreation #advPosition{grid-column:3/5;grid-row:2;justify-self:end}}
@media(max-width:1100px){html.cwAdvancedCreation .advPlaybackRow{flex-direction:column;align-items:stretch;gap:5px}html.cwAdvancedCreation .advPlaybackRow .advTop{flex:initial;flex-direction:row;justify-content:space-between;align-items:center}html.cwAdvancedCreation .advPaletteHeader{grid-template-columns:auto 1fr auto}html.cwAdvancedCreation .advPaletteHeader .advTransport{grid-column:1/4;grid-row:2}html.cwAdvancedCreation #advClear{grid-column:3;grid-row:1}html.cwAdvancedCreation #advGivenNotice{grid-column:1/3;grid-row:3}html.cwAdvancedCreation #advPosition{grid-column:1/4;grid-row:4;justify-self:start}}

/* Key and supplied-part context already appear in the lesson strip and timeline labels. */
html.cwAdvancedCreation #advGivenNotice{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html.cwAdvancedCreation #advEditTools #advPosition{font-size:10px;line-height:13px;margin-left:4px;white-space:normal;max-width:300px}
html.cwAdvancedCreation #advEditTools{gap:8px}
html.cwAdvancedCreation .advContent{padding-top:6px!important}
html.cwAdvancedCreation .advPalette{margin-bottom:4px}
@media(min-width:1101px){html.cwAdvancedCreation .advPlaybackRow .advTop{flex-basis:220px}}
/* B078AP: familiar actions, optional contextual hints and a compact phrase bridge. */
html.cwAdvancedCreation main>.lesson-nav{height:auto!important}
html.cwAdvancedCreation .advActions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:4px 6px;margin-bottom:5px;border:1px solid #65759b;border-radius:6px;background:#131824}
html.cwAdvancedCreation .advActions button{min-height:30px;padding:5px 9px;font-size:11px!important}
html.cwAdvancedCreation .advActions .advPrimary{min-width:145px;font-weight:bold}
html.cwAdvancedCreation .advActions #advRetake{margin-left:0;order:0}
html.cwAdvancedCreation .advPracticeMeta{flex:1;min-width:185px;max-width:300px;margin-left:auto;text-align:right;line-height:12px}
html.cwAdvancedCreation .advPracticeMeta #advSource{display:block;font-size:10px;white-space:nowrap}
html.cwAdvancedCreation .advPracticeMeta small{font-size:9px;color:#bcc9de}
html.cwAdvancedCreation .advPlaybackRow .advTop{flex-basis:160px}
html.cwAdvancedCreation .advListen button{padding:5px 7px;font-size:10px!important}
html.cwAdvancedCreation .advListenLabel{margin:0}
html.cwAdvancedCreation #advPages{align-items:center;flex-wrap:wrap}
html.cwAdvancedCreation .advPhraseDirection{font-size:10px;color:#b7c8dd;margin-left:auto;padding:0 6px}
html.cwAdvancedCreation .advCarry{flex:1;min-width:230px;font-size:10px;line-height:14px;color:#c3d2e7;padding:0 5px}
html.cwAdvancedCreation .advCarry strong{color:#e1e8f5}
html.cwAdvancedCreation #advHintDialog{width:min(660px,94vw);max-height:84vh;overflow:auto;background:#111b2a;border:1px solid #7a8eae;border-radius:9px;color:#e1eafa;padding:18px}
html.cwAdvancedCreation #advHintDialog::backdrop{background:#0009}
html.cwAdvancedCreation .advHintHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;padding:10px 0;background:#111b2a;border-bottom:1px solid #415873}
html.cwAdvancedCreation .advHintHeader h2{font-size:20px!important;line-height:1.3!important;margin:0}
html.cwAdvancedCreation #advHintDialog button{background:#101722;color:#dce8f8;border:1px solid #6c809e;border-radius:5px;padding:7px 12px;min-height:32px;font-size:12px;cursor:pointer}
html.cwAdvancedCreation #advHintDialog button:focus-visible{outline:2px solid #c6b8ff;outline-offset:2px}
html.cwAdvancedCreation #advHintBody p{font-size:13px!important;line-height:1.6!important;max-width:none!important;margin:12px 0}
html.cwAdvancedCreation #advHintBody .advSupportMessage{color:#c5b7ec;font-size:11px!important}
@media(max-width:1100px){html.cwAdvancedCreation .advPlaybackRow .advTop{flex-basis:auto}html.cwAdvancedCreation .advPracticeMeta{max-width:none}html.cwAdvancedCreation .advPracticeMeta #advSource{white-space:normal}}
/* Keep the added support row within the compact desktop workspace. */
html.cwAdvancedCreation .advActions{padding-top:3px;padding-bottom:3px}
html.cwAdvancedCreation .advActions button{height:30px!important;min-height:30px!important;line-height:18px!important;padding:4px 9px!important}
html.cwAdvancedCreation .advPlaybackRow{padding-top:3px;padding-bottom:3px}
html.cwAdvancedCreation .advListen button{height:30px!important;min-height:30px!important;line-height:18px!important;padding:4px 7px!important}
html.cwAdvancedCreation .advListenLabel select{height:30px!important;min-height:30px!important;padding:3px 5px!important}

html.cwAdvancedCreation .advActions #advReview{background:#b9a8f7!important;color:#10182a!important;border-color:#b9a8f7!important;font-weight:700}
