/* Profile uses the existing theme and semantic palette; scoped typography tokens. */
#myProfileWorkspace{display:none;grid-column:1;grid-row:2;min-width:0;height:calc(calc(100vh / var(--crm-ui-scale, 1)) - 64px);overflow:auto;padding:28px;background:var(--premium-canvas);color:var(--premium-ink)}
body.profile-open #myProfileWorkspace{display:block}body.profile-open .page,body.profile-open #myClients,body.profile-open #officeWorkspace,body.profile-open #commissionWorkspace,body.profile-open #commandWorkspace{display:none!important}
#myProfileWorkspace [hidden]{display:none!important}
#myProfileWorkspace .profile-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;border:1px solid var(--premium-line);border-radius:24px;background:radial-gradient(ellipse at right top,color-mix(in srgb,var(--blue) 16%,transparent),transparent 65%),var(--premium-paper)}
#myProfileWorkspace .profile-identity{display:flex;align-items:center;gap:24px;min-width:0}
#myProfileWorkspace .profile-avatar{position:relative;width:140px;height:140px;border:4px solid var(--premium-paper);outline:1px solid var(--premium-line);border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--premium-soft);--crm-type-body:36px;font-weight:var(--fw-b,700);flex:none}
#myProfileWorkspace .profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#myProfileWorkspace h1{--crm-type-title:34px;margin:6px 0 10px;letter-spacing:-.035em}
#myProfileWorkspace h2{--crm-type-title:var(--fs-xl,17px);font-weight:var(--fw-b,700);/* 30.10 (Dawid: „Wdrażaj wszystkie zmiany…”): tytuł sekcji 17/700 */margin:4px 0 8px;letter-spacing:-.025em}
#myProfileWorkspace h3{--crm-type-heading:var(--fs-lg,14px);margin:8px 0}
#myProfileWorkspace p{color:var(--premium-muted);line-height:1.55;margin:6px 0}
#myProfileWorkspace .profile-eyebrow{--crm-type-body:var(--fs-xs,11.5px);letter-spacing:.12em;text-transform:uppercase;color:var(--premium-muted);font-weight:var(--fw-s,600)}
#myProfileWorkspace .profile-hero-actions{display:flex;gap:8px;margin-top:14px}
#myProfileWorkspace .profile-results,#myProfileWorkspace .profile-settings{margin-top:24px;padding:26px;border:1px solid var(--premium-line);border-radius:22px;background:var(--premium-paper)}
#myProfileWorkspace .profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
#myProfileWorkspace .profile-section-heading>span,#myProfileWorkspace small{--crm-type-body:var(--fs-sm,12.5px);color:var(--premium-muted);line-height:1.5}
#myProfileWorkspace .profile-period{margin:10px 0 20px;--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#myProfileWorkspace .profile-grade{padding:24px 16px;text-align:center;border:1px solid var(--premium-line);border-radius:18px;background:var(--premium-soft)}
#myProfileWorkspace .profile-ring{--ring-color:var(--premium-muted);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:120px;height:120px;margin:0 auto 14px;border-radius:50%;background:conic-gradient(var(--ring-color) var(--score),var(--premium-line) 0);isolation:isolate}
#myProfileWorkspace .profile-ring:before{content:'';position:absolute;inset:7px;border-radius:50%;background:var(--premium-paper);z-index:-1}
#myProfileWorkspace .profile-ring strong{--crm-type-body:36px;line-height:1.1;font-weight:var(--fw-b,700);letter-spacing:-.04em}
#myProfileWorkspace .profile-ring>span{--crm-type-body:var(--fs-sm,12.5px);color:var(--premium-muted)}
#myProfileWorkspace .tone-green{--ring-color:var(--green,#2FBF87)}#myProfileWorkspace .tone-orange{--ring-color:var(--amber,#E5A83D)}#myProfileWorkspace .tone-red{--ring-color:var(--red,#E5484D)}
#myProfileWorkspace .profile-group-title{margin:28px 0 14px}
#myProfileWorkspace .profile-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:14px}
#myProfileWorkspace .profile-metric{min-width:0;padding:20px;border:1px solid var(--premium-line);border-radius:16px;background:var(--premium-soft);display:flex;flex-direction:column;gap:8px}
#myProfileWorkspace .profile-metric>span{font-weight:var(--fw-s,600)}
#myProfileWorkspace .profile-metric>strong{--crm-type-body:clamp(23px,calc(2.5vw / var(--crm-ui-scale, 1)),38px);line-height:1.2;font-weight:var(--fw-b,700);letter-spacing:-.035em;overflow-wrap:anywhere}
#myProfileWorkspace .profile-metric>p{--crm-type-body:var(--fs-sm,12.5px);margin:0}
#myProfileWorkspace .profile-metric>small{margin-top:auto;--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-development{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}
#myProfileWorkspace .profile-chart{padding:20px;border:1px solid var(--premium-line);border-radius:16px}
#myProfileWorkspace .profile-bars{display:flex;align-items:flex-end;gap:12px;margin-top:20px}
#myProfileWorkspace .profile-bars>div{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;gap:7px}
#myProfileWorkspace .profile-bars>div>span{height:90px;display:flex;align-items:flex-end;background:var(--premium-soft);border-radius:7px;overflow:hidden}
#myProfileWorkspace .profile-bars i{display:block;width:100%;background:var(--blue);border-radius:7px}
#myProfileWorkspace .profile-disclosure{margin-top:18px;border:1px solid var(--premium-line);border-radius:14px;padding:0 18px;background:var(--premium-paper)}
#myProfileWorkspace .profile-disclosure>summary{display:flex;gap:12px;align-items:center;padding:18px 0;font-weight:var(--fw-s,600);list-style:none;cursor:pointer}
#myProfileWorkspace .profile-disclosure>summary::-webkit-details-marker{display:none}
#myProfileWorkspace .profile-disclosure>summary:after{content:'';width:7px;height:7px;flex:none;border-right:1.5px solid var(--premium-muted);border-bottom:1.5px solid var(--premium-muted);transform:rotate(45deg);margin:0 3px 4px auto}
#myProfileWorkspace .profile-disclosure[open]>summary:after{transform:rotate(225deg);margin-bottom:-3px}
#myProfileWorkspace .profile-disclosure[open]{padding-bottom:18px}
#myProfileWorkspace .profile-disclosure>summary:hover{color:var(--blue)}
#myProfileWorkspace .profile-form-grid,#myProfileWorkspace .profile-social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#myProfileWorkspace label{display:grid;gap:7px;margin:10px 0;min-width:0;color:var(--premium-muted)}
#myProfileWorkspace input,#myProfileWorkspace select,#myProfileWorkspace textarea{box-sizing:border-box;width:100%;min-width:0;background:var(--premium-soft);color:var(--premium-ink);border:1px solid var(--premium-line);border-radius:9px;padding:11px 12px;font:inherit}
#myProfileWorkspace :is(input,select,textarea,button,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#myProfileWorkspace fieldset{border:0;padding:0;margin:0;min-width:0}
#myProfileWorkspace .profile-photo-editor{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
#myProfileWorkspace .profile-photo-editor>span{color:var(--premium-muted);--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-photo-editor label{max-width:360px}
#myProfileWorkspace .profile-social-grid article{padding:18px;border:1px solid var(--premium-line);border-radius:12px;min-width:0}
#myProfileWorkspace .profile-social-grid header{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
#myProfileWorkspace .profile-connection{--crm-type-body:var(--fs-xs,11.5px);padding:5px 8px;border-radius:20px;background:var(--premium-soft);color:var(--premium-muted)}
#myProfileWorkspace .profile-social-grid .btn{margin-top:12px;white-space:normal}
#myProfileWorkspace .profile-save{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:20px}
#myProfileWorkspace .profile-save-button{background:var(--premium-ink);color:var(--premium-paper);padding:13px 24px!important;min-width:160px}
#myProfileWorkspace .profile-evidence>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--premium-line)}
@media(max-width:1050px){#myProfileWorkspace .profile-development{grid-template-columns:1fr}}
@media(max-width:700px){#myProfileWorkspace{padding:14px}#myProfileWorkspace .profile-hero{padding:20px;align-items:flex-start;flex-direction:column}#myProfileWorkspace .profile-avatar{width:92px;height:92px}#myProfileWorkspace h1{--crm-type-title:var(--fs-2xl,22px)}#myProfileWorkspace .profile-identity{gap:16px}#myProfileWorkspace .profile-results,#myProfileWorkspace .profile-settings{padding:16px}#myProfileWorkspace .profile-form-grid,#myProfileWorkspace .profile-social-grid{grid-template-columns:1fr}#myProfileWorkspace .profile-grade{padding:18px 8px}#myProfileWorkspace .profile-ring{width:82px;height:82px}#myProfileWorkspace .profile-ring strong{--crm-type-body:var(--fs-2xl,22px)}#myProfileWorkspace .profile-grade h3{--crm-type-heading:var(--fs-md,13.5px)}#myProfileWorkspace .profile-save{align-items:stretch;flex-direction:column}}
@media(max-width:410px){#myProfileWorkspace .profile-grades{grid-template-columns:1fr}#myProfileWorkspace .profile-grade{display:grid;grid-template-columns:90px 1fr;text-align:left;align-items:center;gap:0 12px}#myProfileWorkspace .profile-ring{grid-row:1 / span 2;margin:0}#myProfileWorkspace .profile-metric-grid{grid-template-columns:1fr}}
/* Compact personal achievements and profile/schedule split. */
#myProfileWorkspace .profile-hero{flex-wrap:wrap}
#myProfileWorkspace .profile-trophy-summary{flex:1;min-width:260px;max-width:520px}
#myProfileWorkspace .profile-trophies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:10px}
#myProfileWorkspace .profile-trophies>div{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--premium-line);border-radius:18px;background:var(--premium-paper)}
#myProfileWorkspace .profile-trophy-icon{--crm-type-body:var(--fs-2xl,22px);display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--amber) 12%,var(--premium-paper))}
#myProfileWorkspace .profile-trophies strong{display:block;--crm-type-body:30px;line-height:1.1;letter-spacing:-.03em}
#myProfileWorkspace .profile-trophies div>span:not(.profile-trophy-icon){--crm-type-body:var(--fs-sm,12.5px);color:var(--premium-muted)}
#myProfileWorkspace .profile-demo-toggle{margin-top:10px}
#myProfileWorkspace .profile-demo-note{border-left:3px solid var(--amber);padding:8px 12px;background:var(--premium-soft)}
#myProfileWorkspace .profile-bottom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-top:24px}
#myProfileWorkspace .profile-bottom-grid>.profile-settings,#myProfileWorkspace .profile-schedule{min-width:0;margin:0;padding:20px;border:1px solid var(--premium-line);border-radius:22px;background:var(--premium-paper);--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-bottom-grid h2{--crm-type-title:var(--fs-2xl,22px)}
#myProfileWorkspace .profile-bottom-grid p{--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-bottom-grid .profile-section-heading{gap:8px}
#myProfileWorkspace .profile-settings .profile-disclosure{margin-top:12px;padding:0 12px}
#myProfileWorkspace .profile-settings .profile-disclosure>summary{padding:13px 0}
#myProfileWorkspace .profile-settings .profile-disclosure[open]{padding-bottom:12px}
#myProfileWorkspace .profile-settings :is(input,select,textarea){padding:8px 10px;--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-settings label{gap:5px;margin:5px 0;--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-settings .profile-form-grid{gap:8px 12px}
#myProfileWorkspace .profile-settings .profile-social-grid{grid-template-columns:1fr;gap:10px}
#myProfileWorkspace .profile-settings .profile-photo-editor{gap:8px;margin-bottom:12px}
#myProfileWorkspace .profile-settings .profile-photo-editor label{width:100%;max-width:none}
#myProfileWorkspace .profile-settings .profile-save{gap:10px;flex-wrap:wrap;margin-top:14px}
#myProfileWorkspace .profile-settings .profile-save>span{flex-basis:100%;--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-settings .profile-save-button{padding:10px 16px!important;min-width:120px}
#myProfileWorkspace .profile-schedule-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0 12px}
#myProfileWorkspace .profile-schedule-nav .btn{--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-day{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.6fr);gap:12px;padding:13px 12px;border-bottom:1px solid var(--premium-line)}
#myProfileWorkspace .profile-day>div{display:flex;flex-direction:column;gap:4px;min-width:0}
#myProfileWorkspace .profile-day>div:last-child{text-align:right}
#myProfileWorkspace .profile-day.is-today{border-radius:12px;outline:1px solid var(--blue);background:var(--premium-soft)}
#myProfileWorkspace .profile-day .is-confirmed{color:var(--green)}
#myProfileWorkspace .profile-day small{--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-schedule-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
@media(max-width:1050px){#myProfileWorkspace .profile-bottom-grid{grid-template-columns:1fr}#myProfileWorkspace .profile-trophy-summary{max-width:none}}
@media(max-width:700px){#myProfileWorkspace .profile-trophy-summary{min-width:0;width:100%}#myProfileWorkspace .profile-trophies>div{padding:12px;gap:8px}#myProfileWorkspace .profile-trophy-icon{width:34px;height:34px;--crm-type-body:var(--fs-2xl,22px)}#myProfileWorkspace .profile-trophies strong{--crm-type-body:var(--fs-2xl,22px)}#myProfileWorkspace .profile-bottom-grid>.profile-settings,#myProfileWorkspace .profile-schedule{padding:16px}}
/* One disclosure pattern for sales, office and administrators. */
#myProfileWorkspace details.profile-section-fold,#myProfileWorkspace .profile-bottom-grid>details.profile-section-fold{padding:0;overflow:hidden}
#myProfileWorkspace .profile-section-fold>summary{display:flex;align-items:center;cursor:pointer;list-style:none;padding:20px;min-height:64px}
#myProfileWorkspace .profile-section-fold>summary::-webkit-details-marker{display:none}
#myProfileWorkspace .profile-section-fold>summary h2{margin:0;--crm-type-title:var(--fs-2xl,22px)}
#myProfileWorkspace .profile-section-fold>summary:hover{background:var(--premium-soft)}
#myProfileWorkspace .profile-section-content{padding:0 20px 20px}
#myProfileWorkspace .profile-section-fold:not([open])>.profile-section-content{display:none}
#myProfileWorkspace .profile-disclosure>summary h3{margin:0}
@media(max-width:700px){#myProfileWorkspace .profile-section-fold>summary{padding:16px}#myProfileWorkspace .profile-section-content{padding:0 16px 16px}}
/* User-reported portfolio: individual shares, independent from the score disclosure. */
#myProfileWorkspace .profile-income{margin-top:24px;border:1px solid var(--premium-line);border-radius:22px;background:var(--premium-paper)}
#myProfileWorkspace .profile-income>summary{gap:20px}
#myProfileWorkspace .profile-income-summary{display:flex;gap:26px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
#myProfileWorkspace .profile-income-summary>span{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
#myProfileWorkspace .profile-income-summary b{--crm-type-body:var(--fs-2xl,22px);white-space:nowrap;letter-spacing:-.025em}
#myProfileWorkspace .profile-income-summary small{--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-income-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:8px 0 16px}
#myProfileWorkspace .profile-income-share{--crm-type-body:var(--fs-sm,12.5px);color:var(--premium-muted);padding:8px 12px;border:1px solid var(--premium-line);border-radius:20px;background:var(--premium-soft)}
#myProfileWorkspace .profile-income-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#myProfileWorkspace .profile-income-grid.has-commission{grid-template-columns:repeat(3,minmax(0,1fr))}
#myProfileWorkspace .profile-income-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:20px;border:1px solid var(--premium-line);border-radius:16px;background:var(--premium-soft)}
#myProfileWorkspace .profile-income-card>span{--crm-type-body:var(--fs-md,13.5px);font-weight:var(--fw-s,600);color:var(--premium-muted)}
#myProfileWorkspace .profile-income-card>strong{--crm-type-body:clamp(22px,calc(3vw / var(--crm-ui-scale, 1)),40px);white-space:nowrap;line-height:1.2;font-weight:var(--fw-b,700);letter-spacing:-.035em}
#myProfileWorkspace .profile-income-card>small{--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-income-pace{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0;color:var(--premium-muted);--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-income-pace b{color:var(--premium-ink)}
#myProfileWorkspace .profile-income-additional{margin-top:14px;--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-income-source{margin-top:16px;--crm-type-body:var(--fs-xs,11.5px)}
@media(max-width:1050px){#myProfileWorkspace .profile-income-grid.has-commission{grid-template-columns:repeat(2,minmax(0,1fr))}#myProfileWorkspace .profile-income-grid.has-commission>.profile-income-card:last-child{grid-column:1 / -1}}
@media(max-width:700px){#myProfileWorkspace .profile-income>summary{align-items:flex-start}#myProfileWorkspace .profile-income-summary{gap:8px;flex-direction:column}#myProfileWorkspace .profile-income-summary b{--crm-type-body:var(--fs-xl,17px)}#myProfileWorkspace .profile-income-grid,#myProfileWorkspace .profile-income-grid.has-commission{grid-template-columns:1fr}#myProfileWorkspace .profile-income-card>strong{--crm-type-body:30px}}
/* Administrator-only overview, connected accounts and the sourced company directory. */
#myProfileWorkspace .profile-summary-resume{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px 24px;margin-left:auto}
#myProfileWorkspace .profile-summary-resume>span{display:flex;flex-direction:column;gap:3px;min-width:65px}
#myProfileWorkspace .profile-summary-resume b{--crm-type-body:var(--fs-xl,17px);line-height:1.15;white-space:nowrap}
#myProfileWorkspace .profile-summary-resume small{--crm-type-body:var(--fs-xs,11.5px);font-weight:var(--fw-n,400)}
#myProfileWorkspace .profile-admin-highlights{flex:1 1 380px;max-width:620px;min-width:0}
#myProfileWorkspace .profile-admin-highlights .profile-summary-resume{justify-content:space-between;margin:0 0 14px;gap:12px}
#myProfileWorkspace .profile-admin-highlights .profile-summary-resume b{--crm-type-body:var(--fs-2xl,22px)}
#myProfileWorkspace .profile-account-chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
#myProfileWorkspace .profile-account-chips>span{--crm-type-body:var(--fs-xs,11.5px);padding:6px 9px;border:1px solid var(--premium-line);border-radius:20px;color:var(--premium-muted);background:var(--premium-paper)}
#myProfileWorkspace .profile-account-chips .is-connected{color:var(--green);border-color:var(--green)}
#myProfileWorkspace [data-profile-schedule-summary]{flex:1;min-width:0;margin-left:auto}
#myProfileWorkspace .profile-week-preview{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;min-width:0}
#myProfileWorkspace .profile-week-preview>span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px;border:1px solid var(--premium-line);border-radius:7px;background:var(--premium-soft);min-width:0;text-align:center}
#myProfileWorkspace .profile-week-preview b{--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-week-preview small{--crm-type-body:9px;line-height:1.35;overflow-wrap:anywhere}
#myProfileWorkspace .profile-week-preview .is-today{outline:1px solid var(--blue)}
#myProfileWorkspace .profile-week-preview .is-confirmed{border-bottom:3px solid var(--green)}
#myProfileWorkspace .profile-connected,#myProfileWorkspace .profile-companies{margin-top:20px;border:1px solid var(--premium-line);border-radius:22px;background:var(--premium-paper)}
#myProfileWorkspace .profile-connected .profile-social-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
#myProfileWorkspace .profile-connected .profile-social-grid article{padding:14px}
#myProfileWorkspace .profile-connected input{--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-connected .profile-save{justify-content:flex-end;flex-wrap:wrap}
#myProfileWorkspace .profile-brand-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:6px 0 18px}
#myProfileWorkspace .profile-brand-strip>div{border:1px solid var(--premium-line);border-radius:12px;overflow:hidden;background:#111}
#myProfileWorkspace .profile-brand-strip img{width:100%;height:85px;object-fit:contain}
#myProfileWorkspace .logo-on-light{display:none}
html[data-theme=light] #myProfileWorkspace .logo-on-light{display:block}
html[data-theme=light] #myProfileWorkspace .logo-on-dark{display:none}
html[data-theme=light] #myProfileWorkspace .profile-brand-strip>div{background:#fff}
#myProfileWorkspace .profile-company-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:12px;margin:18px 0 8px}
#myProfileWorkspace .profile-company-count{--crm-type-body:var(--fs-sm,12.5px);margin:10px 0}
#myProfileWorkspace .profile-company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
#myProfileWorkspace .profile-company-card{min-width:0;border:1px solid var(--premium-line);border-radius:14px;overflow:hidden;background:var(--premium-soft)}
#myProfileWorkspace .profile-company-card>summary{display:flex;align-items:center;padding:16px;cursor:pointer;list-style:none;min-height:88px;--crm-type-body:var(--fs-md,13.5px);font-weight:var(--fw-s,600)}
#myProfileWorkspace .profile-company-card>summary::-webkit-details-marker{display:none}
#myProfileWorkspace .profile-company-card>summary:hover{background:var(--premium-paper)}
#myProfileWorkspace .profile-company-card>summary small{display:block;margin-top:6px;--crm-type-body:var(--fs-xs,11.5px);font-weight:var(--fw-n,400)}
#myProfileWorkspace .profile-company-body{padding:0 16px 16px}
#myProfileWorkspace .profile-brand-logo{margin-bottom:10px;overflow:hidden;border-radius:10px}
#myProfileWorkspace .profile-brand-logo img{width:100%;max-height:110px;object-fit:contain}
#myProfileWorkspace .profile-company-body p{--crm-type-body:var(--fs-sm,12.5px);overflow-wrap:anywhere}
#myProfileWorkspace .profile-company-body dl{margin:12px 0 0;display:grid;gap:7px}
#myProfileWorkspace .profile-company-body dl>div{display:flex;justify-content:space-between;gap:8px;--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-company-body dt{color:var(--premium-muted)}
#myProfileWorkspace .profile-company-body dd{margin:0;font-variant-numeric:tabular-nums}
@media(max-width:1050px){#myProfileWorkspace .profile-company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#myProfileWorkspace .profile-brand-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#myProfileWorkspace .profile-summary-resume{gap:8px 12px}#myProfileWorkspace .profile-summary-resume b{--crm-type-body:var(--fs-lg,14px)}#myProfileWorkspace .profile-company-grid,#myProfileWorkspace .profile-company-tools{grid-template-columns:1fr}#myProfileWorkspace .profile-admin-highlights{flex-basis:auto;width:100%}#myProfileWorkspace .profile-brand-strip img{height:65px}}
/* Per-platform measurements, reusable company assets and private annual tax overview. */
#myProfileWorkspace .profile-social-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:16px}
#myProfileWorkspace .profile-social-heading>label{min-width:160px}
#myProfileWorkspace .profile-social-month-label{--crm-type-body:var(--fs-xs,11.5px);color:var(--premium-muted)}
#myProfileWorkspace .profile-connected .profile-social-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
#myProfileWorkspace .profile-social-grid .profile-summary-resume{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;justify-content:start}
#myProfileWorkspace .profile-social-grid .profile-summary-resume b{--crm-type-body:var(--fs-2xl,22px)}
#myProfileWorkspace .profile-platform-period{--crm-type-body:var(--fs-xs,11.5px);color:var(--premium-muted);line-height:1.5}
#myProfileWorkspace .profile-company-identity{flex:1;min-width:0;user-select:text}
#myProfileWorkspace .profile-company-identity strong{--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-company-identity small{line-height:1.7;overflow-wrap:anywhere}
#myProfileWorkspace .profile-copy{display:inline-flex;align-items:center;justify-content:center;padding:8px;min-width:34px;flex-shrink:0;margin:0 8px}
#myProfileWorkspace .profile-copy svg{width:18px;height:18px;pointer-events:none}
#myProfileWorkspace .profile-company-logo-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
#myProfileWorkspace .profile-logo-variant{display:flex;flex-direction:column;gap:10px;border:1px solid var(--premium-line);border-radius:12px;padding:10px;min-width:0}
#myProfileWorkspace .profile-logo-variant img{width:100%;height:75px;object-fit:contain;border-radius:6px}
#myProfileWorkspace .profile-logo-variant.white img{background:#111}
#myProfileWorkspace .profile-logo-variant.black img{background:#fff}
#myProfileWorkspace .profile-logo-variant a{--crm-type-body:var(--fs-xs,11.5px);text-align:center}
#myProfileWorkspace .profile-logo-placeholder{display:flex;align-items:center;justify-content:center;min-height:75px;text-align:center;border:1px dashed var(--premium-muted);border-radius:6px;--crm-type-body:var(--fs-xs,11.5px);color:var(--premium-muted)}
#myProfileWorkspace .profile-logo-upload{--crm-type-body:var(--fs-xs,11.5px);min-width:0}
#myProfileWorkspace .profile-logo-upload input{width:100%;--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-registry-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 10px}
#myProfileWorkspace .profile-registry-actions a,#myProfileWorkspace .profile-registry-actions label,#myProfileWorkspace .profile-registry-actions input{--crm-type-body:var(--fs-xs,11.5px);max-width:100%}
#myProfileWorkspace .profile-tax{margin:22px 0;border:1px solid var(--premium-line);border-radius:22px;background:linear-gradient(125deg,color-mix(in srgb,#E5A83D 12%,var(--premium-paper)),var(--premium-paper) 65%);overflow:hidden}
#myProfileWorkspace .profile-tax-head{display:flex;gap:24px;align-items:center;justify-content:space-between;margin:8px 0 22px}
#myProfileWorkspace .profile-tax-head h3{--crm-type-title:30px;--crm-type-heading:30px;letter-spacing:-.035em;margin:8px 0}
#myProfileWorkspace .profile-tax-head p{max-width:780px;--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-tax-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#myProfileWorkspace .profile-tax-cards strong{--crm-type-body:clamp(22px,calc(2.5vw / var(--crm-ui-scale, 1)),35px);white-space:nowrap;letter-spacing:-.035em}
#myProfileWorkspace .profile-tax-filters{display:flex;gap:8px;margin:24px 0 12px}
#myProfileWorkspace .profile-tax-filters [aria-pressed=true]{border-color:#E5A83D;background:color-mix(in srgb,#E5A83D 18%,var(--premium-paper));box-shadow:inset 0 0 0 1px #E5A83D}
#myProfileWorkspace .profile-tax-chart{display:grid;grid-template-columns:repeat(12,minmax(48px,1fr));gap:12px;overflow-x:auto;padding:24px 4px 12px;border-bottom:1px solid var(--premium-line)}
#myProfileWorkspace .profile-tax-column{display:flex;flex-direction:column;text-align:center;gap:10px;min-width:0}
#myProfileWorkspace .profile-tax-value{--crm-type-body:var(--fs-xs,11.5px);font-variant-numeric:tabular-nums;white-space:nowrap}
#myProfileWorkspace .profile-tax-track{height:200px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--premium-line);background:repeating-linear-gradient(to top,transparent,transparent 49px,var(--premium-line) 50px)}
#myProfileWorkspace .profile-tax-track i{width:65%;max-width:58px;border-radius:7px 7px 0 0;background:linear-gradient(0deg,#a88048,#e2c69f);box-shadow:0 5px 18px #00000012}
#myProfileWorkspace .profile-tax-track>span{--crm-type-body:var(--fs-xs,11.5px);color:var(--premium-muted);margin-bottom:12px}
#myProfileWorkspace .profile-tax-column b{--crm-type-body:var(--fs-sm,12.5px)}
#myProfileWorkspace .profile-tax-table{overflow:auto;margin-top:12px}
#myProfileWorkspace .profile-tax-table table{width:100%;border-collapse:collapse}
#myProfileWorkspace .profile-tax-table th,#myProfileWorkspace .profile-tax-table td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--premium-line);--crm-type-body:var(--fs-sm,12.5px);white-space:nowrap}
#myProfileWorkspace .profile-tax-table small{display:block;--crm-type-body:var(--fs-xs,11.5px);margin-top:4px}
.profile-tax-dialog{width:min(700px,calc(calc(100vw / var(--crm-ui-scale, 1)) - 32px));max-height:calc(90vh / var(--crm-ui-scale, 1));overflow:auto;border:1px solid var(--premium-line);border-radius:20px;padding:24px;color:var(--premium-ink);background:var(--premium-paper)}
.profile-tax-dialog::backdrop{background:#0009}
.profile-tax-dialog header{display:flex;justify-content:space-between;gap:16px;align-items:center}
.profile-tax-dialog form{display:grid;gap:16px}
.profile-tax-dialog label{display:grid;gap:6px}
.profile-tax-dialog input,.profile-tax-dialog select{max-width:100%}
@media(max-width:700px){#myProfileWorkspace .profile-tax-cards{grid-template-columns:1fr}#myProfileWorkspace .profile-tax-head,#myProfileWorkspace .profile-social-heading{align-items:flex-start;flex-direction:column}#myProfileWorkspace .profile-connected .profile-social-grid{grid-template-columns:1fr}#myProfileWorkspace .profile-tax-chart{gap:8px}#myProfileWorkspace .profile-tax-track{height:150px}}
#myProfileWorkspace .profile-connected>summary{flex-wrap:wrap}
#myProfileWorkspace .profile-social-compact{display:grid;flex-basis:100%;gap:5px;padding-top:10px;border-top:1px solid var(--premium-line)}
#myProfileWorkspace .profile-social-compact>span{display:flex;align-items:baseline;gap:14px}
#myProfileWorkspace .profile-social-compact strong{min-width:76px;--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-social-compact small{--crm-type-body:var(--fs-xs,11.5px);font-weight:var(--fw-n,400);line-height:1.5}
#myProfileWorkspace .profile-connected[open]>summary .profile-social-compact{display:none}
.profile-tax-dialog .profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){#myProfileWorkspace .profile-social-compact>span{align-items:flex-start}.profile-tax-dialog .profile-form-grid{grid-template-columns:1fr}}
/* Personal office performance uses the command centre's scores, without a team roster. */
#myProfileWorkspace .profile-office-overall{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;padding:18px 20px;margin:0 0 18px;border:1px solid var(--premium-line);border-radius:12px;background:var(--premium-soft)}
#myProfileWorkspace .profile-office-overall>strong{--crm-type-body:32px;font-size:32px;font-variant-numeric:tabular-nums}
#myProfileWorkspace .profile-office-overall>small{color:var(--premium-muted);margin-left:auto}
#myProfileWorkspace .profile-office-stages{grid-template-columns:repeat(3,minmax(0,1fr))}
#myProfileWorkspace .profile-office-stage{border-top:3px solid var(--premium-line)}
#myProfileWorkspace .profile-office-stage.tone-green{border-top-color:var(--crm-success-ink,#2FBF87)}
#myProfileWorkspace .profile-office-stage.tone-orange{border-top-color:var(--crm-review-line,#E5A83D)}
#myProfileWorkspace .profile-office-stage.tone-red{border-top-color:var(--danger,#E5484D)}
#myProfileWorkspace .profile-office-table{overflow-x:auto;margin-top:14px}
#myProfileWorkspace .profile-office-table table{width:100%;min-width:720px;border-collapse:collapse;text-align:left}
#myProfileWorkspace .profile-office-table :is(th,td){padding:12px;border-bottom:1px solid var(--premium-line);vertical-align:top;--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-office-table th{font-weight:var(--fw-s,600);color:var(--premium-muted)}
#myProfileWorkspace .profile-office-table small{display:block;color:var(--premium-muted);margin-top:4px;--crm-type-body:var(--fs-xs,11.5px)}
@media(max-width:850px){#myProfileWorkspace .profile-office-stages{grid-template-columns:1fr}}

/* Shared profile headers: visible closed/open states and space before content. */
html.crm-premium-trial body #myProfileWorkspace details:is(.profile-section-fold,.profile-disclosure,.profile-company-card)>summary{background:color-mix(in srgb,var(--premium-accent) 9%,var(--premium-paper));border-radius:12px;transition:background .15s ease;cursor:pointer}
html.crm-premium-trial body #myProfileWorkspace details:is(.profile-section-fold,.profile-disclosure,.profile-company-card)[open]>summary{background:color-mix(in srgb,var(--premium-accent) 4%,var(--premium-paper));border-bottom:1px solid var(--premium-line);border-radius:12px 12px 0 0;margin-bottom:18px}
html.crm-premium-trial body #myProfileWorkspace details:is(.profile-section-fold,.profile-disclosure,.profile-company-card)>summary:hover{background:color-mix(in srgb,var(--premium-accent) 14%,var(--premium-paper))}
html.crm-premium-trial body #myProfileWorkspace .profile-disclosure{padding-left:0;padding-right:0}
html.crm-premium-trial body #myProfileWorkspace .profile-disclosure>summary{padding:14px 16px}
html.crm-premium-trial body #myProfileWorkspace .profile-disclosure>:not(summary){margin-left:16px;margin-right:16px}
html.crm-premium-trial body #myProfileWorkspace .profile-section-fold>.profile-section-content{padding-top:0}
html.crm-premium-trial body #myProfileWorkspace .profile-social-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html.crm-premium-trial body #myProfileWorkspace .profile-social-grid article{padding:14px}
html.crm-premium-trial body #myProfileWorkspace .profile-social-grid .profile-summary-resume{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.crm-premium-trial body #myProfileWorkspace .profile-settings input[readonly]{background:color-mix(in srgb,var(--premium-ink) 4%,var(--premium-paper));color:var(--premium-muted);border-style:dashed;cursor:default}
html.crm-premium-trial body #myProfileWorkspace .profile-schedule [data-profile="schedule"]{background:var(--crm-review-surface);border:1px solid var(--crm-review-line);color:var(--crm-review-ink);font-weight:var(--fw-s,600)}
#myProfileWorkspace .profile-signatures{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0 12px}
#myProfileWorkspace .profile-signature-preview{display:flex;flex-direction:column;gap:6px;border-left:3px solid var(--premium-accent);padding:12px 16px;margin:10px 0;background:color-mix(in srgb,var(--premium-accent) 4%,var(--premium-paper));white-space:pre-line;overflow-wrap:anywhere;--crm-type-body:var(--fs-md,13.5px);line-height:1.6}
#myProfileWorkspace .profile-portfolio-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;margin:22px 0;align-items:stretch}
#myProfileWorkspace .profile-portfolio-hero>div{padding:24px;background:var(--premium-paper);border:1px solid var(--premium-line);border-radius:16px}
#myProfileWorkspace .profile-portfolio-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
#myProfileWorkspace .profile-portfolio-totals article{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--premium-line);border-radius:14px;background:var(--premium-paper);min-width:0}
#myProfileWorkspace .profile-portfolio-totals strong{font-size:clamp(20px,calc(2vw / var(--crm-ui-scale, 1)),32px);--crm-type-body:clamp(20px,calc(2vw / var(--crm-ui-scale, 1)),32px);font-variant-numeric:tabular-nums;white-space:nowrap}
#myProfileWorkspace .profile-portfolio-totals :is(span,small){color:var(--premium-muted);--crm-type-body:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-portfolio-hero .commission-million{padding:24px;border-radius:16px;background:color-mix(in srgb,var(--premium-accent) 9%,var(--premium-paper));border:1px solid var(--premium-line);display:flex;flex-direction:column;gap:8px}
#myProfileWorkspace .commission-million-target strong{font-size:clamp(38px,calc(4.7vw / var(--crm-ui-scale, 1)),72px);line-height:1.05;white-space:nowrap}
#myProfileWorkspace .commission-million-target span{display:block;color:var(--premium-muted)}
#myProfileWorkspace .commission-million progress{width:100%;accent-color:var(--premium-accent);height:10px}
#myProfileWorkspace .commission-million-count strong{font-size:var(--fs-2xl,22px);margin-right:8px}
#myProfileWorkspace .profile-portfolio-scroll{overflow:auto}
#myProfileWorkspace .profile-portfolio-scroll table{width:100%;min-width:820px;border-collapse:collapse;text-align:left}
#myProfileWorkspace .profile-portfolio-scroll :is(td,th){padding:13px 12px;border-bottom:1px solid var(--premium-line);--crm-type-body:var(--fs-md,13.5px);vertical-align:middle}
#myProfileWorkspace .profile-portfolio-scroll small{display:block;color:var(--premium-muted);margin-top:4px;--crm-type-body:var(--fs-xs,11.5px)}
#myProfileWorkspace .profile-portfolio-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 0 18px}
#myProfileWorkspace .profile-portfolio-filters input{margin-right:auto;flex:1 1 240px;max-width:380px;min-width:180px}
#myProfileWorkspace .profile-portfolio-filters [aria-pressed=true]{background:color-mix(in srgb,var(--premium-accent) 18%,var(--premium-paper));border-color:var(--premium-accent)}
#myProfileWorkspace .profile-tax-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:1000px){html.crm-premium-trial body #myProfileWorkspace .profile-social-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#myProfileWorkspace .profile-portfolio-hero{grid-template-columns:1fr}#myProfileWorkspace .profile-signatures{grid-template-columns:1fr}}
@media(max-width:600px){html.crm-premium-trial body #myProfileWorkspace .profile-social-grid{grid-template-columns:1fr}#myProfileWorkspace .profile-portfolio-totals{grid-template-columns:1fr}#myProfileWorkspace .profile-portfolio-scroll :is(td,th){padding:10px}}
@media(prefers-reduced-motion:reduce){html.crm-premium-trial body #myProfileWorkspace details>summary{transition:none}}

.profile-income-dialog{width:min(940px,calc(94vw / var(--crm-ui-scale, 1)));max-height:calc(90vh / var(--crm-ui-scale, 1));overflow:auto}
.profile-income-dialog .profile-income-rows{display:grid;gap:12px;margin:18px 0}
.profile-income-dialog .profile-income-entry{border:1px solid var(--premium-line);border-radius:12px;padding:14px;background:var(--premium-paper)}
.profile-income-dialog .profile-income-line{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(120px,1fr) minmax(120px,1fr) auto;gap:12px;align-items:end}
.profile-income-dialog .profile-income-line input{width:100%;min-width:0}
.profile-income-dialog .profile-income-entry header,.profile-income-dialog .profile-income-source{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:12px}
.profile-income-dialog .profile-income-source{margin:12px 0 0}
.profile-income-dialog .profile-pit-drop{display:grid;gap:12px;padding:24px;border:2px dashed var(--crm-task-line);border-radius:14px;background:var(--crm-task-bg)}
.profile-income-dialog .profile-income-replace{color:var(--premium-muted);margin:16px 0}
.profile-income-dialog footer{display:flex;justify-content:flex-end;margin-top:16px}
#myProfileWorkspace .profile-office-social{margin:16px 0}
#myProfileWorkspace .profile-account-chips a{color:var(--premium-ink);padding:8px 14px;border:1px solid var(--premium-line);border-radius:20px;text-decoration:none}
@media(max-width:540px){.profile-income-dialog .profile-income-line{grid-template-columns:minmax(66px,.7fr) minmax(80px,1fr) minmax(80px,1fr) 28px;gap:6px}.profile-income-dialog .profile-income-entry{padding:8px}.profile-income-dialog .profile-income-line button{padding:4px}.profile-income-dialog .profile-income-source{align-items:flex-start;flex-direction:column}}

/* Compact profile timetable: day and date share one line; status is on the row title. */
#myProfileWorkspace .profile-day{grid-template-columns:minmax(150px,1fr) minmax(0,1.2fr);gap:8px;padding:8px 10px;align-items:center}
#myProfileWorkspace .profile-day>div:first-child{flex-direction:row;align-items:baseline;gap:8px;white-space:nowrap}
#myProfileWorkspace .profile-day>div:last-child>strong{font-variant-numeric:tabular-nums}

/* Inline contact and avatar editing; one original profile form and save. */
.profile-inline-contact{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}
.profile-inline-contact fieldset{border:0;padding:0;margin:0;min-width:0}
.profile-photo-place{position:relative;flex:none;display:grid;gap:8px;width:110px}
.profile-photo-place .profile-avatar{width:100px;height:100px;overflow:hidden;position:relative}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo-editor{display:grid;gap:8px;font-size:var(--fs-sm,12.5px)}
.profile-photo-editor input{max-width:100%;width:100%}
#myProfileWorkspace:not(.profile-editing) .profile-photo-editor,#myProfileWorkspace:not(.profile-editing) .profile-save{display:none}
#myProfileWorkspace:not(.profile-editing) .profile-inline-contact input,#myProfileWorkspace:not(.profile-editing) .profile-inline-contact textarea{background:transparent;border-color:transparent;box-shadow:none;padding-left:0;resize:none;color:var(--text);cursor:text}
#myProfileWorkspace:not(.profile-editing) .profile-signatures textarea{display:none}
#myProfileWorkspace.profile-editing .profile-signature-preview{display:none}
#myProfileWorkspace.profile-editing .profile-photo-place{width:190px}
.profile-inline-contact .profile-form-grid{gap:12px}
.profile-inline-contact .profile-signature-preview{white-space:pre-wrap}

/* One stable header: photo, identity, social shortcuts, then four contacts. */
#myProfileWorkspace .profile-hero{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px 24px;align-items:center;padding:22px 26px}
#myProfileWorkspace .profile-identity{min-width:0;align-items:center}
#myProfileWorkspace .profile-identity>div:last-child{min-width:0}
#myProfileWorkspace .profile-photo-place{width:110px;min-width:110px;flex:0 0 110px}
#myProfileWorkspace .profile-photo-place .profile-avatar{width:100px;height:100px;box-sizing:border-box}
#myProfileWorkspace.profile-editing .profile-photo-place{width:190px;min-width:190px;flex-basis:190px}
#myProfileWorkspace .profile-admin-highlights{min-width:0;max-width:none}
#myProfileWorkspace .profile-account-chips{display:flex;flex-wrap:wrap;gap:8px}
#myProfileWorkspace .profile-account-chips>a,#myProfileWorkspace .profile-account-chips>span{display:grid;place-items:center;width:36px;height:36px;padding:6px;border:1px solid var(--premium-line);border-radius:9px;color:var(--muted);background:var(--premium-soft);text-decoration:none}
#myProfileWorkspace .profile-account-chips>a:hover{color:var(--text);border-color:var(--blue)}
#myProfileWorkspace .profile-header-contact{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;border-top:1px solid var(--premium-line);padding-top:16px}
#myProfileWorkspace .profile-header-contact label{display:grid;gap:5px;color:var(--muted);font-size:var(--fs-sm,12.5px);min-width:0}
#myProfileWorkspace .profile-header-contact input{width:100%;min-width:0;font-size:var(--fs-lg,14px);color:var(--text);padding:8px;border-radius:7px}
#myProfileWorkspace:not(.profile-editing) .profile-header-contact input{background:transparent;border-color:transparent;padding-left:0;box-shadow:none;text-overflow:ellipsis}
#myProfileWorkspace .profile-header-save{grid-column:1/-1;justify-content:flex-end}
#myProfileWorkspace .profile-bottom-grid{align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#myProfileWorkspace .profile-inline-contact h2{font-size:var(--fs-xl,17px);margin:0 0 16px}
#myProfileWorkspace .profile-inline-contact input,#myProfileWorkspace .profile-inline-contact textarea{max-width:100%;box-sizing:border-box}
@media(max-width:1000px){#myProfileWorkspace .profile-header-contact{grid-template-columns:repeat(2,minmax(0,1fr))}#myProfileWorkspace .profile-hero{grid-template-columns:minmax(0,1fr) auto}#myProfileWorkspace .profile-admin-highlights{grid-row:2;grid-column:1/-1}}
@media(max-width:700px){#myProfileWorkspace .profile-bottom-grid{grid-template-columns:minmax(0,1fr)}#myProfileWorkspace .profile-header-contact{grid-template-columns:minmax(0,1fr)}#myProfileWorkspace .profile-hero{padding:16px;gap:14px}#myProfileWorkspace .profile-identity{flex-wrap:wrap}}

/* Office profile: identity, four contacts and social links in one compact header. */
#myProfileWorkspace.profile-office{padding:18px}
#myProfileWorkspace.profile-office .profile-hero{grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:16px 20px;border-radius:16px}
#myProfileWorkspace.profile-office .profile-identity{gap:16px}
#myProfileWorkspace.profile-office .profile-photo-place{width:72px;min-width:72px;flex-basis:72px}
#myProfileWorkspace.profile-office .profile-photo-place .profile-avatar{width:68px;height:68px}
#myProfileWorkspace.profile-office.profile-editing .profile-photo-place{width:190px;min-width:190px;flex-basis:190px}
#myProfileWorkspace.profile-office h1{--crm-type-title:var(--fs-2xl,22px);font-size:var(--fs-2xl,22px);line-height:1.2;margin:4px 0}
#myProfileWorkspace.profile-office h2{--crm-type-title:var(--fs-xl,17px);font-size:var(--fs-xl,17px);line-height:1.3}
#myProfileWorkspace.profile-office .profile-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
#myProfileWorkspace.profile-office .profile-header-social{display:flex;align-items:center;gap:8px}
#myProfileWorkspace.profile-office .profile-social-shortcut>a,#myProfileWorkspace.profile-office .profile-social-shortcut>span{display:grid;place-items:center;width:30px;height:30px;color:var(--premium-muted);text-decoration:none}
#myProfileWorkspace.profile-office .profile-social-shortcut>a:hover{color:var(--blue)}
#myProfileWorkspace.profile-office:not(.profile-editing) .profile-social-shortcut>label{display:none}
#myProfileWorkspace.profile-office.profile-editing .profile-header-social{flex-wrap:wrap}
#myProfileWorkspace.profile-office.profile-editing .profile-social-shortcut{display:flex;gap:8px;align-items:center}
#myProfileWorkspace.profile-office .profile-header-contact{padding-top:8px;gap:16px}
#myProfileWorkspace.profile-office .profile-header-contact label{margin:0;gap:2px;--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)}
#myProfileWorkspace.profile-office .profile-header-contact input{--crm-type-body:var(--fs-lg,14px);font-size:var(--fs-lg,14px);padding:6px 8px}
#myProfileWorkspace.profile-office .profile-header-form{grid-column:1/-1;min-width:0}
#myProfileWorkspace.profile-office:not(.profile-editing) .profile-header-form{display:none}
#myProfileWorkspace.profile-office .profile-bottom-grid{grid-template-columns:minmax(0,1fr);margin-top:16px}
#myProfileWorkspace.profile-office .profile-results{margin-top:16px}
#myProfileWorkspace.profile-office .profile-section-fold>summary{padding:14px 18px}
#myProfileWorkspace.profile-office .profile-section-content{padding:0 18px 16px}
#myProfileWorkspace.profile-office .profile-metric-grid{gap:10px}
#myProfileWorkspace.profile-office .profile-metric{padding:12px 14px;gap:5px;border-radius:10px}
#myProfileWorkspace.profile-office .profile-metric>strong{--crm-type-body:var(--fs-2xl,22px);font-size:var(--fs-2xl,22px);line-height:1.3;letter-spacing:-.02em;overflow-wrap:normal}
#myProfileWorkspace.profile-office .profile-office-overall{padding:10px 14px;margin-bottom:12px}
#myProfileWorkspace.profile-office .profile-office-overall>strong{--crm-type-body:var(--fs-2xl,22px);font-size:var(--fs-2xl,22px)}
#myProfileWorkspace.profile-office .profile-disclosure{margin-top:12px}
@media(max-width:1000px){#myProfileWorkspace.profile-office .profile-header-contact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#myProfileWorkspace.profile-office .profile-header-contact{grid-template-columns:minmax(0,1fr)}#myProfileWorkspace.profile-office .profile-header-social{flex-wrap:wrap}}

/* Salesperson: compact identity and paired private/company contacts, one existing form. */
#myProfileWorkspace.profile-salesperson .profile-hero{grid-template-columns:minmax(0,1fr) auto auto;gap:10px 18px;padding:16px 20px;border-radius:16px}
#myProfileWorkspace.profile-salesperson .profile-identity{gap:16px}
#myProfileWorkspace.profile-salesperson .profile-photo-place{width:72px;min-width:72px;flex-basis:72px}
#myProfileWorkspace.profile-salesperson .profile-avatar,#myProfileWorkspace.profile-salesperson .profile-photo-place .profile-avatar{width:68px;height:68px;flex-shrink:0}
#myProfileWorkspace.profile-salesperson h1{--crm-type-title:var(--fs-2xl,22px);font-size:var(--fs-2xl,22px);line-height:1.2;margin:4px 0}
#myProfileWorkspace.profile-salesperson .profile-identity p{margin:4px 0;--crm-type-body:var(--fs-sm,12.5px);font-size:var(--fs-sm,12.5px)}
#myProfileWorkspace.profile-salesperson .profile-hero-actions{gap:8px;margin-top:6px}
#myProfileWorkspace.profile-salesperson .profile-hero-actions .btn{padding:5px 10px;min-height:30px;font-size:var(--fs-sm,12.5px)}
#myProfileWorkspace.profile-salesperson .profile-header-contact{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:10px;gap:12px 20px}
#myProfileWorkspace.profile-salesperson .profile-header-contact label{margin:0;gap:3px;--crm-type-body:var(--fs-xs,11.5px);font-size:var(--fs-xs,11.5px)}
#myProfileWorkspace.profile-salesperson .profile-header-contact input{box-sizing:border-box;--crm-type-body:var(--fs-lg,14px);font-size:var(--fs-lg,14px);padding:6px 8px;min-height:32px}
#myProfileWorkspace.profile-salesperson .profile-header-contact label:has([data-contact-key="phone"]),#myProfileWorkspace.profile-salesperson .profile-header-contact label:has([data-contact-key="email"]){background:var(--premium-soft);border-radius:8px;padding:6px 10px}
#myProfileWorkspace.profile-salesperson .profile-header-contact label:has([data-contact-key="privatePhone"]),#myProfileWorkspace.profile-salesperson .profile-header-contact label:has([data-contact-key="privateEmail"]){padding:6px 0}
#myProfileWorkspace.profile-salesperson .profile-header-form{grid-column:1/-1;min-width:0}
#myProfileWorkspace.profile-salesperson:not(.profile-editing) .profile-header-form{display:none}
#myProfileWorkspace.profile-salesperson.profile-editing .profile-photo-place{width:190px;min-width:190px;flex-basis:190px}
#myProfileWorkspace.profile-salesperson .profile-bottom-grid{grid-template-columns:minmax(0,1fr);gap:16px}
#myProfileWorkspace.profile-salesperson>:is(details,.profile-bottom-grid){margin-block:16px 0}
#myProfileWorkspace.profile-salesperson .profile-bottom-grid>.profile-section-fold{margin:0}
@media(max-width:1000px){#myProfileWorkspace.profile-salesperson .profile-hero{grid-template-columns:minmax(0,1fr) auto}#myProfileWorkspace.profile-salesperson .profile-header-contact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#myProfileWorkspace.profile-salesperson .profile-header-contact{grid-template-columns:minmax(0,1fr)}#myProfileWorkspace.profile-salesperson .profile-hero{padding:14px}}

/* Social profile of the salesperson, with CRM contacts and existing metrics. */
#myProfileWorkspace.profile-salesperson .profile-instagram-hero{padding:24px;gap:18px 24px;align-items:start;grid-template-columns:minmax(0,1fr) auto auto}
#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-identity{align-items:start;gap:24px}
#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-avatar{height:116px;width:116px;flex:0 0 116px;border-radius:50%;border:3px solid var(--premium-line);overflow:hidden;margin:0}
#myProfileWorkspace.profile-salesperson .profile-instagram-hero h1{font-size:var(--fs-2xl,22px);--crm-type-title:var(--fs-2xl,22px);line-height:1.3;margin:4px 0 12px}
#myProfileWorkspace .profile-social-handle{color:var(--muted);font-size:var(--fs-md,13.5px)}
#myProfileWorkspace .profile-social-head-stats .profile-summary-resume{display:flex;gap:32px;margin:0 0 14px;justify-content:flex-start;flex-wrap:wrap}
#myProfileWorkspace .profile-social-head-stats .profile-summary-resume b{font-size:var(--fs-2xl,22px);--crm-type-body:var(--fs-2xl,22px);line-height:1.2}
#myProfileWorkspace .profile-social-head-stats .profile-summary-resume small{font-size:var(--fs-sm,12.5px);color:var(--muted)}
#myProfileWorkspace .profile-social-bio{display:block;margin:0;max-width:650px}
#myProfileWorkspace .profile-social-bio>span{display:none;font-size:var(--fs-sm,12.5px);color:var(--muted);margin-bottom:6px}
#myProfileWorkspace .profile-social-bio-copy{white-space:pre-wrap;font-size:var(--fs-lg,14px);line-height:1.65;color:var(--text);overflow-wrap:anywhere}
#myProfileWorkspace .profile-social-bio textarea{display:none;width:100%;box-sizing:border-box;resize:vertical;min-height:110px;font:inherit;line-height:1.5;background:var(--premium-soft);color:var(--text);border:1px solid var(--premium-line);border-radius:10px;padding:10px 12px}
#myProfileWorkspace.profile-editing .profile-social-bio textarea,#myProfileWorkspace.profile-editing .profile-social-bio>span{display:block}
#myProfileWorkspace.profile-editing .profile-social-bio-copy{display:none}
#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-account-chips{gap:8px}
#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-header-contact{padding-top:12px}
#myProfileWorkspace.profile-salesperson .profile-connected>summary{flex-wrap:wrap;gap:14px}
#myProfileWorkspace.profile-salesperson .profile-connected>summary h2{flex-basis:100%;font-size:var(--fs-xl,17px);--crm-type-title:var(--fs-xl,17px)}
#myProfileWorkspace .profile-social-funnel{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:14px;width:100%;min-width:0}
#myProfileWorkspace .profile-funnel-cell{display:grid;gap:5px;min-width:0}
#myProfileWorkspace .profile-funnel-cell b{font-size:var(--fs-2xl,22px);--crm-type-body:var(--fs-2xl,22px);line-height:1.2;color:var(--text)}
#myProfileWorkspace .profile-funnel-cell small{font-size:var(--fs-sm,12.5px);--crm-type-body:var(--fs-sm,12.5px);font-weight:var(--fw-n,400);color:var(--muted);line-height:1.4}
#myProfileWorkspace .profile-funnel-arrow{font-size:var(--fs-2xl,22px);color:var(--muted)}
#myProfileWorkspace .profile-social-period{font-size:var(--fs-xs,11.5px);color:var(--muted)}
@media(max-width:1000px){#myProfileWorkspace.profile-salesperson .profile-instagram-hero{grid-template-columns:minmax(0,1fr) auto}#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-admin-highlights{grid-column:1/-1;grid-row:auto}}
@media(max-width:700px){#myProfileWorkspace.profile-salesperson .profile-instagram-hero{padding:16px}#myProfileWorkspace.profile-salesperson .profile-instagram-hero .profile-avatar{height:80px;width:80px;flex-basis:80px}#myProfileWorkspace .profile-social-funnel{grid-template-columns:1fr 1fr;gap:16px}#myProfileWorkspace .profile-funnel-arrow{display:none}#myProfileWorkspace .profile-social-head-stats .profile-summary-resume{gap:16px}}
