.job-detail-page .job-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #f3f7ff, #fff 70%);
  padding-block: 36px 42px;
}
.job-detail-page .job-hero .back-link { margin-bottom: 24px; }
.job-detail-page .job-meta { gap: 8px; margin-bottom: 12px; }
.job-detail-page .job-meta span {
  border-radius: 4px;
  border-color: #cbd9f5;
  background: #eaf1ff;
  color: #174788;
  font-size: .78rem;
  padding: 5px 10px;
}
.job-detail-page .job-meta .job-status[data-status="open"] {
  border-color: #a9ddc3;
  background: #e9f8f0;
  color: #176641;
}
.job-detail-page .job-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  color: #151e2d;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.job-detail-page .job-hero .job-hero-subtitle { max-width: none; color: #506071; font-size: .92rem; }
.job-detail-page .content-section { padding-block: 0 64px; }
.job-detail-page .content-section > .shell { min-width: 0; }
.job-next-step { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0 0; padding: 20px 24px; border: 1px solid #bcd0f7; border-left: 4px solid #0756e8; border-radius: 8px; background: #f5f8ff; }
.job-next-step > div { min-width: 0; }
.job-next-step-kicker { display: block; margin-bottom: 5px; color: #0756e8; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.job-next-step strong { display: block; color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.job-next-step p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.job-next-step .button { flex: 0 0 auto; white-space: nowrap; }
html[data-color-mode="dark"] .job-next-step { background: #18253a; border-color: #3d5f92; border-left-color: #7baeff; }
html[data-color-mode="dark"] .job-next-step-kicker { color: #a9caff; }
.job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.job-facts > div { min-width: 0; padding: 21px 24px 22px 0; }
.job-facts > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.job-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.job-facts strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.job-facts > div:first-child strong { color: #875313; font-size: 1.15rem; }
.job-detail-page .job-view-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(24px, 5vw, 72px); }
.job-detail-page .job-view-copy { min-width: 0; }
.job-detail-page .job-view-copy h2 { margin: 0 0 14px; color: var(--ink); font-size: 1.4rem; }
.job-detail-page .job-view-copy h2:not(:first-child) { margin-top: 38px; }
.job-detail-page .job-section-title { display: flex; align-items: center; gap: 12px; }
.job-detail-page .job-section-title img { width: 42px; height: 42px; padding: 9px; border-radius: 6px; background: var(--tint, #eaf1ff); }
html[data-color-mode="dark"] .job-detail-page .job-section-title img { filter: brightness(0) invert(1); background: transparent; border: 1px solid var(--line); }
.job-detail-page .job-description { max-width: 72ch; margin-bottom: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.job-detail-page .reply-panel { border-color: #cbd9f5; border-radius: 6px; border-top: 3px solid var(--brand-primary, #0756e8); box-shadow: none; }
.job-detail-page .reply-panel h2 { color: var(--ink); font-size: 1.2rem; line-height: 1.3; }
.job-detail-page .reply-panel .button { width: 100%; }
.job-detail-page .legacy-reply { border-top: 1px solid var(--line); padding-top: 16px; }
.job-detail-page .legacy-reply summary { color: var(--brand-primary, #0756e8); font-weight: 750; cursor: pointer; }
.job-detail-page .legacy-reply > p { margin: 10px 0 0; font-size: .82rem; }
.job-detail-page .legacy-reply .reply-form { margin-top: 14px; }
.job-detail-page .legacy-reply textarea { min-height: 88px; }
.job-detail-page .message-panel { margin-top: 38px; padding-top: 28px; }
.job-detail-page .message-panel-head { margin-bottom: 12px; }
.job-detail-page .message-list { max-width: none; min-height: 120px; gap: 8px; padding: 18px clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: 8px; background: var(--wash, #f6f8fc); }
.job-detail-page .message-item { width: fit-content; max-width: min(72%, 610px); padding: 11px 14px; border-radius: 12px 12px 12px 3px; box-shadow: 0 1px 3px rgba(17, 30, 50, .05); }
.job-detail-page .message-item-own { border-radius: 12px 12px 3px 12px; }
.job-detail-page .message-item-system { width: min(100%, 560px); max-width: 100%; margin: 7px auto; border-style: dashed; border-radius: 8px; background: var(--surface, #fff); }
.job-detail-page .message-item-head { flex-wrap: wrap; gap: 4px 14px; }
.job-detail-page .message-composer { max-width: none; margin-top: 14px; }
.job-detail-page .message-composer textarea { min-height: 76px; }
.job-detail-page .booking-workflow { gap: 14px; margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--brand-primary, #0756e8); border-radius: 8px; background: var(--surface, #fff); }
.job-detail-page #booking-workflow-title { scroll-margin-top: 100px; }
.job-detail-page .booking-summary { gap: 10px 22px; }
.job-detail-page .booking-summary > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.booking-edit { border-top: 1px solid var(--line); padding-top: 14px; }
.booking-edit summary { width: fit-content; color: var(--brand-primary, #0756e8); font-weight: 750; cursor: pointer; }
.booking-edit .booking-form { margin-top: 18px; }
.booking-edit summary:focus-visible, .legacy-reply summary:focus-visible { outline: 2px solid var(--brand-primary, #0756e8); outline-offset: 3px; }
html[data-color-mode="dark"] .job-detail-page .job-hero { background: linear-gradient(115deg, #18253a, #10141d 70%); }
html[data-color-mode="dark"] .job-detail-page .job-hero h1 { color: #f4f5f7; }
html[data-color-mode="dark"] .job-detail-page .job-hero .job-hero-subtitle { color: #b2bac7; }
html[data-color-mode="dark"] .job-detail-page .job-meta span { background: #203658; border-color: #3d5f92; color: #d0e1ff; }
html[data-color-mode="dark"] .job-detail-page .job-meta .job-status[data-status="open"] { background: #163b2d; border-color: #2c684d; color: #a4e7c2; }
html[data-color-mode="dark"] .job-facts > div:first-child strong { color: #f3c365; }
html[data-color-mode="dark"] .job-detail-page .reply-panel { background: var(--surface); border-color: var(--line); border-top-color: var(--brand-primary); }
@media (max-width: 900px) {
  .job-detail-page .job-view-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .job-detail-page .reply-panel { max-width: 100%; }
}
@media (max-width: 600px) {
  .job-detail-page .booking-workflow { padding: 16px; }
  .job-detail-page .message-list { padding: 12px; }
  .job-detail-page .message-item { max-width: 90%; }
  .job-detail-page .message-item-system { max-width: 100%; }
  .job-next-step { align-items: stretch; flex-direction: column; padding: 18px; }
  .job-next-step .button { width: 100%; text-align: center; }
  .job-detail-page .job-hero { padding-block: 24px 29px; }
  .job-detail-page .job-hero .back-link { margin-bottom: 18px; }
  .job-detail-page .job-hero h1 { font-size: 1.75rem; }
  .job-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 26px; }
  .job-facts > div { padding: 15px 12px 15px 0; }
  .job-facts > div + div { padding-left: 12px; }
  .job-facts > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .job-detail-page .job-description { font-size: 1rem; }
}
