.sclc-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.sclc-wrap {
  width: 100%;
}

.sclc-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .sclc-grid {
    grid-template-columns: 1fr;
  }
}

.sclc-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sclc-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text, #1e293b);
}

.sclc-form-group {
  margin-bottom: 1.25rem;
}

.sclc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.sclc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}

.sclc-btn-ghost {
  background: transparent;
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.sclc-btn-ghost:hover {
  background: #f0f9ff;
}

.sclc-select,
.sclc-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text, #1e293b);
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}

.sclc-textarea {
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  resize: vertical;
}

.sclc-select:focus,
.sclc-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* File Dropper */
.sclc-file-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  margin-top: 0.75rem;
}

.sclc-file-drop:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.sclc-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.sclc-file-icon {
  font-size: 1.5rem;
}

.sclc-file-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}

.sclc-file-sub {
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}

.sclc-file-hidden {
  display: none;
}

/* KPI Cards */
.sclc-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sclc-kpi-card {
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.sclc-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.sclc-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sclc-kpi-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.sclc-kpi-cues {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.sclc-kpi-violations {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.sclc-kpi-cps {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.sclc-kpi-chars {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* Filter pills */
.sclc-filter-bar {
  margin-bottom: 1rem;
}

.sclc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sclc-pill {
  background: transparent;
  color: var(--text, #1e293b);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 16px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}

.sclc-pill:hover {
  background: rgba(0,0,0,0.04);
}

.sclc-pill-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Table */
.sclc-table-wrap {
  overflow-x: auto;
  max-height: 380px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
}

.sclc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sclc-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  font-weight: 600;
  z-index: 2;
}

.sclc-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: top;
}

.sclc-tag-pass {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sclc-tag-error {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sclc-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sclc-btn-action {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.sclc-btn-action:hover {
  background: #0369a1;
}

.sclc-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
}
