/* Shared browser fallbacks. Loaded last so component states remain predictable. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,input,select,textarea{font-family:inherit}
button,[type="button"],[type="submit"],[type="reset"]{-webkit-appearance:none;appearance:none}
input[type="date"],input[type="datetime-local"]{min-width:0;max-width:100%;box-sizing:border-box}
input[type="date"]::-webkit-date-and-time-value,input[type="datetime-local"]::-webkit-date-and-time-value{text-align:left}
input[type="search"]{-webkit-appearance:none;appearance:none}
button:disabled{cursor:default}
.ui-icon,.section-toggle-icon,.purchase-status-icon svg{flex-shrink:0}
.purchase-status-icon svg{display:block;width:20px;height:20px}
.badge{box-sizing:border-box;line-height:1.4}
[hidden]{display:none!important}
#content .stat,#content .exam-info,#content .panel-head h2{min-width:0}
#content .table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
#content .badge.status-not-started{background:#eaf4fc;color:#075c99;border-color:#b4d6ec}
#content .badge.status-in-progress{background:#fff4cc;color:#785800;border-color:#e9cc65}
#content .badge.status-completed{background:#e8f7ef;color:#167347;border-color:#a6d8ba}
#content .badge.status-invalid{background:#ffedf0;color:#c72c43;border:1px solid #f4b8c3}
/* Older engines retain readable cards without subgrid or container queries. */
@supports not(grid-template-rows:subgrid){#content .stats>.stat{display:grid;grid-row:auto;grid-template-rows:minmax(36px,auto) minmax(38px,auto) minmax(32px,1fr)}#content .statistics-users-group .stats>.stat{grid-row:auto;grid-template-rows:minmax(28px,auto) minmax(34px,auto)}}
@supports not(container-type:inline-size){@media(max-width:1100px){#content .domain-performance-cards{grid-template-columns:minmax(0,1fr)}}}
@supports not selector(:focus-visible){button:focus,a:focus,input:focus,select:focus,textarea:focus{outline:2px solid #19a5d1;outline-offset:2px}}
@media(max-width:700px){#content .search-filter-bar input:not([type=hidden]),#content .search-filter-bar select{font-size:16px}#content .purchase-history-panel td{min-width:0;white-space:normal;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.section-toggle-icon{transition:none}.earnings-chart{scroll-behavior:auto}}
@media(forced-colors:active){.badge,.purchase-status-icon{border:1px solid CanvasText}.purchase-status-icon svg{stroke:CanvasText}}

.purchase-timestamp{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";line-height:1.6;white-space:nowrap}@media(max-width:700px){.purchase-history-panel .purchase-timestamp{white-space:normal;overflow-wrap:normal}}

/* Users: full table on desktop, labeled records on smaller screens. */
#content .admin-users-panel{min-width:0;max-width:100%}#content .admin-users-table{display:table;width:100%;min-width:960px;table-layout:auto}#content .admin-users-table .customer-name-cell{min-width:160px}#content .admin-users-table .user-email-cell{overflow-wrap:anywhere}#content .admin-users-table time{font-variant-numeric:tabular-nums}
@media(max-width:1000px){#content .admin-users-panel>.table-wrap{overflow:visible}#content .admin-users-table,#content .admin-users-table thead,#content .admin-users-table tbody{display:block;width:100%;min-width:0}#content .admin-users-table thead>tr{display:flex;flex-wrap:wrap;gap:6px;padding:8px;margin-bottom:14px;background:#f1f6fa;border-radius:9px}#content .admin-users-table thead th{display:block;flex:0 1 auto;padding:5px 7px;font-size:9px;background:transparent}#content .admin-users-table thead th:last-child{display:none}#content .admin-users-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:16px;margin-bottom:12px;border:1px solid #dce6ee;border-radius:12px;background:#fff}#content .admin-users-table tbody td{display:block;min-width:0;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}#content .admin-users-table td:before{content:attr(data-label);display:block;margin-bottom:5px;color:#748a9a;font-size:10px;line-height:1.4}#content .admin-users-table .customer-name-cell{grid-column:1/-1;min-width:0}#content .admin-users-table .customer-name-cell:before{display:none}#content .admin-users-table .user-email-cell{grid-column:1/-1}#content .admin-users-table .user-actions-cell{grid-column:1/-1;text-align:right}#content .admin-users-table .user-actions-cell:before{display:none}#content .admin-users-table .user-actions-cell>a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border:1px solid #d5e2ec;border-radius:8px}#content .admin-users-panel .search-filter-bar>select{flex-basis:100%;width:100%}}
@media(max-width:380px){#content .admin-users-table tbody>tr{gap:12px;padding:12px}#content .admin-users-table tbody td{font-size:11px}}

/* Fill short pages and keep the footer at the bottom of the content area. */
body>main{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}body>main>#content{flex:1 0 auto;width:100%;box-sizing:border-box}body>main>header,body>main>footer{flex-shrink:0}body>main>footer{margin-top:auto}
@media(max-width:700px){body>main{min-height:calc(100vh - 84px);min-height:calc(100dvh - 84px)}}


/* Prevent Users controls and card rows from setting the page's minimum width. */
body>main,body>main>#content{min-width:0}#content .admin-users-panel,#content .admin-users-panel>.table-wrap,#content .admin-users-panel>.table-top-controls{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:700px){#content .admin-users-panel .admin-users-table,#content .admin-users-panel .admin-users-table thead,#content .admin-users-panel .admin-users-table tbody,#content .admin-users-panel .admin-users-table tr{min-width:0;width:100%;max-width:100%;box-sizing:border-box}#content .admin-users-panel .admin-users-table thead>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}#content .admin-users-panel .admin-users-table thead th{min-width:0;width:auto;padding:6px;text-align:left}#content .admin-users-panel .table-sort-heading{min-width:0;width:100%;white-space:normal;overflow-wrap:anywhere;font-size:9px;letter-spacing:0;justify-content:flex-start}#content .admin-users-panel .admin-users-table tbody>tr{gap:12px;padding:14px}#content .admin-users-panel .user-identity,#content .admin-users-panel .user-identity-text{min-width:0;max-width:100%}#content .admin-users-panel .customer-name-link{white-space:normal;overflow-wrap:anywhere}#content .admin-users-panel .table-top-controls{display:block}#content .admin-users-panel .table-pagination{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-width:0;width:100%;max-width:100%;margin:12px 0}#content .admin-users-panel .table-pagination>span{min-width:0;white-space:normal;text-align:center;font-size:10px}#content .admin-users-panel .table-pagination>.page-number-list{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;min-width:0}#content .admin-users-panel .table-pagination>.btn{min-width:48px;padding:6px 8px}#content .admin-users-panel .search-filter-bar{min-width:0;width:100%;max-width:100%}#content .admin-users-panel .search-filter-bar>*{min-width:0;max-width:100%}}
@media(max-width:380px){#content .admin-users-panel .admin-users-table tbody>tr{grid-template-columns:minmax(0,1fr)}#content .admin-users-panel .admin-users-table tbody td{grid-column:1!important}}


/* Small screens use labeled user cards instead of table headings. */
@media(max-width:700px){#content .admin-users-panel .admin-users-table thead{display:none}#content .admin-users-panel .admin-users-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:16px;margin-bottom:12px}#content .admin-users-panel .admin-users-table tbody td{font-size:12px;line-height:1.6}#content .admin-users-panel .admin-users-table .customer-name-cell{grid-column:1/-1;padding-bottom:10px;border-bottom:1px solid #edf1f5}#content .admin-users-panel .admin-users-table .customer-name-link{font-size:14px;font-weight:600}#content .admin-users-panel .admin-users-table .user-email-cell{grid-column:1/-1}#content .admin-users-panel .admin-users-table .user-actions-cell{grid-column:1/-1;padding-top:8px;border-top:1px solid #edf1f5}#content .admin-users-panel .admin-users-table .user-actions-cell>a{width:100%}}
@media(max-width:380px){#content .admin-users-panel .admin-users-table tbody>tr{grid-template-columns:minmax(0,1fr)}}


/* Mobile user cards: one field/value pair per row. */
@media(max-width:700px){#content .admin-users-panel .admin-users-table tbody>tr{grid-template-columns:minmax(0,1fr);gap:12px}#content .admin-users-panel .admin-users-table tbody td{grid-column:1!important}#content .admin-users-panel .admin-users-table tbody td[data-label]:not(.customer-name-cell):not(.user-actions-cell){display:grid;grid-template-columns:minmax(105px,.85fr) minmax(0,1.15fr);align-items:start;gap:12px}#content .admin-users-panel .admin-users-table tbody td:before{margin:0;line-height:1.6}#content .admin-users-panel .admin-users-table .user-email-cell{overflow-wrap:anywhere}}


/* Compact, consistent admin shortcuts. */
#content .dashboard-header-actions{width:auto;max-width:380px;gap:8px}#content .dashboard-header-actions .btn,#content .admin-add-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 12px;font-size:12px;line-height:1.4;background:#075a9e;color:#fff;border:1px solid #075a9e;border-radius:9px}#content .dashboard-header-actions .ui-icon,#content .admin-add-button .ui-icon{width:18px;height:18px}#content .dashboard-creation-actions{gap:8px}#content .dashboard-header-actions .btn:hover,#content .admin-add-button:hover{background:#064c86}.statistics-page h2{display:flex;align-items:center;gap:10px}.statistics-section-icon{width:20px;height:20px;color:#075a9e;flex:0 0 20px}
body>main>header{min-width:0;gap:12px;flex-wrap:wrap}.header-right{max-width:100%;min-width:0;flex-wrap:wrap}.breadcrumbs{min-width:0;overflow-wrap:anywhere}
#content .question-bank-table{width:100%;min-width:0;table-layout:fixed}#content .question-bank-table td{overflow-wrap:anywhere}#content .question-bank-table .question-number-cell{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:800px){#content .question-bank-table,#content .question-bank-table tbody{display:block;min-width:0;width:100%}#content .question-bank-table tr:first-child{display:flex;flex-wrap:wrap;gap:8px}#content .question-bank-table tr:first-child th{display:block;width:auto;min-width:0;padding:8px}#content .question-bank-table tr:not(:first-child){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;margin-top:12px;border:1px solid #dce6ee;border-radius:10px}#content .question-bank-table td{display:block;padding:0;border:0;width:100%;text-align:left}#content .question-bank-table td:before{content:attr(data-label);display:block;color:#748a9a;font-size:10px;margin-bottom:5px}#content .question-bank-table .category-badge{max-width:100%;white-space:normal}.question-import-header,.question-import-form{flex-wrap:wrap;max-width:100%;min-width:0}.question-import-form input{max-width:100%;min-width:0}body>main>header .header-right{gap:8px}}

#content .dashboard-header-actions{max-width:300px;gap:6px}#content .dashboard-header-actions .btn{min-height:30px;padding:6px 10px;font-size:11px;border-radius:7px;gap:6px}#content .dashboard-header-actions .ui-icon{width:16px;height:16px}#content .dashboard-header-actions .dashboard-creation-actions{gap:6px}

/* Shared section headings keep their icons aligned when titles wrap. */
.section-icon-heading{display:flex;align-items:center;gap:10px;min-width:0}
.section-icon-heading>span{min-width:0;overflow-wrap:break-word}
.section-heading-icon{width:20px;height:20px;flex:0 0 20px;color:var(--primary,#0065b3)}
/* Compact dashboard shortcuts. */
#content .dashboard-header-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;flex:0 1 auto;width:auto;max-width:none;gap:6px}
#content .dashboard-header-actions .dashboard-creation-actions{display:flex;flex-wrap:wrap;gap:6px}
#content .dashboard-header-actions .btn{width:auto;flex:0 0 auto;min-height:32px;padding:6px 9px;box-shadow:none;font-size:11px;font-weight:600}
@media(max-width:700px){#content .dashboard-header-actions{align-self:flex-start}}
/* Let page content shrink and wrap instead of widening the viewport. */
main,#content,#content>.panel,#content>div,.page-title,.page-title>div,.panel-head,.panel-head>div{min-width:0}
#content .panel,#content .table-wrap,#content .results-table-wrap{box-sizing:border-box;max-width:100%;min-width:0}
#content .page-title,#content .panel-head{flex-wrap:wrap;gap:12px}
#content .page-title h1,#content .panel-head h2{overflow-wrap:anywhere}
#content .filters,#content .search-filter-bar{flex-wrap:wrap;min-width:0;max-width:100%}
#content .filters>label,#content .search-filter-bar>label{min-width:0;max-width:100%}
#content .filters input,#content .filters select,#content .search-filter-bar input,#content .search-filter-bar select{box-sizing:border-box;min-width:0;max-width:100%}
#content img,#content video,#content canvas{max-width:100%}
#content .dialog-actions{flex-wrap:wrap}
#content .recent-user-row{min-width:0;flex-wrap:wrap;gap:8px}
#content .recent-user-row>time{max-width:100%;white-space:normal}
@media(max-width:700px){
 nav{flex-wrap:wrap;overflow:visible;gap:4px}
 nav a{min-width:0;white-space:normal}
 #content .page-title>div,#content .panel-head h2{max-width:100%}
 #content .filters>input:not([type=hidden]),#content .filters>label,#content .filters>select{flex:1 1 180px}
 #content .dashboard-header-actions{max-width:100%;flex-basis:auto}
 #content .dashboard-header-actions .dashboard-creation-actions{min-width:0}
 #content .dashboard-header-actions .btn{max-width:100%;white-space:normal}
 footer{flex-wrap:wrap;gap:16px;min-width:0}
 dialog{box-sizing:border-box;max-width:calc(100% - 24px);padding:20px}
}
/* Admin user actions match the compact dashboard shortcuts. */
#content .admin-add-button,#content .admin-create-user-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;width:auto;min-height:32px;padding:6px 9px;font-size:11px;line-height:1.4;font-weight:600;border-radius:7px;box-shadow:none;margin:0}
#content .admin-add-button .ui-icon{width:16px;height:16px}
#content .admin-create-user-actions{justify-content:flex-end;gap:6px}
/* Compact user cards: identity and action share a header, details fill two columns. */
@media(min-width:701px) and (max-width:1000px){
 #content .admin-users-panel .admin-users-table thead{display:none}
 #content .admin-users-panel .admin-users-table tbody>tr{display:grid;grid-template-columns:54px minmax(0,1fr) minmax(0,1fr) auto;gap:12px 16px;padding:16px;align-items:start;box-sizing:border-box}
 #content .admin-users-panel .admin-users-table tbody td{width:auto;min-width:0;padding:0;line-height:1.5;text-align:left;white-space:normal}
 #content .admin-users-panel .admin-users-table td.row-number-cell{grid-column:1;grid-row:1;align-self:center;font-size:11px}
 #content .admin-users-panel .admin-users-table td.row-number-cell:before{display:inline;margin-right:4px}
 #content .admin-users-panel .admin-users-table td.customer-name-cell{grid-column:2/4;grid-row:1;align-self:center;border:0;padding:0}
 #content .admin-users-panel .admin-users-table td.user-actions-cell{grid-column:4;grid-row:1;border:0;padding:0}
 #content .admin-users-panel .admin-users-table td.user-actions-cell>a{width:auto;min-height:30px;padding:5px 10px;font-size:11px}
 #content .admin-users-panel .admin-users-table td:not(.row-number-cell):not(.customer-name-cell):not(.user-actions-cell){grid-column:span 2}
 #content .admin-users-panel .admin-users-table td:before{margin-bottom:4px}
}
@media(max-width:700px){
 #content .admin-users-panel .admin-users-table td.row-number-cell{width:auto;min-width:0;text-align:left}
 #content .admin-users-panel .admin-users-table td.user-actions-cell>a{width:auto;min-height:30px;padding:5px 10px;font-size:11px}
 #content .admin-users-panel .admin-users-table tbody>tr{gap:10px;padding:14px}
}
/* Dashboard shortcuts: Statistics above two equally sized creation actions. */
#content .dashboard-header-actions{display:flex;flex-direction:column;align-items:stretch;flex:0 1 280px;width:280px;max-width:100%;gap:6px}
#content .dashboard-header-actions>.btn{width:100%;box-sizing:border-box}
#content .dashboard-header-actions .dashboard-creation-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
#content .dashboard-header-actions .dashboard-creation-actions>.btn{width:100%;min-width:0;box-sizing:border-box;padding:6px 8px}
@media(max-width:700px){#content .dashboard-header-actions{flex-basis:auto;width:280px;max-width:100%}}
/* Analytics panels fit their content; narrow layouts give each section a full row. */
#content .statistics-page .statistics-learning-row{align-items:start}
#content .statistics-page .statistics-learning-row>.panel{height:auto;min-height:0}
#content .statistics-page .statistics-learning-row>.panel>.stats{flex:0 0 auto;grid-template-rows:auto;align-items:stretch}
#content .statistics-page .statistics-performance-stats>.stat{grid-row:auto;grid-column:auto;grid-template-rows:minmax(36px,auto) auto minmax(30px,auto);padding:16px;row-gap:10px;min-height:0}
#content .statistics-page .statistics-performance-stats>.stat>strong{font-size:clamp(24px,2.3vw,32px);line-height:1.2;overflow-wrap:normal}
#content .statistics-page .statistics-learning-row .results-history-chart{margin-bottom:28px;gap:clamp(4px,1vw,14px);min-width:0}
#content .statistics-page .statistics-learning-row .results-history-chart>div{min-width:0}
@media(max-width:1100px){
 #content .statistics-page .statistics-learning-row{grid-template-columns:minmax(0,1fr);gap:14px}
 #content .statistics-page .statistics-learning-row .statistics-performance-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 #content .statistics-page .statistics-learning-row .statistics-performance-stats>.stat:last-child{grid-column:auto}
 #content .statistics-page .statistics-learning-row>.panel{padding:16px}
}
@media(max-width:600px){
 #content .statistics-page .statistics-learning-row .statistics-performance-stats{grid-template-columns:minmax(0,1fr);gap:10px}
 #content .statistics-page .statistics-performance-stats>.stat{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,auto);grid-template-rows:auto auto;gap:8px 12px;padding:12px 14px;align-items:center}
 #content .statistics-page .statistics-performance-stats>.stat>.stat-top{grid-column:1;grid-row:1;min-height:0;margin:0;align-self:center}
 #content .statistics-page .statistics-performance-stats>.stat>strong{grid-column:2;grid-row:1;justify-self:center;width:auto;font-size:26px;text-align:center;white-space:nowrap}
 #content .statistics-page .statistics-performance-stats>.stat>small{grid-column:1/-1;grid-row:2;min-height:0;margin:0}
 #content .statistics-page .statistics-learning-row .results-history-chart{gap:4px;padding-left:2px;padding-right:2px}
 #content .statistics-page .results-history-chart b{font-size:9px}
 #content .statistics-page .results-history-chart small{font-size:8px;white-space:nowrap}
 #content .statistics-page .statistics-learning-row>.panel>h2{font-size:18px;gap:8px;margin-bottom:14px}
}
/* Explicit typography and wrapping for exam summaries in every browser. */
#content .compact-exam-title,#content .exam-title-text{font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:400;line-height:1.4;letter-spacing:normal;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#content .compact-exam-title{display:block}
#content .exam-title-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;min-width:0}
#content .exam-progress-summary,#content .exam-info .exam-progress-summary,#content .admin-purchases-table .exam-progress-summary{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px 10px;width:auto;max-width:100%;margin:5px 0 0;padding:0;font-family:Arial,Helvetica,sans-serif;font-size:10px;font-weight:400;line-height:1.5;letter-spacing:normal;text-align:left;box-sizing:border-box}
#content .exam-progress-summary>span{display:inline-block;flex:0 0 auto;margin:0;padding:0;border:0;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:400px){#content .exam-progress-summary,#content .exam-info .exam-progress-summary{column-gap:8px}}
/* Compact account deactivation action. */
#content .profile-deactivate-panel .account-danger-button{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-width:0;min-height:30px;height:auto;padding:6px 10px;margin:0;border-radius:7px;font-size:11px;font-weight:600;line-height:1.4;white-space:normal;box-sizing:border-box}
.dashboard-buy-exam{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;padding:8px 0}
.dashboard-buy-exam>p{flex:1 1 240px;margin:0;line-height:1.6}
#content .dashboard-buy-exam>.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-height:34px;padding:7px 12px;margin:0;font-size:12px}
.dashboard-buy-exam .ui-icon{width:16px;height:16px}
/* Store introduction: clear benefits followed by the domain breakdown. */
#content .exam-store-panel .store-included{margin:0 0 22px}
#content .exam-store-panel .store-included h2{font-size:20px;line-height:1.4;margin:0 0 14px}
.store-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.store-benefits>li{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid #dce6ee;border-radius:9px;background:#f7fafc;min-width:0}
.store-benefits strong{font-size:13px;line-height:1.4;font-weight:600;color:#183247}
.store-benefits span{font-size:11px;line-height:1.5;color:#748a9a}
#content .exam-store-panel>.exam-structure-panel{padding-top:20px;border-top:1px solid #dce6ee}
#content .exam-store-panel .exam-structure-panel .panel-head{align-items:center;gap:8px 12px;margin-bottom:14px}
#content .exam-store-panel .exam-structure-panel h2{font-size:17px;margin:0;line-height:1.4}
@media(max-width:600px){
 #content .exam-store-panel .store-included h2{font-size:18px}
 .store-benefits{grid-template-columns:minmax(0,1fr);gap:8px}
 .store-benefits>li{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:10px 12px}
 #content .exam-store-panel .store-included{margin-bottom:16px}
 #content .exam-store-panel>.exam-structure-panel{padding-top:16px}
}
/* Mock Exam Structure is the first heading in the store panel. */
#content .exam-store-panel>.exam-structure-panel{padding-top:0;border-top:0}
#content .exam-store-panel .exam-structure-panel h2{font-size:20px}
@media(max-width:600px){#content .exam-store-panel .exam-structure-panel h2{font-size:18px}}
.admin-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;align-items:start}
#content .admin-product-card{margin:0;min-width:0;padding:20px}
#content .admin-product-card h2{font-size:17px;line-height:1.4}
.admin-product-card .profile-details{margin:16px 0}
#content .admin-product-card>.btn{width:auto;min-height:32px;padding:6px 10px;font-size:11px}
#content .product-active-field{display:flex;align-items:center;gap:8px}
#content .product-active-field input{width:16px;height:16px;margin:0}
/* Exam exit uses the same red treatment as Log Out. */
.exam-focus .header-right .exam-exit-button{background:#fff1f2;color:#b42332;border:1px solid #f4b7b7;border-radius:10px;font-weight:700;cursor:pointer}
.exam-focus .header-right .exam-exit-button:hover{background:#ffe4e6;border-color:#e57d88;box-shadow:none}
.exam-focus .header-right .exam-exit-button:active{background:#ffd9de;box-shadow:inset 0 2px 5px rgb(180 35 50 / 12%)}
.exam-focus .header-right .exam-exit-button:focus-visible{outline:3px solid #e57d88;outline-offset:3px}
#content .purchase-history-action>.badge.status-completed{display:inline-flex;justify-content:center;align-items:center;max-width:100%;padding:5px 7px;font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:normal;text-align:center}
#content .monthly-exam-sales{padding:16px;margin:0 0 20px;min-width:0;background:#fff;box-shadow:none}
#content .monthly-exam-sales h2{font-size:18px;margin:0}
.monthly-sales-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:20px 0 8px;min-width:0}
.monthly-sales-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;height:200px;min-width:0}
.monthly-sales-column .earnings-bar{width:100%;max-width:48px;min-height:2px;flex:0 0 auto}
.monthly-sales-column .earnings-amount{font-size:10px;padding:3px 4px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.monthly-sales-column>small{font-size:10px;line-height:1.4}
@media(max-width:600px){.monthly-sales-chart{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 8px}.monthly-sales-column{height:190px}#content .monthly-exam-sales{padding:12px}}
.sales-breakdown{margin-top:12px;min-width:0}
.sales-breakdown>summary{cursor:pointer;line-height:1.5;padding:4px 0}
.sales-breakdown-rows{display:grid;gap:12px;padding:14px 0 8px}
.sales-breakdown-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(60px,2fr) minmax(44px,auto);align-items:center;gap:12px;min-width:0;font-size:11px;line-height:1.5}
.sales-breakdown-row>span:first-child{overflow-wrap:anywhere}
.sales-breakdown-row>strong{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.sales-breakdown-track{height:12px;overflow:hidden;border-radius:5px;background:#edf3f7}
.sales-breakdown-track>span{display:block;height:100%;background:linear-gradient(90deg,#075a9e,#18a8c8);border-radius:5px}
@media(max-width:480px){.sales-breakdown-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.sales-breakdown-row>.sales-breakdown-track{grid-column:1/-1;grid-row:2}.sales-breakdown-row>strong{grid-column:2;grid-row:1}}
#content .sales-reports-section{padding:18px;margin:0 0 20px;min-width:0;box-shadow:none}
#content .sales-reports-section>.panel-head>h2{font-size:19px;margin:0}
.sales-chart-controls{display:flex;flex-wrap:wrap;gap:6px}
#content .sales-chart-controls .btn{min-height:32px;padding:6px 12px;font-size:11px;margin:0}
#content .sales-chart-controls .btn[aria-expanded=true]{background:#075a9e;border-color:#075a9e;color:#fff}
#content .sales-chart-panel>.panel{padding:16px 0 0;margin:0;border:0;border-top:1px solid #dce6ee;border-radius:0;box-shadow:none}
.sales-chart-panel+.sales-chart-panel:not([hidden]){margin-top:20px}
@media(max-width:600px){#content .sales-reports-section{padding:12px}}
/* Revenue uses the same fitted month grid as the Orders chart. */
#content .sales-reports-section #revenue-graph .earnings-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;width:100%;min-width:0;max-width:100%;height:auto;min-height:0;overflow:visible;padding:20px 0 8px;box-sizing:border-box}
#content .sales-reports-section #revenue-graph .earnings-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:auto;min-width:0;max-width:100%;height:220px;gap:8px;box-sizing:border-box}
#content .sales-reports-section #revenue-graph .earnings-bar{width:100%;max-width:48px;min-width:0;min-height:2px;flex:0 0 auto}
#content .sales-reports-section #revenue-graph .earnings-amount{font-size:10px;line-height:1.4;padding:3px 4px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;box-sizing:border-box}
#content .sales-reports-section #revenue-graph .earnings-column>small{position:static;font-size:10px;line-height:1.4}
@media(max-width:600px){#content .sales-reports-section #revenue-graph .earnings-chart{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 8px}}
/* Dashboard actions hug their labels while keeping the two-row arrangement. */
#content .dashboard-header-actions{flex:0 1 auto;width:max-content;max-width:100%;gap:5px}
#content .dashboard-header-actions .dashboard-creation-actions{grid-template-columns:repeat(2,max-content);width:max-content;max-width:100%;gap:5px}
#content .dashboard-header-actions .btn{min-height:30px;padding:5px 8px;gap:5px;font-size:11px;line-height:1.35}
#content .dashboard-header-actions .dashboard-creation-actions>.btn{width:auto;padding:5px 8px}
#content .dashboard-header-actions>.btn{width:100%}
@media(max-width:320px){#content .dashboard-header-actions .dashboard-creation-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}}
/* Equal creation buttons with compact content-based overall width. */
#content .dashboard-header-actions .dashboard-creation-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
#content .dashboard-header-actions .dashboard-creation-actions>.btn{width:100%;height:30px;min-height:30px;box-sizing:border-box;white-space:nowrap}
.system-log-filters{align-items:end;gap:10px}
.system-log-filters>label{display:flex;flex-direction:column;gap:6px;font-size:11px}
.system-log-filters>input,.system-log-filters>select{flex:1 1 150px}
.system-log-list{display:grid;gap:12px}
.system-log-card{border:1px solid #dce6ee;border-radius:10px;padding:14px;min-width:0}
.system-log-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px}
.system-log-meta{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0;color:#748a9a;font-size:11px}
.system-log-card>details>summary{cursor:pointer;font-size:11px;padding:4px 0}
.system-log-details{display:grid;gap:10px;margin:12px 0 0}
.system-log-details>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:10px}
.system-log-details dt{color:#748a9a;font-size:11px}.system-log-details dd{margin:0;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}
.system-log-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:11px}
@media(max-width:600px){.system-log-filters>*{max-width:100%}.system-log-details>div{grid-template-columns:minmax(0,1fr);gap:4px}.system-log-card{padding:12px}}
/* Sidebar groups keep related destinations together without extra menu levels. */
#primary-navigation .nav-section-label{display:block;margin:14px 12px 7px;color:#8598a6;font-size:9px;font-weight:600;line-height:1.4;letter-spacing:.07em}
#primary-navigation>.nav-section-label:first-child{margin-top:0}
body>aside #primary-navigation a{min-height:38px;padding:9px 12px;margin-bottom:3px;box-sizing:border-box}
@media(max-width:700px){#primary-navigation .nav-section-label{grid-column:1/-1;flex-basis:100%;margin:10px 8px 3px}body>aside #primary-navigation a{min-height:40px;margin:0;padding:9px 10px}}

/* Sales overview and user records are independent responsive panels. */
#content .sales-records-panel{container-type:inline-size;min-width:0;max-width:100%}
#content .sales-records-panel>.panel-head h2{font-size:19px;margin:0}
#content .sales-records-panel .table-wrap{width:100%;min-width:0;max-width:100%}
#content .sales-records-panel .table-top-controls,#content .sales-records-panel .table-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;max-width:100%;min-width:0}
#content .sales-records-panel .table-pagination>span{white-space:normal;min-width:0}
#content .sales-records-panel .page-number-list{display:flex;flex-wrap:wrap;gap:5px;max-width:100%}
#content .sales-reports-section{max-width:100%;box-sizing:border-box}
#content .sales-reports-section .panel-head,#content .sales-reports-section .sales-chart-controls{min-width:0;max-width:100%;flex-wrap:wrap}
#content .sales-reports-section .earnings-year>summary{white-space:normal;overflow-wrap:anywhere}

@container(max-width:950px){
#content .sales-records-panel .table-wrap{overflow:visible}
#content .sales-records-panel .admin-purchases-table,#content .sales-records-panel .admin-purchases-table tbody{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#content .sales-records-panel .admin-purchases-table thead{display:none}
#content .sales-records-panel .admin-purchases-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;width:100%;max-width:100%;box-sizing:border-box;padding:14px;border:1px solid #dce6ee;border-radius:10px;margin-bottom:12px}
#content .sales-records-panel .admin-purchases-table tbody td{display:block;min-width:0;width:auto;max-width:100%;padding:0;border:0;white-space:normal;text-align:left!important;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
#content .sales-records-panel .admin-purchases-table tbody td:before{content:attr(data-label);display:block;font-size:10px;color:#748a9a;line-height:1.4;margin-bottom:4px}
#content .sales-records-panel .admin-purchases-table td.customer-name-cell{grid-column:1/-1;grid-row:1;padding-bottom:10px;border-bottom:1px solid #edf1f5}
#content .sales-records-panel .admin-purchases-table td.customer-name-cell:before{display:none}
#content .sales-records-panel .admin-purchases-table td[data-label="No."]{grid-column:1;grid-row:2}
#content .sales-records-panel .admin-purchases-table td[data-label="Status"]{grid-column:2;grid-row:2}
#content .sales-records-panel .admin-purchases-table td[data-label="Exam"],#content .sales-records-panel .admin-purchases-table td[data-label="Package"]{grid-column:1/-1}
#content .sales-records-panel .purchase-timestamp{white-space:normal}
#content .sales-records-panel .badge{max-width:100%;white-space:normal}
#content .sales-records-panel .purchase-package-line{margin:0 0 4px}
}
@supports not(container-type:inline-size){@media(max-width:1250px){
#content .sales-records-panel .table-wrap{overflow:visible}
#content .sales-records-panel .admin-purchases-table,#content .sales-records-panel .admin-purchases-table tbody{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#content .sales-records-panel .admin-purchases-table thead{display:none}
#content .sales-records-panel .admin-purchases-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;width:100%;max-width:100%;box-sizing:border-box;padding:14px;border:1px solid #dce6ee;border-radius:10px;margin-bottom:12px}
#content .sales-records-panel .admin-purchases-table tbody td{display:block;min-width:0;width:auto;max-width:100%;padding:0;border:0;white-space:normal;text-align:left!important;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
#content .sales-records-panel .admin-purchases-table tbody td:before{content:attr(data-label);display:block;font-size:10px;color:#748a9a;line-height:1.4;margin-bottom:4px}
#content .sales-records-panel .admin-purchases-table td.customer-name-cell{grid-column:1/-1;grid-row:1;padding-bottom:10px;border-bottom:1px solid #edf1f5}
#content .sales-records-panel .admin-purchases-table td.customer-name-cell:before{display:none}
#content .sales-records-panel .admin-purchases-table td[data-label="No."]{grid-column:1;grid-row:2}
#content .sales-records-panel .admin-purchases-table td[data-label="Status"]{grid-column:2;grid-row:2}
#content .sales-records-panel .admin-purchases-table td[data-label="Exam"],#content .sales-records-panel .admin-purchases-table td[data-label="Package"]{grid-column:1/-1}
#content .sales-records-panel .purchase-timestamp{white-space:normal}
#content .sales-records-panel .badge{max-width:100%;white-space:normal}
#content .sales-records-panel .purchase-package-line{margin:0 0 4px}
}}
@media(max-width:400px){#content .sales-records-panel .admin-purchases-table tbody>tr{gap:10px;padding:12px}#content .sales-records-panel .admin-purchases-table td[data-label="Purchased"],#content .sales-records-panel .admin-purchases-table td[data-label="Expires"]{grid-column:1/-1}}
.product-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
#content .product-card-actions .btn{min-height:30px;padding:6px 10px;margin:0;gap:6px;font-size:11px}
.product-card-actions .ui-icon{width:15px;height:15px}
#content .product-delete-button{background:#fff1f2;color:#b42332;border:1px solid #f4b7b7}
#content .product-delete-button:hover{background:#ffe4e6;border-color:#e57d88}
#content .product-delete-button:focus-visible{outline:3px solid #e57d88;outline-offset:3px}
/* Equal product cards with aligned headings, details, and actions. */
#content .admin-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;align-items:stretch;grid-auto-rows:1fr}
#content .admin-product-grid>.admin-product-card{display:flex;flex-direction:column;height:100%;min-width:0;margin:0;padding:18px;box-sizing:border-box}
#content .admin-product-card>.panel-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;min-height:48px;margin:0 0 14px}
#content .admin-product-card>.panel-head h2{font-size:16px;line-height:1.45;margin:0;align-items:flex-start;min-width:0}
#content .admin-product-card>.panel-head h2>span{overflow-wrap:anywhere}
#content .admin-product-card>.panel-head .section-heading-icon{margin-top:2px}
#content .admin-product-card>.panel-head>.badge{font-size:10px;padding:3px 6px;white-space:nowrap;align-self:start}
#content .admin-product-card .profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
#content .admin-product-card .profile-details dt{font-size:10px;margin-bottom:6px}
#content .admin-product-card .profile-details dd{font-size:18px;font-weight:600;line-height:1.4}
#content .admin-product-card .product-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:14px;border-top:1px solid #edf1f5}
@media(max-width:600px){#content .admin-product-grid{gap:12px}#content .admin-product-grid>.admin-product-card{padding:16px}#content .admin-product-card>.panel-head{margin-bottom:10px}}
#content .account-deletion-warning{background:#fff1f2;border:1px solid #f4b7b7;color:#923141;padding:14px;margin:16px 0}
#content .account-deletion-warning strong{display:block;margin-bottom:8px;color:#b42332}
#content .account-deletion-warning p{margin:8px 0 0;line-height:1.6}
/* Mobile menu: a single right-aligned list without group headings. */
@media(max-width:700px){
 body>aside #primary-navigation{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:100%;min-width:0;padding:4px 0}
 body>aside #primary-navigation .nav-section-label{display:none}
 body>aside #primary-navigation a{display:flex;justify-content:flex-end;align-items:center;width:100%;min-width:0;min-height:40px;margin:0;padding:9px 12px;text-align:right;white-space:normal;overflow-wrap:anywhere;gap:10px}
 body>aside #primary-navigation a.active{box-shadow:inset -3px 0 var(--blue,#075a9e)}
 body>aside .side-bottom{display:flex;justify-content:flex-end;width:100%;box-sizing:border-box}
 body>aside .side-bottom .sidebar-logout{margin:0;width:auto;max-width:100%}
 body>aside .side-bottom .logout-button{justify-content:flex-end;width:auto;max-width:100%;margin:0;text-align:right}
 body>aside.mobile-menu-ready:not(.mobile-menu-open) #primary-navigation,body>aside.mobile-menu-ready:not(.mobile-menu-open) .side-bottom{display:none}
}
/* Nudge the mobile sidebar logo down without changing header height. */
@media(max-width:700px){body>aside .brand img{position:relative;top:5px}}
/* Mobile header: menu on the left, logo on the right. */
@media(max-width:700px){
 body>aside{grid-template-columns:auto minmax(0,1fr)}
 body>aside .mobile-menu-toggle:not([hidden]){grid-column:1;grid-row:1;justify-self:start}
 body>aside .brand{grid-column:2;grid-row:1;justify-self:end}
}
/* Compact sidebar sign-out control on desktop and mobile. */
body>aside .sidebar-logout .logout-button{width:auto;min-height:32px;padding:6px 10px;gap:7px;font-size:11px;line-height:1.4;border-radius:7px}
body>aside .sidebar-logout .logout-button .ui-icon{width:16px;height:16px;flex:0 0 16px}
@media(max-width:700px){body>aside .side-bottom .sidebar-logout .logout-button{width:auto;min-height:30px;padding:5px 9px;gap:6px;font-size:11px;border-radius:7px}body>aside .side-bottom .sidebar-logout .logout-button .ui-icon{width:15px;height:15px;flex-basis:15px}}
#content .statistics-page .statistics-learning-row .admin-performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:801px) and (max-width:1100px){#content .statistics-page .statistics-learning-row .admin-performance-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){#content .statistics-page .statistics-learning-row .admin-performance-metrics{grid-template-columns:minmax(0,1fr)}}
/* Mobile navigation aligns all destinations and sign-out to the left. */
@media(max-width:700px){
 body>aside #primary-navigation a{justify-content:flex-start;text-align:left}
 body>aside #primary-navigation a.active{box-shadow:inset 3px 0 var(--blue,#075a9e)}
 body>aside .side-bottom{justify-content:flex-start}
 body>aside .side-bottom .sidebar-logout .logout-button{justify-content:flex-start;text-align:left}
}
/* Balance analytics rows and keep metric cards compact. */
#content .statistics-page .statistics-learning-row{align-items:stretch}
#content .statistics-page .statistics-learning-row>.panel{height:auto;min-height:0;padding:18px}
#content .statistics-page .statistics-learning-row>.panel>.stats{flex:0 0 auto}
#content .statistics-page .statistics-performance-stats>.stat{min-height:126px;padding:14px;grid-template-rows:minmax(30px,auto) auto minmax(24px,auto);row-gap:8px}
#content .statistics-page .statistics-performance-stats>.stat>strong{font-size:28px;line-height:1.2}
#content .statistics-page .statistics-performance-stats>.stat>small{font-size:10px;line-height:1.45;min-height:0;margin:0}
#content .statistics-page .statistics-learning-row .results-history-chart{flex:1;min-height:180px;height:auto;max-height:280px;margin-top:24px;margin-bottom:28px;padding-top:24px}
#content .statistics-page .statistics-overview-row .stats>.stat{padding:14px;min-height:105px;row-gap:8px}
@media(max-width:1100px){#content .statistics-page .statistics-learning-row{align-items:start}#content .statistics-page .statistics-learning-row .results-history-chart{flex:none;height:180px;min-height:180px;margin-top:20px}}
@media(max-width:600px){#content .statistics-page .statistics-learning-row>.panel{padding:14px}#content .statistics-page .statistics-performance-stats>.stat{min-height:0;grid-template-rows:auto auto;padding:12px 14px}#content .statistics-page .statistics-performance-stats>.stat>strong{font-size:25px}#content .statistics-page .statistics-learning-row .results-history-chart{height:160px;min-height:160px;margin-top:16px}}
/* Separate percentage metrics and exam durations beside a fitted results chart. */
#content .statistics-page .statistics-separated-metrics{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch;gap:16px}
.statistics-metric-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
#content .statistics-metric-groups>.panel{margin:0;padding:16px;min-width:0}
#content .statistics-metric-groups h2{font-size:18px;margin:0 0 14px}
#content .statistics-metric-groups .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:12px;margin:0}
#content .statistics-metric-groups .stat{display:grid;grid-row:auto;grid-template-rows:minmax(30px,auto) auto minmax(24px,auto);gap:8px;min-width:0;min-height:115px;padding:14px}
#content .statistics-metric-groups .stat>strong{font-size:28px;line-height:1.2;overflow-wrap:normal}
#content .statistics-metric-groups .stat>small{font-size:10px;line-height:1.5;margin:0}
#content .statistics-page .statistics-separated-metrics .results-history-chart{height:240px;min-height:200px;max-height:none;flex:1 1 240px;margin:24px 0 28px;padding-top:24px}
@media(max-width:1100px){#content .statistics-page .statistics-separated-metrics{grid-template-columns:minmax(0,1fr)}.statistics-metric-groups{grid-template-columns:repeat(2,minmax(0,1fr))}#content .statistics-page .statistics-separated-metrics .results-history-chart{height:200px;flex:0 0 200px}}
@media(max-width:800px){.statistics-metric-groups{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){#content .statistics-metric-groups>.panel{padding:14px}#content .statistics-metric-groups .stats{gap:8px}#content .statistics-metric-groups .stat{padding:10px;min-height:105px}#content .statistics-metric-groups .stat>strong{font-size:23px}#content .statistics-page .statistics-separated-metrics .results-history-chart{height:170px;min-height:170px;flex-basis:170px}}
/* Accessible sign-out sizing aligned with sidebar navigation. */
body>aside .sidebar-logout{width:100%;margin:0}
body>aside .sidebar-logout .logout-button{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;box-sizing:border-box;padding:9px 12px;margin:0;gap:10px;background:#fff1f2;color:#b42332;border:1px solid #f4b7b7;border-radius:8px;font-size:12px;font-weight:600;line-height:1.4;text-align:left}
body>aside .sidebar-logout .logout-button .ui-icon{width:18px;height:18px;flex:0 0 18px}
body>aside .sidebar-logout .logout-button:hover{background:#ffe4e6;border-color:#e57d88}
body>aside .sidebar-logout .logout-button:focus-visible{outline:3px solid #e57d88;outline-offset:3px}
@media(max-width:700px){body>aside .side-bottom{justify-content:flex-start}body>aside .side-bottom .sidebar-logout{width:auto;max-width:100%}body>aside .side-bottom .sidebar-logout .logout-button{width:auto;min-height:44px;padding:10px 12px;gap:10px;font-size:12px;border-radius:8px;justify-content:flex-start;text-align:left}body>aside .side-bottom .sidebar-logout .logout-button .ui-icon{width:18px;height:18px;flex-basis:18px}}
/* Performance and time first; a compact full-width results chart follows. */
#content .statistics-page .statistics-chart-last{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
#content .statistics-chart-last .statistics-metric-groups{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.statistics-compact-results{min-width:0}
#content .statistics-compact-results>.panel{display:flex;flex-direction:column;padding:18px;margin:0;min-width:0}
#content .statistics-compact-results h2{font-size:19px;margin:0 0 14px}
#content .statistics-page .statistics-chart-last .results-history-chart{flex:0 0 auto;height:150px;min-height:150px;max-height:150px;margin:16px 0 28px;padding:18px 8px 0;gap:clamp(8px,2vw,24px)}
#content .statistics-chart-last .results-history-chart>div{max-width:54px;min-width:0}
@media(max-width:800px){#content .statistics-chart-last .statistics-metric-groups{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){#content .statistics-compact-results>.panel{padding:14px}#content .statistics-page .statistics-chart-last .results-history-chart{height:125px;min-height:125px;max-height:125px;gap:6px;padding-left:0;padding-right:0}}
/* Exam durations first, percentage metrics on the right. */
#content .statistics-chart-last .statistics-metric-groups>.panel:first-child{order:2}
#content .statistics-chart-last .statistics-metric-groups>.panel:last-child{order:1}
/* Compact permanent question numbers and consistent preview/edit actions. */
#content .question-bank-table th:first-child,#content .question-bank-table td.question-number-cell{width:60px;min-width:0;padding-left:8px;padding-right:8px;text-align:left;white-space:nowrap;box-sizing:border-box}
#content .question-bank-table th:nth-child(2){width:auto}
#content .question-bank-table th:nth-child(3){width:25%}
#content .question-bank-table th:nth-child(4){width:100px}
#content .question-bank-table th:last-child{width:128px}
.question-bank-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#content .question-bank-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 8px;margin:0;gap:5px;font-size:11px;line-height:1.4;border-radius:7px}
#content .question-bank-actions .ui-icon{width:16px;height:16px;flex:0 0 16px}
#content .question-bank-actions .question-preview-button{width:32px;padding:6px}
#content .question-bank-actions .question-edit-button{background:#edf5fc;border-color:#c5ddec;color:#075a9e}
#content .question-bank-actions .question-edit-button:hover{background:#deedf9;border-color:#8fb7d1}
@media(max-width:800px){#content .question-bank-table th:first-child,#content .question-bank-table th:nth-child(2),#content .question-bank-table th:nth-child(3),#content .question-bank-table th:nth-child(4),#content .question-bank-table th:last-child{width:auto}#content .question-bank-table td.question-number-cell{width:auto;padding:0}}
.question-format-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;margin-top:6px}
.question-format-icons{display:inline-flex;align-items:center;gap:6px}
.question-format-icon{display:inline-flex;align-items:center;justify-content:center;color:#617e92;line-height:1}
.question-format-icon svg{display:block;width:14px;height:14px;flex:0 0 14px}
/* Center question-bank number values within their compact column. */
#content .question-bank-table td.question-number-cell{text-align:center}
/* Tight question publication-status labels. */
#content .question-bank-table td[data-label="Status"]>.badge{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:auto;padding:2px 5px;font-size:10px;font-weight:500;line-height:1.3;border-radius:4px;white-space:nowrap}
/* Shared Edit action overrides larger table-specific action styles. */
#content .edit-action-btn{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:32px!important;height:auto;max-width:100%;padding:6px 9px!important;margin:0;gap:6px;font-size:11px!important;font-weight:600;line-height:1.4;background:#edf5fc!important;color:#075a9e!important;border:1px solid #c5ddec!important;border-radius:7px!important;text-decoration:none;box-sizing:border-box;white-space:nowrap}
#content .edit-action-btn .ui-icon{width:16px;height:16px;flex:0 0 16px}
#content .edit-action-btn:hover{background:#deedf9!important;border-color:#8fb7d1!important}
#content .edit-action-btn:focus-visible{outline:3px solid #70b7e0;outline-offset:3px}
/* Keep question preview and edit together on one line. */
#content .question-bank-table .question-bank-actions{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:6px;white-space:nowrap}
#content .question-bank-table td[data-label="Actions"]{padding-left:6px;padding-right:6px}
#content .question-bank-table .question-bank-actions>.btn{flex:0 0 auto}
@media(max-width:800px){#content .question-bank-table td[data-label="Actions"]{padding:0}}
#content .admin-dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.question-bank-total{display:inline-flex;vertical-align:middle;margin-left:8px;font-size:11px;font-weight:500;letter-spacing:normal;white-space:normal}
@media(max-width:480px){#content .admin-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.question-bank-total{display:table;margin:8px 0 0}}
/* Shared border geometry for compact Edit and Delete actions. */
#content .product-card-actions .btn,#content .edit-action-btn,#content .product-delete-button{border-width:1px!important;border-style:solid!important;border-radius:7px!important;min-height:32px;padding:6px 9px;box-sizing:border-box}
#content .results-table th.reward-points-column{width:76px}
#content .results-table td.reward-points-cell{font-size:11px;font-weight:600;color:#075a9e;text-align:center;white-space:nowrap}
.exam-rewards-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:18px;margin-top:18px;border-top:1px solid #dce6ee}
.exam-rewards-footer>div{display:grid;gap:6px}
.rewards-label{font-size:12px;color:#617e92}.exam-rewards-footer strong{font-size:26px;color:#183247}.exam-rewards-footer small{font-size:11px;color:#748a9a;line-height:1.5}
#content .free-exam-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;font-size:11px;margin:0}
#content .free-exam-button:disabled{opacity:1;background:#edf1f5;color:#8a99a6;border:1px solid #dce3e9;cursor:not-allowed}
.free-exam-button .ui-icon{width:16px;height:16px}
@media(max-width:700px){
 #content .completed-exams-rewards .results-table-wrap{overflow:visible}
 #content .completed-exams-rewards .results-table,#content .completed-exams-rewards .results-table tbody{display:block;width:100%;min-width:0}
 #content .completed-exams-rewards .results-table thead{display:none}
 #content .completed-exams-rewards .results-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #dce6ee;border-radius:10px;margin-bottom:12px}
 #content .completed-exams-rewards .results-table td{display:block;width:auto;min-width:0;padding:0;border:0;white-space:normal;text-align:left;overflow-wrap:anywhere}
 #content .completed-exams-rewards .results-table td:before{content:attr(data-label);display:block;color:#748a9a;font-size:10px;margin-bottom:5px}
 #content .completed-exams-rewards .results-table td[data-label="Exam"],#content .completed-exams-rewards .results-table td[data-label="Completed"]{grid-column:1/-1}
 #content .completed-exams-rewards .results-table td.reward-points-cell{grid-column:2;grid-row:3}
}

.question-bank-actions .question-delete-form{display:inline-flex;margin:0;flex:0 0 auto}
#content .question-bank-actions .question-delete-button{width:32px;min-height:32px;padding:6px;background:#fff1f2;border:1px solid #f0bcc3;color:#b42332;border-radius:7px}
#content .question-bank-actions .question-delete-button:hover{background:#ffe0e5;border-color:#d98e99}
#content .question-bank-table th:last-child{width:170px}
.question-bank-table .badge.question-status-archived{background:#fff3df;color:#89530b;border:1px solid #edcf98}
.question-bank-table td[data-label="Status"] .badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:72px;white-space:nowrap}
/* Shared sizing for every expandable section, including My Exams. */
#content .panel.collapsible-section{padding:20px 22px}
#content .panel.collapsible-section>.panel-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:36px;margin:0 0 16px;padding:0}
#content .panel.collapsible-section>.panel-head h2{margin:0!important;font-size:18px;line-height:1.4;letter-spacing:-.3px;min-width:0;flex:1}
#content .panel.collapsible-section>.panel-head .section-heading-icon{width:20px;height:20px;flex:0 0 20px}
#content .panel.collapsible-section>.panel-head>.section-visibility-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;margin:0 0 0 auto;padding:8px;border-radius:8px;box-sizing:border-box}
#content .panel.collapsible-section>.panel-head>.section-visibility-toggle .section-toggle-icon{width:18px;height:18px}
#content .panel.collapsible-section.section-collapsed{height:auto;min-height:0;padding:20px 22px}
#content .panel.collapsible-section.section-collapsed>.panel-head{margin-bottom:0}
@media(max-width:700px){
#content .panel.collapsible-section,#content .panel.collapsible-section.section-collapsed{padding:16px}
#content .panel.collapsible-section>.panel-head h2{font-size:16px}
#content .panel.collapsible-section>.panel-head>.section-visibility-toggle{flex-basis:44px;width:44px;height:44px;min-height:44px}
}

.header-reward-points{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:6px 9px;border:1px solid #edcf98;border-radius:8px;background:#fff8e9;color:#80510b;font-size:11px;line-height:1.4;white-space:nowrap}
.header-reward-points .ui-icon{width:16px;height:16px;flex:0 0 16px}
.header-reward-points strong{font-weight:800;margin-left:4px}
@media(max-width:700px){body>main>header{flex-wrap:wrap}body>main>header .header-right{flex-wrap:wrap;max-width:100%;gap:6px}.header-reward-points{font-size:10px;padding:5px 7px}}

.exam-rewards-footer form #free-exam-terms{display:block;max-width:280px;margin-top:7px;font-size:11px;line-height:1.5;color:var(--muted);text-align:right}
@media(max-width:700px){.exam-rewards-footer form #free-exam-terms{text-align:left}}
