.mpsc-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.mpsc-wrap {
  width: 100%;
}

.mpsc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .mpsc-grid {
    grid-template-columns: 1fr;
  }
}

.mpsc-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);
}

.mpsc-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text, #1e293b);
}

.mpsc-sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text, #1e293b);
}

.mpsc-form-group {
  margin-bottom: 1.25rem;
}

.mpsc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.mpsc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin-bottom: 0.35rem;
}

.mpsc-char-count {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  font-family: monospace;
}

.mpsc-input,
.mpsc-select,
.mpsc-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  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;
}

.mpsc-input:focus,
.mpsc-select:focus,
.mpsc-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.mpsc-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.mpsc-col {
  flex: 1;
}

/* File Drop Zone */
.mpsc-file-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.mpsc-file-drop:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.mpsc-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.mpsc-file-icon {
  font-size: 1.5rem;
}

.mpsc-file-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
}

.mpsc-file-sub {
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}

.mpsc-file-hidden {
  display: none;
}

/* Status Card */
.mpsc-status-card {
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.mpsc-status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.mpsc-status-caption {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #166534;
}

.mpsc-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: #dcfce7;
  color: #15803d;
}

.mpsc-status-badge.mpsc-badge-fail {
  background: #fee2e2;
  color: #b91c1c;
}

.mpsc-status-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mpsc-status-val {
  font-size: 2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.mpsc-status-raw {
  font-size: 0.85rem;
  color: var(--muted, #64748b);
  font-family: monospace;
}

.mpsc-bar-track {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mpsc-bar-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.mpsc-bar-fill.mpsc-fill-fail {
  background: #ef4444;
}

.mpsc-status-msg {
  font-size: 0.85rem;
  color: var(--text, #1e293b);
  margin: 0;
  font-weight: 500;
}

/* Carrier Table */
.mpsc-matrix-section {
  margin-bottom: 1.25rem;
}

.mpsc-table-wrap {
  overflow-x: auto;
}

.mpsc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mpsc-table th {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  font-weight: 600;
}

.mpsc-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.mpsc-pass-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.mpsc-fail-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Optimization Recommendations */
.mpsc-opt-box {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.mpsc-opt-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mpsc-opt-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  line-height: 1.45;
}

.mpsc-opt-list li {
  margin-bottom: 0.35rem;
}

.mpsc-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mpsc-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;
}

.mpsc-btn-action:hover {
  background: #0369a1;
}

.mpsc-copy-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
}
