.roc-shell {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(255, 255, 255, 0.99));
}

.roc-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.95fr);
}

.roc-card {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.roc-heading-row,
.roc-actions,
.roc-example-row,
.roc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.roc-heading-row {
  justify-content: space-between;
  align-items: start;
}

.roc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.roc-field textarea,
.roc-field input,
.roc-field select {
  width: 100%;
}

.roc-field textarea {
  min-height: 300px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.roc-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.roc-metric {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 14px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.roc-metric-label {
  display: block;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
}

.roc-metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.roc-message {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 14px;
}

.roc-message--ok {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #155e75;
}

.roc-message--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.roc-message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.roc-warnings {
  margin: 12px 0 0;
  padding-left: 18px;
}

.roc-detail-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.roc-chart-wrap,
.roc-table-wrap {
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

#roc-chart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  outline: none;
}

#roc-chart:focus {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.roc-threshold-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.roc-threshold-table th,
.roc-threshold-table td {
  border-top: 1px solid var(--border, #cbd5e1);
  padding: 10px 12px;
  text-align: left;
}

.roc-threshold-table thead th {
  border-top: 0;
  background: rgba(241, 245, 249, 0.92);
}

@media (max-width: 960px) {
  .roc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .roc-metrics {
    grid-template-columns: 1fr;
  }
}
