.staff-identity-reviews, .staff-stock-check { display: grid; gap: 24px; min-width: 0; }
.staff-review-intro, .staff-stock-source, .staff-stock-result { min-width: 0; }
.staff-review-intro, .staff-stock-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.staff-review-intro { padding-bottom: 22px; border-bottom: 1px solid var(--sl-border); }
.staff-review-intro h2, .staff-stock-source h2, .staff-stock-result h2 { margin: 0; color: var(--sl-ink); font-size: 19px; font-weight: 700; line-height: 1.4; }
.staff-review-intro p, .staff-stock-source p, .staff-stock-result-heading p { max-width: 760px; margin: 7px 0 0; color: var(--sl-muted); font-size: 14px; line-height: 1.6; }
.staff-review-kicker { display: block; color: var(--sl-muted); font-size: 11px; font-weight: 500; letter-spacing: .03em; line-height: 1.5; }
.staff-review-filters { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--sl-border); }
.staff-review-filter { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 2px solid transparent; color: var(--sl-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.staff-review-filter[aria-current="page"] { border-bottom-color: var(--sl-red); color: var(--sl-ink); }
.staff-review-filter strong { min-width: 22px; padding: 2px 6px; border-radius: 4px; background: var(--sl-faint); color: var(--sl-muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.staff-review-list { display: grid; gap: 8px; }
.staff-identity-review { min-width: 0; border: 1px solid var(--sl-border); border-radius: 9px; scroll-margin-top: 24px; }
.staff-identity-review > summary { list-style: none; cursor: pointer; }
.staff-identity-review > summary::-webkit-details-marker { display: none; }
.staff-ui .staff-identity-review > summary::before { content: none; }
.staff-identity-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 14px 18px; }
.staff-identity-review-heading:hover { background: #fafafa; }
.staff-identity-review[open] > .staff-identity-review-heading { border-bottom: 1px solid var(--sl-border); }
.staff-identity-review-heading h3 { margin: 5px 0 0; font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.staff-identity-review-heading p:last-child { margin: 4px 0 0; color: var(--sl-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.staff-identity-review-state { display: flex; align-items: center; gap: 12px; flex: none; }
.staff-identity-review-state > .sl-icon { width: 14px; color: var(--sl-muted); transition: transform 120ms; }
.staff-identity-review[open] .staff-identity-review-state > .sl-icon { transform: rotate(90deg); }
.staff-identity-review-body { min-width: 0; padding: 18px; }
.staff-identity-source-evidence { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; align-items: center; min-width: 0; padding: 12px; border-radius: 8px; background: var(--sl-faint); }
.staff-review-errors + .staff-identity-source-evidence { margin-top: 18px; }
.staff-identity-source-evidence + .staff-identity-decision { margin-top: 18px; }
.staff-identity-source-evidence > div { display: grid; gap: 4px; min-width: 0; }
.staff-identity-source-evidence strong { color: var(--sl-ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.staff-identity-source-evidence > div > span:last-child { color: var(--sl-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.staff-identity-cover { display: block; flex: none; border-radius: 4px; background: #f3f3f4; object-fit: cover; }
.staff-identity-source-cover { width: 52px; height: 76px; }
.staff-identity-candidate-cover { width: 48px; height: 68px; }
.staff-identity-cover-placeholder { display: grid; place-items: center; border: 1px solid var(--sl-border); color: var(--sl-muted); }
.staff-identity-cover-placeholder .sl-icon { width: 18px; }
.staff-identity-decision { display: grid; gap: 18px; margin-top: 0; }
.staff-review-errors + .staff-identity-decision { margin-top: 18px; }
.staff-identity-decision fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.staff-identity-decision legend { font-size: 14px; font-weight: 700; }
.staff-identity-decision fieldset > p { margin: 5px 0 0; color: var(--sl-muted); font-size: 12px; }
.staff-identity-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.staff-identity-option { display: grid; grid-template-columns: 18px 48px minmax(0, 1fr); gap: 11px; align-items: start; min-width: 0; min-height: 132px; padding: 15px; border: 1px solid var(--sl-border); border-radius: 8px; cursor: pointer; }
.staff-identity-option:hover { background: #fafafa; }
.staff-identity-option:has(input:checked) { border-color: #d7aaa7; background: #fff7f6; box-shadow: inset 0 0 0 1px #d7aaa7; }
.staff-identity-option input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--sl-red); }
.staff-identity-option-copy { display: grid; gap: 4px; min-width: 0; }
.staff-identity-option-copy strong { color: var(--sl-ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.staff-identity-option-copy > span:not(.staff-review-kicker) { color: var(--sl-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.staff-identity-option-copy small { margin-top: 5px; color: var(--sl-ink); font-size: 12px; line-height: 1.5; }
.staff-identity-option-separate { grid-template-columns: 18px minmax(0, 1fr); grid-column: 1 / -1; min-height: 0; }
.staff-identity-readonly-option { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; min-width: 0; padding: 15px; border: 1px solid var(--sl-border); border-radius: 8px; }
.staff-identity-reason { max-width: 680px; }
.staff-identity-reason .sl-input { width: 100%; min-height: 92px; resize: vertical; }
.staff-identity-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--sl-border); }
.staff-identity-actions > span, .staff-review-readonly { color: var(--sl-muted); font-size: 12px; line-height: 1.5; }
.staff-review-errors, .staff-stock-errors, .staff-stock-provider-errors { margin-top: 18px; padding: 14px 16px; border-left: 3px solid #b32632; background: #fff7f7; color: var(--sl-ink); font-size: 13px; line-height: 1.55; }
.staff-review-errors ul, .staff-stock-errors ul, .staff-stock-provider-errors ul { margin: 6px 0 0; padding-left: 20px; }
.staff-stock-errors p { margin: 7px 0 0; color: var(--sl-muted); font-size: 12px; }
.staff-review-readonly { margin: 14px 0 0; }
.staff-identity-rejected-values { display: grid; gap: 5px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--sl-border); border-radius: 8px; }
.staff-identity-rejected-values > strong { font-size: 13px; }
.staff-identity-rejected-values .sl-field { margin-top: 8px; }
.staff-identity-rejected-values .sl-input { width: 100%; min-height: 84px; resize: vertical; }
.staff-identity-applied { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px; background: var(--sl-faint); border-radius: 8px; }
.staff-identity-applied strong { display: block; margin-top: 4px; font-size: 14px; }
.staff-identity-applied p { margin: 6px 0 0; color: var(--sl-muted); font-size: 12px; line-height: 1.5; }
.staff-identity-applied p span { color: var(--sl-ink); font-weight: 500; }
.staff-review-context-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sl-border); }
.staff-review-empty { display: grid; justify-items: center; padding: 52px 20px; border: 1px dashed var(--sl-border); border-radius: 8px; text-align: center; }
.staff-review-empty .sl-icon { color: var(--sl-muted); }
.staff-review-empty h2 { margin: 10px 0 0; font-size: 16px; }
.staff-review-empty p { max-width: 440px; margin: 6px 0 0; color: var(--sl-muted); font-size: 13px; line-height: 1.6; }
.staff-stock-source { padding-bottom: 24px; border-bottom: 1px solid var(--sl-border); }
.staff-stock-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; max-width: 680px; margin-top: 22px; }
.staff-stock-form > .sl-field { width: 100%; }
.staff-stock-form .sl-input { width: 100%; min-height: 134px; resize: vertical; font-variant-numeric: tabular-nums; }
.staff-ui .staff-stock-form > .sl-button { min-height: 44px; }
.staff-stock-result { display: grid; gap: 20px; }
.staff-stock-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--sl-border); }
.staff-stock-summary article { display: grid; gap: 5px; padding: 16px 18px; }
.staff-stock-summary article + article { border-left: 1px solid var(--sl-border); }
.staff-stock-summary span { color: var(--sl-muted); font-size: 12px; }
.staff-stock-summary strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.staff-stock-provider-errors { margin-top: 0; border-left-color: #9a681d; background: #fff8eb; }
.staff-stock-table-shell { min-width: 0; }
.staff-stock-table { max-width: 100%; overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--sl-border); }
.staff-stock-table .sl-table { width: 100%; min-width: 790px; }
.staff-stock-table th { position: sticky; top: 0; z-index: 1; background: #fafafa; }
.staff-stock-table td { vertical-align: top; }
.staff-stock-id, .staff-stock-quantity { font-weight: 500; font-variant-numeric: tabular-nums; }
.staff-stock-quantity[data-state="zero"] { color: #9a4a16; }
.staff-stock-quantity[data-state="unknown"], .staff-stock-quantity[data-state="invalid"], .staff-stock-quantity[data-state="error"] { color: var(--sl-muted); font-weight: 500; }
.staff-stock-state small { display: block; max-width: 320px; margin-top: 6px; color: var(--sl-muted); font-size: 11px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .staff-review-intro, .staff-stock-result-heading, .staff-identity-review-heading, .staff-identity-actions, .staff-identity-applied { align-items: stretch; flex-direction: column; }
  .staff-identity-review-heading { align-items: flex-start; min-height: 0; padding: 14px; }
  .staff-identity-review-state { justify-content: space-between; }
  .staff-identity-review-body { padding: 14px; }
  .staff-identity-candidates { grid-template-columns: minmax(0, 1fr); }
  .staff-identity-option-separate { grid-column: auto; }
  .staff-identity-actions .sl-button, .staff-identity-applied .sl-button { width: 100%; }
  .staff-stock-form { grid-template-columns: minmax(0, 1fr); }
  .staff-stock-form > .sl-button { width: 100%; }
  .staff-stock-summary { grid-template-columns: minmax(0, 1fr); }
  .staff-stock-summary article + article { border-left: 0; border-top: 1px solid var(--sl-border); }
}
