/* Team workspace visual layer. Existing behavior and accessible controls retained. */
.team-workspace{--ink:#183c3c;--muted:#617773;--teal:#087f7d;--line:#dce6e1;--gold:#b79753;background:#f5f5ef;color:var(--ink);font:15px/1.6 'Segoe UI',system-ui,sans-serif}
.team-workspace header{background:#102e30;border-bottom:3px solid var(--gold);padding:22px max(28px,calc((100vw - 1280px)/2));min-height:104px}
.team-workspace .brand img{width:310px;max-width:52vw;max-height:66px}
.workspace-label{font-size:11px;letter-spacing:2px;font-weight:700;color:#e8d6ac;text-align:right}.workspace-label span{display:block;font-size:12px;letter-spacing:0;font-weight:400;color:#b6ceca;margin-top:5px}
.team-workspace main{max-width:1280px;padding:38px 28px 72px}.workspace-intro{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:30px}.workspace-intro .eyebrow{font-size:10px;letter-spacing:2.2px;color:#63796d;margin:0 0 12px}.workspace-intro h1{font-size:clamp(29px,4vw,43px);font-weight:650;letter-spacing:-1.5px;margin:0 0 12px}.workspace-intro p{color:var(--muted);margin:0}.workspace-mark{border-left:1px solid #c9d4c9;padding-left:24px;font-size:11px;letter-spacing:4px;line-height:2;color:#677e74}.workspace-mark span{display:block;color:#95743c}
.team-workspace main>.card{padding:28px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 40px #143d3210}.team-workspace h2{font-size:23px;font-weight:650;letter-spacing:-.5px}.team-workspace h3{font-weight:650}.team-workspace p{overflow-wrap:anywhere}
.team-workspace button{background:var(--teal);color:white;border:1px solid transparent;border-radius:9px;padding:11px 17px;font-size:14px;line-height:1.4;transition:background .15s,box-shadow .15s;min-height:42px}.team-workspace button:hover:not(:disabled){box-shadow:0 3px 10px #123d351a;filter:brightness(.96)}.team-workspace button:focus-visible,.team-workspace summary:focus-visible{outline:3px solid #b79753;outline-offset:3px}.team-workspace button:disabled{opacity:.5}
.team-workspace .team-tabs{display:flex;flex-wrap:wrap;gap:6px;background:#f0f5f1;padding:7px;border:1px solid var(--line);border-radius:13px;margin:22px 0 28px}.team-workspace .team-tabs button{background:transparent;color:#4e6964;box-shadow:none;border:0;padding:12px 15px;font-size:13px;font-weight:650;border-radius:8px}.team-workspace .team-tabs button[aria-selected=true]{background:#143e3f;color:white;box-shadow:0 3px 8px #133a3520}.team-workspace #new-client-tab{color:#086e6b}.team-workspace #new-client-tab[aria-selected=true]{color:white}.team-workspace #new-client-tab:before{content:'+';font-size:18px;margin-right:8px}
.team-workspace input:not([type=checkbox]):not([type=radio]),.team-workspace select,.team-workspace textarea{border:1px solid #c7d8d0;border-radius:9px;padding:12px 13px;background:#fcfdfb;color:var(--ink);font:inherit;max-width:100%;min-height:44px;box-sizing:border-box}.team-workspace input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}.team-workspace label{font-size:13px;font-weight:600;color:#45615a}.team-workspace #filter{margin-top:7px;background:#f8faf7}.team-workspace .test-filter{font-weight:400}.team-workspace #signed-in{font-size:13px;color:#526b62;margin:0 0 8px}.team-workspace #switch-account{background:#f0f5f1;color:#31564f;border-color:var(--line);font-size:12px;min-height:34px;padding:7px 12px}
.team-workspace .client-row{padding:20px 16px;margin:10px 0;border:1px solid var(--line);border-radius:12px;background:#fff;gap:16px}.team-workspace .client-row:hover{border-color:#98bdb0;background:#fbfdf9}.team-workspace .client-heading strong{font-size:16px}.team-workspace .client-summary>p{color:#6b7f78;margin-top:6px}.team-workspace .client-actions{gap:8px}.team-workspace .client-actions .round-action{color:#315d54;background:#edf4ef;padding:8px 10px;font-size:11px;border-radius:7px;white-space:normal}.team-workspace .client-actions button:last-child:not(.round-action){background:#fff3ed;color:#984b35;font-size:11px;border:1px solid #f0ddd1}.team-workspace .status-legend{background:#f4f7f2;border-radius:8px;padding:12px 16px;gap:20px}.team-workspace .connection-status{font-size:12px}.team-workspace .connection-status:before{width:8px;height:8px}
.team-workspace .progress-dashboard{border:0;padding-top:0}.team-workspace .progress-client,.team-workspace .zoom-card{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin:16px 0;box-shadow:0 3px 12px #153b3105}.team-workspace .progress-client>summary{font-weight:650;padding:4px 0;cursor:pointer}.team-workspace .progress-services{gap:12px;margin:20px 0}.team-workspace .progress-services>div{background:#f1f6f1;border:1px solid #e2ebe3;padding:16px;border-radius:10px}.team-workspace .progress-services dt{color:#718379;font-size:11px;text-transform:uppercase;letter-spacing:.7px}.team-workspace .progress-services dd{font-size:14px;color:#234b41}.team-workspace .progress-package{color:#6d7d70}.team-workspace .progress-client>button{margin:5px 6px 5px 0}.team-workspace details{margin-top:16px}.team-workspace summary{cursor:pointer;color:#315f55}.team-workspace .grant-next-step{border-left:3px solid var(--gold);background:#faf6e9;padding:14px 18px;border-radius:0 8px 8px 0}.team-workspace .zoom-today{border-color:#57a99b;background:#f4fbf7}.team-workspace [role=status]:not(:empty){font-size:13px;line-height:1.6}.team-workspace #staff-login{max-width:440px;padding:8px}.team-workspace #staff-login h2{margin-top:0}
@media(min-width:1000px){.team-workspace .team-tabs button{flex:1}.team-workspace #new-client-panel form{max-width:720px}}
@media(max-width:760px){.team-workspace header{padding:18px 20px}.workspace-label{display:none}.team-workspace main{padding:26px 16px 44px}.workspace-mark{display:none}.team-workspace main>.card{padding:18px 14px;border-radius:15px}.workspace-intro{margin-bottom:23px}.workspace-intro h1{letter-spacing:-.8px}.team-workspace .team-tabs{gap:4px;padding:5px}.team-workspace .team-tabs button{flex:1 1 130px;padding:10px 8px;min-height:44px}.team-workspace .client-row{padding:16px 12px}.team-workspace .client-actions{width:100%;padding-top:6px}.team-workspace .progress-client{padding:17px}.team-workspace .progress-services>div{padding:12px}.team-workspace .status-legend{gap:10px}.team-workspace .brand img{max-width:80vw}}
@media(prefers-reduced-motion:reduce){.team-workspace button{transition:none}}
/* Compact workspace and non-modal client detail panel. */
.team-workspace{background:#e4eeea}.team-workspace header{min-height:74px;padding-top:12px;padding-bottom:12px}.team-workspace .brand img{width:260px;max-height:48px}.team-workspace main{padding-top:20px}.workspace-intro{margin-bottom:16px}.workspace-intro .eyebrow{margin-bottom:5px;font-size:9px}.workspace-intro h1{font-size:28px;margin-bottom:4px;letter-spacing:-.7px}.workspace-intro p{font-size:13px}.workspace-mark{display:none}.team-workspace main>.card{padding:18px 22px;background:#f2f7f4;box-shadow:none}.team-workspace .team-tabs{margin:14px 0 18px;background:#dce9e2}.team-workspace #signed-in{display:inline-block;margin-right:12px}.team-workspace .client-row{padding:12px;margin:5px 0}.team-workspace .client-row:nth-child(even){background:#edf4ee}.team-workspace #client-list>label:has(#filter){display:inline-block;width:min(560px,100%)}.team-workspace .test-filter{display:inline-flex;margin-left:18px}.team-workspace [role=tabpanel]>h2{margin:18px 0 10px}.team-workspace .progress-tools{gap:10px}.team-workspace .progress-tools select{padding:8px;min-height:38px}.team-workspace .progress-client{padding:0;margin:5px 0;border-radius:8px;box-shadow:none}.team-workspace .progress-client:nth-child(even){background:#eaf2ed}.team-workspace .progress-client>summary{display:flex;align-items:center;gap:18px;padding:12px 16px;list-style:none;min-height:65px}.progress-identity{flex:0 0 35%;min-width:0}.progress-identity strong{display:block}.team-workspace .progress-identity .progress-package{display:block;margin:2px 0 0;font-size:11px}.progress-row-stage{flex:1;font-size:12px;color:#526e63}.progress-row-open{font-size:12px;color:#08756e;white-space:nowrap}.team-workspace .progress-client[open]{position:fixed;inset:12px 12px 12px auto;width:min(760px,calc(100vw - 24px));z-index:100;background:#fff;padding:0 22px 24px;overflow:auto;box-shadow:-16px 0 60px #153b3340;border:1px solid #9cb9ac;border-radius:14px}.team-workspace .progress-client[open]>summary{position:sticky;top:0;background:#143e3f;color:white;margin:0 -22px 18px;padding:17px 22px;z-index:2}.team-workspace .progress-client[open] .progress-row-stage{display:none}.team-workspace .progress-client[open] .progress-identity{flex:1}.team-workspace .progress-client[open] .progress-package{color:#bed4ca}.team-workspace .progress-client[open] .progress-row-open{font-size:0;color:white}.team-workspace .progress-client[open] .progress-row-open:after{content:'Close';font-size:14px}.progress-pager{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:16px;font-size:13px}.team-workspace .progress-pager button{padding:8px 14px;min-height:36px}
@media(max-width:760px){.team-workspace main{padding:16px 10px 30px}.team-workspace main>.card{padding:14px 10px}.workspace-intro h1{font-size:25px}.team-workspace .test-filter{margin-left:0}.progress-row-stage{display:none}.progress-identity{flex:1}.team-workspace .progress-client>summary{gap:10px;padding:10px}.team-workspace .progress-client[open]{inset:6px;width:calc(100vw - 12px);padding:0 14px 20px}.team-workspace .progress-client[open]>summary{margin:0 -14px 14px;padding:14px}}
.theme-picker{font-size:10px;color:#c7ddd5;letter-spacing:1px;display:grid;gap:4px;min-width:105px}.team-workspace .theme-picker select{padding:6px 10px;min-height:34px;font-size:12px;background:#24484a;color:white;border-color:#4d6d67}.team-workspace .workspace-label{margin-left:auto}
html[data-team-theme=dark]{color-scheme:dark}html[data-team-theme=dark] .team-workspace{--ink:#e0ece7;--muted:#abc1b7;--line:#36534b;background:#142620;color:#e0ece7}html[data-team-theme=dark] .workspace-intro p{color:#abc1b7}html[data-team-theme=dark] .team-workspace main>.card{background:#1d342d;border-color:#36534b}html[data-team-theme=dark] .team-workspace .team-tabs{background:#132820;border-color:#36534b}html[data-team-theme=dark] .team-workspace .team-tabs button{color:#bdd4c8}html[data-team-theme=dark] .team-workspace .team-tabs button[aria-selected=true]{background:#23766b;color:#fff}html[data-team-theme=dark] .team-workspace input:not([type=checkbox]):not([type=radio]),html[data-team-theme=dark] .team-workspace select,html[data-team-theme=dark] .team-workspace textarea{background:#132820;color:#e0ece7;border-color:#4b685d}html[data-team-theme=dark] .team-workspace label,html[data-team-theme=dark] .team-workspace #signed-in,html[data-team-theme=dark] .team-workspace .progress-row-stage{color:#b7cfc2}html[data-team-theme=dark] .team-workspace .client-row,html[data-team-theme=dark] .team-workspace .progress-client,html[data-team-theme=dark] .team-workspace .zoom-card{background:#203a30;border-color:#3b574c}html[data-team-theme=dark] .team-workspace .client-row:nth-child(even),html[data-team-theme=dark] .team-workspace .progress-client:nth-child(even){background:#254237}html[data-team-theme=dark] .team-workspace .progress-client[open]{background:#1c332a}html[data-team-theme=dark] .team-workspace .progress-services>div,html[data-team-theme=dark] .team-workspace .status-legend,html[data-team-theme=dark] .team-workspace .zoom-note{background:#13281f;border-color:#39584b}html[data-team-theme=dark] .team-workspace .progress-services dd{color:#e1ede6}html[data-team-theme=dark] .team-workspace .progress-services dt,html[data-team-theme=dark] .team-workspace .progress-package,html[data-team-theme=dark] .team-workspace .client-summary>p,html[data-team-theme=dark] .team-workspace .progress-counts{color:#b6cdbf}html[data-team-theme=dark] .team-workspace a,html[data-team-theme=dark] .team-workspace summary,html[data-team-theme=dark] .team-workspace .progress-row-open{color:#8edbc6}html[data-team-theme=dark] .team-workspace .grant-next-step{background:#3c3825;color:#f2e6c1}html[data-team-theme=dark] .team-workspace .task-dialog{background:#1c332a;color:#e0ece7;border-color:#4b685d}html[data-team-theme=dark] .team-workspace ::placeholder{color:#9bb4a7} @media(max-width:760px){.theme-picker{min-width:85px}.team-workspace .brand img{max-width:55vw}}

/* Neutral black appearance with teal brand accents. */
html[data-team-theme=black]{color-scheme:dark}html[data-team-theme=black] .team-workspace{--ink:#e0ece7;--muted:#abc1b7;--line:#343c42;background:#090b0d;color:#e0ece7}html[data-team-theme=black] .workspace-intro p{color:#abc1b7}html[data-team-theme=black] .team-workspace main>.card{background:#15181b;border-color:#343c42}html[data-team-theme=black] .team-workspace .team-tabs{background:#0e1114;border-color:#343c42}html[data-team-theme=black] .team-workspace .team-tabs button{color:#bdd4c8}html[data-team-theme=black] .team-workspace .team-tabs button[aria-selected=true]{background:#23766b;color:#fff}html[data-team-theme=black] .team-workspace input:not([type=checkbox]):not([type=radio]),html[data-team-theme=black] .team-workspace select,html[data-team-theme=black] .team-workspace textarea{background:#0e1114;color:#e0ece7;border-color:#46525a}html[data-team-theme=black] .team-workspace label,html[data-team-theme=black] .team-workspace #signed-in,html[data-team-theme=black] .team-workspace .progress-row-stage{color:#b7cfc2}html[data-team-theme=black] .team-workspace .client-row,html[data-team-theme=black] .team-workspace .progress-client,html[data-team-theme=black] .team-workspace .zoom-card{background:#191d21;border-color:#343c42}html[data-team-theme=black] .team-workspace .client-row:nth-child(even),html[data-team-theme=black] .team-workspace .progress-client:nth-child(even){background:#20252a}html[data-team-theme=black] .team-workspace .progress-client[open]{background:#161a1e}html[data-team-theme=black] .team-workspace .progress-services>div,html[data-team-theme=black] .team-workspace .status-legend,html[data-team-theme=black] .team-workspace .zoom-note{background:#101417;border-color:#343c42}html[data-team-theme=black] .team-workspace .progress-services dd{color:#e1ede6}html[data-team-theme=black] .team-workspace .progress-services dt,html[data-team-theme=black] .team-workspace .progress-package,html[data-team-theme=black] .team-workspace .client-summary>p,html[data-team-theme=black] .team-workspace .progress-counts{color:#b6cdbf}html[data-team-theme=black] .team-workspace a,html[data-team-theme=black] .team-workspace summary,html[data-team-theme=black] .team-workspace .progress-row-open{color:#8edbc6}html[data-team-theme=black] .team-workspace .grant-next-step{background:#3c3825;color:#f2e6c1}html[data-team-theme=black] .team-workspace .task-dialog{background:#161a1e;color:#e0ece7;border-color:#46525a}html[data-team-theme=black] .team-workspace ::placeholder{color:#9bb4a7}
html[data-team-theme=black] .team-workspace header{background:#080b0d}html[data-team-theme=black] .team-workspace .progress-client[open]>summary{background:#101d20}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace #filter{background:var(--field-bg,#132820);color:#e0ece7}html[data-team-theme=black] .team-workspace{--field-bg:#0e1114}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .today-counts strong{background:#203c3c;color:#e4f7f2;border-color:#496262}

.milestone-editor{border:1px solid var(--line);border-radius:10px;padding:14px}.milestone-editor select,.milestone-editor textarea{display:block;width:100%;margin:12px 0}.milestone-editor button{margin-right:8px}

.team-workspace .tab-arranger{margin:0 0 14px;font-size:12px}.team-workspace .tab-arranger>summary{text-align:right}.team-workspace .tab-arranger select{min-width:190px;margin:6px 8px 6px 0;padding:8px;min-height:36px}.team-workspace .tab-arranger button{padding:8px 12px;min-height:36px;margin:4px}.tab-arranger [role=status]{margin-left:10px}.team-workspace .batch-migration{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:12px 0}.batch-migration>summary{font-weight:650}.batch-migration textarea{display:block;width:100%;margin:8px 0}.batch-migration>button{margin:6px 8px 6px 0}.batch-migration .batch-client{border-bottom:1px solid var(--line);padding:8px 0}.batch-migration .batch-client>summary{font-size:13px}.batch-migration>p:empty{display:none}
/* Connected milestone controls, shared across team appearances. */
.team-workspace .milestone-horizontal{margin-top:22px;background:color-mix(in srgb,var(--teal) 6%,transparent);padding:18px 14px}
.milestone-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.milestone-heading strong,.milestone-heading small{display:block}.milestone-heading small{color:var(--muted);font-size:12px}.milestone-heading label{display:flex;align-items:center;gap:8px}.milestone-horizontal .milestone-heading select{width:auto;margin:0;padding:8px;min-height:40px}
.milestone-track{display:flex;overflow-x:auto;gap:0;padding:18px 2px 10px;scroll-snap-type:x proximity}.team-workspace .milestone-track .milestone-step{position:relative;flex:1 0 88px;max-width:120px;display:flex;flex-direction:column;align-items:center;gap:8px;background:transparent;color:var(--ink);border:0;border-radius:0;padding:4px;margin:0;font-size:12px;min-height:112px;scroll-snap-align:start;box-shadow:none}.milestone-step:before{content:'';position:absolute;top:22px;left:50%;width:100%;height:2px;background:var(--line)}.milestone-step:last-child:before{display:none}.milestone-number{position:relative;display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:var(--ink);color:white;border:2px solid transparent}.milestone-step.is-current .milestone-number{background:var(--teal);box-shadow:0 0 0 4px color-mix(in srgb,var(--teal) 18%,transparent)}.milestone-step.is-selected:not(.is-current) .milestone-number{background:var(--teal);border-color:var(--gold)}.milestone-step small{font-size:10px;min-height:14px;text-transform:uppercase;color:var(--muted)}.milestone-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px}.team-workspace .milestone-actions button{margin:0}.team-workspace .milestone-actions .milestone-secondary{background:transparent;color:var(--ink);border-color:var(--line)}.milestone-help{font-size:12px;color:var(--muted)}.milestone-horizontal>p:empty{display:none}html:is([data-team-theme=dark],[data-team-theme=black]) .milestone-number{background:#304b49;color:#e0ece7}html:is([data-team-theme=dark],[data-team-theme=black]) .is-current .milestone-number,html:is([data-team-theme=dark],[data-team-theme=black]) .is-selected .milestone-number{background:var(--teal)}
.team-workspace .tab-arranger{padding:8px 12px;border:1px solid var(--line);border-radius:10px}.team-workspace .tab-arranger>summary{text-align:left;font-weight:600}.team-workspace .tab-arranger p{color:var(--muted);margin:8px 0}.team-workspace .tabs-reordering button[draggable=true]{cursor:grab;border:1px dashed var(--muted)}.team-workspace .tabs-reordering .tab-dragging{opacity:.45}
/* Outlook-inspired read-only month calendar. */
.month-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.month-toolbar h3{margin:0 12px;font-size:21px}.month-toolbar label{margin-left:auto;display:flex;align-items:center;gap:8px}.month-toolbar select{max-width:240px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.month-weekday{font-size:12px;padding:8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.team-workspace .month-day{min-width:0;min-height:130px;display:flex;align-items:stretch;flex-direction:column;gap:3px;background:transparent;color:var(--ink);border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:6px;text-align:left;box-shadow:none;overflow:hidden}.month-date{display:inline-grid;place-items:center;align-self:flex-start;width:25px;height:25px;font-size:12px}.month-day.today .month-date{background:var(--teal);color:white;border-radius:50%}.team-workspace .month-day.selected{box-shadow:inset 0 0 0 2px var(--teal)}.month-day.outside{opacity:.6}.month-event{display:block;background:color-mix(in srgb,var(--teal) 18%,transparent);border-left:3px solid var(--teal);border-radius:3px;padding:4px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.month-event.cancelled{text-decoration:line-through;opacity:.65}.month-more{font-size:11px;color:var(--muted)}.month-count{display:none}.month-agenda{margin-top:18px}.month-event-detail{display:grid;grid-template-columns:150px 1fr;gap:5px 16px;border-top:1px solid var(--line);padding:12px 0}.month-event-detail small{color:var(--muted)}.month-event-detail a{justify-self:start}.month-toolbar button{min-width:42px}
@media(max-width:700px){.month-toolbar label{margin-left:0;width:100%}.month-toolbar h3{font-size:18px;margin:0}.team-workspace .month-day{min-height:80px;padding:4px}.month-day .month-event,.month-more{display:none}.month-count{display:block;font-size:10px;color:var(--muted)}.month-weekday{padding:5px;font-size:11px}.month-event-detail{grid-template-columns:1fr}.month-toolbar select{flex:1}}
/* Override shared form-button alignment so every calendar day fills its grid cell. */
.team-workspace .month-grid>.month-day{justify-self:stretch;align-self:stretch;width:100%;max-width:none;box-sizing:border-box;margin:0}
/* Compact appointment rows: controls and notes expand only when requested. */
.team-workspace .calendar-appointment{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}.calendar-appointment:last-child{border-bottom:1px solid var(--line)}.team-workspace .calendar-appointment>summary{display:grid;grid-template-columns:16px 150px minmax(130px,1fr) minmax(150px,1fr);gap:12px;align-items:center;padding:13px 8px;list-style:none;color:var(--ink);font-size:13px}.calendar-appointment>summary::-webkit-details-marker{display:none}.calendar-appointment>summary:before{content:'›';font-size:20px;line-height:1}.calendar-appointment[open]>summary:before{transform:rotate(90deg)}.calendar-appointment>summary small{color:var(--muted);font-size:12px}.team-workspace .calendar-appointment .zoom-card{margin:0;padding:4px 16px 16px 36px;border:0;border-radius:0;background:transparent;box-shadow:none}.calendar-appointment .zoom-heading{display:none}.calendar-appointment .zoom-card>p{font-size:12px;margin:5px 0 10px}.calendar-appointment .zoom-actions{gap:8px}.team-workspace .calendar-appointment .zoom-actions button,.calendar-appointment .zoom-link{font-size:12px;padding:8px 12px;min-height:36px}.calendar-appointment .zoom-card details{margin-top:12px;padding-top:10px}.calendar-appointment-body>p{padding:0 16px 0 36px}
@media(max-width:700px){.team-workspace .calendar-appointment>summary{grid-template-columns:14px 1fr;gap:4px 10px}.calendar-appointment>summary:before{grid-row:1/4}.calendar-appointment>summary span,.calendar-appointment>summary small{grid-column:2}.team-workspace .calendar-appointment .zoom-card{padding-left:24px}.calendar-appointment .zoom-actions>*{width:auto}.calendar-appointment .zoom-actions span{width:100%}}

/* Compact GHL account editors. */
.team-workspace .account-editor{margin-top:16px;border-top:1px solid var(--line,#abc6c9);padding-top:12px}
.team-workspace .account-editor>summary{font-weight:700;cursor:pointer;padding:8px 0}
.team-workspace .account-tools{display:flex;gap:16px;align-items:end;margin:12px 0}
.team-workspace .account-tools label{display:grid;gap:6px;min-width:160px}
.team-workspace .account-row{border-bottom:1px solid var(--line,#abc6c9);padding:8px 0}
.team-workspace .account-row>summary{cursor:pointer;padding:8px;font-weight:600}
.team-workspace .account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:12px 8px}
.team-workspace .account-fields label{display:grid;gap:6px;min-width:0}
.team-workspace .account-fields input,.team-workspace .account-fields select{width:100%;min-width:0;box-sizing:border-box}
.team-workspace .account-fields .account-actions,.team-workspace .account-fields [role=status]{grid-column:1/-1}
.team-workspace .account-actions{display:flex;gap:10px;flex-wrap:wrap}
.team-workspace .account-help{font-size:13px;opacity:.85}
@media(max-width:640px){.team-workspace .account-fields{grid-template-columns:1fr}.team-workspace .account-tools{flex-wrap:wrap}}

.team-workspace .account-fields textarea{width:100%;min-height:110px;resize:vertical;box-sizing:border-box;background:var(--input-bg,transparent);color:inherit;border:1px solid currentColor;border-radius:8px;padding:10px;font:inherit}.team-workspace .account-fields .account-multiline{grid-column:1/-1}

/* Reduce account-entry bulk without shrinking mobile touch targets. */
.team-workspace .account-editor .account-fields{gap:10px 14px;padding:10px 8px;align-items:start}
.team-workspace .account-editor .account-fields label{gap:5px;align-content:start;font-size:13px}
.team-workspace .account-editor .account-fields input:not([type=checkbox]):not([type=file]),
.team-workspace .account-editor .account-fields select{height:38px;min-height:38px;padding:7px 10px;font-size:14px;margin:0}
.team-workspace .account-editor .account-fields textarea{min-height:64px;height:64px;padding:8px 10px;font-size:14px;line-height:1.4;margin:0}
.team-workspace .account-editor .account-fields .account-short-text textarea{min-height:38px;height:38px}
.team-workspace .account-editor button{width:auto;min-height:34px;padding:7px 12px;font-size:13px;line-height:1.4;border-radius:7px;justify-self:start}
.team-workspace .account-editor .account-actions{gap:8px}
.team-workspace .account-editor [role=status]:empty{display:none}
@media(pointer:coarse){.team-workspace .account-editor button{min-height:44px}.team-workspace .account-editor .account-fields input:not([type=checkbox]):not([type=file]),.team-workspace .account-editor .account-fields select{min-height:44px;font-size:16px}}

.team-workspace .account-editor .account-actions{align-items:start}
.team-workspace .account-editor .account-more-options{border:0;padding:0;margin:0}
.team-workspace .account-editor .account-more-options>summary{cursor:pointer;padding:8px 10px;font-size:13px;font-weight:500;line-height:1.4}
.team-workspace .account-editor .account-more-options>button{margin-top:5px}
.team-workspace .account-editor .account-more-options>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:5px}
@media(pointer:coarse){.team-workspace .account-editor .account-more-options>summary{min-height:44px;box-sizing:border-box;padding:12px 10px}}

.team-workspace .account-editor .account-document-fields>strong,.team-workspace .account-editor .account-document-files,.team-workspace .account-editor .account-upload-actions{grid-column:1/-1}
.team-workspace .account-editor .account-document-files{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.team-workspace .account-editor .account-upload-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.team-workspace .account-editor .account-upload-actions label{flex:1 1 220px;max-width:360px;margin:0}
.team-workspace .account-editor .account-upload-actions input[type=file]{width:100%;min-width:0;font-size:13px;padding:0;margin:0}
.team-workspace .account-editor .account-upload-actions input::file-selector-button{border:0;border-radius:7px;padding:8px 12px;font:inherit;cursor:pointer;margin-right:8px}
.team-workspace .account-editor .account-upload-actions>button{flex:0 0 auto;margin:0}

.team-workspace .account-editor form.account-fields>.account-document-fields{grid-column:1/-1;padding:8px 0 4px;min-width:0}

/* Keep the service overview beneath the client header inside its scroll panel. */
.team-workspace .progress-client[open]>.progress-services{position:sticky;top:var(--profile-header-height,80px);z-index:1;background:#fff;padding:10px 0;margin:0 0 18px;border-bottom:1px solid var(--line);box-shadow:0 6px 8px #00000008}
html[data-team-theme=dark] .team-workspace .progress-client[open]>.progress-services{background:#1c332a}
html[data-team-theme=black] .team-workspace .progress-client[open]>.progress-services{background:#161a1e}
.team-workspace .progress-client .progress-services>div.is-service-complete{background:#e0f4e7;border:2px solid #258451;padding:15px}
.team-workspace .progress-client .is-service-complete dt,.team-workspace .progress-client .is-service-complete dd{color:#175a36}
.service-complete-badge{display:block;font-size:11px;font-weight:700;margin-top:7px}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .progress-client .progress-services>div.is-service-complete{background:#173e2d;border-color:#55bd85}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .progress-client .is-service-complete dt,html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .progress-client .is-service-complete dd{color:#c1f4d5}
@media(max-width:700px){.team-workspace .progress-client[open]>.progress-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px 0}.team-workspace .progress-client[open]>.progress-services>div{padding:8px}.team-workspace .progress-client[open]>.progress-services dt{font-size:9px;margin-bottom:3px}.team-workspace .progress-client[open]>.progress-services dd{font-size:12px}.service-complete-badge{margin-top:3px}}

/* Align the profile's top-level accordion sections consistently. */
.team-workspace .progress-client>details{margin:14px 0 0;padding:0;border-top:1px solid var(--line)}
.team-workspace .progress-client>details>summary{display:list-item;list-style-position:inside;margin:0;padding:12px 0;font-size:14px;font-weight:650;line-height:1.5;cursor:pointer}
.team-workspace .progress-client>details>summary::marker{font-size:12px}

.team-workspace .client-acknowledgments>label{display:grid;gap:6px;max-width:280px;font-size:13px;margin:0 0 12px}
.team-workspace .client-acknowledgments>label select{width:100%;min-height:38px;padding:8px 10px;font:inherit;border:1px solid var(--line);border-radius:7px}
.team-workspace .acknowledgment-content>.acknowledgment-setup{border:0;margin:0;padding:0}
.team-workspace .acknowledgment-content>.acknowledgment-setup>summary{display:none}
.team-workspace .acknowledgment-content>[hidden]{display:none}
.team-workspace .acknowledgment-content>button{padding:8px 14px;font-size:13px;margin-bottom:12px}

.credit-wait-countdown{display:block;margin-top:7px;font-size:14px;font-weight:750;color:inherit}.credit-wait-date{display:block;margin-top:3px;font-size:11px;font-weight:400;line-height:1.4}

/* Contact shortcuts in the open client profile header. */
.team-workspace .progress-contact-links{display:none}
.team-workspace .progress-client[open] .progress-contact-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:7px;font-size:12px;line-height:1.6;font-weight:400}
.team-workspace .progress-client[open] .progress-contact-links a{color:#e2ffff;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;min-width:0}
.team-workspace .progress-contact-links a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Preview keeps the client profile mounted for immediate return. */
.team-client-preview-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#dfe8eb;overflow:hidden}
.team-client-preview-dialog::backdrop{background:#12343b88}
.team-client-preview-dialog>iframe{display:block;width:100%;height:100%;border:0}

/* Completion remains visible on collapsed client rows. */
.team-workspace .client-completion-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.team-workspace .client-service-badge{display:inline-block;padding:5px 8px;border-radius:6px;background:#e8efec;color:#47625b;font-size:12px;font-weight:400;white-space:normal}
.team-workspace .client-service-badge.is-complete{background:#cfead9;color:#175a36}
.team-workspace .client-completion-total{display:block;margin-top:8px;font-size:12px;font-weight:700;color:#175a36}
.team-workspace .progress-client.is-client-complete:not([open]){background:#e5f4e9;border-color:#acd0b8;border-left:4px solid #258451}
.team-workspace .progress-client.is-client-complete:not([open])>.progress-client-summary{background:transparent}
.team-workspace .progress-client-summary>.progress-identity{flex:1}
.team-workspace .progress-client[open] .client-completion-total{color:#b5efcc}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .client-service-badge{background:#2c3d38;color:#c3d6cf}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .client-service-badge.is-complete{background:#2c513b;color:#c1f4d5}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .client-completion-total{color:#c1f4d5}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .progress-client.is-client-complete:not([open]){background:#203e2d;border-color:#4b795e;border-left-color:#67c28a}
@media(max-width:600px){.team-workspace .progress-client-summary{flex-wrap:wrap}.team-workspace .progress-client-summary>.progress-identity{flex-basis:calc(100% - 40px)}.team-workspace .client-service-badge{max-width:100%;overflow-wrap:anywhere}}

/* Outstanding signatures take priority over the completion highlight. */
.team-workspace .client-ack-status{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.team-workspace .client-ack-badge{display:inline-block;font-size:12px;padding:5px 8px;border-radius:6px;background:#e8efec;color:#47625b}
.team-workspace .client-ack-badge.is-outstanding{background:#ffe0b0;color:#75400a;font-weight:600}
.team-workspace .progress-client.is-client-awaiting:not([open]){background:#fff0dc;border-color:#e6bd85;border-left:4px solid #d47c1c}
.team-workspace .progress-client.is-client-awaiting:not([open])>.progress-client-summary{background:transparent}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .client-ack-badge{background:#2c3d38;color:#c3d6cf}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .client-ack-badge.is-outstanding{background:#694117;color:#ffe2b7}
html:is([data-team-theme=dark],[data-team-theme=black]) .team-workspace .progress-client.is-client-awaiting:not([open]){background:#42321f;border-color:#876238;border-left-color:#f2ab50}

.team-workspace .client-summary>.client-member-since{margin:4px 0;font-size:12px;color:var(--muted);font-weight:500}

.team-workspace .milestone-track .milestone-step.is-complete:disabled{opacity:1;cursor:default}.team-workspace .milestone-step.is-complete .milestone-number{background:#21834b;color:white}.team-workspace .milestone-step.is-complete small{color:#21834b;font-weight:bold}

.account-row>summary::after{content:"";display:table;clear:both}.account-sent-badge{float:right;display:inline-flex;align-items:center;gap:5px;margin-left:12px;padding:3px 10px;border-radius:999px;background:#def3e5;border:1px solid #9ccbad;color:#176238;font:700 12px/1.5 Segoe UI,Arial,sans-serif;white-space:nowrap}

/* The next unfinished included milestone is work in progress. */
.team-workspace .milestone-track .milestone-step.is-processing{background:#fff3e0;border-radius:10px;color:#633300}
.team-workspace .milestone-track .milestone-step.is-processing .milestone-number{background:#d97706;color:#fff;box-shadow:0 0 0 4px #f6c98c}
.team-workspace .milestone-track .milestone-step.is-processing small{color:#8a4600;font-weight:700}
