/* DEMO refinement: preserve the Mingquan ledger, clarify hierarchy and state. */
.app-root { --muted: #53696f; background: #f0f3f1; }
.app-root .topbar { height: 76px; padding-inline: 28px; box-shadow: 0 4px 16px rgba(7,58,77,.08); }
.app-root .brand { gap: 18px; }
.app-root .product-name { font-weight: 600; letter-spacing: .03em; }
.app-root .admin-layout { grid-template-columns: 218px minmax(0,1fr) 280px; }
.app-root .activity-index { padding: 28px 14px; }
.app-root .index-title { font-size: 13px; color: #c5d9de; margin-bottom: 24px; }
.app-root .activity-list { gap: 8px; }
.app-root .activity-tab { min-height: 86px; grid-template-columns: 28px minmax(0,1fr) 8px; padding: 15px 10px; border: 1px solid transparent; border-radius: 3px; }
.app-root .activity-tab.is-active { background: #155367; border-color: #367084; }
.app-root .activity-label strong { white-space: normal; line-height: 1.65; font-size: 13px; }
.app-root .activity-label small { color: #b4ced5; line-height: 1.5; }
.app-root .activity-number { font-size: 16px; align-self: start; margin-top: 3px; color: #a6c2ca; }
.app-root .workspace { padding: 24px; background: #f0f3f1; }
.app-root .toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.app-root .toolbar > button { white-space: nowrap; flex-shrink: 0; min-height: 42px; font-size: 12px; }
.app-root .toolbar .toolbar-spacer { display: none; }
.app-root .ai-search-form { order: 3; flex: 1 0 100%; min-width: 0; max-width: none; }
.app-root .ai-search-form .search-control { min-height: 46px; }
.app-root .workspace-switch { border-color: #9eb3b8; }
.app-root .workspace-switch button { padding-inline: 16px; }
.app-root .workspace-switch span { border: 0; background: rgba(255,255,255,.13); padding-inline: 4px; }
.app-root .toolbar .primary-button { margin-left: auto; box-shadow: 0 3px 8px rgba(105,75,14,.1); }
.app-root .activity-heading { padding: 0 0 22px; margin-bottom: 0; gap: 16px; }
.app-root .activity-heading h1 { color: var(--deep); font-size: clamp(24px,2.1vw,34px); font-weight: 650; letter-spacing: -.025em; line-height: 1.35; }
.app-root .activity-heading p { margin-top: 10px; line-height: 1.8; max-width: 65ch; }
.app-root .activity-status { align-self: flex-start; padding: 7px 10px; background: var(--green-soft); border: 1px solid #c5d8cc; color: #245b45; white-space: nowrap; }
.app-root .flow-surface { background: var(--white); box-shadow: 0 8px 24px rgba(7,58,77,.06); border-color: #ccd7d4; }
.app-root .timeline-strip { background: #fafbf8; height: 48px; font-size: 11px; }
.app-root .timeline-pulse { animation: none; }
.app-root .flow-head { min-height: 104px; }
.screening-column-controls { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.screening-column-controls label { display: flex; align-items: center; gap: 5px; min-height: 36px; font-size: 12px; cursor: pointer; }
.screening-column-controls .text-button { margin-left: auto; min-height: 36px; }
.screening-column-controls .screening-batch { width: 100%; font-size: 12px; padding: 0 6px; }
.screening-row-select input, .screening-column-controls input { width: 18px; height: 18px; accent-color: var(--deep); cursor: pointer; }
.screening-row-select { display: flex; align-items: center; min-height: 36px; }
.screening-busy-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 32px); padding: 16px 20px; background: var(--deep); color: white; font-size: 14px; box-shadow: 0 8px 24px rgba(7,58,77,.18); }
.screening-focus-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: #edf3f3; color: #073a4d; font-size: 13px; }
.screening-focus-note strong { display: block; margin-bottom: 4px; }
.screening-focus-note button { flex-shrink: 0; }
.app-root .screening-focused .flow-head, .app-root .screening-focused .candidate-row { grid-template-columns: minmax(0,1fr); }
.screening-focused .timeline-strip, .screening-focused .candidate-cell.is-empty { display: none; }
.screening-focused[data-pinned-stage="pool"] .stage-title:not([data-screening-stage="pool"]),
.screening-focused[data-pinned-stage="review"] .stage-title:not([data-screening-stage="review"]),
.screening-focused[data-pinned-stage="shortlist"] .stage-title:not([data-screening-stage="shortlist"]) { display: none; }
.screening-focused .screening-batch { display: none; }
.focus-table-panel { min-width: 0; background: var(--warm-white, #fffefa); }
.focus-table-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; }
.focus-table-tools strong { display: block; font-size: 15px; }
.focus-table-tools span { display: block; font-size: 12px; margin-top: 5px; color: var(--muted); }
.focus-table-tools button { flex-shrink: 0; }
.focus-table-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; font-size: 13px; }
.focus-table-scroll { max-height: 72vh; overflow: auto; border-top: 1px solid var(--line); }
.focus-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
.focus-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screening-focused [data-pin-column] { display: none; }
.app-root .screening-focused .stage-title { padding: 12px 16px; }
.focus-table th, .focus-table td { padding: 5px 8px; max-width: 180px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-table th { position: sticky; top: 0; z-index: 2; background: #edf3f3; color: var(--deep); }
.focus-table th > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.focus-table th select { display: block; width: 96px; min-height: 28px; margin-top: 4px; padding: 4px 6px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; }
.focus-table td { background: #fffefa; height: 36px; }
.focus-table tr:nth-child(even) td { background: #f7f6f1; }
.focus-table td:last-child, .focus-table th:last-child { position: sticky; right: 0; border-left: 1px solid var(--line); }
.focus-table td:last-child { z-index: 1; }
.focus-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--deep); }
.focus-table .text-button { min-height: 26px; display: inline-flex; align-items: center; }
.app-root .screening-focused .flow-head { display: none; }
.screening-focused .screening-focus-note { padding: 8px 12px; }
.table-select-all { display: flex; align-items: center; gap: 4px; cursor: pointer; min-height: 28px; }
.focus-table th:first-child { position: sticky; left: 0; z-index: 3; }
@media (pointer: coarse) {
  .focus-table td { height: 42px; }
  .focus-table .text-button, .table-select-all { min-height: 34px; }
}
@media(max-width:820px) {
  .focus-table-tools { align-items: flex-start; flex-direction: column; }
  .focus-table td:last-child, .focus-table th:last-child { position: static; }
}
@media(max-width:820px) {
  .screening-column-controls { gap: 4px; }
  .screening-column-controls .text-button { margin-left: 0; }
  .screening-column-controls label { flex-wrap: wrap; }
  .screening-focus-note { align-items: flex-start; flex-direction: column; }
}
.app-root .stage-title { gap: 12px; padding: 20px 16px; align-items: center; flex-wrap: wrap; }
.app-root .stage-title > div { min-width: 0; }
.app-root .stage-title strong { display: block; font-size: 18px; line-height: 1.45; }
.app-root .stage-title > div > span { display: block; margin-top: 5px; font-size: 11px; }
.app-root .stage-title:nth-child(1) { background: #edf3f3; color: var(--deep); }
.app-root .stage-title:nth-child(2) { background: #faf3e4; color: #76510a; }
.app-root .stage-title:nth-child(3) { background: #edf4ed; color: #245b45; }
.app-root .stage-title .count { width: auto; min-width: 32px; height: auto; border: 0; background: transparent; color: inherit; font-size: 28px; font-weight: 550; letter-spacing: -.04em; }
.app-root .candidate-row { min-height: 88px; border-color: #e1e6e1; }
.app-root .candidate-cell { padding: 16px 14px; }
.app-root .candidate-cell.is-empty { background: #fafbf8; color: #b6c3bd; }
.app-root .candidate-cell:not(.is-empty):hover { background: #f0f6f2; }
.app-root .candidate-copy strong { flex-wrap: wrap; gap: 5px; }
.app-root .candidate-copy strong > .text-button { font-size: 15px; font-weight: 650; }
.app-root .candidate-copy small { font-size: 12px; line-height: 1.65; }
.app-root .cell-action { width: 34px; min-width: 34px; height: 34px; border-radius: 3px; background: #f5f8f4; border-color: #c7d7cf; transition: background .16s, color .16s; }
.app-root .cell-action:hover { background: var(--deep); color: white; }
.app-root .record-badge { margin-left: 0; font-weight: 500; }
.app-root .source-dot { width: 7px; height: 7px; box-shadow: none; flex-shrink: 0; }
.app-root .flow-footer { gap: 12px; flex-wrap: wrap; background: #fafbf8; font-size: 11px; }
.app-root .inspector { padding: 24px 18px 24px 0; background: #f0f3f1; }
.app-root .rail-section { box-shadow: none; border-color: #ccd7d4; margin-bottom: 20px; }
.app-root .rail-header { padding: 16px; background: #f8faf7; }
.app-root .rail-content { padding: 16px; }
.app-root .rule-list { gap: 0; }
.app-root .rule-list li { padding-block: 10px; }
.app-root .rule-list span { line-height: 1.7; }
.app-root .rail-footer { padding: 12px 16px; }
.app-root .screening-analytics > .rail-header { background: var(--deep); color: white; border-color: var(--deep); }
.app-root .stat-total { padding-block: 8px 18px; }
.app-root .stat-total strong { font-size: 34px; font-weight: 550; }
.app-root .stat-bar { height: 4px; background: #e6ece7; }
.app-root .stat-bar i { background: #438166; }
.app-root .stat-row:hover { background: #f0f6f2; }
.app-root .interview-board { box-shadow: 0 8px 24px rgba(7,58,77,.06); }
.app-root .interview-board-header { padding: 24px; }
.app-root .interview-round > header { padding: 22px; }
.app-root .interview-round h3 { font-size: 20px; }
.app-root .interview-person-card { min-height: 76px; }
.app-root .interview-group-card header span, .app-root .interview-group-panel span, .app-root .interview-group-people button { font-size: 12px; }
.app-root .interview-group-panel strong { font-size: 13px; line-height: 1.7; }
.app-root .interview-group-card header strong { font-size: 14px; }
@media (min-width: 1181px) {
  .app-root .inspector { position: static; }
}
@media (max-width: 1360px) and (min-width: 821px) {
  .app-root .admin-layout { grid-template-columns: 170px minmax(0,1fr) 244px; }
  .app-root .inspector { display: block; grid-column: 3; grid-row: 1; position: static; padding: 24px 14px 24px 0; }
  .app-root .inspector > .rail-section:not(.screening-analytics) { display: block; }
  .app-root .workspace { padding-inline: 16px; }
  .app-root .stage-title { padding-inline: 10px; gap: 6px; flex-wrap: wrap; }
  .app-root .stage-title > .icon { display: none; }
  .app-root .candidate-cell { padding-inline: 8px; gap: 6px; }
}
@media (max-width: 820px) {
  .app-root .topbar { height: 62px; padding-inline: 15px; }
  .app-root .activity-index { min-height: auto; padding: 12px; }
  .app-root .activity-list { gap: 8px; }
  .app-root .activity-tab { min-width: 170px; width: 170px; min-height: 66px; padding: 10px; grid-template-columns: 22px minmax(0,1fr) 8px; }
  .app-root .activity-label strong { font-size: 12px; }
  .app-root .activity-number { font-size: 14px; }
  .app-root .workspace { padding: 18px 12px; }
  .app-root .toolbar { gap: 8px; margin-bottom: 24px; }
  .app-root .toolbar > button { padding-inline: 10px; min-height: 44px; }
  .app-root .toolbar .primary-button { margin-left: 0; }
  .app-root .activity-heading { flex-direction: column; gap: 10px; }
  .app-root .activity-heading h1 { font-size: 25px; }
  .app-root .activity-heading p { font-size: 12px; margin-top: 7px; }
  .app-root .activity-status { font-size: 11px; padding: 5px 8px; }
  .app-root .inspector { padding: 0 12px 24px; }
  .app-root .interview-board-header { padding: 18px; }
  .app-root .flow-head { min-width: 0; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 94px; }
  .app-root .stage-title { padding: 12px 9px; display: block; }
  .app-root .stage-title > .icon, .app-root .stage-title > div > span { display: none; }
  .app-root .stage-title strong { font-size: 14px; }
  .app-root .stage-title .count { display: block; margin: 5px 0 0; font-size: 25px; }
  .app-root .candidate-row { min-width: 0; grid-template-columns: minmax(0,1fr); }
  .app-root .candidate-cell.is-empty { display: none; }
  .app-root .candidate-cell { border-right: 0; flex-wrap: wrap; padding: 14px; }
  .app-root .candidate-cell::before { width: 100%; font-size: 11px; margin-bottom: 4px; color: var(--deep); }
  .app-root .candidate-cell:nth-child(1)::before { content: '海选池'; }
  .app-root .candidate-cell:nth-child(2)::before { content: '待复核'; color: #76510a; }
  .app-root .candidate-cell:nth-child(3)::before { content: '已入围'; color: #245b45; }
  .app-root .candidate-copy { flex: 1; }
  .app-root .cell-action { width: 44px; height: 44px; }
  .app-root .timeline-strip { min-width: 0; overflow: auto; }
  .app-root .timeline-strip > span { flex-shrink: 0; white-space: nowrap; }
  .app-root .flow-footer { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app-root *, .app-root *::before, .app-root *::after { transition: none !important; animation: none !important; }
}
.app-root .load-more-row { flex-wrap: wrap; padding: 10px 16px; }
.app-root .resume-export-button { margin-left: auto; white-space: nowrap; }
.custom-required-row { display:flex; align-items:center; gap:8px; min-width:0; }
.custom-required-row input:not([type="hidden"]) { min-width:0; flex:1; }
.custom-required-row button { flex-shrink:0; }
.interview-round[hidden] { display:none !important; }
.interview-round-tabs { display:flex; border-bottom:1px solid var(--line); gap:0; }
.interview-round-tabs button { flex:1; padding:12px 16px; border:1px solid var(--line); background:#f7f8f5; color:var(--ink); text-align:left; cursor:pointer; font:inherit; font-weight:700; }
.interview-round-tabs button span { display:block; margin-top:4px; font-size:12px; font-weight:400; }
.interview-round-tabs button[aria-selected="true"] { background:#0c3b4b; color:white; border-color:#0c3b4b; }
.interview-round-tabs button:focus-visible { outline:3px solid #f5bb43; outline-offset:-3px; }
.interview-board .interview-pool-grid { max-height:280px; overflow:auto; }
.app-root .interview-board { gap:10px; }
.app-root .interview-board-header { min-height:84px; padding:14px 18px; gap:12px; }
.app-root .interview-round > header { min-height:62px; padding:12px 16px; }
