:root {
  --ink: #17372f;
  --muted: #698078;
  --line: #dce5df;
  --paper: #f5f7f2;
  --accent: #d5ed71;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: #173c32;
  color: #d5e2da;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  color: white;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
  font-size: 34px;
  margin-right: 8px;
}
aside small {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin: 48px 12px 18px;
  color: #94b2a4;
}
nav a {
  display: block;
  color: #bcd0c3;
  padding: 13px 16px;
  margin: 5px 0;
  border-radius: 8px;
  text-decoration: none;
}
nav a:hover,
nav a.active {
  background: #2f5144;
  color: #efffc1;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 10px;
  line-height: 2;
  color: #a5b8ad;
}
main {
  margin-left: 228px;
  padding: 0 42px;
}
header {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  color: #477752;
}
section {
  max-width: 1240px;
  margin: 38px auto 60px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: #738577;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 650;
  margin: 8px 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
p.sub {
  color: var(--muted);
  max-width: 700px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.btn-primary {
  background: #254c3b;
  border-color: #254c3b;
}
.btn-primary:hover {
  background: #17372f;
  border-color: #17372f;
}
.btn-lime {
  background: var(--accent);
  color: #234434;
  font-weight: 600;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  background: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.metric small {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 36px;
  font-weight: 550;
  margin: 15px 0 0;
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.badge {
  font-weight: 500;
  background: #ebf1e4;
  color: #436445;
  padding: 7px 9px;
}
.table {
  font-size: 13px;
  --bs-table-bg: transparent;
}
.table th {
  color: #799083;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 14px 8px;
}
.table td {
  padding: 17px 8px;
  vertical-align: middle;
  border-color: #ecf0e9;
}
.empty {
  text-align: center;
  padding: 55px 15px;
  color: var(--muted);
}
.empty strong {
  display: block;
  font-size: 20px;
  margin: 15px 0;
  color: var(--ink);
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}
.form-control,
.form-select {
  font-size: 13px;
  border-color: #d9e1d8;
  padding: 10px;
}
.form-control:focus {
  box-shadow: 0 0 0 3px #d5ed7155;
  border-color: #789753;
}
textarea {
  min-height: 90px;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.turn {
  border-left: 3px solid #d6e2d2;
  padding: 12px 16px;
  margin: 10px 0;
  background: #f6f8f3;
  border-radius: 0 8px 8px 0;
}
.turn.ai {
  border-color: #8eae38;
  background: #f0f5df;
}
.turn small {
  color: #6a7e6d;
  font-size: 10px;
  letter-spacing: 1px;
}
.turn p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.timeline {
  max-height: 480px;
  overflow: auto;
}
.call-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: #859589;
  font-size: 11px;
}
#notice {
  margin-top: 20px;
  padding: 14px;
  background: #ffebe6;
  border: 1px solid #e9b9a9;
  border-radius: 8px;
}
.login {
  max-width: 430px;
  margin: 80px auto;
}
.login h1 {
  font-size: 28px;
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  color: #4b6853;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
a {
  color: #345d43;
}
body[data-login="true"] nav,
body[data-login="true"] #logout {
  display: none;
}
@media (max-width: 900px) {
  aside {
    width: 180px;
    padding: 22px 12px;
  }
  main {
    margin-left: 180px;
    padding: 0 20px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: auto;
    padding: 14px 18px;
  }
  aside small,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav a {
    padding: 8px;
    font-size: 12px;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  header {
    height: 55px;
    font-size: 10px;
  }
  section {
    margin-top: 24px;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .card {
    padding: 18px;
  }
  .metric-grid {
    gap: 10px;
  }
  .status-dot {
    display: none;
  }
}
