/* AI-SHAHID Home UX v12 — original responsive layer, appended after existing styles.
   Does not alter authentication, storage, history or response data. */
:root{--home-ink:#24304c;--home-purple:#6443c7;--home-border:#e4ddf8;--home-muted:#687595}
.app-shell .main-panel{background:radial-gradient(ellipse 55% 50% at 19% 34%,#f0eafe 0%,transparent 100%),radial-gradient(ellipse 46% 52% at 93% 35%,#e8f7ff 0%,transparent 100%),#fcfcff}
.app-shell .topbar{border-bottom:1px solid #e9eaf8;box-shadow:0 3px 20px #2a33620a}
.app-shell .top-title small{font-weight:600;letter-spacing:.005em;color:#69728c}
.app-shell .sidebar{background:linear-gradient(156deg,#211f60 0%,#4930a0 54%,#8450ba 100%)}
.app-shell .new-chat{background:linear-gradient(110deg,#6d66ee,#c05aca);min-height:56px}
.history-search-wrap{display:flex;align-items:center;gap:8px;background:#ffffff17;border:1px solid #ffffff3d;border-radius:12px;margin-top:12px;padding:4px 12px;color:#f3e9ff}
.history-search-wrap:focus-within{outline:2px solid #e9d9ff;outline-offset:2px}
.history-search-wrap span{font-size:19px;font-weight:700}
.history-search-wrap input{background:transparent;color:#fff;border:0;outline:0;width:100%;height:36px;min-width:0;font-size:13px}
.history-search-wrap input::placeholder{color:#eadffc}
.chat-item[hidden]{display:none!important}
.home-kicker{font-size:11px!important;font-weight:800;letter-spacing:.18em;color:#7b61c9!important;margin:8px 0 12px!important}
.chat-screen.is-empty .welcome{max-width:820px;padding:3px 16px 8px}
.chat-screen.is-empty .hero-logo{width:66px;height:66px;border-radius:22px;font-size:38px;margin-bottom:15px;box-shadow:0 13px 30px #8165d42e}
.chat-screen.is-empty .welcome h1{font-size:clamp(30px,3.8vw,49px);line-height:1.13;letter-spacing:-.055em;margin:0 auto;max-width:790px;color:#233150}
.chat-screen.is-empty .welcome h1 span{color:#7753cc}
.chat-screen.is-empty .welcome .home-subtitle{font-size:14px;line-height:1.6;color:#687594;margin:12px auto 0;max-width:630px}
.home-starters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:23px auto 9px;max-width:770px;text-align:left}
.home-starter{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e4e1f6;border-radius:15px;background:#ffffffeb;box-shadow:0 9px 24px #454b8010;min-height:80px;padding:13px 11px;color:var(--home-ink);transition:transform .16s,border-color .16s,box-shadow .16s}
.home-starter:hover{transform:translateY(-2px);border-color:#ae93ea;box-shadow:0 13px 23px #594a9020}
.home-starter>span:first-child{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;color:#6546bc;background:#efe9ff;font-size:20px}
.home-starter strong,.home-starter small{display:block;line-height:1.25}
.home-starter strong{font-size:12px;font-weight:800}
.home-starter small{font-size:10px;font-weight:500;color:#76819b;margin-top:6px}
.home-starter:focus-visible,.reply-copy:focus-visible,.app-shell button:focus-visible,.app-shell a:focus-visible{outline:3px solid #6550ce;outline-offset:3px}
.composer-area .home-integrity-note{margin:10px 0 0;text-align:center;color:#78829b;font-size:10.5px;line-height:1.45}
.composer-area .home-integrity-note a{color:#614cb6;text-underline-offset:3px}
.chat-screen:not(.is-empty) .home-starters{display:none}
.message:not(.user):not(.error){box-shadow:0 12px 34px #46408213;border:1px solid #eae7f8;max-width:min(94%,820px);font-size:14px;line-height:1.75;white-space:normal}
.message:not(.user) .reply-toolbar{border-bottom:1px solid #edebf7;padding-bottom:12px}
.message:not(.user) .reply-brand{color:#6247c0;font-weight:800;letter-spacing:.04em}
.message:not(.user) .reply-heading{border-left:3px solid #8062d5;padding-left:11px;margin:17px 0 11px;letter-spacing:-.015em}
.message:not(.user) .reply-paragraph{line-height:1.74;margin-bottom:11px}
.message:not(.user) .reply-fact{background:#f6f4ff;border:1px solid #eeebfc;padding:9px 12px;border-radius:10px}
.message:not(.user) .reply-list{padding-left:21px;line-height:1.75}
.message:not(.user) a:focus-visible{outline:3px solid #6d4ac5;outline-offset:2px}
.login-benefits{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:23px auto 6px}
.login-benefits span{font-size:11px;background:#f4f0ff;border:1px solid #e4dcf8;color:#6550a7;border-radius:99px;padding:7px 10px;font-weight:700}
/* Avoid overflow and preserve a single central composer on small viewports. */
@media(max-width:1160px){.home-starters{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}.home-starter{min-height:63px}}
@media(max-width:760px){.chat-screen.is-empty .messages{padding:6px 14px 12px}.chat-screen.is-empty .welcome{padding:0}.chat-screen.is-empty .hero-logo{width:51px;height:51px;font-size:30px;margin-bottom:11px;border-radius:16px}.home-kicker{font-size:9px!important;margin:7px 0 8px!important}.chat-screen.is-empty .welcome h1{font-size:clamp(26px,7vw,34px)}.chat-screen.is-empty .welcome .home-subtitle{font-size:12px;max-width:430px;margin-top:8px}.home-starters{gap:8px;margin:13px auto 4px}.home-starter{min-height:65px;padding:9px;border-radius:12px}.home-starter>span:first-child{width:28px;height:28px;flex-basis:28px;font-size:17px}.home-starter strong{font-size:11px}.home-starter small{font-size:9px;margin-top:4px}.composer-area .home-integrity-note{font-size:9px}.app-shell .top-title small{font-size:9px}.message:not(.user):not(.error){max-width:100%}}
@media(max-height:720px) and (min-width:761px){.chat-screen.is-empty .hero-logo{width:48px;height:48px;margin-bottom:8px}.chat-screen.is-empty .welcome h1{font-size:32px}.home-starters{margin-top:9px}.home-starter{min-height:57px;padding:9px}.home-starter small{margin-top:2px}.chat-screen.is-empty .messages{padding-bottom:13px}}
@media(max-width:365px){.home-starter{gap:6px;padding:7px}.home-starter strong{font-size:10px}.home-starter small{font-size:9px}.home-starters{gap:6px}.chat-screen.is-empty .welcome h1{font-size:26px}}
@media(max-height:650px) and (max-width:760px){.chat-screen.is-empty{justify-content:flex-start;overflow-y:auto;padding:10px 0 18px}.chat-screen.is-empty .messages{padding-bottom:9px}.chat-screen.is-empty .composer-area{margin:0 auto}}
@media(prefers-reduced-motion:reduce){.home-starter{transition:none}.home-starter:hover{transform:none}}
