/* Concierge CRM: quiet structure, generous reading space, private operational detail. */
#clientWorkspaceRoot { min-width: 0; }
.cw-breadcrumb { display: flex; align-items: center; gap: 12px; margin: 2px 0 28px; color: var(--muted); font-size: 11px; }
.cw-breadcrumb .text-link { font-size: 11px; }
.cw-breadcrumb .text-link svg { transform: rotate(180deg); width: 15px; height: 15px; }
.cw-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--gold-line); margin-bottom: 28px; }
.cw-identity { display: flex; align-items: center; gap: 23px; min-width: 0; }
.cw-avatar { flex: 0 0 auto; width: 83px; height: 83px; border: 1px solid var(--gold-line); display: grid; place-items: center; border-radius: 50%; font: 30px var(--display); color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 6px var(--panel), inset 0 0 0 7px var(--gold-line); }
.cw-header h1 { font: clamp(30px, 3.3vw, 46px)/1.18 var(--display); color: var(--text-strong); margin: 7px 0 9px; letter-spacing: -.025em; }
.cw-identity > div > p:last-child { color: var(--muted); font-size: 12px; margin: 0; }
.cw-identity > div > p:last-child span { margin: 0 10px; color: var(--gold); }
.cw-header-status { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; }
.cw-header-status small { color: var(--muted); font-size: 10px; text-align: right; max-width: 230px; line-height: 1.6; }
.cw-membership-button { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 10px; background: none; border: 0; padding: 5px 0; cursor: pointer; }
.cw-membership-button svg { width: 13px; height: 13px; }
.cw-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 28px; align-items: start; }
.cw-summary { display: grid; gap: 16px; position: sticky; top: 108px; }
.cw-summary-card { background: var(--panel); border: 1px solid var(--line); padding: 24px 22px; }
.cw-summary-card h2 { margin: 8px 0 25px; font: 23px/1.25 var(--display); }
.cw-summary-card .eyebrow { font-size: 8px; }
.cw-contact-list { display: grid; gap: 22px; margin: 0; }
.cw-contact-list dt { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.cw-contact-list dt svg { color: var(--gold); width: 14px; height: 14px; }
.cw-contact-list dd { margin: 0; font-size: 12px; color: var(--text); overflow-wrap: anywhere; line-height: 1.6; }
.cw-completion { margin-top: 27px; border-top: 1px solid var(--line); padding-top: 21px; }
.cw-completion > div { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); }
.cw-completion strong { color: var(--gold); white-space: nowrap; font-weight: 500; }
.cw-completion progress { width: 100%; height: 4px; margin: 12px 0 10px; display: block; border: 0; border-radius: 0; background: var(--line); color: var(--gold); }
.cw-completion progress::-webkit-progress-bar { background: var(--line); }
.cw-completion progress::-webkit-progress-value { background: var(--gold); }
.cw-completion progress::-moz-progress-bar { background: var(--gold); }
.cw-completion p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.cw-pinned-summary { border-top-color: var(--gold); background: linear-gradient(130deg, var(--gold-soft), transparent 80%), var(--panel); }
.cw-summary-hint { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 13px 0 20px; }
.cw-pinned-excerpt { font: italic 17px/1.65 var(--display); margin: 16px 0; overflow-wrap: anywhere; }
.cw-pinned-excerpt + .cw-pinned-excerpt { border-top: 1px solid var(--line); padding-top: 16px; }
.cw-private-label { display: flex; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; padding: 2px 3px; }
.cw-private-label svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.cw-main { min-width: 0; }
.cw-tabs { display: flex; border-bottom: 1px solid var(--line-strong); gap: 24px; margin-bottom: 23px; }
.cw-tabs > button { background: transparent; border: 0; position: relative; padding: 3px 0 18px; color: var(--muted); font-size: 12px; cursor: pointer; white-space: nowrap; }
.cw-tabs > button[aria-selected="true"] { color: var(--gold); }
.cw-tabs > button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold); }
.cw-tabs > button > span { display: inline-flex; justify-content: center; align-items: center; min-width: 19px; height: 19px; padding: 0 4px; margin-left: 6px; border-radius: 50%; background: var(--panel-soft); font-size: 10px; color: var(--muted); }
.cw-section { padding: 27px 28px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 19px; }
.cw-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 25px; }
.cw-section-heading h2 { font: 25px/1.25 var(--display); letter-spacing: -.015em; margin: 7px 0 0; }
.cw-section-heading > svg { width: 27px; height: 27px; color: var(--gold); flex-shrink: 0; opacity: .75; }
.cw-section-heading .eyebrow { font-size: 8px; }
.cw-section-heading > .button { font-size: 10px; padding: 10px 13px; min-height: 40px; }
.cw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 21px; }
.cw-span-full { grid-column: 1 / -1; }
.cw-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cw-field > span { font-size: 11px; font-weight: 500; color: var(--text); }
.cw-field > .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cw-field input, .cw-field textarea, .cw-field select { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 12px; padding: 12px 13px; line-height: 1.55; transition: border-color .16s ease, box-shadow .16s ease; }
.cw-field input, .cw-field select { min-height: 43px; }
.cw-field textarea { resize: vertical; min-height: 99px; }
.cw-field input::placeholder, .cw-field textarea::placeholder { color: var(--muted-2); opacity: .85; }
.cw-field input:focus, .cw-field textarea:focus, .cw-field select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px var(--gold-soft); }
.cw-field select { padding-right: 28px; }
.cw-help { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 19px 0 0; }
.cw-savebar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: -1px 0 30px; padding: 16px 0 5px; }
.cw-savebar > span { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cw-savebar > span svg { width: 13px; height: 13px; color: var(--gold); }
.cw-savebar > .button { font-size: 11px; min-height: 45px; }
.cw-savebar > span.is-dirty { color: var(--gold); }
.cw-count { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; min-width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font: 11px var(--sans); color: var(--muted); margin-left: 6px; }
.cw-custom-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cw-custom-field { display: flex; align-items: flex-start; gap: 6px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.cw-custom-field > div { flex: 1; min-width: 0; }
.cw-custom-field > div > span { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; }
.cw-custom-field strong { display: block; font: 19px/1.4 var(--display); margin-top: 7px; overflow-wrap: anywhere; }
.cw-custom-field > div > small { display: block; font-size: 9px; color: var(--muted); margin-top: 9px; }
.cw-required { display: inline-block; font-size: 8px; color: var(--gold); margin-left: 7px; }
.cw-icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 2px; color: var(--muted); background: transparent; cursor: pointer; padding: 7px; flex-shrink: 0; }
.cw-icon-button svg { width: 16px; height: 16px; }
.cw-icon-button:hover { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.cw-inline-editor { margin-top: 23px; padding: 22px; border: 1px solid var(--gold-line); background: var(--bg); }
.cw-editor-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cw-editor-heading h3 { font: 22px var(--display); margin: 0; }
.cw-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.cw-editor-actions > .button { min-height: 42px; font-size: 11px; padding: 10px 16px; }
.cw-check { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); cursor: pointer; }
.cw-check input { accent-color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
.cw-private-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; border: 1px solid var(--line); padding: 7px 9px; white-space: nowrap; }
.cw-private-pill svg { width: 12px; height: 12px; color: var(--gold); }
.cw-note-composer { background: var(--bg); border: 1px solid var(--gold-line); padding: 21px; }
.cw-note-composer > .cw-field textarea { border-color: var(--line); background: var(--panel); }
.cw-note-composer-footer { display: flex; gap: 15px; align-items: center; margin-top: 15px; }
.cw-note-composer-footer .cw-field { max-width: 175px; }
.cw-note-composer-footer .cw-field select { font-size: 10px; min-height: 39px; padding: 8px 25px 8px 10px; }
.cw-note-composer-footer > .button { margin-left: auto; min-height: 40px; font-size: 10px; padding: 10px 13px; }
.cw-note-composer-footer > .button svg { width: 15px; height: 15px; }
.cw-note-filters { display: flex; gap: 24px; margin: 28px 0 20px; border-bottom: 1px solid var(--line); }
.cw-note-filters button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 0 0 12px; color: var(--muted); font-size: 11px; cursor: pointer; }
.cw-note-filters button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.cw-note-filters button span { margin-left: 5px; color: var(--muted); }
.cw-notes-list { display: grid; gap: 15px; }
.cw-note { border: 1px solid var(--line); padding: 21px; background: var(--bg); }
.cw-note.is-pinned { border-left: 2px solid var(--gold); }
.cw-note-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cw-tag { font-size: 9px; color: var(--gold); padding: 4px 7px; background: var(--gold-soft); }
.cw-pinned-label { font-size: 9px; color: var(--gold); }
.cw-note-meta time { margin-left: auto; font-size: 9px; color: var(--muted); }
.cw-note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; margin: 18px 0; color: var(--text); }
.cw-note-footer { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.cw-note-footer > small { font-size: 9px; color: var(--muted); line-height: 1.6; }
.cw-note-footer > div { display: flex; gap: 3px; align-items: center; flex-shrink: 0; }
.cw-note-text-action { color: var(--muted); border: 0; background: none; cursor: pointer; font-size: 9px; padding: 8px 6px; }
.cw-note-text-action:hover { color: var(--gold); }
.cw-empty { text-align: center; padding: 33px 20px 31px; }
.cw-empty > svg { width: 31px; height: 31px; color: var(--gold); margin: 0 auto 15px; }
.cw-empty h3 { font: 23px/1.3 var(--display); margin: 0 0 12px; }
.cw-empty p { max-width: 365px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.8; }
.cw-responses { display: grid; gap: 11px; }
.cw-response { border: 1px solid var(--line); background: var(--bg); }
.cw-response summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; }
.cw-response summary::-webkit-details-marker { display: none; }
.cw-response summary > span { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cw-response summary svg { width: 21px; height: 21px; color: var(--gold); flex-shrink: 0; }
.cw-response summary > svg { width: 14px; height: 14px; }
.cw-response[open] summary > svg { transform: rotate(180deg); }
.cw-response summary strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.cw-response summary small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.cw-response dl { border-top: 1px solid var(--line); padding: 20px; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cw-response dt { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.cw-response dd { margin: 0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-timeline { list-style: none; padding: 0; margin: 0; }
.cw-timeline li { position: relative; padding: 0 0 23px 25px; }
.cw-timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: -7px; width: 1px; background: var(--line); }
.cw-timeline li:last-child { padding-bottom: 0; }
.cw-timeline li:last-child::before { display: none; }
.cw-timeline-dot { position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--panel); border-radius: 50%; }
.cw-timeline li:first-child .cw-timeline-dot { background: var(--gold); }
.cw-timeline strong { font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.cw-timeline small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; line-height: 1.6; }
.cw-undo { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 24px; padding: 15px 20px; border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: 12px; }
.cw-undo > button { background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 3px 0; cursor: pointer; color: var(--gold); white-space: nowrap; }

@media (min-width: 1550px) { .cw-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 34px; } .cw-section { padding: 31px 34px; } }
@media (max-width: 1200px) { .cw-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 20px; } .cw-summary-card { padding: 21px 17px; } .cw-section { padding: 24px 21px; } .cw-tabs { gap: 20px; } .cw-tabs > button { font-size: 11px; } .cw-private-pill { font-size: 8px; padding: 6px; } .cw-custom-fields { grid-template-columns: 1fr; } .cw-note-composer-footer { flex-wrap: wrap; gap: 10px; } }
@media (max-width: 1000px) { .cw-layout { grid-template-columns: 1fr; } .cw-summary { position: static; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; } .cw-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; } .cw-summary-card h2 { margin-bottom: 20px; } .cw-completion { margin-top: 20px; padding-top: 17px; } .cw-private-label { display: none; } .cw-pinned-summary { display: flex; flex-direction: column; } .cw-pinned-summary .text-link { margin-top: auto; } .cw-header-status small { max-width: 170px; } .cw-main { margin-top: 10px; } }
@media (max-width: 620px) { .cw-breadcrumb { margin-bottom: 22px; } .cw-header { align-items: flex-start; gap: 15px; padding-bottom: 22px; margin-bottom: 20px; } .cw-identity { gap: 14px; align-items: flex-start; } .cw-avatar { width: 54px; height: 54px; font-size: 20px; box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px var(--gold-line); } .cw-header h1 { font-size: 28px; margin-top: 8px; } .cw-identity .eyebrow { font-size: 7px; letter-spacing: .14em; line-height: 1.7; } .cw-identity > div > p:last-child { font-size: 10px; line-height: 1.8; } .cw-identity > div > p:last-child span { margin: 0 5px; } .cw-header-status { padding-top: 3px; } .cw-header-status small { display: none; } .cw-header-status .status { font-size: 8px; padding: 4px 7px; white-space: nowrap; } .cw-summary { grid-template-columns: 1fr; } .cw-pinned-summary { display: none; } .cw-summary-card { padding: 21px; } .cw-contact-list { column-gap: 20px; } .cw-summary-card h2 { font-size: 22px; } .cw-contact-list dd { font-size: 11px; } .cw-tabs { gap: 17px; margin-bottom: 19px; overflow-x: auto; scrollbar-width: thin; } .cw-tabs > button { font-size: 10px; padding-bottom: 15px; } .cw-tabs > button > span { font-size: 8px; margin-left: 3px; min-width: 16px; height: 16px; } .cw-section { padding: 22px 18px; } .cw-section-heading { gap: 12px; margin-bottom: 22px; align-items: flex-start; } .cw-section-heading h2 { font-size: 23px; } .cw-section-heading > svg { width: 23px; height: 23px; } .cw-form-grid { grid-template-columns: 1fr; gap: 19px; } .cw-field > span { font-size: 11px; } .cw-field input, .cw-field textarea, .cw-field select { font-size: 16px; } .cw-savebar { flex-direction: column-reverse; align-items: stretch; gap: 13px; margin-bottom: 27px; } .cw-savebar > span { justify-content: center; } .cw-section-heading > .button { font-size: 9px; padding: 9px 10px; min-height: 38px; gap: 5px; } .cw-section-heading > .button svg { width: 12px; height: 12px; } .cw-fields-section .cw-section-heading { flex-wrap: wrap; } .cw-inline-editor { padding: 17px; } .cw-editor-heading h3 { font-size: 21px; } .cw-editor-actions { flex-wrap: wrap; } .cw-editor-actions > .button { flex: 1; } .cw-note-composer { padding: 17px; } .cw-note-composer-footer > .button { width: 100%; margin-left: 0; } .cw-note-composer-footer .cw-field { flex: 1; max-width: none; } .cw-note-composer-footer .cw-field select { font-size: 12px; } .cw-note { padding: 17px; } .cw-note-meta time { width: 100%; margin-left: 0; margin-top: 3px; } .cw-note-footer { flex-wrap: wrap; } .cw-note-footer > div { margin-left: auto; } .cw-private-pill { white-space: normal; line-height: 1.6; max-width: 90px; flex-shrink: 0; } .cw-private-pill svg { flex-shrink: 0; } .cw-response dl { grid-template-columns: 1fr; } .cw-section-heading > .text-link { font-size: 9px; } .cw-undo { padding: 13px; font-size: 11px; } .cw-empty { padding: 28px 5px; } }
@media (prefers-reduced-motion: reduce) { .cw-field input, .cw-field textarea, .cw-field select { transition: none; } }
@media (max-width: 620px) {
  .cw-header { flex-wrap: wrap; }
  .cw-header-status { flex-direction: row; align-items: center; gap: 16px; flex-basis: 100%; padding-top: 0; padding-left: 68px; }
  .cw-main { order: 0; margin-top: 0; }
  .cw-summary { order: 1; }
  .cw-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .cw-tabs::-webkit-scrollbar { display: none; }
  .cw-tabs > button { min-height: 44px; flex-shrink: 0; padding-top: 10px; padding-bottom: 12px; }
  .cw-icon-button { width: 44px; height: 44px; padding: 12px; }
  .cw-membership-button, .cw-note-text-action, .cw-note-filters button, .cw-section-heading > .button, .cw-note-composer-footer > .button, .cw-editor-actions > .button { min-height: 44px; }
}
