/* T1 questionnaire + guided intake. No global layout or business state changes. */
.ci-page {
  --ci-ink: #233d5d;
  --ci-muted: #586d87;
  --ci-line: #dce5f0;
  gap: 20px;
}
.ci-page .page-heading { align-items: flex-start; gap: 16px; }
.ci-page .page-heading h1 { font-size: clamp(25px, 2.1vw, 30px); line-height: 1.4; letter-spacing: -.025em; }
.ci-page .page-heading p { margin-top: 8px; max-width: 60ch; line-height: 1.65; }
.ci-page .ci-status { background: #f7faff; box-shadow: none; border: 1px solid var(--ci-line); border-radius: 16px; padding: 16px 20px; gap: 10px 20px; }
.ci-page .ci-status-main { gap: 8px 16px; }
.ci-page .ci-status-main > span { font-weight: 600; }
.ci-page .ci-status-main small { font-size: 13px; }
.ci-page .ci-progress-track { height: 4px; background: #e6edf7; }
.ci-page .ci-draft-state { border-radius: 12px; padding: 14px 18px; background: #f8faff; border-color: var(--ci-line); box-shadow: none; }
.ci-page .ci-draft-state.is-warning { background: #fff8e9; border-color: #d5ae64; }
.ci-page .ci-layout { grid-template-columns: 228px minmax(0,1fr); gap: 24px; }
.ci-page .ci-rail { top: 20px; padding: 16px; border-radius: 16px; border: 1px solid #dce6f1; background: rgba(249,252,255,.92); box-shadow: 0 8px 28px rgba(37,66,104,.045); backdrop-filter: blur(12px); }
.ci-page .ci-rail summary { min-height: 40px; gap: 8px; }
.ci-page .ci-directory-meta { font-size: 12px; white-space: nowrap; }
.ci-page .ci-rail nav { gap: 4px; }
.ci-page .ci-rail nav a { min-height: 44px; padding: 9px 10px; font-size: 14px; line-height: 1.45; border-radius: 9px; transition: background-color .16s, color .16s; }
.ci-page .ci-rail nav a:hover,.ci-page .ci-rail nav a:focus-visible { background: #eaf2ff; color: #245bb9; }
.ci-page .ci-rail nav a > span { width: 24px; height: 24px; font-size: 12px; font-weight: 600; background: #eaf0f8; color: #5c7392; }
.ci-page .ci-rail p { font-size: 13px; line-height: 1.6; }
.ci-page .ci-form-content { gap: 20px; }
.ci-page .ci-section { padding: 26px; border-radius: 16px; border-color: var(--ci-line); background: #fff; box-shadow: none; scroll-margin-top: 24px; }
.ci-page .ci-section > header { gap: 12px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #e9eef5; }
.ci-page .ci-section > header > span { width: 30px; height: 30px; border-radius: 9px; background: #edf3fe; font-size: 12px; font-weight: 600; }
.ci-page .ci-section h2 { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.5; }
.ci-page .ci-section header p { margin: 5px 0 0; font-size: 14px; line-height: 1.65; }
.ci-page .ci-section-status { margin-left: auto; padding-top: 5px; color: #586d87; font-size: 12px; font-weight: 400; white-space: nowrap; }
.ci-page .ci-fields { gap: 22px 20px; }
.ci-page .ci-field > span,.ci-page .ci-choice-field legend { font-size: 14px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
.ci-page .ci-field > input:not([type="checkbox"]),.ci-page .ci-field > textarea,.ci-page .ci-choice-other > input[type="text"] { border-radius: 10px; border-color: #d6e1ee; background: #fbfcfe; font-size: 16px; line-height: 1.65; color: #263f60; transition: border-color .16s, background-color .16s; }
.ci-page .ci-field > input:not([type="checkbox"]) { height: 46px; }
.ci-page .ci-field > textarea { min-height: 112px; padding: 12px 14px; }
.ci-page .ci-field > input:not([type="checkbox"]):hover,.ci-page .ci-field > textarea:hover { border-color: #aebfd7; }
.ci-page .ci-field small { margin-top: 7px; font-size: 13px; line-height: 1.65; }
.ci-page .ci-choice-field > div { gap: 10px; }
.ci-page .ci-choice-field label { min-height: 46px; border-radius: 10px; background: #fbfcfe; padding: 11px 13px; font-size: 14px; line-height: 1.6; }
.ci-page .ci-choice-field label:has(input:checked) { background: #edf4ff; border-color: #81a8e8; color: #25508a; }
.ci-page .ci-choice-other > label { min-height: 0; padding: 0; background: transparent; }
.ci-page .ci-submit { padding: 22px 26px; border-radius: 16px; background: #f9fbff; box-shadow: none; border-color: var(--ci-line); }
.ci-page .ci-submit-actions { padding-top: 16px; border-top: 1px solid #e6edf7; }
.ci-page .ci-submit-actions > span { max-width: 44ch; line-height: 1.6; }
.ci-page :is(button,a,input,textarea,summary):focus-visible { outline: 3px solid #93b4fa; outline-offset: 3px; }
.ci-page .ci-field [aria-invalid="true"] { border-color: #b91c1c; }
.assistant-d11.is-intake .ad-intake { margin: 8px 26px 0; padding: 18px 20px; gap: 20px; background: #f3f7ff; border: 1px solid #d9e5f6; border-radius: 14px; box-shadow: none; }
.assistant-d11.is-intake .ad-intake > div { min-width: 0; }
.assistant-d11.is-intake .ad-intake span { font-size: 13px; color: #506e97; }
.assistant-d11.is-intake .ad-intake h2 { margin: 7px 0; font-size: 20px !important; color: #29486d; line-height: 1.5; }
.assistant-d11.is-intake .ad-intake p { font-size: 15px; line-height: 1.75; color: #4b6382; overflow-wrap: anywhere; }
.assistant-d11.is-intake .ad-intake button { min-height: 42px; padding: 9px 12px; border: 1px solid #cbdcf4; border-radius: 9px; background: #fff; font-size: 14px; }
.assistant-d11.is-intake .ad-intake button:hover { background: #eaf2ff; border-color: #94b2e1; }
.assistant-d11.is-intake .ad-intake-back { min-height: 40px; padding: 7px 10px; color: #4e6788; border: 0; border-radius: 8px; background: transparent; font-size: 13px; white-space: nowrap; }
.assistant-d11.is-intake .ad-intake-back:hover { background: #edf3fc; color: #245bb9; }
.assistant-d11.is-intake .ad-conversation.is-empty { align-items: flex-start; padding-top: 22px; }
.assistant-d11.is-intake .ad-empty { margin: 0 auto; max-width: 760px; }
.assistant-d11.is-intake .ad-empty h2 { font-size: 23px !important; }
.assistant-d11.is-intake .ad-welcome-heading { gap: 24px; }
.assistant-d11.is-intake .ad-welcome-art { width: 128px; height: 128px; }
.assistant-d11.is-intake .ad-compose-area { border-top: 1px solid #e6edf6; background: rgba(255,255,255,.95); }
.assistant-d11.is-intake .ad-composer { border-radius: 14px; box-shadow: 0 5px 22px rgba(42,70,111,.045); }
@media(max-width:1100px) {
  .ci-page .ci-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ci-page .ci-rail { position: static; }
  .ci-page .ci-rail nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .assistant-d11.is-intake .ad-header { flex-wrap: wrap; }
  .assistant-d11.is-intake .ad-intake { flex-wrap: wrap; gap: 12px; }
}
@media(max-width:650px) {
  .ci-page { gap: 16px; }
  .ci-page .ci-layout { gap: 14px; }
  .ci-page .page-heading { flex-direction: column; gap: 12px; }
  .ci-page .ci-status { padding: 14px 16px; gap: 8px 12px; }
  .ci-page .ci-rail { padding: 12px 14px; }
  .ci-page .ci-rail nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ci-page .ci-fields,.ci-page .ci-choice-field > div { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .ci-page .ci-section,.ci-page .ci-submit { padding: 20px 16px; }
  .ci-page .ci-section > header { flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 18px; }
  .ci-page .ci-section > header > div { flex: 1; min-width: 0; }
  .ci-page .ci-section-status { flex-basis: 100%; padding: 0 0 0 42px; max-width: none; }
  .ci-page .ci-submit-actions { align-items: stretch; flex-direction: column; }
  .ci-page .ci-submit-actions button { min-height: 48px; justify-content: center; white-space: normal; }
  .assistant-d11.is-intake .ad-intake { margin: 8px 14px 0; padding: 15px 16px; }
  .assistant-d11.is-intake .ad-intake h2 { font-size: 19px !important; }
  .assistant-d11.is-intake .ad-intake button { min-height: 44px; }
  .assistant-d11.is-intake .ad-conversation.is-empty { padding-top: 16px; }
  .assistant-d11.is-intake .ad-welcome-heading { gap: 14px; }
  .assistant-d11.is-intake .ad-welcome-art { width: 88px; height: 88px; }
  .assistant-d11.is-intake .ad-empty h2 { font-size: 20px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .ci-page .ci-rail nav a,.ci-page .ci-field > input,.ci-page .ci-field > textarea { transition: none; }
}
