:root {
  color-scheme: dark;
  font:
    16px/1.5 'Inter',
    'Segoe UI',
    sans-serif;
  --bg: #181a1c;
  --side: #202224;
  --surface: #212325;
  --raised: #292b2e;
  --line: #34363a;
  --text: #f4f3f1;
  --sub: #b1b2b5;
  --dim: #989b9f;
  --orange: #f18a54;
  --action: #b84e22;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
a.button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  border: 1px solid #44474b;
  border-radius: 6px;
  background: #303235;
  color: var(--text);
  padding: 0.49rem 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
button:hover,
.button:hover {
  background: #3b3e40;
}
.primary {
  background: var(--action);
  border-color: #ce683c;
  color: white;
}
.primary:hover {
  background: #ce5d2c;
}
.danger {
  color: #ffaaa3;
  border-color: #804842;
  background: #3d2828;
}
button:disabled,
.button[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 2px solid #ffa571;
  outline-offset: 3px;
}
input,
textarea,
select {
  color: var(--text);
  border: 1px solid #45474b;
  border-radius: 6px;
  background: #191b1d;
  padding: 0.65rem 0.8rem;
  max-width: 100%;
  min-width: 0;
}
textarea {
  width: 100%;
  font-family: var(--mono);
  resize: vertical;
  tab-size: 2;
}
label {
  display: grid;
  gap: 0.45rem;
  color: var(--sub);
  font-size: 0.92rem;
}
label input {
  width: 100%;
}
form {
  display: grid;
  gap: 1rem;
}
form > button {
  justify-self: start;
}
[data-icon] {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}
[data-icon] svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  height: 74px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  color: #1b1715;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
  font:
    italic 900 1.45rem/1 'Arial',
    sans-serif;
  padding-bottom: 3px;
}
.workspace-id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 14px 6px;
  padding: 11px 12px;
  border: 1px solid #393b3e;
  border-radius: 7px;
  background: #26282a;
  min-width: 0;
}
.workspace-id > span:last-child,
.who > div {
  min-width: 0;
}
.workspace-id strong,
.who strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.94rem;
}
.caption,
.nav-label,
.meta-label,
th {
  font-size: 0.76rem;
  letter-spacing: 0.075em;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--dim);
}
.workspace-id .caption {
  color: var(--orange);
}
.workspace-id [data-icon] {
  color: var(--orange);
}
nav {
  padding: 6px 12px;
}
.nav-label {
  margin: 23px 10px 8px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  font-weight: 550;
  font-size: 0.94rem;
  padding: 10px 13px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  margin: 2px 0;
}
nav a:hover {
  background: #292c2e;
  color: white;
}
nav a[aria-current='page'] {
  color: #fff;
  background: #36302d;
  border-left-color: var(--orange);
}
nav a[aria-current='page'] [data-icon] {
  color: var(--orange);
}
.who {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.who small {
  display: block;
  color: var(--dim);
  font-size: 0.8rem;
}
.avatar,
.icon-tile {
  background: #362d28;
  color: var(--orange);
  border: 1px solid #503c32;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.avatar {
  height: 34px;
  width: 34px;
}
.who button {
  margin-left: auto;
}
.icon-button {
  background: transparent;
  padding: 0.52rem;
  border-color: transparent;
}
.layout {
  margin-left: 238px;
  min-height: 100vh;
}
.topline {
  height: 58px;
  border-bottom: 1px solid #303235;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 70px);
  font-size: 0.86rem;
  color: var(--dim);
}
.topline strong {
  color: #d9dadb;
  font-weight: 550;
}
.topline .slash {
  color: #64676b;
}
#menu {
  display: none;
}
main {
  width: min(100%, 1510px);
  margin: auto;
  padding: clamp(22px, 3vw, 48px) clamp(18px, 4vw, 70px) 68px;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
}
.heading,
.card-head,
.row,
.actions,
.filters,
.hero-top,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading,
.card-head,
.hero-top,
.row {
  justify-content: space-between;
}
.heading {
  margin-bottom: 23px;
}
.heading p,
.hint,
.secondary {
  color: var(--sub);
  font-size: 0.92rem;
}
.heading p {
  margin-top: 5px;
}
.card,
.hero,
dialog,
.auth-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.card,
.hero {
  overflow: hidden;
  margin-bottom: 18px;
}
.card-head {
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
  background: #26282a;
}
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-head [data-icon] {
  color: var(--orange);
}
.body {
  padding: 20px 21px;
}
.hero-top {
  padding: 23px 26px;
  background: linear-gradient(105deg, #302823 0, #262524 55%, #222426 100%);
  border-top: 2px solid #b65f39;
}
.hero-title {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.hero-title h2 {
  font-size: 1.5rem;
  overflow-wrap: anywhere;
  letter-spacing: -0.03em;
}
.icon-tile {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}
.facts,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
}
.facts > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.facts strong,
.stats strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.facts strong {
  font-size: 0.98rem;
  font-weight: 570;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.stats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 18px;
}
.stats strong {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.23rem 0.58rem;
  border-radius: 5px;
  line-height: 1.4;
}
.good {
  color: #90dfb4;
  background: #20382c;
}
.warn {
  color: #ffcb83;
  background: #3d3021;
}
.bad {
  color: #ffaaa6;
  background: #402a2b;
}
.muted {
  color: #c3c6c9;
  background: #33363a;
}
.rows {
  display: grid;
}
.row {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.row:first-child {
  border-top: 0;
}
.row > span:first-child {
  color: var(--sub);
}
.row strong {
  font-size: 0.96rem;
  font-weight: 550;
}
.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.field-row [data-icon] {
  color: var(--orange);
}
.actions,
.filters {
  flex-wrap: wrap;
}
.note,
.notice {
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid #624732;
  color: #ffd2ad;
  background: #312922;
  font-size: 0.91rem;
}
.notice {
  margin: 0 0 16px;
}
.notice:empty {
  display: none;
}
.note {
  margin-top: 12px;
}
.hint {
  line-height: 1.5;
}
.body .hint + form,
.body .hint + .actions {
  margin-top: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.actions {
  justify-content: flex-start;
}
.inline-end {
  justify-content: flex-end;
}
.code,
code,
.ip {
  font-family: var(--mono);
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}
.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--sub);
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
td {
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border-bottom: 0;
}
th {
  white-space: nowrap;
  background: #252729;
}
td small,
.file-info small {
  display: block;
  color: var(--dim);
  font-size: 0.83rem;
}
td:last-child {
  text-align: right;
}
th:last-child {
  text-align: right;
}
.filters {
  padding: 14px 19px;
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #45474b;
  border-radius: 6px;
  background: #191b1d;
  padding: 0 0.7rem;
}
.search input {
  padding: 0.49rem 0;
  border: 0;
  background: transparent;
}
.filters select {
  padding: 0.48rem 0.7rem;
}
.filters .secondary {
  margin-left: auto;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  gap: 12px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--sub);
  padding: 12px 6px;
}
.tabs button[aria-pressed='true'] {
  border-bottom-color: var(--orange);
  color: var(--orange);
}
.setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #1c1e20;
  border-radius: 4px;
}
.setting:nth-child(even) {
  background: transparent;
}
.setting span {
  overflow-wrap: anywhere;
}
.setting input[type='checkbox'] {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 20px;
  padding: 0;
  background: #151617;
  cursor: pointer;
}
.setting input[type='checkbox']:before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  margin: 3px;
  background: #96999b;
}
.setting input[type='checkbox']:checked {
  background: #7c3d21;
  border-color: #a95a30;
}
.setting input[type='checkbox']:checked:before {
  background: #ff985b;
  transform: translateX(15px);
}
.auth-box {
  max-width: 460px;
  margin: clamp(20px, 10vh, 105px) auto;
  padding: 30px;
  border-top: 2px solid #b75e36;
}
.auth-brand {
  color: var(--orange);
  margin-bottom: 20px;
}
.auth-box p {
  color: var(--sub);
  margin: 0.65rem 0 1.3rem;
}
dialog {
  color: var(--text);
  width: min(540px, 94vw);
  max-height: 90dvh;
  padding: 0;
}
dialog::backdrop {
  background: #08090bc7;
}
dialog header {
  padding: 17px 20px;
  background: #292b2d;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog .body {
  display: grid;
  gap: 16px;
}
.subsection {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  gap: 9px;
}
.stack {
  display: grid;
  gap: 13px;
}
.noscript {
  padding: 18px;
}
.history {
  max-height: 180px;
  overflow: auto;
  color: var(--sub);
  font-size: 0.87rem;
}
.history p {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.history small {
  display: block;
  color: var(--dim);
}
@media (min-width: 1700px) {
  main {
    padding-top: 40px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 204px;
  }
  .layout {
    margin-left: 204px;
  }
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .stats {
    gap: 7px;
  }
  .stats > div {
    padding: 12px;
  }
  .stats .meta-label {
    letter-spacing: 0.02em;
  }
}
@media (max-width: 740px) {
  .sidebar {
    width: 255px;
    transform: translateX(-101%);
    transition: transform 0.15s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #0009;
  }
  .sidebar.open + .layout .topline {
    position: relative;
    z-index: 6;
    background: var(--bg);
    margin-left: 255px;
  }
  .sidebar.open + .layout .topline :not(#menu):not([data-icon]):not(svg):not(path) {
    display: none;
  }
  #menu {
    display: inline-flex;
  }
  .layout {
    margin-left: 0;
  }
  .topline {
    padding: 0 12px;
    height: 50px;
  }
  main {
    padding: 20px 13px 45px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .facts {
    padding: 13px;
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .facts > div + div {
    border: 0;
    padding: 0;
  }
  .facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .facts strong {
    margin: 0;
  }
  .hero-top,
  .body,
  .card-head,
  .row {
    padding: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters .secondary {
    margin-left: 0;
  }
  .hero-title {
    gap: 9px;
  }
  .auth-box {
    margin-top: 18px;
  }
  .hero-title h2 {
    font-size: 1.25rem;
  }
  .icon-tile {
    width: 38px;
    height: 38px;
  }
  .section-title {
    flex-wrap: wrap;
  }
  .stats strong {
    font-size: 1.4rem;
  }
}
.settings-group + .settings-group {
  margin-top: 20px;
}
.settings-group h3 {
  margin: 0 0 9px;
}
.config-row {
  border-bottom: 1px solid var(--line);
  padding: 5px 0 8px;
}
.config-row .setting small {
  display: block;
  color: var(--dim);
}
.setting-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 3px 12px;
}
.setting-meta small {
  color: var(--sub);
}
.setting-meta button {
  font-size: 0.8rem;
  padding: 3px 8px;
}
#field-default input[type='checkbox'] {
  width: auto;
}
#server-settings summary {
  cursor: pointer;
  font-weight: 650;
}
#server-settings:not([open]) > form {
  display: none;
}
