.captain-portal-link {
  align-self: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.captain-portal-link:hover { text-decoration: underline; }
.captain-recruitment-belief { margin: -11px 0 16px; color: var(--muted); font-size: 10px; font-weight: 800; }

.recruitment-teaser {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

.recruitment-teaser-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #cdd8d0;
  border-radius: 16px;
  background: linear-gradient(112deg, #eef5ef 0, #fffdf7 64%);
  box-shadow: 0 12px 34px rgba(27, 50, 36, .07);
}

.recruitment-teaser-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green-deep);
  color: #f6cf69;
  font-size: 25px;
}

.recruitment-teaser-copy { min-width: 0; }
.recruitment-teaser-copy p,
.recruitment-teaser-copy h2,
.recruitment-teaser-copy span { margin: 0; }
.recruitment-teaser-copy p { color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .08em; }
.recruitment-teaser-copy h2 { margin-top: 2px; font-size: clamp(20px, 2.4vw, 29px); line-height: 1.15; letter-spacing: -.035em; }
.recruitment-teaser-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.recruitment-teaser-copy b { color: var(--green); }
.recruitment-teaser-actions { display: flex; align-items: center; gap: 14px; }
.recruitment-teaser-actions .button { min-height: 42px; white-space: nowrap; }
.recruitment-teaser-actions > a:not(.button) { color: var(--green); font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.recruitment-teaser[data-state="error"] .recruitment-teaser-card { border-color: #e5c56c; background: #fff8df; }

.recruitment-overview-section {
  padding: clamp(48px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
  scroll-margin-top: 82px;
}

.recruitment-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
}

.recruitment-section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.recruitment-section-heading [data-recruitment-campaign-subtitle] {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.recruitment-coverage-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  overflow: hidden;
  border: 1px solid #cfd8d1;
  border-radius: 13px;
  background: #eff5f0;
}

.recruitment-coverage-facts span { min-width: 0; padding: 14px 16px; }
.recruitment-coverage-facts span + span { border-left: 1px solid #cfd8d1; }
.recruitment-coverage-facts small,
.recruitment-coverage-facts strong { display: block; }
.recruitment-coverage-facts small { color: #607168; font-size: 9px; font-weight: 800; }
.recruitment-coverage-facts strong { margin-top: 3px; color: var(--green); font-size: 13px; line-height: 1.35; }
.recruitment-introduction { max-width: 840px; margin: 18px 0 0; color: #526158; font-size: 12px; }

.recruitment-city-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 23px;
  padding: 10px 13px;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background: #f7f4ec;
}

.recruitment-city-strip > span { color: var(--red); font-size: 10px; font-weight: 950; }
.recruitment-city-strip > div { min-width: 0; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: thin; }
.recruitment-city-strip > div span,
.recruitment-city-strip em { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #fff; color: #4d5c53; font-size: 9px; font-style: normal; }
.recruitment-city-strip .is-neutral { color: var(--muted); }

.recruitment-overview-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(250px, .35fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(29, 44, 34, .07);
}

.recruitment-role-panel { min-width: 0; padding: 22px; border-right: 1px solid var(--line); background: #f2efe6; }
.recruitment-role-panel > div:first-child small,
.recruitment-role-detail header > span { color: var(--red); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.recruitment-role-panel h3,
.recruitment-role-detail h3 { margin: 3px 0 0; font-size: 22px; line-height: 1.2; }
.recruitment-role-list { display: grid; gap: 8px; margin-top: 17px; }
.recruitment-role-list > p { color: var(--muted); font-size: 11px; }

.recruitment-role-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8d5ca;
  border-radius: 11px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.recruitment-role-card[aria-pressed="true"] { border-color: var(--green); background: var(--green-deep); color: #fff; box-shadow: 0 10px 25px rgba(18, 49, 38, .16); }
.recruitment-role-number { color: var(--red); font-size: 10px; font-weight: 950; }
.recruitment-role-card[aria-pressed="true"] .recruitment-role-number { color: #f7d16e; }
.recruitment-role-copy { min-width: 0; }
.recruitment-role-copy strong,
.recruitment-role-copy small { display: block; }
.recruitment-role-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recruitment-role-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.recruitment-role-card[aria-pressed="true"] small { color: #cbdad0; }

.recruitment-role-detail { min-width: 0; padding: 24px; }
.recruitment-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.recruitment-detail-grid article { min-width: 0; min-height: 145px; padding: 14px; border: 1px solid var(--soft-line); border-radius: 12px; background: #faf8f2; }
.recruitment-detail-grid article > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e5f0e7; color: var(--green); font-size: 17px; }
.recruitment-detail-grid h4 { margin: 10px 0 7px; font-size: 12px; }
.recruitment-detail-grid ul { display: grid; gap: 4px; margin: 0; padding: 0; color: #59665e; font-size: 9px; line-height: 1.5; list-style: none; }
.recruitment-detail-grid li { position: relative; padding-left: 12px; }
.recruitment-detail-grid li::before { content: ""; position: absolute; top: .65em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.recruitment-detail-grid .recruitment-empty-line { color: #7a837c; }
.recruitment-detail-grid .recruitment-empty-line::before { background: var(--yellow); }
.recruitment-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.recruitment-detail-actions .button { min-height: 42px; }

.recruitment-load-error { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--red); background: #fff0ec; color: #73392f; font-size: 11px; }
.recruitment-retry { display: none; margin-top: 12px; min-height: 40px; }
[data-state="error"] > .wrap > .recruitment-retry,
.recruitment-assistant-section[data-state="error"] .recruitment-retry { display: inline-flex; }

.recruitment-assistant-section {
  padding: clamp(52px, 7vw, 86px) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #13372a, #0d2b20 58%, #173f30);
  color: #fff;
  scroll-margin-top: 82px;
}

.recruitment-assistant-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  margin-bottom: 24px;
}

.recruitment-assistant-heading h2 { max-width: 790px; margin: 0; color: #fff; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.03; letter-spacing: -.055em; }
.recruitment-assistant-heading > div:first-child > p:last-child { max-width: 800px; margin: 13px 0 0; color: #c4d3c8; font-size: 12px; }
.recruitment-ai-disclosure { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.06); }
.recruitment-ai-disclosure > i { color: #f6ca5d; font-size: 24px; }
.recruitment-ai-disclosure strong,
.recruitment-ai-disclosure small { display: block; }
.recruitment-ai-disclosure strong { font-size: 11px; }
.recruitment-ai-disclosure small { margin-top: 2px; color: #afc3b6; font-size: 9px; }

.recruitment-assistant-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(290px, .38fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: #f8f5ed;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(2, 15, 10, .28);
}

.recruitment-question-panel,
.recruitment-workflow-panel { min-width: 0; padding: 24px; }
.recruitment-question-panel { border-right: 1px solid var(--line); background: #efece3; }
.recruitment-panel-label { display: flex; align-items: center; gap: 10px; }
.recruitment-panel-label > span { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--green); color: #fff; font-size: 10px; font-weight: 950; }
.recruitment-panel-label small,
.recruitment-panel-label h3 { display: block; margin: 0; }
.recruitment-panel-label small { color: var(--red); font-size: 9px; font-weight: 950; }
.recruitment-panel-label h3 { font-size: 18px; line-height: 1.2; }

.recruitment-quick-questions { display: grid; gap: 7px; margin-top: 17px; }
.recruitment-quick-questions button { min-height: 40px; border: 1px solid #cbd4cd; border-radius: 10px; background: #fffdf8; color: var(--ink); padding: 8px 11px; font-size: 10px; font-weight: 850; text-align: left; cursor: pointer; }
.recruitment-quick-questions button::before { content: "问"; display: inline-grid; width: 19px; height: 19px; margin-right: 7px; place-items: center; border-radius: 50%; background: #e4f0e7; color: var(--green); font-size: 8px; }

.recruitment-messages { min-height: 150px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; margin-top: 13px; padding: 12px; border: 1px solid #d8d6cc; border-radius: 12px; background: #fff; scrollbar-gutter: stable; }
.recruitment-message { max-width: 91%; align-self: flex-start; }
.recruitment-message.is-user { align-self: flex-end; }
.recruitment-message-role { display: block; margin: 0 5px 3px; color: var(--muted); font-size: 8px; font-weight: 850; }
.recruitment-message p { margin: 0; padding: 9px 11px; border-radius: 3px 11px 11px; background: #eaf2ec; color: #294137; font-size: 10px; line-height: 1.55; }
.recruitment-message.is-user p { border-radius: 11px 3px 11px 11px; background: var(--green); color: #fff; }
.recruitment-message.is-user .recruitment-message-role { text-align: right; }

.recruitment-free-form { margin-top: 13px; }
.recruitment-free-form > label { display: block; margin-bottom: 5px; font-size: 9px; font-weight: 850; }
.recruitment-free-form > div { display: grid; grid-template-columns: minmax(0, 1fr) 40px; overflow: hidden; border: 1px solid #b9c0ba; border-radius: 10px; background: #fff; }
.recruitment-free-form input { min-width: 0; min-height: 42px; border: 0; background: transparent; padding: 8px 10px; color: var(--ink); font-size: 10px; outline: 0; }
.recruitment-free-form button { border: 0; background: var(--green); color: #fff; cursor: pointer; font-size: 16px; }
.recruitment-free-form > div:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 91, 60, .12); }

.recruitment-progress { display: flex; overflow-x: auto; gap: 4px; margin: 18px 0 0; padding: 0 0 8px; list-style: none; scrollbar-width: thin; }
.recruitment-progress li { min-width: 68px; display: grid; justify-items: center; gap: 4px; color: #8a918b; text-align: center; }
.recruitment-progress span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cfd2cc; border-radius: 50%; background: #fff; font-size: 8px; font-weight: 950; }
.recruitment-progress small { max-width: 76px; font-size: 8px; line-height: 1.25; }
.recruitment-progress li[data-state="current"] { color: var(--green); }
.recruitment-progress li[data-state="current"] span { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgba(11,91,60,.1); }
.recruitment-progress li[data-state="complete"] { color: #4a6657; }
.recruitment-progress li[data-state="complete"] span { border-color: #b8d0bf; background: #e2efe5; color: var(--green); }

.recruitment-start-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-top: 12px; padding: 16px; border: 1px solid #d8d4c9; border-radius: 13px; background: #fffdf8; }
.recruitment-start-card > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e4f0e7; color: var(--green); font-size: 22px; }
.recruitment-start-card strong,
.recruitment-start-card p { display: block; margin: 0; }
.recruitment-start-card strong { font-size: 13px; }
.recruitment-start-card p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.recruitment-start-card .button { min-height: 42px; }
[data-started="true"] .recruitment-start-card { display: none; }

.recruitment-step-prompt,
.recruitment-summary { margin-top: 13px; padding: 18px; border: 1px solid #d8d4c9; border-radius: 14px; background: #fffdf8; }
.recruitment-step-heading > span { color: var(--red); font-size: 9px; font-weight: 950; }
.recruitment-step-heading h3 { margin: 3px 0 0; font-size: 22px; line-height: 1.18; }
.recruitment-step-heading p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.recruitment-step-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.recruitment-assistant-field { min-width: 0; display: grid; gap: 5px; color: #394b41; font-size: 10px; font-weight: 850; }
.recruitment-assistant-field input,
.recruitment-assistant-field select,
.recruitment-assistant-field textarea { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #bcc3bd; border-radius: 10px; background: #fff; color: var(--ink); padding: 9px 10px; font-size: 11px; outline: 0; }
.recruitment-assistant-field textarea { resize: vertical; }
.recruitment-assistant-field input:focus,
.recruitment-assistant-field select:focus,
.recruitment-assistant-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,91,60,.1); }
.recruitment-choice-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recruitment-choice { min-width: 0; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #d1d4ce; border-radius: 10px; background: #fff; padding: 10px; color: #35483e; font-size: 10px; font-weight: 800; cursor: pointer; }
.recruitment-choice:has(input:checked) { border-color: var(--green); background: #eaf3ec; color: var(--green-deep); }
.recruitment-choice input { flex: 0 0 auto; accent-color: var(--green); }
.recruitment-inline-warning { grid-column: 1 / -1; margin: 0; padding: 10px; border-left: 3px solid var(--yellow); background: #fff8df; color: #6d5a24; font-size: 10px; }
.recruitment-step-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.recruitment-step-actions .button { min-height: 41px; }

.recruitment-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.recruitment-summary > header small { color: var(--red); font-size: 9px; font-weight: 950; }
.recruitment-summary h3 { margin: 2px 0 0; font-size: 22px; }
.recruitment-summary > header .button { min-height: 38px; padding: 7px 12px; }
.recruitment-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; margin: 14px 0 0; border: 1px solid #dcd8cf; border-radius: 11px; }
.recruitment-summary-row { min-width: 0; padding: 10px 12px; border-bottom: 1px solid #e1ded6; }
.recruitment-summary-row:nth-child(odd) { border-right: 1px solid #e1ded6; }
.recruitment-summary-row dt,
.recruitment-summary-row dd { margin: 0; }
.recruitment-summary-row dt { color: var(--muted); font-size: 8px; font-weight: 850; }
.recruitment-summary-row dd { overflow-wrap: anywhere; margin-top: 2px; font-size: 10px; font-weight: 850; }
.recruitment-summary-editor { margin-top: 13px; padding: 13px; border: 1px solid #c5d4c9; border-radius: 11px; background: #eef4ef; }
.recruitment-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.recruitment-editor-grid > label:not(.recruitment-editor-check) { min-width: 0; display: grid; gap: 4px; color: #405046; font-size: 9px; font-weight: 850; }
.recruitment-editor-grid .is-wide { grid-column: 1 / -1; }
.recruitment-editor-grid input,
.recruitment-editor-grid textarea { width: 100%; min-width: 0; border: 1px solid #b9c3bb; border-radius: 8px; background: #fff; color: var(--ink); padding: 8px 9px; font-size: 10px; }
.recruitment-editor-check { display: flex; align-items: flex-start; gap: 7px; color: #35483e; font-size: 9px; line-height: 1.45; }
.recruitment-editor-check input { width: auto; margin-top: 2px; accent-color: var(--green); }
.recruitment-editor-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.recruitment-editor-actions .button { min-height: 38px; }
.recruitment-summary-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.recruitment-summary-actions .button { min-height: 42px; }
.recruitment-summary > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.recruitment-assistant-status { margin: 12px 0 0; padding: 9px 11px; border-left: 3px solid #bdc9c0; background: #f0f1ec; color: #56625b; font-size: 9px; }
.recruitment-assistant-status[data-state="loading"] { border-color: var(--yellow); background: #fff8df; color: #6c581f; }
.recruitment-assistant-status[data-state="success"] { border-color: var(--green); background: #e9f3eb; color: #24523c; }
.recruitment-assistant-status[data-state="error"] { border-color: var(--red); background: #fff0ec; color: #73392f; }
.recruitment-direct-application { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.06); }
.recruitment-direct-application strong,
.recruitment-direct-application span { display: block; }
.recruitment-direct-application strong { color: #fff; font-size: 12px; }
.recruitment-direct-application span { margin-top: 3px; color: #b9c9be; font-size: 9px; }
.recruitment-direct-application .button { flex: 0 0 auto; border-color: #b8c9bd; color: #fff; }

.recruitment-role-card:focus-visible,
.recruitment-quick-questions button:focus-visible,
.recruitment-free-form button:focus-visible,
.recruitment-choice:focus-within,
.recruitment-assistant-section .button:focus-visible,
.recruitment-teaser a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .recruitment-section-heading,
  .recruitment-assistant-heading { grid-template-columns: 1fr; align-items: start; gap: 17px; }
  .recruitment-coverage-facts { width: min(100%, 470px); }
  .recruitment-overview-layout { grid-template-columns: 1fr; }
  .recruitment-role-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .recruitment-role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruitment-assistant-layout { grid-template-columns: 1fr; }
  .recruitment-question-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .recruitment-messages { max-height: 220px; }
}

@media (max-width: 760px) {
  .recruitment-teaser-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .recruitment-teaser-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 21px; }
  .recruitment-teaser-actions { grid-column: 1 / -1; justify-content: space-between; }
  .recruitment-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruitment-start-card { grid-template-columns: 38px minmax(0, 1fr); }
  .recruitment-start-card > i { width: 38px; height: 38px; }
  .recruitment-start-card .button { grid-column: 1 / -1; width: 100%; }
  .recruitment-progress li { min-width: 62px; }
  .recruitment-direct-application { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .recruitment-overview-section,
  .recruitment-assistant-section { scroll-margin-top: 72px; }
  .recruitment-coverage-facts { grid-template-columns: 1fr; }
  .recruitment-coverage-facts span + span { border-top: 1px solid #cfd8d1; border-left: 0; }
  .recruitment-city-strip { grid-template-columns: 1fr; gap: 6px; }
  .recruitment-role-list,
  .recruitment-detail-grid,
  .recruitment-step-fields,
  .recruitment-choice-grid,
  .recruitment-summary dl,
  .recruitment-editor-grid { grid-template-columns: 1fr; }
  .recruitment-role-detail,
  .recruitment-role-panel,
  .recruitment-question-panel,
  .recruitment-workflow-panel { padding: 18px; }
  .recruitment-detail-grid article { min-height: 0; }
  .recruitment-summary-row:nth-child(odd) { border-right: 0; }
  .recruitment-editor-grid .is-wide { grid-column: auto; }
  .recruitment-step-actions,
  .recruitment-summary-actions { display: grid; grid-template-columns: 1fr; }
  .recruitment-step-actions .button,
  .recruitment-summary-actions .button { width: 100%; }
  .recruitment-summary > header { align-items: flex-start; }
}

@media (max-width: 460px) {
  .recruitment-teaser-actions { align-items: stretch; flex-direction: column; }
  .recruitment-teaser-actions .button { width: 100%; }
  .recruitment-detail-actions { display: grid; grid-template-columns: 1fr; }
  .recruitment-detail-actions .button { width: 100%; }
  .recruitment-assistant-heading h2,
  .recruitment-section-heading h2 { font-size: 34px; }
  .recruitment-ai-disclosure { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .recruitment-role-card,
  .recruitment-assistant-section .button { transition: none; }
}
