:root {
  --el-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --el-color-primary: #2e69ca;
  --el-color-primary-rgb: 0, 113, 227;
  --el-color-primary-light-3: #398ce0;
  --el-color-primary-light-5: #73afea;
  --el-color-primary-light-7: #a9cef4;
  --el-color-primary-light-8: #cde3f9;
  --el-color-primary-light-9: #eaf4ff;
  --el-color-primary-dark-2: #2458a9;
  --el-text-color-primary: #1d1d1f;
  --el-text-color-regular: #424245;
  --el-text-color-secondary: #626267;
  --el-border-color: #d2d2d7;
  --el-border-color-light: #dedee2;
  --el-border-color-lighter: #ededf0;
  --el-fill-color-light: #f2f2f4;
  --el-border-radius-base: 10px;
}

body {
  margin: 0;
  background: #f2f2f4;
  color: var(--el-text-color-primary);
  font-family: var(--el-font-family);
  -webkit-font-smoothing: antialiased;
}

#app #container:has(.login-form) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: auto;
  min-height: 100vh;
  padding: 28px 16px;
  background: radial-gradient(ellipse at 50% 0%, #e2edfb, transparent 62%), #f2f2f4;
}

#app .login-form {
  box-sizing: border-box;
  width: min(100%, 480px);
  max-width: none;
  padding: clamp(24px, 5vw, 52px);
  background: #fff;
  border: 1px solid #ededf0;
  border-radius: 10px;
  box-shadow: 0 20px 70px #172d4714;
}

#app .login-form .title {
  margin-bottom: 36px;
  color: #1d1d1f;
  font: 700 clamp(24px, 4vw, 36px)/1.16 var(--el-font-family);
  letter-spacing: -.035em;
}

#app .login-form .el-input__wrapper { min-height: 40px; }
#app .login-form .button { width: auto; min-width: 80px; }

#app .common-layout .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(16px, 3vw, 36px);
  background: #fff;
  border-bottom: 1px solid #dedee2;
}

#app .header #title {
  color: #1d1d1f;
  font: 650 clamp(16px, 2vw, 23px)/1.25 var(--el-font-family);
  letter-spacing: -.025em;
}

#app #right_tool { flex-shrink: 0; font-size: 13px; }
#app #right_tool > a { color: #424245; }
#app #right_tool > a:hover { color: #0066cc; }

#app .common-layout .aside {
  box-sizing: border-box;
  width: clamp(160px, 19vw, 220px);
  height: auto;
  min-height: calc(100vh - 60px);
  background: #fff;
  border: 0;
  border-right: 1px solid #dedee2;
}

#app .aside .el-menu {
  padding: 10px 8px;
  border-right: 0;
}

#app .aside .el-menu .el-menu { padding-block: 2px; }

#app .aside :is(.el-menu-item, .el-sub-menu__title) {
  min-width: 0;
  height: 44px;
  margin-block: 3px;
  border-radius: 10px;
  line-height: 44px;
}

#app .aside :is(.el-menu-item, .el-sub-menu__title):hover { background: #f2f2f4; }
#app .aside .el-menu-item.is-active { background: #eaf4ff; color: #2458a9; font-weight: 600; }

#app .el-main {
  min-width: 0;
  padding: clamp(16px, 3vw, 36px);
  background: #f2f2f4;
}

#app .el-main #title {
  color: #1d1d1f;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.035em;
}

#app .el-main > img { max-width: 100%; height: auto; border-radius: 10px; }

.el-button { border-radius: 8px; }

.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #2e69ca inset, 0 0 0 3px #2e69ca24;
}

:is(a, button, .el-menu-item, .el-sub-menu__title):focus-visible {
  outline: 2px solid #2e69ca;
  outline-offset: 2px;
}

.el-table {
  --el-table-header-bg-color: #fafafc;
  --el-table-header-text-color: #424245;
  --el-table-row-hover-bg-color: #f5f8fc;
  border-radius: 8px;
}

.el-table th.el-table__cell { font-weight: 600; }

.el-dialog, .el-message-box {
  border-radius: 10px;
  box-shadow: 0 20px 64px #1d1d1f26;
}

@media (max-width: 600px) {
  #app .common-layout > .el-container { flex-direction: column; }
  #app .common-layout .aside {
    width: 100%;
    min-height: 0;
    max-height: 35vh;
    border-right: 0;
    border-bottom: 1px solid #dedee2;
  }
}

/* Editorial layout drawn from the blog homepage. */
#app #container:has(.login-form) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-content: center;
  gap: clamp(32px, 7vw, 104px);
  padding: clamp(24px, 6vw, 96px);
  background: #f2f2f4;
}

#app .login-intro {
  width: 100%;
  padding-block: 24px 38px;
  border-bottom: 1px solid #d8d8dc;
}

#app .login-intro h1 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

#app .login-intro p {
  margin: 24px 0 0;
  color: #626267;
  line-height: 1.7;
}

#app .login-form {
  padding: clamp(22px, 4vw, 38px);
  border-color: #dedee2;
  box-shadow: none;
}

#app .login-form .title {
  margin-bottom: 24px;
  text-align: left;
  font-size: 24px;
}

#app .common-layout .header { background: #fafafa; }
#app .header #title { font-size: 16px; }
#app .common-layout .aside { background: #fafafa; }
#app .aside .el-menu { background: transparent; }
#app .el-main { padding: clamp(22px, 4vw, 56px); }
#app .el-main #title { letter-spacing: -.045em; }
#app .el-table { border: 1px solid #dedee2; }

@media (max-width: 760px) {
  #app #container:has(.login-form) {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  #app .login-intro { max-width: 480px; }
}

#app .login-form .title { font-size: clamp(17px, 2.2vw, 22px); }
