/* Presentation-only layer, loaded exclusively inside numbered preview frames.
   Existing application layout, permissions, status colours and behavior remain authoritative. */
html[data-ecg-style-theme]{--preview-paper:#f7f8f2;--preview-surface:#fff;--preview-ink:#252c25;--preview-muted:#62695e;--preview-line:#d5d9cf;--preview-accent:#e5f58e;--preview-on-accent:#202721;--preview-nav:#202721;--preview-on-nav:#fff;--preview-soft:#f0f3e7;--preview-radius:12px;--preview-heading:Inter,ui-sans-serif,system-ui,sans-serif;--preview-space:20px;--preview-green:#535e49}
html[data-ecg-style-theme="2"]{--preview-paper:#f2f5fa;--preview-ink:#152c49;--preview-muted:#5d6d80;--preview-line:#d9e2ec;--preview-accent:#2359b8;--preview-on-accent:#fff;--preview-nav:#142b49;--preview-soft:#edf3fb;--preview-radius:6px;--preview-green:#2359b8}
html[data-ecg-style-theme="3"]{--preview-paper:#f6f1e9;--preview-surface:#fffcf7;--preview-ink:#3b2928;--preview-muted:#77645e;--preview-line:#dfd1c3;--preview-accent:#753645;--preview-on-accent:#fff;--preview-nav:#502d36;--preview-soft:#f0e7dd;--preview-radius:2px;--preview-heading:Georgia,"Times New Roman",serif;--preview-green:#753645}
html[data-ecg-style-theme="4"]{--preview-paper:#edf5f5;--preview-ink:#173e42;--preview-muted:#5b7477;--preview-line:#cfe0e0;--preview-accent:#176b70;--preview-on-accent:#fff;--preview-nav:#164d52;--preview-soft:#e9f5f3;--preview-radius:20px;--preview-space:24px;--preview-green:#176b70}
html[data-ecg-style-theme="5"]{--preview-paper:#f4f4f4;--preview-ink:#222;--preview-muted:#666;--preview-line:#d7d7d7;--preview-accent:#254ce1;--preview-on-accent:#fff;--preview-nav:#242424;--preview-soft:#f0f0f0;--preview-radius:3px;--preview-space:16px;--preview-green:#254ce1}
html[data-ecg-style-theme="6"]{color-scheme:dark;--preview-paper:#131b25;--preview-surface:#1b2634;--preview-ink:#e6edf5;--preview-muted:#a0b0c3;--preview-line:#405165;--preview-accent:#a6e2cd;--preview-on-accent:#163b30;--preview-nav:#253e47;--preview-on-nav:#e6f6ee;--preview-soft:#263743;--preview-green:#a6e2cd}
html[data-ecg-style-theme] body{--ink:var(--preview-ink);--green:var(--preview-ink);--green2:var(--preview-green);--copper:var(--preview-green);--paper:var(--preview-paper);--line:var(--preview-line);--muted:var(--preview-muted);--white:var(--preview-surface);--serif:var(--preview-heading);--research-accent:var(--preview-accent);background:var(--preview-paper)!important;color:var(--preview-ink)!important;font-family:var(--sans,system-ui,sans-serif)}
html[data-ecg-style-theme] :is(.site-header,.card,.project-card,.project-expert-card,.project-workspace,.client-calendar-panel,.client-dashboard-top,.client-calls-panel,.client-call-card,.request-detail,.person-card,.dashboard-metric,.metric-card,.project-ai-ranking,.project-ai-search-result,.project-brief-editor,.project-client-option,.coordinator-request-menu,dialog){background:var(--preview-surface)!important;color:var(--preview-ink)!important;border-color:var(--preview-line)!important;border-radius:var(--preview-radius);box-shadow:none}
html[data-ecg-style-theme] .site-header{border-radius:0;padding-left:24px;padding-right:24px}
html[data-ecg-style-theme] :is(.brand,.brand small,.project-rate,.project-card-heading h3,.project-expert-heading h4,.card-fold-title,.project-ai-fit h4,.client-section-heading h2,.project-goals h4,.linkedin-summary strong,.header-link,.access-switch){color:var(--preview-ink)!important}
html[data-ecg-style-theme] :is(.project-card,.project-expert-card,.project-workspace,.client-calendar-panel,.client-calls-panel,.request-detail){padding:var(--preview-space)}
html[data-ecg-style-theme] :is(.project-create-panel,.project-add-expert,.project-goals,.linkedin-summary,.project-ai-assistant,.project-ai-fit,.client-expert-review,.project-activity-count,.project-recruitment,.project-excluded-experts,.project-screening,.screening-history,.result-card,.icon-box,.privacy-chip,.project-client-research-panel,.project-assistant-panel){background:var(--preview-soft)!important;color:var(--preview-ink)!important;border-color:var(--preview-line)!important;border-radius:var(--preview-radius)}
html[data-ecg-style-theme] :is(.project-create-panel,.project-add-expert,.project-recruitment,.project-screening,.screening-history,.project-brief-editor,.project-ai-search-result)>summary{color:var(--preview-ink)!important;padding:14px 16px}
html[data-ecg-style-theme] :is(.muted,.eyebrow,.brand small,.project-description,.linkedin-headline,.project-activity-count span,.project-ai-search-result>summary small){color:var(--preview-muted)!important}
html[data-ecg-style-theme] :is(h1,h2,h3,h4){font-family:var(--preview-heading);line-height:1.25}
html[data-ecg-style-theme] :is(.dashboard-top h1,.client-dashboard-top h1,.request-top h1){font-size:clamp(26px,3vw,36px);letter-spacing:-.025em}
html[data-ecg-style-theme] :is(.project-card-heading h3,.client-section-heading h2){font-size:22px}
html[data-ecg-style-theme] .project-expert-heading h4{font-size:18px}
html[data-ecg-style-theme] :is(input,select,textarea){background:var(--preview-surface);color:var(--preview-ink);border-color:var(--preview-line);border-radius:6px}
html[data-ecg-style-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select){min-height:40px}
html[data-ecg-style-theme] :is(input,select,textarea):focus-visible{outline:2px solid var(--preview-green);outline-offset:2px}
html[data-ecg-style-theme] .button{min-height:40px;border-radius:6px;font-size:13px;line-height:1.35;padding:10px 14px;font-weight:650;box-sizing:border-box}
html[data-ecg-style-theme] .button:is(.primary,.accent){background:var(--preview-accent)!important;color:var(--preview-on-accent)!important;border-color:var(--preview-accent)!important}
html[data-ecg-style-theme] .button.outline{background:var(--preview-surface)!important;color:var(--preview-ink)!important;border:1px solid var(--preview-line)!important}
html[data-ecg-style-theme] :is(.project-top-action-row,.project-actions,.project-expert-actions){gap:8px}
html[data-ecg-style-theme] :is(.project-actions,.project-expert-actions)>.button{min-height:44px;font-size:12px;padding:8px;line-height:1.35}
html[data-ecg-style-theme] :is(.card-fold-toggle,.project-collapse-toggle,.project-priority-select){min-height:34px;font-size:12px;padding:6px 10px}
html[data-ecg-style-theme] :is(.request-rail,.privacy-panel,.month-head){background:var(--preview-nav)!important;color:var(--preview-on-nav)!important;border-radius:var(--preview-radius)}
html[data-ecg-style-theme] .request-item{border-radius:calc(var(--preview-radius) / 2);color:var(--preview-on-nav)}
html[data-ecg-style-theme] .request-item.active{background:var(--preview-surface)!important;color:var(--preview-ink)!important}
html[data-ecg-style-theme] .request-item.active small{color:var(--preview-muted)!important}
html[data-ecg-style-theme] :is(.rail-heading,.request-item:not(.active) small){color:var(--preview-on-nav)!important}
html[data-ecg-style-theme] :is(.month-grid,.month-day,.calendar-day,.client-month-day){border-color:var(--preview-line)}
html[data-ecg-style-theme="3"] .site-header{border-bottom:2px solid var(--preview-ink)}
html[data-ecg-style-theme="4"] .button{border-radius:10px}
html[data-ecg-style-theme="4"] :is(.project-card,.card){box-shadow:0 5px 20px #174b4d08}
html[data-ecg-style-theme="5"] :is(.project-list,.client-dashboard){gap:14px}
html[data-ecg-style-theme="6"] .brand-mark{background:#fff!important;border-radius:4px;padding:3px}
/* Keep functional status fills, alerts, payment and call colours intact. */
html[data-ecg-style-theme="6"] :is(.month-day,.calendar-day,.client-month-day,.client-expert-identity,.project-excluded-expert,.project-headshot-control,.recruitment-application,.coordinator-client-note,.team-visibility-card,.follow-up-header,.follow-up-content,.follow-up-slot,.project-call-client){background:var(--preview-surface);color:var(--preview-ink);border-color:var(--preview-line)}
html[data-ecg-style-theme="6"] :is(.project-expert-count,.project-excluded-count,.project-ai-rank){background:var(--preview-soft);color:var(--preview-ink)}
@media(max-width:680px){html[data-ecg-style-theme]{--preview-space:16px}html[data-ecg-style-theme] .site-header{padding-left:16px;padding-right:16px}html[data-ecg-style-theme] .button{font-size:12px;padding:8px 10px}html[data-ecg-style-theme] :is(.project-actions,.project-expert-actions)>.button{font-size:10px;padding:6px 3px}html[data-ecg-style-theme] .project-card-heading h3{font-size:20px}}

/* Layout choices are independent of the six colour palettes. */
#workspace-style-panel{max-width:1480px;width:calc(100% - 40px);margin:12px auto 24px;padding:24px;box-sizing:border-box;position:relative;z-index:20}
.workspace-style-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.workspace-style-heading h2{margin:0}.workspace-style-heading p{margin:8px 0 16px}
#workspace-style-panel fieldset{border:0;padding:0;margin:14px 0;min-width:0}#workspace-style-panel legend{font-weight:800;margin-bottom:10px}
.workspace-colour-options,.workspace-layout-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.workspace-colour-options button,.workspace-layout-options button{white-space:normal;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px}
.workspace-layout-options button{flex-direction:column;text-align:center;padding:12px}.workspace-layout-options small{font-weight:400;line-height:1.4}
#workspace-style-panel button[aria-pressed=true]{outline:3px solid var(--preview-green,#176b42);outline-offset:2px}
.workspace-swatch{display:block;flex:0 0 18px;width:18px;height:18px;border-radius:50%;border:1px solid #888}.swatch-1{background:#535e49}.swatch-2{background:#2359b8}.swatch-3{background:#753645}.swatch-4{background:#176b70}.swatch-5{background:#454545}.swatch-6{background:#172333}
.layout-thumbnail{width:85px;height:46px;display:grid;grid-template-columns:1fr;gap:3px;padding:4px;background:#e5e8e4;border-radius:4px}.layout-thumbnail i{display:block;background:#758e80;border-radius:2px}.layout-thumbnail-2{grid-template-columns:20px 1fr}.layout-thumbnail-2 i:first-child{grid-row:span 2}.layout-thumbnail-3{grid-template-columns:2fr 1fr}.layout-thumbnail-3 i:first-child{grid-row:span 2}.layout-thumbnail-4{grid-template-columns:1fr 1fr}.layout-thumbnail-4 i:first-child{grid-column:span 2}.layout-thumbnail-5{grid-template-columns:1fr 1fr}.layout-thumbnail-5 i:last-child{grid-column:span 2}.layout-thumbnail-6{grid-template-rows:5px 5px 5px;align-content:start}
#workspace-side-navigation{display:none}
html[data-ecg-style-theme] .project-call-invitation.button,html .project-call-invitation.button{background:#176b42!important;border-color:#176b42!important;color:#fff!important;white-space:normal!important;line-height:1.4}
#pending-invitation-summary{display:block;margin-bottom:18px}#pending-invitation-summary ul{columns:2;max-height:240px;overflow:auto;padding-left:24px}
html[data-ecg-layout] .client-dashboard>*{min-width:0}
html[data-ecg-layout="2"][data-ecg-workspace-view]:not([data-ecg-workspace-view=""]) #workspace-side-navigation{display:flex;flex-direction:column;position:fixed;left:20px;top:140px;width:180px;gap:8px;padding:16px;background:var(--preview-nav,#173b35);border-radius:12px;z-index:15;max-height:calc(100vh - 160px);overflow:auto}
#workspace-side-navigation button{background:transparent;border:0;color:var(--preview-on-nav,#fff);padding:12px 10px;text-align:left;cursor:pointer;border-radius:6px;font:inherit}#workspace-side-navigation button:hover,#workspace-side-navigation button:focus-visible{background:#ffffff22}
html[data-ecg-layout="2"] #app{width:calc(100% - 260px);max-width:none;margin-left:240px;margin-right:20px}
html[data-ecg-layout="2"] #workspace-style-panel{width:calc(100% - 260px);margin-left:240px;margin-right:20px}
@media(min-width:1100px){
 html[data-ecg-layout="3"] .client-dashboard,html[data-ecg-layout="4"] .client-dashboard,html[data-ecg-layout="5"] .client-dashboard{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:20px;align-items:start}
 html[data-ecg-layout] .client-dashboard-top,html[data-ecg-layout] #client-metrics{grid-column:1/-1}
 html[data-ecg-layout="3"] #client-projects-panel{grid-column:1;grid-row:3}html[data-ecg-layout="3"] .client-calendar-panel{grid-column:2;grid-row:3}html[data-ecg-layout="3"] .client-calls-panel{grid-column:1/-1}
 html[data-ecg-layout="4"] .client-calendar-panel{grid-column:1/-1;grid-row:3}html[data-ecg-layout="4"] #client-projects-panel{grid-column:1;grid-row:4}html[data-ecg-layout="4"] .client-calls-panel{grid-column:2;grid-row:4}
 html[data-ecg-layout="5"] #client-projects-panel{grid-column:1;grid-row:3}html[data-ecg-layout="5"] .client-calls-panel{grid-column:2;grid-row:3}html[data-ecg-layout="5"] .client-calendar-panel{grid-column:1/-1;grid-row:4}
 html[data-ecg-layout="3"] .client-dashboard .project-expert-grid,html[data-ecg-layout="4"] .client-dashboard .project-expert-grid,html[data-ecg-layout="5"] .client-dashboard .project-expert-grid{grid-template-columns:minmax(0,1fr)}
 html[data-ecg-layout="3"] #app.ecg-layout-admin,html[data-ecg-layout="4"] #app.ecg-layout-admin,html[data-ecg-layout="5"] #app.ecg-layout-admin{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:20px;align-items:start}
 html[data-ecg-layout] #app.ecg-layout-admin>*{grid-column:1/-1;min-width:0}
 html[data-ecg-layout="3"] #app.ecg-layout-admin>#project-workspace{grid-column:1;grid-row:2}html[data-ecg-layout="3"] #app.ecg-layout-admin>.dashboard{grid-column:2;grid-row:2}
 html[data-ecg-layout="4"] #app.ecg-layout-admin>.dashboard{grid-row:1}html[data-ecg-layout="4"] #app.ecg-layout-admin>#project-workspace{grid-column:1;grid-row:3}html[data-ecg-layout="4"] #app.ecg-layout-admin>.admin-layout{grid-column:2;grid-row:3;display:flex;flex-direction:column}
 html[data-ecg-layout="5"] #app.ecg-layout-admin>#project-workspace{grid-column:1;grid-row:2}html[data-ecg-layout="5"] #app.ecg-layout-admin>.admin-layout{grid-column:2;grid-row:2;display:flex;flex-direction:column}html[data-ecg-layout="5"] #app.ecg-layout-admin>.dashboard{grid-row:3}
}
html[data-ecg-layout="6"] .client-dashboard,html[data-ecg-layout="6"] #app.ecg-layout-admin{display:flex;flex-direction:column;gap:12px}
html[data-ecg-layout="6"] .client-dashboard>* ,html[data-ecg-layout="6"] #app.ecg-layout-admin>*{width:100%;box-sizing:border-box}
html[data-ecg-layout="6"] #client-projects-panel,html[data-ecg-layout="6"] #project-workspace{order:1}html[data-ecg-layout="6"] .client-calls-panel,html[data-ecg-layout="6"] .admin-layout{order:2}html[data-ecg-layout="6"] .client-calendar-panel,html[data-ecg-layout="6"] .dashboard{order:3}html[data-ecg-layout="6"] #app.ecg-layout-admin>.expert-directory{order:4}
html[data-ecg-layout="6"] .project-expert-grid{display:flex;flex-direction:column;gap:10px}html[data-ecg-layout="6"] .project-expert-card{padding:14px!important;border-radius:6px!important}html[data-ecg-layout="6"] .project-expert-top{margin-bottom:8px}html[data-ecg-layout="6"] .project-expert-card h4{font-size:17px}html[data-ecg-layout="6"] .project-expert-card p{margin-top:6px;margin-bottom:6px}
html[data-ecg-layout] .client-calendar-panel,html[data-ecg-layout] .dashboard{min-width:0;overflow:auto}
@media(max-width:1099px){.workspace-colour-options,.workspace-layout-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 #workspace-style-panel{width:calc(100% - 24px);padding:16px}.workspace-style-heading{flex-wrap:wrap}.workspace-colour-options,.workspace-layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-ecg-layout="2"] #app,html[data-ecg-layout="2"] #workspace-style-panel{width:calc(100% - 24px);margin-left:12px;margin-right:12px}
 html[data-ecg-layout="2"] #workspace-side-navigation{position:static!important;width:auto!important;max-height:none!important;margin:12px;flex-direction:row!important;flex-wrap:wrap;order:0;padding:8px!important}
 #pending-invitation-summary ul{columns:1}.header-actions{flex-wrap:wrap}
}

@media(min-width:1100px){
 html:is([data-ecg-layout="4"],[data-ecg-layout="5"]) .admin-layout>*,html:is([data-ecg-layout="4"],[data-ecg-layout="5"]) .admin-layout .person-card{min-width:0;max-width:100%;box-sizing:border-box}
 html:is([data-ecg-layout="4"],[data-ecg-layout="5"]) .admin-layout .people-grid{grid-template-columns:minmax(0,1fr)}
 html:is([data-ecg-layout="4"],[data-ecg-layout="5"]) .admin-layout .request-top{flex-direction:column}
 html:is([data-ecg-layout="4"],[data-ecg-layout="5"]) #request-detail{overflow-x:auto;overflow-wrap:anywhere}
}

@media(min-width:1100px){html[data-ecg-layout="3"] .client-calendar-panel .dashboard-top,html[data-ecg-layout="3"] #app.ecg-layout-admin>.dashboard>.dashboard-top{flex-direction:column;align-items:flex-start;gap:12px}html[data-ecg-layout="3"] .client-calendar-panel h2{font-size:22px}}

/* Additional layouts: keep all navigation on the existing, permission-scoped sections. */
.layout-thumbnail-7{grid-template-columns:1fr 1fr;grid-template-rows:8px 1fr}.layout-thumbnail-7 i:first-child{grid-column:1/-1}
.layout-thumbnail-8{grid-template-columns:1fr 15px;grid-template-rows:1fr 1fr}.layout-thumbnail-8 i:nth-child(2){grid-column:2;grid-row:1/3}
.layout-thumbnail-9{grid-template-columns:1fr 1.4fr;grid-template-rows:1fr 8px}.layout-thumbnail-9 i:last-child{grid-column:1/-1}
.layout-thumbnail-10{grid-template-columns:1fr 1fr;grid-template-rows:1fr 8px}.layout-thumbnail-10 i:last-child{grid-column:1/-1;width:70%;justify-self:center;border-radius:8px}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .workspace-layout-options{grid-template-columns:repeat(5,minmax(0,1fr))}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) #workspace-side-navigation{display:flex;box-sizing:border-box;gap:6px;counter-reset:workspace-section}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) #workspace-side-navigation button{min-height:44px;line-height:1.35;font-size:13px;font-weight:650;flex:0 0 auto}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) #workspace-side-navigation button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .header-actions .coordinator-preview-button{background:var(--preview-soft);color:var(--preview-ink);border-color:var(--preview-line)}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .dashboard-metric:not(.payment-attention) :is(small,span){color:var(--preview-muted)}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) :is(#client-projects-panel,#project-workspace,.client-calendar-panel,.dashboard,.client-calls-panel,.admin-layout,.expert-directory,#coordinator-request-menu){scroll-margin-top:90px}

/* 7 — a full-width command strip with generous horizontal working space. */
html[data-ecg-layout="7"] #workspace-side-navigation{position:sticky;top:0;z-index:16;justify-content:center;flex-wrap:wrap;padding:10px 24px;background:var(--preview-nav);border-bottom:3px solid var(--preview-accent);box-shadow:0 4px 16px #00000012}
html[data-ecg-layout="7"] .site-header{position:static}
html[data-ecg-layout="7"] #workspace-side-navigation button{padding:12px 20px;border-right:1px solid #ffffff22;border-radius:0}
html[data-ecg-layout="7"] #workspace-side-navigation button:last-child{border:1px solid #ffffff55;border-radius:6px;margin-left:12px}
html[data-ecg-layout="7"] #app{max-width:1680px;width:calc(100% - 64px)}
html[data-ecg-layout="7"] :is(.client-dashboard-top,.dashboard){border-top:4px solid var(--preview-green)}

/* 8 — editorial rhythm and a quiet contents rail, on the right. */
html[data-ecg-layout="8"] #app,html[data-ecg-layout="8"] #workspace-style-panel{width:calc(100% - 320px);max-width:1040px;margin-left:max(24px,calc((100% - 1360px)/2));margin-right:272px}
html[data-ecg-layout="8"] #workspace-side-navigation{position:fixed;right:max(24px,calc((100% - 1360px)/2));top:150px;width:224px;max-height:calc(100dvh - 174px);overflow:auto;flex-direction:column;padding:18px 0;border-top:3px solid var(--preview-green);border-bottom:1px solid var(--preview-line);background:var(--preview-paper);z-index:15}
html[data-ecg-layout="8"] #workspace-side-navigation::before{content:'IN THIS WORKSPACE';font-size:10px;letter-spacing:.16em;font-weight:800;color:var(--preview-muted);padding:0 12px 12px}
html[data-ecg-layout="8"] #workspace-side-navigation button{color:var(--preview-ink);padding:14px 12px;border-bottom:1px solid var(--preview-line);border-radius:0;display:flex;align-items:baseline;gap:12px}
html[data-ecg-layout="8"] #workspace-side-navigation button::before{counter-increment:workspace-section;content:counter(workspace-section,decimal-leading-zero);color:var(--preview-muted);font-size:11px;font-weight:400}
html[data-ecg-layout="8"] #workspace-side-navigation button:hover{background:var(--preview-soft)}
html[data-ecg-layout="8"] :is(.dashboard-top h1,.client-dashboard-top h1,.project-card-heading h3){font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.025em}
html[data-ecg-layout="8"] :is(.project-card,.client-calendar-panel,.client-calls-panel,.project-workspace){border-radius:2px;border-top:2px solid var(--preview-line)}
html[data-ecg-layout="8"] .project-expert-grid{grid-template-columns:minmax(0,1fr)}
html[data-ecg-layout="8"] .admin-layout{display:flex;flex-direction:column}
html[data-ecg-layout="8"] .admin-layout .people-grid{grid-template-columns:minmax(0,1fr)}
html[data-ecg-layout="8"] .admin-layout .request-rail{min-height:auto}

/* 9 — calendar left, research right, with calls spanning the board below. */
html[data-ecg-layout="9"] #workspace-side-navigation{max-width:1480px;width:calc(100% - 40px);margin:18px auto 0;padding:8px;flex-wrap:wrap;background:var(--preview-soft);border:1px solid var(--preview-line);border-radius:10px}
html[data-ecg-layout="9"] #workspace-side-navigation button{color:var(--preview-ink);padding:10px 16px;background:var(--preview-surface);border:1px solid var(--preview-line);border-radius:5px}
html[data-ecg-layout="9"] #workspace-side-navigation button:hover{border-color:var(--preview-green)}
html[data-ecg-layout="9"] #workspace-side-navigation button:last-child{margin-left:auto;background:var(--preview-nav);color:var(--preview-on-nav)}
html[data-ecg-layout="9"] :is(.project-workspace,.client-calendar-panel,.client-calls-panel){border-top:4px solid var(--preview-green);border-radius:6px}
@media(min-width:1200px){
 html[data-ecg-layout="9"] .client-dashboard,html[data-ecg-layout="9"] #app.ecg-layout-admin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;align-items:start}
 html[data-ecg-layout="9"] .client-dashboard>*{grid-column:1/-1;min-width:0}
 html[data-ecg-layout="9"] .client-calendar-panel{grid-column:1;grid-row:3}
 html[data-ecg-layout="9"] #client-projects-panel{grid-column:2;grid-row:3}
 html[data-ecg-layout="9"] #app.ecg-layout-admin>.dashboard{grid-column:1;grid-row:2}
 html[data-ecg-layout="9"] #app.ecg-layout-admin>#project-workspace{grid-column:2;grid-row:2}
 html[data-ecg-layout="9"] .project-expert-grid{grid-template-columns:minmax(0,1fr)}
 html[data-ecg-layout="9"] :is(.client-calendar-panel,.dashboard) .dashboard-top{flex-direction:column;align-items:flex-start;gap:12px}
 html[data-ecg-layout="9"] .client-calendar-panel h2{font-size:22px}
}

/* 10 — a floating bottom dock with a two-column project gallery on large screens. */
html[data-ecg-layout="10"] body{padding-bottom:112px}
html[data-ecg-layout="10"] #workspace-side-navigation{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:18;width:max-content;max-width:calc(100% - 32px);padding:8px 14px;overflow-x:auto;background:var(--preview-nav);border:1px solid var(--preview-line);border-radius:22px;box-shadow:0 10px 38px #00000030}
html[data-ecg-layout="10"] #workspace-side-navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:92px;padding:8px 12px;text-align:center;font-size:11px;border-radius:12px}
html[data-ecg-layout="10"] #workspace-side-navigation button::before{counter-increment:workspace-section;content:counter(workspace-section,decimal-leading-zero);display:grid;place-items:center;width:25px;height:25px;border:1px solid #ffffff55;border-radius:8px;font-size:10px;letter-spacing:.05em}
html[data-ecg-layout="10"] #workspace-side-navigation button:last-child::before{content:'Aa';font-family:Georgia,serif;font-size:13px}
html[data-ecg-layout="10"] #app{max-width:1600px;width:calc(100% - 56px)}
html[data-ecg-layout="10"] :is(.project-card,.client-dashboard-top,.client-calendar-panel,.client-calls-panel){border-radius:20px;box-shadow:0 6px 22px #00000006}
@media(min-width:1300px){
 html[data-ecg-layout="10"] .project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px}
 html[data-ecg-layout="10"] .project-list>*{min-width:0}
 html[data-ecg-layout="10"] .project-expert-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1099px){
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .workspace-layout-options{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-ecg-layout="8"] #app,html[data-ecg-layout="8"] #workspace-style-panel{width:calc(100% - 40px);margin-left:20px;margin-right:20px;max-width:none}
 html[data-ecg-layout="8"] #workspace-side-navigation{position:static;flex-direction:row;flex-wrap:wrap;width:calc(100% - 40px);max-height:none;margin:20px; padding:10px 0}
 html[data-ecg-layout="8"] #workspace-side-navigation::before{width:100%;padding-bottom:0}
 html[data-ecg-layout="8"] #workspace-side-navigation button{border-bottom:0;padding:10px}
}
@media(max-width:760px){
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .workspace-layout-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) #app,html[data-ecg-layout="8"] #workspace-style-panel{width:calc(100% - 24px);margin-left:12px;margin-right:12px}
 html[data-ecg-layout="7"] #workspace-side-navigation{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:6px 12px}
 html[data-ecg-layout="7"] #workspace-side-navigation button{padding:10px 12px}
 html[data-ecg-layout="7"] #workspace-side-navigation button:last-child{margin-left:0}
 html:is([data-ecg-layout="8"],[data-ecg-layout="9"]) #workspace-side-navigation{width:calc(100% - 24px);margin:12px}
 html[data-ecg-layout="9"] #workspace-side-navigation button{flex:1 1 auto;padding:10px}
 html[data-ecg-layout="9"] #workspace-side-navigation button:last-child{margin-left:0}
 html[data-ecg-layout="10"] #workspace-side-navigation{bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - 16px);padding:5px 6px;border-radius:16px}
 html[data-ecg-layout="10"] #workspace-side-navigation button{min-width:78px;padding:6px 8px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){html[data-ecg-layout] {scroll-behavior:auto}}

/* A narrow panel needs wrapping even when the browser itself is desktop-sized. */
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .project-expert-fold-bar>.project-expert-top{flex-wrap:wrap}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .project-expert-fold-bar .top-review-actions{flex-wrap:wrap;min-width:0;max-width:100%}
html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .project-expert-fold-bar .project-expert-heading{min-width:0}
@media(max-width:1099px){
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .admin-layout{grid-template-columns:minmax(0,1fr)}
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .admin-layout :is(.people-grid,.person-card){min-width:0;max-width:100%}
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .admin-layout .people-grid{grid-template-columns:minmax(0,1fr)}
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) .admin-layout .request-rail{min-height:auto}
 html:is([data-ecg-layout="7"],[data-ecg-layout="8"],[data-ecg-layout="9"],[data-ecg-layout="10"]) :is(#client-projects-panel,#project-workspace,.client-calendar-panel,.dashboard,.client-calls-panel,.admin-layout,.expert-directory,#coordinator-request-menu){scroll-margin-top:160px}
}

/* Owner defaults: accessible viewport picker, compact project links, stable AI blue. */
html #workspace-style-panel{position:fixed;inset:80px 16px auto auto;width:min(1050px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 100px);overflow:auto;margin:0;z-index:1000;box-shadow:0 12px 48px #0004}
.workspace-style-heading{position:sticky;top:-24px;background:var(--preview-surface,#fff);z-index:2;padding:8px 0}
#workspace-project-links[hidden]{display:none!important}
#workspace-project-links{min-width:0;flex:1 0 100%;padding-left:10px;border-left:1px solid #ffffff55}
#workspace-side-navigation #workspace-project-links button{display:block;width:100%;min-width:0;min-height:34px;padding:7px 8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;border:0;margin:0;background:transparent;color:inherit}
#workspace-project-links{color:var(--preview-on-nav,#fff)}
html:is([data-ecg-layout="8"],[data-ecg-layout="9"]) #workspace-project-links{color:var(--preview-ink)}
#workspace-side-navigation #workspace-project-links button::before{display:none}
#workspace-projects-toggle::after{content:' ▾'}
#workspace-projects-toggle[aria-expanded=true]::after{content:' ▴'}
.client-expert-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
html :is(body,#ecg-ai-controls) :is(.la-launch,.da-dashboard-launch,.pa-launch,.project-ai-assistant button,.rank-project-experts-form button,.pa-form button[type=submit],.la-preparation-form button,.la-help-now,.da-form button[type=submit]){background:#2359b8!important;border-color:#2359b8!important;color:#fff!important}
html :is(body,#ecg-ai-controls) :is(.la-launch,.da-dashboard-launch,.pa-launch,.project-ai-assistant button,.rank-project-experts-form button,.pa-form button[type=submit],.la-preparation-form button,.la-help-now,.da-form button[type=submit]):hover{background:#19458f!important;border-color:#19458f!important}
@media(max-width:760px){html #workspace-style-panel{inset:72px 12px auto;width:calc(100vw - 24px);margin:0;max-height:calc(100dvh - 88px)}.workspace-style-heading{top:-16px}}

html[data-ecg-layout] .site-header{position:sticky;top:0;z-index:25}

/* Compact client identity and quiet header sign-out; keep the original action. */
html body .client-dashboard-top{padding:12px 18px;gap:12px;flex-wrap:wrap;min-height:0}
html body .client-dashboard-top>div:first-child{min-width:0}
html body .client-dashboard-top .eyebrow{font-size:10px;line-height:1.3;margin:0 0 3px}
html body .client-dashboard-top #client-dashboard-title{font-size:22px;line-height:1.2;margin:0;letter-spacing:-.02em}
html body .client-dashboard-top #client-dashboard-email{font-size:12px;line-height:1.4;margin:4px 0 0;overflow-wrap:anywhere}
html body .client-dashboard-top .ticker-research-search{margin:0;margin-left:auto}
html body .header-actions #client-logout{order:99;flex:0 0 auto;min-height:32px;padding:6px 8px;font-size:11px;line-height:1.3;font-weight:400;background:transparent!important;border:1px solid transparent!important;color:var(--muted,#62695e)!important;box-shadow:none}
html body .header-actions #client-logout:hover{color:var(--ink,#252c25)!important;text-decoration:underline}
html body .header-actions #client-logout:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:760px){html body .client-dashboard-top{padding:12px 14px;gap:10px}html body .client-dashboard-top #client-dashboard-title{font-size:20px}html body .client-dashboard-top .ticker-research-search{margin-left:0}}

html body .client-dashboard-top .ticker-research-search{gap:8px;flex-wrap:nowrap;align-items:end}
html body .client-dashboard-top .ticker-research-search label{min-width:0;flex:1;font-size:11px;gap:3px}
html body .client-dashboard-top .ticker-research-search input{width:100%;min-width:0;min-height:34px;padding:7px 9px;font-size:12px}
html body .client-dashboard-top .ticker-research-search .button{min-height:34px;padding:7px 10px;font-size:11px;flex:0 0 auto}

/* Keep completed history separate and reveal section headings below the menu. */
#client-active-calls-panel,#client-completed-calls-panel{scroll-margin-top:150px}
html body .client-expert-identity strong.client-expert-name-row{display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;row-gap:6px}
html body .client-expert-identity .client-expert-name-row>.project-linkedin{margin-inline-start:4px;flex-shrink:0}
html #app .client-dashboard .button.la-launch,html #app .client-dashboard .button.pa-launch,html .site-header .da-dashboard-launch{background:#2359b8!important;border-color:#2359b8!important;color:#fff!important}
html #app .client-dashboard .button.la-launch:hover,html #app .client-dashboard .button.pa-launch:hover,html .site-header .da-dashboard-launch:hover{background:#19458f!important;border-color:#19458f!important}

/* Compact unavailable-time pairs: time range, then date range. */
html body .unavailable-rule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
html body .unavailable-rule>*{grid-column:1/-1;min-width:0}
html body .unavailable-rule>label:has([data-rule="start"]),html body .unavailable-rule>label:has([data-rule="startDate"]){grid-column:1}
html body .unavailable-rule>label:has([data-rule="end"]),html body .unavailable-rule>label:has([data-rule="endDate"]){grid-column:2}
html body .unavailable-rule>label{display:flex;flex-direction:column;justify-content:space-between;gap:6px}
html body .unavailable-rule>label :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:480px){html body .unavailable-rule{gap:10px}html body .unavailable-rule>label{font-size:12px}html body .unavailable-rule>label :is(input,select){font-size:12px;padding-left:6px;padding-right:6px}}

/* Keep the ticker readable; shorten the company name within a calendar tile. */
html body .calendar-call .calendar-call-title{display:flex;align-items:baseline;min-width:0;max-width:100%;overflow:hidden}
html body .calendar-call .calendar-call-ticker{flex:0 0 auto;white-space:pre;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis}
html body .calendar-call .calendar-call-company{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Scheduling stages: green means waiting; teal means choose an expert time. */
html .project-call-invitation.button[data-schedule-stage="your_times_sent"]{background:#124f32!important;border-color:#124f32!important}
html .project-call-invitation.button[data-schedule-stage="expert_ready"],html .project-call-invitation.button[data-schedule-stage="expert_description"]{background:#125f74!important;border-color:#125f74!important}
.client-schedule-next-actions{grid-column:1/-1;padding:12px 0;border-bottom:1px solid var(--preview-line,var(--line));margin:0 0 12px}
.client-schedule-next-actions h2{font-size:1.05rem;margin:0 0 8px}
.client-schedule-ready-links{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.client-schedule-ready-links>.button{margin:0;min-height:44px;padding:10px 14px;box-sizing:border-box;white-space:normal}
