.schedule-view[data-schedule-view="control"] {
  display: grid;
  grid-template-rows: 48px 58px minmax(0, 1fr);
  gap: var(--schedule-gap);
}

.scenario-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(184px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border: 1px solid var(--schedule-border);
  border-radius: var(--schedule-radius);
  background: var(--schedule-panel);
  box-shadow: 0 1px 2px var(--schedule-shadow-soft);
}

.scenario-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.scenario-index {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--schedule-accent-border);
  border-radius: 50%;
  color: var(--schedule-accent);
  background: var(--schedule-accent-soft);
  font-size: 11px;
  font-weight: 760;
}

.scenario-identity > div {
  min-width: 0;
  display: grid;
}

.scenario-identity strong {
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-strip dl {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  margin: 0;
}

.scenario-strip dl > div {
  min-width: 0;
  padding: 0 9px;
  border-left: 1px solid var(--schedule-border);
}

.scenario-strip dt {
  color: var(--schedule-muted);
  font-size: 9px;
  line-height: 12px;
}

.scenario-strip dd {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 10.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-ribbon {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: var(--schedule-radius);
  background: var(--schedule-panel);
  box-shadow: 0 1px 2px var(--schedule-shadow-soft);
}

.kpi-ribbon button,
.kpi-overall {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 20px 18px;
  align-items: center;
  padding: 5px 11px;
  border: 0;
  border-right: 1px solid var(--schedule-border);
  border-bottom: 2px solid transparent;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.kpi-ribbon button:last-child {
  border-right: 0;
}

.kpi-overall {
  border-right: 1px solid var(--schedule-border);
  border-bottom: 2px solid var(--schedule-success);
  background: linear-gradient(135deg, var(--schedule-success-soft), var(--schedule-panel));
}

.kpi-overall strong {
  color: var(--schedule-success);
  font-size: 20px;
}

.kpi-ribbon button.is-active {
  border-bottom-color: var(--schedule-accent);
  background: var(--schedule-accent-soft);
}

.kpi-ribbon span,
.kpi-overall span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 10px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-ribbon strong,
.kpi-overall strong {
  color: var(--schedule-heading);
  font-size: 16px;
  font-weight: 720;
}

.kpi-ribbon small,
.kpi-overall small {
  color: var(--schedule-muted);
  font-size: 9px;
  text-align: right;
}

.kpi-ribbon small.is-positive {
  color: var(--schedule-success);
}

.kpi-ribbon small.is-negative {
  color: var(--schedule-danger);
}

.control-layout {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 232px minmax(620px, 1fr) 296px;
  gap: 8px;
}

.control-left {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 211px minmax(0, 1fr);
  gap: 8px;
}

.control-panel {
  overflow: hidden;
}

.control-panel > header:not(.gantt-toolbar),
.run-history-panel > header,
.order-explorer-panel > header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--schedule-border);
  background: var(--schedule-panel-strong);
}

.control-panel > header > div,
.run-history-panel > header > div,
.order-explorer-panel > header > div {
  min-width: 0;
  display: grid;
}

.control-panel > header strong,
.run-history-panel > header strong,
.order-explorer-panel > header strong {
  color: var(--schedule-heading);
  font-size: 11px;
}

.control-panel > header small,
.run-history-panel > header small,
.order-explorer-panel > header small {
  color: var(--schedule-muted);
  font-size: 8.5px;
}

.run-history-panel > header > span {
  min-width: 21px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--schedule-accent);
  background: var(--schedule-accent-soft);
  font-size: 9px;
  font-weight: 720;
}

.run-list {
  height: calc(100% - 34px);
  overflow: auto;
  padding: 5px;
}

.run-row {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 5px 6px;
  border: 1px solid var(--schedule-border);
  border-radius: 2px;
  color: inherit;
  background: var(--schedule-panel);
  text-align: left;
  cursor: pointer;
}

.run-row:last-child {
  margin-bottom: 0;
}

.run-row:hover,
.run-row.is-active {
  border-color: var(--schedule-accent-border);
  background: var(--schedule-accent-soft);
}

.run-row-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--schedule-border-strong);
  border-radius: 50%;
  color: var(--schedule-muted);
  font-size: 9px;
  font-weight: 720;
}

.run-row.is-active .run-row-number {
  border-color: var(--schedule-accent);
  color: var(--schedule-accent);
  background: var(--schedule-panel);
}

.run-row-copy {
  min-width: 0;
  display: grid;
}

.run-row-copy strong {
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row-score {
  display: grid;
  justify-items: end;
}

.run-row-score b {
  color: var(--schedule-heading);
  font-size: 11px;
}

.run-row-score small {
  color: var(--schedule-muted);
  font-size: 7.5px;
}

.order-explorer-panel {
  display: grid;
  grid-template-rows: 34px 31px minmax(0, 1fr);
}

.order-explorer-panel > header button,
.gantt-tools button,
.capacity-popover header button,
.compare-modal header button {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--schedule-muted);
  background: transparent;
  cursor: pointer;
}

.order-explorer-panel > header button:hover,
.gantt-tools button:hover,
.capacity-popover header button:hover,
.compare-modal header button:hover {
  border-color: var(--schedule-border);
  color: var(--schedule-accent);
  background: var(--schedule-accent-soft);
}

.order-search {
  position: relative;
  display: block;
  padding: 4px 6px 3px;
  border-bottom: 1px solid var(--schedule-border);
}

.order-search i {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--schedule-muted);
  font-size: 12px;
}

.order-search input {
  width: 100%;
  height: 23px;
  border: 1px solid var(--schedule-border);
  border-radius: 2px;
  outline: none;
  padding: 0 7px 0 24px;
  color: var(--schedule-text);
  background: var(--schedule-input);
  font: inherit;
  font-size: 9.5px;
}

.order-list {
  min-height: 0;
  overflow: auto;
  padding: 4px;
}

.order-row {
  --order-color: var(--schedule-accent);
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  padding: 4px 5px 4px 3px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.order-row:hover,
.order-row.is-selected {
  border-color: color-mix(in srgb, var(--order-color) 48%, var(--schedule-border));
  background: color-mix(in srgb, var(--order-color) 8%, var(--schedule-panel));
}

.order-swatch {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--order-color);
}

.order-row-copy {
  min-width: 0;
  display: grid;
}

.order-row-copy strong {
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-copy span,
.order-row-copy small {
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-row-status {
  display: grid;
  justify-items: end;
  color: var(--schedule-text-soft);
  font-size: 8px;
}

.order-row-status b {
  font-size: 9px;
}

.order-row-status.is-late b {
  color: var(--schedule-danger);
}

.gantt-panel {
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr) 34px;
}

.gantt-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(148px, 1fr) minmax(250px, auto) auto auto;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 9px;
  border-bottom: 1px solid var(--schedule-border);
  background: var(--schedule-panel-strong);
}

.gantt-toolbar > div:first-child {
  min-width: 0;
  display: grid;
}

.gantt-toolbar strong {
  color: var(--schedule-heading);
  font-size: 11px;
}

.gantt-toolbar small {
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-legend {
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  color: var(--schedule-muted);
  font-size: 9px;
  white-space: nowrap;
}

.gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gantt-legend i {
  width: 12px;
  height: 3px;
  display: inline-block;
  border-radius: 2px;
  background: var(--schedule-border-strong);
}

.gantt-legend i.is-constraint { background: var(--schedule-danger); }
.gantt-legend i.is-carry-in { background: var(--schedule-carry-in); }
.gantt-legend i.is-setup { height: 8px; border: 1px dashed var(--schedule-setup); background: var(--schedule-setup-soft); }
.gantt-legend i.is-work { background: var(--schedule-accent); }
.gantt-legend i.is-rope { background: var(--schedule-rope); }
.gantt-legend i.is-due { background: var(--schedule-due); }
.gantt-legend i.is-overtime { height: 8px; border: 1px dashed var(--schedule-overtime); background: var(--schedule-overtime-soft); }

.gantt-tools {
  display: flex;
  align-items: center;
}

.gantt-fit-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}

.gantt-fit-tools button {
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--schedule-border);
  border-radius: 2px;
  color: var(--schedule-text-soft);
  background: var(--schedule-panel);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.gantt-fit-tools button:hover,
.gantt-fit-tools button.is-active {
  border-color: var(--schedule-accent-border);
  color: var(--schedule-accent);
  background: var(--schedule-accent-soft);
}

.gantt-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--schedule-scroll-thumb) transparent;
}

.gantt-canvas {
  --gantt-resource-width: 184px;
  --gantt-timeline-width: 920px;
  position: relative;
  min-width: calc(var(--gantt-resource-width) + var(--gantt-timeline-width));
  min-height: 100%;
  background: var(--schedule-panel);
}

.gantt-axis {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 54px;
  display: grid;
  grid-template-columns: var(--gantt-resource-width) var(--gantt-timeline-width);
  border-bottom: 1px solid var(--schedule-border-strong);
  background: var(--schedule-panel-strong);
}

.gantt-axis-resource {
  position: sticky;
  left: 0;
  z-index: 11;
  display: flex;
  align-items: end;
  padding: 0 8px 7px;
  border-right: 1px solid var(--schedule-border-strong);
  color: var(--schedule-muted);
  background: var(--schedule-panel-strong);
  font-size: 9px;
  font-weight: 680;
  text-transform: uppercase;
}

.gantt-axis-time {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--schedule-panel-strong);
}

.gantt-date-band,
.gantt-hour-band {
  position: absolute;
  inset-inline: 0;
  display: block;
}

.gantt-date-band {
  top: 0;
  height: 29px;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--schedule-border);
}

.gantt-hour-band {
  top: 29px;
  height: 25px;
  grid-template-columns: repeat(20, 1fr);
}

.gantt-date-band span,
.gantt-hour-band span {
  position: absolute;
  inset-block: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--schedule-grid-line);
  color: var(--schedule-muted);
  font-size: 8.5px;
}

.gantt-date-band span {
  justify-content: center;
  font-weight: 680;
}

.gantt-hour-band span {
  justify-content: flex-start;
  width: 36px;
  padding-left: 3px;
  font-size: 7.5px;
}

.gantt-resource-row {
  position: relative;
  height: 62px;
  display: grid;
  grid-template-columns: var(--gantt-resource-width) var(--gantt-timeline-width);
  border-bottom: 1px solid var(--schedule-border);
}

.gantt-resource-row.is-constraint {
  background: var(--schedule-constraint-row);
}

.gantt-resource-label {
  position: sticky;
  left: 0;
  z-index: 6;
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 6px 8px;
  border: 0;
  border-right: 1px solid var(--schedule-border-strong);
  background: var(--schedule-panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gantt-resource-row.is-constraint .gantt-resource-label {
  background: var(--schedule-constraint-label);
}

.gantt-resource-label strong {
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-resource-label span,
.gantt-resource-label small {
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-resource-label small.is-constraint {
  color: var(--schedule-danger);
  font-weight: 700;
}

.gantt-timeline-row {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to bottom, transparent 0, transparent 30px, var(--schedule-lane-line) 30px, var(--schedule-lane-line) 31px, transparent 31px);
}

.gantt-time-tick { position: absolute; inset-block: 0; z-index: 1; width: 1px; background: var(--schedule-grid-line); pointer-events: none; }

.gantt-nonworking {
  position: absolute;
  inset-block: 0;
  background: var(--schedule-nonworking);
  pointer-events: none;
}

.gantt-time-gap {
  position: absolute;
  inset-block: 0;
  z-index: 2;
  border-inline: 1px solid var(--schedule-border-strong);
  background: var(--schedule-day-break);
  pointer-events: none;
}

.gantt-time-gap.is-session { opacity: .58; }

.gantt-overtime-band {
  position: absolute;
  top: 2px;
  bottom: 2px;
  z-index: 1;
  border: 1px dashed var(--schedule-overtime);
  background: var(--schedule-overtime-soft);
  pointer-events: none;
}

.gantt-marker-layer {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--gantt-resource-width);
  width: var(--gantt-timeline-width);
  pointer-events: none;
}

.gantt-overtime-band span {
  position: absolute;
  top: 1px;
  left: 3px;
  color: var(--schedule-overtime);
  font-size: 7px;
  font-weight: 720;
  white-space: nowrap;
}

.gantt-segment {
  --order-color: var(--schedule-accent);
  position: absolute;
  z-index: 3;
  height: 23px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--order-color) 72%, #000);
  border-radius: 4px;
  color: #fff;
  background: var(--order-color);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--order-color) 35%, transparent);
  font: inherit;
  font-size: 9px;
  font-weight: 670;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  opacity: .88;
  transition: left .65s cubic-bezier(.2,.75,.25,1), width .65s cubic-bezier(.2,.75,.25,1), opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gantt-segment.is-setup {
  border-style: dashed;
  border-color: var(--schedule-setup);
  color: var(--schedule-setup-text);
  background: var(--schedule-setup-soft);
  box-shadow: none;
}

.gantt-segment.is-carry-in { background: var(--schedule-carry-in); }
.gantt-segment.is-split-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gantt-segment.is-split-end { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.gantt-segment.is-lane-1 { top: 5px; }
.gantt-segment.is-lane-2 { top: 33px; }

.gantt-segment:hover,
.gantt-segment.is-selected {
  z-index: 5;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--schedule-panel), 0 0 0 4px var(--order-color), 0 4px 9px var(--schedule-shadow);
}

.gantt-segment.is-muted {
  opacity: .79;
}

.gantt-marker {
  position: absolute;
  top: 54px;
  bottom: 0;
  z-index: 5;
  width: 0;
  border-left: 1px dashed currentColor;
  pointer-events: none;
}

.gantt-marker.is-selected {
  border-left-width: 2px;
}

.gantt-marker.is-rope { color: var(--schedule-rope); }
.gantt-marker.is-due { color: var(--schedule-due); }

.gantt-marker span {
  position: sticky;
  top: 56px;
  display: inline-flex;
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 2px;
  color: #fff;
  background: currentColor;
  font-size: 7px;
  line-height: 14px;
  white-space: nowrap;
}

.gantt-statusbar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
  border-top: 1px solid var(--schedule-border);
  color: var(--schedule-muted);
  background: var(--schedule-panel-strong);
  font-size: 9px;
}

.gantt-navigator {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 7px;
}

.gantt-navigator-track {
  position: relative;
  height: 11px;
  overflow: hidden;
  border: 1px solid var(--schedule-border-strong);
  border-radius: 2px;
  background: var(--schedule-track);
}

.gantt-navigator-load,
.gantt-navigator-window {
  position: absolute;
  inset-block: 1px;
  border-radius: 1px;
}

.gantt-navigator-load { inset-inline: 1px; background: color-mix(in srgb, var(--schedule-accent) 24%, transparent); }
.gantt-navigator-window { left: 0; width: 100%; border: 1px solid var(--schedule-accent); background: color-mix(in srgb, var(--schedule-accent) 20%, transparent); }
.gantt-navigator small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.run-row-score small,
.order-row-status,
.gantt-hour-band span,
.gantt-resource-label span,
.gantt-resource-label small,
.gantt-overtime-band span,
.gantt-marker span,
.capacity-mini-row,
.trace-chain small { font-size: 9px; }

.kpi-overall { cursor: default; }
.control-panel small,
.gantt-date-band span,
.evaluation-hero span,
.evaluation-section > header span,
.evaluation-facts dt,
.trace-facts dt { font-size: 9px; }

.score-component-list { display: grid; gap: 6px; padding: 7px; }
.score-component-row { display: grid; grid-template-columns: minmax(92px, 1fr) 32px; gap: 4px 7px; align-items: center; }
.score-component-row > span { overflow: hidden; color: var(--schedule-text-soft); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.score-component-row > b { color: var(--schedule-heading); font-size: 10px; text-align: right; }
.score-component-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: var(--schedule-track); }
.score-component-track i { display: block; height: 100%; border-radius: inherit; background: var(--schedule-accent); }
.score-component-formula { grid-column: 1 / -1; margin: 0; color: var(--schedule-muted); font-size: 9px; line-height: 1.35; }
.score-policy-note { margin-top: 7px; padding: 7px; border: 1px solid var(--schedule-border); border-left: 3px solid var(--schedule-warning); color: var(--schedule-text-soft); background: var(--schedule-warning-soft); font-size: 9px; line-height: 1.4; }

.gantt-statusbar > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-statusbar button {
  height: 21px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid var(--schedule-warning-border);
  border-radius: 2px;
  color: var(--schedule-warning);
  background: var(--schedule-warning-soft);
  font: inherit;
  font-size: 8.5px;
  font-weight: 650;
  cursor: pointer;
}

.evaluation-panel {
  display: grid;
  grid-template-rows: 31px minmax(0, 1fr) 39px;
}

.evaluation-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--schedule-border);
  background: var(--schedule-sunken);
}

.evaluation-tabs button {
  border-right: 1px solid var(--schedule-border);
  border-bottom: 2px solid transparent;
  font-size: 10px;
  font-weight: 650;
}

.evaluation-tabs button:last-child {
  border-right: 0;
}

.evaluation-tabs button.is-active {
  border-bottom-color: var(--schedule-accent);
  color: var(--schedule-accent);
  background: var(--schedule-panel);
}

.evaluation-body {
  min-height: 0;
  overflow: auto;
  padding: 7px;
}

.evaluation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--schedule-border);
  border-left: 3px solid var(--schedule-accent);
  border-radius: 2px;
  background: var(--schedule-sunken);
}

.evaluation-hero > div {
  min-width: 0;
  display: grid;
}

.evaluation-hero span,
.evaluation-section > header span {
  color: var(--schedule-muted);
  font-size: 8.5px;
}

.evaluation-hero strong {
  color: var(--schedule-heading);
  font-size: 12px;
}

.evaluation-hero small {
  color: var(--schedule-muted);
  font-size: 8.5px;
}

.evaluation-hero > b {
  color: var(--schedule-accent);
  font-size: 22px;
  font-weight: 720;
}

.evaluation-section {
  margin-top: 7px;
  border: 1px solid var(--schedule-border);
  border-radius: 2px;
}

.evaluation-section > header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border-bottom: 1px solid var(--schedule-border);
  background: var(--schedule-panel-strong);
}

.evaluation-section > header strong {
  color: var(--schedule-heading);
  font-size: 10px;
}

.evaluation-facts,
.trace-facts {
  margin: 0;
}

.evaluation-facts > div,
.trace-facts > div {
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  border-bottom: 1px solid var(--schedule-border);
}

.evaluation-facts > div:last-child,
.trace-facts > div:last-child {
  border-bottom: 0;
}

.evaluation-facts dt,
.trace-facts dt {
  color: var(--schedule-muted);
  font-size: 8.5px;
}

.evaluation-facts dd,
.trace-facts dd {
  margin: 0;
  color: var(--schedule-heading);
  font-size: 9.5px;
  font-weight: 650;
  text-align: right;
}

.capacity-mini-chart {
  display: grid;
  gap: 5px;
  padding: 7px;
}

.capacity-mini-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 5px;
  color: var(--schedule-muted);
  font-size: 8px;
}

.capacity-mini-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--schedule-track);
}

.capacity-mini-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--schedule-accent);
}

.trace-empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 18px;
  color: var(--schedule-muted);
  text-align: center;
}

.trace-empty i {
  font-size: 28px;
}

.trace-empty strong {
  margin-top: 5px;
  color: var(--schedule-heading);
  font-size: 11px;
}

.trace-empty p {
  max-width: 210px;
  margin: 3px 0 0;
  font-size: 9px;
  line-height: 1.45;
}

.trace-chain {
  display: grid;
  gap: 0;
  margin: 7px 0;
  padding: 0;
  list-style: none;
}

.trace-chain li {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.trace-chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: -10px;
  left: 13px;
  width: 1px;
  background: var(--schedule-border-strong);
}

.trace-chain li > span {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--schedule-border);
  border-radius: 50%;
  color: var(--schedule-accent);
  background: var(--schedule-panel);
  font-size: 11px;
}

.trace-chain li > div {
  min-width: 0;
  display: grid;
}

.trace-chain strong {
  overflow: hidden;
  color: var(--schedule-heading);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-chain small {
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evaluation-actions {
  padding: 5px 6px;
  border-top: 1px solid var(--schedule-border);
  background: var(--schedule-panel-strong);
}

.evaluation-actions .schedule-button {
  min-width: 0;
  flex: 1 1 0;
  padding-inline: 5px;
  font-size: 9px;
}
