/* 复刻时新增的少量样式。原站这几处定位由 reka-ui / vue-sonner 的运行时样式表提供，
   没有打进抓下来的 index.css，其余全部沿用 assets/app.css。 */

.sidebar-scrim {
  background: rgba(16, 26, 43, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  position: fixed;
  inset: 0;
  z-index: 9;
}

/* <=900px 时 .desktop-sidebar 被隐藏，抽屉实例不带该类即可显示 */
.sidebar:not(.desktop-sidebar) {
  z-index: 10;
  overflow-y: auto;
}

/* app.css 里 .plugin-dropdown 只有外观，定位原本由 reka-ui 内联给出 */
.plugin-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
}

.plugin-dropdown [role='menuitem']:hover {
  background: #f5f5f7;
}

.stats-panel {
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding-top: 18px;
}

.panel-loading {
  color: #8d99aa;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

/* 原站这两个滚动视口的 overflow 由 reka-ui ScrollArea 内联注入，抓下来的 css 里没有，
   这里补回真实的滚动，并让它带上站内一致的细滚动条。 */
.content-scroll > .size-full {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #d2d2d7 transparent;
  scrollbar-width: thin;
}

.content-scroll > .size-full::-webkit-scrollbar {
  width: 6px;
}

.content-scroll > .size-full::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: 99px;
}

/* 深色侧栏里滚动条不可见，与原站一致 */
.sidebar-main-scroll > .size-full {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sidebar-main-scroll > .size-full::-webkit-scrollbar {
  display: none;
}

/* ---------- 登录 / 注册 / 找回密码 ----------
   原站这块走的是第三方 OIDC 页面，没有可复用的 class，
   所以按站内同一套 Apple 风 token（#0071e3 / #d2d2d7 / #f5f5f7 / Manrope）新写。 */
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 40px 20px 64px;
  background: #f5f5f7;
  grid-template-rows: 1fr auto;
}

.auth-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 44px rgba(16, 26, 43, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.auth-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #0a84ff, #0066cc);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.28);
  flex: none;
}

.auth-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #1d1d1f;
}

.auth-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #86868b;
  font-family: 'DM Mono', ui-monospace, monospace;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1d1d1f;
}

.auth-sub {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.65;
  color: #86868b;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
}

.auth-field input {
  height: 42px;
  width: 100%;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-field input::placeholder {
  color: #aeaeb2;
}

.auth-field input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.auth-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: #86868b;
  cursor: pointer;
}

.auth-toggle:hover {
  color: #0071e3;
}

.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  font-size: 15px;
}

.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ededf0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: #86868b;
}

.auth-foot a,
.auth-forgot {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}

.auth-foot a:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 0;
  font-size: 11px;
  color: #aeaeb2;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-card {
    border-radius: 18px;
    padding: 24px 20px 22px;
  }
}
