.section-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.plan-speed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.testmode-label {
  font-size: 0.86rem;
  color: #dbeafe;
  margin-bottom: 10px;
}

.test-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.table-wrap {
  position: relative;
  overflow: visible;
}

.plan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.78rem;
}

.plan-table th,
.plan-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 6px;
  text-align: left;
  vertical-align: middle;
  min-width: 0;
  word-break: break-word;
}

.plan-table thead {
  position: sticky;
  top: calc(58px + env(safe-area-inset-top));
  z-index: 11;
}

.plan-table thead th {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: static;
  background: rgba(23, 33, 49, 0.98);
  box-shadow: 0 1px 0 rgba(42, 54, 73, 0.95);
}

.plan-table tbody tr:first-child td {
  padding-top: 14px;
}

.plan-table tr:last-child td {
  border-bottom: 0;
}

.checkpoint-row.checkpoint-vp {
  background: rgba(30, 58, 138, 0.2);
}

.checkpoint-row.checkpoint-wp {
  background: rgba(91, 33, 182, 0.24);
}

.checkpoint-title .checkpoint-title-cell {
  padding-top: 8px;
  padding-bottom: 4px;
  border-bottom: 0;
}

.checkpoint-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkpoint-meta-line {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.checkpoint-warning-line {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fecaca;
}

.checkpoint-name-strong {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.checkpoint-values td {
  width: 16.66%;
  padding-top: 4px;
  padding-bottom: 10px;
}

.metric-value {
  display: block;
  font-size: 0.8rem;
}

.type-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.type-pill-vp {
  background: rgba(30, 64, 175, 0.8);
}

.type-pill-wp {
  background: rgba(109, 40, 217, 0.85);
}

.checkpoint-pause-input {
  width: 100%;
  max-width: 76px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--fg);
  padding: 0 8px;
}

.warning-text {
  color: #fecaca;
  margin-bottom: 8px;
  font-size: 0.88rem;
  white-space: pre-line;
}

.save-section {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
}

@media (max-width: 880px) {
  .plan-table th {
    font-size: 0.64rem;
  }

  .metric-value {
    font-size: 0.74rem;
  }

  .checkpoint-pause-input {
    max-width: 58px;
    padding: 0 6px;
  }
}
