/* Vênus, a assistente (web/agente.js): suggestion chips with their cost, the cost line and the confirmation cards. */
.agent-chips{display:flex;gap:8px;padding:6px 20px 10px;overflow-x:auto;scrollbar-width:none}
.agent-chips::-webkit-scrollbar{display:none}
.agent-chip{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:0 0 auto;max-width:260px;padding:9px 12px;border:1px solid var(--edge);border-radius:14px;background:var(--control);color:var(--text);text-align:left;font-weight:500;cursor:pointer}
.agent-chip:hover{border-color:#d8efc255}
.agent-chip-text{font-size:12px;line-height:1.35;white-space:normal}
.agent-chip-cost{font-size:10.5px;color:var(--accent);letter-spacing:.2px}
.agent-cost{margin:0;padding:0 20px 6px;font-size:11.5px;color:var(--muted)}
.agent-consent{margin:0 20px 8px;padding:10px 12px;border-radius:12px;background:#efd5ac14;color:var(--focus);font-size:12px}
.agent-card{margin-top:10px;padding:12px 14px;border:1px solid #d8efc240;border-radius:16px;background:#d8efc20d}
.agent-card-prompt{margin:0;font-weight:600;font-size:13.5px;color:var(--text)}
.agent-card-cost{margin:4px 0 0;font-size:11.5px;color:var(--accent)}
.agent-card-actions{display:flex;gap:8px;margin-top:10px}
.agent-card-actions button{min-height:36px;padding:6px 18px;border-radius:12px;font-size:13px}
.agent-card-state{margin:8px 0 0;font-size:11.5px;color:var(--muted)}
.agent-card-done{border-color:#d8efc266}
.agent-card-cancelled,.agent-card-expired,.agent-card-failed{opacity:.75;border-color:var(--edge);background:transparent}
.agent-meta{display:flex;gap:10px;margin:6px 0 0}
.agent-meta small{font-size:10.5px;color:var(--muted)}
.message.received p+.agent-card{margin-top:10px}
@media(max-width:700px){.agent-chips{padding:6px 12px 8px}.agent-cost{padding:0 12px 6px}.agent-chip{max-width:220px}}

/* ------------------------------------------------------------------ Vênus as the copilot of the tools (14/11/2026)
   Tool cards inside the conversation, the panel full screen on a phone and docked beside the screen on a tablet or a
   computer, a way into the chat from every tool screen. Same palette and type as the rest of the app. */
.tool-card{display:grid;gap:10px;margin-top:12px;padding:14px 16px 14px;border:1px solid #d8efc22e;border-radius:18px;background:linear-gradient(160deg,#1e282cd9,#141a20f0);box-shadow:inset 0 1px 0 #ffffff0d}
.tool-card+.tool-card{margin-top:10px}
.tool-card-head{display:flex;align-items:center;gap:10px;min-width:0}
.tool-card-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:10px;background:#d8efc214;color:var(--accent)}
.tool-card-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.tool-card-head small{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);line-height:1.3}
.tool-card-head h3{margin:2px 0 0;font-size:14px;line-height:1.35;color:var(--text);letter-spacing:0}
.tool-verdict{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:#ffffff07}
.tool-verdict .diario-light{gap:3px;padding:5px;border-radius:12px;flex:none}.tool-verdict .diario-light i{width:11px;height:11px}
.tool-verdict strong{display:block;font-size:14px;line-height:1.35}
.tool-verdict small{display:block;margin-top:3px;font-size:11.5px;line-height:1.5;color:var(--muted)}
.tool-lines{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.tool-lines li{position:relative;padding-left:13px;font-size:12.5px;line-height:1.6;color:#d6ddd4}
.tool-lines li:before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--accent);opacity:.75}
.tool-months{display:grid;border:1px solid var(--edge);border-radius:12px;overflow:hidden}
.tool-months [role=row]{display:grid;grid-template-columns:.8fr 1.1fr 1.1fr;gap:8px;padding:7px 11px;font-size:12px;align-items:center}
.tool-months [role=row]+[role=row]{border-top:1px solid #ffffff0d}
.tool-months-head{background:#ffffff07;color:var(--muted);font-size:10.5px!important}
.tool-status{font-weight:600}.tool-status-ok{color:#bfe3a6}.tool-status-tight{color:var(--focus)}.tool-status-negative{color:var(--danger)}
.tool-fact,.tool-note{margin:0;font-size:12.5px;line-height:1.6;color:#cfd7cd}
.tool-note{color:#e1e8de}
.tool-caption{margin:2px 0 -4px;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.tool-big{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tool-big strong{font-size:28px;line-height:1.1;letter-spacing:-.5px}
.tool-chip{padding:3px 10px;border:1px solid #d8efc24d;border-radius:999px;color:var(--accent);font-size:11px}
.tool-chip[data-state=atencao]{color:var(--focus);border-color:#efd5ac55}.tool-chip[data-state=estourou]{color:var(--danger);border-color:#ffb4ab55}
.tool-stats,.tool-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin:0}
.tool-fields{margin-top:10px}
.tool-stats>div,.tool-fields>div{min-width:0;padding:8px 10px;border-radius:12px;background:#ffffff07}
.tool-stats dt,.tool-fields dt{font-size:10.5px;line-height:1.4;color:var(--muted)}
.tool-stats dd,.tool-fields dd{margin:3px 0 0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.tool-list{display:grid;margin:0;padding:0;list-style:none}
.tool-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:12.5px;line-height:1.45}
.tool-list li+li{border-top:1px solid #ffffff0d}
.tool-list li>span:first-child{min-width:0;overflow-wrap:anywhere}
.tool-list small{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.tool-list li>.protected-value{flex:none;font-weight:600}
.tool-card-open{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 15px;border:1px solid #d8efc259;border-radius:12px;background:#d8efc214;color:var(--accent);font-size:12.5px;font-weight:600;cursor:pointer}
.tool-card-open:hover{background:#d8efc226}
.tool-card-open:after{content:"";width:6px;height:6px;border-top:1.7px solid currentColor;border-right:1.7px solid currentColor;transform:rotate(45deg)}
.agent-card .tool-card-head{margin-bottom:8px}.agent-card .tool-card-open{margin-top:10px}
.message.received:has(.tool-card,.agent-card){width:100%;max-width:100%}
.agent-pending{opacity:.7}
.agent-typing{display:flex;align-items:center;gap:5px;padding:15px 18px}
.agent-typing i{width:6px;height:6px;border-radius:50%;background:var(--accent);opacity:.3;animation:agent-dot 1.2s infinite ease-in-out}
.agent-typing i:nth-of-type(2){animation-delay:.15s}.agent-typing i:nth-of-type(3){animation-delay:.3s}
@keyframes agent-dot{0%,80%,100%{opacity:.25;transform:none}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.agent-typing i{animation:none;opacity:.6}}

/* The panel: one conversation, two layouts. */
.venus-copilot{display:flex;flex-direction:column}
.venus-copilot.agent-mode>:is(.copilot-notice,.copilot-context,.copilot-log,.copilot-proposal,.copilot-composer,.copilot-ai-actions,.copilot-footnote){display:none!important}
.copilot-agent{flex:1;min-height:0;display:flex;flex-direction:column}
.copilot-agent[hidden]{display:none}
.copilot-agent .message-list{flex:1;min-height:0;padding:18px 18px 12px;gap:14px}
.copilot-agent .message{max-width:92%}
.copilot-agent .agent-chips{padding:4px 14px 8px}
.copilot-agent .agent-cost{padding:0 16px 6px}
.copilot-agent .messenger-composer{padding:10px 14px 14px}
.copilot-agent .messenger-composer textarea{resize:none}
.copilot-agent-error{padding:0 18px 10px;color:#f5beb5;font-size:12px}.copilot-agent-error:empty{display:none}
.copilot-back{display:none}
.copilot-header p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-back svg,.copilot-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.agent-avatar.small{width:28px;height:28px}.agent-avatar.small svg{width:22px;height:22px}
@media(min-width:768px){
 .venus-copilot{top:0;right:0;bottom:0;height:100dvh;width:400px;max-width:none;border:0;border-left:1px solid #a9c7b930;border-radius:0;background:#10161cf7;box-shadow:-24px 0 60px #0005}
 .copilot-visible #root{margin-right:400px}
 .copilot-visible .nav-wrap{left:calc((100% - 400px)/2);max-width:calc(100% - 430px)}
 .copilot-visible .ask-venus{display:none}
}
@media(min-width:768px) and (max-width:1099px){
 .venus-copilot{width:340px}
 .copilot-visible #root{margin-right:340px}
 .copilot-visible .nav-wrap{left:calc((100% - 340px)/2);max-width:calc(100% - 360px)}
}
@media(max-width:767px){
 .venus-copilot{inset:0;width:100%;max-width:none;height:100dvh;min-height:0;border:0;border-radius:0;background:#0c1116;z-index:120}
 body.copilot-visible{overflow:hidden}
 .copilot-visible #root{position:static;inset:auto;overflow:visible;margin-right:0}
 .copilot-visible .app-shell{padding-bottom:0}
 .copilot-back{display:grid;flex:none;width:38px;height:38px}
 #copilot-close{display:none}
 .copilot-header{gap:10px;padding:max(12px,env(safe-area-inset-top)) 14px 10px}
 .copilot-header .agent-avatar{width:34px;height:34px}.copilot-header .agent-avatar svg{width:27px;height:27px}
 .copilot-header h2{font-size:16px}.copilot-header p{display:block;font-size:11px}
 .copilot-agent .message-list{padding:16px 14px 10px}
 .copilot-agent .messenger-composer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}
}
/* Conversas on a phone: an open conversation fills the screen. */
@media(max-width:700px){
 .messenger.conversation-open{position:fixed;inset:0;z-index:95;height:100dvh!important;min-height:0;max-height:none;border:0;border-radius:0;background:#0c1116}
 .messenger.conversation-open .conversation-pane{height:100%}
 .messenger.conversation-open .conversation-header{padding-top:max(12px,env(safe-area-inset-top))}
 .messenger.conversation-open .messenger-composer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(min-width:701px){.assistant-main .messenger{height:calc(100dvh - 270px);min-height:460px;max-height:none}}

/* A way into the chat from every tool screen. */
.ask-venus{display:inline-flex;align-items:center;gap:9px;min-height:42px;margin-top:16px;padding:6px 16px 6px 6px;border:1px solid #d8efc23d;border-radius:999px;background:#d8efc20f;color:var(--text);font-size:13px;font-weight:600;cursor:pointer}
.ask-venus:hover{background:#d8efc21f}
@media(min-width:768px){.page-head:has(.ask-venus){display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.page-head:has(.ask-venus) .ask-venus{flex:none;margin:0 0 4px}}

/* Home: the shortcuts and the overview without repeated blocks. */
.dashboard-grid{grid-template-areas:"finances team" "history history"}
@media(max-width:759px){.dashboard-grid{grid-template-areas:"finances" "team" "history"}}
@media(min-width:701px) and (max-width:1250px){.copilot-visible .dashboard-grid{grid-template-areas:"finances" "team" "history"}}
/* An open conversation on a phone covers the top bar and the navigation. */
@media(max-width:700px){body:has(.messenger.conversation-open) :is(.topbar,.nav-wrap){visibility:hidden}}.daily-actions{align-items:start}

/* "A Vênus é uma assistente de inteligência artificial." under the composer, in Conversas and in the panel. */
.agent-ai-notice{margin:0;padding:0 20px 12px;color:var(--muted);font-size:11px;line-height:1.5;text-align:center}
.messenger-composer:has(+.agent-ai-notice){padding-bottom:8px}
@media(max-width:767px){.copilot-agent .messenger-composer:has(+.agent-ai-notice){padding-bottom:6px}.copilot-agent .agent-ai-notice{padding:0 14px max(10px,env(safe-area-inset-bottom))}}
@media(max-width:700px){.messenger.conversation-open .messenger-composer:has(+.agent-ai-notice){padding-bottom:6px}.messenger.conversation-open .agent-ai-notice{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
/* Nothing stays under the bottom navigation (14/11/2026): whatever is scrolled into view (focus, links, browser tests)
   stops above the dock and the Vênus button, and the end of every page clears them, safe area included. */
html{scroll-padding-bottom:calc(132px + env(safe-area-inset-bottom))}
main{padding-bottom:calc(220px + env(safe-area-inset-bottom))}
@media(max-width:759px){main{padding-bottom:calc(215px + env(safe-area-inset-bottom))}}