.file-btn {
  display: inline-flex; align-items: center;
  background: #ffffff; color: #131722; border: 1px solid #d1d4dc;
  padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 13px;
}
.file-btn:hover { background: #f0f3fa; }

.day-nav {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
}
.nav-btn {
  background: #ffffff; color: #131722;
  border: 1px solid #d1d4dc;
  padding: 1px 8px; border-radius: 3px;
  cursor: pointer; font-size: 14px; line-height: 18px;
  min-width: 24px;
}
.nav-btn:hover:not(:disabled) { background: #f0f3fa; }
.nav-btn:disabled { color: #c0c4cc; cursor: default; }
.day-label {
  font-family: ui-monospace, monospace;
  font-size: 12px; color: #131722;
  min-width: 220px; text-align: center;
}
.day-progress {
  font-size: 11px; color: #787b86;
  font-family: ui-monospace, monospace;
}

.inspect-main {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: #ffffff;
}
#rows-container {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
}
.inspect-main .empty {
  margin: 60px auto; max-width: 480px; text-align: center; color: #787b86;
}
.inspect-main .empty .hint { font-size: 12px; margin-top: 12px; }
.inspect-main .empty code {
  background: #f5f7fa; border: 1px solid #e1e3eb;
  padding: 1px 4px; border-radius: 3px;
}

.day-row {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 8px 12px 12px;
}
.day-row-header {
  font-size: 13px; font-weight: 600; color: #131722;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.day-row-pair {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 8px;
}

.day-row-playback {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 2px 6px;
  font-size: 11px; color: #4a4d57;
}
.day-row-playback.playback-active {
  background: rgba(41, 98, 255, 0.04);
  border-radius: 3px;
}
.pb-btn {
  background: #ffffff; color: #131722;
  border: 1px solid #d1d4dc;
  padding: 1px 8px; border-radius: 3px;
  cursor: pointer; font-size: 12px; line-height: 18px;
  min-width: 26px;
}
.pb-btn:hover { background: #f0f3fa; }
.pb-time {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  min-width: 92px;
  color: #131722;
}
.pb-scrub { flex: 1; min-width: 100px; }
.pb-speed-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  min-width: 110px;
  text-align: right;
}
.pb-speed { width: 110px; }
.chart-cell {
  position: relative; min-width: 0; min-height: 0;
  border: 1px solid #e1e3eb; border-radius: 4px;
  background: #ffffff; overflow: hidden;
}
.chart-cell-label {
  position: absolute; top: 6px; right: 10px; z-index: 5;
  font-size: 11px; color: #787b86;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px; border-radius: 3px;
  pointer-events: none;
}

.chart-cell.measure-active, .chart-cell.measure-active * {
  cursor: crosshair !important;
}
.chart-cell.measure-active canvas { pointer-events: none !important; }

.gate-banner {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d1d4dc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  max-width: 360px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}
.gate-banner-header {
  font-weight: 600; font-size: 12px; margin-bottom: 3px;
}
.gate-banner-header.pass { color: #1b5e20; }
.gate-banner-header.fail { color: #c62828; }
.gate-banner-list {
  list-style: none; padding: 0; margin: 0;
  font-family: ui-monospace, monospace; font-size: 10px;
  color: #131722;
}
.gate-banner-list li { padding: 1px 0; }
.gate-banner-list .label { color: #4a4d57; margin-right: 6px; }

.dropping .inspect-main { outline: 3px dashed #2962ff; outline-offset: -8px; }
