@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap");
:root {
  --ink: #163c44;
  --muted: #60767b;
  --brand: #087f83;
  --line: #dce8e8;
  --bg: #f3f8f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px "DM Sans",
    system-ui,
    sans-serif;
}
a {
  color: var(--brand);
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  font:
    800 25px Manrope,
    sans-serif;
  letter-spacing: -1px;
  color: var(--ink);
}
.brand span {
  color: var(--brand);
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
header nav a {
  text-decoration: none;
}
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 10px 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  background: #fbfdfd;
  color: var(--ink);
  border: 1px solid #c7d9da;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  font: inherit;
  min-width: 0;
}
textarea {
  min-height: 90px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #53b9b3;
  outline-offset: 2px;
}
button,
.button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font: 600 14px inherit;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #e8f3f1;
  color: var(--ink);
}
.danger {
  background: #a63f46;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.notice {
  padding: 16px;
  border-radius: 10px;
  background: #dff2e9;
  color: #1e5c42;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.error {
  background: #fde8e6;
  color: #8d2f2f;
}
[hidden] {
  display: none !important;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.pill {
  background: #e8f3f1;
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.tabs button {
  background: white;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tabs button.active {
  background: var(--ink);
  color: white;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}
.chat-log {
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
}
.chat-log p {
  padding: 14px;
  background: var(--bg);
  border-radius: 10px;
}
.hero-note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.login {
  max-width: 440px;
  margin: 70px auto;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 32px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .layout,
  .grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  h1 {
    font-size: 28px;
  }
  header {
    align-items: flex-start;
  }
  header nav {
    gap: 10px;
    font-size: 12px;
  }
  .card {
    padding: 20px;
  }
  main {
    padding: 0 16px;
    margin: 25px auto;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media print {
  header,
  nav,
  button,
  .tabs,
  .no-print,
  footer,
  #message {
    display: none !important;
  }
  body {
    background: white;
  }
  main {
    margin: 0;
    max-width: none;
  }
  .card {
    border: 0;
    padding: 0;
  }
  .grid {
    display: block;
  }
}
