/* 0437. Teacher controls only. Printed resources and pupil presentations keep their geometry. */
@media screen {
html.bb-main.bb-instrument{--bb-radius:9px;--bb-control:44px;--bb-space:12px;--bb-action:var(--bb-theme-accent,#a34422);--bb-action-wash:var(--bb-theme-accentSoft,#f5e8df)}
html.bb-main.bb-instrument:not(.bb-presenting) body{font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
html.bb-main.bb-instrument :is([data-blue-bridge-navigation],#bbWorkspaceNavigation){box-shadow:none!important;border-bottom:1px solid var(--bb-theme-rule)!important;gap:8px!important;padding-block:calc(4px + env(safe-area-inset-top,0px)) 4px!important;min-height:var(--bb-suite-nav-height,56px)!important}
html.bb-main.bb-instrument :is([data-blue-bridge-navigation],#bbWorkspaceNavigation) .suite-symbol{width:46px!important;height:34px!important}
html.bb-main.bb-instrument :is([data-blue-bridge-navigation],#bbWorkspaceNavigation) [data-bb-app-identity]{font:650 16px/1.2 system-ui!important;letter-spacing:-.015em!important}
html.bb-main.bb-instrument :is([data-blue-bridge-navigation],#bbWorkspaceNavigation) :is(a,button){min-height:44px!important;box-shadow:none!important}
html.bb-main.bb-instrument .bb-settings-dialog{padding:20px!important;border-radius:12px!important;border:1px solid var(--bb-theme-rule)!important}
html.bb-main.bb-instrument .bb-settings-dialog :is(button,summary){font-size:14px!important;border-width:1px!important;border-radius:8px!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-heading,.stage-intro,.create-intro,.brief-intro,.setup-intro,.streamlined-hero,.hero,.intro,.library-heading,.setup-primary,.bbdp-page-heading,.import-intro) h1{font:650 clamp(25px,2.5vw,32px)/1.15 system-ui!important;letter-spacing:-.04em!important;margin:0 0 8px!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-heading,.stage-intro,.create-intro,.brief-intro,.setup-intro,.streamlined-hero,.hero,.intro,.library-heading,.setup-primary,.bbdp-page-heading,.import-intro)>p:not(.eyebrow):not(.library-kicker):not(.bb-still-version):not(.bbdp-kicker){font:400 14px/1.5 system-ui!important;color:var(--bb-theme-muted)!important;margin:0!important;max-width:58ch!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-heading,.stage-intro,.create-intro,.brief-intro,.setup-intro,.streamlined-hero,.hero,.intro,.library-heading,.bbdp-page-heading,.import-intro){margin:0 0 22px!important;padding:0!important;border:0!important;background:transparent!important}
html.bb-main.bb-instrument:not(.bb-presenting) :where(.setup-screen,.stage-sheet,.paste-stage,.streamlined-create,.create-surface,.brief-layout,.home-main,.import-shell,.bbdp-main,.day-planner,.library-screen,.setup-primary,#main) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font:400 16px/1.45 system-ui!important;border:1px solid var(--bb-theme-line)!important;border-radius:8px!important;background:var(--bb-theme-sheet)!important;color:var(--bb-theme-ink)!important;box-shadow:none!important;min-width:0;max-width:100%;padding:10px 12px!important}
html.bb-main.bb-instrument:not(.bb-presenting) :where(.setup-screen,.stage-sheet,.paste-stage,.streamlined-create,.create-surface,.brief-layout,.home-main,.import-shell,.bbdp-main,.day-planner,.library-screen,.setup-primary,#main) :is(select,input:not([type=checkbox]):not([type=radio]):not([type=range])){min-height:44px!important;height:auto!important}
html.bb-main.bb-instrument:not(.bb-presenting) :where(.setup-screen,.stage-sheet,.paste-stage,.streamlined-create,.create-surface,.brief-layout,.home-main,.import-shell,.bbdp-main,.day-planner,.library-screen,.setup-primary,#main) :is(button,summary){font-size:14px!important;line-height:1.35!important;min-height:44px!important;border-width:1px!important;box-shadow:none!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.primary,.button-primary,.primary-button,.primary-action,.primary-stage-action,.brief-submit,.streamlined-primary-action,.bbdp-primary-button,.begin-button,.adapt-primary,.bb-flow-primary){background:var(--bb-action)!important;color:#fffefa!important;border-color:var(--bb-action)!important;border-radius:8px!important;font-weight:650!important;box-shadow:none!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.primary,.button-primary,.primary-button,.primary-action,.primary-stage-action,.brief-submit,.streamlined-primary-action,.bbdp-primary-button,.begin-button):disabled{opacity:.5!important;cursor:not-allowed}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.bb-refine-fold,.bb-simple-fold){margin:0!important;padding:10px 0!important;min-height:44px!important;border-color:var(--bb-theme-rule)!important;font:550 14px/1.4 system-ui!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.bb-field-tools){min-height:34px!important;margin:0!important}
html.bb-main.bb-instrument:not(.bb-presenting) .bb-field-tools .bb-try-example{min-height:40px!important;font-size:12px!important;padding:8px 0!important;color:var(--bb-theme-muted)!important}
html.bb-main.bb-instrument .bb-cell-flow{gap:8px!important;padding:4px 0 10px!important;margin-bottom:16px!important}
html.bb-main.bb-instrument .bb-cell-flow button{font-size:13px!important;padding:8px!important;min-height:44px!important}
html.bb-main.bb-instrument .bb-cell-progress{font-size:14px!important}html.bb-main.bb-instrument .bb-cell-progress small{font-size:11px!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-action-bar,.create-actions,.streamlined-create-actions){gap:8px!important;padding-top:12px!important;margin-top:8px!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.field-block,.brief-field,.streamlined-input) label{font:600 13px/1.4 system-ui!important;margin-bottom:8px!important}
html.bb-main.bb-instrument:not(.bb-presenting) textarea:is(#idea-input,#ideaText,#objective,#learning-field,.streamlined-input textarea){min-height:120px!important;height:140px!important;resize:vertical!important}
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-sheet,.create-surface,.streamlined-create,.home-main,.import-shell){max-width:820px!important;margin-inline:auto!important;padding:24px 20px 36px!important}
html.bb-main.bb-instrument .toast{max-width:calc(100vw - 32px)!important;overflow-wrap:anywhere}
html.bb-main.bb-instrument:not(.bb-presenting) :is(#primary-stage-action,#beginBtn,.primary,.button-primary,.primary-button,.primary-action,.primary-stage-action,.brief-submit,.streamlined-primary-action,.bbdp-primary-button,.begin-button,.adapt-primary,.bb-flow-primary):not(:disabled):not(.library-screen .app-header button){background:var(--bb-action)!important;color:var(--bb-theme-sheet)!important;border-color:var(--bb-action)!important}
html.bb-main.bb-instrument.bb-simple:not(.bb-cell):not(.bb-presenting) :where(button,summary,input:not([type=checkbox]):not([type=radio]),select){font-size:16px!important;min-height:48px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] #root .library-screen .search-control input{border:0!important;background:transparent!important;box-shadow:none!important;min-height:42px!important;height:42px!important;padding:8px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] #root .library-screen>.app-header .button-primary{background:var(--bb-theme-sheet)!important;color:var(--bb-theme-ink)!important;border-color:var(--bb-theme-rule)!important;font-size:13px!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpMain .bbdp-start .bbdp-eyebrow{display:none!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpMain .bbdp-start .bbdp-field{gap:5px!important;margin-bottom:12px!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpMain .bbdp-start .bbdp-field>label{margin-bottom:0!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpMain .bbdp-start .bbdp-bottom-actions{margin-top:14px!important}
html.bb-main.bb-instrument [data-bb-view-toggle][data-update-ready]{position:relative!important}html.bb-main.bb-instrument [data-bb-view-toggle][data-update-ready]::after{content:'';position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--bb-action)}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpViewTabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;max-width:100%!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] #bbdpViewTabs button{width:100%!important;min-width:0!important;margin:0!important;padding:10px 4px!important;font-size:13px!important}
/* Home: stable groups, compact rows, clear affordances. */
html.bb-main.bb-instrument[data-bb-route='/'] .main{padding:24px!important}
html.bb-main.bb-instrument[data-bb-route='/'] .page-heading{margin-bottom:16px!important}
html.bb-main.bb-instrument[data-bb-route='/'] .page-title{font:650 27px/1.2 system-ui!important}
html.bb-main.bb-instrument[data-bb-route='/'] .bb-directory-group{margin-top:24px!important}
html.bb-main.bb-instrument[data-bb-route='/'] .app-card{padding:12px 4px!important;border-color:var(--bb-theme-rule)!important}
html.bb-main.bb-instrument[data-bb-route='/'] .app-card .app-name{font-size:16px!important}
html.bb-main.bb-instrument[data-bb-route='/'] .app-card .app-desc{font-size:13px!important;line-height:1.4!important}
/* ROUTINE: choosing a routine is the primary job. */
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:0 10px!important;max-width:1040px!important;padding:20px!important;align-content:start!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>.app-header{grid-column:2;grid-row:1;align-self:start!important;border:0!important;min-height:44px!important;height:auto!important;padding:0!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-heading{grid-column:1;grid-row:1;align-self:center!important;margin:0!important;min-height:44px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-heading h1{font-size:25px!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>.app-header .header-actions{gap:4px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>.app-header .button-primary{background:transparent!important;color:var(--bb-theme-ink)!important;border-color:var(--bb-theme-rule)!important;padding:8px 10px!important;min-height:44px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>.app-header .icon-button{display:none!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>:not(.app-header):not(.library-heading){grid-column:1/-1}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-tools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(290px,34%)!important;gap:12px!important;padding:0!important;margin:20px 0 16px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .search-control{min-height:44px!important;height:46px!important;border:1px solid var(--bb-theme-line)!important;border-radius:8px!important;background:var(--bb-theme-sheet)!important;padding:0 10px!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .search-control input{border:0!important;background:transparent!important;padding:8px!important;min-height:42px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-category-choice{display:flex!important;gap:10px!important;align-items:center!important;margin:0!important;font:500 13px/1.3 system-ui!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-category-choice select{flex:1 1 160px!important;width:auto!important;min-width:135px!important;margin-top:0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] :is(.routine-section,.routine-groups,.category-group){margin:0!important;padding:0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .section-heading{margin:0!important;min-height:38px!important;padding:4px 0!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .section-heading h2{font:600 12px/1.4 system-ui!important;letter-spacing:.04em!important;color:var(--bb-theme-muted)!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-main{padding:10px 0!important;grid-template-columns:62px minmax(0,1fr)!important;gap:12px!important;min-height:86px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-card-visual{width:62px!important;height:62px!important;border:0!important;box-shadow:none!important;border-radius:8px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-copy strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font:600 16px/1.3 system-ui!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-copy>span{font:400 12px/1.4 system-ui!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-row{border-color:var(--bb-theme-rule)!important}
/* STILL: the chosen drawing leads; controls form one quiet group. */
html.bb-main.bb-instrument[data-bb-route='/still/'] .setup-primary{max-width:760px!important;padding:24px 20px 28px!important;margin:auto!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .setup-primary>.purpose{margin-bottom:20px!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-still-start{margin:0!important;gap:0!important;border:1px solid var(--bb-theme-rule)!important;border-radius:12px!important;background:var(--bb-theme-sheet)!important;overflow:hidden}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open{border:0!important;border-radius:0!important;min-height:156px!important;padding:12px!important;grid-template-columns:126px minmax(0,1fr)!important;gap:16px!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open :is(canvas,svg,img,.bb-current-drawing-preview){width:126px!important;height:126px!important;max-height:126px!important;aspect-ratio:1!important;object-fit:contain!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open strong{font:650 21px/1.25 system-ui!important}html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open small{font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-effect-open{min-height:48px!important;border:0!important;border-top:1px solid var(--bb-theme-rule)!important;border-radius:0!important;margin:0!important;padding:10px 14px!important;background:transparent!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-session-pickers{margin:18px 0!important;gap:12px!important}html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-session-pickers label{font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .begin-button{margin:0!important;min-height:52px!important;padding:12px 16px!important}html.bb-main.bb-instrument[data-bb-route='/still/'] .begin-button strong{font-size:17px!important}html.bb-main.bb-instrument[data-bb-route='/still/'] .begin-button span{font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-session-settings{margin:8px 0 0!important;padding:10px 0!important;text-align:left!important;justify-content:flex-start!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .motion-note{font-size:12px!important;margin:8px 0!important;padding:8px!important}
/* Four lessons, all visible before teaching. */
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-planner{max-width:880px!important;padding:20px!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-title{margin:0 0 16px!important;gap:12px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-title h2{font:650 24px/1.2 system-ui!important;letter-spacing:-.03em}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-date-caption{min-height:40px!important;gap:8px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-date-caption time{display:none!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-grid{gap:0 24px!important;margin:8px 0!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-slot{padding:12px 0!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-slot h3{margin:0 0 6px!important;font-size:14px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-slot h3 label{margin:0!important;font-size:14px!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-slot h3 span{background:var(--bb-theme-wash)!important;border-radius:50%!important;font:600 12px/24px system-ui!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-finish{position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;padding:12px 0 0!important;gap:8px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-finish .day-reuse-plan{grid-column:1/-1!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-undo{display:block;margin:0 0 8px auto!important;border:0!important;background:transparent!important;text-decoration:underline;text-underline-offset:3px;color:var(--bb-theme-muted)!important}
/* Start forms: one action, proportionate text, no artificial poster space. */
html.bb-main.bb-instrument[data-bb-route='/4s/'] .setup-screen{max-width:700px!important;padding:24px 20px!important;margin:auto!important;gap:0!important}
html.bb-main.bb-instrument[data-bb-route='/4s/'] .setup-intro-copy{font:400 14px/1.5 system-ui!important;color:var(--bb-theme-muted)!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/4s/'] .practice-adjustments{margin:0 0 12px!important;padding:10px 14px!important;border:1px solid var(--bb-theme-rule)!important;border-radius:10px!important}
html.bb-main.bb-instrument[data-bb-route='/4s/'] .practice-adjustments>summary{font:600 14px/1.4 system-ui!important;padding:4px 0!important}html.bb-main.bb-instrument[data-bb-route='/4s/'] .practice-adjustments>p{font:400 13px/1.4 system-ui!important;margin:2px 0!important}
html.bb-main.bb-instrument[data-bb-route='/4s/'] .setup-actions{gap:8px!important;margin:0!important}html.bb-main.bb-instrument[data-bb-route='/4s/'] .setup-options{margin:0 0 10px!important}html.bb-main.bb-instrument[data-bb-route='/4s/'] .setup-footer{margin:16px 0 0!important;font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-stage{max-width:800px!important;padding:24px 20px!important;margin:auto!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-card{padding:0!important;gap:0!important;background:transparent!important;border:0!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-command-row{padding:0!important;margin:0!important;border:0!important;background:transparent!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-label{display:flex!important;align-items:center;justify-content:space-between;min-height:28px!important;font:600 13px/1.4 system-ui!important;padding:0!important;margin:0 0 6px!important;border:0!important;background:transparent!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-count{display:inline!important;font:400 12px/1.4 system-ui!important;color:var(--bb-theme-muted)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] #question-paste{height:210px!important;min-height:160px!important;resize:vertical!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-secondary-actions{display:flex!important;justify-content:flex-end!important;margin:0!important;min-height:44px!important}html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .sample-button{width:auto!important;border:0!important;padding:8px 0!important;font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-primary-action{margin:4px 0 18px!important}html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-next{width:100%!important;min-height:48px!important}
html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .paste-detection{font:400 12px/1.45 system-ui;color:var(--bb-theme-muted);margin:6px 0 0}html.bb-main.bb-instrument .paste-detection:empty{display:none}
html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-sheet{padding-top:24px!important}html.bb-main.bb-instrument[data-bb-route='/lesson/'] .form-sheet{border:0!important;padding:0!important;background:transparent!important;margin:0!important}
html.bb-main.bb-instrument[data-bb-route='/lesson/'] .lesson-context{margin:12px 0 0!important}html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar{padding:12px 0 0!important}
html.bb-main.bb-instrument[data-bb-route='/open-studio/'] .hero{margin-bottom:20px!important}html.bb-main.bb-instrument[data-bb-route='/open-studio/'] .maker-shell{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
html.bb-main.bb-instrument[data-bb-route='/open-studio/'] .maker-decision-row{margin:12px 0!important}html.bb-main.bb-instrument[data-bb-route='/open-studio/'] .maker-idea{margin:0!important;padding:0!important}
html.bb-main.bb-instrument[data-bb-route='/writer/'] .streamlined-input{margin:0!important;padding:0!important}html.bb-main.bb-instrument[data-bb-route='/writer/'] .streamlined-examples{margin:12px 0!important}
html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .brief-field{margin:0 0 18px!important;padding:0!important}html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .barrier-starts{margin:0 0 8px!important}html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .barrier-chips{gap:8px!important}
html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .barrier-chips button{min-height:70px!important;padding:10px!important;border-radius:8px!important;border-color:var(--bb-theme-rule)!important;font-weight:600!important}html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .bb-choice-hint{font-size:12px!important;margin-top:4px!important}
html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] #mainContent{padding:24px 20px!important;max-width:1000px!important}html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] #briefForm{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .context-details{margin:12px 0!important}
html.bb-main.bb-instrument[data-bb-route='/stage/'] .import-shell{max-width:1040px!important}html.bb-main.bb-instrument[data-bb-route='/stage/'] .import-editor-card{border:1px solid var(--bb-theme-rule)!important;border-radius:10px!important;overflow:hidden;box-shadow:none!important}html.bb-main.bb-instrument[data-bb-route='/stage/'] #html-paste{min-height:180px!important;font:13px/1.6 ui-monospace,monospace!important}
html.bb-main.bb-instrument[data-bb-route='/adapt/'] #main{max-width:880px!important;padding:24px 20px 36px!important}html.bb-main.bb-instrument[data-bb-route='/adapt/'] .adapt-preset{min-height:70px!important;padding:10px 12px!important;border-color:var(--bb-theme-rule)!important;border-radius:8px!important}html.bb-main.bb-instrument[data-bb-route='/adapt/'] .adapt-presets{gap:8px!important}html.bb-main.bb-instrument[data-bb-route='/adapt/'] .adapt-main-actions{margin-top:4px!important}
/* Prompt-only display flow retains all ten complete palettes and 24 directions. */
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-main{max-width:1160px!important;padding:24px 20px 40px!important;margin:auto!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-start{max-width:720px!important;margin:auto!important;padding:0!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-kicker{display:none!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-form{gap:16px!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-field{margin:0 0 12px!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-field>label{font-size:13px!important;margin:0 0 6px!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-field-note{font-size:12px!important}
html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-page-heading{margin-bottom:20px!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-idea-card{border:1px solid var(--bb-theme-rule)!important;border-radius:10px!important;padding:12px!important}html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-idea-card[aria-pressed=true]{border-color:var(--bb-theme-accent)!important;box-shadow:inset 0 0 0 1px var(--bb-theme-accent)!important}
/* BSL remains its own study course. */
html.bb-main.bb-instrument[data-bb-route='/bsl/'] #main{padding:20px!important}html.bb-main.bb-instrument[data-bb-route='/bsl/'] #lessonTitle{font:650 28px/1.2 system-ui!important;letter-spacing:-.03em!important}html.bb-main.bb-instrument[data-bb-route='/bsl/'] .lessonHero{padding:0!important;margin-bottom:20px!important}html.bb-main.bb-instrument[data-bb-route='/bsl/'] #beginBtn{background:var(--bb-action)!important;color:#fffefa!important}
/* Maths instruments: keep the model central and the editing rail modest. */
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .topbar{min-height:50px!important;padding-block:3px!important;border-bottom:1px solid var(--bb-theme-rule)!important;background:var(--bb-theme-paper)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .topbar button{font:550 13px/1.3 system-ui!important;min-height:42px!important;border-radius:7px!important;border-width:1px!important;box-shadow:none!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .workspaceHeader{padding:8px 12px!important;min-height:52px!important;border-bottom:1px solid var(--bb-theme-rule)!important}html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .workspaceHeader h2{font-size:17px!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .homeStage .empty{padding:24px 20px!important}html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] .emptyIntro h2{font:650 27px/1.2 system-ui!important;letter-spacing:-.035em}html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] .bb-model-directory>button{min-height:98px!important;padding:12px!important;border-color:var(--bb-theme-rule)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage :is(.btWrap,.pvWrap){flex:0 0 auto!important;gap:12px!important;height:auto!important;min-height:0!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage :is(.btCols,.pvTable){flex:none!important;min-height:210px!important;height:auto!important;max-height:none!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage :is(.btCol,.pvCol){min-height:210px!important;grid-template-rows:36px minmax(170px,auto)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .numberReadout{font-size:clamp(34px,5vw,56px)!important;margin:0!important;min-height:0!important;line-height:1.15!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .expandedReadout{font-size:clamp(12px,1.8vw,20px)!important;margin:0!important;min-height:0!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .directDock{padding:10px!important;border:0!important;background:var(--bb-theme-paper)!important;border-radius:8px!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .heroBuild{gap:6px!important}html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .heroBuild :is(input,button){min-height:44px!important;height:auto!important;font-size:15px!important;padding:8px!important;border-width:1px!important;box-shadow:none!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) #stage .directBtn.primary{background:var(--bb-action)!important;color:#fffefa!important;border-color:var(--bb-action)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .displayBar{min-height:44px!important;height:auto!important;padding:4px 10px!important;border-radius:0!important;box-shadow:none!important;border-color:var(--bb-theme-rule)!important}
html.bb-main.bb-instrument[data-bb-route='/maths-modelling-studio/'] body:not(.presentation) .displayBar button{min-height:40px!important;padding:8px!important}
@media(max-width:600px){
html.bb-main.bb-instrument:not(.bb-presenting) :is(.stage-heading,.stage-intro,.create-intro,.brief-intro,.setup-intro,.streamlined-hero,.hero,.intro,.library-heading,.setup-primary,.bbdp-page-heading,.import-intro) h1{font-size:26px!important}
html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen{padding:20px 16px!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-heading h1{font-size:23px!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-tools{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin:16px 0 12px!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-category-choice{justify-content:space-between!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .routine-category-choice select{max-width:200px!important}html.bb-main.bb-instrument[data-bb-route='/routine/'] .library-screen>.app-header .button-primary{font-size:12px!important;padding-inline:8px!important}
html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-title h2{font-size:22px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-title{margin-bottom:12px!important}html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-plan-grid{grid-template-columns:minmax(0,1fr)!important}
html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open{grid-template-columns:110px minmax(0,1fr)!important;min-height:138px!important;gap:14px!important}html.bb-main.bb-instrument[data-bb-route='/still/'] .bb-drawing-open :is(canvas,svg,img,.bb-current-drawing-preview){width:110px!important;height:110px!important;max-height:110px!important}
}
/* Embedded curriculum: search and lesson choice share one compact area. */
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp #crMapView .cr-page{padding:24px 20px 40px!important;max-width:1040px!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-map-hero{margin:0 0 18px!important;padding:0!important;gap:12px!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-map-hero h1{font:650 27px/1.15 system-ui!important;letter-spacing:-.035em!important;margin:0 0 6px!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-map-intro{font:400 14px/1.45 system-ui!important;margin:0!important;max-width:42ch!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-findbar{margin:0 0 12px!important;padding:0!important;border:0!important;gap:6px!important;background:transparent!important;box-shadow:none!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-search{min-height:46px!important;padding:10px 12px!important;font:400 16px/1.4 system-ui!important;border:1px solid var(--cr-line-strong)!important;border-radius:8px!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-search-meta{font-size:12px!important;margin-top:2px!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-browse-controls{display:grid!important;grid-template-columns:minmax(0,1fr) 240px!important;gap:12px!important;margin:0 0 18px!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-browse-controls[hidden]{display:none!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-browse-controls label{font:500 12px/1.4 system-ui!important;min-width:0!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-browse-controls select{font:400 14px/1.4 system-ui!important;height:44px!important;min-height:44px!important;padding:8px!important;border-width:1px!important;margin-top:4px!important;border-radius:8px!important;width:100%!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:end!important;gap:3px!important;min-width:0!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select label{grid-column:2!important;grid-row:1!important;font-size:0!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select button{min-width:36px!important;padding:4px!important;height:44px!important;min-height:44px!important;font-size:16px!important;background:transparent!important;border:0!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select button[data-week-shift='-1']{grid-column:1!important;grid-row:1!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select button[data-week-shift='1']{grid-column:3!important;grid-row:1!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-current-week{margin:18px 0 12px!important;border-bottom:0!important;padding-bottom:0!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-current-week h2{font:650 20px/1.3 system-ui!important;letter-spacing:-.02em!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-current-week p{font-size:12px!important;margin:4px 0!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-lesson{padding:14px 0!important;min-height:70px!important;gap:12px!important;border-top:1px solid var(--cr-line)!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-lesson-title{font:500 15px/1.4 system-ui!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-lesson-number{width:28px!important;height:28px!important;min-width:28px!important;border:0!important;border-radius:50%!important;font:600 12px/28px system-ui!important;background:var(--cr-soft)!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-resume-button{padding:12px!important;margin:0 0 16px!important;border:0!important;border-left:3px solid var(--cr-accent)!important;border-radius:0 8px 8px 0!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-resume-button strong{font-size:14px!important;line-height:1.4!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-resume-button small{font-size:12px!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-button{min-height:44px!important;border-width:1px!important;border-radius:8px!important;font-size:13px!important;box-shadow:none!important}
html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-lesson-title h1{font-size:25px!important;line-height:1.25!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-lesson-tabs{gap:4px!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-tab{font-size:13px!important;padding:10px!important;min-height:44px!important}
@media(max-width:600px){html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-browse-controls{grid-template-columns:minmax(0,1fr)!important}html.bb-curriculum-refinement[data-bb-curriculum] body.cr-active #crApp .cr-week-select{height:44px!important}}
}
/* Finished work: the object first, one clear action, supporting controls nearby. */
@media screen {
 html.bb-main.bb-instrument:not(.bb-presenting) :is(h1,h2,h3,input,select,textarea,[tabindex]){scroll-margin-top:calc(var(--bb-suite-nav-height,56px) + 16px)}
 html.bb-main.bb-instrument:not(.bb-presenting) :is(.prompt-ready,.bbdp-prompt-receipt,.adapt-selected-brief){border-color:var(--bb-theme-rule)!important;box-shadow:none!important}
 html.bb-main.bb-instrument :is(.bb-settings-dialog,.bb-app-switcher){overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(100dvh - 24px)!important}
 html.bb-main.bb-instrument .bb-settings-dialog>header{position:sticky;top:-20px;background:var(--bb-theme-paper);z-index:2;padding:8px 0 12px;margin-top:-8px;border-bottom:1px solid var(--bb-theme-rule)}
 html.bb-main.bb-instrument .bb-settings-dialog>header h2{font-size:21px!important}
 html.bb-main.bb-instrument:not(.bb-presenting) :is(.toolbar-primary,.streamlined-toolbar-primary){background:var(--bb-action)!important;color:#fffefa!important;border-color:var(--bb-action)!important;border-radius:8px!important}
 html.bb-main.bb-instrument:not(.bb-presenting) :is(.result-toolbar,.streamlined-toolbar){border-color:var(--bb-theme-rule)!important;box-shadow:none!important;background:var(--bb-theme-paper)!important;gap:8px!important}
 /* Lesson: avoid nested gutters and the floating footer that covered the choices. */
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] #stage-region{padding:0!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] #lesson-main{width:100%!important;padding:0!important;min-height:0!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-sheet{max-width:760px!important;padding:24px 20px 40px!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;padding:16px 0 0!important;margin-top:16px!important;background:transparent!important;box-shadow:none!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar>.primary-button{width:auto!important;min-width:0!important;min-height:48px!important;height:auto!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar>:not(.primary-button){width:auto!important;min-width:0!important;min-height:48px!important;height:auto!important;overflow-wrap:anywhere!important;white-space:normal!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar.right{grid-template-columns:minmax(0,1fr)!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar.prompt-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .stage-action-bar.prompt-actions>.quiet-button{grid-column:1/-1;justify-self:start;padding-inline:0!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] .lesson-prompt-context{margin:14px 0!important;padding:10px 12px!important;background:var(--bb-theme-soft)!important;border-left:3px solid var(--bb-action)!important;font-size:15px!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] :is(.lesson-build-details,.prompt-region,.edit-wording){margin-block:0!important;border-color:var(--bb-theme-rule)!important}
 html.bb-main.bb-instrument[data-bb-route='/lesson/'] :is(.lesson-build-details,.prompt-region,.edit-wording)>summary{min-height:50px!important;padding-block:12px!important;font:550 14px/1.4 system-ui!important}
 /* Anchor: give the brief the same usable width as its source form. */
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] #mainContent:has(.prompt-delivery){max-width:800px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .screen-head:has(+.prompt-delivery){display:block!important;margin-bottom:20px!important;padding:0!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .screen-head:has(+.prompt-delivery) h1{font:650 27px/1.15 system-ui!important;letter-spacing:-.035em!important;margin:8px 0 12px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .screen-head:has(+.prompt-delivery) .project-context{font-size:14px!important;margin:0!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .screen-head:has(+.prompt-delivery)>.btn{padding:8px 0!important;border:0!important;text-decoration:underline;text-underline-offset:4px!important;min-height:44px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-delivery{padding:0!important;max-width:none!important;gap:14px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .anchor-brief-choice{padding:0!important;margin:0!important;min-width:0!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .anchor-brief-choice label{display:block!important;font:600 13px/1.4 system-ui!important;min-height:20px!important;margin:0 0 6px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .anchor-brief-choice select{width:100%!important;font-size:16px!important;height:46px!important;min-width:0!important;padding:10px 28px 10px 12px!important;border-radius:8px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-ready{padding:16px 0!important;margin:0!important;border-block:1px solid var(--bb-theme-rule)!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-ready-top{gap:12px!important}.anchor-choice-hint{line-height:1.4}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-actions button{order:0!important;width:100%!important;font-size:14px!important;padding:10px!important;border-radius:8px!important;min-height:48px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-actions [data-command='copy']{background:var(--bb-action)!important;color:#fffefa!important;border-color:var(--bb-action)!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-delivery>details{padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--bb-theme-rule)!important;border-radius:0!important;box-shadow:none!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-delivery>details>summary{border:0!important;padding:12px 0!important;min-height:48px!important;font:550 14px/1.4 system-ui!important;gap:12px!important}
 html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-count{font:400 12px/1.4 system-ui!important;white-space:nowrap}
 /* TEACH: progress belongs beside the lesson; print is a secondary action. */
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-heading h1{font:650 26px/1.15 system-ui!important;letter-spacing:-.035em!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-heading .day-print{min-height:44px!important;background:var(--bb-theme-sheet)!important;border:1px solid var(--bb-theme-rule)!important;border-radius:8px!important;font-size:14px!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-slot-link{border:0!important;border-bottom:1px solid var(--bb-theme-rule)!important;border-radius:0!important;background:transparent!important;min-height:76px!important;padding:12px 0!important;grid-template-columns:28px minmax(0,1fr) 40px!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-slot-state{font:550 13px/1.4 system-ui!important;text-align:right!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-overview-actions{margin-top:16px!important;gap:10px!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-cue-line{font:400 14px/1.5 system-ui!important;border-left:2px solid var(--bb-action);padding-left:12px;margin:12px 0}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-step-nav{gap:4px!important}
 html.bb-main.bb-instrument[data-bb-route='/teach/'] .day-step-nav button{min-width:0!important;padding:8px 4px!important;font-size:13px!important;border-radius:6px!important}
 /* Output previews retain print geometry. Their toolbars use one quiet row per purpose. */
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .result-toolbar{padding:8px 20px!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .result-toolbar .brand{display:none!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .result-toolbar .back-action{min-height:44px!important;padding:8px 0!important;font-size:14px!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .toolbar-actions{gap:6px!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .toolbar-actions button{font-size:14px!important;min-height:44px!important;padding:8px!important;border-radius:6px!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .result-layout>.bb-refine-fold{margin:0 20px 16px!important;width:calc(100% - 40px)!important}
 html.bb-main.bb-instrument[data-bb-route='/writer/'] .streamlined-result-intro h1{font:650 26px/1.2 system-ui!important;letter-spacing:-.035em!important}
 html.bb-main.bb-instrument[data-bb-route='/writer/'] .streamlined-toolbar{padding:8px 20px!important;min-height:60px!important}
 html.bb-main.bb-instrument[data-bb-route='/writer/'] .streamlined-toolbar button{min-height:44px!important;font-size:14px!important}
 /* Display's design choices and result keep their colour, without oversized utility copy. */
 html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-instruction{font:400 15px/1.5 system-ui!important;margin:18px 0!important}
 html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-copy-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:16px 0 20px!important}
 html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-copy-actions button{font-size:14px!important;min-width:0!important;min-height:48px!important;padding:10px!important}
 html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-footer-actions{gap:8px!important;margin-top:12px!important}
 html.bb-main.bb-instrument[data-bb-route='/display-studio/'] .bbdp-footer-actions button{font-size:13px!important}
 /* BSL: keep the current block's instruction above its supporting explanation. */
 html.bb-main.bb-instrument[data-bb-route='/bsl/'] .session .btn{min-height:44px!important;white-space:normal!important}
 html.bb-main.bb-instrument[data-bb-route='/bsl/'] .session button{max-width:100%;overflow-wrap:break-word}
 @media(max-width:640px){
  html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-delivery{grid-template-columns:minmax(0,1fr)!important}
  html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .prompt-delivery>*{grid-column:1/-1!important}
  html.bb-main.bb-instrument[data-bb-route='/anchor-art/'] .anchor-brief-choice{display:grid!important;grid-template-columns:1fr!important;gap:4px!important}
  html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .result-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}
  html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .toolbar-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;gap:4px!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] body[data-stage='make'] .make-toolbar{padding:4px 10px!important;gap:8px!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] body[data-stage='make'] .project-title-wrap{position:absolute!important;right:118px!important;top:-42px!important;max-width:80px!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] body[data-stage='make'] .project-title-wrap .project-title-input{display:none!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .save-state{font-size:11px!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .toolbar-group{width:100%!important;max-width:none!important;gap:8px!important;overflow:visible!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .review-button{font-size:13px!important;padding:8px!important;min-height:44px!important;flex:1!important;white-space:nowrap!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .sheet-format-toggle{flex:none!important;overflow:visible!important}
  html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .sheet-format-toggle button{font-size:13px!important;padding:8px!important;min-height:44px!important}
 }
}
@media screen and (max-width:640px){
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] body[data-stage='make'] .project-title-wrap{left:10px!important;right:auto!important;top:-22px!important;max-width:calc(100% - 170px)!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] body[data-stage='make'] .header-context{transform:translateY(-9px)}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .toolbar-group{display:grid!important;grid-template-columns:minmax(0,1fr) 110px!important;gap:8px!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .sheet-format-toggle{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;order:0!important;min-width:0!important;width:100%!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .sheet-format-toggle button{min-width:0!important;padding-inline:4px!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .review-button{order:1!important;white-space:normal!important;margin:0!important;overflow:visible!important;display:block!important;line-height:1.2!important;letter-spacing:0!important;padding:6px 4px!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar :is(.page-status,.question-count){display:none!important}
 html.bb-main.bb-instrument[data-bb-route='/maths-page-studio/'] .make-toolbar .question-review-count{display:block!important;font-size:11px!important;line-height:1.2!important}
}

@media screen and (max-width:820px){
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .scaffold-document:not(.present-document) .document-head{padding:22px 20px!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .scaffold-document:not(.present-document) #scaffold-title{font-size:clamp(23px,4vw,30px)!important;line-height:1.25!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .scaffold-document:not(.present-document) .document-kicker{display:none!important}
 html.bb-main.bb-instrument[data-bb-route='/scaffold-studio/'] .scaffold-document:not(.present-document) .learning-goal{font-size:15px!important}
}
