/* PRIO AI — Design System interno do aplicativo. Sem dependências de código da LP. */
/* Identidade: #0b0e12, #17191d, #ff5a00, #ff8a4d, #f9f5f1, #98918d */
/* Manrope nos títulos, DM Sans na UI. Fundo de vidro: translúcido, blur contido, borda 1px. */
:root{--agent-lime:#ff5a00;--agent-violet:#ff8a4d;--agent-deep:#0b0e12;--agent-side:#131313;--agent-frost:#f9f5f1;--agent-separator:#ffffff1a}
.prio-logo{display:flex;gap:10px;align-items:center;white-space:nowrap;min-width:0}
.prio-logo-image{display:block;width:168px;height:auto;max-width:100%}
.prio-logo-symbol{display:none;width:38px;height:38px}
.auth-intro .prio-logo-image{width:224px}
.sidebar{background:linear-gradient(150deg,rgba(26,26,26,.94),rgba(8,9,14,.92) 66%),radial-gradient(circle at 10% 5%,#ff8a4d4a,transparent 48%);backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%);box-shadow:inset -1px 0 #fff1,inset 0 1px #ffffff12,20px 0 65px #00000011}
.sidebar-brand-row{padding-top:3px;padding-bottom:15px}
.sidebar .nav-agent{background:linear-gradient(100deg,#ff8a4d20,#ff5a0010);border:1px solid #ff8a4d48}
.sidebar .nav-agent.active{box-shadow:inset 3px 0 var(--agent-lime),0 9px 26px #00000020}
.sidebar-bottom{padding:14px 4px 4px;display:flex;flex-direction:column;gap:12px}
.sidebar-plan{display:flex;gap:8px;align-items:center;font-size:.64rem;letter-spacing:.11em;color:#b8b8b8}
.sidebar-plan strong{margin-left:auto;letter-spacing:0;color:#d8ffc0;background:#ff5a001c;border:1px solid #ff5a0038;border-radius:100px;padding:5px 10px;font-size:.72rem;font-weight:700}
.sidebar-plan .dot{flex:none}
.profile-card{display:flex;gap:10px;align-items:center;border:1px solid #ffffff18;border-radius:15px;background:linear-gradient(120deg,#ffffff15,#ffffff06);padding:10px 9px;box-shadow:inset 0 1px #ffffff1c;min-width:0}
.profile-avatar{width:38px;height:38px;border-radius:12px;flex:none;display:grid;place-items:center;font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:1rem;color:#141414;background:linear-gradient(135deg,#ff5a00,#ff8a4d);box-shadow:0 4px 14px #ff8a4d2a}
.profile-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.profile-info strong{font-size:.8rem;color:#fbf9ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-info span{font-size:.68rem;color:#a7a7a7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-settings{width:34px;height:34px;flex:none;border:0;border-radius:10px;background:transparent;color:#bdbdbd;font-size:1.05rem}
.profile-settings:hover{background:#ffffff12;color:white}
.sidebar-signout{border:0;background:transparent;color:#b8b8b8;text-align:left;font-size:.75rem;padding:6px 10px;display:flex;justify-content:space-between;align-items:center}
.sidebar-signout:hover{color:#fff}
.app-shell.is-collapsed .prio-logo-image{display:none}
.app-shell.is-collapsed .prio-logo-symbol{display:block}
.app-shell.is-collapsed .sidebar-bottom{display:flex;gap:10px;padding:8px 0}
.app-shell.is-collapsed .sidebar-plan{display:none}
.app-shell.is-collapsed .profile-card{padding:6px;justify-content:center}
.app-shell.is-collapsed .profile-info,.app-shell.is-collapsed .profile-settings,.app-shell.is-collapsed .sidebar-signout{display:none}
.app-shell.is-collapsed .profile-avatar{height:36px;width:36px}
.app-shell.is-collapsed .sidebar .brand{font-size:inherit}
.app-shell.is-collapsed .sidebar-brand-row{align-items:center}
html[data-theme=light] .agent-stage{--agent-bg:#f8f6fd;--agent-text:#202020;--agent-muted:#6f6f6f;--agent-panel:#fff;--agent-border:#e9e4f1}
html[data-theme=dark] .agent-stage{--agent-bg:#0a090e;--agent-text:#faf8ff;--agent-muted:#aaa3a0;--agent-panel:#17131e;--agent-border:#363636}
.agent-stage{--agent-bg:#0a090e;--agent-text:#faf8ff;--agent-muted:#aaa3a0;--agent-panel:#17131e;--agent-border:#363636;min-height:calc(100dvh - 70px);max-width:1100px;margin:0 auto;display:flex;flex-direction:column;color:var(--agent-text);isolation:isolate;position:relative}
#module-screen:has(.agent-stage){max-width:none;padding:0 max(20px,4vw);min-height:calc(100dvh - 70px);background:var(--agent-bg)}
.agent-stage::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse 400px 330px at 52% 37%,#ff8a4d0b,transparent 75%);pointer-events:none}
.agent-status{font-size:.69rem;letter-spacing:.13em;display:flex;align-items:center;gap:10px;color:var(--agent-muted);padding:25px 0 0;font-weight:700}
.agent-status i{width:8px;height:8px;display:inline-block;border-radius:50%;background:var(--agent-lime);box-shadow:0 0 15px #ff5a0080}
.agent-status small{margin-left:auto;color:var(--agent-muted);border:1px solid var(--agent-border);border-radius:50px;padding:5px 10px;font-size:.65rem;letter-spacing:0}
.agent-scroll{flex:1;min-height:240px;max-height:calc(100dvh - 370px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px 2px 24px;display:flex;flex-direction:column}
.agent-welcome{margin:auto auto 0;max-width:730px;text-align:center;padding:40px 12px 24px}
.agent-orb{width:82px;height:82px;margin:0 auto 30px;display:grid;place-items:center;border-radius:25px;color:#dfdfdf;background:radial-gradient(circle at 26% 18%,#c4c4c487,#ff8a4d1f 44%,#151515 75%);border:1px solid #ff8a4d45;box-shadow:inset 1px 1px #ffffff60,0 15px 60px #ff8a4d22;transform:rotate(-7deg)}
.agent-orb img{display:block;width:54px;height:54px;filter:drop-shadow(0 6px 10px #09061155);animation:prio-orb 5s ease-in-out infinite}
.agent-kicker{color:var(--agent-violet);letter-spacing:.16em;font-size:.68rem;font-weight:800}
.agent-welcome h1{max-width:780px;margin:12px 0;font-size:clamp(1.75rem,3.5vw,3rem);line-height:1.25;letter-spacing:-.047em;color:var(--agent-text)}
.agent-welcome h1 em{color:var(--agent-lime);font-style:normal}
.agent-welcome>p:not(.agent-kicker){color:var(--agent-muted);line-height:1.65}
.agent-welcome .agent-limit{font-size:.75rem;opacity:.85;max-width:530px;margin:18px auto 0}
.agent-messages{display:flex;flex-direction:column;gap:22px;margin:auto 0 0;padding:20px 0 0}
.agent-message{display:flex;gap:12px;align-items:flex-start;max-width:85%}
.agent-message.user{margin-left:auto;flex-direction:row-reverse}
.agent-message-icon{flex:none;width:31px;height:31px;border:1px solid var(--agent-border);border-radius:11px;display:grid;place-items:center;color:var(--agent-lime);background:var(--agent-panel)}
.agent-message.user .agent-message-icon{color:var(--agent-violet)}
.agent-message-body{border:1px solid var(--agent-border);background:var(--agent-panel);padding:13px 17px;border-radius:17px;min-width:0}
.agent-message.user .agent-message-body{background:linear-gradient(135deg,#ff8a4d18,#ff5a0010)}
.agent-message-body p{white-space:pre-wrap;line-height:1.65;margin:0;color:var(--agent-text);overflow-wrap:anywhere}
.agent-report-card{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding:14px 16px;border:1px solid var(--agent-border);border-radius:13px;background:var(--agent-panel)}
.agent-report-card strong{color:var(--agent-text);font-size:.96rem}
.agent-report-card small{color:var(--agent-muted);font-size:.8rem}
.agent-finance-preview{display:grid;gap:6px;margin-top:12px;padding:12px 14px;border:1px solid var(--agent-border);border-radius:12px}
.agent-finance-preview p{font-size:.84rem;line-height:1.4}
.agent-finance-preview small{color:var(--agent-muted)}
.agent-confirm{margin-top:16px;background:var(--agent-lime);color:#172015;border:0;border-radius:11px;padding:11px 16px;font-weight:700}
.agent-confirm:disabled{opacity:.5}
.agent-success{display:block;margin-top:12px;color:var(--agent-lime)}
.agent-thinking{display:flex;align-items:center;gap:11px;padding:22px 0;color:var(--agent-muted);font-size:.87rem}
.agent-thinking[hidden]{display:none}
.agent-thinking b{display:grid;place-items:center;border-radius:11px;width:32px;height:32px;background:#ff8a4d26;color:#b8f781;animation:prio-orb 2.5s linear infinite}
.agent-thinking-dots{display:flex;gap:4px}
.agent-thinking-dots i{width:5px;height:5px;border-radius:50%;background:var(--agent-violet);animation:prio-dot 1s ease-in-out infinite}
.agent-thinking-dots i:nth-child(2){animation-delay:.15s}.agent-thinking-dots i:nth-child(3){animation-delay:.3s}
.agent-bottom{margin:auto auto 0;width:100%;max-width:790px;padding:5px 0 23px}
.agent-prompts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 17px}
.agent-prompts button{border:1px solid var(--agent-border);border-radius:50px;color:var(--agent-text);background:var(--agent-panel);padding:10px 15px;font-size:.77rem}
.agent-prompts button:hover{border-color:#ff5a0095;background:#ff5a0010}
.agent-composer{border:1px solid var(--agent-border);border-radius:22px;background:linear-gradient(145deg,#ffffff07,transparent),var(--agent-panel);padding:17px;box-shadow:0 16px 55px #00000017,inset 0 1px #ffffff16}
.agent-composer textarea{border:0!important;background:transparent!important;color:var(--agent-text)!important;box-shadow:none!important;outline:none!important;min-height:60px;max-height:160px;resize:none;width:100%;padding:6px;font-size:.95rem;line-height:1.6}
.agent-composer textarea::placeholder{color:var(--agent-muted)}
.agent-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:12px}
.agent-tools{display:flex;gap:7px;align-items:center}
.agent-tools button{border:1px solid var(--agent-border);border-radius:11px;background:#ff8a4d0b;color:var(--agent-text);padding:10px 13px;min-height:41px}
.agent-tools button:hover{border-color:var(--agent-violet)}
.agent-tools #agent-attach{font-size:1.3rem;line-height:1}
.agent-send{min-height:42px;border-radius:12px;border:0;padding:9px 16px;background:var(--agent-lime);color:#221d1a;font-weight:800}
.agent-send span{font-size:1.15rem;margin-left:8px}
.agent-send:disabled{background:var(--agent-border);color:var(--agent-muted);cursor:not-allowed}
.agent-files{display:flex;gap:8px;flex-wrap:wrap}
.agent-file-chip{display:inline-flex;align-items:center;gap:7px;background:#ff8a4d1c;color:var(--agent-text);padding:7px 10px;border-radius:11px;font-size:.72rem;max-width:100%;overflow-wrap:anywhere}
.agent-file-chip button{background:transparent;color:inherit;border:0;font-size:1.1rem}
.agent-note{color:var(--agent-muted);text-align:center;font-size:.7rem;margin:12px 0 0}
.agent-command-menu{margin-top:10px;border:1px solid var(--agent-border);border-radius:14px;background:var(--agent-panel);padding:7px;box-shadow:0 14px 38px #0003}
.agent-command-menu[hidden]{display:none}
.agent-command{background:transparent;border:0;color:var(--agent-text);display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 13px;border-radius:8px}
.agent-command:hover{background:#ff8a4d18}.agent-command strong{font-size:.85rem}.agent-command small{color:var(--agent-muted);font-size:.72rem}
@keyframes prio-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}45%{opacity:1;transform:translateY(-4px)}}
@keyframes prio-orb{0%,100%{transform:rotate(-7deg) scale(1)}50%{transform:rotate(7deg) scale(1.04)}}
@media(max-width:900px){
 .app-shell.is-collapsed .prio-logo-image{display:block;width:168px}.app-shell.is-collapsed .prio-logo-symbol{display:none}
 .app-shell.is-collapsed .sidebar-bottom{padding:14px 4px 4px}
 .app-shell.is-collapsed .sidebar-plan,.app-shell.is-collapsed .profile-info,.app-shell.is-collapsed .profile-settings,.app-shell.is-collapsed .sidebar-signout{display:flex}
 .agent-stage{min-height:calc(100dvh - 68px)}.agent-scroll{max-height:none;min-height:200px}
 .agent-bottom{padding-bottom:15px}
}
@media(max-width:600px){
 .agent-stage{min-height:calc(100dvh - 68px)}
 .agent-status{padding:16px 0 0;gap:6px;letter-spacing:0;font-size:.65rem}
 .agent-status small{font-size:.59rem}
 .agent-welcome{padding:45px 0 20px}
 .agent-welcome h1{font-size:1.7rem}.agent-prompts{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
 .agent-prompts button{white-space:nowrap}.agent-composer{padding:12px;border-radius:17px}
 .agent-tools #agent-commands span{display:none}
 .agent-message{max-width:95%}
 .profile-info{display:flex}
}
@media(prefers-reduced-motion:reduce){.agent-orb img,.agent-thinking b,.agent-thinking-dots i{animation:none!important}}

/* PRIO Agent v2.1: onboarding explicito, floating assistant e acabamento nativo. */
.theme-icons{display:flex;align-items:center;gap:3px;border:1px solid var(--border-ui);border-radius:13px;padding:4px;background:color-mix(in srgb,var(--bg-panel) 86%,var(--bg-subtle));box-shadow:inset 0 1px #ffffff09}
.theme-icon{width:36px;height:36px;display:grid;place-items:center;border:0!important;border-radius:9px;background:transparent!important;color:var(--fg-muted)!important;transition:background .15s,color .15s,box-shadow .15s;min-width:36px;min-height:36px;padding:7px}
.theme-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.theme-icon[aria-pressed="true"]{background:var(--bg-subtle)!important;color:var(--fg-main)!important;box-shadow:0 2px 9px #00000012}
html[data-theme=dark] .theme-icon[aria-pressed="true"]{background:#303030!important;color:var(--prio-lime)!important}
.theme-icon:hover{color:var(--fg-main)!important}
#onboard-screen.onboard{max-width:760px!important;margin-inline:auto;padding-top:clamp(28px,5vh,64px)!important;padding-bottom:55px!important}
.setup-orb{width:70px;height:70px;display:grid;place-items:center;background:linear-gradient(125deg,#ff8a4d25,#ff5a0016);border:1px solid #ff8a4d44;border-radius:22px;box-shadow:0 14px 35px #ff8a4d12, inset 1px 1px #ffffff25;margin-bottom:23px;transform:rotate(-5deg)}
.setup-orb img{transform:rotate(5deg)}
#onboard-screen .eyebrow{font-weight:800;letter-spacing:.14em}
#onboard-screen h1{font-size:clamp(2rem,4vw,3.15rem);letter-spacing:-.05em;line-height:1.13;margin:12px 0 16px}
#onboard-description{max-width:600px;color:var(--fg-muted);line-height:1.72;font-size:1rem;margin-bottom:26px}
#onboard-screen .setup-card{border:1px solid var(--border-ui);padding:24px;border-radius:22px;background:var(--bg-panel);box-shadow:0 18px 50px #1717170e;display:flex;flex-direction:column;gap:14px}
#onboard-screen .setup-card[hidden]{display:none}
#onboard-screen .setup-card label{font-weight:700;font-size:.9rem}
#onboard-screen .setup-card input{font-size:.96rem;min-height:52px}
#onboard-screen .setup-card button{align-self:flex-start;min-width:190px}
#onboard-screen .setup-invite{border-radius:20px;margin-top:26px;background:color-mix(in srgb,var(--bg-panel),var(--bg-subtle) 30%);box-shadow:none}
#onboard-screen .setup-invite h2{font-size:1.04rem;margin-bottom:10px}
#onboard-screen .setup-invite p{margin:0 0 12px}
#onboard-screen .setup-invite button{justify-self:start}
#onboard-screen .muted{margin-top:17px;font-size:.76rem}
#onboard-screen .setup-alert{border:1px solid #e09b9b66;border-radius:15px;background:#cc536116;color:var(--fg-main);padding:15px 18px;line-height:1.6;margin-bottom:15px}
.setup-retry{margin:4px 0 25px;max-width:max-content}
.needs-setup .sidebar nav{opacity:.37;pointer-events:none}
.needs-setup .sidebar .nav{cursor:not-allowed}
.needs-setup .topbar-search{opacity:.4}
.agent-floating{position:fixed;z-index:39;right:clamp(17px,2.4vw,36px);bottom:clamp(17px,2vw,28px);display:flex;flex-direction:column;align-items:flex-end;gap:12px;width:min(370px,calc(100vw - 30px));pointer-events:none}
.agent-floating>*{pointer-events:auto}
.agent-floating-trigger{display:flex;gap:10px;align-items:center;justify-content:center;background:linear-gradient(130deg,#ff5a00,#d8ffac);border:1px solid #f1ffc3;border-radius:24px;padding:13px 18px;color:#152215;font-family:var(--font-body);font-weight:750;font-size:.85rem;box-shadow:0 14px 34px #0004,0 0 0 4px #ff5a0014;min-height:55px}
.agent-floating-trigger:hover{transform:translateY(-2px);box-shadow:0 18px 45px #0005,0 0 0 5px #ff5a0020}
.agent-floating-trigger img{height:28px;width:28px;background:#1f1f1f;border-radius:9px;padding:4px}
.agent-floating-panel{width:100%;border-radius:22px;background:var(--bg-panel);color:var(--fg-main);border:1px solid var(--border-ui);box-shadow:0 22px 85px #0b0e1266;overflow:hidden;animation:prio-panel-in .18s ease-out}
.agent-floating-panel[hidden]{display:none}
.agent-floating-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px 11px;border-bottom:1px solid var(--border-ui)}
.agent-floating-head span{display:flex;align-items:center;gap:9px}
.agent-floating-head img{border-radius:9px;background:var(--prio-charcoal);padding:4px}
.agent-floating-head strong{font-size:.91rem}
.agent-floating-head button{border:1px solid var(--border-ui);color:var(--fg-muted);background:transparent;border-radius:10px;width:32px;height:32px;font-size:1.2rem}
.agent-floating-panel>p{font-size:.83rem;color:var(--fg-muted);line-height:1.6;margin:15px 17px}
#agent-floating-form{display:flex;flex-direction:column;gap:12px;padding:0 17px 17px}
#agent-floating-text{width:100%;resize:vertical;min-height:90px;font-size:.9rem;line-height:1.5;padding:14px}
#agent-floating-form button{display:flex;justify-content:space-between;align-items:center;gap:12px}
@keyframes prio-panel-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.agent-floating{right:14px;bottom:14px;z-index:50}.agent-floating-panel{max-height:70dvh;overflow-y:auto}}
@media(max-width:560px){.topbar-right{gap:7px}.theme-icon{width:32px;min-width:32px;min-height:34px;height:34px}.theme-icons{padding:3px}.topbar-search{width:38px;min-width:38px}#onboard-screen .setup-card{padding:18px}#onboard-screen .setup-invite{padding:18px}.agent-floating-trigger{padding:12px 14px;border-radius:18px;min-height:52px}}
@media(prefers-reduced-motion:reduce){.agent-floating-panel{animation:none}.agent-floating-trigger:hover{transform:none}}

/* O emblema do assistente usa a identidade PRIO; verde fica nas ações, roxo nos textos claros. */
.agent-thinking b img{width:24px;height:24px;display:block}
html[data-theme="light"] :is(.agent-welcome h1 em,.agent-message-icon,.agent-success){color:var(--prio-purple-strong)}
html[data-theme="light"] .agent-thinking b{color:var(--prio-purple-strong)}
html[data-theme="dark"] .agent-stage{--agent-panel:rgba(28,28,28,.74);--agent-border:rgba(168,168,168,.22)}
html[data-theme="dark"] :is(.agent-composer,.agent-message-body,.agent-prompts button,.agent-command-menu,.agent-floating-panel){
 background:rgba(28,28,28,.70);
 border-color:rgba(168,168,168,.22);
 backdrop-filter:blur(20px) saturate(135%);
 -webkit-backdrop-filter:blur(20px) saturate(135%);
 box-shadow:inset 0 1px rgba(255,255,255,.04),0 14px 38px #00000021;
}
html[data-theme="dark"] .agent-message.user .agent-message-body{background:linear-gradient(130deg,rgba(255,138,77,.27),rgba(28,28,28,.64))}
html[data-theme="dark"] .theme-icons{background:rgba(29,29,29,.68);border-color:rgba(168,168,168,.23);backdrop-filter:blur(16px)}
html[data-theme="light"] .theme-icon[aria-pressed="true"]{color:var(--prio-purple-strong)!important}



/* PRIO AI | Menu contextual de arquivos e fluxo neon sutil */
.agent-bottom{position:relative}
.agent-attach-menu{position:absolute;z-index:20;left:8px;bottom:130px;width:min(355px,calc(100% - 16px));padding:9px;border:1px solid var(--agent-border);border-radius:17px;background:var(--agent-panel);box-shadow:0 20px 60px #0005;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.agent-attach-menu[hidden]{display:none}
.agent-attach-menu button{width:100%;display:flex;flex-direction:column;text-align:left;gap:4px;border:0;border-radius:11px;background:transparent;color:var(--agent-text);padding:12px}
.agent-attach-menu button:hover,.agent-attach-menu button:focus-visible{background:rgba(255,138,77,.13)}
.agent-attach-menu strong{font-size:.84rem}
.agent-attach-menu small{color:var(--agent-muted);font-size:.72rem;line-height:1.4}
.agent-composer{position:relative;isolation:isolate}
.agent-composer::before{content:"";position:absolute;inset:-1.5px;border-radius:inherit;padding:1.5px;pointer-events:none;background:linear-gradient(100deg,transparent 14%,rgba(186,255,101,.58) 30%,rgba(255,138,77,.8) 50%,transparent 70%) 0 0/250% 100%;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;animation:prio-neon-flow 9s linear infinite;opacity:.7}
.agent-composer:focus-within::before{opacity:1;animation-duration:6s}
@keyframes prio-neon-flow{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(max-width:600px){.agent-attach-menu{bottom:116px}}
@media(prefers-reduced-motion:reduce){.agent-composer::before{animation:none;opacity:.35}}

/* PRIO UX refinement: progressive disclosure + independent scrolling. */
.module-actionbar,.task-create-bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0 25px}
.module-actionbar .primary,.task-create-bar .primary{border-radius:13px;padding-inline:20px}
.module-create-dialog,.module-detail-dialog{width:min(560px,calc(100vw - 30px));max-width:95vw;max-height:min(86dvh,740px);padding:27px;border:1px solid var(--border-ui);border-radius:22px;background:var(--bg-panel);color:var(--fg-main);box-shadow:0 28px 100px #05040b77;overflow-y:auto}
.module-create-dialog::backdrop,.module-detail-dialog::backdrop{background:rgba(7,5,15,.66);backdrop-filter:blur(8px)}
.module-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.module-dialog-heading h2{margin:0;font-size:1.2rem;letter-spacing:-.025em}
.module-dialog-heading button{height:35px;min-height:35px;width:35px;padding:0;font-size:1.2rem;border-radius:11px}
.module-create-dialog .module-form,.module-create-dialog #task-form{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.module-create-dialog #task-form textarea,.module-create-dialog .module-form textarea{width:100%;min-height:104px}
.module-create-dialog #task-form .composer-actions{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.module-create-dialog #task-form .form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.module-create-dialog #task-form .form-fields label{display:flex;flex-direction:column;gap:6px}
.module-create-dialog #task-form button[type=submit]{align-self:flex-end}
.module-create-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.module-create-dialog input[type=file]{width:100%;padding:12px;border:1px dashed var(--border-ui);border-radius:13px}
.module-detail-dialog .task-meta{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0}
.module-detail-dialog .task-description{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}
.note-detail-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;max-height:55dvh;overflow:auto}
#module-content .note-card-grid,#module-content .collection-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:14px;max-height:min(62dvh,650px);overflow-y:auto;padding:4px 4px 12px;scrollbar-width:thin}
#module-content .note-card-grid .module-item,#module-content .collection-card-grid .module-item{margin:0;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-height:175px;padding:20px;border-radius:18px;transition:transform .15s,box-shadow .15s}
#module-content .note-card-grid .module-item:hover,#module-content .collection-card-grid .module-item:hover{transform:translateY(-2px);box-shadow:0 16px 35px #1a1a1a14}
#module-content .note-card-grid .module-item p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.note-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.note-actions button{min-height:34px;padding:7px 12px}
.module-scroll-list,.task-scroll-list{max-height:min(53dvh,570px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 7px 10px 3px}
.kanban-board{max-height:min(66dvh,740px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.kanban-column{min-width:0;max-height:65dvh;overflow-y:auto;scrollbar-width:thin}
.module-integrations-shortcut{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:20px 0}
.module-text-link{color:var(--prio-purple-strong);font-size:.84rem;font-weight:700;text-decoration:none}
.module-text-link:hover{text-decoration:underline}
@keyframes prio-mic-pulse{50%{box-shadow:0 0 0 8px #e9a7bb07}}
#agent-send.agent-send{border-radius:14px;background:var(--prio-lime);color:#221d1a;border:1px solid #d6f8ad;padding:10px 19px;box-shadow:0 5px 16px #ff5a0025}
#agent-send.agent-send:disabled{border:1px solid var(--agent-border);background:color-mix(in srgb,var(--agent-panel),var(--agent-border) 28%);color:var(--agent-muted);box-shadow:none}
.agent-floating-greeting{display:flex;align-items:center;gap:10px;max-width:100%;border:1px solid var(--border-ui);border-radius:16px;background:var(--bg-panel);color:var(--fg-main);padding:10px 12px;font-size:.83rem;box-shadow:0 8px 34px #0b0b0b28;animation:prio-panel-in .25s ease-out}
.agent-floating-greeting button{width:24px;height:24px;min-height:24px;padding:0;border:0;background:transparent;color:var(--fg-muted);font-size:1rem}
.agent-floating-head-actions{display:flex;align-items:center;gap:6px}
.agent-floating-head-actions button[aria-pressed=true]{background:#ff5a0025;color:var(--prio-purple-strong)}
#prio-boot-screen img,.prio-loading-mark img{animation:prio-logo-loading 2.3s ease-in-out infinite;transform-origin:50% 50%;filter:drop-shadow(0 0 8px #ff8a4d44)}
@keyframes prio-logo-loading{0%,100%{transform:scale(.95) rotate(-5deg);opacity:.8}50%{transform:scale(1.12) rotate(7deg);opacity:1}}
.sidebar .nav{border-radius:13px}
.sidebar nav{scrollbar-width:thin}
.sidebar .nav:hover{transform:translateX(2px)}
html[data-theme=dark] :is(.module-create-dialog,.module-detail-dialog){background:rgba(27,27,27,.97);border-color:rgba(168,168,168,.23)}
@media(max-width:600px){.module-create-dialog,.module-detail-dialog{padding:18px;border-radius:18px}.module-create-dialog #task-form .form-fields{grid-template-columns:1fr}.module-actionbar,.task-create-bar{justify-content:stretch}.module-actionbar .primary,.task-create-bar .primary{width:100%}}
@media(prefers-reduced-motion:reduce){#prio-boot-screen img,.prio-loading-mark img, .agent-voice-button.is-recording{animation:none!important}.sidebar .nav:hover{transform:none}}

/* Scroll local em listagens operacionais, sem alterar os componentes exclusivos de Finanças. */
#module-content #module-list:not(.note-card-grid):not(.collection-card-grid),#checklist-history{max-height:min(55dvh,570px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 5px 8px 2px}

/* Elementos controlados pelo JS não podem ser exibidos quando hidden=true. */
.agent-floating[hidden],.agent-floating-greeting[hidden],#task-create-open[hidden],#task-view-edit[hidden],#task-list[hidden],#kanban-board[hidden]{display:none!important}

/* Conversas residem no sidebar global — a área do chat permanece livre. */
.sidebar nav{flex:0 1 auto;max-height:min(53dvh,580px);min-height:0;overflow-y:auto}
.sidebar-conversations{display:flex;flex:1 1 150px;flex-direction:column;min-height:120px;border-top:1px solid var(--sidebar-line);padding:12px 2px 0;overflow:hidden}
.sidebar-conversations[hidden]{display:none!important}
.sidebar-conversations-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 4px 8px}
#sidebar-history-toggle{display:flex;align-items:center;gap:7px;min-width:0;flex:1;background:transparent;border:0;color:var(--sidebar-fg);font-size:.76rem;letter-spacing:.045em;font-weight:750;padding:7px 3px;border-radius:9px;text-align:left}
#sidebar-history-toggle:hover{background:#ff8a4d18}
#sidebar-history-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}
#sidebar-history-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
.sidebar-new-chat{flex:none;width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--sidebar-line);border-radius:10px;background:#ff8a4d12;color:var(--sidebar-fg);transition:background .2s}
.sidebar-new-chat:hover{background:#ff8a4d2b;color:var(--prio-lime)}
.sidebar-new-chat svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.sidebar-history-list{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#626262 transparent;padding-bottom:10px}
.sidebar-history-list[hidden]{display:none!important}
.sidebar-conversations.is-retracted{flex:0 0 auto;min-height:0;padding-bottom:3px}
.sidebar-history-period{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;background:transparent;border:0;color:var(--sidebar-muted);font-weight:650;font-size:.68rem;letter-spacing:.045em;padding:12px 10px 6px;text-align:left}
.sidebar-history-period:hover{color:var(--sidebar-fg)}
.sidebar-history-period .sidebar-history-arrow{font-size:1rem;line-height:1}
.sidebar-history-period[aria-expanded=false] .sidebar-history-arrow{transform:rotate(-90deg)}
.sidebar-history-period-items[hidden]{display:none!important}
.sidebar-history-row{display:flex;align-items:center;gap:2px;min-width:0;border-radius:10px;transition:background .16s}
.sidebar-history-row:hover{background:#ff8a4d18}
.sidebar-history-entry{flex:1;min-width:0;background:transparent;border:0;color:var(--sidebar-muted);font-size:.75rem;font-weight:550;text-align:left;padding:9px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9px}
.sidebar-history-entry:hover,.sidebar-history-entry.is-active{color:var(--sidebar-fg);background:#ff8a4d19}
.sidebar-history-entry.is-active{font-weight:750;border-left:2px solid var(--prio-lime);padding-left:8px}
.sidebar-history-remove{flex:none;border:0;border-radius:8px;background:transparent;color:var(--sidebar-muted);font-size:1rem;padding:3px 9px;opacity:0}
.sidebar-history-row:hover .sidebar-history-remove,.sidebar-history-remove:focus-visible{opacity:1}
.sidebar-history-remove:hover{background:#ff8a4d30;color:#fff}
.sidebar-history-empty{font-size:.72rem;color:var(--sidebar-muted);padding:7px 10px;line-height:1.55}
.app-shell.is-collapsed .sidebar-conversations{flex:0 0 auto;min-height:0;align-items:center}
.app-shell.is-collapsed .sidebar-conversations-heading{width:100%;justify-content:center;padding-inline:0}
.app-shell.is-collapsed #sidebar-history-toggle,.app-shell.is-collapsed .sidebar-history-list{display:none!important}
.app-shell.is-collapsed .sidebar-new-chat{width:39px;height:39px}
#module-screen:has(.agent-stage){padding:0 max(20px,4vw)}
.agent-stage{max-width:920px;margin:0 auto}
.agent-composer-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
.agent-voice-button{flex:none;width:44px;height:44px;min-width:44px;display:grid;place-items:center;border-radius:14px;background:var(--agent-panel);border:1px solid var(--agent-border);color:var(--agent-text);transition:background .2s,color .2s,box-shadow .2s,border-color .2s}
.agent-voice-button svg{height:21px;width:21px;fill:none;stroke:currentColor}
.agent-voice-button:hover{border-color:var(--agent-violet);color:var(--agent-violet)}
.agent-voice-button.is-recording{border-color:var(--prio-lime);color:var(--prio-lime);background:#ff5a0018;box-shadow:0 0 0 4px #ff5a000e,0 0 25px #ff5a002a;animation:prio-mic-pulse 1.6s ease-in-out infinite}
.agent-voice-button.has-error{border-color:#cb6879;color:#e89bab}
.agent-voice-feedback{display:flex;align-items:center;gap:9px;max-width:max-content;color:var(--agent-muted);border-radius:12px;border:1px solid var(--agent-border);background:#ff8a4d0c;margin:1px 4px 8px;padding:7px 10px;font-size:.74rem;line-height:1.35}
.agent-voice-feedback[hidden]{display:none!important}
.agent-voice-live-dot{width:7px;height:7px;border-radius:50%;background:var(--prio-lime);box-shadow:0 0 0 3px #ff5a001c;flex:none}
.agent-voice-feedback[data-state=error] .agent-voice-live-dot{background:#d05f78;box-shadow:0 0 0 3px #d05f781c}
.agent-voice-bars{display:flex;align-items:center;justify-content:center;gap:3px;height:19px;margin-left:5px}
.agent-voice-bars i{display:block;width:3px;height:5px;background:var(--prio-lime);border-radius:5px;animation:prio-voice-bars .84s ease-in-out infinite alternate}
.agent-voice-bars i:nth-child(2){animation-delay:-.55s}
.agent-voice-bars i:nth-child(3){animation-delay:-.16s}
.agent-voice-bars i:nth-child(4){animation-delay:-.4s}
.agent-voice-bars i:nth-child(5){animation-delay:-.65s}
.agent-voice-feedback[data-state=processing] .agent-voice-bars i{animation-duration:1.2s;opacity:.6}
.agent-voice-feedback[data-state=error] .agent-voice-bars{display:none}
@keyframes prio-voice-bars{0%,100%{height:4px;opacity:.5}50%{height:17px;opacity:1}}
@media(max-width:900px){.sidebar nav{max-height:47dvh}.sidebar-conversations{min-height:95px}.sidebar-history-remove{opacity:1}}
@media(max-height:690px){.sidebar nav{max-height:43dvh}.sidebar-conversations{min-height:76px}.sidebar-bottom{padding-block:8px}}
@media(max-width:600px){.agent-composer-actions{gap:6px}.agent-voice-button{width:42px;height:42px;min-width:42px}}
@media(prefers-reduced-motion:reduce){.agent-voice-button.is-recording,.agent-voice-bars i{animation:none!important}.sidebar-conversations .history-chevron{transition:none}}

/* PRIO AI: controle de áudio discreto e sempre acessível, sem pop-ups de consentimento extras. */
#prio-sound-toggle{display:grid;place-items:center;flex:none;min-height:40px;min-width:40px;height:40px;width:40px;border-radius:12px;border:1px solid var(--border-ui);background:color-mix(in srgb,var(--bg-panel) 86%,var(--bg-subtle));color:var(--fg-muted);padding:8px;transition:color .15s,background .15s,border-color .15s}
#prio-sound-toggle:hover{border-color:var(--prio-purple);color:var(--fg-main)}
#prio-sound-toggle[aria-pressed=true]{color:var(--prio-purple-strong)}
html[data-theme=dark] #prio-sound-toggle[aria-pressed=true]{color:var(--prio-lime);background:rgba(186,255,101,.08);border-color:rgba(186,255,101,.28)}
#prio-sound-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#prio-sound-toggle[aria-pressed=true] .prio-sound-off,#prio-sound-toggle[aria-pressed=false] .prio-sound-on{display:none}
@media(max-width:560px){#prio-sound-toggle{min-width:35px;width:35px;min-height:35px;height:35px;border-radius:10px;padding:7px}#prio-sound-toggle svg{width:18px;height:18px}}


/* PRIO AI | Histórico em acordeão: referências de navegação, identidade PRIO preservada. */
.sidebar nav{max-height:min(35dvh,350px);flex:0 1 auto}
.sidebar-conversations{flex:1 1 240px;min-height:180px;padding-top:8px;gap:0}
.sidebar-conversations.is-retracted{flex:0 0 auto;min-height:0}
.sidebar-conversations-heading{padding:0 2px 7px;gap:4px}
#sidebar-history-toggle{font-size:.79rem;letter-spacing:.015em;padding:9px 6px;min-height:36px}
#sidebar-history-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-history-content{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}
.sidebar-history-content[hidden]{display:none!important}

.sidebar-history-list{flex:1;min-height:0;overflow-y:auto;padding:0 2px 12px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#6e6e6e transparent}
.sidebar-history-group+ .sidebar-history-group{margin-top:3px}
.sidebar-history-period{justify-content:flex-start;gap:6px;min-height:35px;padding:9px 8px 6px;font-size:.71rem;letter-spacing:0}
.sidebar-history-period-title{min-width:0;flex:1;font-weight:680}
.sidebar-history-count{flex:none;font-size:.66rem;line-height:1.2;border-radius:8px;background:#ff8a4d13;color:var(--sidebar-muted);padding:2px 6px}
.sidebar-history-period .sidebar-history-arrow{display:inline-flex;justify-content:center;align-items:center;width:15px;transform:rotate(0deg);transition:transform .16s}
.sidebar-history-period[aria-expanded=false] .sidebar-history-arrow{transform:rotate(-90deg)}
.sidebar-history-row{min-height:37px;gap:1px}
.sidebar-history-entry{font-size:.79rem;line-height:1.3;padding:10px 9px;color:var(--sidebar-fg);font-weight:530}
.sidebar-history-entry.is-active{background:#ff8a4d28;border-left:3px solid var(--prio-lime);padding-left:6px}
.sidebar-history-remove{min-width:28px;min-height:30px;padding:3px 6px}
.sidebar-history-empty{font-size:.76rem;margin:8px 3px;padding:8px 7px}
.sidebar-whatsapp{flex:none;border-top:1px solid var(--sidebar-line);padding:5px 4px 3px}
#sidebar-whatsapp-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:39px;padding:7px 5px;border:0;border-radius:10px;background:transparent;color:var(--sidebar-muted);text-align:left;font-size:.77rem;font-weight:680}
#sidebar-whatsapp-toggle:hover{color:var(--sidebar-fg);background:#ff8a4d16}
#sidebar-whatsapp-toggle svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2;transition:transform .16s}
#sidebar-whatsapp-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
#sidebar-whatsapp-toggle span{flex:1}
#sidebar-whatsapp-toggle small{font-size:.61rem;color:var(--sidebar-muted);border:1px solid #ff8a4d2b;border-radius:100px;padding:3px 7px;white-space:nowrap}
.sidebar-whatsapp-content{padding:2px 10px 8px}
.sidebar-whatsapp-content[hidden]{display:none!important}
.sidebar-whatsapp-content p{font-size:.73rem;line-height:1.55;color:var(--sidebar-muted);margin:2px 0}
.sidebar.history-focused nav{max-height:min(17dvh,145px)}
.sidebar.history-focused .sidebar-conversations{min-height:240px}
.sidebar-bottom{flex:none}
 .app-shell.is-collapsed .sidebar-history-content,.app-shell.is-collapsed .sidebar-whatsapp{display:none!important}
@media(max-width:900px){
 .sidebar nav{max-height:min(37dvh,320px)}
 .sidebar-conversations{min-height:160px}
 .sidebar-history-remove{opacity:1}
 .app-shell.is-collapsed .sidebar-conversations{flex:1 1 240px;min-height:160px;align-items:stretch}
 .app-shell.is-collapsed .sidebar-conversations-heading{justify-content:space-between}
 .app-shell.is-collapsed #sidebar-history-toggle{display:flex!important}
 .app-shell.is-collapsed .sidebar-history-list{display:block!important}
 .app-shell.is-collapsed .sidebar-history-content{display:flex!important}
 .app-shell.is-collapsed  .app-shell.is-collapsed .sidebar-whatsapp{display:block!important}
 .app-shell.is-collapsed .sidebar-new-chat{width:34px;height:34px}
}
.needs-setup .sidebar-whatsapp{display:none}
@media(max-height:690px){
 .sidebar nav{max-height:min(30dvh,235px)}
 .sidebar.history-focused nav{max-height:100px}
 .sidebar.history-focused .sidebar-conversations{min-height:165px}
 .sidebar-conversations{min-height:115px}
 .sidebar-bottom{gap:7px}
}
@media(prefers-reduced-motion:reduce){.sidebar-history-period .sidebar-history-arrow,#sidebar-whatsapp-toggle svg{transition:none}}

/* Histórico compacto como chat: uma linha por conversa, sem poluir o sidebar. */
@media(min-width:901px){.app-shell:not(.is-collapsed){grid-template-columns:278px minmax(0,1fr)}}
.sidebar-history-entry{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;-webkit-line-clamp:unset;line-height:1.35}
.sidebar-history-row{min-height:37px}


/* PRIO AI — Menu Explorar como popover, sem consumir altura do histórico. */
.sidebar-explore-trigger{position:relative}
.sidebar .sidebar-explore-trigger .sidebar-explore-chevron{width:15px;height:15px;margin-left:auto;flex:none;transition:transform .18s;color:var(--sidebar-muted)}
.sidebar .sidebar-explore-trigger[aria-expanded=true] .sidebar-explore-chevron{transform:rotate(90deg);color:var(--prio-lime)}
.sidebar .sidebar-explore-trigger[aria-expanded=true],.sidebar .sidebar-explore-trigger.active{background:#ff8a4d21;border-color:#ff8a4d4d;color:var(--sidebar-fg)}
.sidebar .sidebar-explore-trigger.active>svg:first-child{color:var(--prio-lime)}
.sidebar-explore-panel{position:fixed;z-index:110;left:0;top:0;width:min(298px,calc(100vw - 24px));max-height:min(67dvh,535px);overflow-y:auto;overscroll-behavior:contain;padding:14px;background:rgba(22,22,22,.98);color:#f7f2ff;border:1px solid rgba(255,138,77,.29);border-radius:19px;box-shadow:0 26px 72px rgba(0,0,0,.43),inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%);scrollbar-width:thin;scrollbar-color:#5f5f5f transparent}
.sidebar-explore-panel[hidden]{display:none!important}
.sidebar-explore-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:3px 5px 11px;margin-bottom:5px;border-bottom:1px solid rgba(255,138,77,.2)}
.sidebar-explore-heading>div{display:flex;flex-direction:column;gap:3px}
.sidebar-explore-overline{font-family:Manrope,system-ui,sans-serif;letter-spacing:.12em;font-size:.61rem;font-weight:750;color:var(--prio-lime)}
.sidebar-explore-heading strong{font-size:.95rem;font-weight:760;font-family:Manrope,system-ui,sans-serif}
.sidebar-explore-close{display:grid;place-items:center;flex:none;border:0;border-radius:9px;background:transparent;color:#c3c3c3;font-size:1.35rem;width:30px;height:30px}
.sidebar-explore-close:hover{color:white;background:#ff8a4d27}
.sidebar-explore-grid{display:grid;grid-template-columns:1fr;gap:3px;padding-top:4px}
.sidebar-explore-grid .nav{display:flex;align-items:center;gap:13px;width:100%;min-height:41px;text-align:left;background:transparent;color:#c5c5c5;border:1px solid transparent;border-radius:11px;padding:9px 11px;font-size:.85rem;font-weight:610;transition:background .15s,color .15s,border-color .15s}
.sidebar-explore-grid .nav:hover{background:#ff8a4d22;color:#fff;border-color:#ff8a4d21}
.sidebar-explore-grid .nav.active{background:#ff8a4d26;color:#fff;border-color:#ff8a4d47;box-shadow:inset 3px 0 0 var(--prio-lime)}
.sidebar-explore-grid .nav svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-explore-grid .nav.active svg{color:var(--prio-lime)}
.sidebar-explore-grid .nav:disabled{opacity:.38;cursor:not-allowed}
.sidebar-explore-grid .nav[hidden]{display:none!important}
.app-shell.is-collapsed .sidebar-explore-trigger .sidebar-explore-chevron{display:none}
html[data-theme=light] .sidebar-explore-panel{background:rgba(250,248,255,.985);color:#222222;border-color:#d4d4d4;box-shadow:0 22px 65px #14141433,inset 0 1px 0 #fff}
html[data-theme=light] .sidebar-explore-heading{border-color:#e8e0ef}
html[data-theme=light] .sidebar-explore-overline{color:#ff8a4d}
html[data-theme=light] .sidebar-explore-close{color:#696969}
html[data-theme=light] .sidebar-explore-close:hover{color:#1d1d1d;background:#ff8a4d20}
html[data-theme=light] .sidebar-explore-grid .nav{color:#515151}
html[data-theme=light] .sidebar-explore-grid .nav:hover,html[data-theme=light] .sidebar-explore-grid .nav.active{color:#222222}
html[data-theme=light] .sidebar-explore-grid .nav.active svg{color:#ff8a4d}
@media(max-width:900px){.sidebar-explore-panel{width:min(275px,calc(100vw - 34px));max-height:min(60dvh,490px);padding:11px}.sidebar-explore-grid .nav{min-height:43px}}
@media(prefers-reduced-motion:reduce){.sidebar-explore-grid .nav,.sidebar .sidebar-explore-trigger .sidebar-explore-chevron{transition:none!important}}

/* PRIO MVP: login Google e senha visível (sem descaracterizar a interface). */
.auth-password-field{position:relative;width:100%}
.auth-password-field input{width:100%;padding-right:54px}
.auth-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);height:39px;width:42px;display:grid;place-items:center;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--fg-muted);cursor:pointer}
.auth-password-toggle:hover,.auth-password-toggle[aria-pressed=true]{color:var(--prio-purple-strong);background:#ff8a4d18}
.auth-password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.auth-separator{display:flex;align-items:center;gap:13px;margin:20px 0 13px;color:var(--fg-muted);font-size:.76rem;justify-content:center}
.auth-separator::before,.auth-separator::after{content:'';height:1px;flex:1;background:var(--border-ui)}
.auth-google-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:11px;padding:11px 16px;border-radius:12px;border:1px solid var(--border-ui);background:var(--bg-panel);color:var(--fg-main);font-weight:720;transition:background .15s,border-color .15s}
.auth-google-button:hover{background:color-mix(in srgb,var(--bg-panel) 80%,var(--prio-purple) 20%);border-color:var(--prio-purple)}
.auth-google-button svg{width:22px;height:22px;flex:none}
.auth-google-button:disabled{opacity:.55;cursor:progress}
.agent-conversation-loading{margin:26px auto;text-align:center;color:var(--agent-muted);font-size:.86rem;max-width:470px;padding:11px 16px}


/* P9.3 — chat rápido funcional, discretamente integrado ao layout premium. */
#agent-floating-panel{width:min(420px,calc(100vw - 24px));max-height:min(80vh,720px);display:flex;flex-direction:column;gap:12px}
#agent-floating-panel[hidden]{display:none!important}
.prio-quick-messages{display:flex;flex-direction:column;gap:10px;min-height:110px;max-height:min(42vh,360px);overflow-y:auto;padding:12px;border:1px solid var(--border-ui);border-radius:16px;background:color-mix(in srgb,var(--bg-panel) 90%,var(--bg-subtle))}
.prio-quick-message{max-width:94%;padding:11px 13px;border-radius:14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem;line-height:1.5}
.prio-quick-user{align-self:flex-end;background:color-mix(in srgb,var(--prio-lime) 20%,var(--bg-panel));border:1px solid color-mix(in srgb,var(--prio-lime) 35%,transparent)}
.prio-quick-ai{align-self:flex-start;background:var(--bg-panel);border:1px solid var(--border-ui)}
.prio-quick-pending{color:var(--fg-muted);font-style:italic}
#agent-floating-form button:disabled{opacity:.65;cursor:wait}
#onboard-screen .setup-card h2{font-size:1.15rem;margin:0}
#onboard-screen .setup-card p{line-height:1.6;color:var(--fg-muted);margin:0}
#onboard-screen .setup-card .primary{min-height:46px}
@media(max-width:700px){.prio-quick-messages{max-height:32vh}#agent-floating-panel{max-height:calc(100dvh - 95px)}}
/* P13 — Proposta com renovação e resultado de reunião (Meet verificado). Mesmos tokens do chat; sem estilos inline. */
.agent-proposal-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.agent-proposal-actions .agent-confirm{min-height:44px}
.agent-renew{margin-top:16px;min-height:44px;padding:10px 16px;border-radius:11px;border:1px solid var(--agent-violet);background:transparent;color:var(--agent-text,#f9f5f1);font-weight:700}
.agent-proposal-status,.agent-meet-status{margin:8px 0 0;color:var(--agent-muted,#98918d);font-size:.86rem;min-height:1.2em}
.agent-meet-card{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding:16px;border:1px solid var(--agent-border,#ffffff26);border-radius:14px;background:var(--agent-panel,#ffffff0d);max-width:100%}
.agent-meet-title{color:var(--agent-text,#f9f5f1);font-size:1rem}
.agent-meet-when{margin:0;color:var(--agent-muted,#98918d);font-size:.9rem}
.agent-meet-link{color:var(--agent-lime);font-weight:700;word-break:break-all;text-underline-offset:3px}
.agent-meet-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.agent-meet-action{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 14px;border-radius:11px;border:1px solid var(--agent-border,#ffffff26);background:transparent;color:var(--agent-text,#f9f5f1);font-weight:600;font-size:.88rem;text-decoration:none;cursor:pointer}
.agent-meet-action .prio-svg-icon{width:17px;height:17px;flex:0 0 17px}
.agent-meet-action:hover{border-color:var(--agent-violet)}
:is(.agent-confirm,.agent-renew,.agent-meet-action,.agent-meet-link):focus-visible{outline:2px solid var(--agent-lime);outline-offset:2px}
html[data-theme="light"] :is(.agent-renew,.agent-meet-action,.agent-meet-title){color:#17191d}
html[data-theme="light"] .agent-meet-link{color:var(--prio-purple-strong,#ff8a4d)}
@media (max-width:480px){.agent-meet-actions{flex-direction:column}.agent-meet-action{justify-content:center;width:100%}}
@media (prefers-reduced-motion:reduce){.agent-meet-card{transition:none}}
.agent-copy-buffer{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none}
