/* Styles the focused project assistant page, chat and reviewed drafts. */
.eva-page{display:grid;gap:18px;min-width:0;width:100%}
.eva-page-header{min-width:0;padding:18px 22px;background:#fff;border:1px solid #dde2ea;border-radius:16px}
.eva-page-header>div{min-width:0}
.eva-overline{display:block;color:#5850ec;font-size:13px;letter-spacing:.12em;font-weight:850}
.eva-page-header h1{margin:6px 0;color:#20283d;font-size:32px;line-height:1.1}
.eva-page-header p{margin:0;color:#596579;font-size:13px;line-height:1.5}
.eva-no-project{padding:34px;border-radius:16px}
.eva-no-project h1{margin:0 0 8px}
.eva-no-project p{margin:0 0 20px}
.eva-layout{display:block;min-width:0}
.eva-layout>.panel{margin:0;min-width:0;border-radius:16px}
.eva-chat{padding:0;overflow:hidden}
.eva-chat-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce3ed}
.eva-identity{min-width:0}
.eva-identity h3{font-size:15px;margin:0;color:#20283d}
.eva-identity p{font-size:13px;color:#667085;margin:3px 0 0;overflow-wrap:anywhere}
.eva-state{border:1px solid #dce3ed;border-radius:14px;padding:6px 10px;color:#5d6678;font-size:13px;font-weight:700;white-space:nowrap}
.eva-state.is-ready{background:#d3f4e4;color:#0f7a4a;border-color:#8fdcb8}
.eva-welcome{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 22px;text-align:center}
.eva-welcome h2{font-size:22px;color:#20283d;margin:0 0 8px}
.eva-welcome p{font-size:13px;color:#5d6678;line-height:1.6;max-width:470px;margin:0}
.eva-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px}
.eva-suggestions button{background:#fff;color:#3d328d;border:1px solid #bfc5d5;border-radius:14px;padding:9px 12px;font-size:13px;font-weight:700}
.eva-suggestions button:hover{background:#fff;color:#5850ec;border-color:#dcdafd}
.eva-messages{height:min(62vh,640px);min-height:360px;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:20px}
.eva-message{min-width:0;align-self:flex-start}
.eva-message.eva-user{max-width:min(72%,560px);align-self:flex-end;background:#fff;color:#253247;padding:14px 17px;border:1px solid #dde2ea;border-radius:16px}
.eva-message.eva-user>p{color:#253247;opacity:1}
.eva-message.eva-assistant{width:min(94%,950px);max-width:100%;background:#fff;color:#20283d;padding:17px 19px;border:1px solid #d5deea;border-radius:16px}
.eva-message.eva-assistant.has-dashboard{width:100%}
.eva-message.has-dashboard .eva-dashboard-card{margin:16px 0 0}
.eva-message-head{font-size:13px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.eva-user .eva-message-head{color:#20518a}
.eva-assistant .eva-message-head{color:#5850ec}
.eva-message>p,.eva-answer>p{margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:13px}
.eva-answer>p{color:#253247}
.eva-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.eva-highlight{display:flex;flex-direction:column;gap:7px;padding:13px 14px;background:#f5f7fa;border:1px solid #dce3ed;border-radius:14px;min-width:0}
.eva-highlight strong{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#5850ec}
.eva-highlight span{font-size:13px;line-height:1.45;color:#28354d;overflow-wrap:anywhere}
.eva-answer-more{margin-top:11px}
.eva-answer-more[open]{display:flex;flex-direction:column}
.eva-answer-more summary{border-top:1px solid #dce3ed;padding-top:10px;color:#5850ec;font-size:13px;font-weight:750;cursor:pointer}
.eva-answer-more summary span:last-child{display:none}
.eva-answer-more[open] summary{order:2}
.eva-answer-more[open] summary span:first-child{display:none}
.eva-answer-more[open] summary span:last-child{display:inline}
.eva-answer-more p{color:#39465a;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.eva-thinking{display:flex;align-items:center;gap:9px;color:#5d6678;font-size:13px}
.eva-thinking-ring{width:15px;height:15px;border:2px solid #dce3ed;border-top-color:#5850ec;border-radius:50%;animation:eva-spin .8s linear infinite}
@keyframes eva-spin{to{transform:rotate(360deg)}}
.eva-composer{padding:16px 20px 19px;border-top:1px solid #dce3ed}
.eva-composer>label{display:block;font-weight:700;font-size:13px;color:#253247;margin-bottom:8px}
.eva-composer>div.eva-composer-shell{display:flex;flex-direction:column;gap:7px;align-items:stretch;min-width:0;padding:11px 12px 9px;background:#fff;border:1px solid #cbd3df;border-radius:16px;transition:border-color .18s ease,box-shadow .18s ease}
.eva-composer-shell:focus-within{border-color:#a5a0f5;box-shadow:0 0 0 3px #ede9ff}
.eva-composer textarea{display:block;width:100%;min-width:0;min-height:54px;max-height:180px;resize:vertical;border:0;border-radius:10px;padding:5px 4px;font:inherit;font-size:13px;outline:0;box-shadow:none}
.eva-composer textarea:focus{outline:0;box-shadow:none}
.eva-composer-tools{display:flex!important;flex-direction:row!important;gap:10px!important;align-items:center!important;min-width:0}
.eva-composer-tools>small{flex:1;min-width:0;margin:0!important;color:#667085;font-size:13px}
.eva-composer-tools>button{flex:none;width:42px;height:42px;min-height:42px;padding:0;border-radius:13px}
.eva-composer-tools>button svg,.eva-add-wrap>button svg,.eva-add-menu svg{width:20px;height:20px}
.eva-composer-tools>button[type=submit]{opacity:0;pointer-events:none;transform:scale(.85);background:#dcdafd;color:#5850ec;border:1px solid #dcdafd;transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease}
.eva-composer-tools>button[type=submit].is-ready{opacity:1;pointer-events:auto;transform:scale(1);background:#5850ec;border-color:#8e58aa;color:#fff;box-shadow:0 3px 10px #5850ec33}
.eva-composer-tools>button[type=submit].is-ready:hover{transform:translateY(-2px);box-shadow:0 5px 13px #5850ec44}
.eva-composer-tools>button[type=submit].is-ready:focus-visible{outline:3px solid #5850ec;outline-offset:3px}
.eva-add-wrap{position:relative;flex:none}
.eva-add-wrap>button{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:11px;background:transparent;color:#526078}
.eva-add-wrap>button:hover,.eva-add-wrap>button[aria-expanded=true]{background:#f7f8fa;color:#49399b}
.eva-add-menu{position:absolute;z-index:5;left:0;bottom:calc(100% + 8px);min-width:224px;padding:6px;background:#fff;border:1px solid #dce3ed;border-radius:12px;box-shadow:0 12px 30px #2532471c}
.eva-add-menu[hidden]{display:none}
.eva-add-menu button{display:flex;align-items:center;gap:10px;width:100%;height:auto;min-height:42px;padding:9px 11px;border:0;border-radius:10px;background:transparent;color:#273247;text-align:left;font-size:13px}
.eva-add-menu button:hover{background:#f7f8fa}
.eva-attachments,.eva-message-files{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.eva-attachments:empty{display:none}
.eva-attachment-chip,.eva-message-files>span{display:flex;align-items:center;gap:7px;max-width:100%;min-width:0;padding:6px 8px;background:#f6f7fb;border:1px solid #e0e5ed;border-radius:11px;color:#344056;font-size:13px}
.eva-file-mark{flex:none;padding:4px 5px;border-radius:6px;background:#f1f3f6;color:#5850ec;font-size:13px;font-weight:800}
.eva-attachment-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.eva-attachment-chip small{color:#778196;font-size:13px;white-space:nowrap}
.eva-attachment-chip button{width:22px;height:22px;min-height:22px;padding:0;border:0;border-radius:7px;background:transparent;color:#70798a;font-size:17px;line-height:1}
.eva-attachment-chip button:hover{background:#f7f8fa}
.eva-upload-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eva-message-files{margin-top:8px}
.eva-composer small{display:block;margin-top:9px;color:#667085;font-size:13px;line-height:1.45}
.eva-error,.eva-setup{margin:14px 20px 0;border-radius:14px;padding:12px 14px;font-size:13px}
.eva-error{background:#fde9ed;color:#c81e5b}
.eva-setup{background:#fdf0b8;color:#a16207}
.eva-draft{display:block;margin-top:15px;padding:16px;background:#fff;border:1px solid #cbd3df;border-radius:16px;color:#20283d}
.eva-draft-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}
.eva-draft-heading span:first-child{font-size:13px;font-weight:800;color:#5850ec;letter-spacing:.08em}
.eva-draft h3{font-size:15px;margin:4px 0 13px}
.eva-draft-kind{font-size:13px;color:#253d73;padding:6px 0;font-weight:750;white-space:nowrap}
.eva-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.eva-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#495269;font-weight:700}
.eva-form-grid label.eva-wide{grid-column:1/-1}
.eva-form-grid input,.eva-form-grid select,.eva-form-grid textarea{width:100%;min-width:0;border:1px solid #cbd3df;border-radius:13px;padding:9px 10px;font:inherit;font-size:13px;color:#20283d;background:#fff}
.eva-form-grid textarea{min-height:60px;resize:vertical}
.eva-draft-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.eva-draft-foot p,.eva-draft-saved p{font-size:13px;color:#667085;margin:0}
.eva-draft-foot button{white-space:nowrap;border-radius:13px;font-size:13px}
.eva-draft-saved{border-color:#0f7a4a}
.eva-draft-saved strong{color:#0f7a4a;font-size:13px}
.eva-dashboard-card{margin-top:15px;border:1px solid #dcdafd;border-radius:16px;background:#fff;overflow:hidden}
.eva-dashboard-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px}
.eva-dashboard-card-head small{display:block;color:#5850ec;font-size:13px;font-weight:800;letter-spacing:.09em}
.eva-dashboard-card-head h3{margin:5px 0 0;color:#253247;font-size:16px}
.eva-dashboard-live{color:#3d7b62;font-size:13px;font-weight:700}
.eva-dashboard-calculations{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.eva-dashboard-calculations>div{display:grid;gap:5px;padding:12px;border:1px solid #dde2ea;border-radius:13px;background:#fff}
.eva-dashboard-calculations span{color:#5d6678;font-size:13px}
.eva-dashboard-calculations strong{color:#253247;font-size:15px;overflow-wrap:anywhere}
.eva-dashboard-card button{border:1px solid #b9c5d8;border-radius:14px;background:#fff;color:#3e348e;padding:9px 12px;font-size:13px;font-weight:750;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.eva-dashboard-card button:hover{background:#f7f8fa;border-color:#a5a0f5;transform:translateY(-1px)}
.eva-dashboard-card button:focus-visible,.eva-dashboard-section select:focus-visible{outline:3px solid #5c4bbe;outline-offset:2px}
.eva-dashboard-body{position:relative;isolation:isolate;border-top:1px solid #dce3ed;padding:16px;display:grid;gap:14px;background:#fff}
.eva-dashboard-actions{position:relative;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.eva-dashboard-body.is-building > .eva-dashboard-section{opacity:0;transform-origin:top left}
.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section{animation:eva-carry-section .76s cubic-bezier(.18,.79,.19,1) both;animation-delay:calc(.2s + var(--build-order)*.79s)}
.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section h4{clip-path:inset(0 100% 0 0);animation:eva-reveal-title .38s steps(16,end) both;animation-delay:calc(.83s + var(--build-order)*.79s)}
.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section .eva-dashboard-bars i,.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section .eva-dashboard-progress i{transform-origin:left;animation:eva-draw-bar .48s ease-out both;animation-delay:calc(.87s + var(--build-order)*.79s)}
.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section svg line{stroke-dasharray:700;stroke-dashoffset:700;animation:eva-draw-chart .55s ease-out both;animation-delay:calc(.9s + var(--build-order)*.79s)}
.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section svg circle{opacity:0;animation:eva-show-point .25s ease-out both;animation-delay:calc(1.15s + var(--build-order)*.79s)}
.eva-build-cursors{position:absolute;z-index:2;inset:0;overflow:hidden;pointer-events:none}
.eva-builder-cursor{position:absolute;left:0;top:0;display:flex;align-items:center;gap:2px;color:#273852;font-size:13px;font-weight:800;opacity:0;filter:drop-shadow(0 2px 3px #27385230)}
.eva-builder-cursor>span:last-child{padding:4px 6px;border-radius:5px;background:#dcdafd;border:1px solid #a5a0f5}
.eva-builder-pointer{display:block;width:16px;height:20px;background:#5850ec;clip-path:polygon(0 0,100% 70%,57% 72%,42% 100%,29% 91%,42% 66%,0 73%)}
.eva-builder-cursor-2>span:last-child{background:#d3f4e4;border-color:#8fdcb8}.eva-builder-cursor-2 .eva-builder-pointer{background:#0f7a4a}
.eva-builder-cursor-3>span:last-child{background:#e1efff;border-color:#a9c9ed}.eva-builder-cursor-3 .eva-builder-pointer{background:#2c70bd}
.eva-dashboard-body.is-building.is-ready .eva-builder-cursor{animation:eva-carry-cursor .86s cubic-bezier(.18,.79,.19,1) both;animation-delay:calc(.16s + var(--cursor-order)*.79s)}
@keyframes eva-carry-section{0%{opacity:0;transform:translate(var(--from-x),var(--from-y)) scale(.56);box-shadow:0 12px 26px #42377d24}12%{opacity:1}78%{opacity:1;transform:translate(0,0) scale(1.015);box-shadow:0 10px 22px #42377d1c}100%{opacity:1;transform:none;box-shadow:none}}
@keyframes eva-reveal-title{to{clip-path:inset(0)}}
@keyframes eva-draw-bar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes eva-draw-chart{to{stroke-dashoffset:0}}
@keyframes eva-show-point{to{opacity:1}}
@keyframes eva-carry-cursor{0%{opacity:0;transform:translate(var(--source-x),var(--source-y))}12%{opacity:1}76%{opacity:1;transform:translate(var(--target-x),var(--target-y))}100%{opacity:0;transform:translate(calc(var(--target-x) + 8px),calc(var(--target-y) + 8px))}}
.eva-dashboard-section{min-width:0;border:1px solid #e0e6ee;border-radius:14px;padding:16px;background:#fff}
.eva-dashboard-section:nth-child(3n+1){background:#fff}
.eva-dashboard-section:nth-child(3n+2){background:#fff}
.eva-dashboard-section h4{margin:0 0 10px;color:#253247;font-size:14px}
.eva-dashboard-section>p{margin:2px 0 12px;color:#5d6678;font-size:13px}
.eva-dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eva-dashboard-section-head label{display:flex;align-items:center;gap:6px;color:#4d5870;font-size:13px}
.eva-dashboard-section select{border:1px solid #cbd3df;background:#fff;color:#253247;border-radius:13px;padding:7px 9px;font-size:13px}
.eva-dashboard-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.eva-dashboard-metrics>div{min-width:0;background:#fff;border:1px solid #e0e6ee;border-radius:13px;padding:12px;display:grid;gap:5px}
.eva-dashboard-metrics span{font-size:13px;color:#5d6678}
.eva-dashboard-metrics strong{font-size:15px;color:#253247;overflow-wrap:anywhere}
.eva-dashboard-note{color:#a16207!important;background:#fff6e9;border-radius:13px;padding:10px;margin:10px 0 0!important}
.eva-references{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #e4e9f1}
.eva-references strong{font-size:13px;color:#34445f;margin-right:3px}
.eva-references a,.eva-references span{max-width:100%;overflow-wrap:anywhere;padding:7px 10px;border:1px solid #dbe4ee;border-radius:13px;background:#fff;color:#315979;font-size:13px;text-decoration:none}
.eva-references a:hover{background:#f7f8fa;border-color:#a9c8e1}
.eva-export-link{display:inline-flex;align-items:center;margin-top:13px;padding:10px 14px;border-radius:14px;border:1px solid #a5a0f5;background:#fff;color:#5850ec;font-size:13px;font-weight:750;text-decoration:none;transition:background .2s ease,transform .2s ease}
.eva-export-link:hover{background:#f7f8fa;transform:translateY(-2px)}
.eva-source-issue{margin:10px 0 0;color:#a16207;font-size:13px}
.eva-dashboard-tasks{display:grid;gap:6px;max-height:380px;overflow:auto}
.eva-dashboard-tasks details{background:#fff;border:1px solid #e0e6ee;border-radius:13px;padding:10px 12px}
.eva-dashboard-tasks summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#253247;font-size:13px}
.eva-dashboard-tasks summary span{min-width:0;overflow-wrap:anywhere}
.eva-dashboard-tasks summary strong{white-space:nowrap}
.eva-dashboard-tasks small{display:block;margin-top:8px;color:#5d6678}
.eva-dashboard-progress{height:7px;background:#e4e9f2;border-radius:10px;margin-top:10px;overflow:hidden}
.eva-dashboard-progress i{display:block;height:100%;background:#5a75c9;border-radius:10px}
.eva-dashboard-bars{display:grid;gap:10px}
.eva-dashboard-bars>div{display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,2fr) auto;align-items:center;gap:9px;color:#34445f;font-size:13px}
.eva-dashboard-bars span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eva-dashboard-bars>div>div{height:9px;background:#e4e9f2;border-radius:10px;overflow:hidden}
.eva-dashboard-bars i{display:block;height:100%;background:#1fb978;border-radius:10px}
.eva-dashboard-bars strong{white-space:nowrap}
.eva-dashboard-chart{display:block;width:100%;height:auto;max-height:260px;overflow:visible}
.eva-dashboard-donut-wrap{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.eva-dashboard-donut{position:relative;width:150px;height:150px;border-radius:50%;display:grid;place-items:center;flex:none}
.eva-dashboard-donut svg{position:absolute;inset:0;width:100%;height:100%}
.eva-dashboard-donut span{position:relative;width:98px;height:98px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#253247;font-size:22px;font-weight:800}
.eva-dashboard-donut-wrap ul{list-style:none;margin:0;padding:0;display:grid;gap:9px;min-width:min(230px,100%);flex:1}
.eva-dashboard-donut-wrap li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:9px;color:#34445f;font-size:13px}
.eva-dashboard-donut-wrap li i{width:10px;height:10px;border-radius:3px}
.eva-dashboard-donut-wrap li span{overflow-wrap:anywhere}
.eva-dashboard-axis{display:flex;justify-content:space-between;color:#657087;font-size:13px;margin:0 12px 10px}
.eva-dashboard-curves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.eva-dashboard-curves>div{min-width:0;background:#fff;border-radius:13px;padding:10px}
.eva-dashboard-legend{font-size:13px;font-weight:750;color:#355aa5}
.eva-dashboard-legend.is-actual{color:#c81e5b}
.eva-dashboard-table summary{cursor:pointer;color:#5850ec;font-size:13px;font-weight:750}
.eva-dashboard-table>div{max-width:100%;overflow-x:auto;margin-top:10px}
.eva-dashboard-table table{width:100%;border-collapse:collapse;font-size:13px}
.eva-dashboard-table th,.eva-dashboard-table td{padding:8px;text-align:left;border-bottom:1px solid #e3e8ef;white-space:nowrap}
.eva-dashboard-table .is-negative{color:#c81e5b;font-weight:750}
.eva-dashboard-table .is-positive{color:#0f7a4a;font-weight:750}
.eva-dashboard-loading,.eva-dashboard-empty{padding:12px;color:#657087;font-size:13px}
.eva-skeleton{display:grid;gap:12px;min-width:0;padding:18px;border:1px solid #e1e6ef;border-radius:16px;background:#fff}
.eva-skeleton .skeleton-line:first-child{width:34%;height:17px}
.eva-skeleton .skeleton-line:nth-child(2){width:94%;height:15px}
.eva-skeleton .skeleton-line:last-child{width:67%;height:15px}
.eva-skeleton-answer{width:min(78%,750px);min-height:100px}
.eva-skeleton-dashboard{margin:0 16px 16px;min-height:170px}
.eva-skeleton-dashboard .skeleton-line:nth-child(2){height:65px}
.eva-skeleton-list{min-height:88px}
.eva-composer button[data-eva-mode="dashboard"]{background:#f1f3f6;color:#5850ec;border:1px solid #dcdafd}
.eva-composer button[data-eva-mode="dashboard"]:hover{background:#dcdafd}
/* AiNA responses use the same quiet canvas for answers, live visuals and generated forms. */
.eva-page{font-family:var(--app-font);color:#1e293b}
.eva-message.eva-assistant{width:min(96%,1100px);padding:22px;border-color:#e2e7ee;box-shadow:0 3px 16px #2532470a}
.eva-message.eva-assistant.has-dashboard{width:100%}
.eva-message-head{font-size:13px;letter-spacing:.03em}
.eva-assistant .eva-message-head{color:#51627b}
.eva-message>p,.eva-answer>p{font-size:15px;line-height:1.65;color:#26354a}
.eva-answer-more p{font-size:14px;line-height:1.65}
.eva-highlight{background:#fff;border-color:#e7ebf0}
.eva-highlight strong{font-size:13px;color:#35599c}
.eva-highlight span{font-size:13px;line-height:1.55}
.eva-message.has-dashboard .eva-response-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:22px;align-items:start}
.eva-message.has-dashboard .eva-dashboard-card{margin:0}
.eva-dashboard-card-head{background:#fff;border-bottom:1px solid #e8ecf1}
.eva-dashboard-card-head h3{font-size:18px}
.eva-dashboard-body{border-top:0}
.eva-dashboard-section,.eva-dashboard-section:nth-child(3n+1),.eva-dashboard-section:nth-child(3n+2){background:#fff;border-color:#e8ecf1}
.eva-dashboard-section h4{font-size:15px}
.eva-dashboard-section>p,.eva-dashboard-metrics span,.eva-dashboard-bars>div,.eva-dashboard-table table{font-size:13px}
.eva-dashboard-metrics strong{font-size:18px}
.eva-generated-form,.eva-form-complete{margin-top:18px;padding:20px;border:1px solid #dfe5ec;border-radius:16px;background:#fff}
.eva-generated-form>header span{font-size:13px;font-weight:800;letter-spacing:.1em;color:#3d6db5}
.eva-generated-form h3{margin:6px 0 4px;color:#1e293b;font-size:19px;line-height:1.25}
.eva-generated-form>header p{margin:0 0 17px;color:#607087;font-size:13px;line-height:1.5}
.eva-generated-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.eva-generated-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#26354a;font-size:13px;font-weight:650}
.eva-generated-field:has(textarea),.eva-generated-field:has(input[type=range]){grid-column:1/-1}
.eva-generated-field em{color:#66758c;font-size:13px;font-style:normal;font-weight:500}
.eva-generated-field small{color:#65748a;font-size:13px;font-weight:400}
.eva-generated-field input:not([type=checkbox]):not([type=range]),.eva-generated-field select,.eva-generated-field textarea{width:100%;min-width:0;padding:11px 13px;border:1px solid #cbd5e1;border-radius:13px;background:#f8fafc;color:#1e293b;font:inherit;font-size:13px;font-weight:400;outline:0;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.eva-generated-field input:focus-visible,.eva-generated-field select:focus-visible,.eva-generated-field textarea:focus-visible{border-color:#5b84cf;background:#fff;box-shadow:0 0 0 3px #dce9ff}
.eva-generated-field textarea{min-height:92px;resize:vertical}
.eva-generated-field.is-check{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px}
.eva-generated-field input[type=checkbox]{width:19px;height:19px;accent-color:#4c79c1}
.eva-generated-field input[type=range]{width:100%;accent-color:#4c79c1}
.eva-generated-field output{color:#35599c;font-size:13px;font-weight:700}
.eva-generated-form footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #e8ecf1;color:#65748a;font-size:13px}
.eva-generated-form footer button{min-height:42px;padding:10px 18px;border:1px solid #bfd3f1;border-radius:13px;background:#fff;color:#224f90;font-size:13px;font-weight:750;cursor:pointer;transition:background .18s ease,transform .18s ease}
.eva-generated-form footer button:hover{background:#d5e7ff;transform:translateY(-1px)}
.eva-generated-form footer button:focus-visible{outline:3px solid #5b84cf;outline-offset:2px}
.eva-form-complete{background:#fff;border-color:#d5e8dc}
.eva-form-complete>strong{display:block;color:#1e293b;font-size:15px}
.eva-form-complete>span{display:block;margin-top:3px;color:#397658;font-size:13px}
.eva-form-complete dl{display:grid;gap:8px;margin:14px 0 0}
.eva-form-complete dl>div{display:grid;grid-template-columns:minmax(100px,1fr) 1.5fr;gap:10px;padding-top:8px;border-top:1px solid #dfebe4;font-size:13px}
.eva-form-complete dt{color:#607087}.eva-form-complete dd{margin:0;color:#26354a;font-weight:650;overflow-wrap:anywhere}
@media(max-width:1100px){.eva-message.has-dashboard .eva-response-layout{grid-template-columns:1fr}.eva-message.has-dashboard .eva-dashboard-card{margin-top:8px}}
@media(max-width:620px){.eva-generated-fields{grid-template-columns:1fr}.eva-generated-field:has(textarea),.eva-generated-field:has(input[type=range]){grid-column:auto}.eva-generated-form footer{align-items:stretch;flex-direction:column}.eva-message.eva-assistant{padding:16px}}
@media(prefers-reduced-motion:reduce){.eva-generated-form footer button{transition:none}.eva-generated-form footer button:hover{transform:none}}
@media(max-width:800px){.eva-highlights{grid-template-columns:1fr}}
@media(max-width:620px){.eva-page-header{padding:20px}.eva-messages{height:55vh;min-height:290px;padding:16px}.eva-message.eva-user{max-width:90%}.eva-message.eva-assistant{width:100%}.eva-draft-foot{flex-direction:column;align-items:stretch}.eva-draft-foot button{width:100%}.eva-form-grid{grid-template-columns:1fr}.eva-form-grid label.eva-wide{grid-column:auto}.eva-dashboard-card-head,.eva-dashboard-section-head{align-items:stretch;flex-direction:column}.eva-dashboard-metrics,.eva-dashboard-curves{grid-template-columns:1fr}.eva-dashboard-bars>div{grid-template-columns:minmax(70px,1fr) minmax(60px,1fr);}.eva-dashboard-bars strong{grid-column:2}.eva-dashboard-section{padding:12px}}

/* Keep the assistant's landing and memory distinct within the light workspace. */
.eva-page{gap:14px}
.eva-page-header{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border-color:#dcdafd}
.eva-page-identity{display:flex;align-items:center;gap:14px;min-width:0}
.eva-page-identity>img{flex:none}
.eva-memory-open{flex:none;border:1px solid #dcdafd;border-radius:15px;background:#fff;color:#5850ec;padding:10px 15px;font-size:13px;font-weight:750}
.eva-memory-open:hover{background:#f7f8fa}
.eva-chat{min-height:min(72vh,760px);background:#fff;border-color:#dce2ed}
.eva-chat.is-empty{display:flex;flex-direction:column;align-items:center}
.eva-chat.is-empty .eva-chat-top{align-self:stretch}
.eva-chat.is-empty .eva-welcome{min-height:0;flex:1;width:100%;padding:52px 20px 18px}
.eva-welcome img{margin-bottom:13px}
.eva-welcome h2{font-size:25px;line-height:1.2}
.eva-welcome p{font-size:13px}
.eva-chat.is-empty .eva-composer{width:min(750px,calc(100% - 32px));padding:0;border:0}
.eva-chat.is-empty .eva-composer>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.eva-chat.is-empty .eva-composer-shell{border:2px solid #a5a0f5;box-shadow:0 5px 22px #5850ec12}
.eva-chat.is-empty .eva-composer>small{padding:0 8px}
.eva-chat.is-empty .eva-suggestions{width:min(750px,calc(100% - 32px));margin:12px 0 40px;justify-content:flex-start}
.eva-suggestions button{border-color:#d9dfea;background:#fff;color:#344258;font-weight:650}
.eva-suggestions button:focus-visible,.eva-memory-open:focus-visible,.eva-memory-dialog button:focus-visible{outline:3px solid #5850ec;outline-offset:2px}
.eva-memory-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:#18223b8c}
.eva-memory-dialog{width:min(560px,100%);max-height:min(850px,calc(100vh - 36px));overflow-y:auto;padding:26px;background:#fff;border:1px solid #d7ddec;border-radius:18px;box-shadow:0 20px 70px #1d25413d;color:#253247}
.eva-memory-dialog>header{display:flex;justify-content:space-between;align-items:start}
.eva-memory-dialog>header button{width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:15px;background:#fff;color:#48566b;font-size:24px;line-height:1}
.eva-memory-dialog h2{margin:12px 0 6px;font-size:24px;color:#242d42}
.eva-memory-dialog>p{margin:0 0 23px;color:#5b6679;font-size:13px;line-height:1.55}
.eva-memory-dialog form{display:grid;gap:16px}
.eva-memory-dialog form>label:not(.eva-memory-toggle){display:grid;gap:7px;font-size:13px;font-weight:750;color:#344156}
.eva-memory-dialog input:not([type=checkbox]),.eva-memory-dialog textarea{width:100%;min-width:0;padding:12px 13px;border:1px solid #cbd4e1;border-radius:15px;background:#fff;color:#253247;font:inherit;font-size:13px}
.eva-memory-dialog textarea{min-height:112px;resize:vertical}
.eva-memory-dialog input:focus-visible,.eva-memory-dialog textarea:focus-visible{outline:3px solid #dcdafd;outline-offset:1px}
.eva-memory-toggle{display:flex;align-items:center;gap:9px;color:#344156;font-size:13px}
.eva-memory-toggle input{accent-color:#5850ec;width:18px;height:18px}
.eva-memory-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:14px;border-top:1px solid #e2e6ee}
.eva-memory-dialog footer span{color:#0f7a4a;font-size:13px}
.eva-memory-dialog footer button{padding:11px 17px;border:1px solid #a5a0f5;border-radius:15px;background:#fff;color:#5850ec;font-weight:750}
@media(max-width:620px){.eva-page-header{padding:15px}.eva-page-identity{gap:10px}.eva-page-identity>img{width:36px;height:36px}.eva-page-header h1.eva-title-shimmer{font-size:26px}.eva-memory-open{padding:9px 11px}.eva-chat.is-empty{min-height:68vh}.eva-chat.is-empty .eva-welcome{padding:34px 15px 14px}.eva-welcome h2{font-size:22px}.eva-chat.is-empty .eva-composer,.eva-chat.is-empty .eva-suggestions{width:calc(100% - 24px)}.eva-chat.is-empty .eva-suggestions{margin-bottom:24px}.eva-memory-dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){.eva-thinking-ring{animation:none}}

.eva-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:stretch}
.eva-side-panel{display:flex;flex-direction:column;min-width:0;min-height:500px;padding:18px 12px;background:#fff;border:1px solid #dce2ed;border-radius:18px}
.eva-side-title{display:flex;align-items:center;gap:10px;padding:2px 10px 20px;color:#28334a;font-size:16px}
.eva-side-panel nav{display:grid;gap:5px}
.eva-side-panel button{width:100%;min-width:0;border:1px solid transparent;border-radius:15px;background:transparent;color:#3d4b61;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.eva-side-panel nav button{padding:12px 13px;font-weight:750}
.eva-side-panel button:hover{background:#f7f8fa;color:#5850ec}
.eva-side-panel button.active{background:#fff;border-color:#dcdafd;color:#5850ec}
.eva-side-recent{margin-top:26px;padding:0 2px}
.eva-side-recent h3{margin:0 8px 10px;color:#667186;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.eva-side-recent>p{padding:0 8px;color:#788397;font-size:13px;line-height:1.5}
.eva-side-recent button{display:grid;gap:4px;padding:9px 10px}
.eva-side-recent button strong,.eva-side-recent button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eva-side-recent button strong{font-size:13px}
.eva-side-recent button small{color:#6f7a8c;font-size:13px}
.eva-agents-panel{min-width:0;min-height:500px;padding:25px;background:#fff;border:1px solid #dce2ed;border-radius:18px}
.eva-agents-panel>header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:25px}
.eva-agents-panel h2{margin:5px 0 6px;font-size:23px;color:#253247}
.eva-agents-panel>header p{margin:0;color:#667186;font-size:13px;line-height:1.5}
.eva-agents-panel>header button,.eva-agent-actions button,.eva-agent-form button{border:1px solid #dcdafd;border-radius:15px;background:#fff;color:#5850ec;padding:9px 12px;font-size:13px;font-weight:750}
.eva-agents-panel>h3{margin:23px 0 12px;color:#2e3b51;font-size:14px}
.eva-agent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px}
.eva-agent-card{min-width:0;display:flex;flex-direction:column;align-items:start;padding:16px;background:#fff;border:1px solid #dce2ed;border-radius:18px}
.eva-agent-card h3{margin:11px 0 5px;color:#26354b;font-size:14px}
.eva-agent-card p{margin:0 0 18px;color:#667186;font-size:13px;line-height:1.5}
.eva-agent-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.eva-agent-actions button{background:#fff}
.eva-agent-actions button:first-child{background:#fff}
.eva-agent-actions button:last-child:not(:first-child){color:#c81e5b;border-color:#fcdbe7}
.eva-agent-empty{color:#667186;font-size:13px}
.eva-agent-form{display:grid;gap:11px;max-width:620px;padding:18px;background:#fff;border:1px solid #dcdafd;border-radius:18px}
.eva-agent-form h3{margin:0;font-size:16px}
.eva-agent-form label{display:grid;gap:5px;color:#344156;font-size:13px;font-weight:750}
.eva-agent-form input,.eva-agent-form textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid #cbd4e1;border-radius:15px;background:#fff;color:#253247;font:inherit;font-size:13px}
.eva-agent-form textarea{resize:vertical}
.eva-agent-form>p{margin:0;color:#667186;font-size:13px;line-height:1.5}
.eva-agent-form>div{display:flex;justify-content:flex-end;gap:8px}
.eva-side-panel button:focus-visible,.eva-agents-panel button:focus-visible,.eva-agent-form input:focus-visible,.eva-agent-form textarea:focus-visible{outline:3px solid #5850ec;outline-offset:2px}
@media(max-width:900px){.eva-layout{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:680px){.eva-layout{display:block}.eva-side-panel{min-height:0;padding:8px;margin-bottom:12px}.eva-side-title,.eva-side-recent{display:none}.eva-side-panel nav{display:flex;gap:7px}.eva-side-panel nav button{width:auto;padding:9px 13px}.eva-agents-panel{padding:17px}.eva-agents-panel>header{align-items:stretch;flex-direction:column}.eva-agent-grid{grid-template-columns:1fr}}
.eva-chat-top-actions{display:flex;align-items:center;gap:9px}
.eva-chat-top-actions>button{border:0;background:transparent;color:#5142a0;font-size:13px;font-weight:750}
.eva-mode-tabs{display:flex;align-items:end;gap:3px;padding:0 20px}
.eva-mode-tabs button{min-height:32px;padding:7px 15px;border:1px solid #dce2ed;border-bottom:0;border-radius:14px 14px 0 0;background:#f6f7fa;color:#687488;font-size:13px;font-weight:750}
.eva-mode-tabs button.active{background:#fff;border-color:#a5a0f5;color:#5850ec}
.eva-chat.is-empty .eva-mode-tabs{width:min(750px,calc(100% - 32px));padding:0}
.eva-chat .eva-composer{border-top:0}
.eva-mode-tabs button:focus-visible,.eva-chat-top-actions button:focus-visible{outline:3px solid #5850ec;outline-offset:2px}
@media(max-width:620px){.eva-chat.is-empty .eva-mode-tabs{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section{opacity:1;transform:none;animation:none}.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section h4{clip-path:none;animation:none}.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section svg line,.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section svg circle,.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section .eva-dashboard-bars i,.eva-dashboard-body.is-building.is-ready > .eva-dashboard-section .eva-dashboard-progress i{animation:none;opacity:1;stroke-dashoffset:0}.eva-build-cursors{display:none}.eva-thinking-ring{animation:none}}

/* Keeps AiNA's controls in one centered canvas while preserving the workspace theme. */
.eva-page{gap:0}
.eva-page-header{display:flex;justify-content:flex-end;min-height:46px;padding:0 4px 10px;border:0;background:transparent}
.eva-memory-open{border:0;background:transparent;color:#56657a;padding:8px 10px}
.eva-layout{display:grid;grid-template-columns:1fr;gap:0;min-width:0}
.eva-chat,.eva-agents-panel{width:100%;min-width:0;min-height:calc(100vh - 180px);padding:0;border:0;background:transparent;box-shadow:none}
.eva-chat:not(.is-empty){display:flex;flex-direction:column;align-items:center}
.eva-chat.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.eva-chat.is-empty .eva-chat-top{display:none}
.eva-chat.is-empty .eva-hero,.eva-agents-panel>.eva-hero{margin:clamp(54px,11vh,130px) auto 42px}
.eva-hero{display:grid;justify-items:center;gap:9px;width:min(760px,calc(100% - 28px));text-align:center}
.eva-hero-title{display:flex;align-items:center;justify-content:center;gap:12px;max-width:100%;color:#253247}
.eva-hero-title>img{flex:none}
.eva-hero h1{margin:0;color:#263348;font-size:clamp(28px,3vw,42px);line-height:1.15;overflow-wrap:anywhere}
.eva-hero h1.eva-title-shimmer{font-family:var(--font-display),Georgia,serif;font-weight:600;font-optical-sizing:auto;letter-spacing:-.01em;color:#5850ec;background-image:linear-gradient(105deg,#4338ca 0%,#4338ca 37%,#a5a0f5 50%,#4338ca 63%,#4338ca 100%);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:eva-title-shimmer 4s linear infinite}
.eva-hero p{margin:0;color:#677386;font-size:13px;line-height:1.5}
.eva-mode-tabs,.eva-chat.is-empty .eva-mode-tabs{align-self:center;width:min(760px,calc(100% - 28px));margin:0 auto;padding:0 10px;gap:4px}
.eva-chat-input{display:flex;flex-direction:column;align-items:center;width:min(760px,calc(100% - 28px));min-width:0;margin:0 auto}
.eva-mode-tabs button{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:8px 16px;border:1px solid #d8dfeb;border-bottom:0;border-radius:15px 15px 0 0;background:#fff;color:#647186}
.eva-mode-tabs button.active{background:#fff;border-color:#aac5ec;color:#2e5f9b}
.eva-mode-tabs button img{width:16px;height:16px}
.eva-mode-tabs button svg{width:16px;height:16px}
.eva-chat .eva-composer,.eva-chat.is-empty .eva-composer{align-self:center;width:min(760px,calc(100% - 28px));padding:0;border:0}
.eva-composer>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.eva-composer>div.eva-composer-shell,.eva-chat.is-empty .eva-composer-shell{min-height:148px;padding:16px;border:2px solid #a9bee6;border-radius:18px;background:#fff;box-shadow:0 5px 18px #354e8420}
.eva-composer textarea{min-height:80px}
.eva-chat.is-empty .eva-suggestions{width:min(760px,calc(100% - 28px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px auto 0}
.eva-suggestions button{display:grid;align-content:start;gap:6px;min-height:90px;padding:13px;text-align:left;border:1px solid #d7dfeb;border-radius:16px;background:#fff;color:#28364b}
.eva-suggestions button strong{font-size:13px;color:#26354b}
.eva-suggestions button small{font-size:13px;line-height:1.4;color:#69768a}
.eva-recent-chats{width:min(760px,calc(100% - 28px));margin:50px auto 36px;color:#344156}
.eva-recent-chats h2{margin:0 0 12px;font-size:13px;color:#59667a;font-weight:750}
.eva-recent-chats>p{margin:0;font-size:13px;color:#788397}
.eva-recent-chats>button{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:8px 10px;border:0;border-radius:13px;background:transparent;text-align:left;color:#344156}
.eva-recent-chats>button:hover{background:#f7f8fa}
.eva-recent-chats>button>span:last-child{display:grid;gap:2px;min-width:0}
.eva-recent-chats strong,.eva-recent-chats small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eva-recent-chats strong{font-size:13px}.eva-recent-chats small{font-size:13px;color:#778397}
.eva-agents-panel{display:flex;flex-direction:column;align-items:center}
.eva-agent-prompt{width:min(760px,calc(100% - 28px));margin:0 auto}
.eva-agent-prompt>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.eva-agent-prompt-shell{min-height:148px;padding:16px;border:1px solid #dde2ea;border-radius:18px;background:#fff;box-shadow:0 5px 18px #354e8420}
.eva-agent-prompt-shell textarea{display:block;width:100%;min-height:80px;resize:vertical;border:0;background:transparent;outline:0;color:#253247;font:inherit;font-size:13px}
.eva-agent-prompt-shell>div{display:flex;justify-content:flex-end}
.eva-agent-prompt-shell button{padding:10px 15px;border:1px solid #a5a0f5;border-radius:14px;background:#fff;color:#5850ec;font-size:13px;font-weight:750}
.eva-agent-quick{width:min(760px,calc(100% - 28px));margin:18px auto 0}
.eva-agent-quick h2{margin:0 0 11px;color:#536176;font-size:13px;font-weight:750}
.eva-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.eva-agent-card{min-height:112px;padding:13px;border-radius:16px;background:#fff}
.eva-agent-card h3{margin:0 0 4px;font-size:13px}
.eva-agent-card p{margin:0 0 9px;font-size:13px}
.eva-agent-actions{gap:4px}
.eva-agent-actions button{padding:6px 8px;border-radius:10px;font-size:13px}
.eva-agent-manage{width:min(760px,calc(100% - 28px));display:flex;justify-content:flex-end;margin:12px auto 0}
.eva-agent-manage button{padding:8px 12px;border:1px solid #c6d0e0;border-radius:13px;background:#fff;color:#4d5c72;font-size:13px;font-weight:700}
.eva-agent-form{width:min(760px,calc(100% - 28px));max-width:none;margin:14px auto 0}
.eva-agents-panel>.eva-recent-chats{margin-top:42px}
.eva-chat:not(.is-empty) .eva-chat-input{width:100%;position:sticky;bottom:0;z-index:5;margin:0;padding:8px 20px 14px;background:#f7f8fa}
.eva-chat:not(.is-empty) .eva-messages{width:100%;height:auto;min-height:0;max-width:100%;margin:0;padding:24px 20px 30px;overflow-y:visible;overflow-x:visible}
.eva-chat:not(.is-empty) .eva-message.eva-assistant{width:100%;padding:0;border:0;background:transparent;box-shadow:none}
.eva-chat:not(.is-empty) .eva-message.has-dashboard .eva-response-layout{grid-template-columns:1fr}
.eva-chat:not(.is-empty) .eva-dashboard-body{min-width:0;overflow-x:auto}
.eva-chat:not(.is-empty) .eva-dashboard-tasks{max-height:none;overflow:visible}
.eva-chat:not(.is-empty) .eva-mode-tabs{width:100%;margin:0}
.eva-chat:not(.is-empty) .eva-composer{width:100%}
.eva-chat:not(.is-empty) .eva-composer>div.eva-composer-shell{min-height:112px}
@media(max-width:680px){.eva-chat:not(.is-empty) .eva-messages{padding:16px 12px 24px}.eva-chat:not(.is-empty) .eva-chat-input{padding:8px 12px 12px}}
@media(max-width:900px){.eva-layout{grid-template-columns:1fr}.eva-agent-grid,.eva-chat.is-empty .eva-suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.eva-layout{display:grid;grid-template-columns:1fr}.eva-chat.is-empty .eva-hero,.eva-agents-panel>.eva-hero{margin:42px auto 30px}.eva-hero h1{font-size:30px}.eva-chat.is-empty .eva-composer,.eva-chat.is-empty .eva-mode-tabs,.eva-chat.is-empty .eva-suggestions{width:calc(100% - 24px)}.eva-agent-grid,.eva-chat.is-empty .eva-suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}.eva-recent-chats{margin-top:34px}}
@media(max-width:440px){.eva-agent-grid,.eva-chat.is-empty .eva-suggestions{grid-template-columns:1fr}.eva-hero-title{gap:8px}.eva-hero-title>img{width:38px;height:38px}}
.eva-hero-title>img[src*="icons-3d"]{width:64px;height:64px;object-fit:contain}
.eva-requests-panel{width:100%;min-width:0;max-width:1100px;margin:0 auto;padding:8px 0 40px}
.eva-requests-panel>[data-report-requests-host]>div{margin-top:18px}
.eva-no-project-note{width:min(760px,calc(100% - 28px));margin:12px auto 0;color:#677386;font-size:13px}.eva-no-project-note a{color:#5850ec;font-weight:700}
.eva-research-host{display:contents}
.eva-retry{margin-left:8px;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.eva-mode-tabs button{white-space:nowrap}
.eva-chat.eva-compact-chat{min-height:0;padding-bottom:18px}
@keyframes eva-title-shimmer{from{background-position:100% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.eva-hero h1.eva-title-shimmer{animation:none;background:none;-webkit-text-fill-color:#4338ca}}
/* Mode tabs read as one assistant: muted inactive tabs, a lavender edge on the current one, locked tabs explained by their title. */
.eva-mode-tabs button{background:#f4f5f8;color:#5d6880}
.eva-mode-tabs button:hover:not(:disabled):not(.active){background:#fff;color:#4338ca}
.eva-mode-tabs button.active{position:relative;background:#fff;border-color:#a5a0f5;color:#5850ec;box-shadow:inset 0 3px 0 #5850ec}
.eva-mode-tabs button:disabled{cursor:not-allowed;opacity:.55}
/* Links inside text need more than colour to stand out. */
.eva-hero small a{text-decoration:none}
/* Basis line under an answer reads as a footnote. */
.eva-assistant .eva-answer>.eva-source-issue{margin-top:8px;color:#677386;font-size:13px}
/* The tab bar sits inside a wrapper in the React tabs. Let it lay out as a direct child, like project Ask. */
.eva-tabs-slot{display:contents}
/* Suggestion cards: topic icon, title and detail, and an arrow that slides in on hover. White surfaces, colour in lines only. */
.eva-chat .eva-suggestions button{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"icon go" "text text";align-items:start;gap:10px 8px;min-height:0;padding:13px 14px 14px;border:1px solid #dde2ea;border-radius:16px;background:#fff;color:#1b1530;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.eva-chat .eva-suggestions button:hover:not(:disabled){border-color:#a5a0f5;box-shadow:0 6px 18px #1b153014;transform:translateY(-1px)}
.eva-chat .eva-suggestions button:disabled{cursor:not-allowed;opacity:.6}
.eva-suggestion-icon{grid-area:icon;display:grid;place-items:center;width:36px;height:36px;border:1px solid #a5a0f5;border-radius:15px;background:#fff;color:#5850ec}
.eva-suggestion-icon svg,.eva-suggestion-go svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.eva-suggestions button[data-tone=blue] .eva-suggestion-icon,.eva-agent-card[data-tone=blue] .eva-suggestion-icon{border-color:#7fa6d6;color:#20518a}
.eva-suggestions button[data-tone=mint] .eva-suggestion-icon,.eva-agent-card[data-tone=mint] .eva-suggestion-icon{border-color:#7cbfa2;color:#0f7a4a}
.eva-suggestions button[data-tone=warm] .eva-suggestion-icon,.eva-agent-card[data-tone=warm] .eva-suggestion-icon{border-color:#f5c400;color:#a16207}
.eva-suggestion-text{grid-area:text;display:grid;gap:3px;min-width:0}
.eva-chat .eva-suggestions button .eva-suggestion-text strong{font-size:13px;line-height:1.3;color:#1b1530}
.eva-chat .eva-suggestions button .eva-suggestion-text small{font-size:13px;line-height:1.35;color:#5d6577;font-weight:500}
.eva-suggestion-go{grid-area:go;align-self:center;color:#9aa3b2;opacity:0;transform:translateX(-4px);transition:opacity .15s ease,transform .15s ease}
.eva-suggestion-go svg{width:16px;height:16px}
.eva-suggestions button:hover .eva-suggestion-go,.eva-suggestions button:focus-visible .eva-suggestion-go{opacity:1;transform:none;color:#5850ec}
@media(prefers-reduced-motion:reduce){.eva-chat .eva-suggestions button,.eva-suggestion-go{transition:none}.eva-chat .eva-suggestions button:hover:not(:disabled){transform:none}}
/* Agent cards share the suggestion card style: topic icon, title, description, then actions. */
.eva-agent-card{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;border:1px solid #dde2ea;border-radius:16px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.eva-agent-card:hover{border-color:#a5a0f5;box-shadow:0 6px 18px #1b153014;transform:translateY(-1px)}
.eva-agent-card .eva-agent-open{flex:1;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"icon go" "text text";align-items:start;align-content:start;gap:10px 8px;width:100%;padding:13px 14px 14px;border:0;border-radius:16px;background:none;color:#1b1530;text-align:left;cursor:pointer}
.eva-agent-card .eva-agent-open:focus-visible{outline:3px solid #5850ec;outline-offset:2px}
.eva-agent-card .eva-suggestion-text strong{font-size:13px;line-height:1.3;color:#1b1530}
.eva-agent-card .eva-suggestion-text small{font-size:13px;line-height:1.35;color:#5d6577;font-weight:500}
.eva-agent-card:hover .eva-suggestion-go,.eva-agent-open:focus-visible .eva-suggestion-go{opacity:1;transform:none;color:#5850ec}
.eva-agent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:0 8px 8px}
.eva-agent-actions .eva-agent-quiet{padding:7px 8px;border:0;border-radius:15px;background:none;color:#5d6577;font-size:13px;font-weight:600}
.eva-agent-actions .eva-agent-quiet:hover{color:#5850ec}
.eva-agent-actions .eva-agent-quiet[data-danger]:hover{color:#c81e5b}
@media(prefers-reduced-motion:reduce){.eva-agent-card{transition:none}.eva-agent-card:hover{transform:none}}
/* The shared header keeps Delivery setup and Memory together on the right. */
.eva-page-header{gap:8px}
/* Every PM AI tab lines up with Ask: same hero height, tab bar and composer width. */
.eva-page .eva-hero{min-height:120px;align-content:start}
.eva-agents-panel .eva-mode-tabs{width:min(732px,calc(100% - 28px))}
.eva-agents-panel form.eva-agent-prompt.eva-composer{width:min(732px,calc(100% - 28px));margin:0 auto;padding:0;border:0;background:transparent;box-shadow:none}
.eva-settings-note{margin:-8px 0 0;color:#5b6679;font-size:13px;line-height:1.55}
/* On a phone every tab shares the row equally, so Research is never cut off. Long names wrap to two lines. */
@media(max-width:620px){
  .eva-mode-tabs,.eva-chat.is-empty .eva-mode-tabs,.eva-agents-panel .eva-mode-tabs{display:flex;align-items:stretch;gap:4px;padding:0}
  .eva-mode-tabs button{flex:1 1 0;min-width:0;justify-content:center;gap:5px;padding:8px 6px;white-space:normal;text-align:center;line-height:1.2}
}
