/* Palette sampled from the approved reference image, 18 October 2026. */
:root,:root[data-theme="light"],:root[data-theme="light"][data-brand]{
 --canvas:#e1ebec;--surface:#f4f9fb;--surface-soft:#e4f0f4;--sidebar:#eff4f4;--ink:#102738;--muted:#4e6877;--line:#d4e2e7;--accent:#203b4b;--on-accent:#fff;--selected:#deeaee;--hero:#e5edef;--hero-ink:#102738;
 --frost:linear-gradient(120deg,#f8fcfddd,#f1f7f9ed);--frost-edge:#f6fbfcb3;--frost-shadow:0 5px 22px #23485806;
 --control-fill:#e4f0f4;--control-edge:#d4e2e7;--primary-fill:linear-gradient(120deg,#142b3d,#243e4b);--primary-text:#fff;--button-clientes:linear-gradient(120deg,#142b3d,#243e4b);--button-clientes-text:#fff;--button-clientes-edge:#294352;
 --icon-surface:#e4f0f4;--icon-ink:#213d50;--icon-edge:#d4e2e7;--editorial-active:#203b4b;--editorial-active-text:#fff;
}
:root[data-theme="dark"],:root[data-theme="dark"][data-brand]{
 --canvas:#0c1924;--surface:#25343f;--surface-soft:#263543;--sidebar:#12232c;--ink:#f2f6f8;--muted:#b0c2cd;--line:#3b505d;--accent:#c3e2fa;--on-accent:#102738;--selected:#344e61;--hero:#20313b;--hero-ink:#f2f6f8;
 --frost:linear-gradient(120deg,#25343fee,#1d2c35f5);--frost-edge:#3a4e5b90;--frost-shadow:0 5px 22px #0000000e;
 --control-fill:#263543;--control-edge:#3b505d;--primary-fill:linear-gradient(110deg,#405c70,#304857);--primary-text:#f2f6f8;--button-clientes:var(--primary-fill);--button-clientes-text:var(--primary-text);--button-clientes-edge:#698494;
 --icon-surface:#2b3e4b;--icon-ink:#c3e2fa;--icon-edge:#3b505d;--editorial-active:#405c70;--editorial-active-text:#f2f6f8;
}
:root body,:root[data-theme="dark"] body{background:var(--canvas)!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}
:root body .sidebar{background:linear-gradient(140deg,var(--sidebar),var(--canvas))!important;border:0!important;box-shadow:none!important}
:root body .sidebar .brand::after{display:none!important}
:root body .sidebar .brand::before{font-weight:300}
:root body .nav button.active{background:var(--primary-fill)!important;border:1px solid transparent!important;border-radius:14px!important;box-shadow:none!important;color:var(--primary-text)!important}
:root[data-theme="dark"] body .nav button.active{background:var(--primary-fill)!important;border-color:var(--button-clientes-edge)!important;color:var(--primary-text)!important}
:root body .topbar{border-radius:22px!important;box-shadow:none!important}
:root body .topbar .top-actions [data-action],:root[data-theme="dark"] body .topbar .top-actions [data-action]{background:var(--primary-fill)!important;color:var(--primary-text)!important;border-color:transparent!important;box-shadow:none!important;border-radius:16px!important;font-weight:400!important}
:root[data-theme="dark"] body .topbar .top-actions [data-action]{border-color:var(--button-clientes-edge)!important}
:root body :is(.card,.stat,.client-card,.panel,.design-summary,.design-store,.crm-daily-panel,.crm-management-home,.entry-post,.feed-notice-card,.feed-personal-card){border-radius:20px!important;box-shadow:var(--frost-shadow)!important}
:root body .design-heading,:root[data-theme="dark"] body .design-heading{background:var(--hero)!important;border:1px solid var(--frost-edge)!important;border-radius:21px!important;min-height:168px;padding:42px 28px!important;box-shadow:none!important;display:block!important}
:root body .design-heading::before{display:none!important}
:root body .design-heading::after{background:url('/assets/reference-leaves.webp') right center/cover no-repeat!important;width:59%!important;opacity:1!important;mask-image:linear-gradient(90deg,transparent,#000 28%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 28%)}
:root[data-theme="dark"] body .design-heading::after{filter:grayscale(.65) brightness(.4) sepia(.2) hue-rotate(155deg)!important;mix-blend-mode:luminosity}
:root body .design-heading :is(p,h1){display:inline!important;font-size:clamp(25px,2.1vw,34px)!important;line-height:1.3;font-weight:600!important;color:var(--hero-ink)!important;margin:0!important;letter-spacing:-.045em}
:root body .design-heading h1::before{content:' '}
:root body .design-heading>span,:root[data-theme="dark"] body .design-heading>span{margin-top:12px;color:var(--muted)!important;max-width:65%;font-size:13px}
:root body .design-summary{padding:24px 28px!important;min-height:145px;border-radius:20px!important}
:root body .design-summary h2{font-size:16px;font-weight:500;margin-bottom:16px}
:root body .design-summary>div>div{text-align:left;gap:10px;padding:0 26px}
:root body .design-summary>div>div>strong{font-size:clamp(22px,2vw,29px);font-weight:600}
:root body .crm-daily-panel::before{display:none!important}
:root body .crm-daily-head .eyebrow{text-transform:none;letter-spacing:0;font-size:14px;color:var(--ink)}
:root body .crm-daily-head h2{font-size:25px!important;font-weight:600}
:root body .crm-daily-head .btn{background:var(--primary-fill)!important;color:var(--primary-text)!important;border:0!important;border-radius:999px!important;white-space:nowrap}
:root body .crm-daily-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
:root body .crm-daily-counter{border:1px solid var(--line);border-radius:17px!important;background:var(--surface-soft)!important;padding:22px 18px!important;min-height:100px;color:var(--ink)}
:root body .crm-daily-counter strong{font-size:23px;color:var(--ink)}
:root body .crm-daily-counter span{color:var(--muted)}
:root body :is(.btn-dark,.btn.active,.chip.selected){background:var(--primary-fill)!important;color:var(--primary-text)!important}
:root[data-theme="dark"] body :is(.feed-tab.active,.comms-tabs>button[aria-pressed="true"],.period-pills button.active,.wf-reminder-type.selected){background:var(--primary-fill)!important;color:var(--primary-text)!important;border-color:var(--button-clientes-edge)!important}
:root body.login-page .login-welcome,:root[data-theme="dark"] body.login-page .login-welcome{background:var(--hero)!important;color:var(--ink)!important}
:root body.login-page .login-welcome::after{background-image:url('/assets/reference-leaves.webp');opacity:.4}
:root body.login-page .login-intro p,:root body.login-page .login-caption{color:var(--muted)!important}
@media(max-width:780px){:root body .design-heading{padding:28px 22px!important;min-height:150px}:root body .design-heading>span{max-width:80%}:root body .design-heading::after{opacity:.45!important}:root body .crm-daily-counters{gap:8px}:root body .crm-daily-counter{padding:14px 10px!important}:root body .design-summary>div>div{padding-inline:12px}}
@media(prefers-reduced-transparency:reduce){:root{--frost:var(--surface)}:root body .topbar{backdrop-filter:none}}
:root body .reference-day-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
:root body .reference-day-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:20px 18px;min-height:126px;font:inherit;cursor:pointer}
:root body .reference-day-card>.cl-icon{width:25px;height:25px;margin-bottom:10px;color:var(--icon-ink)}
:root body .reference-day-card>span{font-size:13px}:root body .reference-day-card small{font-size:12px;color:var(--muted)}
:root body .reference-day-card .reference-day-arrow{position:absolute;right:15px;bottom:18px;font-size:18px}
:root body .reference-hero-caption{position:absolute;right:25px;top:45px;width:110px;font-size:9px;line-height:2.1;letter-spacing:.28em;color:var(--muted);font-weight:400}
@media(max-width:1050px){:root body .reference-hero-caption{display:none}:root body .reference-day-cards{gap:10px}:root body .reference-day-card{padding:16px 12px}}
@media(max-width:700px){:root body .reference-day-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root body .sidebar .brand{display:grid!important;grid-template-columns:35px minmax(0,1fr);column-gap:11px;row-gap:12px;align-items:center;justify-content:initial!important;text-align:left!important;padding:8px 6px!important;margin:10px 0 18px!important;height:auto!important;flex-shrink:0}
:root body .sidebar .brand::before{grid-column:1;grid-row:1;font-size:42px;width:35px;height:44px;line-height:42px;font-weight:300!important}
:root body .sidebar .brand .brand-word{font-size:19px!important;font-weight:600!important}
:root body .sidebar .brand .brand-text{grid-column:2;grid-row:1;display:flex!important;flex-direction:column;gap:5px;min-width:0;line-height:1.3}
:root body .sidebar .brand .brand-word{position:static;white-space:normal!important;overflow-wrap:anywhere;line-height:1.25!important}
:root body .sidebar .brand .brand-text small{position:static;margin:0!important;line-height:1.4}
:root body .sidebar .brand #ws-identity{grid-column:1/-1;grid-row:2;position:static;width:100%;min-width:0;margin:0!important;padding:10px 0 0;display:grid;gap:4px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
:root body .sidebar .brand #ws-identity>span,:root body .sidebar .brand #ws-identity>small{display:block;position:static;line-height:1.5;margin:0;letter-spacing:0}
:root body .sidebar .brand #brand-context{grid-column:1/-1;grid-row:3;position:static;justify-self:start;max-width:100%;margin:0;white-space:normal;line-height:1.4}
:root body .design-heading :is(h1,p){font-weight:500!important}
:root body .crm-daily-head .eyebrow{font-weight:400!important;text-transform:none!important;letter-spacing:0!important}
:root body .reference-hero-caption{background:var(--hero);border-radius:0 0 0 40px;top:0;right:0;width:145px;height:100%;display:flex;align-items:center;padding:28px;font-size:9px;line-height:2}
:root body #dialog.client-drawer .dialog-head,:root body #dialog.client-drawer .form-actions{background:var(--surface)!important;color:var(--ink)!important;box-shadow:none!important;border-color:var(--line)!important}
:root body .design-summary>div>div>strong{font-weight:500!important}
@media(max-width:1050px){:root body .reference-hero-caption{display:none}}


/* Account controls belong in the header; brand remains in the sidebar. */
:root body .topbar-with-account{height:auto!important;min-height:76px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 20px!important}
:root body .topbar-with-account .global-search{flex:1 1 200px;min-width:0;width:auto!important}
:root body .topbar-account{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-left:auto;min-width:0;max-width:100%}
:root body #topbar-profile{min-width:0;max-width:100%}
:root body .topbar-account #seller-sidebar{display:flex!important;align-items:center;gap:9px;width:auto;max-width:240px;margin:0!important;padding:4px!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--ink)!important;text-align:left}
:root body .topbar-account #seller-sidebar img,:root body .topbar-account #seller-sidebar .avatar{width:34px;height:34px;min-width:34px;border-radius:50%;object-fit:cover}
:root body .topbar-account #seller-sidebar>span{min-width:0}
:root body .topbar-account #seller-sidebar strong,:root body .topbar-account #seller-sidebar small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
:root body .topbar-account #seller-sidebar strong{font-size:12px}
:root body .topbar-account #seller-sidebar small{font-size:10px;color:var(--muted)}
:root body .topbar-account #theme-toggle{display:flex;align-items:center;gap:6px;width:auto;margin:0;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:11px;cursor:pointer}
:root body .topbar-account form{margin:0}
:root body .topbar-account .text-link{color:var(--ink);font-size:12px}
@media(max-width:780px){:root body .topbar-with-account{padding:12px!important}:root body .topbar-account{flex:1 1 100%;justify-content:space-between;gap:8px}:root body .topbar-account #seller-sidebar{max-width:180px}:root body .topbar-account #theme-toggle{font-size:10px}}

/* Compact theme control immediately before the profile. */
:root body .topbar-account #theme-toggle{order:0;flex:0 0 36px;width:36px;height:36px;min-width:36px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:50%!important;gap:0;box-shadow:none!important}
:root body .topbar-account #theme-toggle>span:not(.nav-icon){display:none}
:root body .topbar-account #theme-toggle .nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0;font-size:19px;line-height:1}
:root body .topbar-account #topbar-profile{order:1}
:root body .topbar-account>form{order:2}

/* Readable controls retain the approved blue palette and typeface. */
:root body :is(.btn,.icon-button,.text-button,.text-link,.favorite-toggle,.feed-tab,.chip,.mobile-toggle){min-height:44px}
:root body :is(.icon-button,.favorite-toggle,.mobile-toggle){min-width:44px}
:root body .topbar .top-actions>[data-action]{min-height:44px;font-size:13px}
:root body :is(.field-label,.form-grid label){font-size:14px;line-height:1.5}
:root body :is(.tiny,.curve-cutoff,.goal-note,.workspace-identity small){font-size:13px;line-height:1.55}
:root body #dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface-soft)!important;color:var(--ink)!important;backdrop-filter:none;line-height:1.5;font-size:16px;border-color:var(--muted)!important}
:root body #dialog .btn:not(.btn-dark):not(.btn-danger):not(.active){background:var(--surface-soft)!important;color:var(--ink)!important;border:1px solid var(--muted)!important;box-shadow:none!important}
:root body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
:root body button:disabled{cursor:not-allowed;opacity:.55}
.ux-home-context{position:relative;z-index:1;font-size:13px;line-height:1.5;color:var(--ink);margin-top:12px;max-width:65%;overflow-wrap:anywhere}
.ux-next-step{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);color:var(--ink)}
.ux-next-step p{flex:1 1 100%;margin:0;font-size:14px}
.ux-management-more{flex:1 1 100%;min-width:0}.ux-management-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--ink);font-size:14px}.ux-management-more summary::after{content:'＋'}.ux-management-more[open] summary::after{content:'−'}.ux-management-more>.button-row{margin-top:8px}
.ux-field-error{display:block;margin-top:6px;color:var(--ink);font-size:13px!important;line-height:1.5;font-weight:600}.ux-field-error::before{content:'! ';font-weight:700}
.save-feedback{background:var(--surface-soft);color:var(--ink);line-height:1.5}.save-feedback[hidden]{display:none}.save-feedback[data-kind=error]{border-color:var(--muted)}
.ux-review-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.ux-review-nav button{min-height:44px;flex:1}
.ux-photo-state{display:block;color:var(--ink);font-size:13px;padding:8px 0;line-height:1.5}.ux-photo-confirm{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.entry-save-status{padding:14px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;color:var(--ink)}
@media(max-width:780px){.ux-home-context{max-width:100%}:root body .feed-timeline-list{max-height:none!important;overflow:visible!important}:root body .feed-tabs{flex-wrap:wrap}:root body .topbar .top-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){:root body :is(.btn,.card,.client-drawer){transition:none!important;animation:none!important}}

@media(max-width:700px){
 #review .tablewrap{overflow:visible}#review table,#review tbody{display:block;width:100%}#review thead{display:none}
 #review #items>tr:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;padding:16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:16px}
 #review #items>tr[hidden]{display:none}#review td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
 #review td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--muted)}
 #review td:last-child{grid-column:1/-1}#review .photo-choice{max-width:48%}#review .photo-choice img{max-width:100%;object-fit:contain}
}
:root body #dialog :is(.check-row small,.field-label small){color:var(--muted);font-size:13px;line-height:1.5}
:root[data-theme="dark"] body #dialog :is(input,select,textarea){color-scheme:dark}

@media(max-width:780px){
 :root body #sidebar .topbar-account{flex:0 0 auto;width:100%;margin:18px 0 0;padding:14px 0;justify-content:flex-start;gap:10px;border-top:1px solid var(--line)}
 :root body #sidebar .topbar-account #theme-toggle{width:44px;height:44px;min-width:44px;flex-basis:44px}
 :root body #sidebar #topbar-profile{flex:1;min-width:0}
 :root body #sidebar .topbar-account #seller-sidebar{width:100%;max-width:none}
 :root body #sidebar{overflow-y:auto}
}
