/* 服务端版增量样式（叠加在 styles.css 之上） */

.hidden { display: none !important; }

/* ---------- 文档库条目操作 ---------- */
.lib-acts {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity .12s;
  flex: 0 0 auto;
}

.lib-item:hover .lib-acts { opacity: 1; }

.lib-act {
  width: 22px; height: 22px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: var(--text-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background .12s, color .12s;
}

.lib-act:hover { background: #EDF0F5; color: var(--text); }
.lib-act.danger:hover { background: #FDE8E8; color: #D92D20; }

.lib-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--text-3);
  margin-left: 4px;
}

/* ---------- 上传进度面板 ---------- */
.uploads {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px -16px rgba(16, 24, 40, .35);
  z-index: 80;
  overflow: hidden;
}

.uploads-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  background: #FAFBFC;
}

.uploads-close {
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 15px; line-height: 1;
  width: 20px; height: 20px; border-radius: 5px;
}
.uploads-close:hover { background: #EDF0F5; color: var(--text); }

.uploads-body { max-height: 240px; overflow-y: auto; padding: 6px; }

.up-item { padding: 7px 8px; border-radius: 8px; }
.up-item + .up-item { margin-top: 2px; }
.up-item.done { opacity: .55; }
.up-item.fail .up-name { color: #D92D20; }

.up-name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}

.up-name span:last-child { font-size: 10.5px; color: var(--text-3); flex: 0 0 auto; }

.up-bar {
  height: 3px;
  margin-top: 6px;
  background: #EEF1F6;
  border-radius: 2px;
  overflow: hidden;
}

.up-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 2px;
  transition: width .15s linear;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-card {
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px -22px rgba(16, 24, 40, .35);
  padding: 30px 28px 26px;
  text-align: center;
}

.login-mark {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--brand-weak);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}

.login-card h1 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.login-card p { font-size: 12px; color: var(--text-3); margin: 0 0 20px; }

.login-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}

.login-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.login-btn {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

.login-btn:hover { background: var(--brand-hover); }
.login-btn:disabled { opacity: .6; cursor: default; }

.login-err {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #D92D20;
}

@media (max-width: 900px) {
  .uploads { left: 12px; right: 12px; width: auto; }
}
