:root{
  --purple:#520df2;
  --purple-2:#6a31f5;
  --purple-3:#8c63f7;
  --purple-deep:#230c5a;
  --purple-soft:#f2edff;
  --purple-soft-2:#faf8ff;
  --gold:#e6c55a;
  --ink:#141118;
  --muted:#6f6879;
  --line:#e9e5ef;
  --line-2:#f2eef6;
  --bg:#f7f6fa;
  --white:#fff;
  --danger:#d94f5c;
  --success:#20a36a;
  --warning:#d49a23;
  --shadow:0 18px 50px rgba(31,13,71,.08);
  --shadow-sm:0 10px 26px rgba(31,13,71,.06);
  --radius:22px;
  --sidebar:258px;
  --font:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
body{min-height:100vh;overflow-x:hidden}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
[hidden]{display:none!important}
::selection{background:#dcd0ff;color:#1a084a}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#d8d1e2;border:3px solid transparent;background-clip:padding-box;border-radius:999px}

/* loader */
.app-loader{position:fixed;inset:0;z-index:10000;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;transition:opacity .35s ease,visibility .35s ease}
.app-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.loader-logo{width:164px;height:auto}
.loader-dots{display:flex;gap:8px;direction:ltr}
.loader-dots i{width:8px;height:8px;background:var(--purple);border-radius:50%;animation:dotPulse 1.15s infinite ease-in-out}
.loader-dots i:nth-child(2){animation-delay:.15s}.loader-dots i:nth-child(3){animation-delay:.3s}
@keyframes dotPulse{0%,70%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-7px);opacity:1}}

/* login */
.login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);background:#fff;position:relative;overflow:hidden}
.login-brand-panel{position:relative;min-height:100vh;background:linear-gradient(142deg,#f7f3ff 0%,#efe7ff 42%,#faf8ff 100%);display:flex;align-items:center;justify-content:center;padding:60px;overflow:hidden;border-left:1px solid #eee8f6}
.login-brand-panel:before{content:"";position:absolute;width:540px;height:540px;border:1px solid rgba(82,13,242,.14);border-radius:50%;right:-180px;top:-210px}
.login-brand-panel:after{content:"";position:absolute;width:380px;height:380px;background:radial-gradient(circle,rgba(82,13,242,.09),transparent 68%);left:-100px;bottom:-90px;border-radius:50%}
.login-orbit{position:absolute;border:1px solid rgba(82,13,242,.08);border-radius:50%;pointer-events:none}.orbit-a{width:680px;height:680px;left:-340px;top:8%}.orbit-b{width:420px;height:420px;right:18%;bottom:-250px}
.login-brand-inner{width:min(650px,100%);position:relative;z-index:2}
.login-brand-logo{width:190px;margin-bottom:78px}
.platform-kicker{font-size:12px;letter-spacing:.2em;font-weight:800;color:var(--purple);margin-bottom:16px;direction:ltr;text-align:right}
.login-brand-inner h1{font-size:clamp(38px,4.1vw,64px);line-height:1.32;margin:0 0 22px;font-weight:800;letter-spacing:-.04em;color:#17111f}
.login-brand-inner h1 span{color:var(--purple)}
.login-brand-inner>p{font-size:18px;line-height:1.9;color:#655d70;max-width:550px;margin:0}
.login-proof{display:flex;gap:10px;margin-top:48px;flex-wrap:wrap}
.login-proof>div{min-width:135px;background:rgba(255,255,255,.6);border:1px solid rgba(82,13,242,.09);backdrop-filter:blur(10px);padding:14px 18px;border-radius:18px;display:flex;flex-direction:column}
.login-proof strong{font-size:22px;color:var(--purple);line-height:1.1}.login-proof span{font-size:12px;color:#736b7e;margin-top:5px}
.floating-agent-stack{position:absolute;left:20px;top:82px;display:flex;gap:0;direction:ltr}
.floating-agent-stack img{width:54px;height:54px;object-fit:cover;border-radius:17px;border:4px solid #f4efff;background:#fff;margin-left:-12px;box-shadow:0 10px 25px rgba(45,15,101,.1);animation:floatAvatar 4s ease-in-out infinite}
.floating-agent-stack img:nth-child(2){animation-delay:.4s}.floating-agent-stack img:nth-child(3){animation-delay:.8s}.floating-agent-stack img:nth-child(4){animation-delay:1.2s}
@keyframes floatAvatar{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.login-form-panel{display:flex;align-items:center;justify-content:center;padding:48px;background:#fff;position:relative;z-index:2}
.login-card{width:min(430px,100%)}
.mobile-login-logo{display:none}.login-eyebrow{color:var(--purple);font-size:13px;font-weight:800;margin-bottom:10px}
.login-card h2{font-size:30px;line-height:1.4;margin:0 0 8px;font-weight:800}.login-sub{color:var(--muted);font-size:14px;margin:0 0 34px}
.field-label{display:block;font-size:13px;font-weight:700;margin:18px 0 9px;color:#3d3646}
.field-shell{height:52px;border:1px solid #ded7e7;border-radius:15px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#fff;transition:.2s}
.field-shell:focus-within{border-color:rgba(82,13,242,.65);box-shadow:0 0 0 4px rgba(82,13,242,.08)}
.field-shell>span{width:20px;height:20px;color:#8a8194;display:flex}.field-shell input{border:0;outline:0;flex:1;min-width:0;background:transparent;color:var(--ink);font-size:14px}.field-shell input::placeholder{color:#b1a9ba}
.icon-btn{width:40px;height:40px;border:0;border-radius:12px;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:#6f6879;padding:0;transition:.2s}.icon-btn:hover{background:#f5f1fb;color:var(--purple)}.icon-btn svg{width:20px;height:20px}
.password-toggle{width:34px;height:34px}.form-message{font-size:12px;min-height:22px;color:var(--danger);margin-top:10px}
.primary-btn{border:0;border-radius:15px;background:linear-gradient(135deg,var(--purple),#6728f5);color:#fff;height:52px;padding:0 20px;font-weight:800;box-shadow:0 12px 30px rgba(82,13,242,.2);transition:.2s}.primary-btn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(82,13,242,.25)}.primary-btn:disabled{opacity:.6;cursor:wait;transform:none}
.login-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}.login-btn svg{width:18px;height:18px}
.demo-access{margin-top:26px;border-top:1px solid var(--line);padding-top:22px;text-align:center}.demo-access>span{display:block;font-size:11px;color:#958c9f;margin-bottom:10px}.demo-access>div{display:flex;gap:8px;justify-content:center}.demo-access button{border:1px solid #e5deed;background:#faf8fc;border-radius:11px;padding:8px 13px;color:#5f5769;font-size:11px;font-weight:700}.demo-access button:hover{border-color:#c9b8ef;color:var(--purple);background:#f7f2ff}
.secure-note{margin-top:20px;display:flex;align-items:center;justify-content:center;gap:7px;color:#9a929f;font-size:10px}.secure-note svg{width:14px}

/* shell */
.platform-shell{min-height:100vh;display:flex;background:var(--bg)}
.sidebar{position:fixed;right:0;top:0;bottom:0;width:var(--sidebar);background:#fff;border-left:1px solid var(--line);padding:20px 14px 14px;display:flex;flex-direction:column;z-index:70;overflow-y:auto}
.sidebar-head{height:70px;display:flex;align-items:flex-start;justify-content:space-between;padding:5px 9px 12px}.brand-mark img{width:136px;height:auto}
.main-nav,.bottom-nav{display:flex;flex-direction:column;gap:4px}.nav-item{width:100%;height:48px;border:0;background:transparent;border-radius:14px;padding:0 13px;display:flex;align-items:center;gap:11px;color:#675f70;text-align:right;position:relative;transition:.18s}.nav-item svg{width:20px;height:20px;stroke-width:1.8}.nav-item b{font-size:13px;font-weight:700;flex:1}.nav-item em{font-style:normal;font-size:10px;background:#f0eafe;color:var(--purple);min-width:26px;text-align:center;padding:3px 6px;border-radius:999px;font-weight:800}.nav-item:hover{background:#faf8fd;color:#312b38}.nav-item.active{background:var(--purple-soft);color:var(--purple)}.nav-item.active:before{content:"";position:absolute;right:-14px;width:3px;height:25px;background:var(--purple);border-radius:0 3px 3px 0}.nav-item.danger:hover{background:#fff1f2;color:var(--danger)}
.sidebar-spacer{flex:1;min-height:20px}.sidebar-mini-card{margin:12px 4px 14px;background:linear-gradient(145deg,#f5f0ff,#fbf9ff);border:1px solid #ece4fa;border-radius:18px;padding:12px;display:flex;align-items:center;gap:10px}.sidebar-mini-card img{width:46px;height:46px;object-fit:contain}.sidebar-mini-card div{min-width:0}.sidebar-mini-card strong{display:block;font-size:11px}.sidebar-mini-card span{display:block;font-size:9px;color:#80768b;margin-top:3px}.sidebar-version{text-align:center;font-size:9px;color:#aea6b5;margin-top:11px}
.workspace{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh}.topbar{height:78px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(229,224,235,.9);position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar-start{display:flex;align-items:center;gap:12px}.page-heading{display:flex;flex-direction:column;gap:2px}.page-heading strong{font-size:15px}.page-heading span{font-size:10px;color:#958d9d}.topbar-actions{display:flex;align-items:center;gap:10px}.search-trigger{width:260px;height:40px;border:1px solid #e4deeb;border-radius:12px;background:#faf9fb;color:#9a929f;display:flex;align-items:center;gap:9px;padding:0 12px;text-align:right}.search-trigger svg{width:17px}.search-trigger b{font-size:11px;font-weight:600;flex:1}.search-trigger kbd,.command-search kbd{font-family:inherit;font-size:9px;border:1px solid #e1dae8;background:#fff;border-radius:7px;padding:2px 6px;color:#8e8596;box-shadow:0 1px 0 #eee8f4}.system-status{height:40px;border:1px solid #e5eee9;background:#fbfffd;border-radius:12px;padding:0 12px;display:flex;align-items:center;gap:7px;color:#517263;font-size:10px;font-weight:700}.system-status i{width:7px;height:7px;background:#25a56a;border-radius:50%;box-shadow:0 0 0 4px rgba(37,165,106,.08)}.system-status.demo{border-color:#eee7cf;background:#fffdf8;color:#806e35}.system-status.demo i{background:#d8ab28;box-shadow:0 0 0 4px rgba(216,171,40,.08)}
.profile-chip{height:44px;border:1px solid #e8e2ed;background:#fff;border-radius:14px;padding:0 8px 0 10px;display:flex;align-items:center;gap:8px;color:#4d4654}.profile-chip .avatar{width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,#eee7ff,#d9c8ff);display:grid;place-items:center;color:var(--purple);font-size:11px;font-weight:800}.profile-text{display:flex;flex-direction:column;min-width:80px;text-align:right}.profile-text b{font-size:10px;line-height:1.5}.profile-text small{font-size:8px;color:#9a929f}.profile-chip>svg{width:15px}
.view-root{padding:26px 28px 48px;max-width:1600px;margin:0 auto;min-height:calc(100vh - 78px)}
.sidebar-scrim{display:none}.mobile-only{display:none!important}

/* Generic */
.view-enter{animation:viewIn .28s ease both}@keyframes viewIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px}.section-title h2{font-size:18px;margin:0;font-weight:800}.section-title p{font-size:11px;color:#8a8193;margin:4px 0 0}.section-title button{border:0;background:transparent;color:var(--purple);font-weight:700;font-size:11px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 16px rgba(35,18,65,.025)}
.soft-card{background:linear-gradient(145deg,#fff,#fcfbfe);border:1px solid var(--line);border-radius:20px}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:800;background:#f3eefc;color:var(--purple)}
.muted{color:var(--muted)}
.text-btn{border:0;background:transparent;color:var(--purple);font-weight:700;padding:4px 0}
.empty-state{padding:50px 20px;text-align:center;color:#7c7385}.empty-state .empty-icon{width:62px;height:62px;margin:0 auto 14px;border-radius:19px;background:#f4f0fb;color:var(--purple);display:grid;place-items:center}.empty-state .empty-icon svg{width:28px}.empty-state h3{margin:0 0 6px;font-size:15px}.empty-state p{font-size:11px;margin:0 auto 16px;max-width:420px;line-height:1.8}

/* home */
.home-hero{background:linear-gradient(135deg,#fff 0%,#faf7ff 57%,#f0e9ff 100%);border:1px solid #e9e1f5;border-radius:28px;padding:30px 32px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:26px;align-items:center;min-height:250px;position:relative;overflow:hidden;box-shadow:var(--shadow-sm)}
.home-hero:after{content:"";position:absolute;width:300px;height:300px;border:1px solid rgba(82,13,242,.1);border-radius:50%;left:-130px;top:-110px}.home-hero-copy{position:relative;z-index:2}.home-hero .eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--purple);font-weight:800;margin-bottom:10px}.home-hero .eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--purple)}.home-hero h1{font-size:clamp(26px,3vw,42px);margin:0 0 12px;line-height:1.35;letter-spacing:-.025em}.home-hero h1 span{color:var(--purple)}.home-hero p{font-size:13px;color:#6d6475;line-height:1.95;max-width:690px;margin:0}.hero-actions{margin-top:22px;display:flex;gap:9px;flex-wrap:wrap}.hero-actions button{height:42px;border-radius:13px;padding:0 16px;font-weight:800;font-size:11px;display:flex;align-items:center;gap:7px}.hero-actions .primary{background:var(--purple);color:white;border:1px solid var(--purple);box-shadow:0 10px 25px rgba(82,13,242,.18)}.hero-actions .secondary{background:#fff;border:1px solid #dfd6ea;color:#4f4658}.hero-actions svg{width:17px}
.hero-visual{display:flex;justify-content:center;align-items:center;position:relative;height:190px}.hero-visual .core{width:132px;height:132px;border-radius:38px;background:rgba(255,255,255,.72);border:1px solid rgba(82,13,242,.12);box-shadow:0 20px 45px rgba(71,31,142,.12);display:grid;place-items:center;position:relative;z-index:2;backdrop-filter:blur(10px)}.hero-visual .core img{width:108px;height:108px;object-fit:contain}.hero-visual .ring{position:absolute;border:1px dashed rgba(82,13,242,.19);border-radius:50%;animation:rotateRing 18s linear infinite}.hero-visual .r1{width:190px;height:190px}.hero-visual .r2{width:250px;height:250px;animation-direction:reverse;animation-duration:24s}@keyframes rotateRing{to{transform:rotate(360deg)}}.hero-visual .orbit-agent{position:absolute;width:46px;height:46px;border-radius:15px;background:#fff;padding:3px;box-shadow:0 10px 24px rgba(54,23,112,.12);z-index:3}.hero-visual .orbit-agent img{width:100%;height:100%;object-fit:cover;border-radius:12px}.hero-visual .o1{top:0;right:25px}.hero-visual .o2{bottom:0;left:20px}.hero-visual .o3{top:42px;left:0}
.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 28px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 17px;display:flex;align-items:center;gap:12px}.stat-icon{width:38px;height:38px;border-radius:12px;background:#f4effd;color:var(--purple);display:grid;place-items:center}.stat-icon svg{width:18px}.stat-card div{display:flex;flex-direction:column}.stat-card strong{font-size:17px}.stat-card span{font-size:9px;color:#8d8496;margin-top:2px}
.home-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(310px,.8fr);gap:22px;align-items:start}.agent-apps-panel,.recent-panel{min-width:0}.quick-agent-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.agent-app-tile{border:1px solid transparent;background:transparent;border-radius:18px;padding:11px 7px 10px;text-align:center;transition:.18s;min-width:0}.agent-app-tile:hover{background:#fff;border-color:#e9e2f1;box-shadow:var(--shadow-sm);transform:translateY(-2px)}.agent-app-icon{width:74px;height:74px;border-radius:22px;background:linear-gradient(145deg,#f5f1ff,#ebe3ff);margin:0 auto 9px;overflow:hidden;border:1px solid #e7ddfa;box-shadow:inset 0 1px 0 #fff}.agent-app-icon img{width:100%;height:100%;object-fit:cover}.agent-app-tile strong{font-size:10px;line-height:1.5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-app-tile span{font-size:8px;color:#9a919f;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-app-tile.is-disabled{filter:grayscale(.5);opacity:.5}.agent-app-tile.is-disabled:hover{transform:none;cursor:not-allowed}
.recent-list{background:#fff;border:1px solid var(--line);border-radius:20px;padding:8px}.recent-row{width:100%;border:0;background:transparent;border-radius:14px;padding:10px;display:flex;align-items:center;gap:10px;text-align:right;transition:.18s}.recent-row:hover{background:#faf8fd}.recent-row img{width:42px;height:42px;border-radius:13px;object-fit:cover}.recent-row .r-copy{min-width:0;flex:1}.recent-row strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-row p{font-size:8px;color:#908795;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-row time{font-size:8px;color:#aaa1b0}.recent-placeholder{padding:32px 16px;text-align:center;color:#968c9e;font-size:10px}

/* agents view */
.agents-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.agents-head h1{font-size:25px;margin:0}.agents-head p{font-size:11px;color:#82798a;margin:5px 0 0}.filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.search-box{width:270px;height:42px;background:#fff;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:8px;padding:0 12px}.search-box svg{width:17px;color:#958b9e}.search-box input{border:0;outline:0;background:transparent;min-width:0;flex:1;font-size:11px}.filter-chip{border:1px solid #e5dfea;background:#fff;border-radius:999px;padding:8px 12px;color:#756c7d;font-size:9px;font-weight:700}.filter-chip.active{background:var(--purple);color:#fff;border-color:var(--purple)}
.apps-library{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px 12px}.library-app{border:1px solid transparent;background:transparent;border-radius:20px;padding:12px 7px 11px;text-align:center;transition:.18s;position:relative;min-width:0}.library-app:hover{background:#fff;border-color:#e8e1ef;box-shadow:var(--shadow-sm);transform:translateY(-3px)}.library-app .app-img{width:86px;height:86px;border-radius:25px;background:#f1ebff;margin:0 auto 10px;overflow:hidden;border:1px solid #e7ddfa;position:relative}.library-app .app-img img{width:100%;height:100%;object-fit:cover;transition:.2s}.library-app:hover .app-img img{transform:scale(1.04)}.library-app .online-dot{position:absolute;left:7px;bottom:7px;width:10px;height:10px;background:#2cab70;border:2px solid #fff;border-radius:50%}.library-app strong{display:block;font-size:10px;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-app small{display:block;font-size:8px;color:#958c9d;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-app.is-disabled{opacity:.45;filter:grayscale(.55)}.library-app.is-disabled .online-dot{background:#aaa}.library-app.is-disabled:hover{transform:none;box-shadow:none;cursor:not-allowed}

/* Chat */
.chat-view{height:calc(100vh - 130px);min-height:580px;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 280px;box-shadow:0 10px 35px rgba(34,18,64,.04)}
.chat-main{min-width:0;display:flex;flex-direction:column;height:100%}.chat-header{height:72px;border-bottom:1px solid var(--line-2);display:flex;align-items:center;justify-content:space-between;padding:0 18px}.chat-agent-id{display:flex;align-items:center;gap:11px;min-width:0}.chat-agent-id img{width:45px;height:45px;border-radius:14px;object-fit:cover;background:#f3edff}.chat-agent-id div{min-width:0}.chat-agent-id strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-agent-id span{font-size:8px;color:#7c9b8c;display:flex;align-items:center;gap:5px;margin-top:3px}.chat-agent-id span:before{content:"";width:6px;height:6px;background:#2aa76d;border-radius:50%}.chat-header-actions{display:flex;gap:5px}.chat-header-actions button{width:36px;height:36px}
.chat-messages{flex:1;overflow-y:auto;padding:24px 24px 28px;scroll-behavior:smooth;background:linear-gradient(#fff,#fefeff)}.chat-welcome{max-width:710px;margin:26px auto 16px;text-align:center}.chat-welcome .welcome-agent{width:94px;height:94px;border-radius:29px;overflow:hidden;background:#f1ebff;margin:0 auto 13px;box-shadow:0 15px 35px rgba(82,13,242,.1)}.chat-welcome .welcome-agent img{width:100%;height:100%;object-fit:cover}.chat-welcome h2{font-size:19px;margin:0 0 7px}.chat-welcome p{font-size:11px;color:#7d7386;line-height:1.85;max-width:580px;margin:0 auto}.starter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:20px;text-align:right}.starter-card{border:1px solid #e9e2ef;background:#fff;border-radius:14px;padding:11px 12px;font-size:9px;font-weight:700;color:#5e5567;display:flex;align-items:center;gap:8px;transition:.18s}.starter-card:hover{border-color:#cfc0ef;background:#fbf8ff;color:var(--purple)}.starter-card span{width:24px;height:24px;border-radius:8px;background:#f2edfc;color:var(--purple);display:grid;place-items:center;flex:0 0 auto}.starter-card svg{width:13px}
.message-row{max-width:820px;margin:0 auto 20px;display:flex;gap:10px;align-items:flex-start}.message-row.user{flex-direction:row-reverse}.message-avatar{width:31px;height:31px;border-radius:10px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;background:#eee8fb;color:var(--purple);font-size:10px;font-weight:800}.message-avatar img{width:100%;height:100%;object-fit:cover}.message-bubble{max-width:min(690px,82%);border-radius:18px;padding:12px 14px;font-size:11px;line-height:1.95;position:relative}.message-row.assistant .message-bubble{background:#faf9fc;border:1px solid #ece7f1;border-top-right-radius:5px}.message-row.user .message-bubble{background:var(--purple);color:#fff;border-top-left-radius:5px;box-shadow:0 8px 22px rgba(82,13,242,.12)}.message-bubble p{margin:0 0 8px}.message-bubble p:last-child{margin-bottom:0}.message-bubble ul,.message-bubble ol{margin:6px 0;padding-right:18px}.message-bubble strong{font-weight:800}.message-bubble blockquote{margin:8px 0;border-right:3px solid #c9b7f6;padding:5px 10px;background:#f5f1fc;border-radius:8px;color:#665c70}.message-meta{max-width:820px;margin:-14px auto 14px;padding-right:41px;font-size:8px;color:#a49bac}.message-row.user+.message-meta{text-align:left;padding-right:0;padding-left:41px}.message-actions{display:flex;gap:4px;margin-top:7px}.message-actions button{width:27px;height:27px;border:0;background:transparent;border-radius:8px;color:#948a9d;display:grid;place-items:center}.message-actions button:hover{background:#f0ebf6;color:var(--purple)}.message-actions svg{width:13px}.typing-dots{display:flex;gap:4px;padding:4px 2px}.typing-dots i{width:5px;height:5px;border-radius:50%;background:#9b8daf;animation:typing 1.1s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
.chat-composer-wrap{padding:11px 16px 16px;background:#fff;border-top:1px solid var(--line-2)}.attachment-tray{max-width:820px;margin:0 auto 7px;display:flex;gap:7px;flex-wrap:wrap}.attachment-chip{height:34px;border:1px solid #e6dfeb;border-radius:10px;background:#faf9fb;display:flex;align-items:center;gap:7px;padding:0 9px;font-size:8px;color:#5f5667;max-width:250px}.attachment-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-chip b{font-weight:600;color:#9a919f}.attachment-chip button{border:0;background:transparent;padding:0;display:grid;place-items:center;color:#9b929f}.attachment-chip svg{width:12px}.composer{max-width:820px;margin:0 auto;border:1px solid #ddd5e5;border-radius:18px;padding:9px 10px 9px 8px;display:flex;align-items:flex-end;gap:8px;background:#fff;box-shadow:0 7px 22px rgba(42,24,66,.04);transition:.18s}.composer:focus-within{border-color:#bfa9ef;box-shadow:0 0 0 4px rgba(82,13,242,.06),0 10px 26px rgba(42,24,66,.05)}.composer textarea{flex:1;min-height:38px;max-height:130px;resize:none;border:0;outline:0;padding:8px 4px;line-height:1.7;font-size:11px;color:#302a36;background:transparent}.composer textarea::placeholder{color:#aaa1b0}.composer-tool{width:36px;height:36px;border:0;border-radius:11px;background:#f5f1fa;color:#766d80;display:grid;place-items:center;flex:0 0 auto}.composer-tool:hover{background:#eee7f8;color:var(--purple)}.composer-tool svg{width:18px}.send-btn{width:38px;height:38px;border:0;border-radius:12px;background:var(--purple);color:#fff;display:grid;place-items:center;box-shadow:0 7px 18px rgba(82,13,242,.18);flex:0 0 auto}.send-btn:disabled{opacity:.45;cursor:not-allowed}.send-btn svg{width:17px}.composer-note{max-width:820px;margin:6px auto 0;font-size:8px;color:#aaa1af;text-align:center}.file-input{display:none}
.chat-info{border-right:1px solid var(--line-2);background:#fcfbfd;padding:18px 15px;overflow-y:auto}.info-agent-card{text-align:center;padding:10px 8px 18px;border-bottom:1px solid #ece7f1}.info-agent-card img{width:78px;height:78px;border-radius:23px;object-fit:cover;margin:0 auto 9px}.info-agent-card strong{display:block;font-size:11px}.info-agent-card span{display:block;font-size:8px;color:#958b9d;margin-top:3px}.info-block{padding:15px 4px;border-bottom:1px solid #eeeaf2}.info-block:last-child{border:0}.info-block h4{font-size:9px;color:#5d5465;margin:0 0 9px}.info-block p{font-size:9px;line-height:1.9;color:#7b7283;margin:0}.capability-list{display:flex;flex-wrap:wrap;gap:5px}.capability-list span{font-size:7px;background:#f1ecf8;color:#64596f;padding:5px 7px;border-radius:8px}.info-new-chat{width:100%;height:39px;border:1px solid #dcd2e8;background:#fff;color:var(--purple);border-radius:12px;font-size:9px;font-weight:800;margin-top:14px}

/* conversations */
.conversation-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.conversation-list-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden}.list-toolbar{padding:14px;border-bottom:1px solid var(--line-2);display:flex;align-items:center;gap:9px}.list-toolbar .search-box{flex:1;width:auto}.new-chat-small{height:40px;border:0;border-radius:12px;background:var(--purple);color:#fff;padding:0 14px;font-size:10px;font-weight:800}.conversation-item{display:flex;align-items:center;gap:11px;padding:13px 15px;border-bottom:1px solid #f2eef5;transition:.16s}.conversation-item:last-child{border:0}.conversation-item:hover{background:#fcfaff}.conversation-item img{width:45px;height:45px;border-radius:14px;object-fit:cover}.conversation-item .conv-main{flex:1;min-width:0}.conversation-item strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-item p{font-size:8px;color:#958b9c;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-item time{font-size:8px;color:#aaa1af}.conversation-item .more-btn{width:30px;height:30px}.conversation-summary{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px}.conversation-summary h3{font-size:13px;margin:0 0 14px}.mini-stat{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line-2)}.mini-stat:last-child{border:0}.mini-stat span{font-size:9px;color:#83798c}.mini-stat strong{font-size:13px;color:var(--purple)}

/* files */
.files-drop{border:1.5px dashed #cfc2df;border-radius:22px;background:linear-gradient(145deg,#fff,#faf8ff);padding:32px;text-align:center;margin-bottom:20px;transition:.2s}.files-drop.is-drag{border-color:var(--purple);background:#f7f2ff}.files-drop .drop-icon{width:54px;height:54px;border-radius:17px;background:#f1ebff;color:var(--purple);display:grid;place-items:center;margin:0 auto 12px}.files-drop svg{width:25px}.files-drop h3{font-size:13px;margin:0 0 5px}.files-drop p{font-size:9px;color:#908696;margin:0 0 12px}.files-drop button{height:36px;border:1px solid #dcd1e8;background:#fff;color:var(--purple);border-radius:11px;padding:0 13px;font-size:9px;font-weight:800}.file-table{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}.file-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 140px 70px;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #f0ecf3;font-size:9px}.file-row:last-child{border:0}.file-row.head{background:#faf9fb;color:#8f8597;font-size:8px;font-weight:700}.file-name{display:flex;align-items:center;gap:9px;min-width:0}.file-icon{width:34px;height:34px;border-radius:10px;background:#f2edf9;color:var(--purple);display:grid;place-items:center}.file-icon svg{width:16px}.file-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}.file-row .remove-file{border:0;background:transparent;color:#9b929f;font-size:8px}.file-row .remove-file:hover{color:var(--danger)}

/* admin */
.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.admin-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;display:flex;align-items:center;justify-content:space-between}.admin-stat .stat-copy span{display:block;font-size:8px;color:#968d9e}.admin-stat .stat-copy strong{display:block;font-size:23px;margin-top:3px}.admin-stat .stat-icon{width:39px;height:39px}.admin-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.7fr);gap:20px}.admin-panel{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden}.panel-head{height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-2)}.panel-head strong{font-size:12px}.panel-head span{font-size:8px;color:#958c9d}.admin-agent-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 70px;align-items:center;gap:10px;padding:10px 15px;border-bottom:1px solid #f1edf4}.admin-agent-row:last-child{border:0}.admin-agent-id{display:flex;align-items:center;gap:9px;min-width:0}.admin-agent-id img{width:37px;height:37px;border-radius:11px;object-fit:cover}.admin-agent-id div{min-width:0}.admin-agent-id strong{font-size:9px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-agent-id span{font-size:7px;color:#9a919f}.status-label{font-size:8px;color:#6f6677}.switch{position:relative;width:36px;height:21px;display:inline-block}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;background:#d8d2dc;border-radius:999px;transition:.2s}.slider:before{content:"";position:absolute;width:15px;height:15px;right:3px;top:3px;background:white;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.12);transition:.2s}.switch input:checked+.slider{background:var(--purple)}.switch input:checked+.slider:before{transform:translateX(-15px)}
.user-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 80px;gap:10px;align-items:center;padding:12px 15px;border-bottom:1px solid #f1edf4}.user-row:last-child{border:0}.user-id{display:flex;align-items:center;gap:9px}.user-avatar{width:35px;height:35px;border-radius:11px;background:#eee8fb;color:var(--purple);display:grid;place-items:center;font-size:10px;font-weight:800}.user-id strong{font-size:9px;display:block}.user-id span{font-size:7px;color:#998f9f}.role-badge{font-size:7px;border-radius:8px;background:#f0ebfa;color:var(--purple);padding:5px 7px;text-align:center;font-weight:800}.active-badge{font-size:7px;color:#2d8c61;background:#effaf4;border-radius:8px;padding:5px 7px;text-align:center}.event-list{padding:4px 15px 12px}.event-item{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid #f2eef4}.event-item:last-child{border:0}.event-dot{width:8px;height:8px;background:#c4b3e9;border-radius:50%;margin-top:5px;flex:0 0 auto}.event-item div{min-width:0}.event-item strong{font-size:8px;display:block}.event-item span{font-size:7px;color:#9a919f;display:block;margin-top:2px}

/* settings */
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.settings-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px}.settings-panel h3{font-size:13px;margin:0 0 16px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--line-2)}.setting-row:last-child{border:0}.setting-row div strong{display:block;font-size:9px}.setting-row div span{display:block;font-size:8px;color:#9a919f;margin-top:3px}.segmented{background:#f3eff7;border-radius:11px;padding:3px;display:flex;gap:2px}.segmented button{border:0;background:transparent;border-radius:8px;padding:6px 9px;font-size:8px;color:#7c7384}.segmented button.active{background:#fff;color:var(--purple);box-shadow:0 2px 8px rgba(40,20,70,.06);font-weight:800}.profile-card{text-align:center}.profile-card .big-avatar{width:74px;height:74px;border-radius:24px;background:linear-gradient(145deg,#efe7ff,#d9c8ff);color:var(--purple);display:grid;place-items:center;font-size:22px;font-weight:800;margin:0 auto 10px}.profile-card h3{margin:0 0 3px}.profile-card p{font-size:8px;color:#998f9f;margin:0}.profile-meta{margin-top:16px;text-align:right}.profile-meta div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line-2);font-size:8px}.profile-meta div:last-child{border:0}.profile-meta span{color:#9a919f}.profile-meta b{font-weight:700}
.danger-zone{margin-top:16px;border:1px solid #f0dfe2;background:#fffafb;border-radius:16px;padding:14px}.danger-zone strong{font-size:9px;color:#9c3e49}.danger-zone p{font-size:7px;color:#a68288;line-height:1.7}.danger-zone button{border:1px solid #e8c6cb;background:#fff;color:#b54855;border-radius:10px;padding:7px 10px;font-size:8px;font-weight:800}

/* modal / palette / toast */
.command-backdrop{position:fixed;inset:0;background:rgba(20,12,30,.22);backdrop-filter:blur(5px);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:11vh 18px 20px}.command-panel{width:min(620px,100%);background:#fff;border:1px solid #e3dce9;border-radius:20px;box-shadow:0 30px 80px rgba(27,12,49,.2);overflow:hidden}.command-search{height:58px;display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--line)}.command-search svg{width:19px;color:#8d8494}.command-search input{border:0;outline:0;flex:1;font-size:12px}.command-results{max-height:430px;overflow-y:auto;padding:8px}.command-group-label{font-size:8px;color:#a096a8;font-weight:800;padding:8px 9px}.command-item{width:100%;height:48px;border:0;background:transparent;border-radius:12px;padding:0 10px;display:flex;align-items:center;gap:10px;text-align:right}.command-item:hover,.command-item.active{background:#f5f1fb}.command-item img{width:34px;height:34px;border-radius:10px;object-fit:cover}.command-item .cmd-icon{width:34px;height:34px;border-radius:10px;background:#f0ebf8;color:var(--purple);display:grid;place-items:center}.command-item .cmd-icon svg{width:16px}.command-item div{flex:1;min-width:0}.command-item strong{font-size:9px;display:block}.command-item span{font-size:7px;color:#9a919f;display:block;margin-top:2px}.command-item kbd{font-family:inherit;font-size:8px;color:#aaa1b0}
.modal-backdrop{position:fixed;inset:0;background:rgba(24,14,35,.25);backdrop-filter:blur(5px);z-index:190;display:grid;place-items:center;padding:18px}.modal-card{width:min(520px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:22px;border:1px solid #e5deec;box-shadow:0 30px 80px rgba(29,14,47,.18);padding:20px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal-head strong{font-size:13px}.modal-head button{width:34px;height:34px}.modal-body p{font-size:10px;color:#766d7e;line-height:1.9}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.modal-actions button{height:38px;border-radius:11px;padding:0 13px;font-size:9px;font-weight:800}.modal-actions .cancel{border:1px solid #ded7e6;background:#fff;color:#655d6d}.modal-actions .confirm{border:1px solid var(--purple);background:var(--purple);color:#fff}
.toast-stack{position:fixed;left:18px;bottom:18px;z-index:300;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{min-width:260px;max-width:390px;background:#fff;border:1px solid #e6dfe9;border-radius:14px;box-shadow:0 16px 45px rgba(30,13,50,.13);padding:11px 13px;display:flex;align-items:flex-start;gap:9px;animation:toastIn .22s ease both;pointer-events:auto}.toast-icon{width:28px;height:28px;border-radius:9px;background:#f0ebfb;color:var(--purple);display:grid;place-items:center;flex:0 0 auto}.toast-icon svg{width:14px}.toast strong{font-size:9px;display:block}.toast p{font-size:8px;color:#897f91;margin:2px 0 0;line-height:1.6}.toast.success .toast-icon{background:#edfaf3;color:#279b66}.toast.error .toast-icon{background:#fff0f1;color:#d2505c}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* responsive */
@media(max-width:1250px){
  .apps-library{grid-template-columns:repeat(6,minmax(0,1fr))}.quick-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-grid{grid-template-columns:minmax(0,1.4fr) minmax(285px,.7fr)}
}
@media(max-width:1050px){
  :root{--sidebar:230px}.search-trigger{width:210px}.profile-text{display:none}.profile-chip{padding-left:7px}.stats-strip{grid-template-columns:repeat(2,1fr)}.apps-library{grid-template-columns:repeat(5,minmax(0,1fr))}.home-grid{grid-template-columns:1fr}.recent-panel{margin-top:4px}.chat-view{grid-template-columns:1fr}.chat-info{display:none}.admin-grid,.settings-grid{grid-template-columns:1fr}.admin-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .mobile-only{display:inline-flex!important}.sidebar{transform:translateX(105%);transition:.25s ease;width:268px;box-shadow:-20px 0 50px rgba(30,14,50,.12)}.sidebar.open{transform:translateX(0)}.sidebar-scrim{display:block;position:fixed;inset:0;background:rgba(18,10,29,.22);z-index:60;opacity:0;visibility:hidden;transition:.2s}.sidebar-scrim.show{opacity:1;visibility:visible}.workspace{margin-right:0;width:100%}.topbar{height:68px;padding:0 15px}.search-trigger{width:40px;padding:0;justify-content:center}.search-trigger b,.search-trigger kbd{display:none}.system-status{display:none}.view-root{padding:18px 14px 36px;min-height:calc(100vh - 68px)}.home-hero{grid-template-columns:1fr;padding:24px 20px}.hero-visual{height:155px}.hero-visual .r2{width:205px;height:205px}.hero-visual .r1{width:160px;height:160px}.hero-visual .core{width:110px;height:110px}.hero-visual .core img{width:88px}.quick-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 4px}.agent-app-icon{width:66px;height:66px}.apps-library{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 5px}.library-app .app-img{width:74px;height:74px}.agents-head{align-items:flex-start;flex-direction:column}.filter-bar{width:100%}.filter-bar .search-box{width:100%}.chat-view{height:calc(100vh - 104px);min-height:520px;border-radius:18px}.chat-header{height:64px;padding:0 11px}.chat-messages{padding:18px 12px}.message-bubble{max-width:88%;font-size:10px}.chat-composer-wrap{padding:8px 9px 12px}.starter-grid{grid-template-columns:1fr}.conversation-layout{grid-template-columns:1fr}.conversation-summary{display:none}.file-row{grid-template-columns:minmax(0,1fr) 75px 40px}.file-row>:nth-child(3),.file-row.head>:nth-child(3){display:none}.login-screen{grid-template-columns:1fr}.login-brand-panel{display:none}.login-form-panel{min-height:100vh;padding:28px}.mobile-login-logo{display:block;margin-bottom:42px}.mobile-login-logo img{width:145px}.login-card{max-width:430px}.toast-stack{left:10px;right:10px;bottom:10px}.toast{min-width:0;max-width:none;width:100%}.command-backdrop{padding-top:8vh}
}
@media(max-width:560px){
  .topbar-actions{gap:5px}.profile-chip{border:0;background:transparent;padding:0}.page-heading span{display:none}.view-root{padding-left:10px;padding-right:10px}.home-hero{border-radius:22px;padding:22px 16px}.home-hero h1{font-size:27px}.home-hero p{font-size:11px}.hero-visual{display:none}.stats-strip{gap:8px}.stat-card{padding:13px 11px}.stat-card strong{font-size:15px}.stat-icon{width:34px;height:34px}.quick-agent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.agent-app-icon{width:72px;height:72px}.apps-library{grid-template-columns:repeat(3,minmax(0,1fr))}.library-app{padding-right:3px;padding-left:3px}.library-app .app-img{width:78px;height:78px}.chat-agent-id img{width:40px;height:40px}.chat-agent-id strong{font-size:10px}.chat-header-actions button:nth-child(2){display:none}.message-row{gap:7px}.message-avatar{width:27px;height:27px}.message-bubble{max-width:91%;padding:10px 11px}.composer{border-radius:15px}.admin-stats{grid-template-columns:1fr 1fr;gap:8px}.admin-stat{padding:13px}.admin-stat .stat-copy strong{font-size:19px}.admin-grid{gap:12px}.admin-agent-row{grid-template-columns:minmax(0,1fr) 50px}.admin-agent-row>.status-label{display:none}.user-row{grid-template-columns:minmax(0,1fr) 70px}.user-row>.active-badge{display:none}.settings-panel{padding:15px}.setting-row{align-items:flex-start;flex-direction:column}.segmented{align-self:stretch}.segmented button{flex:1}.login-form-panel{padding:24px 20px}.login-card h2{font-size:26px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
body[data-density="compact"] .view-root{padding-top:18px}
body[data-density="compact"] .quick-agent-grid{gap:8px}
body[data-density="compact"] .agent-app-tile{padding-top:7px;padding-bottom:7px}
body[data-density="compact"] .apps-library{gap:10px 7px}
body[data-density="compact"] .library-app{padding-top:8px;padding-bottom:8px}
body[data-density="compact"] .stat-card{padding-top:12px;padding-bottom:12px}


/* ==========================================================================\n   MOAAMAH AI PLATFORM v2 — Chat-first investor workspace\n   ========================================================================== */
.ui-v2{
  --sidebar:300px;
  --bg:#fbfaff;
  --glass:rgba(255,255,255,.72);
  --glass-strong:rgba(255,255,255,.88);
  --glass-line:rgba(96,58,164,.13);
  --ink:#17131d;
  --muted:#706878;
  --shadow-glass:0 18px 55px rgba(48,24,86,.08),inset 0 1px 0 rgba(255,255,255,.78);
  font-size:16px;
}
.ui-v2:before{content:"";position:fixed;inset:0;z-index:-2;background:radial-gradient(circle at 15% 8%,rgba(82,13,242,.055),transparent 28%),radial-gradient(circle at 85% 92%,rgba(140,99,247,.05),transparent 30%),#fbfaff;pointer-events:none}
.ui-v2 .glass-panel{background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--shadow-glass);backdrop-filter:blur(22px) saturate(1.25);-webkit-backdrop-filter:blur(22px) saturate(1.25)}

/* Sidebar — deliberately ChatGPT-like: conversation first, no logo/content collision */
.ui-v2 .sidebar{width:var(--sidebar);padding:18px 14px 14px;background:rgba(248,247,251,.91);border-left:1px solid rgba(66,42,98,.09);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:-10px 0 35px rgba(28,13,50,.025)}
.ui-v2 .sidebar-head{height:70px;align-items:center;padding:0 8px 10px}
.ui-v2 .brand-mark img{width:150px}
.ui-v2 .sidebar-new-chat{width:100%;height:52px;border:1px solid rgba(82,13,242,.14);background:rgba(255,255,255,.82);border-radius:16px;padding:0 14px;display:flex;align-items:center;gap:11px;color:#342b40;font-weight:800;box-shadow:0 8px 22px rgba(42,20,70,.035);transition:.18s;margin:2px 0 14px}
.ui-v2 .sidebar-new-chat:hover{background:#fff;border-color:rgba(82,13,242,.28);transform:translateY(-1px);box-shadow:0 12px 28px rgba(82,13,242,.08)}
.ui-v2 .sidebar-new-chat svg{width:20px;color:var(--purple)}
.ui-v2 .sidebar-new-chat b{font-size:14px;flex:1;text-align:right}
.ui-v2 .sidebar-new-chat kbd{font-family:var(--font);font-size:12px;color:#9a90a5;border:1px solid #e5dfeb;background:#faf9fb;border-radius:8px;padding:2px 7px}
.ui-v2 .main-nav,.ui-v2 .bottom-nav{gap:3px}
.ui-v2 .nav-item{height:47px;border-radius:13px;padding:0 12px;gap:11px;color:#655d6e}
.ui-v2 .nav-item b{font-size:13px;font-weight:700}
.ui-v2 .nav-item.active{background:rgba(82,13,242,.08);color:var(--purple)}
.ui-v2 .nav-item.active:before{display:none}
.ui-v2 .sidebar-recents{margin-top:18px;min-height:0;display:flex;flex-direction:column;flex:1;overflow:hidden}
.ui-v2 .sidebar-section-title{display:flex;align-items:center;justify-content:space-between;padding:0 10px 9px;color:#93899d}
.ui-v2 .sidebar-section-title span{font-size:11px;font-weight:800}
.ui-v2 .sidebar-section-title button{border:0;background:transparent;color:#8a7c9a;font-size:10px;padding:3px}
.ui-v2 .sidebar-recent-list{display:flex;flex-direction:column;gap:3px;overflow:auto;padding:0 2px 6px;scrollbar-width:thin}
.ui-v2 .sidebar-thread{width:100%;border:0;background:transparent;border-radius:13px;min-height:50px;padding:7px 8px;display:flex;align-items:center;gap:9px;text-align:right;color:#514959;transition:.16s}
.ui-v2 .sidebar-thread:hover{background:rgba(255,255,255,.84)}
.ui-v2 .sidebar-thread-dot{width:31px;height:31px;border-radius:10px;overflow:hidden;background:#eee7fb;flex:0 0 auto}
.ui-v2 .sidebar-thread-dot img{width:100%;height:100%;object-fit:cover}
.ui-v2 .sidebar-thread>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:2px}
.ui-v2 .sidebar-thread b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.ui-v2 .sidebar-thread small{font-size:9px;color:#9d94a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ui-v2 .sidebar-empty{font-size:10px;color:#aaa2af;padding:10px 12px;line-height:1.8}
.ui-v2 .sidebar-spacer{flex:0;min-height:8px}
.ui-v2 .sidebar-version{font-size:9px;color:#b0a8b5;margin-top:9px}

/* Workspace + top bar */
.ui-v2 .workspace{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh;background:transparent}
.ui-v2 .topbar{height:76px;padding:0 30px;background:rgba(251,250,255,.68);border-bottom:1px solid rgba(82,60,105,.07);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.ui-v2 .page-heading strong{font-size:16px}.ui-v2 .page-heading span{font-size:11px}
.ui-v2 .search-trigger{width:285px;height:44px;border:1px solid rgba(87,56,119,.11);background:rgba(255,255,255,.62);border-radius:14px}.ui-v2 .search-trigger b{font-size:12px}
.ui-v2 .system-status{height:42px;font-size:11px;border-radius:14px;background:rgba(255,255,255,.65)}
.ui-v2 .profile-chip{height:46px;border-radius:15px;background:rgba(255,255,255,.72);border:1px solid rgba(90,62,118,.1)}
.ui-v2 .profile-text b{font-size:11px}.ui-v2 .profile-text small{font-size:9px}
.ui-v2 .view-root{max-width:1480px;padding:34px 38px 60px;min-height:calc(100vh - 76px)}
.ui-v2 .section-title{margin-bottom:20px;align-items:center}.ui-v2 .section-title h2{font-size:21px}.ui-v2 .section-title p{font-size:12px;line-height:1.7}.ui-v2 .section-title button{font-size:12px}

/* Home — task first, like a modern AI workspace */
.ui-v2 .home-focus{min-height:455px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px 20px 46px;position:relative}
.ui-v2 .home-brand-orb{width:102px;height:102px;border-radius:31px;background:rgba(255,255,255,.67);border:1px solid rgba(82,13,242,.10);box-shadow:0 20px 52px rgba(82,13,242,.10),inset 0 1px 0 #fff;display:grid;place-items:center;position:relative;margin-bottom:24px;backdrop-filter:blur(18px)}
.ui-v2 .home-brand-orb:before{content:"";position:absolute;inset:-19px;border:1px solid rgba(82,13,242,.08);border-radius:42px;animation:orbBreath 3.8s ease-in-out infinite}
.ui-v2 .home-brand-orb img{width:82px;height:82px;object-fit:contain;position:relative;z-index:2}.ui-v2 .home-brand-orb i{position:absolute;right:9px;bottom:9px;width:11px;height:11px;background:#2bb673;border:3px solid #fff;border-radius:50%;z-index:3}
@keyframes orbBreath{50%{transform:scale(1.035);opacity:.45}}
.ui-v2 .home-kicker,.ui-v2 .page-kicker{display:block;font-size:10px;letter-spacing:.18em;color:var(--purple);font-weight:800;margin-bottom:9px}
.ui-v2 .home-focus-copy h1{font-size:clamp(32px,4vw,54px);letter-spacing:-.035em;line-height:1.25;margin:0 0 11px;font-weight:800}.ui-v2 .home-focus-copy p{font-size:15px;color:#756c7d;margin:0;line-height:1.9}
.ui-v2 .home-prompt-glass{width:min(850px,100%);margin-top:28px;padding:12px 13px 11px;border-radius:26px;background:rgba(255,255,255,.77);border:1px solid rgba(77,44,117,.14);box-shadow:0 22px 65px rgba(48,25,82,.09),inset 0 1px 0 #fff;backdrop-filter:blur(24px)}
.ui-v2 .home-prompt-glass textarea{width:100%;min-height:72px;max-height:145px;resize:none;border:0;outline:0;background:transparent;padding:11px 13px;font-size:16px;line-height:1.8;color:#2c2532}.ui-v2 .home-prompt-glass textarea::placeholder{color:#a59ca9}
.ui-v2 .home-prompt-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 2px}.ui-v2 .home-prompt-actions button{height:43px;border-radius:14px;padding:0 14px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}.ui-v2 .home-manual{border:0;background:#f6f2fb;color:#6b6076}.ui-v2 .home-send{border:0;background:var(--purple);color:#fff;box-shadow:0 9px 24px rgba(82,13,242,.18)}.ui-v2 .home-prompt-actions svg{width:18px}
.ui-v2 .home-suggestions{width:min(850px,100%);display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:13px}.ui-v2 .home-suggestions button{min-height:52px;text-align:right;border:1px solid rgba(82,57,108,.10);background:rgba(255,255,255,.52);border-radius:15px;padding:10px 13px;display:flex;align-items:center;gap:9px;color:#665d6e;font-size:11px;font-weight:700;transition:.18s}.ui-v2 .home-suggestions button:hover{background:#fff;border-color:rgba(82,13,242,.18);color:var(--purple);transform:translateY(-1px)}.ui-v2 .home-suggestions svg{width:16px;flex:0 0 auto}
.ui-v2 .home-agent-launcher,.ui-v2 .home-insight,.ui-v2 .home-recents{border-radius:27px;padding:25px}
.ui-v2 .quick-agent-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:15px 10px}
.ui-v2 .agent-app-tile{padding:8px 5px 12px;border-radius:18px}.ui-v2 .agent-app-tile:hover{background:rgba(255,255,255,.72);transform:translateY(-3px)}
.ui-v2 .agent-app-icon{width:86px;height:86px;border-radius:25px;box-shadow:0 13px 28px rgba(50,24,88,.08)}.ui-v2 .agent-app-tile strong{font-size:13px;margin-top:9px}.ui-v2 .agent-app-tile>span:last-child{font-size:9px;margin-top:3px}
.ui-v2 .home-lower-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px;margin-top:18px}.ui-v2 .home-insight{display:flex;align-items:center;justify-content:space-between;gap:20px}.ui-v2 .home-insight>div:first-child>span{font-size:10px;color:var(--purple);font-weight:800}.ui-v2 .home-insight h3{font-size:20px;margin:5px 0 7px}.ui-v2 .home-insight p{font-size:11px;color:#847a8c;margin:0;line-height:1.8}.ui-v2 .home-metrics{display:flex;gap:10px}.ui-v2 .home-metrics b{min-width:95px;height:82px;border-radius:20px;background:rgba(82,13,242,.055);color:var(--purple);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:24px}.ui-v2 .home-metrics small{font-size:8px;color:#7f7489;margin-top:2px}.ui-v2 .recent-row strong{font-size:11px}.ui-v2 .recent-row p{font-size:9px}

/* Agents — app launcher */
.ui-v2 .agents-page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 2px 26px}.ui-v2 .agents-page-head h1{font-size:38px;line-height:1.3;margin:0 0 8px}.ui-v2 .agents-page-head p{font-size:14px;line-height:1.9;color:#746b7c;margin:0;max-width:760px}.ui-v2 .agents-head-orb{width:116px;height:116px;border-radius:34px;background:rgba(255,255,255,.7);border:1px solid rgba(82,13,242,.10);box-shadow:0 18px 46px rgba(82,13,242,.08);display:grid;place-items:center}.ui-v2 .agents-head-orb img{width:90px}
.ui-v2 .agents-toolbar{position:sticky;top:88px;z-index:20;display:flex;align-items:center;gap:13px;padding:12px;border-radius:20px;margin-bottom:28px}.ui-v2 .agents-toolbar .search-box{width:330px;min-width:250px;height:46px;border-radius:14px;background:rgba(255,255,255,.72)}.ui-v2 .agents-toolbar .search-box input{font-size:12px}.ui-v2 .filter-scroll{display:flex;gap:7px;overflow:auto;scrollbar-width:none}.ui-v2 .filter-scroll::-webkit-scrollbar{display:none}.ui-v2 .filter-chip{font-size:10px;padding:9px 13px;white-space:nowrap;background:rgba(255,255,255,.55)}
.ui-v2 .apps-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ui-v2 .library-app{min-height:128px;border:1px solid rgba(78,54,104,.10);background:rgba(255,255,255,.64);border-radius:23px;padding:15px;display:grid;grid-template-columns:84px minmax(0,1fr) 30px;align-items:center;gap:14px;text-align:right;transition:.2s;box-shadow:0 10px 28px rgba(40,21,70,.035);backdrop-filter:blur(15px)}
.ui-v2 .library-app:hover{transform:translateY(-4px);background:#fff;border-color:rgba(82,13,242,.18);box-shadow:0 18px 38px rgba(82,13,242,.08)}
.ui-v2 .library-app .app-img{width:84px;height:84px;border-radius:24px;margin:0;box-shadow:0 12px 26px rgba(47,22,83,.09)}.ui-v2 .library-app-copy{min-width:0}.ui-v2 .library-app strong{font-size:14px;line-height:1.5}.ui-v2 .library-app small{font-size:10px;margin-top:4px;color:#8d8396}.ui-v2 .app-open-hint{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#f6f1ff;color:var(--purple);opacity:.72}.ui-v2 .app-open-hint svg{width:15px}.ui-v2 .online-dot{width:10px;height:10px;border-width:3px}

/* Chat — full canvas, centered thread, floating glass composer */
.ui-v2[data-view="chat"] .view-root{max-width:none;padding:0;min-height:calc(100vh - 76px)}
.ui-v2[data-view="chat"] .page-heading span{display:none}
.ui-v2 .chat-view{height:calc(100vh - 76px);min-height:560px;background:transparent;border:0;border-radius:0;overflow:hidden;display:block;box-shadow:none}
.ui-v2 .chat-main{height:100%;position:relative}
.ui-v2 .chat-header{height:70px;margin:12px auto 0;width:min(980px,calc(100% - 42px));border-radius:20px;padding:0 14px 0 17px;position:relative;z-index:5}
.ui-v2 .chat-agent-id{border:0;background:transparent;display:flex;align-items:center;gap:11px;text-align:right;color:#39313f;padding:0}.ui-v2 .chat-agent-id img{width:46px;height:46px;border-radius:14px;object-fit:cover}.ui-v2 .chat-agent-id strong{font-size:13px}.ui-v2 .chat-agent-id span{font-size:9px;color:#8d8396;margin-top:2px;display:block}.ui-v2 .chat-agent-id>svg{width:15px;color:#968b9e;margin-right:2px}.ui-v2 .chat-header-actions{display:flex;gap:6px}.ui-v2 .chat-text-action{height:38px;border:0;border-radius:12px;background:rgba(248,246,251,.8);padding:0 11px;display:flex;align-items:center;gap:7px;color:#6e6576;font-size:10px;font-weight:700}.ui-v2 .chat-text-action svg{width:16px}
.ui-v2 .chat-messages{height:calc(100% - 184px);overflow-y:auto;padding:42px max(24px,calc((100% - 900px)/2)) 170px;background:transparent;scroll-padding-bottom:150px}
.ui-v2 .chat-welcome{max-width:790px;margin:34px auto 0}.ui-v2 .chat-welcome .welcome-agent{width:108px;height:108px;border-radius:32px;box-shadow:0 20px 45px rgba(82,13,242,.10);margin-bottom:16px}.ui-v2 .chat-welcome-kicker{display:block;font-size:9px;letter-spacing:.11em;color:var(--purple);font-weight:800;margin-bottom:8px}.ui-v2 .chat-welcome h2{font-size:28px;margin-bottom:8px}.ui-v2 .chat-welcome p{font-size:13px;line-height:1.95;max-width:700px}.ui-v2 .starter-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:25px}.ui-v2 .starter-card{min-height:72px;border-radius:18px;padding:13px 14px;font-size:11px;background:rgba(255,255,255,.62);border-color:rgba(79,55,105,.1);box-shadow:0 8px 24px rgba(40,20,65,.025)}.ui-v2 .starter-card b{font-size:11px;line-height:1.7;flex:1}.ui-v2 .starter-card>svg:last-child{width:15px;color:#ad9fba}.ui-v2 .starter-card:hover{background:#fff;transform:translateY(-2px)}
.ui-v2 .message-row{max-width:900px;margin-right:auto;margin-left:auto;gap:12px;align-items:flex-start}.ui-v2 .message-avatar{width:36px;height:36px;border-radius:12px;font-size:10px}.ui-v2 .message-bubble{font-size:14px;line-height:1.9;max-width:calc(100% - 55px);padding:2px 4px;background:transparent;border:0;box-shadow:none}.ui-v2 .message-row.user{flex-direction:row-reverse}.ui-v2 .message-row.user .message-bubble{background:rgba(82,13,242,.075);border:1px solid rgba(82,13,242,.08);padding:13px 16px;border-radius:20px 20px 6px 20px;max-width:78%}.ui-v2 .message-row.assistant .message-bubble{padding-top:5px}.ui-v2 .message-bubble p{font-size:14px;line-height:1.9;margin:0 0 9px}.ui-v2 .message-bubble li{font-size:13px;line-height:1.9}.ui-v2 .message-meta{max-width:900px;margin:3px auto 22px;font-size:8px;color:#aaa0af;padding-right:48px}.ui-v2 .message-row.user+.message-meta{text-align:left;padding-right:0;padding-left:8px}.ui-v2 .message-actions button{width:29px;height:29px}
.ui-v2 .chat-composer-wrap{position:absolute;left:0;right:0;bottom:0;padding:18px 24px 17px;background:linear-gradient(to top,#fbfaff 58%,rgba(251,250,255,.92) 76%,rgba(251,250,255,0));border:0;z-index:8;pointer-events:none}.ui-v2 .attachment-tray,.ui-v2 .composer,.ui-v2 .composer-note{pointer-events:auto}.ui-v2 .attachment-tray{max-width:900px;margin-bottom:8px}.ui-v2 .composer{max-width:900px;border-radius:25px;padding:11px 12px 10px 10px;border:1px solid rgba(79,47,116,.16);background:rgba(255,255,255,.80);box-shadow:0 18px 48px rgba(48,24,82,.10),inset 0 1px 0 #fff}.ui-v2 .composer:focus-within{border-color:rgba(82,13,242,.28);box-shadow:0 20px 56px rgba(82,13,242,.11),0 0 0 4px rgba(82,13,242,.045)}.ui-v2 .composer textarea{min-height:44px;max-height:160px;font-size:14px;padding:9px 5px;line-height:1.7}.ui-v2 .composer-tool{width:42px;height:42px;border-radius:13px}.ui-v2 .send-btn{width:43px;height:43px;border-radius:14px}.ui-v2 .composer-note{max-width:900px;font-size:9px;color:#9d94a4;margin-top:7px}.ui-v2 .attachment-chip{height:39px;border-radius:12px;font-size:9px;background:rgba(255,255,255,.85)}

/* Other screens — enlarge legibility */
.ui-v2 .conversation-layout,.ui-v2 .settings-grid,.ui-v2 .admin-grid{gap:20px}.ui-v2 .conversation-list-card,.ui-v2 .conversation-summary,.ui-v2 .settings-panel,.ui-v2 .admin-panel,.ui-v2 .file-table,.ui-v2 .files-drop{border-radius:24px}.ui-v2 .conversation-item strong,.ui-v2 .file-row b,.ui-v2 .admin-agent-id strong,.ui-v2 .user-id strong{font-size:12px}.ui-v2 .conversation-item p,.ui-v2 .admin-agent-id span,.ui-v2 .user-id span,.ui-v2 .file-row{font-size:10px}.ui-v2 .files-drop h3{font-size:20px}.ui-v2 .files-drop p{font-size:11px}
.ui-v2 .login-card h2{font-size:32px}.ui-v2 .login-sub{font-size:13px}.ui-v2 .field-label{font-size:12px}.ui-v2 .login-card{max-width:490px}.ui-v2 .login-brand-inner h1{font-size:46px}.ui-v2 .login-brand-inner p{font-size:15px}

@media(max-width:1280px){
  .ui-v2{--sidebar:270px}.ui-v2 .apps-library{grid-template-columns:repeat(3,minmax(0,1fr))}.ui-v2 .quick-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ui-v2 .home-lower-grid{grid-template-columns:1fr}.ui-v2 .home-agent-launcher{padding:22px}.ui-v2 .sidebar-thread b{max-width:160px}
}
@media(max-width:980px){
  .ui-v2 .workspace{margin-right:0;width:100%}.ui-v2 .sidebar{width:286px;transform:translateX(105%)}.ui-v2 .sidebar.open{transform:translateX(0)}.ui-v2 .view-root{padding:26px 20px 48px}.ui-v2 .topbar{height:70px;padding:0 16px}.ui-v2 .search-trigger{width:44px}.ui-v2 .home-focus{min-height:410px;padding-top:24px}.ui-v2 .home-focus-copy h1{font-size:38px}.ui-v2 .quick-agent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ui-v2 .apps-library{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-v2 .agents-page-head h1{font-size:31px}.ui-v2 .agents-toolbar{top:80px;flex-direction:column;align-items:stretch}.ui-v2 .agents-toolbar .search-box{width:100%}.ui-v2[data-view="chat"] .view-root{min-height:calc(100vh - 70px)}.ui-v2 .chat-view{height:calc(100vh - 70px)}.ui-v2 .chat-header{width:calc(100% - 24px);margin-top:8px}.ui-v2 .chat-messages{padding-right:18px;padding-left:18px}.ui-v2 .chat-composer-wrap{padding-left:12px;padding-right:12px}
}
@media(max-width:640px){
  .ui-v2 .view-root{padding:20px 13px 38px}.ui-v2 .page-heading strong{font-size:14px}.ui-v2 .home-focus{min-height:390px;padding:18px 0 30px}.ui-v2 .home-brand-orb{width:88px;height:88px;border-radius:27px}.ui-v2 .home-brand-orb img{width:70px;height:70px}.ui-v2 .home-focus-copy h1{font-size:31px}.ui-v2 .home-focus-copy p{font-size:13px;padding:0 8px}.ui-v2 .home-prompt-glass{margin-top:21px;border-radius:22px}.ui-v2 .home-prompt-glass textarea{font-size:14px;min-height:62px}.ui-v2 .home-suggestions{grid-template-columns:1fr}.ui-v2 .home-suggestions button:nth-child(n+3){display:none}.ui-v2 .home-agent-launcher,.ui-v2 .home-insight,.ui-v2 .home-recents{padding:17px;border-radius:21px}.ui-v2 .quick-agent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 4px}.ui-v2 .agent-app-icon{width:76px;height:76px}.ui-v2 .agent-app-tile strong{font-size:11px}.ui-v2 .home-insight{align-items:flex-start;flex-direction:column}.ui-v2 .home-metrics{width:100%}.ui-v2 .home-metrics b{flex:1}.ui-v2 .agents-page-head{padding-top:5px}.ui-v2 .agents-head-orb{display:none}.ui-v2 .agents-page-head h1{font-size:28px}.ui-v2 .agents-page-head p{font-size:12px}.ui-v2 .agents-toolbar{margin-bottom:18px;padding:9px;border-radius:17px}.ui-v2 .apps-library{grid-template-columns:1fr;gap:10px}.ui-v2 .library-app{min-height:108px;grid-template-columns:72px minmax(0,1fr) 28px;border-radius:19px;padding:12px}.ui-v2 .library-app .app-img{width:72px;height:72px;border-radius:21px}.ui-v2 .library-app strong{font-size:14px}.ui-v2 .chat-header{height:63px;border-radius:17px;padding:0 9px}.ui-v2 .chat-agent-id img{width:41px;height:41px}.ui-v2 .chat-agent-id strong{font-size:11px}.ui-v2 .chat-text-action span{display:none}.ui-v2 .chat-text-action{width:38px;padding:0;justify-content:center}.ui-v2 .chat-messages{height:calc(100% - 160px);padding:27px 11px 145px}.ui-v2 .chat-welcome{margin-top:18px}.ui-v2 .chat-welcome .welcome-agent{width:90px;height:90px}.ui-v2 .chat-welcome h2{font-size:22px}.ui-v2 .chat-welcome p{font-size:12px}.ui-v2 .starter-grid{grid-template-columns:1fr}.ui-v2 .starter-card{min-height:60px}.ui-v2 .message-avatar{width:31px;height:31px;border-radius:10px}.ui-v2 .message-bubble,.ui-v2 .message-bubble p{font-size:13px}.ui-v2 .message-row.user .message-bubble{max-width:85%}.ui-v2 .chat-composer-wrap{padding-bottom:max(10px,env(safe-area-inset-bottom))}.ui-v2 .composer{border-radius:21px}.ui-v2 .composer textarea{font-size:13px}.ui-v2 .composer-note{font-size:8px}.ui-v2 .topbar-actions{gap:5px}.ui-v2 .profile-chip{border:0;background:transparent}.ui-v2 .profile-text{display:none}
}
@media(prefers-reduced-motion:reduce){.ui-v2 .home-brand-orb:before{animation:none}.ui-v2 *{scroll-behavior:auto!important}}

/* v2.0.1 visual QA refinements */
.ui-v2 .filter-chip.active{background:var(--purple)!important;color:#fff!important;border-color:var(--purple)!important;box-shadow:0 6px 16px rgba(82,13,242,.14)}
.ui-v2 .apps-library{grid-template-columns:repeat(3,minmax(0,1fr))}
.ui-v2 .library-app strong{font-size:15px;white-space:normal;overflow:visible;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ui-v2 .agent-app-tile strong{font-size:13px;white-space:normal;overflow:visible;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:39px}
.ui-v2 .agent-app-tile>span:last-child{font-size:9px;white-space:normal;line-height:1.45;min-height:26px}
@media(max-width:1280px){.ui-v2 .apps-library{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ui-v2 .apps-library{grid-template-columns:1fr}.ui-v2 .agent-app-tile strong{font-size:11px;min-height:34px}}
