.preference-scope-controls {display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin:16px 0;}
.preference-scope-controls [hidden],#schemePreferenceStats[hidden] {display:none!important;}
.preference-scope-controls label {display:flex;gap:8px;align-items:center;font-size:14px;}
.preference-scope-controls select {min-height:36px;padding:6px 12px;border:1px solid #bdceca;border-radius:6px;background:#fff;color:#263d38;}
.preference-panel.has-scheme-preferences > .preference-kpis,
.preference-panel.has-scheme-preferences > .preference-layout,
.preference-panel.has-scheme-preferences > .section-head > div > p {display:none;}
.preference-stats-heading,.preference-records-head {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.preference-stats-heading span,.preference-stats-note {color:#5e706b;font-size:13px;}
.preference-stats-note {margin:8px 0 16px;}
.preference-stat-totals {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-block:1px solid #dce5e2;padding:16px 0;gap:12px;}
.preference-stat-totals > div {display:flex;flex-direction:column;gap:6px;}
.preference-stat-totals span {color:#5e706b;font-size:14px;}
.preference-stat-totals strong {font-size:28px;color:#244a41;}
.preference-charts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:24px 0;}
#schemePreferenceStats h3 {font-size:16px;line-height:1.5;margin:0 0 12px;}
.preference-bar-row {display:grid;grid-template-columns:minmax(65px,1fr) minmax(35px,1.4fr) 90px;align-items:center;gap:8px;margin:10px 0;font-size:13px;}
.preference-bar-row > span {overflow-wrap:anywhere;}
.preference-bar-row strong {font-weight:600;text-align:right;white-space:nowrap;}
.preference-bar-row small {font-weight:400;color:#63736e;}
.preference-bar-row meter {width:100%;height:16px;accent-color:#398175;}
.preference-bar-row meter::-webkit-meter-bar {background:#e9efed;border:0;border-radius:3px;}
.preference-bar-row meter::-webkit-meter-optimum-value {background:#398175;border-radius:3px;}
.preference-chart:nth-child(2) meter::-webkit-meter-optimum-value {background:#b47831;}
.preference-chart:nth-child(3) meter::-webkit-meter-optimum-value {background:#527e9c;}
.preference-stat-section {border-top:1px solid #dce5e2;padding-top:18px;margin-top:20px;}
.preference-table-scroll {overflow-x:auto;max-width:100%;}
.preference-table-scroll table {border-collapse:collapse;width:100%;font-size:14px;min-width:640px;table-layout:fixed;}
.preference-table-scroll th,.preference-table-scroll td {padding:10px 12px;text-align:left;border-bottom:1px solid #e1e8e5;vertical-align:top;overflow-wrap:anywhere;}
.preference-table-scroll th {background:#f2f6f4;font-weight:600;color:#37544b;}
.preference-table-scroll tbody tr:nth-child(even) {background:#fafcfb;}
.preference-records-head > div {display:flex;gap:12px;align-items:center;font-size:13px;}
.preference-records-head button:disabled {opacity:.45;cursor:default;}
@media (max-width:860px) {
  .preference-charts {grid-template-columns:1fr;gap:20px;}
  .preference-stat-totals {grid-template-columns:repeat(3,minmax(0,1fr));}
  .preference-stat-totals strong {font-size:24px;}
  .preference-scope-controls {gap:10px;}
  .preference-scope-controls label {flex-wrap:wrap;max-width:100%;}
  .preference-scope-controls select {max-width:100%;}
  .preference-records-head > div {gap:8px;flex-wrap:wrap;}
}
