:root {
  --bg: #f6f7f9;
  --ink: #1e252c;
  --muted: #66717d;
  --panel: #ffffff;
  --line: #d9dee5;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --danger: #b42318;
  --warn: #a15c07;
  --ok: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 Segoe UI, Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dashboardHeader {
  position: sticky;
  top: 0;
  z-index: 2;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.topbar p,
.muted {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  padding: 16px;
}

.metrics,
.results {
  grid-column: 1 / -1;
}

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

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #344054;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input[type="password"],
input[type="text"],
input[type="number"],
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 210px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

#imageUrls {
  min-height: 112px;
}

.actions,
.toolbar,
.resultsHead {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar {
  margin-bottom: 12px;
}

.resultsHead {
  justify-content: space-between;
  margin-bottom: 12px;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-dark);
}

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

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.hidden {
  display: none;
}

.fieldGrid {
  display: grid;
  gap: 12px;
}

.fieldGrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check {
  display: inline-flex;
  gap: 7px;
  margin: 0 auto 0 0;
  align-items: center;
}

.notice {
  border-left: 3px solid var(--warn);
  background: #fffbeb;
  color: #704214;
  margin: 0 0 12px;
  padding: 9px 10px;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: #fafafa;
}

.tableWrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
}

.status-created,
.status-created_and_publish_requested,
.status-dry_run,
.status-imported,
.status-ready {
  color: var(--ok);
  font-weight: 700;
}

.status-invalid,
.status-failed {
  color: var(--danger);
  font-weight: 700;
}

.noteWarning {
  color: var(--warn);
}

@media (max-width: 900px) {
  .topbar,
  .layout,
  .metrics,
  .fieldGrid.three {
    display: block;
  }

  .panel,
  .metric,
  .topbar .actions {
    margin-top: 14px;
  }
}
