/* DOVYR Performance Lab 2.0 — Patch 02 / density & interaction refinement.
   Strictly scoped to .performance-page .pl2-root. No business logic changes.
   This stylesheet follows performance-lab-v2.css and retains Operations visual density. */

/* Shared rhythm / typography: smaller gaps, never smaller than readable labels. */
.performance-page .pl2-root {
  --pl2-rule: rgba(242,240,233,.105);
  --pl2-track: #283133;
  --pl2-motion: 90ms ease-out;
}
.performance-page .pl2-intro {padding-top:0; padding-bottom:14px;}
.performance-page .pl2-toolbar {padding-top:11px; padding-bottom:12px; gap:9px;}
.performance-page .pl2-toolbar label {gap:4px;}
.performance-page .pl2-toolbar select {height:32px; border-radius:6px;}
.performance-page .pl2-primary-metrics .pl2-kpi {padding-top:12px; padding-bottom:12px;}
.performance-page .pl2-primary-metrics .pl2-kpi strong {font-size:19px;line-height:1.12;margin-top:7px;font-weight:590;}
.performance-page .pl2-primary-metrics .pl2-kpi small {margin-top:5px;}
.performance-page .pl2-tabs {min-height:46px; margin-top:2px; gap:22px;}
.performance-page .pl2-tabs button {padding-top:13px; padding-bottom:12px; font-size:12px;}
.performance-page .pl2-tabs button:focus-visible,
.performance-page .pl2-dims button:focus-visible,
.performance-page .pl2-group:focus-visible {outline:1px solid #b0d072; outline-offset:2px;}
.performance-page .pl2-mainstage {margin-top:14px; padding:17px 21px 16px; border-radius:10px;}
.performance-page .pl2-stage-head {align-items:center;}
.performance-page .pl2-stage-head h2 {font-size:16px;letter-spacing:-.028em;}
.performance-page .pl2-lead {margin:17px 0 16px; gap:20px; align-items:center;}
.performance-page .pl2-lead > div:first-child > strong {font-size:clamp(26px,2.5vw,33px); font-weight:590; margin-top:6px;}
.performance-page .pl2-lead > div:first-child > small {margin-top:6px;}
.performance-page .pl2-side-metrics {align-items:stretch;}
.performance-page .pl2-side-metrics .pl2-kpi {padding:5px 12px 6px 14px; min-height:64px;}
.performance-page .pl2-side-metrics .pl2-kpi strong {font-size:16px; margin-top:7px; font-weight:570; white-space:normal;overflow-wrap:anywhere;}
.performance-page .pl2-side-metrics .pl2-kpi small {margin-top:6px;}
.performance-page .pl2-content-split {padding-top:15px; gap:22px;align-items:start;}
.performance-page .pl2-track {height:6px; margin-top:12px;background:var(--pl2-track);}
.performance-page .pl2-legend {margin-top:9px;gap:16px;font-size:10px;}
.performance-page .pl2-insight {padding-left:20px;}
.performance-page .pl2-insight strong {font-size:16px; margin-top:8px;}
.performance-page .pl2-insight p {margin-top:6px; line-height:1.6;}
.performance-page .pl2-microfoot {padding-top:11px;}

/* Breakdown: controlled pills and more disciplined table, with legible volume evidence. */
.performance-page .pl2-dims {margin:16px 0 10px; gap:6px;}
.performance-page .pl2-dims button {
  padding:8px 11px; border-radius:7px; line-height:1;
  font-family:inherit; font-size:11px; font-weight:570;
  transition:background-color var(--pl2-motion),border-color var(--pl2-motion),color var(--pl2-motion);
}
.performance-page .pl2-dims button.active {
  background:rgba(216,255,62,.075);
  border-color:rgba(216,255,62,.37);
  box-shadow:inset 0 0 0 .5px rgba(216,255,62,.09);
}
.performance-page .pl2-group-head,
.performance-page .pl2-group {
  grid-template-columns:minmax(150px,1.16fr) minmax(90px,.72fr) 90px 95px minmax(130px,.85fr) 18px;
  gap:13px;
}
.performance-page .pl2-group-head {height:34px;}
.performance-page .pl2-group {
  min-height:53px; padding:8px 9px; margin:0 -9px;
  width:calc(100% + 18px); border-radius:5px;
  font-family:inherit; font-size:12px; font-weight:530;
  transition:background-color var(--pl2-motion),box-shadow var(--pl2-motion);
}
.performance-page .pl2-group:hover {background:rgba(203,221,217,.065);}
.performance-page .pl2-group.selected {
  background:rgba(216,255,62,.075);
  box-shadow:inset 2px 0 0 rgba(216,255,62,.82);
}
.performance-page .pl2-group.selected .pl2-name strong {color:#eaff9c;}
.performance-page .pl2-group.selected .pl2-arrow {color:#d8ff3e; transform:rotate(45deg);}
.performance-page .pl2-arrow {transition:transform var(--pl2-motion),color var(--pl2-motion);}
.performance-page .pl2-name strong {font-size:12px;font-weight:610;}
.performance-page .pl2-name small {font-size:10px;}
.performance-page .pl2-volume {height:6px; background:#283133; border:1px solid rgba(255,255,255,.035);}
.performance-page .pl2-volume i {background:linear-gradient(90deg,#809d94,#a2bdb0);}
.performance-page .pl2-group:hover .pl2-volume i {background:linear-gradient(90deg,#89b3a2,#b1d1bd);}
.performance-page .pl2-group.selected .pl2-volume i {background:linear-gradient(90deg,#9abc8c,#d8ff3e);}
.performance-page .pl2-group > span:nth-child(3),
.performance-page .pl2-group > span:nth-child(4),
.performance-page .pl2-group > span:nth-child(5) {font-size:12px;font-weight:530;}
.performance-page .pl2-analysis-note {margin-top:12px;}
.performance-page .pl2-selection {margin-top:12px;padding-top:14px;}
.performance-page .pl2-selection h3 {font-size:15px;}
.performance-page .pl2-selection-list {margin-top:10px;}
.performance-page .pl2-selection-list > div {min-height:35px;}
.performance-page .pl2-selection-bottom {margin-top:10px;}
.performance-page .pl2-foot {padding-top:13px;}

@media (max-width:1200px){
  .performance-page .pl2-lead {gap:13px;}
  .performance-page .pl2-side-metrics .pl2-kpi {min-height:0;}
  .performance-page .pl2-group-head,.performance-page .pl2-group {min-width:760px;}
}
@media (max-width:980px){
  .performance-page .pl2-group-list {padding:0 9px; margin:0 -9px;}
  .performance-page .pl2-group-head {min-width:760px;}
}
@media (max-width:760px){
  .performance-page .pl2-mainstage {padding:15px;}
  .performance-page .pl2-lead {margin:14px 0;}
  .performance-page .pl2-insight {padding-left:0;}
  .performance-page .pl2-group-head,.performance-page .pl2-group {min-width:760px;}
}
@media (prefers-reduced-motion:reduce){
  .performance-page .pl2-root .pl2-dims button,
  .performance-page .pl2-root .pl2-group,
  .performance-page .pl2-root .pl2-arrow {transition:none!important;}
}
