:root{--ink:#12382f;--ink-deep:#092b24;--muted:#62756e;--sand:#f7f4ed;--line:#e3dfd5;--yellow:#f9dc65;--yellow-ink:#5b4710}
*{box-sizing:border-box}
html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--sand)}
body{margin:0;min-width:280px}
button,input{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.login-view{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#2d594c 0,transparent 35%),linear-gradient(135deg,#082b24,#17463a)}
.login-card{width:min(420px,100%);padding:38px clamp(22px,6vw,40px);border-radius:20px;background:#fff;box-shadow:0 24px 70px #061e1866}
.login-card img{display:block;width:210px;max-width:100%;height:auto;margin:0 auto 28px}
.login-card h1{font-size:1.35rem;margin:0 0 5px;text-align:center}
.login-card p{color:var(--muted);font-size:.9rem;text-align:center;margin:0 0 25px}
label{display:block;font-size:.78rem;font-weight:700;margin:13px 0 5px}
input{width:100%;border:1px solid #cdd7d0;border-radius:9px;padding:12px;color:var(--ink);background:#fff}
input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #e3b941;outline-offset:2px}
.primary-action{border:0;border-radius:9px;background:var(--ink);color:#fff;padding:12px 17px;font-weight:750}
.login-card .primary-action{width:100%;margin-top:23px}
.primary-action:disabled{opacity:.62;cursor:wait}
.form-error{min-height:18px;color:#a22f32;font-size:.79rem;margin-top:9px}
.dashboard-header{background:linear-gradient(110deg,#0c3028,#154236);min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(18px,4vw,56px);color:#fff}
.header-brand{display:block;flex:none}
.header-brand img{display:block;width:154px;max-width:100%;filter:brightness(0) invert(1)}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.header-actions span{font-size:.82rem;margin-right:6px}
.header-actions button{border:1px solid #ffffff55;border-radius:9px;color:#fff;background:#ffffff12;padding:8px 11px;font-size:.78rem}
.header-actions button:hover{background:#ffffff25}
.dashboard-main{width:min(1460px,100%);margin:auto;padding:clamp(24px,4vw,50px) clamp(16px,4vw,54px) 60px}
.welcome{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:38px}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.15em;color:#768b7f;font-weight:800;margin:0 0 9px}
.welcome h1{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15;margin:0 0 8px}
.welcome-copy>p:not(.eyebrow){color:var(--muted);font-size:.96rem;margin:0}
.welcome time{font-size:.77rem;color:var(--muted);white-space:nowrap;padding-top:14px}
.section-heading{margin-bottom:18px}
.section-heading h2{font-size:1.2rem;margin:0 0 5px}
.section-heading p{font-size:.87rem;color:var(--muted);margin:0}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.module-group{margin-top:28px}
.module-group-first{margin-top:0}
.module-group-divider{display:flex;align-items:center;gap:14px;margin-bottom:16px;color:var(--muted)}
.module-group-divider::before,.module-group-divider::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#b8c9bf)}
.module-group-divider::after{background:linear-gradient(90deg,#b8c9bf,transparent)}
.module-group-divider h2{margin:0;white-space:nowrap;color:#45685b;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.module-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 38%;min-height:175px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 8px 24px #0b30200a}
.module-card.available{border-color:#bdcfc5;transition:transform .15s,box-shadow .15s}
.module-card.available:hover{transform:translateY(-3px);box-shadow:0 16px 36px #0b302022}
.copilot-open{width:100%;min-width:0;padding:0;box-sizing:border-box;appearance:none;-webkit-appearance:none;font:inherit;text-align:left;cursor:pointer}
.copilot-dialog-head button{display:grid;place-items:center}.copilot-dialog-head button svg{width:18px;height:18px}
.copilot-choice svg{grid-column:2;grid-row:1/3;align-self:center;width:22px;height:22px;color:#346455;transition:transform .18s ease}
.copilot-choice[aria-expanded="true"] svg{transform:rotate(180deg)}
.copilot-items a svg{width:19px;height:19px;flex:none}
.copilot-choice:focus-visible,.copilot-items a:focus-visible,.copilot-dialog-head button:focus-visible{outline:3px solid #d4a535;outline-offset:2px}
.copilot-dialog{width:min(760px,calc(100% - 28px));max-height:88dvh;margin:auto;padding:24px;border:1px solid #cbd9cf;border-radius:18px;background:#f8f7f3;color:var(--ink);box-shadow:0 24px 80px #06241b66;overflow:auto}
.copilot-dialog::backdrop{background:#09261dbb}.copilot-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.copilot-dialog-head h2{margin:0;font-size:1.8rem}.copilot-dialog-head p{margin:5px 0;color:var(--muted)}.copilot-dialog-head button{border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:1.5rem;width:38px;height:38px;cursor:pointer}
.copilot-choices{display:grid;gap:10px}.copilot-choices section{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.copilot-choice{display:grid;grid-template-columns:1fr auto;gap:4px;width:100%;padding:17px 18px;border:0;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.copilot-choice strong{font-size:1.08rem}.copilot-choice span{grid-column:1;color:var(--muted);font-size:.82rem}.copilot-choice b{grid-column:2;grid-row:1/3;font-size:1.4rem}.copilot-choice[aria-expanded="true"]{background:#e7f1e9}.copilot-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:13px}.copilot-items[hidden]{display:none}.copilot-items div,.copilot-items a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--line);border-radius:9px;color:var(--ink);text-decoration:none;font-weight:700}.copilot-items small{font-size:.66rem;color:#7e6a42;font-weight:700}.copilot-items a{grid-column:1/-1;background:#103b31;color:#fff}.copilot-items a:hover{background:#195846}
@media(max-width:560px){.copilot-dialog{padding:16px}.copilot-items{grid-template-columns:1fr}}
.module-copy{position:relative;z-index:1;min-width:0;padding:19px 9px 17px 20px;display:flex;flex-direction:column;align-items:flex-start}
.module-copy h3{font-size:clamp(.96rem,1.3vw,1.13rem);line-height:1.2;margin:14px 0 8px;overflow-wrap:anywhere}
.module-copy p{font-size:.79rem;line-height:1.42;color:var(--muted);margin:0;max-width:29ch}
.status,.available-label{display:inline-flex;align-items:center;min-height:25px;border-radius:999px;padding:4px 9px;font-size:.64rem;line-height:1.1;font-weight:850;letter-spacing:.01em}
.status{background:var(--yellow);color:var(--yellow-ink)}
.available-label{background:#e5f1e8;color:#226840}
.open-arrow{position:relative;display:block;width:29px;height:29px;flex:none;border-radius:50%;background:var(--ink);color:transparent;font-size:0;line-height:0;margin-top:auto;align-self:flex-start}
.open-arrow::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;transform:translate(-50%,-50%);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-size:contain;background-repeat:no-repeat}
.module-visual{position:relative;min-width:0;overflow:hidden;background:#e5e7dc}
.module-visual::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#fff3,transparent 37%);pointer-events:none}
.module-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% center}
.module-visual.vector{display:grid;place-items:center;background:radial-gradient(circle at 78% 20%,#e1ebdf,transparent 34%),linear-gradient(145deg,#e7e9dd,#d3dfd4)}
.module-visual.vector svg{width:min(94%,164px);height:auto;fill:none;stroke:#275249;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 8px #345a3b21)}
.copilot-open .module-visual.vector svg{width:min(80%,128px);max-height:calc(100% - 24px)}
.module-visual.nps{background:linear-gradient(145deg,#f4e4bf,#d8e3d2)}
.module-visual.assist{background:linear-gradient(145deg,#e8ddd0,#ccd9d3)}
.module-visual.copilot{background:linear-gradient(145deg,#d9e7df,#b8d2c2)}
.module-visual.crm{background:linear-gradient(145deg,#e7dfd6,#c6d6ce)}
.module-visual.indicators{background:linear-gradient(145deg,#d5e5d9,#e8e0cc)}
.module-visual.production{background:linear-gradient(145deg,#e9ddc9,#b8cec1)}
.module-visual.records{background:linear-gradient(145deg,#d8e4dc,#dfd8c8)}
.module-visual.settings{background:linear-gradient(145deg,#e8e3d8,#c5d9ca)}
.module-visual.system{background:linear-gradient(145deg,#dbe9df,#bdd6c8)}
.password-dialog{border:0;border-radius:16px;width:min(420px,calc(100% - 30px));padding:25px;box-shadow:0 20px 70px #0005}
.password-dialog::backdrop{background:#07221999}
.password-dialog h2{font-size:1.2rem;margin:0 0 16px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.dialog-actions button:not(.primary-action){border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 14px}
@media(max-width:1080px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){.dashboard-header{align-items:flex-start;flex-direction:column;gap:8px}.header-brand img{width:130px}.header-actions{justify-content:flex-start;width:100%}.header-actions span{width:100%}.welcome{display:block;margin-bottom:30px}.welcome time{display:block;padding-top:12px}.module-grid{grid-template-columns:1fr}.module-card{min-height:158px;grid-template-columns:minmax(0,1fr) 36%}.module-copy{padding:16px 8px 15px 16px}.module-copy h3{margin:10px 0 5px}.module-copy p{font-size:.76rem}}
@media(max-width:390px){.module-card{grid-template-columns:minmax(0,1fr) 31%}.module-visual.vector svg{width:115px}.status{font-size:.58rem}}
.welcome-aside{flex:0 1 920px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:stretch;gap:22px}
.welcome .welcome-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-width:150px;min-height:66px}
.welcome .welcome-clock #today{padding:0;font-size:.8rem;line-height:1.3}
.welcome .welcome-clock #current-time{font-size:36px;line-height:1.2;font-weight:800;letter-spacing:.01em;color:var(--ink);font-variant-numeric:tabular-nums;padding:0}
.welcome-clock>span{font-size:.7rem;color:var(--muted)}
.sales-inspiration{width:100%;height:92px;min-width:0;display:flex;align-items:center;gap:12px;padding:11px 14px;margin:0;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px #0b30200a}
.inspiration-copy{flex:1;min-width:0;min-height:0;max-height:100%;display:flex;flex-direction:column}.inspiration-copy .eyebrow{flex:none;font-size:.58rem;line-height:1.35;letter-spacing:.08em;margin:0 0 4px;color:#768b7f}
.welcome .sales-quote{min-height:0;overflow-y:auto;font-size:.84rem;line-height:1.45;font-weight:600;margin:0;color:var(--ink);overflow-wrap:anywhere}
.quote-controls{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:5px}
.quote-controls>span,.quote-dots{display:none}
.quote-controls button{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;font-size:1rem}
.quote-controls button#quote-pause{font-size:.65rem}.quote-controls button:hover{background:#f3f6f2}
.quote-controls button:focus-visible{outline:2px solid #315d40;outline-offset:3px}
@media(max-width:1320px){.welcome{flex-wrap:wrap}.welcome-copy{flex:1 0 100%}.welcome-aside{width:100%;flex:1 0 100%}}
@media(max-width:950px){.welcome-aside{width:100%;margin-top:0;grid-template-columns:minmax(0,1fr);gap:13px}.welcome .welcome-clock{grid-row:1;justify-self:center}.sales-inspiration{grid-row:2}.welcome .welcome-clock #today{white-space:normal;text-align:center;font-size:.8rem}.welcome .welcome-clock #current-time{font-size:32px}.welcome-clock>span{text-align:center;font-size:.65rem}}
@media(max-width:670px){.welcome-aside{margin-top:20px}}
@media(max-width:480px){.sales-inspiration{height:120px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);gap:8px 10px;padding:12px 14px}.inspiration-copy{display:contents}.inspiration-copy .eyebrow{grid-column:1;grid-row:1;margin:0}.welcome .sales-quote{grid-column:1/-1;grid-row:2;align-self:stretch;font-size:.82rem}.quote-controls{grid-column:2;grid-row:1}}

/* Botão de retorno das telas que reutilizam o cabeçalho do painel. */
.dashboard-header .header-actions a:is(.records-back,.settings-back){display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:44px;padding:10px 17px;border:1px solid #b9dfcf;border-radius:11px;background:#e2f3e9;color:#123b31;font-size:.9rem;font-weight:750;line-height:1.2;text-decoration:none;white-space:nowrap;touch-action:manipulation;transition:background .15s,box-shadow .15s}
.dashboard-header .header-actions a:is(.records-back,.settings-back):hover{background:#cdebd9;box-shadow:0 3px 10px #06241a22}
.dashboard-header .header-actions a:is(.records-back,.settings-back):focus-visible{outline:3px solid #f9dc65;outline-offset:3px}

.module-visual.flow{background:linear-gradient(145deg,#e1eae2,#c3d8ce)}
.module-visual.budgets{background:linear-gradient(145deg,#e9e0d2,#cbded2)}
.module-visual.vector svg{transition:transform .2s ease}
.module-card:hover .module-visual.vector svg{transform:translateY(-3px)}

.quote-controls button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;line-height:0}
.quote-controls button svg{display:block;width:16px;height:16px;flex:none}
.quote-controls button svg path{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.quote-controls button:is(#quote-pause,#login-story-pause) svg path{fill:currentColor;stroke:none}
.primary-action:not(:disabled){background:var(--ink);color:#fff}.primary-action:not(:disabled):hover{filter:brightness(.88)}

/* Agenda da tela inicial. */
.welcome-schedule{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
.calendar-open{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:92px;min-height:74px;padding:8px 11px;border:1px solid #bdcfc5;border-radius:13px;background:#fff;color:var(--ink);font-size:.73rem;font-weight:750;box-shadow:0 8px 24px #0b30200a}
.calendar-open[hidden]{display:none}
.calendar-open:hover{background:#e9f3ed}.calendar-open svg{width:27px;height:27px}
.home-calendar-dialog,.home-calendar-event-dialog{width:min(1050px,calc(100% - 24px));max-height:90dvh;margin:auto;padding:22px;border:1px solid #cbd9cf;border-radius:17px;background:#f8f7f3;color:var(--ink);box-shadow:0 24px 80px #06241b66;overflow:auto}
.home-calendar-dialog::backdrop,.home-calendar-event-dialog::backdrop{background:#092820a8}
.home-calendar-event-dialog{width:min(570px,calc(100% - 24px))}
.home-calendar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.home-calendar-head .eyebrow{margin-bottom:4px}.home-calendar-head h2{margin:0;font-size:1.35rem;line-height:1.25}
.calendar-close{width:34px;height:34px;flex:none;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:1.45rem;line-height:1}
.home-calendar-tabs{display:flex;gap:6px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.home-calendar-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:10px 13px;font-weight:750}
.home-calendar-tabs button.active{border-color:var(--ink);color:var(--ink)}
.home-calendar-nav{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.home-calendar-nav h3{font-size:1.08rem;margin:0;min-width:165px;text-align:center}
.home-calendar-nav button{border:1px solid #cbd9cf;border-radius:9px;background:#fff;color:var(--ink);min-height:34px;padding:5px 11px;font-weight:750}
.home-calendar-nav button:is(#calendar-prev,#calendar-next){font-size:1.4rem;line-height:1}
.home-calendar-nav button#calendar-today{margin-left:auto}
.home-calendar-status{min-height:20px;margin:6px 0 12px;color:var(--muted);font-size:.85rem}
.home-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(103px,1fr));gap:5px;overflow-x:auto}
.home-calendar-weekday{text-align:center;padding:7px 2px;color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase}
.home-calendar-day{min-width:0;min-height:90px;max-height:160px;overflow-y:auto;padding:7px;border:1px solid #dce5dd;border-radius:10px;background:#fff}
.home-calendar-day.outside{background:#edf0eb}.home-calendar-day.is-today{border:2px solid var(--ink)}
.home-calendar-day-number{display:block;margin-bottom:5px;font-size:.82rem;font-weight:800}
.home-calendar-event{display:block;width:100%;margin:4px 0;padding:5px 6px;border:0;border-radius:6px;background:#e0eee5;color:#0c382b;text-align:left;font-size:.72rem;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.home-calendar-event:hover,.home-calendar-event:focus-visible{background:#bddbc9}
.home-calendar-agenda{display:none}
.home-calendar-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 16px}
.home-calendar-full{grid-column:1/-1}.home-calendar-form-grid label{margin-top:10px}
.home-calendar-form-grid input,.home-calendar-form-grid textarea{width:100%;border:1px solid #cbd9cf;border-radius:9px;padding:10px;background:#fff;color:var(--ink);font:inherit}
.home-calendar-form-grid textarea{resize:vertical;min-height:95px}.home-calendar-form-grid small{display:block;margin-top:6px;color:var(--muted)}
.home-calendar-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.home-calendar-tag{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#dcece3;padding:5px 6px 5px 10px;font-size:.76rem;font-weight:750}
.home-calendar-tag button{border:0;border-radius:50%;width:20px;height:20px;background:#bfd8c9;color:var(--ink);font-size:1rem;line-height:1}
.home-calendar-autocomplete{position:relative}.home-calendar-options{position:absolute;z-index:5;top:calc(100% + 3px);left:0;right:0;max-height:245px;overflow:auto;border:1px solid #cbd9cf;border-radius:9px;background:#fff;box-shadow:0 10px 25px #09282024}
.home-calendar-option{display:flex;flex-direction:column;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #e8ede8;background:#fff;color:var(--ink);text-align:left;font-weight:700}
.home-calendar-option:hover,.home-calendar-option:focus-visible{background:#e7f1e9}.home-calendar-option small{font-size:.69rem;font-weight:400}
.home-calendar-no-options{margin:0;padding:12px;font-size:.8rem;color:var(--muted)}
.home-calendar-error{min-height:18px;color:#a22f32;font-size:.82rem}.home-calendar-actions{display:flex;justify-content:flex-end}
.home-calendar-details{margin:0}.home-calendar-details>div{padding:11px 0;border-top:1px solid var(--line)}
.home-calendar-details dt{margin-bottom:4px;color:var(--muted);font-size:.73rem;font-weight:800;text-transform:uppercase}.home-calendar-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
@media(max-width:950px){.welcome-schedule{grid-row:1;justify-self:center}}
@media(max-width:620px){.welcome-schedule{width:100%;justify-content:space-between}.home-calendar-dialog,.home-calendar-event-dialog{padding:16px}.home-calendar-form-grid{grid-template-columns:1fr}.home-calendar-nav h3{min-width:0;flex:1;font-size:.96rem}.home-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;overflow:visible}.home-calendar-weekday{font-size:.58rem}.home-calendar-day{min-height:58px;max-height:58px;padding:5px}.home-calendar-day-number{font-size:.7rem}.home-calendar-day.has-events::after{content:"";display:block;width:8px;height:8px;margin:7px auto;border-radius:50%;background:#267553}.home-calendar-day .home-calendar-event{display:none}.home-calendar-agenda{display:grid;gap:7px;margin-top:15px}.home-calendar-agenda-event{display:grid;gap:4px;width:100%;padding:10px 11px;border:1px solid #dce5dd;border-radius:9px;background:#fff;color:var(--ink);text-align:left}.home-calendar-agenda-event span{color:var(--muted);font-size:.78rem}}
