/* Client presentation only. Staff management retains its existing layout. */
.client-portal { background: #f5f5f1; color: #29332c; }
.client-portal a { color: #44623e; }
.client-portal .muted, .client-portal small { color: #657164; }
.client-portal :is(a, button, summary, input, textarea):focus-visible { outline: 2px solid #46623c; outline-offset: 4px; }
.client-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(24px, calc((100% - 1100px) / 2)); background: #fff; border-bottom: 1px solid #e1e5dc; }
.client-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; }
.client-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #46623c; color: #fff; font: 24px Georgia, serif; }
.client-brand-label { color: #657164; font-size: 12px; font-weight: 400; margin-left: 7px; }
.client-navigation { display: flex; align-items: center; gap: 23px; font-size: 12px; }
.client-navigation > a[aria-current=page] { text-decoration: underline; text-underline-offset: 7px; }
.client-account { position: relative; }
.client-account > summary { list-style: none; padding: 0; margin: 0; }
.client-account > summary::-webkit-details-marker { display: none; }
.client-account > div { position: absolute; right: 0; z-index: 2; min-width: 190px; max-width: 270px; padding: 18px; background: #fff; border: 1px solid #dce2d6; border-radius: 8px; box-shadow: 0 6px 25px #24332112; overflow-wrap: anywhere; }
.client-account .text-button { margin-top: 12px; }
.client-workspace .main { max-width: 1100px; padding: 32px 24px 50px; }
.client-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.client-page-heading > div { min-width: 0; }
.client-page-heading h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(29px, 3.5vw, 38px); letter-spacing: -.8px; margin: 6px 0 9px; overflow-wrap: anywhere; }
.client-eyebrow { color: #657164; font-size: 12px; line-height: 1.5; }
.client-description { font-size: 13px; line-height: 1.65; color: #657164; max-width: 680px; margin-bottom: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.client-meta { display: flex; align-items: center; gap: 5px 16px; flex-wrap: wrap; color: #657164; font-size: 12px; }
.client-review-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 9px 12px; background: #f4ecdc; color: #795820 !important; border-radius: 6px; font-size: 12px; }
.client-phase { background: #fff; border: 1px solid #dfe4d8; border-radius: 10px; margin-top: 16px; }
.client-phase-current { border-color: #68835b; }
.client-phase-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 19px 22px 15px; }
.client-phase-title { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.client-phase-title > div { min-width: 0; }
.client-phase-title h2 { font-size: 18px; font-weight: 550; letter-spacing: -.25px; overflow-wrap: anywhere; }
.client-phase-number { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; background: #f3f5ef; color: #657164; border-radius: 8px; font-size: 12px; }
.client-phase-current .client-phase-number { background: #edf3e6; color: #46623c; }
.client-phase-description { font-size: 12px; line-height: 1.5; color: #657164; margin-top: 3px; overflow-wrap: anywhere; }
.client-portal .badge { color: #5f6b5e; font-size: 11px; }
.client-portal .badge.complete { color: #46623c; background: #edf3e6; }
.client-portal .badge.in_progress { color: #46623c; background: #edf3e6; }
.client-milestones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; padding: 0 22px 16px; }
.client-milestone { min-width: 0; }
.client-milestone-heading { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; border-top: 1px solid #e3e7dc; padding-top: 12px; margin-bottom: 4px; }
.client-milestone-heading h3 { font-size: 11px; font-weight: 550; letter-spacing: .3px; text-transform: uppercase; color: #616e5e; overflow-wrap: anywhere; }
.client-milestone-heading h3 span { margin-right: 5px; }
.client-milestone-heading time { font-size: 11px; color: #657164; }
.client-milestone-description { font-size: 12px; color: #657164; line-height: 1.5; margin: 7px 0; overflow-wrap: anywhere; }
.client-deliverable { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 7px; border-radius: 6px; }
.client-deliverable:hover { background: #f7f8f4; }
.client-deliverable[aria-expanded=true] { background: #edf3e6; }
.client-deliverable-code { color: #697762; font-size: 11px; flex: 0 0 29px; overflow-wrap: anywhere; }
.client-deliverable-copy { flex: 1; min-width: 0; }
.client-deliverable-copy strong { color: #29332c; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.client-deliverable-copy small { font-size: 11px; margin-top: 2px; }
.client-deliverable-copy .client-review-status, .client-detail-status.ready_for_review { color: #856028; }
.client-deliverable-arrow { color: #77816f; font-size: 20px; }
.client-deliverable[aria-expanded=true] .client-deliverable-arrow { transform: rotate(90deg); }
.client-overview-footer { color: #657164; font-size: 11px; margin-top: 20px; }
.client-inline-detail { border-top: 1px solid #dfe4d8; background: #f7f8f4; border-radius: 0 0 10px 10px; }
.client-portal [hidden] { display: none !important; }
.client-portal turbo-frame { display: block; }
.client-loading { padding: 24px; font-size: 13px; color: #657164; }
.client-loading a { text-decoration: underline; margin-right: 20px; }
.client-deliverable-detail { padding: 25px; background: #f7f8f4; border-radius: 10px; }
.client-detail-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.client-detail-heading > div { min-width: 0; }
.client-detail-heading h2 { font-size: 23px; font-weight: 550; margin: 4px 0 8px; overflow-wrap: anywhere; }
.client-close { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: #657164; padding: 6px; font-size: 12px; }
.client-close span { font-size: 20px; }
.inline-only { display: none; }
.client-overview .inline-only { display: inline-flex; }
.client-detail-description { max-width: 780px; margin: 18px 0 24px; }
.client-documents { background: #fff; border: 1px solid #e0e5d9; border-radius: 8px; padding: 18px 20px; }
.client-documents h3 { font-size: 14px; font-weight: 550; margin-bottom: 6px; }
.client-documents .count { margin-left: 5px; }
.client-file { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e3e7dc; }
.client-file:last-child { border: 0; padding-bottom: 0; }
.client-file > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.client-file strong { font-size: 13px; font-weight: 550; }
.client-file small { font-size: 11px; }
.client-file .button { flex-shrink: 0; }
.client-portal .button { background: #3f5d35; border-color: #3f5d35; color: #fff; }
.client-portal .button:hover { background: #304929; }
.client-portal .button.secondary { background: #fff; border-color: #d7dfcf; color: #44623e; }
.client-portal .button.secondary:hover { background: #f0f4e9; }
.client-discussion { margin-top: 23px; }
.client-discussion > summary { font-size: 14px; color: #34492e; }
.client-discussion > summary .count { margin-left: 6px; }
.client-discussion[open] > summary { margin-bottom: 10px; }
.client-portal .comment { padding: 18px 0; }
.client-comment-form { margin-top: 20px; }
.client-attachment { margin-top: 12px; }
.client-attachment > summary, .client-notifications > summary { font-weight: 400; font-size: 12px; }
.client-notifications { margin-top: 25px; padding-top: 14px; border-top: 1px solid #dfe5d7; }
.client-notification-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.client-notifications .fine-print { color: #657164; }
.client-engagement-list { display: grid; gap: 14px; }
.client-engagement-choice { display: flex; align-items: center; gap: 20px; padding: 23px; background: #fff; border: 1px solid #dfe4d8; border-radius: 10px; }
.client-engagement-choice > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.client-engagement-choice h2 { font-size: 20px; margin: 4px 0; }
.client-engagement-choice .muted { font-size: 13px; }
.client-engagement-choice:hover { border-color: #68835b; }
@media (max-width: 680px) {
  .client-header { padding: 13px 16px; gap: 12px; flex-wrap: wrap; }
  .client-brand-label { display: none; }
  .client-navigation { gap: 13px; font-size: 11px; }
  .client-workspace .main { padding: 24px 16px 40px; }
  .client-page-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .client-milestones { grid-template-columns: 1fr; gap: 13px; padding: 0 15px 15px; }
  .client-phase-heading { padding: 17px 15px; }
  .client-phase-heading .badge { max-width: 100px; white-space: normal; flex-shrink: 0; }
  .client-phase-title { gap: 9px; }
  .client-phase-title h2 { font-size: 17px; }
  .client-deliverable-detail { padding: 19px 15px; }
  .client-detail-heading h2 { font-size: 21px; }
  .client-documents { padding: 15px; }
  .client-file { align-items: flex-start; flex-direction: column; gap: 10px; }
  .client-portal :is(textarea, input:not([type=submit]):not([type=checkbox]), select) { font-size: 16px; }
  .client-engagement-choice { gap: 10px; padding: 18px; flex-wrap: wrap; }
  .client-engagement-choice > div { flex-basis: 100%; }
}
@media (pointer: coarse) {
  .client-navigation > a, .client-account > summary, .client-portal .button, .client-close, .client-portal summary { min-height: 44px; display: inline-flex; align-items: center; }
}
