/* ============================================================
   ABSTRICT · Features v6 CSS
   Bottleneck %, PSU headroom bar, Keyboard shortcuts toast,
   Export JSON import
   ============================================================ */

/* === Bottleneck indicator === */
.bottleneck-wrap {
  margin-top: 8px; padding: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.bottleneck-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.bottleneck-label { font-size: 11px; font-weight: 500; }
.bottleneck-pct {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.bottleneck-pct.gpu { color: var(--danger); }
.bottleneck-pct.cpu { color: var(--accent); }
.bottleneck-pct.balanced { color: var(--success); }
.bottleneck-bar {
  height: 6px; background: var(--border-subtle);
  border-radius: 3px; overflow: hidden; position: relative;
}
.bottleneck-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 600ms var(--ease);
}
.bottleneck-bar-fill.gpu { background: var(--danger); }
.bottleneck-bar-fill.cpu { background: var(--accent); }
.bottleneck-bar-fill.balanced { background: var(--success); }
.bottleneck-hint {
  font-size: 9px; color: var(--text-muted); margin-top: 4px;
  font-family: var(--mono);
}

/* === PSU headroom bar === */
.psu-headroom {
  margin-top: 8px; padding: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.psu-headroom-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.psu-headroom-label { font-size: 11px; font-weight: 500; }
.psu-headroom-pct {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.psu-headroom-pct.green { color: var(--success); }
.psu-headroom-pct.yellow { color: var(--warning); }
.psu-headroom-pct.red { color: var(--danger); }
.psu-headroom-track {
  height: 10px; background: var(--border-subtle);
  border-radius: 5px; overflow: hidden; position: relative;
}
.psu-headroom-fill {
  height: 100%; border-radius: 5px;
  transition: width 600ms var(--ease);
}
.psu-headroom-fill.green { background: linear-gradient(90deg, var(--success), #34d399); }
.psu-headroom-fill.yellow { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.psu-headroom-fill.red { background: linear-gradient(90deg, var(--danger), #f87171); }
.psu-headroom-zones {
  display: flex; justify-content: space-between;
  margin-top: 3px;
  font-family: var(--mono); font-size: 8px; color: var(--text-muted);
}
.psu-headroom-detail {
  font-family: var(--mono); font-size: 10px; color: var(--text-secondary);
  margin-top: 4px; display: flex; justify-content: space-between;
}

/* === Keyboard shortcuts overlay === */
.shortcuts-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 250;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: modalIn 200ms var(--ease-spring);
}
.shortcuts-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  max-width: 400px; width: 90vw;
  box-shadow: var(--shadow-lg);
}
.shortcuts-card h3 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600;
}
.shortcuts-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  font-size: 12px;
}
.shortcuts-grid kbd {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 6px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 3px;
  color: var(--text-secondary); white-space: nowrap;
  text-align: center;
}
.shortcuts-grid span { color: var(--text-muted); font-size: 11px; }

/* === Import JSON result === */
.import-json-result {
  margin-top: 10px; padding: 8px 10px;
  border-radius: var(--radius); font-size: 11px;
  font-family: var(--mono);
}
.import-json-result.ok {
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25);
  color: var(--success);
}
.import-json-result.err {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  color: var(--danger);
}
