/* Shared matte blue palette for the workspace and authentication. */
:root,:root[data-theme="light"],:root[data-brand]{--canvas:#f1f5f9;--surface:#f9fbfd;--surface-soft:#e0edf8;--sidebar:#e4f0fb;--ink:#183550;--muted:#536b81;--line:#cbddeb;--accent:#285e91;--on-accent:#f5faff;--selected:#d0e5f7;--hero:#326fa7;--hero-ink:#f2f8fe;--shadow:0 6px 18px #18355006}
:root[data-theme="dark"],:root[data-theme="dark"][data-brand]{--canvas:#0d1d2c;--surface:#1b3247;--surface-soft:#23445f;--sidebar:#152c40;--ink:#dceafa;--muted:#adc5db;--line:#304e68;--accent:#94c7f2;--on-accent:#10283e;--selected:#315b7e;--hero:#153149;--hero-ink:#dceafa;--shadow:none}
:root:not([data-theme="dark"]) body,:root[data-theme="dark"] body{background:var(--canvas);background-attachment:scroll}
body::before{background:none!important}
:root :is(.card,.stat,.client-card,.panel,.design-summary,.design-store,.design-details .card,.design-shortcuts button>span,#design-mobile-nav,.topbar){background:var(--surface);border-color:var(--line);box-shadow:var(--shadow);backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:28px}
:root:not([data-theme="dark"]) .sidebar,:root[data-theme="dark"] .sidebar{background:var(--sidebar);border-color:var(--line);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
:root .topbar{border-radius:0;background:var(--canvas);box-shadow:none}
:root .nav button.active{background:var(--accent);color:var(--on-accent);border-color:transparent;box-shadow:none;border-radius:18px}
.btn,input,select,textarea{border-radius:16px}
.design-home{gap:18px;grid-template-areas:"brand brand" "heading heading" "summary summary" "reminder queue" "store shortcuts" "details details";position:relative}
.design-mobile-brand{grid-area:brand}.design-heading{grid-area:heading;background:var(--hero);color:var(--hero-ink);border-radius:32px 32px 0 0;padding:30px 30px 55px;margin-bottom:-52px}
.design-heading p,.design-heading>span{color:var(--hero-ink)}.design-heading p{display:inline;font-size:30px}.design-heading h1{display:inline;font-size:30px;margin-left:7px}.design-heading>span{display:block;margin-top:14px;line-height:1.6}
:root .design-summary{grid-area:summary;position:relative;border-radius:32px 14px 32px 32px;padding:26px 28px;border:0;margin-top:12px}
.design-summary::before{content:"";position:absolute;right:0;top:-12px;width:25%;height:26px;background:var(--hero);border-radius:0 0 0 28px;pointer-events:none}
.design-summary h2{margin-bottom:18px}.design-summary>div>div{text-align:left;padding:6px 14px;gap:10px}.design-summary>div>div:first-child{padding-left:0}.design-summary strong{font-size:clamp(20px,2.5vw,30px)}
:root[data-theme="dark"] .design-summary{background:#244b6d}
.design-reminder,:root[data-theme="dark"] .design-reminder{grid-area:reminder;background:#326fa7!important;border:0;border-radius:28px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:24px;min-height:200px}
.design-reminder .design-kicker{font-size:15px;line-height:1.5}.design-reminder strong{font-size:32px}.design-circle{width:32px;height:32px;background:#ffffff20;box-shadow:none;border:0;align-self:flex-end}
#design-queue{grid-area:queue;display:flex}.home-queue{width:100%;display:flex;flex-direction:column;justify-content:space-between;padding:24px!important;background:var(--surface-soft)!important;border:0}.home-queue details{flex:initial;width:100%}.home-queue summary{gap:14px}.home-queue summary>span{font-size:16px}.home-queue summary>small{flex-basis:100%;line-height:1.5}.home-queue-buttons{width:100%;gap:8px}.home-queue-buttons .btn{border-radius:22px;background:var(--selected);border:0}.home-queue-person{font-size:13px}
.design-store{grid-area:store}.design-store button{border:1px solid var(--line);padding:14px;border-radius:20px;background:var(--surface);margin-top:10px}.design-store button>.cl-icon:first-child{box-sizing:content-box;padding:10px;background:var(--surface-soft);border-radius:50%}.design-store h2{margin-bottom:12px}
.design-shortcuts{grid-area:shortcuts;align-self:center}.design-shortcuts h2{text-transform:uppercase;font-size:11px;letter-spacing:1.5px;margin:0 10px 14px}.design-shortcuts>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.design-shortcuts button{background:var(--surface);border-radius:24px;padding:18px 8px;gap:10px;min-height:96px}.design-shortcuts button>span,:root[data-theme="dark"] .design-shortcuts button>span{background:none;border:0;box-shadow:none;width:32px;height:32px;backdrop-filter:none;-webkit-backdrop-filter:none}.design-details{grid-area:details}
.global-search input::placeholder{color:var(--muted);opacity:1}
@media(max-width:780px){
 .design-home{gap:12px;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-areas:"brand brand" "heading heading" "summary summary" "reminder queue" "store store" "shortcuts shortcuts" "details details"}
 .design-mobile-brand{background:var(--hero);color:var(--hero-ink);border-radius:30px 30px 0 0;padding:26px 22px 12px;margin-bottom:-12px}.design-mobile-brand strong{font-size:28px}.design-mobile-brand>span,.design-mobile-brand small{color:var(--hero-ink)}.design-mobile-brand small{margin-top:5px;font-size:11px}
 .design-heading{border-radius:0;padding:12px 22px 48px;margin-bottom:-44px}.design-heading p,.design-heading h1{font-size:25px}.design-heading>span{font-size:11px;margin-top:9px}
 :root .design-summary{padding:22px 20px;border-radius:30px 12px 28px 28px}.design-summary strong{font-size:19px}.design-summary>div>div{padding:4px 10px}.design-summary span{font-size:11px}.design-home h2{font-size:16px}
 .design-reminder,:root[data-theme="dark"] .design-reminder{padding:18px;gap:4px;position:relative;align-items:flex-start;min-height:210px}.design-reminder .design-kicker{flex-direction:column;align-items:flex-start;gap:10px;font-size:14px}.design-reminder>span:first-child{gap:12px;width:100%;padding-bottom:22px}.design-reminder strong{position:absolute;top:20px;right:18px;font-size:22px}.design-reminder .design-circle{position:absolute;bottom:14px;right:14px;width:26px;height:26px}.design-reminder .design-circle .cl-icon{width:16px;height:16px}
 .home-queue{padding:18px!important;gap:16px;border-radius:28px}.home-queue summary>span{flex-direction:column;align-items:flex-start;font-size:14px;gap:12px}.home-queue summary:after{display:none}.home-queue summary>small{font-size:12px}.home-queue-buttons{flex-direction:column;align-items:stretch}.home-queue-buttons .btn,.home-queue-buttons .text-button{font-size:12px;justify-content:center;min-height:36px}.home-queue-content .queue-self-status{display:flex;flex-direction:column}.home-queue-person{flex-wrap:wrap}
 .design-store{padding:20px}.design-store button{padding:10px;gap:12px;font-size:13px}.design-shortcuts{padding:8px 0}.design-shortcuts h2{font-size:11px}.design-shortcuts button{font-size:11px;padding:14px 6px}.design-shortcuts>div{gap:8px}
 :root #design-mobile-nav{background:var(--surface);border:0;border-radius:28px;box-shadow:0 -3px 20px #102a430a;gap:2px;padding:8px 5px 6px;overflow:visible}
 #design-mobile-nav button{position:relative;padding:8px 1px;gap:7px;font-size:10px;min-height:58px;justify-content:flex-end;isolation:isolate}
 :root #design-mobile-nav button[aria-current="page"]{background:none;color:var(--ink);box-shadow:none}
 #design-mobile-nav button[aria-current="page"]::before{content:"";position:absolute;top:-24px;left:50%;transform:translateX(-50%);width:60px;height:60px;background:var(--canvas);border-radius:50%;z-index:-1}
 #design-mobile-nav button[aria-current="page"] .cl-icon{box-sizing:content-box;padding:14px;background:#326fa7;color:#f2f8fe;border-radius:50%;margin-top:-28px;margin-bottom:0;width:20px;height:20px}
}
@media(max-width:350px){.design-reminder,:root[data-theme="dark"] .design-reminder,.home-queue{padding:14px!important}.design-reminder strong{right:12px}.design-summary strong{font-size:17px}.design-mobile-brand strong{font-size:25px}.design-summary>div>div{padding-inline:6px}}
/* Legacy typography rules must not darken text on the blue welcome block. */
.design-mobile-brand strong,.design-heading h1{color:var(--hero-ink)!important}
:root[data-theme="dark"] .design-summary{background:#244b6d!important}
:root[data-theme="dark"] .text-button,:root[data-theme="dark"] .text-link{color:var(--accent)}
/* A continuous curve joins the welcome block and summary at every width. */
:root .design-summary{border-radius:30px}
.design-summary::before{content:none}
/* Sales and exchanges use the existing blue palette; green identifies WhatsApp only. */
:root .tag.exchange{background:#d0e5f7;color:#183550;border:1px solid #94c7f2}
:root[data-theme="dark"] .tag.exchange{background:#315b7e;color:#dceafa;border-color:#94c7f2}
:root .tag.sale{background:#285e91;color:#f5faff;border-color:#285e91}
:root :is(.live-dot,.brand-dot,.team-dot.disponivel){background:#4d8ac4}
:root .team-dot.offline{background:#8292a4}
:root :is(.notice-card:not(.urgente):not(.importante),.stat.accent){border-left-color:#4d8ac4}
:root[data-theme="dark"] a:not(.btn){color:var(--accent)}
:root :is(.wf-reminder-type.selected,.brand-choice:has(input:checked),.chip.selected,.segmented button.active){border-color:var(--accent)}
:root :is(input,select,textarea){accent-color:var(--accent)}
:root ::selection{background:var(--selected);color:var(--ink)}
:root :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]){color:#21613e;border-color:#9dcaac;background:#d8efdf}
:root[data-theme="dark"] :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]){color:#b3dfc2;border-color:#426b54;background:#1d3d30}
/* Shared surfaces in the web and installed app. */
:root :is(.agenda-group,.agenda-row,.agenda-date,.cl-reminder,.date-tile,.cl-empty,.empty,.empty-state,.wf-empty,.wf-reminder-type,.form-group,.check-row,.ns-record){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
:root :is(.agenda-group-today,.agenda-row.agenda-today,.today-reminder .cl-reminder){background:var(--selected);border-color:var(--accent)}
:root :is(.agenda-body p,.agenda-date small,.date-tile small,.cl-reminder p){color:var(--muted)}
:root :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]),:root[data-theme="dark"] :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]){background:transparent!important;border-color:var(--line);box-shadow:none}
:root :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]){color:#21613e!important}
:root[data-theme="dark"] :is(a[href^="https://wa.me/"],a[href^="https://api.whatsapp.com/"],[data-action="open-whatsapp"]){color:#b3dfc2!important}

:root{--agenda-surface:#edf0f3}
:root[data-theme="dark"]{--agenda-surface:#273645}
:root :is(.agenda-group,.agenda-row,.cl-reminder){background:var(--agenda-surface)}
:root :is(.agenda-group-today,.agenda-row.agenda-today,.today-reminder .cl-reminder){background:var(--selected);border-color:var(--accent)}
