:root {
  --smt-shadow: 0 16px 34px rgba(8, 35, 48, 0.08);
}

.topbar {
  gap: 20px;
}

.topbar .actions,
.panel-header .actions,
.toolbar,
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.panel,
.card,
.kpi,
.metric,
.mini-card,
.summary-item,
.audit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--smt-shadow);
}

.panel-header,
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h2,
.card-header h2,
.section-title h2 {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.panel-header p,
.card-header p,
.section-title p,
.sub,
small {
  color: var(--muted);
}

.owner-pill,
.status-pill,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: var(--teal-soft);
  color: var(--primary);
}

.owner-pill {
  min-width: 42px;
  border: 1px solid rgba(1, 168, 177, 0.24);
}

.status-pill.warning,
.status-pill.soon,
.status-pill.approval,
.status-pill.in-progress,
.status-pill.amber,
.pill.warning,
.pill.soon,
.pill.approval,
.pill.in-progress,
.chip.amber,
.chip.yellow {
  background: var(--gold-soft);
  color: #705500;
}

.status-pill.risk,
.status-pill.overdue,
.status-pill.red,
.status-pill.high,
.pill.risk,
.pill.overdue,
.pill.red,
.chip.red {
  background: rgba(235, 94, 49, 0.14);
  color: var(--risk);
}

.status-pill.good,
.status-pill.complete,
.status-pill.green,
.pill.good,
.pill.complete,
.chip.green {
  background: rgba(38, 166, 154, 0.15);
  color: var(--success);
}

.status-pill.muted,
.status-pill.no-date,
.status-pill.unknown,
.status-pill.not-started,
.pill.muted,
.pill.no-date,
.pill.unknown,
.pill.not-started,
.chip.grey {
  background: #eef3f4;
  color: var(--muted);
}

.status-pill.escalate,
.pill.escalate {
  background: rgba(30, 103, 130, 0.14);
  color: var(--primary);
}

.status-pill.decision,
.pill.decision {
  background: rgba(1, 168, 177, 0.16);
  color: var(--primary);
}

button,
.button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  border-radius: 8px;
  font-weight: 800;
}

.button.small,
button.small,
.row-actions button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.secondary-button,
.button.secondary,
button.secondary,
.ghost-button {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.danger-button,
.button.danger,
button.danger {
  background: rgba(235, 94, 49, 0.12);
  color: var(--risk);
  border: 1px solid rgba(235, 94, 49, 0.28);
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: var(--teal-soft);
  color: var(--primary);
  font-weight: 900;
}

tbody td {
  vertical-align: top;
}

.filters,
.filter-row,
.form-grid {
  gap: 12px;
}

input,
select,
textarea {
  border-radius: 8px;
}

@media (max-width: 780px) {
  .topbar,
  .panel-header,
  .card-header {
    align-items: stretch;
  }

  .topbar .actions,
  .panel-header .actions,
  .toolbar {
    justify-content: flex-start;
  }
}
