/*
 EloPlanner · Editorial Blue 20261018
 Fidelity layer for approved light and dark references.
 Applied last, without replacing forms, role logic, feeds, or data.
*/
:root,:root[data-theme="light"],:root[data-theme="light"][data-brand]{
 color-scheme:light;
 --canvas:#eaf4fb;--surface:#fafdff;--surface-soft:#e9f3fb;--sidebar:#f1f8fd;
 --ink:#0b2444;--muted:#576f89;--line:#cfe2f0;
 --accent:#19416a;--on-accent:#fff;--selected:#daedfa;--hero:#e5f2fc;--hero-ink:#0b2444;
 --shadow:0 13px 36px #20486613;
 --frost:linear-gradient(123deg,#ffffffed,#edf6fce5);
 --frost-edge:#ffffffed;--frost-shadow:0 12px 34px #20486612,inset 0 1px 0 #fff;
 --control-fill:linear-gradient(145deg,#ffffff,#eaf4fc);
 --control-edge:#caddf0;
 --primary-fill:linear-gradient(120deg,#113456,#2b567e);
 --primary-text:#fff;
 --button-clientes:linear-gradient(115deg,#133658,#2d547a);
 --button-clientes-text:#fff;--button-clientes-edge:#50779b;
 --icon-surface:#e6f3fd;--icon-ink:#19436b;--icon-edge:#d4e6f3;
 --editorial-shell:#f7fbff;
 --editorial-card:#ffffffed;--editorial-ink:#0b2444;--editorial-active:#15395b;
 --editorial-active-text:#fff;
}
:root[data-theme="dark"],:root[data-theme="dark"][data-brand]{
 color-scheme:dark;
 --canvas:#071521;--surface:#112536;--surface-soft:#1b3347;--sidebar:#0b1c2b;
 --ink:#f2f8fe;--muted:#b4c7d9;--line:#2f4d65;
 --accent:#bfe3fe;--on-accent:#0a2234;--selected:#254862;--hero:#152d43;--hero-ink:#f6fbff;
 --shadow:0 15px 34px #0000003a;
 --frost:linear-gradient(128deg,#1d394ef0,#112639eb);
 --frost-edge:#3b5971;--frost-shadow:0 15px 32px #0000002c,inset 0 1px 0 #ffffff0b;
 --control-fill:linear-gradient(150deg,#1d394e,#10283b);
 --control-edge:#3e617b;
 --primary-fill:linear-gradient(120deg,#c0e4ff,#8ec7f2);
 --primary-text:#0b2439;
 --button-clientes:linear-gradient(115deg,#bee1fb,#92c7f1);
 --button-clientes-text:#0b2337;--button-clientes-edge:#cfeaff;
 --icon-surface:#274862;--icon-ink:#c6e6ff;--icon-edge:#3f6580;
 --editorial-shell:#0c1b2a;
 --editorial-card:#183144f0;--editorial-ink:#f2f8ff;--editorial-active:#a8d7fa;
 --editorial-active-text:#0a2437;
}

/* Whole-workspace atmospheric background and strong, understated headings. */
:root body .app-shell,:root body .workspace{background:transparent!important;color:var(--ink)}
:root body{background:radial-gradient(ellipse at 80% 0%,#bcdbef6a,transparent 55%),var(--canvas)!important;color:var(--ink)}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 90% -10%,#25476185,transparent 58%),var(--canvas)!important}
:root body :is(h1,h2,h3,.brand-word){letter-spacing:-.04em}
:root body :is(.card,.stat,.client-card,.panel,.design-summary,.design-store,.design-details .card,.crm-daily-panel,.crm-management-home,.entry-post,.feed-notice-card,.feed-personal-card,.comms-notice,.comms-chat,.comms-conversation,.feed-aside-card){
 background:var(--frost)!important;color:var(--ink);
 border:1px solid var(--frost-edge)!important;
 box-shadow:var(--frost-shadow)!important;border-radius:24px!important;
}
:root body .sidebar{
 background:linear-gradient(155deg,var(--sidebar),var(--surface-soft))!important;
 color:var(--ink);border-right:1px solid var(--line);box-shadow:inset -1px 0 0 #fff2;
}
:root body .sidebar .brand{padding-top:20px;gap:8px}
:root body .sidebar .brand-word{font-size:23px!important;font-weight:660;letter-spacing:-.065em!important;color:var(--ink)}
:root body .sidebar .brand>small{font-size:10px;letter-spacing:.24em;color:var(--muted)}
:root body .sidebar .brand{display:flex;align-items:center;gap:11px;min-width:0;padding-left:10px;padding-right:8px}
:root body .sidebar .brand{position:relative}
:root body .sidebar .brand::before{
 content:"C";display:block!important;flex:none;
 width:45px;height:48px;line-height:46px;
 color:var(--ink);font-family:Arial,sans-serif;
 font-size:47px;font-weight:540;letter-spacing:-.14em;
 background:transparent;border:0;border-radius:0;
}
:root body .sidebar .brand::after{
 content:"";position:absolute;top:calc(50% - 2px);left:46px;
 width:7px;height:7px;border-radius:50%;background:#78b3e3;
 box-shadow:0 0 0 2px var(--sidebar);
}
:root body .sidebar .brand .brand-text{display:grid;align-content:center;gap:5px;min-width:0}
:root body .sidebar .brand .brand-word{font-size:20px!important;letter-spacing:-.055em!important;white-space:nowrap}
:root body .sidebar .brand .brand-text small{font-size:9px;line-height:1.2;letter-spacing:.17em;color:var(--muted)}
:root body .nav button:not(.active){color:var(--muted)}
:root body .nav button.active{
 background:linear-gradient(125deg,#173a5c,#31577c)!important;
 border:1px solid #5986a8!important;
 border-radius:18px!important;color:#fff!important;
 box-shadow:inset 3px 0 0 #bedef5,0 5px 14px #1736531e!important;
}
:root[data-theme="dark"] body .nav button.active{background:linear-gradient(110deg,#335874,#1a3d58)!important}
:root body .nav .crm-nav-group-label{font-size:10px;letter-spacing:.17em;color:var(--muted);font-weight:750}
:root body .topbar{background:var(--frost)!important;border-radius:0 0 22px 22px!important;border:1px solid var(--frost-edge);box-shadow:0 9px 24px #1d466210!important;gap:14px}
:root body .global-search{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:15px!important;min-height:44px;box-shadow:0 2px 12px #1a497005}
:root body .global-search input{background:transparent!important;color:var(--ink)}
:root body .topbar .top-actions{gap:8px}
:root body .topbar .top-actions [data-action]{
 border-radius:50px!important;min-height:39px;
 padding:9px 14px!important;font-weight:650!important;letter-spacing:-.015em;
 background:var(--control-fill)!important;color:var(--ink)!important;
 border:1px solid var(--control-edge)!important;
 box-shadow:0 4px 16px #1b4b6b10!important;
}
:root body .topbar .top-actions [data-action="new-client"]{
 background:var(--button-clientes)!important;color:var(--button-clientes-text)!important;border-color:var(--button-clientes-edge)!important;
}
:root[data-theme="dark"] body .topbar .top-actions [data-action]{
 background:linear-gradient(138deg,#1c3850,#142c41)!important;
 color:#e4f3ff!important;border-color:#47728e!important;
}
:root[data-theme="dark"] body .topbar .top-actions [data-action="new-client"]{
 background:var(--button-clientes)!important;color:var(--button-clientes-text)!important;
}
:root body .topbar .top-actions .top-action-label{display:inline!important}
:root body .topbar .top-actions .top-action-mobile-label{display:none!important}

/* Buttons and controls: eliminate old universal dark fill without altering handler attributes. */
:root body :is(.btn,.btn-lime,.quick-add,.chip,.icon-button,.dialog-close,.modal-close,.sidebar-theme,.segmented button,.sv-tabs button,.sv-days button,.entry-carousel-controls button,.entry-feed-actions button,.home-queue-buttons button,.crm-management-actions button){
 background:var(--control-fill)!important;color:var(--ink)!important;
 border:1px solid var(--control-edge)!important;border-radius:16px!important;
 box-shadow:0 5px 15px #193c5c10!important;
}
:root body :is(.btn-dark,.btn.active,.chip.selected,.workspace-tabs .active,.segmented button.active,.sv-tabs button[aria-pressed="true"],.crm-management-actions .btn-dark){
 background:var(--button-clientes)!important;color:var(--button-clientes-text)!important;
 border:1px solid var(--button-clientes-edge)!important;
 box-shadow:0 7px 20px #193c5c1b!important;
}
:root body :is(button,a,input,textarea,select):focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px}
:root body button:disabled{opacity:.55;cursor:not-allowed}

/* The exact three-panel dashboard concept: welcome, monthly metrics, then Meu dia. */
:root body .design-home{max-width:1370px;width:100%;gap:18px;align-items:start}
:root body .design-heading{
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(105deg,#ffffffeb 0%,#e9f4fcf1 56%,#d9eaf8 100%)!important;
 color:#0a2544!important;border:1px solid #fffffff2!important;
 border-radius:29px!important;
 padding:36px 40px!important;
 min-height:160px;
 margin:0!important;box-shadow:0 12px 31px #204e6b13!important;
}
:root body .design-heading::after{
 content:"";position:absolute;z-index:-1;
 inset:0 0 0 auto;width:min(55%,580px);height:100%;
 background:url('/assets/editorial-botanical.svg') center right/auto 115% no-repeat;
 opacity:.7;pointer-events:none;
}
:root body .design-heading::before{
 content:"";position:absolute;z-index:-1;width:46%;height:145%;
 right:18%;top:-72%;background:#d8ebf950;border-radius:0 0 70% 30%;
 transform:rotate(24deg);pointer-events:none;
}
:root body .design-heading :is(h1,p){color:#0b2542!important}
:root body .design-heading p{font-size:clamp(25px,2.1vw,33px);font-weight:500}
:root body .design-heading h1{font-size:clamp(25px,2.1vw,33px);font-weight:650}
:root body .design-heading>span{color:#526f8b!important;letter-spacing:.01em;display:block;max-width:550px}
:root[data-theme="dark"] body .design-heading{
 background:linear-gradient(112deg,#11283df7 0%,#16324bed 66%,#254963e5 100%)!important;
 border:1px solid #4a6b8496!important;
 box-shadow:0 13px 31px #0005!important;
}
:root[data-theme="dark"] body .design-heading :is(h1,p){color:#f4faff!important}
:root[data-theme="dark"] body .design-heading>span{color:#c1d5e6!important}
:root[data-theme="dark"] body .design-heading::after{opacity:.8;filter:brightness(.72) saturate(.7)}
:root[data-theme="dark"] body .design-heading::before{background:#3257732c}
:root body .design-summary{
 background:var(--frost)!important;border-radius:29px!important;
 padding:25px 30px 29px!important;min-height:162px;margin:0!important;
}
:root body .design-summary h2{font-size:18px;font-weight:650;margin:0 0 21px;color:var(--ink)}
:root body .design-summary>div{gap:0}
:root body .design-summary>div>div{padding:6px 24px;border-color:var(--line)!important}
:root body .design-summary>div>div:first-child{padding-left:0}
:root body .design-summary>div>div>span{color:var(--muted);font-size:13px}
:root body .design-summary>div>div>strong{font-size:clamp(22px,2.6vw,33px);color:var(--ink);font-weight:690;letter-spacing:-.05em}
:root body .design-summary::before{content:none!important}

/* Priority panel uses a real heading with subtle botanical backdrop (no fake data). */
:root body .crm-daily-panel{
 position:relative;overflow:hidden;isolation:isolate;padding:25px 28px!important;
 background:var(--frost)!important;
}
:root body .crm-daily-panel::before{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 inset:0 0 auto auto;width:33%;height:165px;
 background:url('/assets/editorial-botanical.svg') right center/contain no-repeat;
 opacity:.22;
}
:root body .crm-daily-head{align-items:center;gap:16px}
:root body .crm-daily-head h2{font-size:clamp(21px,2vw,28px)!important;font-weight:660;margin:0!important}
:root body .crm-daily-metrics>*{background:var(--surface-soft)!important;border:1px solid var(--line)!important;border-radius:18px}
:root body .crm-daily-list{background:var(--surface)!important;border-color:var(--line)!important}
:root body .entry-feed-timeline .feed-topbar h2{font-size:clamp(22px,2vw,29px);font-weight:650}
:root body .feed-tab{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:999px!important}
:root body .feed-tab.active{background:var(--editorial-active)!important;color:var(--editorial-active-text)!important;border-color:var(--editorial-active)!important}
:root body .feed-timeline-list .entry-slide img{object-fit:contain}
:root body .feed-aside-card .feed-aside-heading h3{font-weight:650}
:root body :is(.crm-management-metric,.crm-management-section,.feed-aside-row,.comms-bubble,.comms-thread,.entry-photo-link){border-color:var(--line);color:var(--ink)}
:root body :is(input,select,textarea){border-color:var(--line);background:var(--surface-soft);color:var(--ink)}

/* Bottom navigation follows compact mobile editorial mockup. */
:root body #design-mobile-nav{
 background:var(--frost)!important;border:1px solid var(--frost-edge)!important;
 box-shadow:0 9px 35px #09263b35!important;border-radius:24px 24px 0 0!important;
 padding:10px 7px calc(10px + env(safe-area-inset-bottom))!important;
}
:root body #design-mobile-nav button{color:var(--muted)!important}
:root body #design-mobile-nav button[aria-current="page"]{color:var(--ink)!important}
:root body #design-mobile-nav button[aria-current="page"] .cl-icon{
 background:var(--editorial-active)!important;color:var(--editorial-active-text)!important;border-radius:16px!important
}
:root body .design-mobile-brand{background:var(--frost)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root body .design-mobile-brand :is(strong,span,small){color:var(--ink)!important}
@media(max-width:780px){
 :root body .design-home{gap:13px}
 :root body .design-heading{padding:23px 23px 28px!important;min-height:150px}
 :root body .design-heading::after{width:52%;opacity:.34}
 :root body .design-summary{padding:22px!important}
 :root body .crm-daily-panel{padding:19px!important}
 :root body .topbar{gap:8px}
 :root body .topbar .top-actions{gap:3px}
 :root body .topbar .top-actions [data-action]{font-size:clamp(9px,2.6vw,12px)!important;padding:7px 5px!important;min-height:39px}
}
@media(max-width:400px){
 :root body .design-heading h1,:root body .design-heading p{font-size:24px!important}
 :root body .design-heading::after{width:60%;opacity:.2}
 :root body .design-summary>div>div{padding-inline:8px!important}
 :root body .design-summary>div>div>strong{font-size:18px!important}
}
@media(prefers-reduced-motion:reduce){:root body :is(.btn,.nav button,.feed-tab){transition:none!important}}

/* Authentication retains the editorial palette without changing form handling. */
:root body.login-page{
 background:radial-gradient(ellipse at 84% 0%,#b5d6ec5c,transparent 50%),var(--canvas)!important;
}
:root[data-theme="dark"] body.login-page{
 background:radial-gradient(ellipse at 90% 0%,#28506c66,transparent 50%),var(--canvas)!important
}
:root body.login-page .login-shell{
 border:1px solid var(--line);border-radius:34px;overflow:hidden;
 box-shadow:0 20px 70px #1a405625;background:var(--surface);
}
:root body.login-page .login-welcome{
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(135deg,#e8f4fc,#d5e9f7)!important;
 color:#0a2947!important;border-radius:30px;
}
:root body.login-page .login-welcome::after{
 content:"";position:absolute;z-index:-1;inset:auto -15% -8% 25%;height:65%;
 background:url('/assets/editorial-botanical.svg') right bottom/contain no-repeat;
 opacity:.48;pointer-events:none;
}
:root body.login-page .login-intro p,
:root body.login-page .login-caption{color:#55718b!important}
:root[data-theme="dark"] body.login-page .login-welcome{
 background:linear-gradient(135deg,#0c2539,#183b55)!important;color:#f2f9ff!important;
}
:root[data-theme="dark"] body.login-page .login-intro p,
:root[data-theme="dark"] body.login-page .login-caption{color:#b8d3e7!important}
:root[data-theme="dark"] body.login-page .login-welcome::after{opacity:.32}
:root body.login-page .login-panel{background:var(--surface)}
:root body.login-page :is(.login-theme,.login-install){border-radius:18px}
:root body.login-page .login-submit{
 background:var(--button-clientes)!important;color:var(--button-clientes-text)!important;
 border-radius:19px!important;border:1px solid var(--button-clientes-edge)!important;
}
