:root {
  --catbook-ink: #101828;
  --catbook-text: #253044;
  --catbook-muted: #667085;
  --catbook-line: #d9e2ec;
  --catbook-blue: #1769e0;
  --catbook-blue-deep: #0d47a1;
  --catbook-blue-soft: #e8f1ff;
  --catbook-nav: #172033;
  --catbook-nav-2: #243149;
  --catbook-soft: #f4f7fb;
  --catbook-green: #1a7f64;
}

html[data-catbook-shell="enabled"] body {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(16, 24, 40, .035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 40, .035) 1px, transparent 1px),
    #f4f7fb;
  background-size: 34px 34px;
  color: var(--catbook-text);
}

html[data-catbook-shell="enabled"] button,
html[data-catbook-shell="enabled"] .btn,
html[data-catbook-shell="enabled"] [role="button"],
html[data-catbook-shell="enabled"] input,
html[data-catbook-shell="enabled"] textarea,
html[data-catbook-shell="enabled"] select {
  border-radius: 6px;
}

.catbook-shell-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #fff;
  letter-spacing: 0;
}

.catbook-shell-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--catbook-blue-deep);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.catbook-shell-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catbook-shell-copy strong {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 850;
}

.catbook-shell-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-catbook-route="console"] body {
  background: #f3f6fa;
}

html[data-catbook-route="console"] .sidebar {
  width: 17.5rem;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(23, 105, 224, .28), rgba(23, 105, 224, 0) 34%),
    var(--catbook-nav);
  color: #fff;
  box-shadow: 12px 0 28px rgba(16, 24, 40, .12);
}

html[data-catbook-route="console"] .sidebar-header {
  height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 0 22px;
}

html[data-catbook-route="console"] .sidebar-nav {
  padding: 18px 14px 22px;
}

.catbook-shell-side-note {
  margin: 0 4px 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
}

.catbook-shell-side-note strong,
.catbook-shell-side-note span {
  display: block;
}

.catbook-shell-side-note strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 820;
}

.catbook-shell-side-note span {
  font-size: 12px;
  line-height: 1.55;
}

html[data-catbook-route="console"] .sidebar-section-title {
  color: rgba(255, 255, 255, .45);
  letter-spacing: .05em;
}

html[data-catbook-route="console"] .sidebar-link {
  min-height: 42px;
  border-radius: 7px;
  color: rgba(255, 255, 255, .78);
}

html[data-catbook-route="console"] .sidebar-link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

html[data-catbook-route="console"] .sidebar-link-active,
html[data-catbook-route="console"] .router-link-active {
  background: #fff;
  color: var(--catbook-blue-deep);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

@media (min-width: 1024px) {
  html[data-catbook-route="console"] .lg\:ml-64 {
    margin-left: 17.5rem;
    padding-top: 74px;
  }
}

.catbook-console-chrome {
  position: fixed;
  top: 0;
  right: 0;
  left: 17.5rem;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--catbook-line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  backdrop-filter: blur(10px);
}

.catbook-console-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catbook-console-title strong {
  color: var(--catbook-ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.catbook-console-kicker {
  color: var(--catbook-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 760;
}

.catbook-console-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catbook-console-actions a,
.catbook-console-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c8d7e8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.catbook-console-actions a:hover {
  border-color: #9fb9da;
  color: var(--catbook-blue-deep);
}

.catbook-console-status {
  border-color: #b9e2d3;
  background: #effaf5;
  color: var(--catbook-green);
}

.catbook-console-status i {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

html[data-catbook-route="console"] main,
html[data-catbook-route="console"] [class*="content"],
html[data-catbook-route="console"] [class*="Content"] {
  scroll-margin-top: 90px;
}

html[data-catbook-route="console"] .catbook-console-chrome + * {
  padding-top: 84px;
}

html[data-catbook-route="console"] .card,
html[data-catbook-route="console"] [class*="card"],
html[data-catbook-route="console"] [class*="Card"],
html[data-catbook-route="console"] table,
html[data-catbook-route="console"] [class*="table"],
html[data-catbook-route="console"] [class*="Table"] {
  border-color: var(--catbook-line);
}

html[data-catbook-route="console"] .tabs,
html[data-catbook-route="console"] [class*="tabs"],
html[data-catbook-route="console"] [class*="Tabs"] {
  border-radius: 7px;
}

html[data-catbook-route="login"] body,
html[data-catbook-route="register"] body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 105, 224, .14), transparent 28%),
    linear-gradient(90deg, rgba(16, 24, 40, .04) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 40, .04) 1px, transparent 1px),
    #f4f7fb;
  background-size: auto, 32px 32px, 32px 32px;
}

.catbook-auth-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: min(42vw, 520px);
  min-width: 360px;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  background:
    linear-gradient(180deg, rgba(23, 105, 224, .3), rgba(23, 105, 224, 0) 42%),
    var(--catbook-nav);
  color: #fff;
}

.catbook-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  font-size: 19px;
  font-weight: 850;
}

.catbook-auth-panel h1 {
  max-width: 420px;
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 880;
  letter-spacing: 0;
}

.catbook-auth-panel p {
  max-width: 430px;
  margin: 18px 0 26px;
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
  line-height: 1.8;
}

.catbook-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catbook-auth-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 720;
}

html[data-catbook-route="login"] #app,
html[data-catbook-route="register"] #app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  margin-left: min(42vw, 520px);
}

html[data-catbook-route="login"] #app input,
html[data-catbook-route="register"] #app input {
  border-color: #cbd7e6;
  background: #fff;
}

html[data-catbook-route="login"] #app button,
html[data-catbook-route="register"] #app button {
  min-height: 40px;
}

@media (max-width: 900px) {
  html[data-catbook-route="console"] .sidebar {
    width: 15.5rem;
  }

  html[data-catbook-route="console"] .lg\:ml-64 {
    margin-left: 15.5rem;
    padding-top: 126px;
  }

  .catbook-console-chrome {
    left: 15.5rem;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .catbook-auth-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 260px;
    padding: 34px 24px;
  }

  html[data-catbook-route="login"] #app,
  html[data-catbook-route="register"] #app {
    margin-left: 0;
  }
}
