/* Scoped customer workspace. Original records and permissions stay in API modules. */
.customer-vibe{--cv-green:#1D9E75;--cv-orange:#EF9F27;--cv-red:#E24B4A;--cv-grey:#888780;min-width:0}
.customer-vibe .cv-customer-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:10px}
.customer-vibe .cv-customer-header h1{font-size:24px;line-height:1.2;margin:0 0 4px;letter-spacing:-.5px}
.customer-vibe .cv-customer-header .eyebrow{margin-bottom:4px;font-size:9px}
.customer-vibe .cv-customer-header .muted{margin:0;font-size:12px}
.customer-vibe .cv-header-title{min-width:0}
.customer-vibe .cv-customer-header>.actions{flex-shrink:0;justify-content:flex-end;gap:6px}
.customer-vibe .cv-signals{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:12px 0 8px}
.customer-vibe .cv-priority{display:inline-flex;align-items:center;gap:8px;font-weight:650;font-size:12px}
.customer-vibe .cv-priority small{display:block;font-size:10px;font-weight:400}
.customer-vibe .cv-priority-dots{display:flex;gap:4px;flex-shrink:0}
.customer-vibe .cv-priority-dots i{height:9px;width:9px;border-radius:50%;display:block}
.customer-vibe .cv-status{display:inline-flex;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:650}
.customer-vibe .cv-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.customer-vibe .cv-tags button{font-size:11px;min-height:44px;padding:5px 9px;border:0;border-radius:6px;max-width:100%;overflow-wrap:anywhere}
.customer-vibe .cv-qace-panel{padding:12px 16px;margin-bottom:16px;background:#fbfcfb}
.customer-vibe .cv-qace-panel>.heading{align-items:center;margin-bottom:8px;gap:8px}
.customer-vibe .cv-qace-panel h2{font-size:13px;margin:0}
.customer-vibe .cv-qace-panel>.heading .actions button{font-size:11px;padding:6px 10px;min-height:44px}
.customer-vibe .cv-qace-panel .empty{padding:0;font-size:12px;margin-bottom:0}
.customer-vibe .cv-qace-record+.cv-qace-record{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.customer-vibe .cv-qace-label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
.customer-vibe .cv-qace-steps{list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:0;margin:10px 0 0;gap:5px}
.customer-vibe .cv-qace-step{min-width:0;display:grid;gap:4px;font-size:10px;color:var(--muted)}
.customer-vibe .cv-qace-step>span{display:block;height:5px;border-radius:3px;background:var(--line)}
.customer-vibe .cv-qace-step.done>span,.customer-vibe .cv-qace-step.won>span{background:var(--cv-green)}
.customer-vibe .cv-qace-step.current>span{background:var(--cv-orange)}
.customer-vibe .cv-qace-step.not-now>span{background:var(--cv-red)}
.customer-vibe .cv-qace-step small{font-size:9px;overflow-wrap:anywhere}
.customer-vibe .cv-qace-record>details{margin-top:3px}
.customer-vibe .cv-qace-record>details>summary{font-size:10px;padding:4px 0}
.customer-vibe .cc-customer-tabs{gap:5px;margin-bottom:16px}
.customer-vibe .cc-customer-tabs button{font-size:12px}
.customer-vibe .cv-customer-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.48fr);grid-template-areas:'content tasks';gap:18px;align-items:start}
.customer-vibe .cv-customer-main{grid-area:content;min-width:0;display:grid;gap:18px}
.customer-vibe .cv-work{grid-area:tasks;min-width:0;position:sticky;top:16px}
.customer-vibe .cv-work-panel{padding:15px;border-top:3px solid var(--studio-green,#08754f)}
.customer-vibe .cv-work-panel>.heading{align-items:center;gap:8px;margin-bottom:8px}
.customer-vibe .cv-work-panel h2{font-size:14px;margin:0}
.customer-vibe .cv-work-panel>.heading button{font-size:11px;padding:6px 9px}
.customer-vibe .cv-task-scroll{max-height:min(70vh,720px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:80px;padding-right:3px}
.customer-vibe .cv-task-scroll:focus-visible{outline:2px solid var(--studio-blue,#2457d5);outline-offset:3px}
.customer-vibe .cv-task-scroll .wt-list-heading{display:none}
.customer-vibe .cv-task-scroll .wt-row{padding:12px 0;display:block}
.customer-vibe .cv-task-scroll .wt-actions{justify-content:flex-start;margin-top:9px}
.customer-vibe .cv-task-scroll .wt-meta{font-size:10px}
.customer-vibe .cv-task-scroll .wt-row h3{font-size:12px}
.customer-vibe .cv-task-scroll .wt-row:first-child{border-top:0}
.customer-vibe .cv-today-link{display:block;margin-top:12px;border-top:1px solid var(--line);padding-top:12px;font-weight:650;font-size:12px}
.customer-vibe .cv-business-history{border-top:3px solid var(--studio-blue,#2457d5);padding:18px}
.customer-vibe .cv-business-history>.heading{align-items:center;margin-bottom:8px;gap:8px}
.customer-vibe .cv-business-history>.heading h2{margin:0;font-size:18px}
.customer-vibe .cv-business-history>.heading button{font-size:11px}
.customer-vibe .cv-history-intro,.customer-vibe .cv-source-empty{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.5}
.customer-vibe .cv-source-summary{padding:14px;background:var(--studio-blue-soft,#edf2ff);border-radius:7px;margin:14px 0}
.customer-vibe .cv-source-summary h3{font-size:12px;color:var(--studio-blue,#2457d5);margin-bottom:7px}
.customer-vibe .cv-source-summary p{font-size:13px;line-height:1.6}
.customer-vibe .cv-source-summary>small{font-size:10px}
.customer-vibe .cv-source-summary details>summary{font-size:11px}
.customer-vibe .cv-source-limitation{font-size:11px!important;margin-top:8px!important;color:var(--muted)}
.customer-vibe .cv-evidence{border-top:1px solid var(--line);margin-top:12px;padding-top:6px}
.customer-vibe .cv-evidence>summary{font-weight:650;font-size:13px;color:var(--ink);padding:8px 0}
.customer-vibe .cv-evidence>summary>span{margin-left:8px;font-weight:400;color:var(--muted);font-size:10px}
.customer-vibe .cv-evidence .cc-table-scroll{max-height:290px;margin:5px 0}
.customer-vibe .cv-evidence .cc-evidence-table{font-size:11px}
.customer-vibe .cv-evidence th,.customer-vibe .cv-evidence td{padding:9px 8px;min-width:85px;max-width:220px}
.customer-vibe .cv-evidence th{position:sticky;top:0;z-index:1}
.customer-vibe .cv-provenance>summary{font-size:10px;padding:0;white-space:nowrap}
.customer-vibe .cv-provenance>span{display:block;min-width:120px;margin-top:7px;font-size:10px;color:var(--muted)}
.customer-vibe .cv-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.customer-vibe .cv-support-grid .panel{padding:16px}
.customer-vibe .cv-support-grid .cc-facts>div{grid-template-columns:1fr;gap:2px}
.customer-vibe .cv-support-grid .row{display:block}
.customer-vibe .cv-support-grid .row .actions{margin-top:8px}
.customer-vibe .cv-case{padding:14px 0;border-top:1px solid var(--line)}
.customer-vibe .cv-case-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}
.customer-vibe .cv-case .cc-prewrap{margin:8px 0 12px;font-size:13px}
.customer-vibe .cv-case .actions button{font-size:11px}
.customer-vibe .cv-email{border-top:1px solid var(--line);padding:12px 0}
.customer-vibe .cv-email>summary{display:flex;justify-content:space-between;gap:12px;align-items:start;min-height:44px}
.customer-vibe .cv-email>summary>span{font-weight:650;overflow-wrap:anywhere}
.customer-vibe .cv-email>summary>small{flex-shrink:0;font-size:11px}
@media(max-width:1180px){.customer-vibe .cv-support-grid{grid-template-columns:1fr}.customer-vibe .cv-customer-layout{grid-template-columns:minmax(0,1fr) 290px}.customer-vibe .cv-customer-header{align-items:flex-start;flex-direction:column;gap:10px}.customer-vibe .cv-customer-header>.actions{justify-content:flex-start}}
@media(max-width:850px){.customer-vibe .cv-customer-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'tasks' 'content'}.customer-vibe .cv-work{position:static}.customer-vibe .cv-task-scroll{max-height:340px}.customer-vibe .cv-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.customer-vibe .cv-support-grid{grid-template-columns:minmax(0,1fr)}.customer-vibe .cv-customer-header h1{font-size:21px}.customer-vibe .cv-signals{gap:9px}.customer-vibe .cv-business-history{padding:14px}.customer-vibe .cv-business-history>.heading{align-items:flex-start;flex-direction:column}.customer-vibe .cv-email>summary{flex-direction:column;gap:3px}.customer-vibe .cv-qace-steps{gap:3px}.customer-vibe .cv-qace-step small{font-size:8px}.customer-vibe .cv-qace-panel{padding:10px}.customer-vibe .cv-tags button{min-height:44px}}
