.project-dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; border: 1px solid #dce2e7; border-radius: 8px; color: #243342; background: #fff; overflow-y: auto; }
.project-dialog::backdrop { background: rgb(15 26 34 / 55%); }
.project-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.project-dialog h2 { font-size: 24px; line-height: 1.3; margin: 4px 0 8px; letter-spacing: 0; }
.eyebrow { color: #536777; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #dce2e7; border-radius: 6px; background: #fff; color: #344a5b; cursor: pointer; }
.project-dialog .form-label { display: block; margin: 18px 0 8px; }
.project-dialog .form-control { width: 100%; box-sizing: border-box; border-radius: 6px; min-width: 0; }
.project-dialog textarea { resize: vertical; }
.project-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-field-row > div { min-width: 0; }
.field-hint { color: #576575; font-size: 13px; line-height: 1.5; margin: 8px 0 16px; }
.project-dialog [hidden], .experience-onboarding [hidden] { display: none !important; }
.profile-mobile-actions { display: none; }
body.profile-unavailable .profile-mobile-actions { display: none !important; }
body.profile-unavailable { padding-bottom: 0 !important; }
.search-recovery { grid-column: 1 / -1; text-align: center; padding: 32px 16px; }
.search-recovery img { width: 180px; height: 135px; object-fit: contain; }
.search-recovery h3 { margin: 16px 0 8px; font-size: 21px; }
.search-recovery p { max-width: 460px; margin: 0 auto 20px; color: #536777; }
.search-recovery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.result-portrait { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 6px; }
.result-portrait[hidden] { display: none !important; }
.experience-checklist .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.search-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-tools > div { min-width: 0; }
.search-tools .filters-toggle { position: relative; inset: auto; flex-shrink: 0; box-shadow: none; }
.experience-onboarding { position: relative; margin-bottom: 24px; padding: 20px; border: 1px solid #dde3e8; border-left: 4px solid #ff6b35; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgb(23 38 51 / 6%); }
.experience-onboarding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.experience-onboarding-heading { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.experience-onboarding-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: #fff0ea; color: #e5531f; font-size: 18px; }
.experience-onboarding-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; color: #667481; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.experience-onboarding h2 { margin: 0 0 4px; color: #172638; font-size: 20px; line-height: 1.3; }
.experience-onboarding p { margin: 0; color: #64717d; font-size: 14px; line-height: 1.5; }
.experience-visibility { display: inline-flex; align-items: center; gap: 5px; color: #7a5b16; }
.experience-visibility.is-visible { color: #14795d; }
.experience-progress-count { flex: 0 0 auto; color: #172638; font-size: 18px; }
.experience-progress-track { height: 6px; margin: 16px 0 18px; overflow: hidden; border-radius: 3px; background: #edf0f2; }
.experience-progress-track span { display: block; height: 100%; border-radius: inherit; background: #ff6b35; transition: width 240ms ease; }
.experience-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0; margin: 0; list-style: none; }
.experience-checklist li { min-width: 0; border-top: 1px solid #edf0f2; }
.experience-checklist a { display: flex; align-items: center; gap: 11px; min-height: 66px; color: #172638; text-decoration: none; }
.experience-checklist a:hover strong { color: #d94d1b; }
.experience-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #ffd0bf; border-radius: 50%; color: #e5531f; background: #fff7f3; font-size: 11px; }
.experience-checklist .is-done .experience-step-icon { border-color: #b7e1d3; color: #14795d; background: #edf9f5; }
.experience-step-copy { display: grid; min-width: 0; gap: 2px; }
.experience-step-copy strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; transition: color 160ms ease; }
.experience-step-copy small { color: #6d7984; font-size: 12px; line-height: 1.35; }
.experience-checklist .is-done .experience-step-copy small { color: #14795d; }
.experience-step-chevron { margin-left: auto; color: #9aa4ad; font-size: 11px; }
.experience-status { margin-top: 8px; font-weight: 600; }
.quote-workspace { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0 24px; padding-block: 16px; border-block: 1px solid #dce2e7; }
.quote-workspace label { display: block; font-size: 13px; margin-bottom: 6px; }
.quote-workspace select { min-width: 180px; max-width: 100%; }
.quote-workspace-status { flex-basis: 100%; font-size: 13px; color: #526574; }
.quote-delivery { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.quote-delivery > div { flex: 1 1 250px; min-width: 0; }
.quote-delivery label { display: block; font-size: 13px; margin-bottom: 6px; }
.quote-delivery select { width: 100%; min-width: 0; }
.quote-delivery .field-hint { flex-basis: 100%; overflow-wrap: anywhere; margin: 0; }
.quote-delivery button:disabled { opacity: .5; cursor: not-allowed; }
.quote-history { border-top: 1px solid #dce2e7; padding-top: 24px; }
.quote-history h3 { font-size: 18px; margin-bottom: 12px; }
.quote-history-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e8edf0; }
.quote-history-row > div:first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.quote-history-row small { display: block; color: #657380; margin-top: 4px; }
.quote-history-actions { display: flex; gap: 8px; }
.conversation-quote-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; padding: 10px 12px; border: 1px solid #ffd0bf; border-radius: 6px; color: #bd411a; background: #fff3ee; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.quote-message-row { display: flex; justify-content: flex-start; margin-bottom: 12px; }
.quote-message-row.is-mine { justify-content: flex-end; }
.quote-message { width: min(340px, 100%); box-sizing: border-box; padding: 16px; border: 1px solid #d3e2eb; border-radius: 8px; background: #fff; color: #263b4b; overflow-wrap: anywhere; }
.quote-message-heading { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.quote-message p { font-size: 14px; margin: 12px 0; }
.quote-message-heading small { display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.quote-message-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.quote-message time { display: block; text-align: right; color: #667785; font-size: 11px; margin-top: 8px; }
.quote-preview-dialog { width: min(950px, calc(100% - 24px)); height: min(850px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dce2e7; border-radius: 8px; background: #fff; color: #243342; }
.quote-preview-dialog[open] { display: flex; flex-direction: column; }
.quote-preview-dialog::backdrop { background: rgb(15 26 34 / 60%); }
.quote-preview-header, .quote-preview-footer { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.quote-preview-header { flex-wrap: nowrap; }
.quote-preview-header > div { min-width: 0; overflow-wrap: anywhere; }
.quote-preview-header h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: 0; }
.quote-preview-header p { margin: 0; font-size: 13px; color: #526574; }
.quote-preview-pages { overflow-y: auto; min-height: 120px; flex: 1; background: #edf0f2; padding: 16px; }
.quote-preview-pages canvas { display: block; width: 100%; height: auto; margin: 0 auto 16px; background: white; box-shadow: 0 2px 8px rgb(23 38 51 / 8%); }
.quote-preview-footer p { flex-basis: 100%; margin: 0; font-size: 13px; color: #a83920; overflow-wrap: anywhere; }
.quote-preview-footer button:disabled { opacity: .5; }
@media (max-width: 600px) {
  .conversation-thread-header { flex-wrap: wrap; padding: 14px !important; gap: 10px !important; }
  .conversation-thread-header > div:last-of-type { flex-basis: calc(100% - 120px); }
  .conversation-quote-button { margin-left: 0; }
  .quote-workspace > div { width: 100%; min-width: 0; }
  .quote-workspace select { width: 100%; }
  .quote-delivery .btn, .quote-preview-footer .btn { white-space: normal; font-size: 13px; padding: 10px 12px; }
}
.project-progress { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0; padding: 0; list-style: none; font-size: 13px; color: #626d78; }
.project-progress [aria-current="step"] { color: #005681; font-weight: 700; }
.project-progress .done { color: #168363; }
.profile-card-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
@media (max-width: 768px) {
  .filters-toggle { width: auto; height: 48px; padding: 0 18px; gap: 8px; border-radius: 6px; font-size: 14px; }
  .project-dialog { padding: 20px; }
  .project-field-row { grid-template-columns: 1fr; gap: 0; }
  .project-dialog button[type="submit"] { width: 100%; white-space: normal; }
  .profile-mobile-actions { display: flex; position: fixed; bottom: 0; left: 0; right: 0; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid #dce2e7; z-index: 950; }
  .profile-mobile-actions .btn-primary { flex: 1; font-size: 14px; }
  body:has(.profile-mobile-actions) { padding-bottom: 90px; }
  body:has(dialog[open]) .profile-mobile-actions { visibility: hidden; }
  .experience-onboarding { padding: 16px; }
  .experience-onboarding-header { gap: 12px; }
  .experience-onboarding-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .experience-onboarding-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .experience-onboarding h2 { font-size: 18px; }
  .experience-progress-count { font-size: 16px; }
  .experience-checklist { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .animate-fade-up { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; } }
