:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #1b2e36;
  background: #f3f5f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 236px;
  background: #102d33;
  color: #e5eeee;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand > span {
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #90adb0;
  margin-top: 6px;
}
nav {
  margin-top: 40px;
  display: grid;
  gap: 4px;
}
nav button {
  text-align: left;
  border: 0;
  background: none;
  color: #bacdd0;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
}
nav button.active {
  background: #28545a;
  color: white;
}
.sidebar-note {
  margin-top: auto;
  color: #95afb3;
  font-size: 12px;
  line-height: 1.8;
  padding-top: 30px;
}
main {
  margin-left: 236px;
  padding: 0 46px 30px;
  width: calc(100% - 236px);
  max-width: 1800px;
}
header {
  height: 84px;
  border-bottom: 1px solid #dce4e4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #537378;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: #3e7c78;
  margin: 0 0 14px;
}
h1 {
  font-size: 34px;
  font-weight: 580;
  letter-spacing: -1.3px;
  line-height: 1.14;
  margin: 0 0 10px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: #6b7e83;
  font-size: 12px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 24px;
  gap: 20px;
}
button {
  cursor: pointer;
  border: 1px solid #cdd9db;
  color: #264e52;
  background: #fff;
  border-radius: 7px;
  padding: 10px 15px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}
button:hover {
  background: #e9f3f1;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #17695e;
  color: white;
  border: 0;
  font-weight: 600;
}
.primary:hover {
  background: #11534a;
}
.primary span {
  float: right;
}
input {
  font: inherit;
  border: 1px solid #cdd9db;
  background: white;
  border-radius: 7px;
  padding: 11px 12px;
  color: #233d43;
  min-width: 0;
}
input:focus,
button:focus-visible {
  outline: 2px solid #48a595;
  outline-offset: 2px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: 25px 0 18px;
}
.toolbar input {
  flex: 1;
  font-size: 13px;
}
.panel {
  background: white;
  border: 1px solid #dce4e4;
  border-radius: 10px;
  overflow: auto;
  min-height: 160px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  border: 1px solid #dce4e4;
  background: #fff;
  border-radius: 9px;
  padding: 18px 20px;
}
.stat small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #698188;
  margin-bottom: 10px;
}
.stat strong {
  font-size: 20px;
  font-weight: 580;
  overflow-wrap: anywhere;
}
.stat p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #698188;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  background: #f7f9f9;
  color: #637c80;
  font-weight: 550;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 14px 17px;
  white-space: nowrap;
  border-bottom: 1px solid #e0e7e7;
}
td {
  padding: 13px 17px;
  border-bottom: 1px solid #eef1f1;
  max-width: 360px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
tr:last-child td {
  border: 0;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 8px;
  background: #e7f2ed;
  color: #236b54;
  font-size: 10px;
}
.pill.off {
  background: #edf0f0;
  color: #65777b;
}
.empty {
  padding: 30px;
  color: #6b7e83;
  font-size: 13px;
}
#status {
  font-size: 12px;
  color: #486d72;
  min-height: 25px;
  margin-bottom: 8px;
}
.error {
  color: #9a3d31 !important;
  background: #fff0ec;
  border-radius: 8px;
  padding: 15px;
}
#login-panel {
  padding: 65px 0;
  position: relative;
  max-width: 960px;
}
#login-panel h1 {
  font-size: 52px;
  letter-spacing: -2.1px;
}
.lead {
  font-size: 15px;
  color: #627a7e;
  margin: 22px 0 34px;
}
form {
  background: #fff;
  border: 1px solid #dce4e4;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
}
form h2 {
  margin-top: 0;
}
label {
  display: block;
  font-size: 12px;
  color: #526c71;
  margin-top: 18px;
}
label input {
  display: block;
  width: 100%;
  margin-top: 8px;
}
form button {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
}
#login-error {
  color: #a34533;
  font-size: 13px;
}
footer {
  font-size: 11px;
  color: #7b8f92;
  margin-top: 28px;
  line-height: 1.7;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
#changes {
  margin-top: 30px;
}
.diff-item {
  background: #fff;
  border: 1px solid #dce4e4;
  padding: 16px;
  margin: 8px 0;
  border-radius: 8px;
  font-size: 12px;
}
details summary {
  cursor: pointer;
  color: #336760;
}
#subtitle {
  max-width: 820px;
}
[hidden] {
  display: none !important;
}
dialog {
  border: 1px solid #cdd9db;
  border-radius: 14px;
  padding: 28px;
  max-width: 520px;
  color: #264e52;
}
dialog::backdrop {
  background: #102d3380;
}
@media (min-width: 1250px) {
  #login-panel form {
    position: absolute;
    right: 0;
    top: 60px;
    width: 370px;
  }
  #login-panel > .lead {
    max-width: 480px;
  }
}
@media (max-width: 950px) {
  aside {
    width: 190px;
    padding: 25px 15px;
  }
  main {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 0 25px 25px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
}
@media (max-width: 650px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
    gap: 4px;
  }
  nav button {
    font-size: 11px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0 18px 20px;
  }
  header {
    height: 60px;
    font-size: 9px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .title-row {
    margin-top: 26px;
  }
  h1 {
    font-size: 28px;
  }
  #login-panel {
    padding: 35px 0;
  }
  #login-panel h1 {
    font-size: 38px;
  }
}
table {
  min-width: max-content;
}
td {
  min-width: 95px;
  white-space: nowrap;
  overflow-wrap: normal;
}
td:first-child {
  min-width: 180px;
}
td pre {
  white-space: pre-wrap;
  max-width: 480px;
}
td details {
  white-space: normal;
  min-width: 180px;
}
.restricted {
  float: right;
  font-size: 8px;
  border: 1px solid #759092;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: 5px;
}
.notes {
  margin-bottom: 20px;
  font-size: 12px;
}
.notes textarea {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-top: 8px;
  font: inherit;
  border: 1px solid #cdd9db;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}
nav button:has(.restricted) {
  color: #91a8ad;
}
.toolbar {
  flex-wrap: wrap;
}
td.message-cell {
  white-space: pre-wrap;
  min-width: 320px;
  max-width: 680px;
}

#manage {
  width: min(680px, 90vw);
  max-height: 85vh;
  overflow: auto;
}
#manage pre,
#review-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#review-diff:empty {
  display: none;
}
#manage select {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #b8c9c5;
  border-radius: 8px;
  background: white;
  font: inherit;
}
#manage fieldset {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d7e0dd;
  border-radius: 8px;
  margin: 16px 0;
}
#manage .role-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
#manage .role-choice input {
  width: auto;
  margin: 0;
}

.actions-cell {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -5px 0 10px #102c2710;
  min-width: 125px;
}

.explorer {
  padding: 24px;
}
.explorer select {
  width: 100%;
  font: inherit;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid #b8c9c5;
  border-radius: 8px;
  background: white;
}
.explorer code {
  display: block;
  overflow-wrap: anywhere;
  margin: 16px 0;
  color: #126454;
}
.explorer pre {
  max-height: 500px;
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.explorer input {
  max-width: 100%;
}

.explorer form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.stats[hidden] {
  display: none;
}

.nav-group {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 18px 12px 6px;
}
aside {
  overflow-y: auto;
}
.demo-banner {
  border: 1px solid #c4a348;
  background: #fff8db;
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  color: #584314;
}
.demo-banner p {
  margin: 10px 0;
}
.demo-banner a {
  color: #254f45;
}
#activity-list {
  display: grid;
  gap: 12px;
}
#content .explorer table td:last-child {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
