/* Collaboration, objectives and the client library. Shared light/dark tokens. */
.collaboration-main{align-items:start}.collaboration-main>*,.goal-grid>*,.resource-grid>*,.access-grid>*{min-width:0}
.agency-companion .card-head{align-items:flex-start}.agency-companion h2{font-size:24px;letter-spacing:-.7px}.agency-companion .eyebrow{margin-bottom:8px}.agency-companion .section-icon{margin:0}
.companion-timeline{margin-top:24px}.companion-timeline article{display:grid;grid-template-columns:32px minmax(0,1fr);gap:16px;padding-bottom:24px;position:relative}.companion-timeline article:last-child{padding-bottom:8px}.companion-timeline article:not(:last-child):before{content:"";position:absolute;left:15px;top:36px;bottom:4px;width:1px;background:var(--border)}
.companion-marker{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--surface-subtle);color:var(--text-secondary)}.companion-marker svg{width:16px;height:16px}.companion-timeline h3{font-size:14px;line-height:1.5;margin:6px 0}.companion-timeline p{font-size:13px;line-height:1.6;margin:0 0 8px;color:var(--text-secondary)}.companion-timeline .micro{font-size:12px}.companion-timeline .tag{font-size:11px}.companion-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.companion-empty{font-size:14px;color:var(--text-secondary);padding:16px 0;line-height:1.7}
.collaboration-history{margin:24px 0}.collaboration-history h2{font-size:24px;line-height:1.3;letter-spacing:-.6px}.collaboration-history .card-head{gap:24px;align-items:start}.collaboration-history .card-head .small-link{flex-shrink:0;display:inline-flex;gap:8px;align-items:center;min-height:40px}.collaboration-history .card-head .small-link svg{width:16px;height:16px}.history-empty{font-size:14px;color:var(--text-secondary);max-width:680px;line-height:1.7}
.history-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:24px 0;margin:24px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.history-totals dt{font-size:13px;color:var(--text-secondary);margin-bottom:8px}.history-totals dd{margin:0;font-size:28px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.history-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.history-chart-head h3{font-size:16px}.history-chart-head .segmented button{font-size:13px;min-height:40px}.history-chart{max-width:880px;margin:24px auto 0}.history-chart svg{display:block;width:100%;height:auto;max-height:200px}.history-chart text{font-family:var(--font);fill:var(--text-secondary);font-size:12px}.history-axis{stroke:var(--border);stroke-dasharray:3 5}.history-line{stroke:var(--text);fill:none;stroke-width:2.3;stroke-linejoin:round;stroke-linecap:round}.history-dot{fill:var(--text);stroke:var(--surface);stroke-width:1.5}.history-details{margin-top:16px}.history-details summary{cursor:pointer;font-size:13px;padding:8px 0;color:var(--text-secondary)}.history-details td,.history-details th{font-size:13px}.history-details th[scope=row]{text-align:left;font-weight:500;color:var(--text-secondary);text-transform:none;letter-spacing:0;white-space:nowrap}.history-basis{padding-top:16px;margin-top:16px;border-top:1px solid var(--border);line-height:1.65}
.collaboration-goals{margin:24px 0}.collaboration-goals>.card-head{align-items:center;margin-bottom:16px}.collaboration-goals>.card-head h2{font-size:20px}.collaboration-goals .eyebrow{margin-bottom:8px}.goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}.goal-card .card-head{margin-bottom:16px}.goal-card h3{font-size:17px;letter-spacing:-.3px}.goal-card>p{font-size:13px;color:var(--text-secondary);margin:8px 0 24px}.goal-symbol svg{width:22px;height:22px;color:var(--text-secondary)}.goal-value{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.goal-value strong{font-size:28px;font-weight:600;letter-spacing:-.8px}.goal-value span{font-size:14px;color:var(--text-muted)}.goal-track{height:6px;background:var(--surface-hover);border-radius:8px;margin:16px 0;overflow:hidden}.goal-track>span{display:block;height:100%;border-radius:8px;background:var(--text)}.goal-track>span.achieved{background:var(--success)}.goal-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--text-secondary)}.goal-empty{display:flex;align-items:center;gap:24px}.goal-empty>svg{width:24px;height:24px;color:var(--text-muted)}.goal-empty p{font-size:14px;color:var(--text-secondary);flex:1;line-height:1.6;margin:0}.goal-visible{display:flex;align-items:center;gap:12px;margin:16px 0;font-size:14px}.goal-visible input{width:18px;height:18px;accent-color:var(--text)}.goal-manage-row{display:flex;width:100%;padding:16px 0;gap:24px;justify-content:space-between;align-items:center;background:none;text-align:left;border:0;border-bottom:1px solid var(--border);color:var(--text);cursor:pointer}.goal-manage-row small{display:block;color:var(--text-secondary);margin-top:6px;font-size:13px}.goal-manage-row svg{width:18px;height:18px}.goal-manage-row:hover{background:var(--surface-subtle)}
.resource-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:24px;margin-bottom:32px;border-bottom:1px solid var(--border)}.resource-tabs button{min-height:44px;border:1px solid transparent;border-radius:var(--radius-sm);padding:8px 16px;display:flex;align-items:center;gap:8px;background:transparent;color:var(--text-secondary);font-size:14px;cursor:pointer}.resource-tabs button svg{width:16px;height:16px}.resource-tabs button>span{font-size:12px;min-width:24px;line-height:24px;border-radius:6px;background:var(--surface-hover);text-align:center}.resource-tabs button.active{background:var(--surface);border-color:var(--border);color:var(--text);box-shadow:var(--shadow-sm)}.resource-tabs button:hover{background:var(--surface-hover)}
.resource-section-intro{margin-bottom:24px}.resource-section-intro h2{font-size:24px;letter-spacing:-.6px}.resource-section-intro p{font-size:14px;color:var(--text-secondary);margin-top:8px;max-width:720px;line-height:1.7}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.resource-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.resource-preview{height:176px;display:flex;align-items:center;justify-content:center;background:#f0f0f2;border-bottom:1px solid var(--border);padding:24px}.resource-preview img{max-width:100%;max-height:100%;object-fit:contain}.resource-preview-type{background:var(--surface-subtle);color:var(--text-secondary)}.resource-preview-type>span{font-size:56px;letter-spacing:-4px;font-weight:500}.resource-preview-type svg{width:40px;height:40px}.resource-card-body{padding:24px;display:flex;flex-direction:column;flex:1}.resource-card h3{font-size:18px;letter-spacing:-.3px;margin:8px 0 12px;overflow-wrap:anywhere}.resource-card-body>p{font-size:14px;color:var(--text-secondary);line-height:1.7;margin:0 0 16px;flex:1;overflow-wrap:anywhere}.resource-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:24px}.resource-actions .btn{min-height:40px}.resource-actions .small-link{min-height:40px;display:inline-flex;gap:8px;align-items:center}.resource-actions svg{width:16px;height:16px}
.deliverable-list{display:grid;gap:16px}.deliverable-card{display:flex;align-items:center;gap:24px}.deliverable-copy{flex:1;min-width:0}.deliverable-copy h3{font-size:17px;margin:8px 0;overflow-wrap:anywhere}.deliverable-copy p{font-size:13px;color:var(--text-secondary);margin:0}.deliverable-card .resource-actions{margin:0}.resource-local-note{font-size:13px;color:var(--text-secondary);margin:24px 0;line-height:1.8}.resource-local-note a{display:inline-flex;align-items:center;gap:8px;margin-left:8px}.resource-local-note svg{width:16px;height:16px}
.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.access-card h3{font-size:18px;overflow-wrap:anywhere}.access-card dl{margin:24px 0 0}.access-card dt{font-size:12px;color:var(--text-muted);margin-top:24px}.access-card dd{margin:8px 0 0;font-size:14px;color:var(--text-secondary);overflow-wrap:anywhere}.resource-prewrap{white-space:pre-line;line-height:1.8}.resource-empty{padding:40px;text-align:center}.resource-empty>.section-icon{margin:0 auto 24px}.resource-empty h3{font-size:20px}.resource-empty p{font-size:14px;color:var(--text-secondary);max-width:560px;margin:16px auto 0;line-height:1.7}
.resource-editor{border:1px solid var(--border);padding:16px;border-radius:12px;margin:24px 0}.resource-editor legend{padding:0 8px;font-size:14px;font-weight:600}.resource-editor input[type=file]{max-width:100%;font-size:13px}.resource-editor input::file-selector-button{background:var(--surface-subtle);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:8px 12px;margin-right:8px}.resource-editor [role=status]{font-size:13px;color:var(--text-secondary);overflow-wrap:anywhere}.resource-text-document{background:var(--surface-subtle);border:1px solid var(--border);border-radius:12px;padding:24px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:24px 0;max-height:44dvh;overflow:auto}.validation-resource-meta{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.validation-document{margin:24px 0;display:grid;justify-items:start;gap:16px}.validation-document .resource-preview{width:100%;height:200px;border:1px solid var(--border);border-radius:12px}
@media(max-width:1100px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-totals dd{font-size:24px}.collaboration-history .card-head{flex-wrap:wrap}.deliverable-card{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:650px){.collaboration-history,.collaboration-goals{margin:24px 0}.history-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.history-totals dd{font-size:24px}.collaboration-history h2{font-size:22px}.history-chart-head{gap:8px}.history-chart-head .segmented{width:100%;display:flex}.history-chart-head .segmented button{flex:1;padding:8px}.goal-empty{align-items:flex-start;flex-wrap:wrap;gap:16px}.goal-empty p{flex-basis:70%}.goal-empty .btn{width:100%}.collaboration-goals>.card-head{align-items:flex-start;gap:16px}.collaboration-goals>.card-head>.small-link{max-width:120px;text-align:right;font-size:13px}.goal-foot{align-items:flex-start}.resource-tabs{gap:4px;justify-content:space-between;margin-bottom:24px}.resource-tabs button{padding:8px;font-size:13px;gap:6px}.resource-tabs button svg{display:none}.resource-grid,.access-grid{grid-template-columns:1fr}.resource-card-body{padding:24px}.resource-section-intro h2{font-size:22px}.resource-section-intro p{font-size:14px}.deliverable-card{gap:16px}.deliverable-copy{flex-basis:calc(100% - 64px)}.deliverable-card .resource-actions{width:100%}.resource-empty{padding:32px 24px}.resource-editor{padding:12px}.resource-editor input[type=file]{font-size:12px}.resource-text-document{padding:16px}.companion-footer{align-items:flex-start}.history-details .table-wrap{max-width:100%}.history-details table{min-width:560px}}

@media(max-width:650px){.history-totals dd{font-size:20px;letter-spacing:-.5px}.history-chart text{font-size:24px}}

.info-tip{position:relative;display:inline-flex;vertical-align:middle;margin-left:8px}.info-tip-trigger{display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text-muted);font:600 11px var(--font);cursor:help}.info-tip-trigger:hover,.info-tip-trigger:focus-visible{border-color:var(--text-secondary);color:var(--text)}.info-tip-trigger:focus-visible{outline:2px solid var(--text-secondary);outline-offset:2px}.info-tip-bubble{position:absolute;z-index:30;left:0;bottom:calc(100% + 10px);width:min(310px,calc(100vw - 48px));padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-sm);color:var(--text-secondary);font-size:12px;font-weight:400;line-height:1.55;text-align:left;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s}.info-tip:hover .info-tip-bubble,.info-tip:focus-within .info-tip-bubble{visibility:visible;opacity:1}

.goal-channels{margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.goal-channels>.micro{display:block;margin-bottom:8px}
.goal-channels>div{display:flex;justify-content:space-between;gap:16px;padding:6px 0;font-size:13px;color:var(--text-secondary)}
.goal-channels strong{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Client overview: aligned pairs followed by one full-width services card. */
:root .client-pulse-grid,.overview-outcomes{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.client-pulse-grid>.card,.client-pulse-grid>.agency-companion{height:100%;margin:0}
.commercial-overview-card,.client-pulse-grid .agency-companion{display:flex;flex-direction:column}
.commercial-overview-card .empty-commercial{display:flex;flex:1;flex-direction:column;padding:0}
.commercial-overview-card .empty-commercial h2{margin:16px 0 8px}
.commercial-overview-card .empty-commercial p{max-width:520px;margin:0}
.commercial-overview-card .commercial-steps{margin:auto 0 0;padding-top:24px}
.client-pulse-grid .companion-footer{margin-top:auto}
.overview-outcomes{margin:0 0 24px}
.overview-outcomes .outcomes-stack,.overview-outcomes .visibility-with-recommendations{min-width:0;align-content:stretch}
.overview-outcomes .attribution-card,.overview-outcomes .visibility-panel{min-height:240px;height:100%;margin:0}
.overview-outcomes .attribution-card,.overview-outcomes .visibility-panel{display:flex;flex-direction:column}
.overview-outcomes .visibility-panel>.card-head{padding-bottom:0}
.overview-outcomes .visibility-panel .info-tip{margin-left:8px}
.attribution-empty,.overview-outcomes .visibility-empty{font-size:13px;line-height:1.6;color:var(--text-secondary);background:var(--surface-subtle);border:1px solid var(--border);border-radius:10px;padding:16px 18px;margin:24px 0 0}
.overview-outcomes .visibility-panel-links{margin-top:auto;padding-top:18px;border-top:1px solid var(--border)}
.overview-outcomes-single{margin:0 0 24px}
.overview-accompaniment{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;margin-bottom:24px;padding:30px 32px}
.overview-accompaniment-main,.overview-accompaniment-services{min-width:0}
.overview-accompaniment-main>p{font-size:14px;line-height:1.65;max-width:640px;margin:10px 0 0;color:var(--text-secondary)}
.overview-accompaniment-services{border-left:1px solid var(--border);padding-left:40px}
.overview-accompaniment-services .service-summary-link{font-size:13px;min-height:48px}
.overview-accompaniment-services .service-summary-link:last-child{border-bottom:0}
.overview-accompaniment .next-step{margin-top:24px}
.goal-card h3 .info-tip{vertical-align:middle}
@media(max-width:1050px){:root .client-pulse-grid,.overview-outcomes{grid-template-columns:1fr}.overview-accompaniment{gap:28px}.overview-outcomes .attribution-card,.overview-outcomes .visibility-panel{min-height:0}}
@media(max-width:700px){.client-pulse-grid,.overview-outcomes{gap:16px}.commercial-overview-card .commercial-steps{margin-top:0}.overview-accompaniment{grid-template-columns:1fr;padding:24px;gap:24px}.overview-accompaniment-services{border-left:0;border-top:1px solid var(--border);padding:22px 0 0}.attribution-empty,.overview-outcomes .visibility-empty{margin-top:16px}.overview-outcomes .visibility-panel-links{margin-top:20px}}
@media(max-width:700px){.info-tip-bubble{left:auto;right:0}}

/* Dashboard reading order: outcome, origin, agency work, then follow-up. */
.overview-results-grid,.overview-followup-grid{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);gap:24px;align-items:stretch;margin:0 0 24px}
.overview-followup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.overview-followup-grid.single{grid-template-columns:1fr}
.overview-chart-stack,.overview-attribution-stack,.overview-visibility-stack{display:grid;gap:16px;min-width:0;align-content:start}
.overview-results-grid>.card,.overview-results-grid .card,.overview-followup-grid>.card,.overview-followup-grid .card{margin:0;min-width:0}
.overview-results-grid .overview-chart-card,.overview-results-grid .overview-attribution-card{height:100%}
.overview-agency-row{margin:0 0 24px}
.overview-agency-row>.agency-companion{margin:0}
.overview-agency-row .companion-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:16px}
.overview-agency-row .companion-timeline article{padding:16px 0 4px;border-top:1px solid var(--border);align-content:start}
.overview-agency-row .companion-timeline article:not(:last-child):before{display:none}
.overview-agency-row .companion-timeline h3{margin:4px 0;font-size:15px}
.overview-agency-row .companion-timeline p{font-size:13px;line-height:1.5}
.overview-agency-row .companion-footer{margin-top:12px}
.overview-results-grid .card-head,.overview-followup-grid .card-head{gap:16px}
.overview-results-grid .card-head h2,.overview-followup-grid .card-head h2,.overview-agency-row .card-head h2{font-size:21px;line-height:1.3;letter-spacing:-.5px}
.section-title-icon{display:inline-grid;place-items:center;width:30px;height:30px;margin-bottom:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface-subtle);color:var(--text-secondary)}
.section-title-icon svg{width:17px;height:17px}
.overview-attribution-card .table-wrap{max-width:100%}
.overview-channel-list{display:grid;gap:0}
.overview-channel{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:11px 0;border-bottom:1px solid var(--border)}
.overview-channel:last-child{border-bottom:0}
.overview-channel-name{display:flex;align-items:center;gap:10px;min-width:0}
.overview-channel-name>span:last-child{display:grid;gap:2px;min-width:0}
.overview-channel-name strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.overview-channel-name small{font-size:11px;color:var(--text-muted)}
.overview-channel-revenue{flex:none;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.overview-followup-grid .visibility-panel{height:100%}
.overview-followup-grid .visibility-panel-links{margin-top:auto}
.overview-funnel-card .funnel-row{margin-bottom:16px}

/* Keep a single objective readable without letting it fill the dashboard width. */
.collaboration-goals{margin:18px 0 24px}
.collaboration-goals>.card-head{margin-bottom:12px}
.collaboration-goals .eyebrow{margin-bottom:4px}
.goal-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:14px}
.goal-card{padding:14px 18px}
.goal-card .card-head{margin-bottom:4px}
.goal-card h3{font-size:15px;line-height:1.4}
.goal-card>p{font-size:12px;line-height:1.45;margin:4px 0 9px}
.goal-value strong{font-size:22px}
.goal-value span{font-size:12px}
.goal-track{margin:8px 0}
.goal-foot{font-size:11px;gap:8px}
.goal-symbol svg{width:18px;height:18px}
.goal-card .tag{font-size:11px}

@media(max-width:1100px){.overview-results-grid{grid-template-columns:1fr}.overview-results-grid .overview-chart-card,.overview-results-grid .overview-attribution-card{height:auto}.overview-agency-row .companion-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.overview-followup-grid{grid-template-columns:1fr}.overview-agency-row .companion-timeline{grid-template-columns:1fr}}
@media(max-width:600px){.overview-results-grid,.overview-followup-grid{gap:16px;margin-bottom:16px}.overview-agency-row{margin-bottom:16px}.overview-results-grid .card-head,.overview-followup-grid .card-head{flex-wrap:wrap}.overview-results-grid .card-head h2,.overview-followup-grid .card-head h2,.overview-agency-row .card-head h2{font-size:19px}.overview-chart-card .segmented{width:100%}.overview-chart-card .segmented button{flex:1}.goal-grid{grid-template-columns:1fr}.goal-card{padding:16px}}
