:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#283759;background:#f8f9ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{height:100vh;height:100dvh;display:grid;grid-template-columns:282px minmax(0,1fr);overflow:hidden}.sidebar{z-index:5;background:linear-gradient(159deg,#23225d 0%,#5637aa 43%,#8a41b9 76%,#c35fa2 100%);color:#fff;display:flex;flex-direction:column;padding:27px 16px 18px;min-height:0;box-shadow:12px 0 28px #35215e12}.side-brand{display:flex;align-items:center;gap:11px;margin:2px 7px 27px}.side-logo,.logo-symbol{display:grid;place-items:center;flex:none;background:linear-gradient(140deg,#8a69f8 5%,#fd86c5 52%,#5fcef4);color:white;border-radius:16px;box-shadow:0 9px 20px #26096438;font-size:29px;width:45px;height:45px}.side-brand strong{display:block;font-weight:850;font-size:20px;letter-spacing:.015em}.side-brand small{display:block;color:#e9d9ff;font-size:11px;margin-top:3px}.side-close{display:none;margin-left:auto;background:transparent;border:0;color:#fff;font-size:28px}.new-chat{border:1px solid #ffffff66;border-radius:17px;background:linear-gradient(100deg,#7374f8,#dd68ca);box-shadow:0 10px 23px #1c14553c;color:white;padding:15px 19px;text-align:left;font-weight:750;font-size:15px;transition:filter .15s}.new-chat:hover{filter:brightness(1.09)}.new-chat span{font-size:20px;margin-right:9px}.history-head{display:flex;justify-content:space-between;padding:30px 9px 12px;font-size:10px;letter-spacing:.14em;font-weight:800;color:#dbd5fb}.history-head span:last-child{letter-spacing:0;border-radius:20px;background:#ffffff28;padding:3px 9px}.chat-list{overflow-y:auto;min-height:0;flex:1;scrollbar-color:#a88fdb transparent;scrollbar-width:thin}.chat-item{display:flex;gap:5px;align-items:center;margin:3px 1px;border:1px solid transparent;border-radius:12px}.chat-item.current{background:#ffffff27;border-color:#ffffff34}.chat-select{color:#fff;border:0;background:transparent;flex:1;min-width:0;text-align:left;padding:13px 12px;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-select:hover{background:#ffffff1a}.chat-delete{border:0;background:transparent;color:#eadffd;padding:9px 12px;opacity:.65;font-size:18px}.chat-delete:hover{opacity:1}.side-empty{color:#e4dafa;padding:0 11px;line-height:1.6;font-size:13px}.sidebar-bottom{border-top:1px solid #ffffff38;padding:17px 5px 0}.account{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(130deg,#68d8ed,#eb76d9);display:grid;place-items:center;font-weight:800}.account-text{overflow:hidden}.account-text strong,.account-text small{display:block;max-width:180px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.account-text strong{font-size:12px}.account-text small{font-size:10px;color:#e1dafb}.sign-out{margin-top:12px;color:#f3edff;border:1px solid #ffffff48;background:#ffffff13;border-radius:10px;padding:9px 11px;width:100%;text-align:center;font-size:12px}.sign-out:hover{background:#ffffff2b}
.main-panel{min-width:0;background:radial-gradient(ellipse at 30% 45%,#eee6ff 0%,transparent 44%),radial-gradient(ellipse at 90% 32%,#dbf3ff 0%,transparent 38%),radial-gradient(ellipse at 68% 100%,#ffdfef 0%,transparent 40%),#fbfbff;display:flex;flex-direction:column;min-height:0}.topbar{height:78px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:#ffffffbf;backdrop-filter:blur(10px);border-bottom:1px solid #ede9fb;flex:none}.top-title strong{display:block;font-size:21px;color:#5437b7;letter-spacing:-.04em}.top-title small{font-size:11px;color:#8a8da3}.signed-in{font-size:12px;color:#7561b0;border-radius:20px;border:1px solid #e5dcfb;padding:8px 14px;background:white}.menu-button{display:none;border:0;background:none;color:#5637ac;font-size:23px}.chat-screen{width:100%;flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.messages{width:min(100%,950px);margin:0 auto;min-height:0;flex:1;overflow-y:auto;padding:30px 42px 15px;display:flex;flex-direction:column;gap:21px;scrollbar-color:#cbbfeb transparent;scrollbar-width:thin}.welcome{margin:auto 0;text-align:center;padding:18px 0 16px}.hero-logo{width:84px;height:84px;border-radius:26px;background:linear-gradient(145deg,#8358fa,#ed74c0 55%,#48bfef);color:white;box-shadow:0 16px 42px #a278db3c;display:grid;place-items:center;font-size:48px;margin:0 auto 24px}.welcome h1{font-size:clamp(30px,4.2vw,52px);line-height:1.13;letter-spacing:-.06em;margin:0;color:#263458}.welcome p{color:#76819f;margin:15px 0 0;font-size:15px}.composer-area{width:min(100%,950px);margin:auto auto 0;padding:0 42px 19px;flex:none}.composer{background:#fff;box-shadow:0 15px 50px #48387a1e,0 0 0 5px #a58bf01d;border:1px solid #d7c9f6;border-radius:22px;min-height:68px;display:flex;gap:8px;align-items:flex-end;padding:9px 10px 9px 20px}.composer:focus-within{border-color:#946af6;box-shadow:0 16px 50px #48387a25,0 0 0 5px #9770ed2b}.composer textarea{background:transparent;flex:1;border:0;outline:0;min-height:44px;max-height:170px;resize:none;font-size:16px;line-height:1.5;color:#293350;padding:10px 0 4px}.composer textarea::placeholder{color:#9ca4be}.composer button{flex:none;height:46px;width:46px;border-radius:14px;border:0;background:linear-gradient(150deg,#6658e8,#be5ccf);box-shadow:0 5px 14px #7c55c93b;color:#fff;font-size:25px}.composer button:disabled{filter:grayscale(.4);opacity:.55;cursor:not-allowed}.hint{text-align:center;color:#a0a2b7;font-size:10px;margin:13px 0 0}.feedback{margin:0 0 8px;color:#8a4da3;font-size:12px;min-height:15px}.feedback:empty{visibility:hidden}.message{max-width:min(88%,780px);font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start;background:#fff;padding:17px 20px;border:1px solid #e8e8f7;border-radius:19px 19px 19px 6px;color:#303958;box-shadow:0 9px 24px #5951830e}.message.user{align-self:flex-end;background:linear-gradient(120deg,#6357e5,#885ae6);border-color:transparent;color:white;border-radius:19px 19px 6px 19px;box-shadow:0 8px 21px #624cdf28}.message.error{border-color:#ffd0db;background:#fff6f9;color:#993457}.message pre{background:#171e3e;color:#edf5ff;padding:15px;border-radius:12px;overflow:auto;font-size:12px;line-height:1.5;white-space:pre}.message code{font-family:ui-monospace,Consolas,monospace}.sidebar-backdrop[hidden]{display:none}
.login-page{height:100vh;height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 10% 12%,#d9c9ff,transparent 50%),radial-gradient(ellipse at 90% 90%,#b5e5ff,transparent 52%),#f7f8ff}.login-card{text-align:center;max-width:480px;width:100%;padding:44px 32px;border:1px solid #e4defb;background:#ffffffed;border-radius:30px;box-shadow:0 22px 65px #57468e20}.logo-symbol{width:85px;height:85px;font-size:48px;border-radius:25px;margin:auto}.eyebrow{color:#8262d4;font-weight:800;letter-spacing:.16em;font-size:10px;margin-top:30px}.login-card h1{font-size:33px;color:#283458;letter-spacing:-.06em}.login-card h1 span{color:#7450d6}.login-desc{color:#7b849e;line-height:1.6}.google-button{display:flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;background:#fff;color:#2e3754;border:1px solid #cbd1e6;font-weight:700;border-radius:14px;padding:14px;margin:27px auto 0;max-width:310px;box-shadow:0 6px 20px #3f417014}.google-button:hover{border-color:#8667e9}.google-mark{font-weight:900;font-size:22px;color:#4285f4}.login-alert{font-size:12px;line-height:1.55;padding:11px;border-radius:10px;background:#fff1f5;color:#933654}.login-fine{font-size:11px;color:#8991a4;line-height:1.65;margin-top:24px}.login-fine a{color:#7357c4}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:min(86vw,300px);transform:translateX(-105%);transition:transform .2s ease;box-shadow:16px 0 30px #221b5570}.sidebar.open{transform:translateX(0)}.side-close,.menu-button{display:block}.sidebar-backdrop:not([hidden]){position:fixed;inset:0;background:#1b1f4a73;z-index:4}.main-panel{height:100vh;height:100dvh}.topbar{padding:0 16px;height:66px;justify-content:flex-start;gap:15px}.top-title strong{font-size:19px}.signed-in{margin-left:auto;font-size:10px;padding:7px 9px}.messages{padding:20px 17px 12px;gap:14px}.composer-area{padding:0 16px 17px}.composer{min-height:60px;padding:6px 7px 6px 15px}.composer button{height:44px;width:44px}.message{max-width:93%;padding:13px 15px}.welcome h1{font-size:31px}.welcome p{font-size:13px}.hero-logo{width:70px;height:70px;font-size:40px}.login-card{padding:35px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

/* Center the ONE input on the empty home screen; dock it below the conversation once started. */
.chat-screen.is-empty{justify-content:center;gap:0}
.chat-screen.is-empty .messages{flex:0 0 auto;overflow:visible;padding:0 42px 26px;min-height:0}
.chat-screen.is-empty .welcome{margin:0 auto;padding:5px 0 8px}
.chat-screen.is-empty .composer-area{margin:0 auto;padding-bottom:0}
.chat-screen.is-empty .feedback:empty{display:none}
@media(max-width:760px){.chat-screen.is-empty .messages{padding:0 18px 22px}.chat-screen.is-empty .composer-area{padding:0 16px}}

/* AI-SHAHID market briefing — responsive, accessible and text-only sourced cards */
.message.market-brief-message{width:min(100%,790px);max-width:100%;padding:0;border:0;background:transparent;box-shadow:none;white-space:normal;overflow:visible}
.market-brief{background:#fff;border:1px solid #e5e4fa;border-radius:22px;box-shadow:0 18px 45px #3d3a8012;overflow:hidden}
.market-hero{background:linear-gradient(115deg,#4334a5,#7160e6 60%,#ad65d7);color:#fff;padding:23px 25px 20px}
.market-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#e7ddff}.market-title{font-size:23px;line-height:1.22;letter-spacing:-.025em;margin:10px 0 8px;color:#fff}.market-time{font-size:12px;color:#eae7ff}
.market-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.market-chip{font-size:11px;font-weight:700;background:#ffffff2c;border:1px solid #ffffff5b;border-radius:99px;padding:5px 10px}.market-chip-neutral{background:#2a24613d}
.market-content{padding:20px 23px}.market-section-title{font-size:14px;color:#34335d;margin:0 0 13px;font-weight:800}.market-news-list{display:grid;gap:10px}.market-news-card{display:flex;align-items:flex-start;gap:12px;padding:13px;border:1px solid #e9e9fb;background:linear-gradient(120deg,#fcfcff,#f7f9ff);border-radius:14px}
.market-news-index{width:32px;height:32px;border-radius:10px;background:#eeebff;color:#5d49ca;font-weight:800;font-size:12px;display:grid;place-items:center;flex:none}.market-news-body{min-width:0}.market-news-title{font-weight:750;color:#2b3558;line-height:1.45}.market-news-meta{font-size:11px;color:#777e9a;margin-top:5px}.market-news-link{display:inline-block;color:#5844cb;font-size:12px;font-weight:750;text-decoration:none;margin-top:7px}.market-news-link:hover{text-decoration:underline}
.market-research{border-top:1px solid #f0edfa;margin-top:18px;padding-top:18px}.market-research-desc{font-size:12px;color:#6e7595;margin:0 0 11px}.market-examples{display:flex;flex-wrap:wrap;gap:7px}.market-example{border:1px solid #d8d2ff;background:#f5f2ff;border-radius:10px;color:#5c43b5;padding:8px 11px;font-size:11px;font-weight:700;cursor:pointer}.market-example:hover,.market-example:focus-visible{background:#eae3ff;outline-color:#8063dc}
.market-status{padding:14px 23px 17px;background:#f6f8ff;border-top:1px solid #eceafb}.market-status strong{font-size:10px;letter-spacing:.09em;color:#525a8c}.market-status p{font-size:11px;line-height:1.6;color:#737b98;margin:6px 0 0}.market-empty{font-size:13px;color:#68728d}
@media(max-width:760px){.message.market-brief-message{max-width:100%}.market-hero{padding:18px}.market-title{font-size:20px}.market-content{padding:15px}.market-status{padding:13px 15px}.market-news-card{padding:11px}.market-news-index{width:27px;height:27px}}

/* v19.0.75: Accessible, safe structured AI replies. */
.message:not(.user):not(.error){max-width:min(94%,820px);padding:20px 24px;border-radius:22px 22px 22px 8px;white-space:normal;line-height:1.75;box-shadow:0 10px 35px #3f327514;}
.message:not(.user) .reply-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #ece9fa;}
.reply-brand{font-size:11px;color:#6748c4;font-weight:850;letter-spacing:.07em;}
.reply-copy{appearance:none;border:1px solid #e3dafb;background:#f8f5ff;color:#6242b4;border-radius:10px;padding:7px 11px;font-size:11px;font-weight:700;cursor:pointer;}
.reply-copy:hover,.reply-copy:focus-visible{background:#eae3ff;outline-offset:2px;}
.reply-heading{color:#28345b;line-height:1.35;margin:19px 0 9px;font-size:16px;letter-spacing:-.02em;}
.message h2.reply-heading{font-size:19px;}
.reply-paragraph{margin:0 0 12px;overflow-wrap:anywhere;}
.reply-paragraph:last-child,.reply-list:last-child{margin-bottom:0;}
.reply-list{margin:5px 0 16px;padding-left:24px;}
.reply-list li{padding-left:4px;margin-bottom:7px;}
.reply-list li::marker{color:#8165d8;font-weight:700;}
.reply-fact{margin:7px 0;padding:9px 11px;border-left:3px solid #a88cf1;background:#f8f6ff;border-radius:0 10px 10px 0;}
.reply-fact strong{color:#6144a7;}
.message:not(.user) code:not(pre code){background:#f1eefb;border:1px solid #e6defa;border-radius:5px;padding:1px 5px;font-size:.9em;}
.message:not(.user) hr{border:0;border-top:1px solid #e8e5f4;margin:18px 0;}
.message:not(.user) a{color:#6047bc;text-decoration:underline;text-underline-offset:3px;}
.message:not(.user) a:focus-visible{outline:2px solid #7b59d6;outline-offset:3px;}
.message.market-brief-message .reply-toolbar{margin:0 0 10px;padding:0 0 10px;}
@media(max-width:760px){.message:not(.user):not(.error){max-width:100%;padding:15px 16px;}.message h2.reply-heading{font-size:17px;}.reply-copy{padding:7px 8px;}}

/* v19.0.90: Thumb feedback on every saved assistant reply */
.reply-toolbar{flex-wrap:wrap}.reply-vote-controls{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
.reply-vote{min-width:39px;min-height:36px;border:1px solid #e3dafa;background:#f8f5ff;color:#4e3a9a;border-radius:10px;cursor:pointer;font-size:17px;line-height:1}
.reply-vote:hover:not(:disabled),.reply-vote:focus-visible{background:#eee7ff;border-color:#9577ed;outline-offset:2px}
.reply-vote.selected{background:#dfd6ff;border-color:#8559db;box-shadow:inset 0 0 0 1px #8c6be5}
.reply-vote:disabled:not(.selected){opacity:.5;cursor:default}.reply-review-state{font-size:10px;color:#7050b6;font-weight:700}
@media(max-width:760px){.reply-toolbar{gap:8px}.reply-vote-controls{gap:4px}.reply-vote{min-width:38px;min-height:38px}}

/* v19.0.91: feedback is immediate and errors visible without reloading mobile chat */
.reply-vote-controls{flex-wrap:wrap;justify-content:flex-end;max-width:100%;}
.reply-vote{touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
.reply-vote-status{flex:0 0 100%;text-align:right;color:#66539f;font-size:11px;line-height:1.35;min-height:0;max-width:260px;overflow-wrap:anywhere;}
.format-shortcuts[hidden]{display:none!important;}
@media(max-width:760px){.reply-toolbar{justify-content:space-between}.reply-vote-controls{margin-left:0}.reply-vote-status{text-align:right}}
