:root {
  font-family: system-ui, sans-serif;
  line-height: 1.45;
  color: #1a1a1a;
  background: #f6f7f9;
}

body {
  margin: 0;
  padding: 1.25rem 1.5rem 2rem;
  max-width: 52rem;
}

h1 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

button {
  font: inherit;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #c8ccd4;
  background: #fff;
  cursor: pointer;
}

button.primary {
  background: #1e4d8c;
  color: #fff;
  border-color: #1e4d8c;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.panel {
  background: #fff;
  border: 1px solid #e2e4ea;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="file"],
select.field-control {
  font: inherit;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: 1px solid #c8ccd4;
  border-radius: 4px;
}

.row-delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.row-delivery > div:first-child {
  flex: 1 1 12rem;
  min-width: 0;
}

.upload-progress {
  margin-top: 0.75rem;
  max-width: 28rem;
}

.upload-progress-bar {
  height: 6px;
  background: #e2e4ea;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: #1e4d8c;
  transition: width 0.12s ease-out;
}

.wizard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wizard-intro {
  flex: 1 1 16rem;
  margin: 0;
}

.wizard-step {
  margin-top: 0.75rem;
}

.browse-bar {
  margin-top: 0.75rem;
}

.browse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.folder-row-static {
  cursor: default;
}

.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.upload-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e4ea;
}

.pems-slots-heading {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}

.pems-slots-note {
  margin: 0 0 0.75rem;
}

.pems-slot {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eceef3;
}

.pems-slot:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pems-audio-mode {
  border: none;
  margin: 0.5rem 0 0.65rem;
  padding: 0;
}

.pems-audio-legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}

.pems-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: normal;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.pems-radio input {
  margin-top: 0.2rem;
}

.generic-upload-hint {
  margin: 0 0 0.75rem;
}

.pems-audio-count {
  margin: 0 0 0.5rem;
}

tr.folder-row {
  cursor: pointer;
  background: #fafbfc;
}

tr.folder-row:hover {
  background: #f0f2f6;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #eee;
}

th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #555;
}

.status {
  font-size: 0.85rem;
  color: #444;
}

.error {
  color: #a32020;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.validation-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e4ea;
}

.validation-issues {
  margin: 0.5rem 0 0.75rem 1.1rem;
  padding: 0;
  font-size: 0.88rem;
  color: #333;
}

.validation-issues li {
  margin-bottom: 0.35rem;
}

.plume-vessel-type-row {
  margin: 0.75rem 0 0.5rem;
  max-width: 22rem;
}

.plume-vessel-type-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

#btnStartPipeline {
  margin-top: 0.25rem;
}
