/* 后台 · 简历访问 */
.rs-page { width: min(1080px, 100%); height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 80px; display: grid; align-content: start; gap: 20px; }
.rs-head h1 { font-size: 26px; font-weight: 600; }
.rs-head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.rs-head p b { color: var(--accent); }
.rs-panel { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); animation: rs-in 500ms cubic-bezier(.16, .84, .24, 1) both; }
.rs-panel:nth-of-type(2) { animation-delay: 60ms; } .rs-panel:nth-of-type(3) { animation-delay: 120ms; }
@keyframes rs-in { from { opacity: 0; transform: translateY(12px); } }
.rs-panel > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.rs-panel h2 { font-size: 17px; font-weight: 600; }
.rs-panel > header span { color: var(--muted); font-size: 13px; }
.rs-list { display: grid; }
.rs-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.rs-main { min-width: 0; display: grid; gap: 4px; }
.rs-main > b { font-weight: 600; font-size: 15px; display: inline; }
.rs-main p { color: var(--text); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.rs-main small { color: var(--muted); font-size: 12px; }
.rs-url { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px !important; color: var(--muted) !important; }
.rs-acts { display: flex; flex-wrap: wrap; gap: 8px; flex: none; justify-content: flex-end; }
.rs-chip { justify-self: start; display: inline-block; margin-left: 0; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: 1px; background: var(--raised); color: var(--muted); }
.rs-chip.st-pending { background: var(--accent); color: var(--surface); }
.rs-chip.st-ok { background: var(--accent-pale); color: var(--accent); }
.rs-chip.st-no { background: var(--raised); color: var(--faint); }
.rs-code { padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-pale); color: var(--text); font: 700 15px/1 ui-monospace, "SF Mono", monospace; letter-spacing: .14em; cursor: copy; }
.rs-link.off { opacity: .55; }
.rs-new { display: flex; gap: 8px; margin-bottom: 6px; }
.rs-new .input { flex: 1; min-width: 0; }
.rs-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rs-pages span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--raised); font-size: 12px; }
.rs-pages i { font-style: normal; color: var(--accent); font-weight: 600; }
.rs-time { flex: none; text-align: right; display: grid; gap: 2px; }
.rs-time b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-time small { color: var(--muted); font-size: 12px; }
.rs-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
@media (max-width: 680px) {
  .rs-list > li { flex-direction: column; align-items: stretch; }
  .rs-acts { justify-content: flex-start; }
  .rs-time { text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .rs-new { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .rs-panel { animation: none; } }

.rs-manage { margin-top: 10px; }
.rs-manage > summary { color: var(--accent); cursor: pointer; font-size: 13px; padding: 8px 0; }
.rs-link-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: var(--raised); border-radius: 10px; }
.rs-link-form label { display: grid; gap: 5px; color: var(--text); font-size: 13px; min-width: 0; }
.rs-link-form .input { width: 100%; min-width: 0; }
.rs-link-form textarea { min-height: 70px; resize: vertical; padding: 8px; }
.rs-link-form small { color: var(--muted); line-height: 1.4; }
.rs-link-form .rs-ip-field { grid-column: 1 / -1; }
.rs-link-form > button { justify-self: start; }
@media (max-width: 680px) { .rs-link-form { grid-template-columns: minmax(0, 1fr); } }

.rs-requests > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.rs-requests > summary::-webkit-details-marker { display: none; }
.rs-requests > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.rs-requests-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.rs-requests-title strong { font-size: 17px; font-weight: 600; }
.rs-requests-count, .rs-requests-description { color: var(--muted); font-size: 13px; }
.rs-requests-arrow { font-size: 22px; color: var(--muted); line-height: 1; transition: transform 180ms ease; }
.rs-requests[open] .rs-requests-arrow { transform: rotate(180deg); }
.rs-requests-description { margin: 2px 0 14px; }
@media (prefers-reduced-motion: reduce) { .rs-requests-arrow { transition: none; } }

/* 后台 · 账号（admin-accounts.js） */
.ac-owner { display: flex; align-items: center; gap: 14px; }
.ac-owner small, .ac-who small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ac-av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h, 200) 46% 90%); color: hsl(var(--h, 200) 38% 34%); font-weight: 600; }
.ac-av.owner { background: var(--accent); color: var(--surface); }
:root[data-theme="dark"] .ac-av:not(.owner) { background: hsl(var(--h) 22% 26%); color: hsl(var(--h) 45% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ac-av:not(.owner) { background: hsl(var(--h) 22% 26%); color: hsl(var(--h) 45% 82%); } }
.ac-help { margin: -4px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ac-help b { color: var(--text); }
.ac-q { width: 220px; height: 36px; }
.ac-list { display: grid; }
.ac-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.ac-row.off .ac-who { opacity: .55; }
.ac-row.new .ac-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
.ac-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-who > div { min-width: 0; }
.ac-who b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.ac-perms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: flex-end; }
.ac-p { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.ac-p > span { display: inline-flex; align-items: center; gap: 5px; }
.ac-p svg { width: 15px; height: 15px; }
.ac-sel { height: 34px; width: auto; min-width: 118px; padding: 0 28px 0 10px; font-size: 13.5px; }
.ac-sw { position: relative; }
.ac-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--control, #c9d2d9); transition: background-color 200ms ease; }
.ac-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: translate 240ms cubic-bezier(.16,.84,.24,1); }
.ac-sw input:checked + i { background: var(--accent); }
.ac-sw input:checked + i::after { translate: 16px 0; }
.ac-sw input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.ac-more { grid-column: 1 / -1; }
.ac-more summary { width: max-content; color: var(--accent); font-size: 13px; cursor: pointer; }
.ac-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 20px; margin: 12px 0 0; }
.ac-kv dt { color: var(--muted); font-size: 12px; }
.ac-kv dd { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ac-lt { margin: 14px 0 4px; color: var(--muted); font-size: 12px; }
.ac-logins { display: grid; gap: 2px; font-size: 12.5px; }
.ac-logins li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: 10px; color: var(--text); }
.ac-logins .mono { color: var(--muted); }
.ac-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ac-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .ac-row { grid-template-columns: minmax(0, 1fr); }
  .ac-perms { justify-content: flex-start; }
  .ac-q { width: 100%; }
  .ac-logins li { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
}
/* 收件箱协管看到的后台：只留收件箱，其余入口一律收起 */
.a-helper .a-side [data-nav]:not([data-nav="inbox"]):not([data-nav="starred"]):not([data-nav="archived"]),
.a-helper .a-side .group-label, .a-helper .a-side .share, .a-helper [data-nav="settings"], .a-helper [data-star], .a-helper [data-archive] { display: none !important; }
.meta-line .by { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.meta-line .by svg { width: 12px; height: 12px; }
/* 指定简历开放时间 */
.ac-range { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; background: var(--raised); animation: rs-in 360ms cubic-bezier(.16,.84,.24,1) both; }
.ac-range[hidden] { display: none; }
.ac-range-t { flex-basis: 100%; font-size: 13px; font-weight: 600; }
.ac-range label { display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; }
.ac-range input { height: 36px; min-width: 200px; }
.ac-range small { color: var(--faint); font-size: 11.5px; }
.ac-range-b { display: flex; gap: 8px; margin-bottom: 19px; }
@media (max-width: 720px) { .ac-range label, .ac-range input { width: 100%; min-width: 0; } .ac-range-b { margin-bottom: 0; } }
/* 每个账号的权限状态（服务器统一算出，和 TA 自己账号页上看到的一致） */
.ac-st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ac-st span { padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.ac-st .st-on { background: var(--accent-pale); color: var(--accent); box-shadow: none; font-weight: 600; }
.ac-st .st-scheduled { background: color-mix(in srgb, #d9a24a 16%, var(--surface)); color: #8a5a12; box-shadow: none; }
.ac-st .st-expired { color: var(--faint); }
.ac-plog li { grid-template-columns: 9.5em minmax(0, 1fr) 3em; }
