:root[data-view=recruitment] body:has(.recruit-archive)::before { opacity: clamp(0, calc(var(--texture-opacity, .055) * 2), .32); }
.recruit-archive {
  --ra-focus: var(--accent);
  --ra-active: color-mix(in srgb, var(--ra-focus) 13%, var(--surface));
  --ra-paper: color-mix(in srgb, var(--surface) 92%, transparent);
  --ra-columns: minmax(150px, 1.48fr) minmax(40px, .42fr) minmax(40px, .42fr) minmax(68px, .68fr) minmax(100px, .95fr) minmax(116px, 1.25fr) minmax(125px, 1.5fr) 16px;
  color: var(--ink);
}
[data-skin=bloom] .recruit-archive {
  --ra-focus: var(--purple);
  --ra-active: color-mix(in srgb, var(--purple) 19%, var(--surface));
}
.recruit-archive h2, .recruit-archive p { margin: 0; }
.ra-progress, .ra-stage, .ra-controls, .ra-search, .ra-sort, .ra-person, .ra-detail-links {
  display: flex; align-items: center;
}
.ra-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ra-route {
  display: flex; align-items: center; justify-content: flex-end; position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(64px, 5.4vw, 86px); padding: 10px clamp(12px, 1.8vw, 30px) 10px 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--ra-paper);
  font: 700 clamp(16px, 1.55vw, 25px)/1.25 var(--sans); letter-spacing: .07em;
}
.ra-route img { position: absolute; left: 2%; top: 0; width: 56%; height: 100%; z-index: -1; object-fit: cover; object-position: center 43%; }
.ra-route span { padding: 3px 0 3px 5px; text-shadow: 0 1px 6px var(--surface); }
.ra-route:hover, .ra-route:focus-visible { border-color: var(--ra-focus); }
.ra-route[aria-pressed=true] { background: var(--ra-active); border-color: var(--ra-focus); box-shadow: inset 0 0 0 1px var(--ra-focus); }
.ra-progress { gap: 16px; margin: 16px 0 23px; }
.ra-progress::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.ra-stage { padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--ra-paper); }
.ra-stage button { border: 0; background: transparent; border-radius: inherit; padding: 5px clamp(18px, 2.4vw, 38px); line-height: 1.45; font-weight: 600; color: var(--muted); }
.ra-stage button[aria-pressed=true] { background: var(--ra-focus); color: var(--on-accent); }
.ra-layout { display: grid; grid-template-columns: clamp(142px, 12vw, 182px) minmax(0, 1fr); gap: clamp(16px, 2.3vw, 38px); align-items: start; }
.ra-directory { position: sticky; top: calc(var(--shell-height, 100px) + 12px); max-height: calc(100dvh - var(--shell-height, 100px) - 24px); overflow-y: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 9px; background: var(--ra-paper); padding: 14px 0 12px; }
.ra-directory h2 { font: 700 1.48rem/1.4 var(--sans); letter-spacing: .07em; margin: 0 14px 9px; padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
.ra-dir-options { display: grid; }
.ra-dir-options button { display: flex; align-items: baseline; gap: 6px; justify-content: space-between; width: calc(100% - 20px); margin: 0 10px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); background: transparent; padding: 7px 7px; color: var(--ink); text-align: left; font: 600 1.17rem/1.4 var(--sans); }
.ra-dir-options button:last-child { border-bottom-color: transparent; }
.ra-dir-options button small { font: .72rem/1.2 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.ra-dir-options button:hover:not(:disabled) { background: var(--soft); }
.ra-dir-options button[aria-pressed=true] { background: var(--ra-active); border-radius: 0 5px 5px 0; box-shadow: inset 3px 0 var(--ra-focus); width: 100%; margin: 0; padding-inline: 17px; border-bottom-color: transparent; }
.ra-content { min-width: 0; }
.ra-controls { gap: 1.2rem; }
.ra-search { flex: 1; min-width: 0; gap: 9px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--ra-paper); border-radius: 99px; color: var(--muted); }
.ra-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.ra-search:focus-within { border-color: var(--ra-focus); }
.ra-search input { width: 100%; height: 100%; background: transparent; border: 0; padding: 0; font-size: .94rem; }
.ra-search input:focus { outline: 0; }
.ra-search input::placeholder { color: var(--muted); }
.ra-sort { gap: 8px; color: var(--muted); font-size: .9rem; }
.ra-sort select { padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.ra-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 7px 3px 11px !important; color: var(--muted); font-size: .8rem; }
.ra-heading-row, .ra-row > summary { display: grid; grid-template-columns: var(--ra-columns); align-items: center; gap: 8px; padding-inline: 9px; }
.ra-heading-row { position: sticky; top: var(--shell-height, 100px); z-index: 1; min-height: 31px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 1.03rem; font-weight: 600; color: var(--muted); }
.ra-heading-row > span:nth-child(2), .ra-heading-row > span:nth-child(3), .ra-heading-row > span:nth-child(4), .ra-fame, .ra-support, .ra-difficulty { text-align: center; }
.ra-group { margin: 0 0 9px; }
.ra-group-title { display: flex; align-items: center; gap: 8px; padding: 4px 9px; border-block: 1px solid var(--line); background: var(--soft); }
.ra-group-title::before { content: ""; width: 3px; align-self: stretch; background: var(--accent); }
.ra-group-title h2 { font: 700 1.2rem/1.4 var(--sans); letter-spacing: .035em; }
.ra-group-title small { margin-left: auto; color: var(--muted); font-size: .73rem; }
.ra-row { background: color-mix(in srgb, var(--surface) 76%, transparent); border-bottom: 1px solid var(--line); }
.ra-row > summary { position: relative; min-height: 49px; list-style: none; cursor: pointer; font-size: 1.13rem; line-height: 1.45; }
.ra-row > summary::-webkit-details-marker { display: none; }
.ra-row > summary:hover { background: color-mix(in srgb, var(--ra-active) 53%, transparent); }
.ra-row[open] { background: color-mix(in srgb, var(--ra-active) 82%, var(--surface)); border-radius: 7px; outline: 1px solid var(--ra-focus); outline-offset: -1px; }
.ra-row > summary:focus-visible { outline-offset: -2px; }
.ra-person { min-width: 0; gap: 9px; }
.ra-person img { flex-shrink: 0; width: 67px; height: 47px; object-fit: cover; object-position: 50% 26%; border-radius: 3px; }
.ra-person strong { font-size: 1.23rem; }
.ra-cell { min-width: 0; overflow-wrap: anywhere; }
.ra-cell-label { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; }
.ra-fame, .ra-support { font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.ra-chip { --chip: var(--muted); display: inline-block; min-width: min(5em, 100%); border: 1px solid color-mix(in srgb, var(--chip) 52%, var(--line)); border-radius: 100px; padding: 1px 8px; background: color-mix(in srgb, var(--chip) 17%, var(--surface)); color: var(--ink); font-size: 1rem; white-space: nowrap; }
.ra-chip[data-value="中"] { --chip: var(--gold); }
.ra-chip[data-value="高"] { --chip: var(--red); }
.ra-chip[data-value="无需"] { --chip: var(--purple); }
.ra-chip[data-value="低"] { --chip: var(--green); }
.ra-chip[data-value="超高"] { border-color: #4b75b6; background: #dceaff; color: #183f78; font-weight: 650; }
:is([data-skin=bloom], [data-skin=astral]) .ra-chip[data-value="超高"] { border-color: #729fe6; background: #244575; color: #e7f1ff; }
.ra-brief { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ra-ref { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.ra-ref:hover, .ra-ref:focus-visible { color: var(--accent); }
.ra-ref-icon { display: inline-block; width: 1.15em; height: 1.15em; margin-inline: .1em .18em; vertical-align: -.2em; color: var(--accent); }
.ra-ref-icon :is(img, svg, .portrait, .entity-icon-fallback) { display: block; width: 100%; height: 100%; object-fit: contain; }
.ra-ref-icon .entity-icon-fallback { background: none; border: 0; }
.ra-arrow { width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); }
.ra-row[open] .ra-arrow { color: var(--ra-focus); transform: rotate(-90deg); }
.ra-details { margin: 0 10px; border-top: 1px solid var(--line); padding: 13px 6px; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.ra-details p + p { margin-top: 4px; }
.ra-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ra-steps > b { flex: none; color: var(--ink); }
.ra-steps ol { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; gap: 5px 10px; padding: 0; margin: 0; list-style: none; }
.ra-steps li { flex: 1; display: flex; align-items: center; gap: 10px; }
.ra-steps li + li::before { content: "→"; color: var(--ra-focus); }
.ra-steps li > span { flex: 1; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line)); border-radius: 7px; padding: 5px 8px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ra-steps li:last-child > span { border-color: var(--ra-focus); background: var(--ra-active); font-weight: 650; }
.ra-source { color: var(--muted); font-size: .9rem; }
.ra-source > summary { cursor: pointer; width: fit-content; }
.ra-source[open] > summary { margin-bottom: 6px; }
.ra-source p { color: var(--ink); }
.ra-detail-links { gap: 16px; flex-wrap: wrap; margin-top: 7px; }
.ra-detail-links a { color: var(--ink); border-bottom: 1px solid var(--ra-focus); font-size: .83rem; }
.ra-detail-links svg { width: 12px; height: 12px; vertical-align: -.1em; }
.ra-empty { padding: 28px 16px; border: 1px solid var(--line); border-radius: 8px; text-align: center; color: var(--muted); background: var(--ra-paper); }
.ra-salvation { --ra-columns: minmax(142px, 1fr) minmax(105px, .86fr) minmax(125px, 1.25fr) minmax(150px, 1.4fr) 16px; }
.ra-salvation .ra-heading-row > span { text-align: left; }
@media (max-width: 1120px) {
  .ra-layout { grid-template-columns: 135px minmax(0, 1fr); gap: 14px; }
  .recruit-archive { --ra-columns: minmax(118px, 1.2fr) 35px 35px 66px minmax(78px, .85fr) minmax(80px, 1fr) minmax(85px, 1fr) 12px; }
  .ra-person { gap: 6px; }
  .ra-person img { width: 42px; height: 38px; }
}
@media (max-width: 900px) {
  .ra-layout { display: block; }
  .ra-directory { position: static; max-height: none; display: flex; align-items: center; gap: 10px; border: 0; border-block: 1px solid var(--line); padding: 7px 0; border-radius: 0; background: transparent; margin: 0 0 12px; }
  .ra-directory h2 { flex: none; font-size: .96rem; margin: 0; padding: 0 8px 0 0; border: 0; border-right: 1px solid var(--line); }
  .ra-dir-options { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
  .ra-dir-options button, .ra-dir-options button[aria-pressed=true] { flex: none; width: auto; margin: 0; padding: 6px 9px; border: 0; border-radius: 4px; font-size: .92rem; white-space: nowrap; }
  .ra-dir-options button[aria-pressed=true] { box-shadow: inset 0 -2px var(--ra-focus); }
  .ra-dir-options button small { display: none; }
}
@media (max-width: 740px) {
  .ra-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ra-route { min-height: 53px; padding-right: 11px; border-radius: 7px; }
  .ra-progress { gap: 8px; margin: 11px 0 14px; }
  .ra-search { height: 36px; padding-inline: 10px; }
  .ra-controls { gap: 8px; }
  .ra-sort > span { display: none; }
  .ra-sort select { padding: 7px 4px; max-width: 10em; }
  .ra-heading-row { display: none; }
  .ra-row > summary { font-size: 1rem; }
  .ra-chip { min-width: 3em; font-size: .86rem; }
  .ra-hint { margin: 6px 0 9px !important; }
  .ra-group { margin-bottom: 12px; }
  .ra-group-title { min-height: 31px; }
  .ra-row > summary { grid-template-columns: minmax(95px, 1.25fr) repeat(2, minmax(30px, .42fr)) minmax(53px, .65fr) 13px; gap: 6px; padding: 8px; }
  .ra-cell-label { position: static; display: inline; clip-path: none; width: auto; height: auto; color: var(--muted); font: .74rem/1.3 var(--sans); }
  .ra-fame .ra-cell-label, .ra-support .ra-cell-label, .ra-difficulty .ra-cell-label { display: block; }
  .ra-person img { width: 37px; height: 37px; }
  .ra-person strong { font-size: .98rem; }
  .ra-row .ra-arrow { grid-column: -2; grid-row: 1; }
  .ra-appearance, .ra-join, .ra-method, .ra-route-scope { display: flex; align-items: baseline; gap: 6px; font-size: .87rem; }
  .ra-appearance { grid-column: 1 / 3; }
  .ra-join { grid-column: 3 / -1; }
  .ra-method { grid-column: 1 / -1; }
  .ra-cell-label { flex-shrink: 0; }
  .ra-brief { -webkit-line-clamp: 2; }
  .ra-salvation .ra-row > summary { grid-template-columns: minmax(98px, .95fr) minmax(100px, 1.1fr) 13px; }
  .ra-salvation .ra-method { grid-column: 2; }
  .ra-salvation .ra-join, .ra-salvation .ra-route-scope { grid-column: 1 / -1; }
  .ra-steps { align-items: stretch; flex-direction: column; gap: 7px; }
  .ra-steps ol { flex-direction: column; }
  .ra-steps li + li::before { content: none; }
  .ra-steps li > span { text-align: left; }
}
@media (max-width: 380px) {
  .ra-stage button { padding-inline: 12px; }
  .ra-appearance, .ra-join { grid-column: 1 / -1; }
}
.ra-window { border-left: 2px solid var(--ra-focus); padding-left: 10px; margin: 9px 0; }
.ra-window strong { font-weight: 600; }
.ra-row[open] .ra-brief { display: block; overflow: visible; }
