.comparison-views { display: inline-flex; gap: 2px; border: 1px solid #d4dfd4; border-radius: 6px; background: #eff3ee; margin: 0 0 14px; padding: 3px; }
.comparison-views button { min-height: 33px; border: 0; border-radius: 3px; padding: 6px 12px; background: transparent; color: #3b5e4b; font-size: 12px; font-weight: 600; }
.comparison-views button[aria-pressed="true"] { background: #fff; color: #194c3b; box-shadow: 0 1px 4px #17392d26; }
.comparison-views button:disabled { opacity: .55; }
button#open-editor-time { display: inline-flex; width: fit-content; border: 0; padding: 2px 0; background: none; line-height: 1.5; text-align: left; }
#time-form { display: grid; align-items: end; grid-template-columns: minmax(160px,1.4fr) minmax(110px,.8fr) minmax(110px,.8fr) auto; gap: 14px; padding-top: 8px; }
#time-form label, #time-output-name label, .time-sample-picker label { font-size: 12px; line-height: 1.5; color: #405a49; font-weight: 600; }
#time-form :is(select,input), #time-output, #time-day { display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 7px 8px; color: #294d3e; border: 1px solid #c7d6ca; border-radius: 4px; background: white; font: 13px/1.4 Inter, "Segoe UI", sans-serif; min-height: 34px; }
#time-run { min-height: 34px; padding: 7px 13px; font-size: 12px; }
#time-status, #time-context, #time-result-profile, #time-readout { color: #4d6757; font-size: 12px; line-height: 1.6; }
#time-status { margin: 12px 0 0; }
#time-error { margin: 10px 0 0; }
#time-output { max-width: 600px; }
#time-output-name { display: flex; align-items: center; }
#time-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 7px; color: #486252; font-size: 11px; }
.time-line-key { display: inline-flex; gap: 5px; align-items: center; }
.time-line-key::before { content: ''; width: 20px; border-top: 3px solid #176852; }
.time-reference-key::before { border-top: 2px dashed #996536; }
#time-chart { width: 100%; height: 216px; display: block; background: #f7f9f4; border: 1px solid #dae4d8; border-radius: 6px; }
#time-chart text { font: 10px ui-monospace, monospace; fill: #4e6655; }
.time-grid { stroke: #dbe3d7; }
.time-scheduled { fill: none; stroke: #176852; stroke-width: 2.7; stroke-linejoin: round; }
.time-reference { stroke: #996536; stroke-width: 2; stroke-dasharray: 5 4; }
.time-cursor { stroke: #9aafa0; stroke-dasharray: 2 3; }
.time-point { stroke: white; stroke-width: 1; fill: #176852; }
.time-sample-picker { display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; margin-top: 11px; }
#time-day { width: auto; margin: 0; }
#time-values { margin: 14px 0; font-size: 12px; color: #3e604c; }
#time-values summary { cursor: pointer; }
#time-samples { margin: 10px 0 0; max-height: min(55vh, 420px); overflow: auto; }
.time-sample-table { width: 100%; border-collapse: collapse; color: #3b5747; font-size: 12px; line-height: 1.55; }
.time-sample-table th, .time-sample-table td { text-align: right; border-bottom: 1px solid #dae3d7; padding: 5px 7px; }
.time-sample-table th:first-child { text-align: left; }
.time-sample-table thead { position: sticky; top: 0; background: #f2f5ef; color: #4d6755; }
.time-sample-table td { font-variant-numeric: tabular-nums; }
#time-downloads { margin-top: 12px; border-top: 1px solid #dce4d9; padding-top: 12px; }
@media (max-width: 1040px) {
  #time-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
}
@media (max-width: 920px) {
  :is(#time-title,#time-output-heading,#time-all-heading,#time-downloads) { scroll-margin-top: 60px; }
}
@media (max-width: 540px) {
  #time-form label:first-child, #time-run { grid-column: 1/-1; }
  .time-sample-table th, .time-sample-table td { padding-inline: 3px; }
}
.time-transition { stroke: #98783e; stroke-width: 1.4; stroke-dasharray: 6 3; }
#time-chart .time-transition-label { fill: #785b26; }
