body {
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
  font-family: Arial, "Microsoft YaHei", sans-serif
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr
}

.sider {
  background: #fff;
  border-right: 1px solid #eef2f7;
  padding: 22px 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  display: grid;
  place-items: center
}

.nav {
  display: grid;
  gap: 8px
}

.nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475467;
  font-size: 14px;
  cursor: pointer
}

.nav button.active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 600
}

.main {
  min-width: 0
}

.top {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px
}

.user {
  color: #667085
}

.content {
  padding: 28px
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 16px
}

.title h1 {
  margin: 0;
  font-size: 26px
}

.title p {
  margin: 8px 0 0;
  color: #667085
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px
}

.card,
.panel {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04)
}

.card {
  padding: 20px
}

.stat {
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px
}

.module {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.module h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.module p {
  margin: 0;
  color: #667085;
  line-height: 1.7
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px
}

.mini-stat {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04)
}

.mini-stat span {
  display: block;
  color: #667085;
  font-size: 13px
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 26px
}

.mini-stat.warn strong {
  color: #faad14
}

.mini-stat.ok strong {
  color: #52c41a
}

.mini-stat.off strong {
  color: #8c8c8c
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7
}

.panel-head h2 {
  margin: 0;
  font-size: 18px
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.input {
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  outline: none
}

.textarea {
  height: auto;
  min-height: 180px;
  padding: 10px;
  line-height: 1.7;
  resize: vertical
}

.select {
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  outline: none
}

.btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 8px;
  height: 34px;
  padding: 0 14px;
  cursor: pointer;
  color: #344054
}

.btn:hover {
  border-color: #1677ff;
  color: #1677ff
}

.btn.primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff
}

.btn.danger {
  color: #d92d20;
  border-color: #ffd6d6
}

.btn.danger:hover {
  background: #fff1f0;
  border-color: #ffccc7
}

.table-wrap {
  overflow: auto
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px
}

.table th,
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
  vertical-align: top
}

.table th {
  color: #667085;
  font-weight: 600;
  background: #fafafa
}

.content-table .content-title-cell {
  white-space: normal;
  min-width: 360px;
  max-width: 520px
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6
}

.meta-line {
  margin-top: 6px;
  color: #98a2b3;
  font-size: 12px
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #d9d9d9;
  background: #fff
}

.tag.ok {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f
}

.tag.warn {
  color: #ad6800;
  background: #fffbe6;
  border-color: #ffe58f
}

.tag.off {
  color: #8c8c8c;
  background: #fafafa
}

.muted {
  color: #98a2b3
}

.empty {
  padding: 38px;
  text-align: center;
  color: #98a2b3
}

.settings-panel {
  padding-bottom: 20px
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px
}

.setting-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 16px;
  background: #fbfdff
}

.setting-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #344054
}

.setting-item p {
  margin: 0;
  color: #98a2b3;
  line-height: 1.6
}

.switch {
  width: 42px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #1677ff
}

.error {
  max-width: 560px;
  margin: 18vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08)
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px
}

.modal {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid #eef2f7
}

.modal-head h2 {
  margin: 0 0 8px;
  font-size: 22px
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
  background: #fafafa
}

.detail-grid div {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px
}

.detail-grid span {
  display: block;
  color: #98a2b3;
  font-size: 12px
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #344054
}

.detail-section {
  padding: 18px 24px;
  border-top: 1px solid #f0f2f5
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 16px
}

.detail-section p {
  margin: 0;
  color: #475467;
  line-height: 1.8
}

.detail-section pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 14px;
  line-height: 1.8;
  font-family: Arial, "Microsoft YaHei", sans-serif
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid #eef2f7;
  background: #fafafa
}

@media(max-width:960px) {
  .layout {
    grid-template-columns: 1fr
  }

  .sider {
    display: none
  }

  .grid,
  .module,
  .mini-stats,
  .detail-grid,
  .settings-grid {
    grid-template-columns: 1fr
  }

  .title,
  .panel-head {
    display: block
  }

  .toolbar {
    margin-top: 12px
  }

  .actions {
    display: block
  }

  .actions .btn {
    margin: 0 6px 6px 0
  }
}

.user {
  display: flex;
  align-items: center;
  gap: 10px
}

.avatar-mini,
.avatar-medium,
.avatar-large {
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  background: #e6f4ff;
  color: #1677ff;
  border-radius: 50%;
  font-weight: 700;
  flex: 0 0 auto
}

.avatar-mini {
  width: 28px;
  height: 28px
}

.avatar-medium {
  width: 54px;
  height: 54px
}

.avatar-large {
  width: 104px;
  height: 104px;
  font-size: 34px
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px
}

.actions.wrap {
  flex-wrap: wrap;
  max-width: 300px
}

.dashboard-grid .card {
  min-height: 112px
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px
}

.quick-card {
  text-align: left;
  border: 1px solid #e4e7ec;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .03)
}

.quick-card:hover {
  border-color: #91caff;
  box-shadow: 0 12px 28px rgba(22, 119, 255, .10)
}

.quick-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px
}

.quick-card span {
  color: #667085;
  line-height: 1.6
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 8px 20px 18px
}

.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7
}

.timeline li:last-child {
  border-bottom: 0
}

.timeline span {
  color: #98a2b3
}

.account-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden
}

.account-aside {
  padding: 34px 24px;
  text-align: center;
  border-right: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfdff, #fff)
}

.account-aside h2 {
  margin: 18px 0 4px
}

.account-aside p {
  margin: 0 0 18px;
  color: #98a2b3
}

.upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}

.account-main {
  padding: 0 24px 24px
}

.panel-head.compact {
  padding: 22px 0 14px;
  border-bottom: 0
}

.password-head {
  margin-top: 18px;
  border-top: 1px solid #eef2f7
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 600
}

.account-form .input,
.modal-form .input,
.modal-form .select {
  height: 40px
}

.modal-form {
  padding: 22px 24px
}

.drawer {
  width: min(760px, calc(100vw - 48px))
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 8px;
  grid-template-columns: none !important
}

.panel-head.stack {
  display: block
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px
}

.url-cell {
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.users-table {
  min-width: 1200px
}

@media(max-width:1100px) {

  .quick-grid,
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .account-panel {
    grid-template-columns: 1fr
  }

  .account-aside {
    border-right: 0;
    border-bottom: 1px solid #eef2f7
  }

  .form-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:720px) {

  .quick-grid,
  .filter-grid {
    grid-template-columns: 1fr
  }

  .drawer {
    width: calc(100vw - 28px)
  }
}

.product-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f4f7;
  border: 1px solid #eef2f7;
  display: inline-grid;
  place-items: center;
  color: #98a2b3;
  font-size: 12px
}

.empty-cover {
  line-height: 64px;
  text-align: center
}

.commerce-table {
  min-width: 1180px
}

.commerce-table .content-title-cell {
  min-width: 300px
}

.commerce-table .actions.wrap {
  max-width: 220px
}