body.admin { background: #08080a; }
.login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card {
  width: min(360px, 100%); display: grid; gap: 14px;
  padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: #0e0e11;
}
.login-card h1 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.login-card input {
  background: #141417; border: 1px solid var(--line); color: var(--fg);
  padding: 11px 12px; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.login-card button {
  background: var(--accent); color: #0b0b0c; border: 0; padding: 11px;
  border-radius: 4px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.err { color: #ff7a7a; font-size: 13px; margin: 0; min-height: 18px; }

#panel { padding: 30px clamp(20px, 4vw, 48px) 60px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-head h1 { font-size: 20px; margin: 0; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.muted { color: var(--dim); font-size: 13px; }
.ghost {
  background: none; border: 1px solid var(--line); color: var(--fg);
  padding: 7px 14px; border-radius: 4px; font-size: 13px; cursor: pointer;
}
.ghost:hover { border-color: #33333a; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
thead th {
  text-align: left; padding: 12px 14px; color: var(--dim); font-weight: 500;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); background: #0d0d10;
}
tbody td { padding: 14px; border-bottom: 1px solid #141418; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.thumb-cell img { width: 64px; height: 36px; object-fit: cover; border-radius: 3px; background: #141417; }
.info-cell input, .info-cell textarea {
  width: 100%; background: #101012; border: 1px solid #1b1b20; color: var(--fg);
  padding: 7px 9px; border-radius: 3px; font-size: 13px; font-family: inherit; margin-bottom: 6px;
}
.info-cell .in-title { font-size: 15px; font-weight: 500; }
.row2 { display: flex; gap: 6px; }
.row2 input { width: auto; flex: 1; }
.in-slug { color: var(--dim); }
.status { font-size: 12px; padding: 3px 8px; border-radius: 3px; display: inline-block; }
.status.published { background: rgba(200,255,94,.14); color: var(--accent); }
.status.draft { background: #1a1a1f; color: var(--dim); }
.dur { color: var(--dim); font-variant-numeric: tabular-nums; }
.ops { display: flex; flex-direction: column; gap: 6px; }
.ops button {
  background: #141418; border: 1px solid #22222a; color: var(--fg);
  padding: 6px 10px; border-radius: 3px; font-size: 12px; cursor: pointer; text-align: left;
}
.ops button:hover { border-color: #3a3a44; }
.ops .save { border-color: #2f4a1d; color: var(--accent); }
.ops .del:hover { border-color: #5a2222; color: #ff7a7a; }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #16161a; border: 1px solid #2a2a32; color: var(--fg);
  padding: 10px 18px; border-radius: 4px; font-size: 13px; z-index: 60;
}

/* ---------- 右上角处理动态 ---------- */
.bell {
  position: relative; background: transparent; border: 1px solid #2a2a32; color: var(--dim);
  width: 34px; height: 29px; border-radius: 4px; cursor: pointer; font-size: 15px;
line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.bell:hover { color: var(--fg); border-color: #3a3a44; }
.bell-badge {
  position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px;
  background: #ff5c5c; color: #fff; font-size: 10.5px; line-height: 16px;
  border-radius: 8px; padding: 0 4px; font-weight: 600; text-align: center;
}
.jobs-pop {
  position: fixed; top: 62px; right: 22px; width: 330px; max-height: 400px; overflow-y: auto;
  background: #121216; border: 1px solid #2a2a32; border-radius: 6px; z-index: 70;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
}
.jobs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid #22222a; font-size: 13px; position: sticky; top: 0;
  background: #121216;
}
.ghost.mini { padding: 3px 8px; font-size: 11.5px; border-radius: 3px; }
.jobs-pop ul { list-style: none; margin: 0; padding: 4px 0; }
.jobs-item { padding: 9px 14px; border-bottom: 1px solid #1b1b22; }
.jobs-item:last-child { border-bottom: 0; }
.jobs-item.unread { background: #15151b; }
.jobs-t { font-size: 12.5px; color: var(--fg); word-break: break-all; }
.jobs-d { font-size: 11.5px; color: var(--dim); margin-top: 3px; word-break: break-all; }
.jobs-s { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; }
.st-done { background: #173d1b; color: #7ee08a; }
.st-failed { background: #3d1717; color: #ff8b8b; }
.st-run { background: #1b2a3d; color: #8ab8ff; }
.jobs-empty { padding: 18px 14px; color: var(--dim); font-size: 12px; margin: 0; }

[hidden] { display: none !important; }
