:root {
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172235;
  background: #f7f9fc;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: #2468e8;
  text-decoration: none;
}
button {
  border: 1px solid transparent;
  background: #2468e8;
  color: white;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.quiet {
  border-color: #dfe5ed;
  background: white;
  color: #455670;
}
.danger {
  color: #c33942;
  border-color: #f3d9dd;
  background: #fff7f8;
}
.brand {
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: #172235;
  display: block;
}
.brand span {
  font-size: 10px;
  color: #2468e8;
  letter-spacing: 1.4px;
  margin-left: 8px;
}
.eyebrow,
.nav-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: #68768c;
}
.eyebrow {
  color: #2468e8;
  margin: 0 0 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  margin: 0 0 15px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: #6b788d;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 38px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 35px #182a4406;
}
.login-card .brand {
  margin-bottom: 38px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}
#shell {
  display: flex;
  min-height: 100dvh;
}
aside {
  width: 235px;
  background: white;
  border-right: 1px solid #e2e8f0;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.nav-label {
  margin: 7px 12px -15px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button,
nav a {
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 12px 14px;
  border-radius: 9px;
  background: transparent;
  color: #627089;
  border: 0;
  font-weight: 600;
}
nav button[aria-current="page"] {
  background: #edf3ff;
  color: #2468e8;
}
nav button:hover,
nav a:hover {
  background: #f4f7fc;
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 18px;
}
.main {
  margin-left: 235px;
  flex: 1;
  min-width: 0;
  padding: 35px 42px;
  max-width: 1600px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 32px;
}
header p {
  margin: 8px 0 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  min-width: 0;
  box-shadow: 0 3px 12px #17223502;
}
.grid > .card {
  margin-bottom: 0;
}
.card-top,
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.card-top {
  align-items: flex-start;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.actions button {
  font-size: 12px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  background: #edf3ff;
  color: #2468e8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}
.good {
  background: #e7f7ef;
  color: #137755;
}
.bad {
  background: #fff0f0;
  color: #b53440;
}
.metric {
  font-size: 35px;
  font-weight: 750;
  margin: 12px 0 3px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: #6b788d;
}
.list-button {
  width: 100%;
  background: transparent;
  color: #172235;
  border-radius: 0;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  padding: 17px 0;
}
.list-button:hover {
  background: #f8faff;
}
.list-button:last-child {
  border-bottom: 0;
}
.list-button small {
  display: block;
  margin-top: 5px;
  font-weight: 400;
}
.split {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 20px;
}
.conversation {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 10px;
  background: #f5f7fb;
  margin: 12px 0;
}
.conversation.staff {
  background: #edf4ff;
  border: 1px solid #dce8ff;
}
.conversation small {
  display: block;
  margin-bottom: 8px;
  white-space: normal;
}
.meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 12px;
}
.meta dt {
  color: #6b788d;
}
.meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin: 17px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  background: white;
  color: #172235;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 115px;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 270px;
  white-space: pre;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
dialog {
  border: 1px solid #dce3ed;
  border-radius: 16px;
  padding: 26px;
  width: min(650px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  color: #172235;
}
dialog::backdrop {
  background: #17223575;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  padding: 3px 10px;
  font-size: 22px;
}
#notice,
#login-error,
.form-error {
  color: #ad3040;
  background: #fff0f2;
  border-radius: 9px;
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
#notice.success {
  color: #147552;
  background: #e7f7ef;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #9dc2ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.spinner {
  padding: 40px;
  text-align: center;
  color: #6b788d;
}
@media (max-width: 950px) {
  .main {
    padding: 28px 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  aside {
    width: 190px;
    padding: 25px 14px;
  }
  .main {
    margin-left: 190px;
  }
}
@media (max-width: 640px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    width: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  nav button,
  nav a {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 12px;
  }
  .nav-label {
    display: none;
  }
  .sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main {
    margin-left: 0;
    padding: 25px 18px;
  }
  h1 {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  header {
    margin-bottom: 23px;
  }
}
