/* Brand tokens are shared with the established Libra interface. */
#view-results{max-width:1300px;margin:auto;--result-accent:#75645c;--result-comparison:#876f63}
.dark #view-results{--result-accent:#cdc5bf;--result-comparison:#d7b1a2}
[data-view=results][hidden]{display:none!important}
.results-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:20px;border-radius:20px}
.results-filters label,.results-chart-controls label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.results-filters input,.results-filters select,.results-chart-controls select{height:44px;border-radius:11px;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);min-width:0;width:100%}
.results-filters label:last-of-type{flex:1}.results-filters .primary{min-height:44px}
.results-status{color:var(--muted);font-size:12px;margin:14px 2px 20px;overflow-wrap:anywhere}
.results-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.results-kpi{padding:22px;border-radius:20px;display:flex;flex-direction:column;gap:8px;min-width:0}
.results-kpi h2{font-size:13px;font-weight:500;color:var(--muted)}.results-kpi>strong{font-size:28px;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.results-kpi small{color:var(--ink);font-size:12px}.results-kpi p{font-size:12px;color:var(--muted);margin-top:auto}
.results-chart-card,.results-card{padding:24px;border-radius:22px;margin-bottom:20px;min-width:0}
.results-card-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}.results-card-head>span,.results-card>p{color:var(--muted);font-size:12px}
.results-chart-controls{display:flex;gap:12px;flex-wrap:wrap}
.results-plot{width:100%;height:auto;max-height:340px;stroke:none;display:block;overflow:visible}
.results-plot text{fill:var(--muted);font:11px system-ui;letter-spacing:0}.results-gridline{stroke:var(--line);stroke-width:1}
.results-current-line{stroke:var(--result-accent);stroke-width:3;fill:none}.results-previous-line{stroke:var(--result-comparison);stroke-width:2;stroke-dasharray:6 6;fill:none}.results-mark{stroke:var(--surface);stroke-width:1;fill:var(--result-accent)}
.results-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:var(--ink);margin-bottom:20px}
.results-point-control{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.results-point-control>output{flex:1;min-width:150px;font-size:13px}.results-point-control button{min-height:44px;min-width:44px}
.results-chart-data{margin-top:16px}.results-chart-data summary,.results-definitions summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:500}.results-chart-data summary:before,.results-definitions summary:before{content:'+'}.results-chart-data[open] summary:before,.results-definitions[open] summary:before{content:'−'}
.results-breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.results-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:8px 12px;padding:17px 0;text-align:left;border-bottom:1px solid var(--line)}.results-bar-row:hover{background:var(--card-purple)}.results-bar-row:last-child{border:0}.results-bar-row strong{font-weight:600;font-variant-numeric:tabular-nums}.results-bar-row small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.results-bar-track{grid-column:1/-1;height:6px;background:var(--line);border-radius:3px;overflow:hidden}.results-bar-track i{display:block;background:var(--result-accent);height:100%;border-radius:3px}.results-staff-0 i{background:#806c50}.results-staff-1 i{background:#665f59}.results-staff-2 i{background:#8c6660}.dark .results-staff-0 i{background:#cbbb9e}.dark .results-staff-1 i{background:#c1b6ae}.dark .results-staff-2 i{background:#d7b1a2}
.results-activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:20px 0}.results-activity-grid>div{display:flex;flex-direction:column;gap:7px}.results-activity-grid span,.results-activity-grid small{font-size:12px;color:var(--muted)}.results-activity-grid strong{font-size:23px;font-weight:600}.results-methods{display:flex;gap:25px;flex-wrap:wrap;margin-top:20px}.results-methods>div{display:grid;gap:5px;font-size:13px}.results-methods span{color:var(--muted)}
.results-tabs{display:flex;gap:8px;flex-wrap:wrap}.results-tabs [aria-pressed=true]{background:var(--card-blue);border-color:var(--result-accent)}
.results-table-wrap{overflow:auto;max-height:450px}.results-table-wrap table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;min-width:550px}.results-table-wrap caption{text-align:left;padding:12px 0;color:var(--muted);font-size:12px}.results-table-wrap th{font-size:12px;font-weight:500;color:var(--muted)}.results-table-wrap th,.results-table-wrap td{padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}.results-table-wrap small{display:block;color:var(--muted);margin-top:4px;font-size:12px}.results-table-wrap .secondary{white-space:nowrap;min-height:44px}
.results-pagination{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin-top:18px}.results-pagination span{font-size:12px;color:var(--muted)}.results-pagination button{min-height:44px}.results-empty{padding:22px 0;color:var(--muted)}.results-filter-note{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0;color:var(--muted)}
.results-definitions{padding:12px 24px;border-radius:20px}.results-definitions p{font-size:13px;color:var(--muted);margin:12px 0}
#view-results summary:focus-visible{outline:3px solid var(--result-accent);outline-offset:3px;border-radius:8px}
#view-results button:focus-visible,#view-results input:focus-visible,#view-results select:focus-visible{outline:3px solid var(--result-accent);outline-offset:3px}
@media(max-width:1050px){.results-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.results-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rail nav .rail-btn[data-view=results]{display:none!important}.results-filters{display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:12px}.results-filters label:first-child,.results-filters label:last-of-type,.results-filters .primary{grid-column:1/-1}.results-filters input,.results-filters select,.results-chart-controls select{font-size:16px}.results-kpis{gap:10px}.results-kpi{padding:16px}.results-kpi>strong{font-size:24px}.results-chart-card,.results-card{padding:18px}.results-chart-controls{width:100%;display:grid;grid-template-columns:1fr}.results-breakdowns{grid-template-columns:1fr;gap:0}.results-point-control output{order:-1;flex-basis:100%}.results-point-control #results-point-records{margin-left:auto}.results-legend{gap:10px}.results-table-wrap{max-height:none}.results-definitions{padding:10px 18px}.results-pagination{justify-content:space-between}.results-plot{min-height:180px}.results-plot text{font-size:14px}}
@media(prefers-reduced-motion:reduce){#view-results *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:360px){.results-filters{grid-template-columns:1fr}.results-kpis{grid-template-columns:1fr}.results-kpi>strong{font-size:26px}}
@media(prefers-contrast:more){#view-results .results-gridline{stroke:var(--muted)}#view-results .glass{border:1px solid var(--muted)}}

.results-kpi>button{display:flex;flex-direction:column;text-align:left;gap:8px;min-height:140px;width:100%;padding:0;border:0;background:transparent}.results-kpi>button>strong{font-size:28px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.statistics-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0}.statistics-indicators>div{display:grid;gap:8px}.statistics-indicators span{font-size:12px;color:var(--muted)}.statistics-indicators strong{font-size:22px;font-weight:500}
.statistics-heatmap{display:grid;grid-template-columns:36px repeat(var(--hours,8),minmax(44px,1fr));gap:7px;margin-top:22px;overflow:auto}.statistics-heatmap>span,.statistics-heatmap>strong{font-size:11px;align-self:center;font-weight:500;color:var(--muted)}.statistics-load{min-height:44px;font-size:12px;border-radius:9px;background:color-mix(in srgb,var(--card-pink) calc(var(--load)*80% + 20%),var(--surface));border:1px solid var(--line)}.statistics-load:disabled{opacity:.4}.statistics-load:hover{border-color:var(--muted)}.statistics-bar{fill:var(--result-accent);opacity:.65}.results-mark[role=button]{cursor:pointer;stroke-width:4}.results-mark[role=button]:hover,.results-mark[role=button]:focus{r:7;outline:none;stroke:var(--ink)}
.statistics-record-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:16px}.statistics-record-controls label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.statistics-record-controls input,.statistics-record-controls select{min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:8px}.statistics-record-controls label:first-child{flex:1}
@media(max-width:700px){.statistics-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-heatmap{gap:4px;grid-template-columns:28px repeat(var(--hours,8),minmax(44px,1fr))}.statistics-load{font-size:10px}.statistics-heatmap>span{font-size:9px}.statistics-record-controls input,.statistics-record-controls select{font-size:16px;width:100%}.statistics-record-controls label{min-width:0}.statistics-record-controls label:first-child{flex-basis:100%}.results-chart-controls{grid-template-columns:1fr 1fr}.results-chart-controls label:first-child{grid-column:1/-1}}
