:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #213c42;
  background: #f5f7f8;
  font-synthesis: none;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #142f35;
  color: #d5e3e6;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #55c5a5;
  color: #163b37;
  border-radius: 10px;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #8ca6ad;
  margin: 38px 12px 12px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #bfd1d6;
  font-size: 14px;
}
nav a:hover,
nav a.active {
  background: #2b4a50;
  color: #fff;
}
nav a span {
  float: right;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #aec6c9;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #89a6ad;
}
.dot {
  display: inline-block;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #60ceac;
  margin-right: 6px;
}
.workspace {
  margin-left: 248px;
}
header {
  height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid #e2e8e9;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #698087;
}
.environment {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #32695f;
  background: #e5f4ee;
  padding: 6px 10px;
  border-radius: 5px;
}
.safety {
  background: #fff6df;
  color: #745d26;
  padding: 10px 38px;
  font-size: 12px;
  border-bottom: 1px solid #efe3c8;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 32px 38px 60px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #72868b;
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0 12px;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
p {
  margin: 8px 0 16px;
}
#status {
  font-size: 12px;
  min-height: 18px;
  color: #627a81;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 28px;
}
.metric,
.panel {
  background: white;
  border: 1px solid #dfe7e9;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 3px #18353b03;
}
.metric small {
  color: #657d84;
}
.metric strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin-top: 7px;
}
.metric p {
  font-size: 11px;
  color: #7b8c90;
  margin: 2px 0 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
}
.panel {
  margin-bottom: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #789097;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f7f9fa;
}
th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf1f2;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 5px;
  padding: 4px 8px;
  background: #edf2f4;
  color: #536f79;
  white-space: nowrap;
}
.badge.human_handling,
.badge.held {
  background: #fff0da;
  color: #906923;
}
.badge.closed_paid {
  background: #e5f5ec;
  color: #247856;
}
.badge.suppressed {
  background: #f3e9ec;
  color: #8a4d62;
}
button,
.button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1px solid #16705d;
  border-radius: 6px;
  background: #16705d;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  border-color: #d7e1e3;
  color: #34565f;
}
.danger {
  background: #fff1f1;
  border-color: #e8c7c7;
  color: #973f46;
}
.link {
  padding: 0;
  background: none;
  border: 0;
  color: #187663;
  text-align: left;
}
input,
select,
textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #cfdbde;
  border-radius: 6px;
  background: white;
  color: #243e45;
  max-width: 100%;
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin: 16px 0 6px;
}
form .actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 22px;
}
.muted {
  color: #72888f;
  font-size: 12px;
}
.timeline {
  border-left: 2px solid #dce8e7;
  padding-left: 20px;
  margin: 16px 0;
}
.timeline article {
  padding: 8px 0 18px;
  overflow-wrap: anywhere;
}
.timeline p {
  font-size: 13px;
  margin: 4px 0;
}
.empty {
  text-align: center;
  padding: 44px 20px;
  color: #6b838a;
}
.notice {
  padding: 14px 18px;
  background: #edf5f3;
  border-radius: 7px;
  font-size: 13px;
  margin: 14px 0;
}
.error {
  color: #a03939 !important;
}
footer {
  padding: 20px 38px;
  font-size: 10px;
  color: #879ba0;
  border-top: 1px solid #e4ebed;
}
.skip {
  position: fixed;
  top: -100px;
  background: white;
  z-index: 10;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
:focus-visible {
  outline: 3px solid #c39738;
  outline-offset: 3px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
@media (max-width: 1000px) {
  aside {
    width: 210px;
    padding: 24px 16px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  aside {
    position: relative;
    width: auto;
    padding: 18px;
    display: block;
  }
  .brand {
    font-size: 20px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    margin-top: 12px;
  }
  nav a {
    white-space: nowrap;
    padding: 8px;
    font-size: 12px;
  }
  nav a span {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: 48px;
    padding: 0 18px;
  }
  .safety {
    padding: 10px 18px;
  }
  main {
    padding: 24px 16px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  h1 {
    font-size: 26px;
  }
  footer {
    padding: 20px 16px;
  }
  .environment {
    font-size: 8px;
  }
}
.split > * {
  min-width: 0;
}
.panel {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
header,
.eyebrow,
#status,
.metric small,
.metric p,
th,
.muted,
footer,
.empty {
  color: #506970;
}
.badge.human_handling,
.badge.held {
  color: #795717;
}
.toolbar input {
  flex: 1 1 60%;
  min-width: 180px;
}
.toolbar select {
  flex: 0 1 220px;
  width: auto;
}
@media (max-width: 700px) {
  .toolbar input,
  .toolbar select {
    flex: auto;
    width: 100%;
  }
}
.message-text {
  max-width: 48ch;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
