/* Primary derived metric; raw timings remain in the regular parameter views. */
.speed-panel { margin: 15px 0 12px; border: 1px solid #cde3e4; border-radius: 10px; background: #f1f9f8; color: #235d61; }
.speed-panel>summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 13px 16px; cursor: pointer; }
.speed-panel>summary::-webkit-details-marker { display: none; }
.speed-label { flex: 1; font-weight: 600; font-size: .9375rem; }
.speed-label>small { display: block; margin-top: 3px; font-size: .75rem; font-weight: 400; color: #567779; }
.speed-value { font-size: 1.875rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; letter-spacing: -.02em; }
.speed-value small { margin-left: 6px; font-size: .8125rem; font-weight: 400; letter-spacing: 0; }
.speed-chevron { font-size: 1rem; color: #5a8588; }
.speed-panel[open] .speed-chevron { transform: rotate(180deg); }
.speed-breakdown { padding: 0 16px 15px; border-top: 1px solid #dceceb; }
.speed-equation { margin: 13px 0; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.speed-breakdown dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 13px; }
.speed-breakdown dt { font-size: .8125rem; line-height: 1.6; }
.speed-breakdown dt a { text-decoration: none; color: #456d70; }
.speed-breakdown dt a:hover { text-decoration: underline; }
.speed-breakdown dt code,.speed-breakdown dt span { display: block; font-size: .6875rem; color: #638386; overflow-wrap: anywhere; }
.speed-breakdown dd { margin: 3px 0 0; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.speed-breakdown dd small { font-size: .75rem; font-weight: 400; }
.speed-rule-link { font-size: .8125rem; color: #326f73; }
.speed-note,.speed-variants-note { font-size: .75rem; line-height: 1.8; color: #6c705c; margin: 0 0 10px; }
.speed-unavailable { display: flex; gap: 12px; flex-wrap: wrap; margin: 15px 0 12px; border-radius: 8px; background: #f5f7f9; padding: 10px 14px; color: #6c7b88; font-size: .8125rem; }
.speed-unavailable>strong { margin-left: auto; font-weight: 400; }
.speed-unavailable>p { flex-basis: 100%; margin: 0; line-height: 1.8; }
.speed-compact { margin: 8px 0 12px; }
.speed-compact>summary { min-height: 62px; padding: 8px 12px; }
.speed-compact .speed-value { font-size: 1.5rem; }
.speed-chart .bar-row { grid-template-columns: minmax(90px,140px) minmax(20px,1fr) 85px; }
.speed-chart .bar-fill { background: #40868a; }
.speed-chart .bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.speed-chart .bar-row small { color: var(--muted); }
.compare-table .derived-speed th,.compare-table .derived-speed td { background: #f1f9f8; }
.compare-table .derived-speed td>span { font-weight: 600; color: #235d61; }
.speed-guide { margin: 20px 0; border: 1px solid #cde3e4; border-radius: 12px; background: #f1f9f8; overflow: hidden; scroll-margin-top: 20px; }
.speed-guide>summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: #235d61; }
.speed-guide>summary small { font-weight: 400; margin-left: 10px; font-size: .8125rem; }
.speed-guide .rich-text { padding: 0 20px 20px; font-size: .9375rem; line-height: 1.85; overflow-wrap: anywhere; }
.speed-guide .speed-formula { padding: 14px 16px; background: white; border-radius: 8px; color: #235d61; font-family: var(--mono); }
@media(max-width:650px) {
  .speed-panel>summary { padding: 12px 14px; }
  .speed-value { font-size: 1.75rem; }
  .speed-chart .bar-row { grid-template-columns: 90px minmax(15px,1fr) 78px; gap: 8px; }
  .speed-guide>summary { padding: 14px 16px; }
  .speed-guide>summary small { display: block; margin: 4px 0 0; }
  .speed-guide .rich-text { padding: 0 16px 16px; }
}
