body {
  font-family: Roboto, Arial, sans-serif;
  background: #f4f6f8;
}

.bridge-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.bridge-header {
  background: #111827;
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bridge-header h1 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.section {
  background: white;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card {
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 12px;
  background: #fbfdff;
}

.metric-label {
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

#contractTable input {
  min-width: 130px;
}

.remove-row-btn {
  color: #dc3545;
  border: none;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.warning-line {
  color: #dc3545;
  font-weight: 700;
  min-height: 24px;
}

.preview-box {
  border: 1px dashed #d9e1ea;
  background: #fbfdff;
  border-radius: 10px;
  padding: 12px;
  min-height: 88px;
}

.notice {
  border-left: 4px solid #0d6efd;
  background: #eef6ff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.error-box {
  border-left: 4px solid #dc3545;
  background: #fff0f0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.success-box {
  border-left: 4px solid #198754;
  background: #eefbf4;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

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