@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ShayariGPT 1.4 — isolated premium UI. Every SVG has an explicit box so WordPress/theme CSS cannot resize it. */
.sgpt-app{--purple:#6d35df;--purple2:#8450ee;--ink:#17192b;--muted:#73778f;--line:#e9e7ef;--soft:#f8f6ff;--sidebar:#fbfbfd;--hover:#f3effc;--shadow:0 10px 30px rgba(38,25,72,.07);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;width:100vw!important;max-width:none!important;height:100vh!important;min-height:100vh!important;margin:0 0 0 calc(50% - 50vw)!important;padding:0!important;display:flex!important;overflow:hidden!important;position:relative!important;background:#fff!important;color:var(--ink)!important;isolation:isolate!important}
.sgpt-app *{box-sizing:border-box!important}
.sgpt-app button,.sgpt-app textarea{font:inherit!important}
.sgpt-app button{appearance:none!important;-webkit-appearance:none!important;text-transform:none!important;letter-spacing:normal!important;min-height:0!important}
.sgpt-app svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;overflow:hidden!important;flex:0 0 18px!important;vertical-align:middle!important}
.sgpt-app svg path,.sgpt-app svg circle,.sgpt-app svg rect{vector-effect:non-scaling-stroke!important}

/* Sidebar */
.sgpt-sidebar{width:300px!important;flex:0 0 300px!important;height:100vh!important;display:flex!important;flex-direction:column!important;background:var(--sidebar)!important;border-right:1px solid var(--line)!important;padding:18px 14px 14px!important;z-index:30!important;overflow:hidden!important}
.sgpt-brand{height:58px!important;min-height:58px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 8px!important;margin:0 0 17px!important;min-width:0!important}
.sgpt-brand-mark{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;display:grid!important;place-items:center!important;color:var(--purple)!important;flex:0 0 40px!important}
.sgpt-brand-mark svg{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;flex:0 0 40px!important}
.sgpt-brand>div:nth-child(2){min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
.sgpt-brand-name{font-size:19px!important;line-height:22px!important;font-weight:700!important;letter-spacing:-.55px!important;white-space:nowrap!important;color:#14162a!important}
.sgpt-brand-name span{color:var(--purple)!important}
.sgpt-tagline{font-size:11px!important;line-height:16px!important;color:#7d8092!important;white-space:nowrap!important}
.sgpt-sidebar-toggle,.sgpt-open-sidebar{width:32px!important;height:32px!important;padding:0!important;border:0!important;background:transparent!important;color:#686b7a!important;display:grid!important;place-items:center!important;cursor:pointer!important;flex:0 0 32px!important}
.sgpt-sidebar-toggle svg,.sgpt-open-sidebar svg{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;min-height:19px!important;max-height:19px!important;flex:0 0 19px!important}
.sgpt-sidebar-toggle:hover,.sgpt-open-sidebar:hover{background:#f0edf7!important;border-radius:8px!important;color:#4f2bb0!important}

.sgpt-new-chat{width:100%!important;height:46px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 14px!important;border:1px solid #dedce5!important;border-radius:11px!important;background:#fff!important;color:#22243a!important;font-size:13px!important;font-weight:500!important;cursor:pointer!important;box-shadow:0 1px 2px rgba(20,20,30,.02)!important}
.sgpt-new-chat svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important}
.sgpt-new-chat:hover{border-color:#cdbced!important;background:#fcfaff!important;color:#5b2dc6!important}
.sgpt-nav{display:grid!important;gap:3px!important;margin-top:7px!important}
.sgpt-nav button,.sgpt-sidebar-bottom .sgpt-bottom-item{width:100%!important;height:40px!important;display:flex!important;align-items:center!important;gap:11px!important;padding:0 11px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#3e4050!important;font-size:13px!important;font-weight:400!important;text-align:left!important;cursor:pointer!important;overflow:hidden!important}
.sgpt-nav button>span,.sgpt-bottom-item>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sgpt-nav button>svg,.sgpt-bottom-item>svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important}
.sgpt-nav button.active{background:#e9defd!important;color:#5d2ac4!important;font-weight:600!important}
.sgpt-nav button:hover,.sgpt-sidebar-bottom .sgpt-bottom-item:hover{background:var(--hover)!important;color:#5d2ac4!important}

.sgpt-recent{border-top:1px solid #e4e2e9!important;margin-top:13px!important;padding:15px 0 0!important;min-height:0!important;overflow:hidden!important}
.sgpt-recent-title{font-size:10px!important;line-height:14px!important;letter-spacing:.55px!important;color:#8b8e9d!important;margin:0 11px 8px!important}
.sgpt-recent-list{display:grid!important;gap:2px!important;overflow:hidden!important}
.sgpt-recent-item{width:100%!important;height:35px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#505365!important;font-size:12px!important;text-align:left!important;cursor:pointer!important;overflow:hidden!important}
.sgpt-recent-item svg{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;min-height:14px!important;max-height:14px!important;flex:0 0 14px!important;color:#9b9eac!important}
.sgpt-recent-item span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sgpt-recent-item:hover{background:#f0edf7!important;color:#5c2ec1!important}
.sgpt-sidebar-bottom{margin-top:auto!important;padding-top:12px!important;border-top:1px solid #e4e2e9!important;display:grid!important;gap:2px!important;flex:0 0 auto!important}

/* Main */
.sgpt-main{height:100vh!important;min-height:100vh!important;min-width:0!important;flex:1 1 auto!important;position:relative!important;background:#fff!important;overflow:hidden!important}
.sgpt-topbar{position:absolute!important;left:0!important;right:0!important;top:0!important;height:58px!important;padding:0 20px!important;display:flex!important;align-items:center!important;z-index:10!important}
.sgpt-open-sidebar{display:none!important;margin-right:auto!important}
.sgpt-profile{margin-left:auto!important;width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#eee7ff!important;color:#6734d5!important;font-size:13px!important;font-weight:600!important}

.sgpt-view{height:100vh!important;min-height:100vh!important}
.sgpt-view[hidden]{display:none!important}
.sgpt-explore-view{height:100vh!important;overflow:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;padding:96px 26px 24px!important;background:radial-gradient(circle at 50% 76%,rgba(123,74,231,.07),transparent 33%),#fff!important}
.sgpt-hero-logo{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;margin:0!important}
.sgpt-hero-mark{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;display:grid!important;place-items:center!important;color:var(--purple)!important;flex:0 0 58px!important}
.sgpt-hero-mark svg{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;flex:0 0 58px!important}
.sgpt-hero-name{font-size:28px!important;line-height:32px!important;font-weight:700!important;letter-spacing:-1.1px!important;color:#17192b!important}
.sgpt-hero-name span{color:var(--purple)!important}
.sgpt-hero-tagline{font-size:13px!important;line-height:18px!important;color:#73778e!important;margin-top:2px!important}
.sgpt-app h1{font-size:54px!important;line-height:1.08!important;letter-spacing:-2.8px!important;font-weight:700!important;text-align:center!important;color:#171a2e!important;margin:33px 0 15px!important}
.sgpt-app h1 span{color:#7138df!important}
.sgpt-subtitle{font-size:15px!important;line-height:1.6!important;color:#7a7e96!important;text-align:center!important;margin:0!important;max-width:850px!important}
.sgpt-moods{width:min(900px,100%)!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important;margin:32px 0 46px!important}
.sgpt-moods button{height:60px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;border:1px solid #e4e1ea!important;border-radius:14px!important;background:#fff!important;color:#292b3e!important;font-size:14px!important;font-weight:600!important;cursor:pointer!important;box-shadow:0 2px 7px rgba(36,28,63,.025)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease!important}
.sgpt-moods button:hover{transform:translateY(-1px)!important;border-color:#d5c7ee!important;background:#fcfaff!important;box-shadow:0 7px 20px rgba(90,45,180,.08)!important;color:#5e2fc2!important}
.sgpt-moods button.selected{background:#f0e7ff!important;border-color:#cdb4f6!important;color:#5e2fc2!important}
.sgpt-mood-icon{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;display:grid!important;place-items:center!important;color:#6b3bdd!important}
.sgpt-mood-icon svg{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;min-height:19px!important;max-height:19px!important;flex:0 0 19px!important}
.sgpt-mood-label{white-space:nowrap!important}

/* Composer — deliberately one control */
.sgpt-composer-wrap{width:min(980px,100%)!important;margin-top:auto!important;position:relative!important;z-index:3!important}
.sgpt-composer{width:100%!important;min-height:72px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:8px 9px 8px 18px!important;border:1px solid #ddd8e8!important;border-radius:21px!important;background:#fff!important;box-shadow:var(--shadow)!important;transition:border-color .18s ease,box-shadow .18s ease!important}
.sgpt-composer:focus-within{border-color:#b99be9!important;box-shadow:0 10px 34px rgba(109,53,223,.13)!important}
.sgpt-composer textarea{flex:1 1 auto!important;width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:11px 0!important;border:0!important;outline:0!important;resize:none!important;overflow:hidden!important;background:transparent!important;color:#1d2032!important;font-size:16px!important;line-height:24px!important;box-shadow:none!important}
.sgpt-composer textarea:focus{border:0!important;outline:0!important;box-shadow:none!important}
.sgpt-composer textarea::placeholder{color:#85889b!important;opacity:1!important}
.sgpt-composer-actions,.sgpt-round,.sgpt-mic,.sgpt-web{display:none!important}
.sgpt-send{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;flex:0 0 48px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(135deg,#7440e7,#602ad3)!important;color:#fff!important;cursor:pointer!important;box-shadow:0 7px 18px rgba(102,48,215,.25)!important;transition:transform .16s ease,box-shadow .16s ease!important}
.sgpt-send svg{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;min-height:20px!important;max-height:20px!important;flex:0 0 20px!important;transform:translateX(1px)!important}
.sgpt-send:hover{transform:translateY(-1px)!important;box-shadow:0 10px 23px rgba(102,48,215,.31)!important}
.sgpt-send:active{transform:scale(.96)!important}
.sgpt-send:disabled{opacity:.55!important;cursor:default!important}
.sgpt-active-mood{font-size:11px!important;line-height:15px!important;text-align:center!important;color:#7952c8!important;margin-top:6px!important;min-height:0!important}
.sgpt-fine{font-size:11px!important;line-height:16px!important;color:#999cad!important;margin:12px 0 0!important}

/* Conversation */
.sgpt-conversation-view{height:100vh!important;overflow:auto!important;padding:78px 28px 126px!important;background:#fff!important}
.sgpt-conversation-list{width:min(900px,100%)!important;margin:0 auto!important;display:grid!important;gap:25px!important;padding-bottom:12px!important}
.sgpt-user-row{display:flex!important;justify-content:flex-end!important;padding:0 4px!important}
.sgpt-user-bubble{max-width:72%!important;background:#f1f0f4!important;color:#292c3d!important;padding:12px 15px!important;border-radius:17px 17px 5px 17px!important;font-size:14px!important;line-height:1.55!important}
.sgpt-result-card{width:100%!important;background:transparent!important;border:0!important;border-bottom:1px solid #eeeaf2!important;padding:0 3px 25px!important;box-shadow:none!important}
.sgpt-card-top{display:flex!important;align-items:center!important;gap:8px!important;color:#818599!important;font-size:12px!important;font-weight:600!important;margin-bottom:12px!important}
.sgpt-card-top .sgpt-ai-mark{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#efe6ff!important;color:#6d36df!important}
.sgpt-card-top .sgpt-ai-mark svg{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;min-height:13px!important;max-height:13px!important;flex:0 0 13px!important}
.sgpt-card-top>span:last-child{color:#6e38d7!important}
.sgpt-shayari{font-size:19px!important;line-height:1.82!important;color:#202338!important;white-space:normal!important}
.sgpt-card-actions{display:flex!important;align-items:center!important;gap:2px!important;margin-top:12px!important}
.sgpt-card-actions button{width:34px!important;height:32px!important;min-width:34px!important;max-width:34px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#8b8ea0!important;font-size:0!important;cursor:pointer!important;position:relative!important}
.sgpt-card-actions button svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;flex:0 0 17px!important}
.sgpt-card-actions button:hover{background:#f2eff8!important;color:#5e2fc2!important}
.sgpt-card-actions button[data-tooltip]::after{content:attr(data-tooltip);position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);background:#242538;color:#fff;padding:4px 7px;border-radius:6px;font-size:10px;line-height:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:50}
.sgpt-card-actions button[data-tooltip]:hover::after{opacity:1}
.sgpt-fixed-composer{position:absolute!important;left:0!important;right:0!important;bottom:0!important;padding:30px 28px 17px!important;background:linear-gradient(transparent,rgba(255,255,255,.94) 28%,#fff 70%)!important;z-index:8!important}
.sgpt-fixed-composer .sgpt-composer{width:min(900px,100%)!important;margin:0 auto!important}
.sgpt-typing{width:min(900px,100%)!important;margin:0 auto!important;display:flex!important;align-items:center!important;gap:7px!important;color:#85899e!important;font-size:12px!important;padding:0 3px 7px!important}
.sgpt-typing-mark{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#efe6ff!important;color:#6e36dc!important;font-size:12px!important}
.sgpt-typing-mark svg{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;min-height:13px!important;max-height:13px!important}
.sgpt-typing strong{font-weight:600!important;color:#6e38d7!important}
.sgpt-typing-dots{display:inline-flex!important;gap:3px!important;margin-left:1px!important}
.sgpt-typing-dots i{width:4px!important;height:4px!important;min-width:4px!important;border-radius:50%!important;background:#7644df!important;animation:sgptpulse .8s infinite alternate!important}
.sgpt-typing-dots i:nth-child(2){animation-delay:.15s!important}.sgpt-typing-dots i:nth-child(3){animation-delay:.3s!important}
@keyframes sgptpulse{to{opacity:.25;transform:translateY(-2px)}}
.sgpt-error{width:min(900px,100%)!important;margin:0 auto!important;background:#fff5f4!important;border:1px solid #f0cfcc!important;color:#9e3c35!important;padding:11px 13px!important;border-radius:10px!important;font-size:13px!important}

/* Simple pages */
.sgpt-simple-view{height:100vh!important;overflow:auto!important;padding:92px max(26px,7vw) 45px!important;background:#fff!important}
.sgpt-simple-view h2{font-size:42px!important;line-height:1.1!important;letter-spacing:-1.6px!important;margin:0 0 8px!important;color:#171a2e!important}
.sgpt-simple-view h2 span{color:#7138df!important}
.sgpt-simple-view>p{font-size:14px!important;color:#777b91!important;margin:0 0 26px!important}
.sgpt-simple-content{width:min(900px,100%)!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.sgpt-collection-box,.sgpt-setting-box{border:1px solid #e6e3ed!important;border-radius:14px!important;padding:17px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:11px!important;box-shadow:0 3px 12px rgba(35,28,69,.03)!important}
.sgpt-collection-box small,.sgpt-setting-box small{display:block!important;color:#85899d!important}
.sgpt-setting-box button{margin-left:auto!important;border:1px solid #ddd9e7!important;background:#f8f7fb!important;border-radius:8px!important;padding:7px 10px!important;color:#4f5264!important;cursor:pointer!important}
.sgpt-empty{min-height:160px!important;border:1px dashed #d8d5df!important;border-radius:13px!important;display:grid!important;place-items:center!important;align-content:center!important;text-align:center!important;color:#85899d!important;padding:25px!important;grid-column:1/-1!important}

.sgpt-sidebar-hidden .sgpt-sidebar{display:none!important}.sgpt-sidebar-hidden .sgpt-open-sidebar{display:grid!important}

/* Dark mode */
.sgpt-dark{--ink:#f3f3f7;background:#18181b!important;color:#f3f3f7!important}.sgpt-dark .sgpt-sidebar{background:#151519!important;border-color:#2c2c32!important}.sgpt-dark .sgpt-main,.sgpt-dark .sgpt-explore-view,.sgpt-dark .sgpt-conversation-view,.sgpt-dark .sgpt-simple-view{background:#18181b!important}.sgpt-dark .sgpt-brand-name,.sgpt-dark .sgpt-app h1,.sgpt-dark .sgpt-hero-name,.sgpt-dark .sgpt-shayari,.sgpt-dark .sgpt-simple-view h2{color:#f2f2f7!important}.sgpt-dark .sgpt-new-chat,.sgpt-dark .sgpt-moods button,.sgpt-dark .sgpt-composer,.sgpt-dark .sgpt-collection-box,.sgpt-dark .sgpt-setting-box{background:#202025!important;border-color:#383840!important;color:#eee!important}.sgpt-dark .sgpt-nav button,.sgpt-dark .sgpt-sidebar-bottom .sgpt-bottom-item,.sgpt-dark .sgpt-recent-item{color:#c9c9d1!important}.sgpt-dark .sgpt-nav button.active{background:#352750!important;color:#d7c5ff!important}.sgpt-dark .sgpt-moods button:hover{background:#28282f!important}.sgpt-dark .sgpt-composer textarea{color:#eee!important}.sgpt-dark .sgpt-composer textarea::placeholder{color:#9b9ca5!important}.sgpt-dark .sgpt-user-bubble{background:#303037!important;color:#eee!important}.sgpt-dark .sgpt-fixed-composer{background:linear-gradient(transparent,#18181b 70%)!important}.sgpt-dark .sgpt-card-actions button:hover{background:#303037!important}.sgpt-dark .sgpt-result-card{border-color:#34343c!important}

@media(max-width:760px){
 .sgpt-app{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
 .sgpt-sidebar{position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:min(310px,88vw)!important;flex-basis:min(310px,88vw)!important;height:100dvh!important;box-shadow:16px 0 40px rgba(0,0,0,.12)!important}
 .sgpt-main,.sgpt-view{height:100dvh!important;min-height:100dvh!important}
 .sgpt-open-sidebar{display:grid!important;margin-right:auto!important}
 .sgpt-topbar{height:58px!important;padding:0 14px!important}
 .sgpt-explore-view{padding:80px 14px 20px!important}
 .sgpt-hero-mark,.sgpt-hero-mark svg{width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important}
 .sgpt-hero-name{font-size:23px!important;line-height:27px!important}.sgpt-hero-tagline{font-size:11px!important}
 .sgpt-app h1{font-size:34px!important;letter-spacing:-1.6px!important;margin:25px 0 12px!important}
 .sgpt-subtitle{font-size:13px!important;line-height:1.55!important}
 .sgpt-desktop{display:none!important}
 .sgpt-moods{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:23px 0 28px!important}
 .sgpt-moods button{height:50px!important;border-radius:13px!important;font-size:13px!important}
 .sgpt-composer{min-height:62px!important;border-radius:19px!important;padding:7px 7px 7px 15px!important}
 .sgpt-composer textarea{height:44px!important;min-height:44px!important;max-height:44px!important;font-size:16px!important;padding:10px 0!important}
 .sgpt-send{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important}
 .sgpt-send svg{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;min-height:19px!important;max-height:19px!important}
 .sgpt-conversation-view{padding:70px 14px 115px!important}
 .sgpt-conversation-list{gap:20px!important}.sgpt-shayari{font-size:17px!important;line-height:1.75!important}.sgpt-user-bubble{max-width:88%!important;font-size:14px!important}
 .sgpt-fixed-composer{padding:23px 10px max(10px,env(safe-area-inset-bottom))!important}
 .sgpt-simple-view{padding:80px 15px 30px!important}.sgpt-simple-view h2{font-size:32px!important}.sgpt-simple-content{grid-template-columns:1fr!important}
}

/* v1.6 sidebar extras */
.sgpt-more-wrap{position:relative!important;width:100%!important}
.sgpt-more-menu{position:absolute!important;left:0!important;bottom:calc(100% + 8px)!important;width:270px!important;background:#fff!important;border:1px solid #e5e1ee!important;border-radius:14px!important;padding:6px!important;box-shadow:0 16px 42px rgba(32,23,62,.14)!important;z-index:80!important}
.sgpt-more-menu[hidden]{display:none!important}
.sgpt-more-menu button{width:100%!important;display:flex!important;align-items:center!important;gap:10px!important;padding:10px!important;border:0!important;background:transparent!important;border-radius:10px!important;text-align:left!important;color:#26283a!important;cursor:pointer!important}
.sgpt-more-menu button:hover{background:#f7f3ff!important}
.sgpt-more-menu button>span:last-child{display:grid!important;gap:2px!important;min-width:0!important}
.sgpt-more-menu strong{font-size:12px!important;font-weight:600!important;line-height:16px!important}
.sgpt-more-menu small{font-size:10px!important;line-height:14px!important;color:#8a8da0!important;white-space:nowrap!important}
.sgpt-more-icon{width:28px!important;height:28px!important;min-width:28px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#f0eaff!important;color:#6832d6!important;font-size:13px!important;font-weight:700!important}
.sgpt-dark .sgpt-more-menu{background:#202025!important;border-color:#383840!important}
.sgpt-dark .sgpt-more-menu button{color:#eee!important}
.sgpt-dark .sgpt-more-menu button:hover{background:#2b2b32!important}
.sgpt-dark .sgpt-more-menu small{color:#a4a5af!important}

@media(max-width:760px){
 .sgpt-sidebar{display:none!important}
 .sgpt-app.sgpt-mobile-sidebar-open .sgpt-sidebar{display:flex!important}
 .sgpt-main{width:100%!important;flex:1 1 100%!important;min-width:0!important}
 .sgpt-open-sidebar{display:grid!important}
 .sgpt-sidebar-toggle{display:grid!important}
 .sgpt-more-menu{width:min(270px,calc(100vw - 36px))!important;left:auto!important;right:0!important;bottom:calc(100% + 8px)!important}
}

/* v1.7 — device-local chat history */
.sgpt-recent-row{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;gap:2px!important;border-radius:9px!important;overflow:hidden!important}
.sgpt-recent-row .sgpt-recent-item{flex:1 1 auto!important;min-width:0!important;width:auto!important}
.sgpt-recent-delete{width:28px!important;height:28px!important;min-width:28px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#a0a2ad!important;opacity:0!important;cursor:pointer!important;transition:opacity .16s ease,background .16s ease,color .16s ease!important;padding:0!important}
.sgpt-recent-delete svg{width:15px!important;height:15px!important;min-width:15px!important;max-width:15px!important;min-height:15px!important;max-height:15px!important;display:block!important}
.sgpt-recent-row:hover .sgpt-recent-delete,.sgpt-recent-delete:focus-visible{opacity:1!important}
.sgpt-recent-delete:hover{background:#f2edf9!important;color:#6d38df!important}
.sgpt-recent-empty{padding:8px 11px 4px!important;color:#a0a2ad!important;font-size:11px!important;line-height:16px!important}
.sgpt-dark .sgpt-recent-delete{color:#8f909b!important}
.sgpt-dark .sgpt-recent-delete:hover{background:#2b2734!important;color:#cdb9ff!important}
@media (max-width:760px){
  .sgpt-recent-delete{opacity:1!important}
  .sgpt-recent-empty{font-size:12px!important}
}

/* v2.1 — full device-local conversations + polished poetry cards */
.sgpt-recent-row.is-active{background:#f4efff!important}
.sgpt-recent-row.is-active .sgpt-recent-item{color:#6531ce!important;font-weight:600!important}
.sgpt-result-card{background:linear-gradient(180deg,#fff 0%,#fdfcff 100%)!important;border:1px solid #e7e0f2!important;border-radius:18px!important;box-shadow:0 10px 30px rgba(58,35,105,.055)!important;padding:22px 24px 16px!important}
.sgpt-card-top{display:flex!important;align-items:center!important;gap:7px!important;font-weight:650!important;color:#5d31bc!important}
.sgpt-local-badge{margin-left:auto!important;padding:3px 7px!important;border-radius:999px!important;background:#f4efff!important;color:#886dbf!important;font-size:9px!important;line-height:14px!important;font-weight:600!important;letter-spacing:.15px!important;text-transform:uppercase!important}
.sgpt-shayari{font-family:"Noto Nastaliq Urdu","Noto Serif",Georgia,serif!important;letter-spacing:0!important}
.sgpt-user-bubble{box-shadow:0 5px 18px rgba(30,25,50,.05)!important}
.sgpt-composer:focus-within{border-color:#9c7be5!important;box-shadow:0 0 0 4px rgba(113,56,223,.08)!important}
.sgpt-dark .sgpt-recent-row.is-active{background:#302642!important}
.sgpt-dark .sgpt-recent-row.is-active .sgpt-recent-item{color:#dccbff!important}
.sgpt-dark .sgpt-result-card{background:linear-gradient(180deg,#202025 0%,#1d1d22 100%)!important;border-color:#383840!important;box-shadow:none!important}
.sgpt-dark .sgpt-local-badge{background:#31283f!important;color:#cdb9ff!important}
@media(max-width:760px){
  .sgpt-result-card{padding:18px 16px 14px!important;border-radius:15px!important}
  .sgpt-local-badge{display:none!important}
}

/* v2.2 poetry/readability refinements */
.sgpt-shayari[dir="rtl"], .sgpt-user-bubble[dir="rtl"] {
  font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Jameel Noori Nastaleeq", serif;
  line-height: 2.05;
}
.sgpt-shayari { unicode-bidi: plaintext; text-align: start; }
.sgpt-user-bubble { unicode-bidi: plaintext; text-align: start; }
.sgpt-quick-actions {
  display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; padding-top:10px;
  border-top:1px solid rgba(111,78,246,.10);
}
.sgpt-quick-actions button {
  appearance:none; border:1px solid rgba(111,78,246,.18); background:transparent;
  border-radius:999px; padding:6px 10px; font:inherit; font-size:12px; line-height:1.2;
  cursor:pointer; color:inherit;
}
.sgpt-quick-actions button:hover { background:rgba(111,78,246,.07); border-color:rgba(111,78,246,.35); }

/* v3.0 — poetry controls, intent-aware actions and related content */
.sgpt-poetry-controls{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;width:min(760px,100%)!important;margin:0 auto 16px!important}
.sgpt-poetry-controls label{display:grid!important;gap:5px!important;min-width:0!important}
.sgpt-poetry-controls label>span{font-size:10px!important;line-height:14px!important;font-weight:700!important;letter-spacing:.55px!important;text-transform:uppercase!important;color:#9692a4!important;padding-left:2px!important}
.sgpt-poetry-controls select{width:100%!important;height:40px!important;border:1px solid #e7e1ef!important;border-radius:12px!important;background:#fff!important;color:#2d2b34!important;padding:0 30px 0 11px!important;font:inherit!important;font-size:12px!important;outline:none!important;cursor:pointer!important;box-shadow:0 4px 14px rgba(52,32,90,.025)!important}
.sgpt-poetry-controls select:focus{border-color:#a988e9!important;box-shadow:0 0 0 3px rgba(113,56,223,.07)!important}
.sgpt-poetry-controls-compact{width:min(760px,calc(100% - 8px))!important;margin:0 auto 7px!important;gap:7px!important}
.sgpt-poetry-controls-compact label>span{display:none!important}
.sgpt-poetry-controls-compact select{height:34px!important;border-radius:10px!important;font-size:11px!important;background:rgba(255,255,255,.94)!important}
.sgpt-answer-badge{margin-left:auto!important;padding:4px 8px!important;border-radius:999px!important;background:#f4f1f8!important;color:#7e748d!important;font-size:9px!important;line-height:12px!important;font-weight:700!important;letter-spacing:.15px!important;white-space:nowrap!important}
.sgpt-answer-badge.is-verified{background:#eef8f1!important;color:#407a51!important}
.sgpt-related{display:grid!important;gap:7px!important;margin-top:13px!important;padding-top:12px!important;border-top:1px solid rgba(111,78,246,.10)!important}
.sgpt-related>span{font-size:10px!important;font-weight:700!important;letter-spacing:.45px!important;text-transform:uppercase!important;color:#9993a7!important}
.sgpt-related a{display:block!important;width:fit-content!important;max-width:100%!important;color:#6a3bd0!important;text-decoration:none!important;font-size:12px!important;line-height:1.45!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sgpt-related a:hover{text-decoration:underline!important}
.sgpt-dark .sgpt-poetry-controls select{background:#202025!important;border-color:#383840!important;color:#eee!important}
.sgpt-dark .sgpt-poetry-controls label>span{color:#8f909b!important}
.sgpt-dark .sgpt-answer-badge{background:#302d35!important;color:#bdb6c8!important}
.sgpt-dark .sgpt-answer-badge.is-verified{background:#25362b!important;color:#9fd0ad!important}
.sgpt-dark .sgpt-related a{color:#c4a8ff!important}

@media(max-width:760px){
 .sgpt-poetry-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}
 .sgpt-poetry-controls select{height:38px!important;font-size:12px!important}
 .sgpt-poetry-controls-compact{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:0 2px 2px!important;scrollbar-width:none!important}
 .sgpt-poetry-controls-compact::-webkit-scrollbar{display:none!important}
 .sgpt-poetry-controls-compact label{min-width:112px!important;flex:0 0 112px!important}
 .sgpt-poetry-controls-compact select{height:32px!important}
 .sgpt-answer-badge{font-size:8px!important;padding:3px 6px!important}
 .sgpt-related a{white-space:normal!important}
}
