.panel-details {
  padding: 0;
  overflow: hidden;
}

.panel-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  font-size: 13px;
  font-weight: 800;
}

.panel-details > summary::-webkit-details-marker {
  display: none;
}

.panel-details > summary::after {
  content: "›";
  float: right;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.panel-details[open] > summary::after {
  transform: rotate(90deg);
  color: var(--accent);
  content: "›";
}

.panel-details-body {
  padding: 0 14px 14px 14px;
}

.panel-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
}

.parameters-card {
  padding-top: 12px;
}

.parameter-sample-id {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  margin: 2px 0 20px;
  word-break: break-word;
  color: var(--text);
}

.parameters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.parameter-item {
  padding: 0;
  min-width: 0;
}

.parameter-item-wide {
  grid-column: 1 / -1;
}

.parameter-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.parameter-value {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.phase-plot {
  width: 100%;
  height: 260px;
}

.inspector-phase-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 10px;
}

.inspector-phase-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.inspector-phase-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

.mini-plot {
  width: 100%;
  height: 240px;
  min-height: 240px;
  position: relative;
}

.experiment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.experiment-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: color-mix(in srgb, var(--card) 74%, var(--panel) 26%);
}

.experiment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.experiment-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0;
  word-break: break-word;
}

.download-btn {
  padding: 7px 11px;
  font-size: 12px;
  flex: 0 0 auto;
}

.experiment-mini-plot {
  width: 100%;
  height: 210px;
  min-height: 210px;
  position: relative;
}

.empty-msg {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 6px;
}
