/* Portal shell only. Workbook artwork, questions and embedded viewer styles are separate. */
:root{--surface:#fff;--surface-soft:#edf3f7;--surface-raised:#fff;--muted:#526777;--practice-bg:#e9f6f2;--practice-ink:#145b4c;--practice-border:#177862;--graded-bg:#f1ecfa;--graded-ink:#54318b;--graded-border:#7950af;--focus:#007a9e}
body{font-size:16px;line-height:1.5}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea,summary{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.btn,.primary-action,.top-link,.scope-btn,.nav-item{font-size:14px;min-height:44px;line-height:1.35}
.topbar-inner{flex-wrap:wrap;gap:16px;padding-block:16px}.top-actions{align-items:center;gap:10px}.brand-wrap{flex:1 1 350px}.top-actions{flex:1 1 520px;justify-content:flex-end}.brand{font-size:13px}.product{font-size:20px}
.ybb-theme{display:flex;gap:8px;align-items:center;font-size:14px;margin:0}.ybb-theme select{min-height:44px;padding:8px 10px;max-width:110px;background:#163b53;color:#fff;border:1px solid #7792a5;border-radius:9px}
.account-card>div{min-width:0}.account-name{font-size:16px;overflow-wrap:anywhere}.account-label,.eyebrow{font-size:13px}.avatar{flex:0 0 44px;background:#123d5f;color:#fff}.sidebar-note{font-size:14px;line-height:1.6;gap:8px}.page-sub{font-size:16px}.page-head h1{font-size:30px}.page-head{align-items:flex-start;flex-wrap:wrap}
.section-head h2,.section-head h3,.help-hero h2,.guide-topic h3{font-size:21px;line-height:1.35}.section-head p,.row-meta,.modal-copy,.modal-form label,.credential-private,.table-note,.control-field small,.check-row small,.mode-choice small{font-size:14px!important;line-height:1.55}.section-head{align-items:flex-start;gap:16px}.row-title,.check-row strong,.mode-choice strong{font-size:16px}.row-title{overflow-wrap:anywhere}.row-main{min-width:0}.row-meta{overflow-wrap:anywhere}.badge,.live-status,.nav-count{font-size:13px!important}.field label,.field>span,.control-field>span,.stat-label{font-size:13px;font-weight:800;color:var(--muted)}.field{min-width:0}.field input,.field select,.field textarea,.control-field input,.control-field select{font-size:16px;min-height:44px;width:100%;padding:10px 12px;border:1px solid #9eb3c2;border-radius:9px;background:var(--surface);color:var(--ink)}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-width:18px;min-height:18px;margin:3px 0;accent-color:#177862}.check-row,.mode-choice label{padding:12px;gap:12px;min-height:48px;cursor:pointer}.check-row>span,.mode-choice label>span{min-width:0}.check-row:focus-within,.mode-choice label:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.filterbar{gap:14px;margin-bottom:18px}.filterbar .field{flex:1 1 190px}.row-actions{gap:10px}.list{gap:12px}.row{padding:16px}.panel{padding:20px}.stack{gap:18px}.stat{text-align:left}.stat[data-view-jump]{cursor:pointer}.stat[data-view-jump]:hover{transform:translateY(-2px)}.stat[data-view-jump=learners]{background:#eaf3fb}.stat[data-view-jump=groups]{background:#f1eefa}.stat[data-view-jump=workbooks]{background:#ecf5f1}.stat[data-view-jump=progress]{background:#edf7f8}
.ybb-coverage{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 16px;background:#eef5fa;border:1px solid #bfd2e1;border-radius:12px;color:#243f55;font-size:14px;margin-bottom:18px}.ybb-empty-prompt{padding:28px 20px;text-align:center;background:var(--surface-soft);border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.ybb-history-paging{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;margin:18px 0}.ybb-history-paging label{display:grid;gap:6px;font-size:14px;font-weight:700;flex:1 1 150px}.ybb-history-paging :is(input,select){min-height:44px;width:100%;border:1px solid #9eb3c2;border-radius:9px;padding:9px 12px;background:var(--surface);color:var(--ink);font-size:16px}.history-table,.effective-table,.pw-table{font-size:14px!important}.history-table th,.effective-table th,.pw-table th{font-size:13px!important}.history-table td,.effective-table td,.pw-table td{padding:12px!important;line-height:1.5;vertical-align:top}.history-table details{max-width:340px;white-space:normal}
.quick-steps{gap:16px!important}.quick-steps li{position:relative;padding:20px 20px 20px 62px!important;line-height:1.6!important;border-radius:12px;background:#edf7f5;font-size:16px!important;min-width:0}.quick-steps li:before{left:18px!important;top:20px!important;width:28px!important;height:28px!important;font-size:14px!important;line-height:28px!important}.quick-steps li strong{font-size:16px!important}.quick-steps li p{font-size:14px!important;line-height:1.6!important}.quick-steps li:nth-child(2n){background:#edf3fb}.quick-steps li:nth-child(3n){background:#f6f1fb}.quick-start-body{padding:20px!important}.quick-start-body>.row-actions{margin-top:22px}.guide-body,.faq-body{font-size:16px!important;line-height:1.65!important}.guide-body p,.faq-body p,.guide-body li{font-size:16px!important;line-height:1.65!important}.help-hero{background:#edf5fb}.guide-topic>summary,.quick-start>summary{font-size:18px!important}.guide-topic small,.faq-body small,.quick-start small{font-size:14px!important}
.control-layout{grid-template-columns:minmax(220px,.7fr) minmax(0,2fr)!important;align-items:start}.control-layout>section{min-width:0}.control-section-label{font-size:18px!important;font-weight:800;padding:14px 16px!important;margin:0 0 16px;background:var(--practice-bg);color:var(--practice-ink);border-radius:9px}.release-settings{padding:18px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;margin-bottom:20px}.control-field{line-height:1.5;gap:8px}.settings-grid{gap:20px}.mode-choice{gap:14px;margin:20px 0}.mode-choice label{border:2px solid var(--line);background:var(--surface);align-items:flex-start}.mode-choice label[data-mode=learning]{background:var(--practice-bg);color:var(--practice-ink)}.mode-choice label[data-mode=assignment]{background:var(--graded-bg);color:var(--graded-ink)}.mode-choice label[data-mode=learning]:has(input:checked){border-color:var(--practice-border)}.mode-choice label[data-mode=assignment]:has(input:checked){border-color:var(--graded-border)}.mode-choice label[data-mode=assignment] input{accent-color:var(--graded-border)}.mode-choice small{color:inherit;opacity:1}.mode-choice .selection-label{display:none;font-size:13px;font-weight:800;margin-top:8px}.mode-choice label:has(input:checked) .selection-label{display:block}.ybb-mode-section{padding:18px;border:1px solid var(--line);border-radius:12px;display:grid;gap:18px;margin:18px 0}.ybb-mode-section .control-section-label{margin:0}.ybb-mode-section[data-mode=assignment]>.control-section-label{background:var(--graded-bg);color:var(--graded-ink)}.controls-actions{justify-content:flex-start!important;margin-top:24px!important}.ybb-change-status{font-size:14px;font-weight:700;margin:16px 0;padding:12px 14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:9px}.ybb-change-status[data-dirty=true]{border-color:#b48317;color:#715000;background:#fff5d6}
.ybb-book>summary,.ybb-group>summary,.ybb-create-group>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:48px}.ybb-book>summary::-webkit-details-marker,.ybb-group>summary::-webkit-details-marker,.ybb-create-group>summary::-webkit-details-marker{display:none}.ybb-book>summary:after,.ybb-group>summary:after,.ybb-create-group>summary:after{content:'＋';font-size:22px;flex:0 0 auto}.ybb-book[open]>summary:after,.ybb-group[open]>summary:after,.ybb-create-group[open]>summary:after{content:'−'}.ybb-book h2,.ybb-group h3{margin:0;font-size:20px;overflow-wrap:anywhere}.ybb-book[open]>summary,.ybb-group[open]>summary,.ybb-create-group[open]>summary{margin-bottom:20px}.ybb-book .seat-guidance{display:none}.ybb-info{font-size:14px;margin:12px 0;color:var(--muted)}.ybb-info summary{cursor:pointer;font-weight:700}.ybb-info p{margin:8px 0;max-width:65ch}.ybb-pager{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 0}.ybb-pager span{font-size:14px;color:var(--muted)}.ybb-picker{display:grid;gap:14px}.ybb-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ybb-picker-grid .check-row{align-items:center;padding:10px 12px;min-height:48px}.ybb-picker-grid .check-row input{margin:0}.ybb-picker-grid .check-row strong{overflow-wrap:anywhere}.ybb-picker-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ybb-picker-tools .field{flex:1 1 220px}.ybb-picker-selected{font-weight:800;font-size:14px;color:var(--practice-ink)}.ybb-picker-footer{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding-top:16px;border-top:1px solid var(--line)}
.pw-track{display:block!important;width:100%;height:11px!important;background:#e4e9ed}:is(.pw-fill,.progress-fill).stage-not-started{background:var(--pg-gray)!important}:is(.pw-fill,.progress-fill).stage-just-started{background:var(--pg-coral)!important}:is(.pw-fill,.progress-fill).stage-building{background:var(--pg-orange)!important}:is(.pw-fill,.progress-fill).stage-progress{background:var(--pg-gold)!important}:is(.pw-fill,.progress-fill).stage-almost{background:var(--pg-teal)!important}:is(.pw-fill,.progress-fill).stage-complete{background:var(--pg-green)!important}.pw-chart-bar{min-width:0!important}.pw-graph-title{font-size:18px!important}.pw-chart-label,.pw-column-label,.pw-dot-row,.pw-stacked-row,.pw-record-meta,.pw-detail-meta,.pw-graph-rule{font-size:14px!important}.pw-chart-row{min-height:38px}.pw-column-label{white-space:normal!important;line-height:1.4;overflow:visible!important}.pw-chart-value,.pw-column-value{font-size:14px!important}.pw-folder-color{border:0;background:transparent;text-align:left;color:var(--muted);font-size:14px;padding:8px 18px;cursor:pointer}.pw-unavailable{padding:10px;color:#765716;background:#fff4d9;border-radius:8px}.pw-filter-grid{gap:14px!important}.pw-record-name{font-size:16px!important}.pw-badge,.pw-last-updated{font-size:13px!important}.pw-folder,.pw-tab{font-size:14px!important;min-height:44px}.pw-chart-legend button{min-height:44px;font-size:14px!important}.pw-table-wrap{overflow:auto}.pw-graph-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pw-metric .label{font-size:14px!important}.pw-metric small{font-size:14px!important}.modal,.pw-modal{max-height:90dvh;overflow:auto}
html[data-portal-theme=dark]{color-scheme:dark;--bg:#142334;--surface:#203448;--surface-soft:#294256;--surface-raised:#294256;--ink:#e3edf4;--muted:#bdcfdf;--line:#577087;--practice-bg:#153e39;--practice-ink:#c1f0dd;--practice-border:#61c7a2;--graded-bg:#352b50;--graded-ink:#e6d9ff;--graded-border:#b891ed;--focus:#69d5ff}
html[data-portal-theme=dark] :is(.sidebar,.panel,.card,.row,.modal,.pw-modal,.pw-graph-card,.pw-metric,.pw-detail,.pw-dialog,.guide-topic,.current-status-card,.pw-folder-nav,.pw-folder-main,.pw-drawer,.faq-item,.support-grid article){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-portal-theme=dark] :is(h1,h2,h3,h4,.account-name,.row-title,.stat-value,.pw-record-name,.pw-graph-title,.pw-folder-title,.guide-topic summary,.faq-item summary){color:var(--ink)}
html[data-portal-theme=dark] :is(.row-meta,.page-sub,.stat-label,.account-label,.table-note,.pw-graph-rule,.pw-record-meta,.pw-last-updated,.field label,.field>span,.control-field>span){color:var(--muted)}
html[data-portal-theme=dark] .eyebrow{color:#72d9b7}
html[data-portal-theme=dark] :is(.nav-item,.scope-btn,.btn-secondary,.pw-tab,.pw-folder,.pw-chart-legend button,.faq-chip){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-portal-theme=dark] :is(.nav-item.active,.scope-btn.active,.pw-tab[aria-selected=true],.pw-folder.active,.faq-chip.active){background:#176a82;color:#fff;border-color:#86d7ed}
html[data-portal-theme=dark] :is(.nav-item:hover,.scope-btn:hover,.btn-secondary:hover,.pw-folder:hover){background:#34546e;color:#fff}
html[data-portal-theme=dark] .sidebar-note{background:#403922;border-color:#8f793c;color:#f5e4b7}
html[data-portal-theme=dark] .support-warning{background:#403922;color:#fff2c7;border-color:#c7a343}
html[data-portal-theme=dark] :is(.ybb-coverage,.release-settings,.quick-start>summary,.help-hero,.shop-panel,.pw-tabs,.quick-steps li,.pw-folder-tools,.check-row,.pw-shared-filters,.pw-graph-controls,.pw-breadcrumbs){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-portal-theme=dark] :is(input,select,textarea){background:#162b3d;color:#edf5fb;border-color:#7991a5}
html[data-portal-theme=dark] input::placeholder,html[data-portal-theme=dark] textarea::placeholder{color:#b4c6d5;opacity:1}
html[data-portal-theme=dark] .btn-primary{background:#12745e;color:#fff}
html[data-portal-theme=dark] .btn-danger{background:#542c31;color:#ffd4cd;border-color:#b56f75}
html[data-portal-theme=dark] .badge.gray,html[data-portal-theme=dark] .live-off{background:#3c4e60;color:#e1e9f1}
html[data-portal-theme=dark] .badge.blue,html[data-portal-theme=dark] .pw-badge.blue{background:#264b6b;color:#d2eaff}
html[data-portal-theme=dark] .badge.gold,html[data-portal-theme=dark] .pw-badge.amber{background:#514223;color:#ffe5a0}
html[data-portal-theme=dark] .ybb-change-status[data-dirty=true]{background:#493c21;color:#ffe4a1;border-color:#bf9747}
html[data-portal-theme=dark] .notice.ok{background:#194739;color:#cff5e5;border-color:#609d87}
html[data-portal-theme=dark] .notice.error{background:#542c31;color:#ffdbd7;border-color:#be7d7a}
html[data-portal-theme=dark] .pw-track{background:#526b80}
@media(max-width:1050px){.control-layout{grid-template-columns:1fr!important}.grid-6{grid-template-columns:repeat(3,minmax(0,1fr))!important}.top-actions{justify-content:flex-start}.pw-folder-layout{grid-template-columns:1fr!important}}
@media(max-width:760px){.topbar-inner{padding:16px}.brand-wrap,.top-actions{flex:auto;width:100%}.product{font-size:18px}.top-actions{gap:8px}.top-link{flex:1 1 auto}.ybb-theme{width:100%;justify-content:flex-start}.main{padding:16px}.panel{padding:16px}.quick-steps{grid-template-columns:1fr!important}.quick-steps li{padding:18px 16px 18px 58px!important}.quick-steps li:before{left:16px!important;top:18px!important}.ybb-picker-grid{grid-template-columns:1fr}.ybb-coverage{align-items:stretch}.ybb-coverage button{width:100%}.row-actions{width:100%;justify-content:flex-start}.row-actions .btn{flex:1 1 auto}.mode-choice,.settings-grid{grid-template-columns:1fr!important}.ybb-book>summary{flex-wrap:wrap}.grid-6{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pw-filter-grid{grid-template-columns:1fr!important}.pw-topline{flex-wrap:wrap}.pw-tabs{flex-wrap:wrap}.pw-folder-nav{max-width:100%!important}.section-head{flex-wrap:wrap}.control-section-label{font-size:18px!important}.ybb-picker-footer .btn{flex:1 1 auto}.ybb-history-paging button{flex:1 1 auto}.check-row{padding:12px}.modal-backdrop{padding:12px}}
/* Remaining shared help, graph and detail surfaces inherit the same theme. */
.guide-tool input,.guide-tool select,.guide-search-row input,.guide-jump-tool select{font-size:16px!important;min-height:44px}
.guide-tool label,.guide-tool>span,.guide-search-tool label,.guide-jump-tool label,.guide-topic-count,.guide-search-status,.help-hero .eyebrow,.faq-topic-btn{font-size:14px!important;line-height:1.5}
.faq-topic-btn{min-height:44px;padding:10px 14px}.pw-record-title{font-size:16px!important}.pw-progress-line,.pw-folder-group-label,.pw-graph-head p,.pw-chart-rule,.pw-stack-legend,.pw-notification-item,.pw-notification-item strong,.pw-folder-count{font-size:14px!important;line-height:1.5}.pw-graph-head h3{font-size:18px!important}.pw-record{min-width:0}.pw-record-title{overflow-wrap:anywhere}.pw-list .pw-record-actions{flex-wrap:wrap}
html[data-portal-theme=dark] :is(.progress-workspace,.pw-record,.pw-folder-card,.pw-notification-item,.help-grid article,.faq-list details,.credential-value,.loading-card,.guide-topic summary,.quick-start-summary,.faq-topic-btn){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-portal-theme=dark] :is(.pw-metric strong,.pw-record-title,.pw-breadcrumbs strong,.pw-chart-value,.pw-column-value,.pw-donut span,.pw-notification-item strong,.credential-value strong,.guide-topic[open] summary,.quick-start-summary:after){color:var(--ink)}
html[data-portal-theme=dark] :is(.guide-tool input,.guide-tool select,.guide-search-row input,.guide-jump-tool select){background:#162b3d;color:#edf5fb;border-color:#7991a5}
html[data-portal-theme=dark] .faq-topic-btn.active{background:#176a82;color:#fff;border-color:#86d7ed}
html[data-portal-theme=dark] .pw-donut:after{background:var(--surface)}
html[data-portal-theme=dark] .pw-metric .label,html[data-portal-theme=dark] .pw-metric small{color:var(--muted)}
@media(max-width:760px){.pw-record{grid-template-columns:minmax(0,1fr)}.pw-record-actions{justify-content:flex-start}.pw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pw-metric{padding:12px}.pw-metric strong{font-size:25px}}

/* V44.8.3: consistent card geometry, readable themes, and deliberate layout editing. */
.row.ybb-learner-row,.row.ybb-activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:16px}
.ybb-learner-row .row-actions{display:grid;grid-template-columns:repeat(3,max-content);align-items:center;gap:10px}
.ybb-activity-row .row-actions{display:grid;grid-template-columns:148px 148px;gap:10px}
.ybb-activity-row .row-actions .btn{width:100%;text-align:center}
.ybb-activity-row .progress-track{width:min(100%,360px);margin-top:10px}
.row-main,.row-main .activity-line{min-width:0;overflow-wrap:anywhere}.row-title{line-height:1.45}
.ybb-book>summary{display:grid;grid-template-columns:minmax(0,1fr) max-content 24px;gap:16px;min-height:52px}
.ybb-book>summary .badge{justify-self:end;text-align:center}.ybb-book h2{font-size:18px;line-height:1.4}.ybb-book.panel{padding:16px 20px}
.ybb-overview-filters{margin:18px 0}.filterbar{align-items:end}.field{min-width:0}.field :is(input,select){max-width:100%}
.guide-tool>span,.guide-search-meta{color:var(--muted);font-size:14px!important;line-height:1.5}
.faq-topic-panel>summary{background:var(--surface-soft);color:var(--ink);font-size:16px;font-weight:700;min-height:44px}
.faq-list summary{font-size:16px!important;font-weight:600!important;line-height:1.5;padding:12px 14px;min-height:48px}
.faq-list p{font-size:16px!important;line-height:1.65;color:var(--ink)}.faq-group{margin-bottom:22px}
.pw-graph-settings summary{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface-soft);font-size:14px;font-weight:700}
.pw-line-labels button,.pw-stack-legend,.pw-chart-label,.pw-column-label,.pw-dot-row>span,.pw-dot-row>strong,.pw-stacked-row>span,.pw-table th,.pw-chart-rule{color:var(--ink)!important;font-size:14px!important;line-height:1.5}
.pw-chart-label,.pw-dot-row>span,.pw-stacked-row>span{font-weight:600!important}.pw-graph-canvas{min-height:230px}
.pw-chart-track{background:var(--surface-soft)!important}.pw-chart-bar{min-width:0!important}
.pw-graph-card[data-default-graph],.pw-graph-card{grid-column:auto}.pw-graph-card[data-size=full],.pw-graph-card.expanded{grid-column:1/-1}
.pw-layout-tools,.pw-grade-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.pw-layout-tools .field,.pw-grade-tools .field{flex:1 1 170px}.pw-drag-handle{cursor:grab;min-height:44px;padding:10px;border:1px dashed var(--line);border-radius:8px;color:var(--ink)}
.pw-graph-card[data-drop=true]{outline:3px solid var(--focus)}.pw-layout-status,.pw-grade-status{font-size:14px;line-height:1.5;margin:12px 0}
.pw-grade-feedback{white-space:pre-wrap;max-width:60ch}.pw-grade-report{overflow:auto}.pw-grade-table{min-width:850px}.pw-grade-table td{font-size:14px}
html[data-portal-theme=dark] :is(.guide-tool>span,.pw-folder-group-label,.pw-table th,.pw-chart-rule,.guide-search-meta){color:var(--muted)}
html[data-portal-theme=dark] :is(.faq-topic-panel>summary,.pw-graph-settings summary){background:var(--surface-soft);color:var(--ink)}
html[data-portal-theme=dark] :is(.pw-chart-track,.pw-column-track){background:#304b60!important}
html[data-portal-theme=dark] .pw-progress-line{color:var(--ink)}
:is(.btn,.top-link,.primary-action,.nav-item,.scope-btn,.pw-tab,.pw-folder,.faq-topic-btn){transition:background-color .14s ease,box-shadow .14s ease,transform .14s ease}
@media(hover:hover) and (pointer:fine){:is(.btn,.top-link,.primary-action,.nav-item,.scope-btn,.pw-tab,.pw-folder,.faq-topic-btn):not(:disabled):not([aria-disabled=true]):hover{transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.16);filter:brightness(1.08)}}
:is(.btn,.top-link,.primary-action,.nav-item,.scope-btn,.pw-tab,.pw-folder,.faq-topic-btn):not(:disabled):active{transform:translateY(0);box-shadow:none}
:is(button,a,summary,input,select,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
:is(button,.btn):disabled,:is(button,.btn)[aria-disabled=true]{transform:none!important;box-shadow:none!important;filter:none!important;cursor:not-allowed}
:is(select,input[type=search]):focus{border-color:var(--focus)}
@media(max-width:1150px){.row.ybb-learner-row,.row.ybb-activity-row{grid-template-columns:minmax(0,1fr)}.ybb-learner-row .row-actions,.ybb-activity-row .row-actions{justify-content:start}}
@media(max-width:850px){.pw-graph-grid{grid-template-columns:minmax(0,1fr)!important}.pw-graph-card[data-size],.pw-graph-card.expanded{grid-column:1}.pw-graph-actions .btn{flex:1 1 auto}}
@media(max-width:600px){.ybb-learner-row .row-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.ybb-learner-row .row-actions .btn:first-child{grid-column:1/-1}.ybb-learner-row .row-actions .btn{width:100%;white-space:normal}.ybb-activity-row .row-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.ybb-book>summary{grid-template-columns:minmax(0,1fr) 24px;gap:10px}.ybb-book>summary .badge{grid-row:2;grid-column:1;justify-self:start}.ybb-book>summary:after{grid-row:1/3;grid-column:2}.pw-layout-tools .btn,.pw-grade-tools .btn{flex:1 1 auto}.pw-filter-actions{gap:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}:is(.btn,.top-link,.primary-action,.nav-item,.scope-btn,.pw-tab,.pw-folder,.faq-topic-btn,.stat):hover{transform:none!important}}
@media print{.pw-layout-tools,.pw-grade-tools{display:none!important}}

html[data-portal-theme=dark] :is(.pw-empty,.pw-folder-count,.pw-breadcrumbs){color:var(--muted)}
.btn,.primary-action,.nav-item,.pw-tab,.faq-topic-btn{font-weight:700}

.pw-chart-bar[data-zero=true]{visibility:hidden;border:0;padding:0}

/* V44.9.0 — adult setup and Controls; scoped to the Portal shell. */
.control-layout>*,.settings-grid>*,.scope-grid>*{min-width:0}
#controlTarget{margin-top:18px}
.control-page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}
.control-page-actions>span{flex:1 1 160px;font-size:14px;color:var(--muted)}
.control-page-actions .btn{white-space:normal}
#controlGate{line-height:1.6}
.setup-next,.new-releases{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);margin:16px 0}
.new-releases p{max-width:65ch;font-size:14px;color:var(--muted)}
.new-releases .coming-soon{display:inline-block;padding:6px 12px;border-radius:20px;background:var(--surface);color:var(--muted);font-weight:700;border:1px solid var(--line)}
@media(max-width:960px){.control-layout{display:grid;grid-template-columns:minmax(0,1fr)!important}.control-layout>.panel{width:100%;max-width:100%}.settings-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:600px){.scope-grid,.mode-choice{grid-template-columns:minmax(0,1fr)!important}.scope-btn{text-align:left;padding:12px 16px}.controls-actions{display:grid;grid-template-columns:minmax(0,1fr)}.controls-actions .btn{width:100%;white-space:normal}.modal-card,.modal-panel,.pw-drawer{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.control-page-actions .btn{flex:1 1 130px}.control-page-actions>span{flex-basis:100%;order:-1}.top-actions{justify-content:flex-start}.page-head h1{font-size:26px}}
.family-announcement{padding:16px 20px;margin-bottom:18px;border:1px solid var(--practice-border);border-radius:12px;background:var(--practice-bg);color:var(--practice-ink)}
.family-announcement p,.family-notice-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.family-announcement small{font-size:14px}
@media(max-width:600px){.modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.family-announcement{padding:14px}}
