:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dfe6ef;
  --paper: #ffffff;
  --page: #f5f7fa;
  --green: #13795b;
  --amber: #a45f00;
  --red: #a92f2f;
  --blue: #225ea8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
.button-link {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.button-link:hover {
  border-color: #9eb0c6;
}

.button-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.1;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-panel,
.card,
.audit-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-panel {
  min-height: 54px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: var(--muted);
}

.status-panel strong {
  color: var(--ink);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.summary-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

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

.summary-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0;
  font-size: 20px;
}

.count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 336px;
  padding: 16px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.32;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.medium,
.pill.manual_review,
.pill.pending {
  background: #fff6e6;
  color: var(--amber);
}

.pill.high,
.pill.public_publish,
.pill.blocked,
.pill.conflict {
  background: #ffebe6;
  color: var(--red);
}

.pill.low,
.pill.stageable,
.pill.approved {
  background: #e7f5ec;
  color: var(--green);
}

.pill.archived,
.pill.rejected,
.pill.snoozed,
.pill.resolved,
.pill.stale {
  background: #edf1f6;
  color: var(--muted);
}

.detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.evidence {
  margin: 8px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.card-actions button[data-decision="approved"] {
  border-color: #a8d8bd;
}

.card-actions button[data-decision="rejected"],
.card-actions button[data-decision="archived"] {
  border-color: #efc2b8;
}

.audit-list {
  display: grid;
  gap: 8px;
}

.audit-item {
  padding: 12px 14px;
}

.audit-item h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.empty {
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.login-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.login-panel h2 {
  margin-bottom: 8px;
}

.login-panel p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-grid {
    grid-template-columns: 1fr;
  }
}
