.client-page {
  --client-green: #275f51;
  --client-rose: #853954;
  max-width: 1000px;
}
.client-page > .page-heading { margin-bottom: 28px; }
.client-title { display: flex; align-items: center; gap: 13px; }
.client-title > svg { width: 27px; height: 27px; color: var(--client-green); }
.client-allowance { width: 116px; flex: none; }
.client-allowance .quota { display: block; padding: 0 0 9px; border: 0; background: none; text-align: right; font-size: 16px; }
#question-progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 2px; overflow: hidden; appearance: none; background: #e7ece9; }
#question-progress::-webkit-progress-bar { background: #e7ece9; }
#question-progress::-webkit-progress-value { background: var(--client-green); }
#question-progress::-moz-progress-bar { background: var(--client-green); }
.client-layout { display: flex; flex-direction: column; gap: 30px; }
.client-context { padding: 25px 28px; background: #f4f7f5; border-top: 2px solid #417b66; }
.client-note-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.client-context h2 { font-size: 20px; color: #243b32; line-height: 1.4; }
.client-context p { font-size: 17px; line-height: 1.65; margin-bottom: 15px; }
.client-brief-link { display: inline-flex; align-items: center; gap: 5px; color: var(--client-green); text-decoration: underline; text-underline-offset: 4px; }
.client-brief-link svg { width: 16px; height: 16px; }
.speaker-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; }
.speaker-mark svg { width: 21px; height: 21px; }
.team-mark { background: var(--client-green); color: white; }
.team-mark svg { width: 23px; height: 23px; }
.user-mark { color: var(--client-rose); background: #f4e8ed; }
.client-conversation { min-width: 0; }
.client-page #question-form { max-width: none; gap: 12px; }
.client-page #question-form > label { font-size: 19px; }
.question-composer { background: #fff; border: 1px solid #a9b9b0; border-radius: 8px; box-shadow: 0 3px 14px #243b3210; overflow: hidden; transition: border-color 140ms, box-shadow 140ms; }
.question-composer:focus-within { border-color: #397c67; box-shadow: 0 0 0 3px #397c671a; }
.client-page #question-form textarea { display: block; width: 100%; min-height: 115px; resize: vertical; padding: 18px 20px 10px; border: 0; border-radius: 0; outline: none; background: transparent; font-size: 17px; line-height: 1.6; }
.client-page #question-form textarea::placeholder { color: #65736b; }
.client-page .question-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 12px; }
#question-remaining { font-variant-numeric: tabular-nums; color: var(--muted); }
.client-page #question-form button { min-width: 88px; min-height: 40px; padding: 9px 14px; border-radius: 6px; background: var(--client-green); border-color: var(--client-green); }
.client-page #question-form button:hover { background: #1d4a3f; }
.client-page .page-description { color: #48554d; font-size: 16px; line-height: 1.6; max-width: none; margin: 18px 0 0; }
#question-history { margin-top: 38px; }
.question-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dbe4de; padding-bottom: 18px; }
.question-history-heading h2 { font-size: 20px; }
.question-history-heading .search { display: flex; margin: 0; width: 260px; }
.question-history-heading .search input { font-size: 16px; background: #fff; padding-top: 9px; padding-bottom: 9px; }
.client-page #questions { max-width: none; margin: 0; }
.client-page .question-item { border-top: 0; border-bottom: 1px solid #e3e8e4; padding: 28px 0 32px; outline-offset: 8px; scroll-margin-top: 85px; }
.client-user-message { display: flex; justify-content: flex-end; gap: 12px; align-items: flex-start; margin: 0 0 23px 48px; }
.question-bubble { max-width: 85%; min-width: min(290px, 100%); padding: 14px 18px; border-radius: 8px 2px 8px 8px; background: #f7eff2; }
.message-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; }
.question-bubble .message-heading { color: #753c50; margin-bottom: 6px; font-size: 15px; }
.client-page .question-number { margin: 0; color: #71616a; font-size: 15px; white-space: nowrap; }
.client-page .question-item h2 { font-size: 18px; font-weight: 500; line-height: 1.6; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.client-page .question-topic { display: inline-block; margin: 10px 0 0; padding: 2px 7px; border: 1px solid #ddcdd3; border-radius: 4px; background: #ffffff80; color: #654d57; font-size: 14px; line-height: 1.6; }
.client-reply-row { display: flex; align-items: flex-start; gap: 14px; margin-right: 36px; }
.client-page .client-answer { flex: 1; min-width: 0; padding: 0; border: 0; }
.client-page .client-answer h3 { font-size: 16px; margin: 0; color: var(--client-green); }
.client-page .client-answer .message-heading { margin-bottom: 5px; }
.client-page .client-answer p { font-size: 17px; line-height: 1.7; white-space: pre-wrap; }
.client-page .client-answer .client-introduction { font-size: 16px; color: #4e5c53; }
.client-team-reply { margin: 15px 0 0; padding: 0; border: 0; }
.client-team-reply p + p { margin-top: 15px; }
.copy-client-reply { color: #64746b; }
.copy-client-reply:hover { background: #eaf2ed; color: var(--client-green); }
.copy-client-reply svg { width: 16px; height: 16px; }
.client-page .repeat-note { display: inline-block; font-size: 15px; color: var(--client-green); margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; }
.client-page .client-waiting { min-height: 34px; }
#questions-empty { padding: 28px 0; color: #48554d; }
@media (max-width: 600px) {
  .client-title { gap: 9px; }
  .client-title > svg { width: 23px; height: 23px; }
  .client-title h1 { font-size: 25px; }
  .client-allowance { width: 90px; }
  .client-context { padding: 20px; }
  .client-note-heading { align-items: flex-start; }
  .client-context h2 { font-size: 19px; padding-top: 3px; }
  .client-page #question-form textarea { padding: 15px 16px 8px; }
  .question-history-heading { flex-wrap: wrap; gap: 12px; }
  .question-history-heading .search { width: 100%; }
  .client-user-message { margin-left: 0; gap: 9px; }
  .question-bubble { min-width: 0; max-width: calc(100% - 41px); padding: 12px 14px; }
  .speaker-mark { width: 30px; height: 30px; }
  .client-reply-row { margin-right: 0; gap: 10px; }
  .client-page .client-answer p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .question-composer { transition: none; }
}
