/* Shared controls: intrinsic sizing prevents search wrappers overlapping labels. */
.core-toolbar,.audit-toolbar{align-items:flex-end;gap:12px}
.core-toolbar>label,.core-toolbar>.field{display:flex;flex-direction:column;gap:7px;flex:1 1 155px;width:auto;min-width:0;margin:0}
.core-toolbar>.suite-search{flex:2 1 260px;min-width:0;width:auto}
.core-toolbar input,.core-toolbar select,.core-toolbar .field input,.core-toolbar .field select{width:100%;min-width:0!important;margin:0;min-height:44px;height:44px;padding:10px 12px}
.core-toolbar>button{flex:0 0 auto;min-height:44px}
.suite-search{min-width:0;max-width:100%;isolation:isolate}
.suite-search input,.field .suite-search input{width:100%;min-width:0!important;max-width:none;margin:0;padding-left:38px!important;padding-right:38px!important;height:44px}
.field>.suite-search{margin-top:8px}
.suite-search-icon{position:absolute;left:12px;top:22px;transform:translateY(-50%);pointer-events:none;display:flex;color:#315c85}
.suite-search-clear{top:4px;right:4px;height:36px;min-height:36px!important}
.suite-suggestions{z-index:90;max-height:240px;overflow-y:auto}
.suite-search:focus-within{z-index:91}
.heading,.panel-head,.form-actions,.audit-footer{flex-wrap:wrap}
.heading>div{min-width:0;flex:1 1 260px}
.heading>button{flex-shrink:0}
.panel{overflow:visible}
.table-wrap{max-width:100%;max-height:560px;overflow:auto;overscroll-behavior:contain;border-radius:0 0 10px 10px}
.table-wrap th{position:sticky;top:0;z-index:1}
.table-wrap td,.table-wrap th{padding:12px 16px}
.table-wrap td{white-space:normal;min-width:115px;max-width:380px;overflow-wrap:anywhere}
.table-wrap td:last-child{min-width:160px}
.table-wrap td button{margin:3px 4px 3px 0;min-height:36px;white-space:nowrap;vertical-align:middle}
.form-grid>*{min-width:0}
.field input,.field select,.field textarea{max-width:100%;box-sizing:border-box}
.form-actions{gap:10px}
dialog{overflow-y:auto;overscroll-behavior:contain}
.list-tools,.list-pages{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 16px}
.list-tools>.suite-search{flex:1 1 230px;max-width:420px}
.list-tools label{display:flex;gap:8px;align-items:center;color:#607086;font-size:12px}
.list-tools select{min-height:40px}
.list-pages{border-top:1px solid #dce3eb;font-size:12px}
.list-pages span{flex:1;min-width:160px;color:#607086}
.list-pages button{min-height:40px}
.core-toolbar:not(form){row-gap:10px}
#notice{padding-right:52px;line-height:1.5}.notice-close{position:absolute;right:5px;top:5px;width:40px;height:40px;padding:0;background:transparent;color:white;font-size:24px}
.error:not(:empty){background:#fff1ed;border:1px solid #ecc0b5;border-radius:8px;padding:12px;overflow-wrap:anywhere}
.table-wrap{container-type:inline-size;overflow-x:hidden}
.table-wrap table{table-layout:fixed;white-space:normal}
.table-wrap td,.table-wrap th{min-width:0;overflow-wrap:anywhere}
.table-wrap td:last-child{min-width:0}
.table-wrap td button{white-space:normal;max-width:100%}
.core-calendar{overflow-x:hidden}
.core-week,.core-days{min-width:0;grid-template-columns:repeat(7,minmax(0,1fr))}
.core-week strong{padding:10px 2px;text-align:center}
.core-day{padding:5px;min-width:0}
.core-chip{white-space:normal;overflow-wrap:anywhere}
@container(max-width:760px){
 .table-wrap table,.table-wrap tbody{display:block;width:100%}
 .table-wrap thead{display:none}
 .table-wrap tr{display:block;padding:12px 16px;border-bottom:1px solid #dce3eb}
 .table-wrap tr[hidden]{display:none}
 .table-wrap td{display:block;max-width:none;width:100%;border:0;padding:7px 0}
 .table-wrap td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-size:10px;font-weight:650;color:#607086;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}
 .table-wrap td:last-child button{min-height:44px}
}
@media(max-width:600px){input,select,textarea{font-size:16px!important}.table-wrap td button{min-height:44px}.core-chip{font-size:10px;padding:3px}.core-day{min-height:85px}.core-week strong{font-size:11px}.form-actions{position:sticky;bottom:-24px;background:white;padding-bottom:12px;z-index:2}.permission{flex-wrap:wrap}.permission select{width:100%}.organization-modules summary strong{overflow-wrap:anywhere}.topbar .account{gap:8px;flex-wrap:wrap}#notice{left:16px;right:16px;bottom:16px;max-width:none}}
@media(max-width:1000px){.core-toolbar>label,.core-toolbar>.field{flex:1 1 155px;width:auto;min-width:0}.core-toolbar>.suite-search{flex:1 1 260px;min-width:0}.panel-head>.suite-search{max-width:100%}}
@media(max-width:600px){.core-toolbar>label,.core-toolbar>.field,.core-toolbar>.suite-search{flex-basis:100%;min-width:0}.core-toolbar>button{flex:1 1 130px}.content{padding:18px 14px}.table-wrap{max-height:440px}.list-tools>.suite-search{max-width:none}.list-pages span{flex-basis:100%;order:-1}.heading>button{width:100%}}
/* R3.1 COMPATIBILITY BUNDLE */
/* Deterministic filter layout: labels, search and actions share grid tracks. */
form.core-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end;gap:14px;width:100%}
form.core-toolbar>label,form.core-toolbar>.field{display:flex;flex-direction:column;gap:7px;width:auto;min-width:0;max-width:100%;margin:0}
form.core-toolbar>.suite-search{grid-column:span 2;min-width:0;width:100%;max-width:100%;align-self:end}
form.core-toolbar input,form.core-toolbar select{min-width:0!important;width:100%;margin:0;box-sizing:border-box;height:44px}
form.core-toolbar>button{height:auto;min-height:44px;margin:0;white-space:normal;align-self:end}
form.core-toolbar .suite-search input{padding-left:38px!important;padding-right:38px!important}
.visual-version{display:block;margin-top:8px;color:#607086;font-size:10px;letter-spacing:.03em}
@media(max-width:700px){form.core-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}form.core-toolbar>.suite-search{grid-column:1/-1}}
@media(max-width:450px){form.core-toolbar{grid-template-columns:minmax(0,1fr)}form.core-toolbar>*{grid-column:1!important}}

/* P16: one continuous page scroll for directories. */
#content .table-wrap{max-height:none;overflow:visible;overscroll-behavior:auto}
html,body{overscroll-behavior-y:auto}
.learning-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:20px}
.learning-actions{display:flex;flex-wrap:wrap;gap:10px;padding:16px}
.learning-questions{display:grid;gap:14px}

.lesson-player{width:100%;aspect-ratio:16/9;border:0}
