.project-expert-sortbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.project-expert-sortbar h4{margin:0;font-size:1.15rem}.project-header-actions .pa-launch{order:0}.project-header-actions .project-priority-control{order:1}.project-header-actions .project-priority-status{order:2}.project-header-actions .project-archive-button{order:3}.project-header-actions .project-collapse-toggle{order:4;margin-left:auto}
.project-progress{margin:0 0 18px;border:1px solid #b6d3c2;border-radius:12px;overflow:hidden}.project-progress>summary{padding:14px 18px;background:#176b42!important;color:#fff!important;cursor:pointer;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.project-progress-content{padding:16px}.project-progress-content h4{margin:10px 0}.project-progress-calls>article{display:flex;gap:14px;padding:14px 0;border-top:1px solid #d9e3dd}.project-progress-calls p{margin:6px 0}.project-progress .ticker-overall{display:flex;gap:18px;align-items:center}.project-progress .ticker-score{flex-shrink:0}
.expert-fit-indicator{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;text-transform:none;letter-spacing:0}.expert-fit-indicator i{width:5px;height:24px;border-radius:3px;background:#7b8790;flex-shrink:0}.expert-fit-indicator.fit-high i{background:#18854f}.expert-fit-indicator.fit-medium i{background:#b98210}.expert-fit-indicator.fit-low i{background:#b84646}.expert-expanded{margin-top:8px}.expert-expanded>summary{cursor:pointer;color:#245d48;font-weight:650;padding:8px 0}.expert-quick-summary{margin:8px 0;line-height:1.45}.project-expert-grid{grid-template-columns:1fr!important}.project-expert-card{padding:16px!important}.project-expert-card .expert-expanded>section,.project-expert-card .expert-expanded>p{margin-top:12px}
.newest-experts-panel[hidden]{display:none!important}.newest-experts-panel{grid-column:1/-1;min-width:0;margin-top:20px}.newest-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.newest-expert{border-top:1px solid #d4e1d9;padding:14px 0}.newest-expert>summary{display:flex;align-items:center;gap:14px;cursor:pointer}.newest-expert>summary>.newest-expert-identity{flex:1;min-width:0}.newest-expert>summary>.expert-avatar,.newest-expert>summary>.expert-avatar-link{flex:0 0 48px;width:48px;height:48px}.newest-experts-panel{padding:20px!important}.newest-expert small{display:block;font-size:12px;margin:5px 0;overflow-wrap:anywhere}.newest-expert-details{padding:12px 0}.personalize-dialog{max-width:620px;width:calc(100vw - 32px);max-height:90vh;overflow:auto;border:1px solid #bfd0c7;border-radius:16px;padding:24px}.personalize-dialog::backdrop{background:#10281c77}.da-local-result:empty{display:none}.da-local-result{padding:10px;background:#e6f3eb;color:#173a28;border-radius:8px}
@media(max-width:650px){.project-progress>summary{padding:12px}.project-progress-content{padding:12px}.newest-expert>summary{flex-wrap:wrap}.newest-expert>summary>small{width:100%}.project-header-actions{gap:6px!important}.project-header-actions .project-collapse-toggle{margin-left:0}.project-progress .ticker-overall{align-items:flex-start}}
.project-header-actions{width:100%;margin-left:0!important}.project-header-actions .pa-launch{margin-right:auto}.project-progress summary:focus-visible,.newest-expert summary:focus-visible,.expert-expanded summary:focus-visible{outline:3px solid #3089d3;outline-offset:2px}

/* Keep project controls together and expert actions inside their card. */
.project-expert-heading>div{min-width:0;flex:1}
.expert-name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.expert-name-row h4{margin:0}
.project-expert-card .expert-name-row>.button.project-linkedin{display:inline-flex;width:auto;min-width:44px;box-sizing:border-box;margin:0;flex:0 0 auto}
.project-expert-heading .expert-role-subtitle{margin:2px 0;color:var(--preview-muted,var(--muted));font-size:.9rem;font-weight:400;line-height:1.4}
.expert-expanded>summary .expert-fit-indicator{display:inline-flex;margin:0;vertical-align:middle}
.project-expert-card .project-expert-top{flex-direction:column;align-items:stretch}
.project-expert-card .project-expert-heading,.project-expert-card .project-expert-top-controls{flex:0 0 auto;width:100%;min-width:0}
[data-workflow-group="available"] .project-expert-heading .eyebrow{display:none}
.project-header-actions{display:flex!important;justify-content:flex-end}
.project-header-actions .pa-launch{margin-right:0}
.project-header-actions .project-collapse-toggle{margin-left:0}
.expert-quick-summary>.expert-fit-indicator{display:flex;width:100%;margin-bottom:8px}
.project-expert-fold-bar .top-review-actions,
.project-expert-fold-bar .project-expert-toolbar{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end;overflow:visible;gap:6px}
.client-dashboard .project-expert-card .project-expert-fold-bar .top-review-actions>button{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;font-size:11px;padding:6px 8px;min-height:30px}
.project-expert-fold-bar .project-expert-heading{min-width:0}
@media(max-width:800px){
 .project-expert-fold-bar>.project-expert-top{flex-wrap:nowrap}
 .project-expert-fold-bar .project-expert-heading{flex:1 1 42%}
 .client-dashboard .project-expert-card:not(.approved) .project-expert-top-controls,
 .project-expert-fold-bar .project-expert-top-controls{flex:1 1 58%}
}
@media(max-width:480px){
 .project-expert-fold-bar>.project-expert-top{flex-wrap:wrap}
 .project-expert-fold-bar .project-expert-heading,
 .client-dashboard .project-expert-card:not(.approved) .project-expert-top-controls,
 .project-expert-fold-bar .project-expert-top-controls{flex-basis:100%}
}

/* Personalization uses the existing navigation, never an independent floating toolbar. */
#workspace-side-navigation.has-personal-shortcuts{display:flex}
html:not([data-ecg-layout="2"]):not([data-ecg-layout="7"]):not([data-ecg-layout="8"]):not([data-ecg-layout="9"]):not([data-ecg-layout="10"]) #workspace-side-navigation.has-personal-shortcuts{flex-wrap:wrap;gap:8px;margin:12px 20px;padding:12px;background:var(--preview-nav,#173b35);border-radius:var(--preview-radius,12px)}
#workspace-side-navigation [data-personal-shortcut]{white-space:normal;overflow-wrap:anywhere;max-width:100%}
#workspace-side-navigation [data-personal-side="left"]{order:-1}
.personalize-dialog{font:inherit;background:var(--preview-surface,var(--white,#fff));color:var(--preview-ink,var(--ink,#252c25));border-color:var(--preview-line,var(--line,#d5d9cf));border-radius:var(--preview-radius,12px)}
.da-local-result{background:var(--preview-soft,var(--paper,#f0f3e7));color:var(--preview-ink,var(--ink,#252c25));border-radius:var(--preview-radius,8px)}


/* Owner-requested call lifecycle colours remain distinct from workspace themes. */
.newest-activity-flag.activity-scheduled{background:#e4f3e8;color:#1e5732;border-color:#b8d9c2}
.newest-activity-flag.activity-completed{background:#124f32;color:#fff;border-color:#124f32}
.newest-activity-flag.activity-rescheduling,.newest-activity-flag.activity-rescheduled{background:#fff1bd;color:#674700;border-color:#d9b54a}
.newest-activity-flag.activity-uncompleted,.newest-activity-flag.activity-cancelled{background:#fde8e7;color:#8e2020;border-color:#e4aaa5}
.newest-activity-flag small{display:block;color:inherit;overflow-wrap:anywhere}

/* Shared expert activity follows the active workspace theme. */
.newest-heading{flex-wrap:wrap}.newest-heading h2{margin:0}.newest-experts-panel>p{margin:10px 0}.newest-heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;max-width:100%}.newest-sortbar{display:flex;flex-wrap:wrap;gap:8px;margin:0}.newest-activity{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.newest-activity-flag{display:inline-block;padding:6px 9px;border:1px solid var(--preview-line,var(--line));border-radius:var(--preview-radius,8px);background:var(--preview-soft,var(--paper));color:var(--preview-ink,var(--ink));font-size:12px;line-height:1.4}.newest-activity-flag small{margin:3px 0 0}.newest-sortbar .button{white-space:normal}.newest-expert-identity{overflow-wrap:anywhere}

/* Keep the name, identity and next actions compact, with natural wrapping. */
.project-expert-card .expert-name-row{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
.project-expert-card .expert-name-row h4{flex:0 1 auto;min-width:0}
.project-expert-card .project-expert-fold-bar>.project-expert-top{display:flex;flex-direction:row;align-items:flex-start;flex-wrap:wrap;gap:8px 16px}
.project-expert-card .project-expert-fold-bar .project-expert-heading{flex:1 1 280px;width:auto}
.project-expert-card .project-expert-fold-bar .project-expert-top-controls{flex:1 1 340px;width:auto;margin:0}
.project-expert-card .project-expert-fold-bar{margin-bottom:0}
.project-expert-card .project-rate{margin:3px 0 0}
.project-expert-card .expert-expanded{margin-top:2px}
.project-expert-card .expert-expanded>summary{padding:3px 0}
.project-expert-card .top-review-actions>button,.project-expert-card .project-expert-toolbar>button{margin:0!important}
.project-expert-count:is(button){font:inherit;cursor:pointer}
@media(max-width:600px){.project-expert-card .project-expert-fold-bar .project-expert-heading,.project-expert-card .project-expert-fold-bar .project-expert-top-controls{flex-basis:100%}.project-expert-card .project-expert-fold-bar .top-review-actions{justify-content:flex-start}}

.project-expert-card .has-inline-opinion>summary{display:none}
/* Native outlined button: confidence and label share one flex alignment. */
html .project-expert-card .expert-opinion-toggle{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:6px;width:fit-content;max-width:100%;box-sizing:border-box;min-height:42px;margin:6px 0 0;padding:8px 10px;font-size:12px;font-weight:650;line-height:1.4;text-align:left;white-space:normal;cursor:pointer}
.expert-opinion-toggle .expert-opinion-content{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%}
.expert-opinion-toggle::before{content:'▸';display:block;flex:0 0 auto;line-height:1;margin:0}
.expert-opinion-toggle[aria-expanded=true]::before{content:'▾'}
.expert-opinion-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.expert-opinion-toggle .expert-fit-indicator{display:inline-flex;align-items:center;gap:5px;min-width:0;margin:0;font-size:inherit;line-height:inherit;vertical-align:initial}
.expert-opinion-toggle .expert-fit-indicator i{display:block;flex:0 0 auto;width:5px;height:16px;margin:0;align-self:center}
.expert-opinion-toggle .expert-opinion-label{display:inline-flex;align-items:center;min-width:0;line-height:inherit}
.project-expert-card .has-inline-opinion:not([open]){margin:0}





