:root {
  --brand: #467cf3;
  --blue: #3468d7;
  --ink: #1b2a41;
  --muted: #647387;
  --line: #dfe5ec;
  --bg: #f4f6f9;
  --tint: #edf3ff;
  --sidebar: 202px;
  color-scheme: light;
  font-family:
    Inter,
    'PingFang SC',
    'Microsoft YaHei',
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a,
.link {
  color: var(--blue);
  text-decoration: none;
}
.link {
  background: none;
  border: 0;
  padding: 0;
}
a:hover,
.link:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 670;
  line-height: 1.27;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8fb1ff;
  outline-offset: 2px;
}
.frame {
  min-height: 100vh;
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  width: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  z-index: 10;
}
.brand {
  height: 83px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 670;
  letter-spacing: -0.6px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 33px;
  height: 33px;
}
.navgroup {
  display: grid;
  gap: 6px;
  margin-top: 19px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 43px;
  padding: 0 13px;
  border-radius: 7px;
  color: #526276;
  font-weight: 530;
  white-space: nowrap;
}
.navitem svg,
.top svg,
.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.navitem:hover {
  background: #f4f6fa;
  text-decoration: none;
}
.navitem.current {
  color: #2d63d4;
  background: #eaf1ff;
  font-weight: 640;
}
.sfoot {
  margin-top: auto;
  padding: 15px 0 19px;
  border-top: 1px solid var(--line);
}
.top {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 48px);
  font-size: 12px;
  color: #617189;
}
.top .crumb {
  display: flex;
  align-items: center;
  gap: 11px;
}
.top .crumb svg {
  width: 15px;
  height: 15px;
}
.top strong {
  color: var(--ink);
  font-weight: 560;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0f5ff;
  color: #416cb8;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
}
.mode:before {
  content: '';
  height: 6px;
  width: 6px;
  background: #5986e9;
  border-radius: 50%;
}
.main {
  margin-left: var(--sidebar);
  min-width: 0;
}
.content {
  max-width: 1610px;
  margin: 0 auto;
  padding: 27px clamp(16px, 2.6vw, 44px) 48px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 22px;
}
.kicker {
  color: #5c7194;
  font-size: 12px;
  letter-spacing: 0.035em;
  margin-bottom: 5px;
}
.menu-btn,
.icon-only {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: var(--muted);
}
.menu-btn {
  display: none;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  min-width: 0;
}
.panel + .panel {
  margin-top: 14px;
}
.panel-head,
.panel-body {
  padding: 16px 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9edf2;
}
.panel-head h2,
.panel-head h3 {
  font-size: 16px;
}
.toolbar,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.toolbar {
  padding: 14px 17px;
}
.actions {
  justify-content: flex-end;
}
.btn,
.primary,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.4;
  border: 1px solid #d6dee8;
  background: #fff;
  color: #394962;
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 520;
  font-size: 13px;
}
.btn:hover {
  background: #f6f8fb;
  text-decoration: none;
}
.btn.primary,
.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.btn.primary:hover,
.primary:hover {
  background: #376cdd;
}
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  padding: 2px 8px;
  background: #eef3f9;
  color: #50617c;
  border-radius: 5px;
}
.tabs {
  gap: 3px;
  margin-bottom: 14px;
}
.tabs button,
.tabs > a {
  border: 0;
  border-radius: 5px;
  padding: 6px 12px;
  background: transparent;
  color: #586a82;
}
.tabs .active {
  background: #e8effe;
  color: #3061bf;
}
.empty {
  padding: 25px 18px;
  text-align: center;
  color: #758399;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid #e9edf2;
  vertical-align: middle;
}
th {
  color: #637187;
  font-size: 12px;
  font-weight: 550;
  background: #f8fafc;
}
tr:last-child td {
  border-bottom: 0;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  border: 1px solid #d5dde8;
  border-radius: 6px;
  background: white;
  padding: 7px 10px;
  min-width: 0;
  max-width: 100%;
}
input[type='checkbox'] {
  accent-color: var(--brand);
}
textarea {
  min-height: 75px;
  resize: vertical;
}
.field {
  display: grid;
  align-content: start;
  gap: 5px;
  font-size: 13px;
}
.field > span:first-child,
.field > label {
  color: #526078;
}
.form-grid,
.detail-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.detail-grid dt {
  font-size: 12px;
  color: var(--muted);
}
.detail-grid dd {
  overflow-wrap: anywhere;
}
.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.overview-grid > .panel {
  margin: 0;
}
.files {
  margin-top: 18px;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.files .panel-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.login {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse at 52% 32%, #eaf1ff 0, transparent 58%), var(--bg);
}
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 60px #1a3c6810;
  padding: 36px;
  width: min(395px, 100%);
}
.login-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.login-card h1 {
  font-size: 27px;
  margin: 0 0 23px;
}
.login-card .wide {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
}
.remember {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #5d6b7d;
  margin-top: 11px;
}
.error {
  color: #b34037;
  font-size: 13px;
  margin-top: 8px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.settings-grid > .panel {
  margin: 0;
}
.settings-grid .field {
  margin-bottom: 10px;
}
.settings-grid .actions {
  margin-top: 13px;
}
.settings-grid p {
  margin: 8px 0;
}
.settings-grid .fact {
  font-size: 13px;
  color: #54657e;
}
.settings-grid .fact b {
  color: var(--ink);
}
.settings-grid pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7fa;
  padding: 10px;
  font-size: 12px;
}
.settings-grid details {
  margin-top: 10px;
}
.settings-grid summary {
  cursor: pointer;
}
#notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 7px;
  background: #23354e;
  color: #fff;
  max-width: 90vw;
  padding: 10px 18px;
  z-index: 50;
  box-shadow: 0 5px 20px #1d314033;
}
#notice:empty {
  display: none;
}
.scrim {
  display: none;
}
@media (max-width: 1020px) {
  :root {
    --sidebar: 176px;
  }
  .side {
    padding-inline: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .content {
    padding-inline: 18px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .main {
    margin: 0;
  }
  .side {
    transform: translateX(-100%);
    transition: transform 0.16s;
    width: 215px;
  }
  .frame.open .side {
    transform: translateX(0);
  }
  .frame.open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #15243755;
    border: 0;
    z-index: 9;
    width: 100%;
  }
  .menu-btn {
    display: inline-flex;
  }
  .top {
    min-height: 48px;
    padding: 0 13px;
  }
  .top-right > time {
    display: none;
  }
  .top-right {
    gap: 6px;
  }
  .top .crumb {
    gap: 7px;
  }
  .content {
    padding: 17px 12px 30px;
  }
  .page-heading {
    margin-bottom: 14px;
  }
  .form-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select,
  .field textarea {
    width: 100%;
  }
  .panel-head,
  .panel-body {
    padding: 13px;
  }
  .toolbar {
    padding: 12px;
  }
  .detail-grid {
    gap: 10px;
  }
  .login-card {
    padding: 26px;
  }
  h1 {
    font-size: 25px;
  }
  .settings-grid {
    gap: 12px;
  }
}
.rights-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0;
  border-bottom: 1px solid #edf0f4;
}
.settings-grid hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.overview-grid + .panel {
  margin-top: 14px;
}
