* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #10161d;
  --panel: #18212b;
  --line: #2c3845;
  --muted: #c2b9a7;
  --light: #edf3f5;
  --mint: #66debf;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font:
    14px/1.5 Inter,
    'Microsoft YaHei UI',
    'Microsoft YaHei',
    sans-serif;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
select,
input {
  border: 1px solid #554d40;
  border-radius: 6px;
  background: #262522;
  color: var(--light);
  padding: 8px 13px;
}
button {
  cursor: pointer;
}
button:hover,
button:focus-visible {
  border-color: var(--mint);
  color: var(--mint);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input:focus,
select:focus {
  outline: 2px solid var(--mint);
}
.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #211c13;
  font-weight: 650;
}
.primary:hover {
  background: #9aefd8;
  color: #211c13;
}
#shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #121212;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
}
.brand {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
}
.brand b {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #72dfc0;
  color: #153b33;
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
}
.navlabel {
  margin: 45px 12px 13px;
  color: #bdb4a1;
  font-size: 12px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: 1px solid transparent;
  text-align: left;
  padding: 10px 13px;
  color: #dfd7c8;
}
nav i {
  font:
    20px/1.1 'Segoe UI Symbol',
    sans-serif;
  width: 20px;
  text-align: center;
}
nav .selected {
  background: #393328;
  border-color: #786741;
  color: #f0d39c;
}
footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 17px 2px 0;
}
footer small,
.muted,
p,
small {
  color: var(--muted);
}
footer small {
  display: block;
}
footer strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#avatar {
  background: #4c463b;
  padding: 9px;
  border-radius: 50%;
}
footer button {
  margin-left: auto;
  font-size: 12px;
  padding: 5px;
  background: none;
}
main {
  min-width: 0;
}
header {
  padding: 0 3vw;
  height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
header strong {
  color: var(--light);
}
.content {
  padding: 32px 3vw;
  max-width: 1860px;
  margin: auto;
}
.title,
.sectionhead,
.actions,
.dialoghead,
.bar,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.title {
  margin-bottom: 24px;
}
h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.03em;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  margin: 5px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 0 0 20px;
}
.stat,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stat {
  padding: 18px 20px;
}
.stat small {
  display: block;
}
.stat b {
  font:
    600 34px/1.3 Inter,
    'Segoe UI',
    sans-serif;
  display: block;
  margin: 9px 0;
}
.stat em {
  font-size: 12px;
  color: var(--mint);
  font-style: normal;
}
.panel {
  margin-bottom: 18px;
}
.sectionhead,
.bar {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.sectionhead small {
  font-variant-numeric: tabular-nums;
}
.cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
.item {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.item:last-child {
  border: 0;
}
.item small {
  display: block;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 9px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: #cec2ac;
  background: #292723;
  font-weight: 500;
}
td button {
  padding: 4px 9px;
  font-size: 12px;
  margin: 2px;
}
.pill {
  display: inline-block;
  color: #87e2c6;
  background: #203b34;
  border-radius: 14px;
  padding: 3px 9px;
  font-size: 12px;
}
.off {
  background: #34313a;
  color: #d6beca;
}
.pager {
  justify-content: flex-end;
  padding: 13px 18px;
  color: var(--muted);
}
.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}
.bar input {
  width: min(290px, 50%);
}
#alert:not(:empty),
#formerr:not(:empty),
#loginerr:not(:empty) {
  padding: 10px 13px;
  background: #312c24;
  border-radius: 6px;
  margin: 10px 0;
  color: #f0e4cb;
}
dialog {
  border: 1px solid #554d40;
  border-radius: 13px;
  background: var(--panel);
  color: var(--light);
  padding: 0;
  width: min(470px, 94vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #060b12bc;
}
#editor,
#sign {
  padding: 24px;
}
label {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  color: #e8decd;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.dialoghead button {
  font-size: 20px;
  padding: 2px 9px;
}
.actions button {
  min-width: 75px;
}
#login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 18%, #20383c, transparent 55%), var(--bg);
}
#sign {
  width: min(390px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 32px;
}
#sign h1 {
  margin-top: 32px;
  font-size: 25px;
}
#sign .brand {
  padding: 0;
}
#sign .primary {
  width: 100%;
  margin-top: 9px;
}
progress {
  accent-color: var(--mint);
  width: 32%;
}
@media (max-width: 1000px) {
  #shell {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 20px;
  }
}
@media (max-width: 680px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 12px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  .navlabel,
  aside footer,
  #clock {
    display: none;
  }
  aside .brand {
    margin-bottom: 12px;
  }
  .title {
    align-items: flex-start;
  }
  header {
    height: 42px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
}

:root { --bg:#111111; --panel:#20201f; --line:#4b443a; --mint:#e4c786; --light:#f4efe4; }
aside { background:#191918; }
.brand { letter-spacing:.16em; }
.brand b { background:#e2c482; color:#201a10; font:700 16px/1 system-ui; letter-spacing:-1px; }
#login { background:linear-gradient(135deg,#111111,#1d1c19 65%,#2b261d); }
#sign { border-top:3px solid #d6b778; box-shadow:0 18px 60px #05050480; }
.primary:hover { background:#f0d699; }
