/* Loudness Calculator – Tool Styles */

.sat-loudness-calculator {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.5rem 0 0;
  font-family: inherit;
}

.sat-loudnesscalc__intro {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.sat-loudnesscalc__screen-btn {
  margin-top: 1rem;
  width: 100%;
  max-width: 280px;
}

.sat-loudnesscalc__back-btn {
  margin: 0 0 1rem;
}

.sat-loudnesscalc__upload-status {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #334155;
}

.sat-loudnesscalc__upload-status--error {
  color: #b91c1c;
}

.sat-loudnesscalc__upload-results {
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}

.sat-loudnesscalc__disclaimer {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #475569;
}

.sat-loudnesscalc__disclaimer-text {
  margin: 0;
}

.sat-loudness-calculator .sat-field__hint--light {
  color: #94a3b8;
  font-size: 0.78rem;
}

.sat-loudnesscalc__picked-summary {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #334155;
  word-break: break-word;
}

.sat-loudnesscalc__footer-back {
  margin-top: 1rem;
}

.sat-loudnesscalc__upload-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.sat-loudnesscalc__upload-table-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.sat-loudnesscalc__upload-table tbody tr {
  cursor: pointer;
}

.sat-loudnesscalc__upload-table tbody tr:hover {
  background: #f1f5f9;
}

.sat-loudnesscalc__upload-row--selected {
  background: #e0f2fe;
}

.sat-loudnesscalc__upload-row--selected:hover {
  background: #dbeafe;
}

/*
 * Upload grid: predictable columns — Headroom (col 5) stays compact for “OK”, wraps for warnings.
 * (sat-shared.css avoids thead th { width:60% } breaking multi-column layouts.)
 */
.sat-loudnesscalc__upload-table {
  width: 100%;
  font-size: 0.9rem;
  table-layout: fixed;
}

.sat-loudnesscalc__upload-table th,
.sat-loudnesscalc__upload-table td {
  padding: 0.35rem 0.55rem;
  text-align: left;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
  border-right: 1px solid #e8eef4;
}

/* sat-shared sets thead th { white-space: nowrap } — with fixed narrow columns, headers overlap in the modal */
.sat-loudnesscalc__upload-table thead th {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
  vertical-align: bottom;
  padding: 0.45rem 0.55rem 0.55rem;
}

.sat-loudnesscalc__upload-table thead th:last-child,
.sat-loudnesscalc__upload-table tbody td:last-child {
  border-right: none;
}

.sat-loudnesscalc__upload-table th:nth-child(1),
.sat-loudnesscalc__upload-table td:nth-child(1) {
  width: 26%;
}

.sat-loudnesscalc__upload-table th:nth-child(2),
.sat-loudnesscalc__upload-table td:nth-child(2) {
  width: 16%;
}

.sat-loudnesscalc__upload-table th:nth-child(3),
.sat-loudnesscalc__upload-table td:nth-child(3) {
  width: 16%;
}

.sat-loudnesscalc__upload-table th:nth-child(4),
.sat-loudnesscalc__upload-table td:nth-child(4) {
  width: 20%;
}

/* Headroom: OK when gain fits sample peak vs simple ceiling; full warning text when not */
.sat-loudnesscalc__upload-table th:nth-child(5),
.sat-loudnesscalc__upload-table td:nth-child(5) {
  width: 22%;
  min-width: 7.5rem;
}

.sat-loudnesscalc__results {
  margin-top: 1.5rem;
  border-top: 2px solid #2a9d8f;
  padding-top: 1rem;
}

#lc-upload:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
