/* V15.3 owner dashboard contrast repair: light surfaces retain dark ink in dark mode.
   Scope to actual page IDs and descendants; override old v149 light-text !important rules. */
html[data-lti-theme="dark"] #page-owner-dashboard :is(.lti-v135-owner-actions,.lti-qb-panel,.lti-qb-metric,.lti-qb-create-strip,.lti-qb-action-row,.lti-v135-warning,.lti-qb-footer-note,.lti-qb-activity-stats,.lti-qb-activity-stats button){background-color:#f5f9fc!important;color:#122e46!important;border-color:#b5c9d9!important}
html[data-lti-theme="dark"] #page-owner-dashboard :is(.lti-v135-owner-actions,.lti-qb-panel,.lti-qb-metric,.lti-qb-create-strip,.lti-qb-action-row,.lti-v135-warning,.lti-qb-footer-note,.lti-qb-activity-stats) :is(h1,h2,h3,h4,h5,h6,p,small,strong,b,label,legend,span,td,th,li,dd,dt,em,div:not([class]),.muted,.subtitle,.description,.eyebrow){color:#122e46!important;opacity:1!important;text-shadow:none!important}
html[data-lti-theme="dark"] #page-owner-dashboard :is(.lti-v135-owner-actions,.lti-qb-panel,.lti-qb-metric,.lti-qb-create-strip,.lti-qb-action-row,.lti-v135-warning,.lti-qb-footer-note) :is(p,small,em,.muted,.description,.panel-header p){color:#38536b!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-v135-action-grid button{background:#fff!important;color:#12364f!important;border:1px solid #9ab3c8!important;font-weight:700!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-v135-action-grid button *{color:#12364f!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-panel .panel-header{background:#eaf2f8!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-panel :is(.panel-header h2,.panel-header p,.text-button){color:#173950!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-activity-stats button :is(strong,span,small,b){color:#173950!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-metric :is(strong,small,em){color:#173950!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-donut :is(strong,span){color:#122e46!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-donut:after{background:#fff!important}
/* Maintain legible white text on the intentionally dark navy subscription tiles. */
html[data-lti-theme="dark"] #page-owner-dashboard :is(.lti-qb-subscription-grid,.lti-qb-subscription-card,.lti-qb-subscription-stat) :is(strong,span,small,b,p){color:#fff!important}
/* Keep colorful quick action buttons legible; avoid generic card rules overriding them. */
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-quick-actions button,html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-quick-actions button *{color:#fff!important;opacity:1!important}
html[data-lti-theme="dark"] #page-owner-dashboard .lti-qb-quick-actions button:last-child{color:#12364f!important}
/* The first 50-state overview chart must fit next to its legend without clipping. */
#page-owner-dashboard .lti-qb-customer-overview{padding:16px;box-sizing:border-box;gap:16px;min-height:170px}
#page-owner-dashboard .lti-qb-donut{flex-shrink:0}
#page-owner-dashboard .lti-qb-legend{flex:1 1 110px;min-width:110px}
#page-owner-dashboard .lti-qb-donut strong{font-size:25px!important}
#page-owner-dashboard .lti-qb-donut span{font-size:11px!important}
@media(max-width:600px){#page-owner-dashboard .lti-qb-customer-overview{justify-content:center}}
