/* MEC navigation and field collection reuse real evaluation data and controls. */
html[data-workspace="evaluation"] .evaluation-workspace { grid-template-columns:280px minmax(0,1fr); align-items:start; min-height:0; }
html[data-workspace="evaluation"] .evaluation-workspace__sidebar { min-height:0; max-height:var(--evaluation-scroll-height,calc(100dvh - 200px)); overflow:auto; scrollbar-gutter:stable; }
html[data-workspace="evaluation"] .evaluation-workspace__main { min-height:0; max-height:var(--evaluation-scroll-height,calc(100dvh - 200px)); overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; }
.evaluation-mec-tree { gap:0; }
.evaluation-mec-parent { display:flex; align-items:stretch; border-bottom:1px solid var(--line); }
.evaluation-mec-toggle { width:29px; flex:0 0 29px; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:17px; padding:0; }
.evaluation-mec-toggle:hover { color:var(--ink); background:var(--panel-strong); }
html[data-workspace="evaluation"] .evaluation-mec-parent .evaluation-workspace__nav-item--list { flex:1; min-width:0; border-bottom:0; padding:12px 9px 12px 0; gap:10px; background:transparent; border-radius:0; }
html[data-workspace="evaluation"] .evaluation-mec-parent.is-selected { background:#e8edf0; box-shadow:inset 3px 0 #66747e; }
html[data-workspace="evaluation"] .evaluation-mec-parent.is-selected .evaluation-workspace__nav-item { color:var(--ink); background:transparent; }
html[data-workspace="evaluation"] .evaluation-mec-parent.is-selected .evaluation-workspace__nav-item--active { background:transparent!important; box-shadow:none; }
.evaluation-mec-parent .evaluation-value-donut { width:38px; height:38px; flex:0 0 38px; }
.evaluation-mec-parent .evaluation-value-donut.is-compact .evaluation-dashboard-donut { width:38px; height:38px; }
.evaluation-mec-parent .evaluation-value-donut.is-compact .evaluation-dashboard-donut strong { font-size:9px; }
.evaluation-mec-parent .evaluation-value-donut small { font-size:8px; }
.evaluation-mec-children { margin:0 10px 9px 25px; padding:4px 0 3px 9px; border-left:1px solid var(--line-strong); }
.evaluation-mec-child { display:flex; flex-direction:column; gap:3px; width:100%; min-height:49px; padding:9px 10px; margin:2px 0; border:0; border-radius:4px; text-align:left; color:var(--ink); background:transparent; cursor:pointer; font:inherit; }
.evaluation-mec-child strong { font-size:12px; font-weight:500; line-height:1.45; }
.evaluation-mec-child small { font-size:10px; color:var(--muted); }
.evaluation-mec-child:hover { background:var(--panel-strong); }
.evaluation-mec-child.is-selected { background:#e8edf0; box-shadow:inset 2px 0 #66747e; }
.evaluation-field-index-areas { margin:0 12px 9px 25px; padding:3px 0 3px 10px; border-left:1px solid var(--line-strong); }
.evaluation-field-index-areas button { display:block; width:100%; background:transparent; color:var(--ink); border:0; border-radius:4px; padding:9px 8px; text-align:left; font:inherit; font-size:12px; cursor:pointer; line-height:1.4; }
.evaluation-field-index-areas button:hover { background:var(--panel-strong); }
.evaluation-field-index-areas button.is-selected { background:#e8edf0; box-shadow:inset 2px 0 #66747e; }
html[data-workspace="evaluation"] .evaluation-reading-metrics { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.evaluation-reading-metrics>div { display:flex; flex-direction:column; align-items:center; gap:6px; }
.evaluation-reading-metrics>div>span { color:var(--muted); font-size:11px; font-weight:500; }
.evaluation-reading-metrics .evaluation-final-weight { min-width:85px; padding-left:15px; border-left:1px solid var(--line); align-items:flex-start; }
.evaluation-final-weight strong { font-size:18px; font-weight:650; }
.evaluation-reading-metrics .evaluation-sublist-head-actions { flex-direction:row; align-items:center; gap:8px; }
.evaluation-sublist-origin { margin-bottom:3px !important; }
.evaluation-checklist-page .evaluation-sector-detail__head small { font-size:10px; color:var(--muted); }
.evaluation-sublist-table-wrap { overflow-x:auto; }
.evaluation-sublist-table { width:100%; min-width:630px; border-collapse:collapse; }
.evaluation-sublist-table th { background:var(--panel-strong); font-size:11px; font-weight:600; color:var(--muted); white-space:nowrap; }
.evaluation-sublist-table td { vertical-align:middle; }
.evaluation-sublist-table td:first-child { min-width:190px; }
.evaluation-sublist-table td:first-child strong { display:block; font-size:12px; font-weight:600; line-height:1.45; }
.evaluation-sublist-table td:first-child small { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
.evaluation-sublist-table tbody tr { cursor:pointer; }
.evaluation-sublist-table tbody tr:hover td,.evaluation-sublist-table tbody tr:focus-visible td { background:var(--panel-strong); }
.evaluation-sublist-table tbody tr:focus-visible { outline:2px solid var(--brand-accent); outline-offset:-2px; }
.evaluation-sublist-not-applicable { display:inline-block; font-size:10px; color:var(--muted); padding:3px 6px; border:1px solid var(--line); border-radius:4px; margin-top:5px; }
.evaluation-single-sublist { padding:0; }
.evaluation-sublist-back { display:flex; align-items:center; gap:6px; padding:9px 14px; font:inherit; font-size:12px; color:var(--muted); background:var(--panel-strong); border:0; border-bottom:1px solid var(--line); width:100%; text-align:left; cursor:pointer; }
.evaluation-sublist-back .ui-icon { width:14px; height:14px; }
.evaluation-field-banner { height:130px; margin:0 14px 15px; border-radius:6px; overflow:hidden; }
.evaluation-field-banner img { width:100%; height:100%; object-fit:cover; }
html[data-workspace="evaluation"] .evaluation-field-collection { background:var(--panel); border:1px solid var(--line); border-radius:6px; margin:0 0 13px; overflow:hidden; }
html[data-workspace="evaluation"] .evaluation-field-collection .sector-source-group__head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 14px; background:var(--panel-strong); }
.evaluation-field-collection .sector-source-group__head>div { display:flex; flex-direction:column; gap:5px; }
.evaluation-field-collection .sector-source-group__head strong { font-size:13px; font-weight:600; color:var(--ink); }
.evaluation-field-collection .sector-source-group__head span { font-size:10px; font-weight:400; color:var(--muted); }
.evaluation-field-collection .sector-source-group__body { padding:12px 14px; }
.evaluation-field-photo-empty { display:flex; align-items:center; gap:9px; padding:16px 0; color:var(--muted); font-size:12px; }
.evaluation-field-photo-empty .ui-icon { width:19px; height:19px; }
.evaluation-field-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:13px; margin-bottom:16px; }
.evaluation-field-photo-grid article { min-width:0; }
.evaluation-field-photo-grid button { display:flex; flex-direction:column; width:100%; gap:6px; text-align:left; border:0; padding:0; background:transparent; color:var(--ink); cursor:pointer; font:inherit; }
.evaluation-field-photo-grid img { width:100%; height:120px; object-fit:cover; border-radius:5px; }
.evaluation-field-photo-grid strong { display:block; font-size:11px; font-weight:500; overflow-wrap:anywhere; }
.evaluation-field-photo-grid article>span { display:block; font-size:10px; color:var(--muted); margin-top:5px; }
.evaluation-field-grade { border-top:1px solid var(--line); padding-top:10px; }
.evaluation-field-grade>summary { display:flex; align-items:center; gap:8px; cursor:pointer; color:var(--muted); font-size:12px; font-weight:500; padding:5px 0; list-style:none; }
.evaluation-field-grade>summary::-webkit-details-marker { display:none; }
.evaluation-field-grade>summary .ui-icon { width:15px; height:15px; }
.evaluation-field-grade-actions { display:flex; justify-content:flex-end; padding:9px 0; }
html[data-theme="dark"] .evaluation-mec-parent.is-selected,html[data-theme="dark"] .evaluation-mec-child.is-selected,html[data-theme="dark"] .evaluation-field-index-areas button.is-selected { background:#3b3b3b; box-shadow:inset 2px 0 #c4c4c4; }
@media(max-width:1100px) { html[data-workspace="evaluation"] .evaluation-workspace { grid-template-columns:240px minmax(0,1fr); } html[data-workspace="evaluation"] .evaluation-reading-metrics { gap:15px; } .evaluation-checklist-page .evaluation-sector-detail__head { flex-wrap:wrap; } }
@media(max-width:760px) { html[data-workspace="evaluation"] .evaluation-workspace { grid-template-columns:minmax(0,1fr); } .evaluation-field-banner { height:105px; margin-inline:10px; } .evaluation-field-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { html[data-workspace="evaluation"] .evaluation-workspace__main { max-height:none; overflow:visible; } }

/* Keep the canonical score and progress visible on field checklist cards. */
@media(max-width:760px) {
  .mobile-list-option > .mobile-evaluation-metrics,
  .mobile-field-group-option > .mobile-evaluation-metrics { display:grid; grid-template-columns:repeat(2,52px); gap:5px 8px; justify-items:center; align-items:start; }
  .mobile-evaluation-metric { display:flex; flex-direction:column; align-items:center; gap:3px; }
  .mobile-evaluation-metric__label { color:var(--muted); font-size:9px; white-space:nowrap; }
  .mobile-evaluation-metric .evaluation-value-donut,
  .mobile-evaluation-metric .evaluation-dashboard-donut { width:48px; height:48px; }
  .mobile-evaluation-metric .evaluation-dashboard-donut strong { font-size:11px; line-height:1; }
  .mobile-evaluation-metric .evaluation-dashboard-donut small { font-size:7px; line-height:1; }
  .mobile-evaluation-weight { grid-column:1 / -1; color:var(--muted); font-size:9px; white-space:nowrap; }
  .mobile-evaluation-weight strong { color:var(--ink); font-size:10px; font-weight:600; }
  .mobile-list-option:disabled { cursor:wait; opacity:.7; }
}
