@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#0b1020;--surface:#11182b;--surface2:#151e34;--line:#25304a;--text:#f4f6ff;--muted:#929db8;--purple:#8b6cff;--purple2:#6e4df4;--cyan:#53c7dc}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{width:250px;flex-shrink:0;background:#0e1527;border-right:1px solid var(--line);padding:25px 17px 16px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font:800 20px Manrope,sans-serif;letter-spacing:2px;padding:0 10px 38px}.brand-mark{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#a18aff,#6041e8);font-size:23px}.workspace-label,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#818eac}.workspace-label{padding:0 11px 12px}.nav{display:grid;gap:5px}.nav-link{border:0;background:transparent;color:#aab4ca;padding:12px 13px;border-radius:9px;text-align:left;display:flex;gap:13px;align-items:center;cursor:pointer}.nav-link span{font-size:18px;width:20px;text-align:center}.nav-link:hover,.nav-link.active{background:#211d43;color:#c5b8ff}.sidebar-bottom{margin-top:auto}.help-card{background:linear-gradient(145deg,#1a2040,#171b31);border:1px solid #34345d;padding:15px;border-radius:12px;margin-bottom:17px}.help-icon{width:25px;height:25px;border-radius:8px;background:#45358c;display:grid;place-items:center;margin-bottom:11px}.help-card strong{font-size:12px}.help-card p{font-size:11px;color:var(--muted);line-height:1.5}.help-card a{font-size:11px;color:#b8a8ff;text-decoration:none}.user-mini{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:17px 4px 0}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#9378ff,#4c46ad);font-weight:700}.avatar.small{width:29px;height:29px}.user-mini strong,.user-mini small{display:block;font-size:11px}.user-mini small{color:var(--muted);margin-top:3px}.dots{margin-left:auto;color:var(--muted)}.main{min-width:0;flex:1;padding:0 34px;max-width:1600px;margin:0 auto}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{padding:0 9px;color:#56617a}.breadcrumb strong{color:#e7eaff}.top-actions{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:#e4b65c}.icon-btn,.mobile-menu{border:1px solid var(--line);background:var(--surface);color:#dfe4f5;border-radius:9px;width:34px;height:34px;cursor:pointer;font-size:17px}.mobile-menu{display:none}.page{display:none;padding:34px 0 20px}.page.active{display:block}.welcome-row,.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.eyebrow{margin:0 0 9px;color:#a18aff}h1,h2,p{margin-top:0}h1{font:800 clamp(24px,3vw,34px) Manrope,sans-serif;letter-spacing:-1px;margin-bottom:8px}h2{font:700 16px Manrope,sans-serif;margin-bottom:5px}.muted{color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:0}.btn{border:1px solid transparent;padding:11px 16px;border-radius:9px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}.btn.primary{background:linear-gradient(135deg,#9276ff,#6849e9);color:white;box-shadow:0 7px 20px #6548d52e}.btn.secondary{background:#1b2440;border-color:#343e5d;color:#e2e6f8}.btn:disabled{opacity:.5;cursor:not-allowed}.notice{display:flex;align-items:flex-start;gap:13px;padding:15px 16px;background:#171c39;border:1px solid #34345f;border-radius:11px;margin-bottom:23px}.notice-icon{font-size:20px;color:#b39eff}.notice strong{font-size:12px}.notice p{font-size:11px;color:#aab4ca;margin:4px 0 0;line-height:1.5}.notice-close{margin-left:auto;background:none;border:0;color:#9da8c1;font-size:20px;cursor:pointer}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:17px}.stat-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px}.stat-card{padding:17px}.stat-head{display:flex;align-items:center;justify-content:space-between;color:#aeb8cf;font-size:11px}.stat-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:16px}.purple{background:#2c2450;color:#b9a8ff}.blue{background:#1d3151;color:#7eb7ff}.teal{background:#173b42;color:#6bd6ce}.amber{background:#44351e;color:#f1c16f}.stat-card>strong{display:block;font:800 27px Manrope,sans-serif;margin:12px 0 3px}.stat-card>small{font-size:10px;color:#7f8ba7}.content-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:15px}.panel{padding:20px;margin-bottom:16px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.pill{font-size:10px;padding:5px 9px;border-radius:20px;background:#29234b;color:#b8a7ff;white-space:nowrap}.muted-pill{background:#20283a;color:#8995af}.steps{display:grid}.step{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #222d44}.step-num{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#28234a;color:#b9a8ff;font-weight:700;font-size:11px;flex-shrink:0}.step strong{font-size:12px}.step p{font-size:10px;color:var(--muted);margin:4px 0 0}.text-btn{margin-left:auto;background:none;border:0;color:#b9a8ff;font-size:11px;cursor:pointer}.empty-state{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.empty-orb{width:48px;height:48px;border:1px solid #51438e;border-radius:15px;display:grid;place-items:center;background:#211d40;color:#b9a8ff;font-size:23px;margin-bottom:13px}.empty-state strong{font-size:12px}.empty-state p{max-width:280px;color:var(--muted);font-size:11px;line-height:1.6;margin:7px 0 13px}.agent-list{display:grid;gap:10px}.agent-item{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#131d32}.agent-glyph{width:38px;height:38px;border-radius:11px;background:#29234b;color:#b9a8ff;display:grid;place-items:center;font-size:19px}.agent-item strong{font-size:12px}.agent-item small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.agent-item .pill{margin-left:auto}.wallet-card{display:flex;justify-content:space-between;align-items:center;padding:23px;border:1px solid #443b78;border-radius:14px;background:radial-gradient(circle at 80% 20%,#493b86 0,transparent 40%),linear-gradient(120deg,#25204c,#171c35);margin-bottom:17px}.wallet-card span,.wallet-card small{display:block;color:#c0b7e8;font-size:10px}.wallet-card strong{display:block;font:800 31px Manrope,sans-serif;margin:8px 0}.wallet-symbol{font-size:55px;color:#b5a3ff;opacity:.8}.fine-print{font-size:10px;color:#8490aa;line-height:1.6;margin:14px 0 0}.settings-list{padding:0 20px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.setting-row:last-child{border:0}.setting-row p{margin:5px 0 0}.warning{background:#44351e;color:#f1c16f}footer{border-top:1px solid var(--line);padding:19px 0 25px;color:#75819c;font-size:10px;display:flex;justify-content:space-between}.modal{width:min(460px,calc(100% - 28px));border:1px solid #394361;border-radius:15px;background:#121a2d;color:var(--text);padding:22px;box-shadow:0 25px 80px #0009}.modal::backdrop{background:#050814c9;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal h2{font-size:20px}.modal label{display:block;color:#b8c2d8;font-size:11px;margin:14px 0 7px}.modal input,.modal select,.modal textarea{width:100%;border:1px solid #34405c;border-radius:8px;background:#0d1425;color:white;padding:11px;outline:none}.modal input:focus,.modal select:focus,.modal textarea:focus{border-color:#8b6cff}.modal-note{background:#1d2440;color:#aeb8d0;padding:10px;border-radius:8px;font-size:10px;line-height:1.5;margin-top:15px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#28234b;border:1px solid #6654a8;color:#eee9ff;padding:11px 16px;border-radius:9px;font-size:12px;transition:.2s;z-index:5}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.sidebar{width:220px}.main{padding:0 22px}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.sidebar{position:fixed;z-index:10;left:-270px;top:0;bottom:0;width:250px;transition:left .25s;box-shadow:15px 0 40px #0007}.sidebar.open{left:0}.main{padding:0 16px;width:100%}.topbar{height:60px}.mobile-menu{display:block}.breadcrumb{font-size:10px}.top-status{display:none}.top-actions{gap:8px}.page{padding-top:25px}.welcome-row,.page-heading{align-items:flex-start;flex-direction:column}.welcome-row .btn,.page-heading .btn{width:100%}.stats-grid{gap:9px}.stat-card{padding:13px}.stat-card>strong{font-size:23px}.content-grid{grid-template-columns:1fr}.panel{padding:16px}.step{gap:9px}.step p{max-width:190px}.step .pill{font-size:9px}footer{gap:8px;flex-direction:column}.wallet-card{padding:18px}.wallet-card strong{font-size:27px}}

.agent-open{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}.agent-open:hover,.agent-open:focus-visible{border-color:#8b5cf6;outline:2px solid #8b5cf633}#aivoraChat{max-width:min(94vw,540px);width:100%;border:1px solid #384363;border-radius:18px;padding:0;background:#111827;color:#fff}#aivoraChat::backdrop{background:#030712bb}#chatForm{display:flex;gap:8px}#chatForm input{min-width:0;flex:1}#chatForm button,#closeChat{background:#7850ed;color:white;border:0;border-radius:8px;padding:12px;cursor:pointer}#closeChat{margin-top:12px;background:#303b57}
/* Authentication and narrow-screen layout */
[hidden]{display:none!important}.auth-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px 16px;overflow-y:auto;background:#0b1020f5;min-height:100dvh}.auth-card{width:min(100%,420px);padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 24px 80px #0006}.auth-card h1{color:#c5b8ff;font-size:27px;letter-spacing:2px}.auth-card>p{color:var(--muted);line-height:1.6}.auth-card label{display:block;margin:18px 0 8px;color:#c4cce0}.auth-card input{display:block;width:100%;min-height:46px;padding:12px;border:1px solid #34405c;border-radius:9px;background:#0b1020;color:white;font-size:16px}.auth-card input:focus{outline:2px solid var(--purple);outline-offset:2px}.auth-card button{width:100%;min-height:46px;border-radius:9px;padding:12px;border:1px solid #7860d9;background:#7850ed;color:white;font-weight:700;cursor:pointer;margin-top:18px}.auth-card .auth-secondary{background:#1b2440;margin-top:12px}.auth-card button:disabled{opacity:.6;cursor:wait}.auth-card .auth-message{color:#e3ccff;overflow-wrap:anywhere;min-height:20px;margin:16px 0 0}.auth-card .auth-note{font-size:12px;margin:12px 0 0}.account-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);color:var(--muted)}#accountEmail{overflow-wrap:anywhere;min-width:0}#logoutBtn{flex-shrink:0;min-height:40px;padding:8px 12px;background:var(--surface2);border:1px solid var(--line);border-radius:8px;color:var(--text);cursor:pointer}.agent-item>div{min-width:0}.agent-item strong,.agent-item small{overflow-wrap:anywhere}.agent-glyph{flex-shrink:0}.modal{max-height:calc(100dvh - 28px);overflow:auto}button:focus-visible{outline:2px solid var(--purple);outline-offset:3px}#chatForm button:disabled{opacity:.6;cursor:wait}@media(max-width:420px){.auth-card{padding:22px}.agent-item{flex-wrap:wrap}.agent-item .pill{margin-left:50px}.breadcrumb{max-width:180px}.step{flex-wrap:wrap}.setting-row{gap:12px}.stat-card>strong{overflow-wrap:anywhere;font-size:21px}.top-actions .icon-btn{display:none}}
