.hiring-lab-page textarea { font: inherit; resize: vertical; }
.hiring-lab-page textarea:focus-visible { outline: 3px solid #59a69b; outline-offset: 4px; }
.hiring-lab-page [hidden] { display: none !important; }
.hiring-lab-page button:disabled { cursor: default; }
.hiring-intro { padding-block: 64px 38px; }
.hiring-intro h1 { max-width: 900px; font-size: clamp(40px, 4.6vw, 62px); }
.hiring-description { max-width: 765px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hiring-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 27px; color: #52695f; font-size: 12px; font-weight: 600; }
.hiring-flow > span[aria-hidden] { color: #8ca294; font-weight: 400; }
.hiring-intro .hero-actions { margin-top: 22px; }
.local-note { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; margin-top: 32px; padding: 19px 23px; border: 1px solid #d3ddd1; border-radius: 12px; background: #eaf0e5; }
.local-note strong { color: var(--accent); font-size: 13px; font-weight: 600; }
.local-note p { margin: 0; max-width: 900px; color: #5b6d61; font-size: 12px; line-height: 1.8; }
.setup-grid { display: grid; grid-template-columns: 1fr 1.06fr; gap: 25px; align-items: start; }
.lab-panel { min-width: 0; padding: 29px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.panel-heading { margin-bottom: 26px; }
.panel-heading .eyebrow { margin-bottom: 12px; }
.panel-heading h2 { font-size: 32px; }
.panel-heading > p:not(.eyebrow) { max-width: 500px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.field + .field { margin-top: 20px; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 8px; color: #344c51; font-size: 13px; font-weight: 600; }
.field label > span { font-size: 11px; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; border: 1px solid #cbd5ca; border-radius: 8px; background: #f9faf5; color: var(--ink); font-size: 14px; line-height: 1.65; }
.field textarea { min-height: 85px; }
.field input[readonly] { color: #738174; background: #edf0e7; }
.intake-draft { margin-bottom: 23px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.intake-draft .button { margin-top: 13px; }
.field input::placeholder, .field textarea::placeholder { color: #88928a; opacity: 1; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.file-input-box { padding: 19px; border: 1px dashed #a5b9a7; border-radius: 10px; background: #edf3e9; }
.file-input-box > label { display: block; color: var(--accent); font-size: 14px; font-weight: 600; }
.file-input-box .field-hint { margin-top: 6px; }
#resume-files { display: block; width: 100%; max-width: 100%; margin-top: 13px; color: #637567; font-size: 12px; }
#resume-files::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 1px solid #bacaba; border-radius: 6px; background: var(--white); color: #345d48; font: inherit; cursor: pointer; }
.paste-details { margin-top: 21px; border-block: 1px solid var(--line); }
.paste-details summary { padding-block: 15px; cursor: pointer; font-size: 13px; font-weight: 600; }
.paste-fields { padding-bottom: 21px; }
.paste-fields .button { margin-top: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 11px; padding: 4px 0; border: 0; border-bottom: 1px solid #adc0ae; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--accent-hover); }
.sample-control { margin-top: 17px; }
.resume-list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 27px 0 13px; }
.resume-list-heading h3 { font-size: 15px; letter-spacing: -.01em; }
.resume-list-heading > span { font-size: 11px; color: var(--muted); }
.resume-list { display: grid; gap: 9px; }
.empty-state { margin: 0; color: #78837b; font-size: 13px; line-height: 1.8; }
.resume-list .empty-state { padding: 14px 16px; border: 1px solid #e0e4da; border-radius: 9px; background: #f7f8f2; font-size: 12px; }
.resume-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 13px 15px; border: 1px solid #d8dfd3; border-radius: 9px; background: #f7f9f3; }
.resume-item h3, .resume-item strong { font-size: 13px; letter-spacing: 0; }
.resume-item p, .resume-item small { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.resume-item button { margin-top: 8px; padding: 4px 9px; border: 1px solid #cbd7c9; border-radius: 6px; background: transparent; color: #486454; font-size: 11px; }
.resume-item-info { min-width: 0; flex-grow: 1; }
.resume-item-title { color: #365442; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.resume-item-meta { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.resume-item .resume-item-remove { flex-shrink: 0; margin-top: 0; }
.ai-section { margin-top: 23px; }
.ai-settings { border: 1px solid var(--line); border-radius: 12px; background: #f0f1e9; }
.ai-settings summary { padding: 18px 23px; cursor: pointer; color: #415950; font-size: 13px; font-weight: 600; }
.ai-settings summary > span { margin-left: 20px; color: var(--muted); font-size: 11px; font-weight: 400; }
.ai-settings-body { padding: 0 23px 22px; }
.ai-description { max-width: 840px; margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ai-field-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 25px; margin-bottom: 22px; }
.ai-field-grid .field { margin: 0; }
.check-field { display: flex; align-items: flex-start; gap: 11px; max-width: 930px; color: #455a50; font-size: 13px; line-height: 1.8; cursor: pointer; }
.check-field input { flex-shrink: 0; width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--accent); }
.check-field + .check-field { margin-top: 13px; }
.consent-field { padding: 14px 16px; border: 1px solid #d7ddd0; border-radius: 8px; background: #fafaf4; }
.ai-data-note { margin-top: 13px; }
.review-actions { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 26px 41px; }
.review-buttons { display: flex; flex-wrap: wrap; gap: 11px; flex-shrink: 0; }
#lab-status { max-width: 530px; margin: 0; color: var(--accent); font-size: 13px; line-height: 1.8; }
.report-section { padding-block: 47px 42px; border-top: 1px solid var(--line); }
.report-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 45px; margin-bottom: 28px; }
.report-heading h2 { font-size: 40px; }
.report-heading > div > p:not(.eyebrow) { max-width: 660px; margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.report-tools { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.report-tools .button { min-height: 42px; padding: 10px 15px; font-size: 12px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.report-summary > :not(.report-metric) { grid-column: 1 / -1; }
.report-summary > .empty-state { padding: 22px 25px; border: 1px solid #d7dfd1; border-radius: 12px; background: #edf2e8; }
.summary-grid, .metrics-grid, .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.summary-card, .metric-card, .stat-card { min-width: 0; padding: 20px; border: 1px solid #d2ddcf; border-radius: 11px; background: #eaf0e4; }
.summary-card strong, .metric-card strong, .stat-card strong { display: block; margin-bottom: 6px; color: #325d45; font-size: 27px; line-height: 1.2; font-weight: 600; }
.summary-card span, .metric-card span, .stat-card span { color: #607663; font-size: 12px; line-height: 1.7; }
.report-metric { min-width: 0; padding: 20px; border: 1px solid #d2ddcf; border-radius: 11px; background: #eaf0e4; }
.report-metric-label { color: #607663; font-size: 12px; line-height: 1.7; }
.report-metric-value { margin-top: 7px; color: #325d45; font-size: 29px; line-height: 1.2; font-weight: 600; }
.report-section > .lab-panel + .lab-panel { margin-top: 19px; }
.chart-panel h3, .notes-panel h3, .evidence-heading h3 { font-size: 21px; }
.report-chart { min-width: 0; max-width: 100%; margin-top: 22px; }
.report-chart > .empty-state { padding: 27px 22px; border: 1px solid #e0e5da; border-radius: 10px; background: #f7f9f2; }
.report-chart svg, .report-chart canvas { display: block; width: 100%; height: auto; max-width: 100%; }
.report-chart details { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 23px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border: 1px solid #d1dbcb; border-radius: 10px; background: var(--white); }
.report-chart details > summary { position: sticky; left: 0; padding: 16px 19px; color: #3a5c44; background: #edf3e7; cursor: pointer; font-size: 13px; line-height: 1.6; font-weight: 600; }
.report-chart details > summary:hover { background: #e5eedf; }
.report-chart details > summary:focus-visible { outline: 3px solid #59a69b; outline-offset: -4px; }
.report-chart details[open] > summary { border-bottom: 1px solid #d1dbcb; }
.report-chart details > table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.7; }
.report-chart details caption { padding: 13px 17px; color: #667763; font-size: 11px; text-align: left; }
.report-chart details th, .report-chart details td { padding: 13px 16px; border-bottom: 1px solid #dce4d5; border-right: 1px solid #e0e7da; vertical-align: top; overflow-wrap: anywhere; }
.report-chart details thead th { min-width: 120px; color: #3b5942; background: #eef3e8; font-size: 11px; font-weight: 600; }
.report-chart details th:first-child { min-width: 220px; width: 25%; }
.report-chart details tbody th { color: #435b45; background: #f5f8f0; font-weight: 500; }
.report-chart details tbody td { color: #5d6f59; }
.report-chart details tr > :last-child { border-right: 0; }
.report-chart details tbody tr:last-child > * { border-bottom: 0; }
.report-chart details tbody tr:hover > * { background: #f0f5e9; }
.chart-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 18px; align-items: center; padding-block: 10px; font-size: 12px; }
.chart-bar, .bar-track { overflow: hidden; height: 12px; border-radius: 4px; background: #e7ede2; }
.chart-bar > span, .bar-fill { display: block; height: 100%; border-radius: inherit; background: #53876a; }
.chart-label { min-width: 0; color: #526a59; line-height: 1.7; }
.chart-value { color: var(--accent); font-variant-numeric: tabular-nums; }
.coverage-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 18px; align-items: center; padding-block: 10px; font-size: 12px; }
.coverage-label { min-width: 0; color: #526a59; line-height: 1.7; }
.coverage-track { overflow: hidden; height: 12px; border-radius: 4px; background: #e7ede2; }
.coverage-fill { display: block; height: 100%; border-radius: inherit; background: #53876a; }
.coverage-count { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.evidence-heading > p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.evidence-table { max-width: 100%; overflow-x: auto; margin-top: 22px; }
.evidence-table table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.8; }
.evidence-table th { padding: 13px 15px; border-block: 1px solid #cbd7c7; background: #edf2e7; color: #3d5945; font-size: 11px; font-weight: 600; }
.evidence-table tbody th { padding: 15px; border-top: 0; border-bottom: 1px solid #e0e4d9; background: #f7f9f2; vertical-align: top; color: #344c3e; font-size: 12px; font-weight: 600; }
.evidence-table td { vertical-align: top; padding: 15px; border-bottom: 1px solid #e0e4d9; color: #52665a; }
.evidence-table td:first-child { color: #344c3e; font-weight: 600; }
.evidence-table .table-empty { padding-block: 23px; color: #7a877d; font-weight: 400; }
.evidence-table blockquote { margin: 0; padding-left: 12px; border-left: 2px solid #94b498; }
.evidence-status { display: inline-block; margin: 0 0 8px; padding: 3px 7px; border-radius: 5px; font-size: 10px; line-height: 1.7; font-weight: 500; }
.evidence-found { color: #3d6447; background: #e6efdf; }
.evidence-missing { color: #80633b; background: #f1eada; }
.evidence-source { display: block; margin-top: 8px; padding-left: 11px; border-left: 2px solid #9ab396; color: #52665a; font-size: 12px; line-height: 1.8; }
.review-notes { margin-top: 19px; color: #5b6f61; font-size: 13px; line-height: 1.85; }
.review-notes ul { margin: 0; padding-left: 20px; }
.review-notes li + li { margin-top: 9px; }
.review-notes h4 { margin: 18px 0 9px; color: #3b5744; font-size: 14px; }
.note-item + .note-item { margin-top: 17px; padding-top: 17px; border-top: 1px solid #e0e5d8; }
.ai-note { margin-top: 14px; padding: 14px 17px; border-left: 3px solid #9dbb97; background: #f0f4e9; color: #546d55; }
.report-boundary { max-width: 860px; margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.chat-section { padding-block: 31px 65px; border-top: 1px solid var(--line); }
.chat-heading { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-bottom: 29px; }
.chat-heading h2 { font-size: 36px; }
.chat-heading > div > p:not(.eyebrow) { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.chat-mode { flex-shrink: 0; padding: 8px 11px; border: 1px solid #c9d7c6; border-radius: 7px; color: #467052; background: #edf2e7; font-size: 11px; font-weight: 600; }
.chat-workspace { display: grid; grid-template-columns: .8fr 1.2fr; gap: 23px; align-items: start; }
.chat-form .button { margin-top: 20px; }
.chat-hint { margin-top: 16px; }
.chat-log { min-width: 0; min-height: 357px; max-height: 650px; overflow-y: auto; padding: 25px; border: 1px solid #d6dfd1; border-radius: 16px; background: #eaf0e5; }
.chat-empty { max-width: 430px; margin: 0; padding: 17px 20px; border: 1px solid #d2dccb; border-radius: 10px; background: #f9faf4; color: #74836f; font-size: 13px; line-height: 1.8; }
.chat-message { padding: 17px 19px; border: 1px solid #d7dfd0; border-radius: 10px; background: #fffefa; color: #4a6252; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.chat-message + .chat-message { margin-top: 13px; }
.chat-message strong { display: block; margin-bottom: 7px; color: #2f573e; font-size: 11px; }
.chat-message p { margin: 0; white-space: pre-wrap; }
.chat-message.user, .chat-message-user { background: #dfeadb; border-color: #bdcfb7; }
.chat-message-label { display: block; margin-bottom: 7px; color: #2f573e; font-size: 11px; font-weight: 600; }
.chat-message-text { margin: 0; white-space: pre-wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { padding-block: 15px 30px; color: #845b39; font-size: 13px; }

@media (max-width: 1080px) {
  .lab-panel { padding: 24px; }
  .hiring-lab-page .site-header { gap: 23px; }
  .hiring-lab-page nav { gap: 17px; }
  .setup-grid { gap: 20px; }
  .review-actions { flex-direction: column; align-items: flex-start; gap: 17px; }
  #lab-status { max-width: 850px; }
  .report-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .chat-workspace { grid-template-columns: .9fr 1.1fr; gap: 20px; }
}

@media (max-width: 780px) {
  .hiring-intro { padding-block: 43px 31px; }
  .hiring-intro h1 { font-size: clamp(37px, 7vw, 53px); }
  .hiring-description { font-size: 16px; }
  .hiring-flow { gap: 13px; font-size: 11px; }
  .local-note { grid-template-columns: 1fr; gap: 8px; padding: 17px 20px; margin-top: 26px; }
  .setup-grid { grid-template-columns: 1fr; }
  .ai-field-grid { grid-template-columns: 1fr; gap: 19px; }
  .ai-settings summary > span { margin-left: 12px; }
  .review-actions { padding-bottom: 32px; }
  .report-section { padding-top: 34px; }
  .report-heading h2 { font-size: 34px; }
  .summary-grid, .metrics-grid, .stat-grid, .report-summary { grid-template-columns: repeat(2, 1fr); }
  .chat-section { padding-block: 31px 47px; }
  .chat-heading { flex-direction: column; align-items: flex-start; gap: 17px; }
  .chat-heading h2 { font-size: 32px; }
  .chat-workspace { grid-template-columns: 1fr; }
  .chat-log { min-height: 240px; }
}

@media (max-width: 450px) {
  .lab-panel { padding: 22px 19px; }
  .panel-heading h2 { font-size: 29px; }
  .local-note { padding-inline: 17px; }
  .hiring-flow { column-gap: 11px; row-gap: 10px; }
  .hiring-flow > span[aria-hidden] { display: none; }
  .hiring-flow > span:not([aria-hidden]) { padding-right: 13px; border-right: 1px solid #cbd8c8; }
  .hiring-flow > span:last-child { border-right: 0; padding-right: 0; }
  .ai-settings summary { padding-inline: 18px; }
  .ai-settings summary > span { display: block; margin: 7px 0 0 19px; }
  .ai-settings-body { padding-inline: 18px; }
  .consent-field { padding: 12px; }
  .review-buttons { width: 100%; }
  .review-buttons .button { gap: 12px; padding-inline: 15px; }
  .summary-card, .metric-card, .stat-card, .report-metric { padding: 17px; }
  .chart-row { grid-template-columns: 1fr auto; gap: 8px; }
  .chart-row .chart-bar, .chart-row .bar-track { grid-row: 2; grid-column: 1 / -1; }
  .coverage-row { grid-template-columns: 1fr auto; gap: 8px; }
  .coverage-track { grid-row: 2; grid-column: 1 / -1; }
  .chat-log { padding: 17px; }
}

@media print {
  .hiring-lab-page { background: white; color: #17252e; font-size: 11pt; }
  .hiring-lab-page .wrap { width: 100%; }
  .site-header, .skip-link, .hiring-flow, .local-note, .setup-grid, .ai-section, .review-actions, .report-tools, .chat-section, .noscript-note { display: none !important; }
  .hiring-intro { padding: 0 0 22px; }
  .hiring-intro h1 { font-size: 25pt; }
  .hiring-description { font-size: 10pt; }
  .report-section { padding-block: 22px; }
  .lab-panel { padding: 17px; border-color: #aaa; break-inside: avoid; }
  .evidence-panel { break-inside: auto; }
  .evidence-table { overflow: visible; }
  .evidence-table table { min-width: 0; font-size: 9pt; }
  .evidence-table th, .evidence-table td { padding: 9px; }
  .evidence-table thead { display: table-header-group; }
  .evidence-table tr { break-inside: avoid; }
  .report-chart details { overflow: visible; }
  .report-chart details > table { min-width: 0; table-layout: fixed; font-size: 8pt; }
  .report-chart details th, .report-chart details td { min-width: 0; padding: 8px; }
  .report-chart details thead th { min-width: 0; font-size: 8pt; }
  .report-chart details th:first-child { min-width: 0; width: 22%; }
  .report-summary, .chart-panel, .notes-panel { break-inside: avoid; }
  .site-footer { margin-top: 20px; }
}
