/* Debieb-GPT — editorial white interface, precise motion, no visual noise. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
 --bg:#fafafa;--paper:rgba(255,255,255,.86);--paper-solid:#fff;--ink:#161719;--ink-2:#45474b;--muted:#7d8085;--line:#e5e6e8;--line-strong:#d4d6d9;--grid:rgba(45,49,55,.055);
 --accent:#202226;--accent-soft:#f0f1f2;--focus:#4d5968;--danger:#a92835;--sidebar-w:270px;--radius:14px;--radius-lg:22px;--ease:cubic-bezier(.22,.8,.22,1);--fast:.18s var(--ease);--mouse-x:50%;--mouse-y:40%;
}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'DM Sans',Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);display:flex;height:100dvh;overflow:hidden;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,black 0%,rgba(0,0,0,.72) 55%,transparent 100%)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(460px circle at var(--mouse-x) var(--mouse-y),rgba(255,255,255,.95),rgba(255,255,255,.22) 44%,transparent 72%);opacity:.85;transition:opacity .4s ease}
button,input,textarea{font:inherit}button{color:inherit}
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid #697789;outline-offset:3px}
::selection{background:#dfe3e8;color:#111}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d5d7da;border:2px solid transparent;background-clip:padding-box;border-radius:20px}::-webkit-scrollbar-thumb:hover{background:#aeb2b7;border:2px solid transparent;background-clip:padding-box}
.sidebar{width:var(--sidebar-w);background:rgba(255,255,255,.82);backdrop-filter:blur(24px) saturate(130%);-webkit-backdrop-filter:blur(24px) saturate(130%);border-right:1px solid var(--line);display:flex;flex-direction:column;flex-shrink:0;transition:transform .42s var(--ease),box-shadow .4s var(--ease);z-index:100;position:relative}
.sidebar::after{content:"";position:absolute;right:-1px;top:0;bottom:0;width:1px;background:linear-gradient(transparent,#cfd2d6 25%,#fff 70%,transparent)}
.sidebar-top{padding:24px 17px 17px;border-bottom:1px solid var(--line)}
.logo{display:flex;align-items:center;gap:11px;margin-bottom:25px;padding:0 3px}
.logo-icon{width:42px;height:42px;background:linear-gradient(145deg,#fff,#f0f1f3);border:1px solid #dfe1e4;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px #181a1d0b,0 1px 0 #fff inset;position:relative;overflow:visible}
.brand-mark{display:block;width:100%;height:100%;overflow:visible}
.logo-icon .brand-mark{width:32px;height:32px}
.brand-d{fill:#24272c}
.brand-orbit{fill:none;stroke:#838b96;stroke-width:3.3;stroke-linecap:round}
.brand-spark{fill:#fff;stroke:#24272c;stroke-width:.8;stroke-linejoin:round}
.logo-text{font-family:'Syne',sans-serif;font-weight:700;font-size:17px;letter-spacing:-.045em;color:#22252a}
.wordmark-hyphen{color:#a1a5ac}.wordmark-gpt{font-weight:500;color:#7b818a;letter-spacing:-.035em}
.new-chat-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:#191b1e;border:1px solid #191b1e;color:#fff;border-radius:12px;padding:12px 14px;font-size:13.5px;font-weight:600;cursor:pointer;transition:transform .28s var(--ease),box-shadow .28s var(--ease),background .2s ease;box-shadow:0 5px 0 #00000009,0 8px 20px #191b1e0b}
.new-chat-btn:hover{background:#303338;transform:translateY(-2px);box-shadow:0 9px 22px #191b1e18}.new-chat-btn:active{transform:translateY(0) scale(.985)}
.chat-history{flex:1;overflow-y:auto;padding:18px 11px;perspective:900px}
.history-label{font-size:10px;font-weight:700;color:#92959a;text-transform:uppercase;letter-spacing:.13em;padding:5px 10px 12px}
.history-item{position:relative;padding:11px 12px;margin:4px 0;border:1px solid transparent;border-radius:11px;font-size:13px;color:#65686e;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform-style:preserve-3d;transition:background .22s ease,border-color .22s ease,color .22s ease,box-shadow .25s ease;will-change:transform}
.history-item::before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:2px;border-radius:2px;background:#25282c;opacity:0;transition:opacity .2s ease}
.history-item:hover{background:#fff;border-color:#e7e8ea;color:#17191c;box-shadow:0 9px 20px #252a320c,0 2px 5px #252a3208;z-index:2}
.history-item:hover::before{opacity:1}
.sidebar-bottom{padding:15px 16px 18px;border-top:1px solid var(--line);background:#ffffff80}
.lang-switcher{display:flex;gap:5px;margin-bottom:15px;padding:4px;background:#f1f2f3;border:1px solid #e8e9eb;border-radius:10px}
.lang-btn{flex:1;padding:6px 0;background:transparent;border:1px solid transparent;border-radius:7px;color:#777a80;font-size:11px;font-weight:700;cursor:pointer;transition:all .22s var(--ease)}
.lang-btn.active,.lang-btn:hover{background:#fff;border-color:#e2e4e7;color:#1b1d20;box-shadow:0 2px 5px #00000008}
.credits{text-align:center}.credits-name{font-family:'Syne',sans-serif;font-size:13px;font-weight:700;color:#292b2f}.credits-ar{font-size:12px;color:#767a80;direction:rtl;margin:2px 0 3px}.credits-sub{font-size:10px;color:#9a9da2;letter-spacing:.015em}
.sidebar-toggle{display:none;position:fixed;top:14px;left:14px;z-index:200;background:#fff;border:1px solid var(--line-strong);color:var(--ink);border-radius:11px;width:42px;height:42px;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 5px 18px #0000000a}
.main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;position:relative;background:linear-gradient(135deg,#ffffff40,#f8f9fa20)}
.main::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% -10%,#fff 0%,#fff0 62%);z-index:0}
.welcome-screen,.chat-area,.input-bar-wrapper,.topbar{position:relative;z-index:1}
.topbar{height:68px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,3.5vw,48px);border-bottom:1px solid #e7e8e980;background:#ffffff75;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.topbar-kicker{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#85898f}
.topbar-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:#3b8a64;box-shadow:0 0 0 4px #3b8a6417}
.topbar-right{display:flex;align-items:center;gap:10px;font-size:11px;color:#96999e}
.topbar-line{width:26px;height:1px;background:#d7d9dc}
.welcome-screen{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 22px 30px;text-align:center;overflow:auto;animation:welcomeIn .8s var(--ease) both}
.welcome-screen.hidden{display:none}
@keyframes welcomeIn{from{opacity:0;transform:translateY(16px) scale(.99);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
.welcome-logo{width:82px;height:82px;background:linear-gradient(145deg,#fff,#f1f2f4);border:1px solid #dfe1e5;border-radius:25px;display:flex;align-items:center;justify-content:center;margin-bottom:25px;box-shadow:0 16px 36px #16191f0d,0 1px 0 #fff inset;position:relative;animation:logoFloat 5s ease-in-out infinite;overflow:visible}
.welcome-logo .brand-mark{width:67px;height:67px;filter:drop-shadow(0 2px 1px #16191f10)}
.welcome-logo .brand-orbit{stroke-width:2.8}
.welcome-logo::before{content:"";position:absolute;inset:-6px;border:1px solid #e0e2e6;border-radius:29px;opacity:.6;animation:ringPulse 4s ease-in-out infinite;pointer-events:none}
@keyframes logoFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@keyframes ringPulse{0%,100%{transform:scale(1);opacity:.4}50%{transform:scale(1.035);opacity:.85}}
.welcome-title{font-family:'Syne',sans-serif;font-size:clamp(34px,4vw,52px);font-weight:800;letter-spacing:-.065em;line-height:1.08;color:#17191c;margin-bottom:13px}
.welcome-sub{font-size:15px;line-height:1.8;color:#797d83;margin-bottom:30px;max-width:450px}
.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;justify-content:center;max-width:660px;width:min(100%,660px);perspective:1000px}
.suggestion-chip{min-height:64px;text-align:left;padding:14px 16px;background:#ffffffc9;border:1px solid #e2e4e7;border-radius:13px;color:#555960;font-size:12.5px;line-height:1.45;cursor:pointer;transition:transform .28s var(--ease),border-color .25s ease,box-shadow .28s ease,background .25s ease;color .25s ease;transform-style:preserve-3d;box-shadow:0 2px 4px #00000003;position:relative;overflow:hidden}
.suggestion-chip::after{content:"↗";position:absolute;right:13px;top:10px;color:#a4a7ac;opacity:0;transform:translate(-4px,4px);transition:all .22s ease}
.suggestion-chip:hover{background:#fff;border-color:#c9cdd2;color:#202226;box-shadow:0 14px 26px #2022260d,0 3px 7px #20222608;transform:translateY(-4px) rotateX(2deg)}
.suggestion-chip:hover::after{opacity:1;transform:translate(0,0)}
.chat-area{flex:1;min-height:0;overflow-y:auto;padding:26px 0 32px;display:none;flex-direction:column;gap:0;scroll-behavior:smooth;overscroll-behavior:contain}
.chat-area.visible{display:flex}
.message-row{display:flex;padding:12px clamp(18px,4vw,64px);gap:13px;align-items:flex-start;animation:messageReceive .55s var(--ease) both;transform-origin:50% 100%;will-change:transform,opacity}
.message-row.user{flex-direction:row-reverse;animation-name:messageSend}
@keyframes messageSend{0%{opacity:0;transform:translate3d(38px,18px,0) scale(.94);filter:blur(4px)}65%{opacity:1;transform:translate3d(-3px,-1px,0) scale(1.01);filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes messageReceive{0%{opacity:0;transform:translate3d(-24px,14px,0) scale(.97);filter:blur(5px)}60%{opacity:1;transform:translate3d(2px,-1px,0) scale(1.005);filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
.avatar{width:34px;height:34px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;transition:transform .3s var(--ease);box-shadow:0 2px 4px #00000008}
.avatar.ai{background:#202226;color:#fff;font-family:'Syne',sans-serif;font-weight:800;border:1px solid #383b40}
.avatar.user-av{background:#fff;border:1px solid #e1e3e6;color:#686c72}
.message-row:hover .avatar{transform:translateY(-2px) rotate(-3deg)}
.bubble{max-width:min(720px,82%);padding:15px 18px;border-radius:17px;font-size:14px;line-height:1.8;overflow-wrap:anywhere;box-shadow:0 3px 10px #11111104;transition:box-shadow .3s ease,transform .3s var(--ease)}
.bubble.ai{background:#ffffffd9;border:1px solid #e5e7e9;color:#292b2f;border-top-left-radius:5px;box-shadow:0 3px 12px #15171a06,0 1px 0 #fff inset}
.bubble.user{background:#24262a;color:#fff;border:1px solid #3b3e43;border-top-right-radius:5px;box-shadow:0 6px 18px #191b1f16,0 1px 0 #ffffff12 inset}
.bubble img{max-width:100%;border-radius:10px;margin-top:8px;display:block}
.bubble pre{background:#f4f5f6;border:1px solid #e0e2e5;border-radius:10px;padding:14px;overflow-x:auto;margin-top:10px;font-size:12.5px;color:#202226}
.bubble code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}
.bubble p{margin:0 0 10px}.bubble p:last-child{margin-bottom:0}
.bubble h1,.bubble h2,.bubble h3,.bubble h4,.bubble h5,.bubble h6{font-family:'Syne','DM Sans',sans-serif;line-height:1.3;font-weight:800;margin:18px 0 9px;color:inherit}
.bubble h1{font-size:1.75em}.bubble h2{font-size:1.5em}.bubble h3{font-size:1.3em}.bubble h4{font-size:1.15em}.bubble h5{font-size:1.05em}.bubble h6{font-size:1em}
.bubble h1:first-child,.bubble h2:first-child,.bubble h3:first-child{margin-top:0}
.bubble ul,.bubble ol{margin:7px 0 12px;padding-inline-start:25px}.bubble li{padding-inline-start:3px;margin:4px 0}
.bubble blockquote{margin:10px 0;padding:8px 13px;border-inline-start:3px solid #969da6;background:#f3f4f5;border-radius:0 7px 7px 0;color:#555b63}
.bubble hr{border:0;border-top:1px solid #dfe2e5;margin:15px 0}
.bubble strong{font-weight:750}.bubble del{opacity:.75}
.bubble pre{white-space:pre;}
.typing-indicator{display:flex;gap:5px;align-items:center;padding:4px 0}.typing-indicator span{width:6px;height:6px;background:#777e88;border-radius:50%;animation:typingPulse 1.1s infinite}.typing-indicator span:nth-child(2){animation-delay:.14s}.typing-indicator span:nth-child(3){animation-delay:.28s}
@keyframes typingPulse{0%,80%,100%{transform:translateY(0) scale(.75);opacity:.35}40%{transform:translateY(-5px) scale(1);opacity:1}}
.input-bar-wrapper{padding:16px clamp(14px,3vw,40px) 14px;background:linear-gradient(0deg,#fafafa 65%,#fafafaee 82%,#fafafa00);border-top:1px solid #e4e6e880}
.input-bar{max-width:850px;margin:0 auto;background:#fff;border:1px solid #dfe1e4;border-radius:19px;display:flex;align-items:flex-end;gap:9px;padding:10px 10px 10px 9px;box-shadow:0 8px 28px #20222609,0 1px 3px #20222605;transition:border-color .25s ease,box-shadow .3s var(--ease),transform .3s var(--ease)}
.input-bar:focus-within{border-color:#b9bec5;box-shadow:0 12px 35px #20222610,0 0 0 4px #2a303809;transform:translateY(-2px)}
.mode-toggle{display:flex;flex-direction:column;gap:4px;padding-bottom:2px}
.mode-btn{width:33px;height:33px;background:#f7f8f8;border:1px solid #e7e8ea;border-radius:10px;color:#83878d;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .25s var(--ease);flex-shrink:0}
.mode-btn.active,.mode-btn:hover{background:#24262a;border-color:#24262a;color:#fff;transform:translateY(-1px)}
.message-input{flex:1;min-width:0;background:transparent;border:0;outline:none;color:#202226;font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.65;resize:none;max-height:180px;overflow-y:auto;padding:6px 2px}
.message-input::placeholder{color:#a0a3a8}
.send-btn{width:40px;height:40px;background:#202226;border:1px solid #202226;border-radius:13px;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .28s var(--ease),background .2s ease,box-shadow .28s ease;box-shadow:0 4px 8px #20222616}
.send-btn:hover{background:#3a3d42;transform:translateY(-2px) rotate(-3deg);box-shadow:0 8px 16px #2022261e}.send-btn:active{transform:scale(.91) rotate(0)}.send-btn:disabled{opacity:.45;cursor:wait}
.send-btn.is-sending svg{animation:sendIcon .45s var(--ease)}@keyframes sendIcon{0%{transform:translate(0,0) scale(1)}45%{transform:translate(7px,-7px) scale(.7);opacity:.35}100%{transform:translate(0,0) scale(1);opacity:1}}
.input-footer{text-align:center;font-size:10.5px;color:#a1a4a9;margin-top:10px;letter-spacing:.01em}
.mode-indicator{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;padding:4px 10px;border-radius:100px;margin-bottom:4px;margin-left:72px;background:#fff;color:#777d84;border:1px solid #e6e8ea;animation:fadeLift .4s var(--ease)}
.mode-indicator.image{color:#6f6249}.mode-indicator.text{color:#5c6570}
@keyframes fadeLift{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
[dir="rtl"] .sidebar{border-right:0;border-left:1px solid var(--line)}[dir="rtl"] .sidebar::after{right:auto;left:-1px}[dir="rtl"] .message-row{flex-direction:row-reverse}[dir="rtl"] .message-row.user{flex-direction:row}[dir="rtl"] .bubble.ai{border-top-left-radius:17px;border-top-right-radius:5px}[dir="rtl"] .bubble.user{border-top-right-radius:17px;border-top-left-radius:5px}[dir="rtl"] .mode-indicator{margin-left:0;margin-right:72px}[dir="rtl"] .suggestion-chip{text-align:right}[dir="rtl"] .suggestion-chip::after{right:auto;left:13px}[dir="rtl"] .new-chat-btn{flex-direction:row}
.toast{position:fixed;bottom:94px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #e0b8bc;color:#9d2835;padding:11px 18px;border-radius:12px;font-size:12.5px;z-index:999;box-shadow:0 12px 36px #20222612;animation:toastIn .35s var(--ease) both;max-width:min(90vw,600px)}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,12px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
.account-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px}.account-tools button,.account-tools a{border:1px solid #e0e2e5!important;background:#fff!important;color:#33363a!important;padding:7px 9px;border-radius:8px;font-size:11px;text-decoration:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.account-tools button:hover,.account-tools a:hover{transform:translateY(-1px);box-shadow:0 5px 12px #0000000b}
.auth-overlay{position:fixed!important;inset:0!important;z-index:9999!important;background:rgba(246,247,248,.86)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;display:flex;align-items:center;justify-content:center;padding:20px;animation:authFade .45s ease both}
@keyframes authFade{from{opacity:0}to{opacity:1}}
.auth-card{width:min(430px,100%)!important;background:#fff!important;border:1px solid #e1e3e6!important;border-radius:22px!important;padding:34px!important;color:#1b1d20!important;box-shadow:0 30px 90px #20222612,0 2px 7px #20222605!important;animation:authCardIn .65s var(--ease) both}
@keyframes authCardIn{from{opacity:0;transform:translateY(18px) scale(.97);filter:blur(5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
.auth-card h2{font-family:'Syne',sans-serif!important;font-size:27px!important;letter-spacing:-.04em!important;margin:0 0 9px!important;color:#191b1e!important}
.auth-card p{color:#777b81!important;line-height:1.6!important;margin:0 0 20px!important;font-size:13px!important}
.auth-card input{width:100%!important;padding:13px 14px!important;margin:0 0 12px!important;border-radius:11px!important;border:1px solid #e0e2e5!important;background:#fafafa!important;color:#202226!important;font:inherit!important;transition:border-color .2s ease,box-shadow .2s ease!important}
.auth-card input:focus{border-color:#aab0b8!important;box-shadow:0 0 0 4px #2a303809!important;outline:none!important}
.auth-card button{width:100%!important;padding:12px!important;border:1px solid #202226!important;border-radius:11px!important;background:#202226!important;color:#fff!important;font:inherit!important;font-weight:700!important;cursor:pointer;margin-top:5px!important;transition:transform .2s ease,background .2s ease!important}
.auth-card button:hover{background:#3a3d42!important;transform:translateY(-1px)}
.auth-card .auth-switch{background:transparent!important;color:#60656c!important;border-color:transparent!important;font-weight:500!important}
.auth-error{color:#b42332!important;margin:10px 0!important}.auth-overlay[hidden]{display:none}.ban-screen{position:fixed;inset:0;z-index:10000;background:#8b1824;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;font-family:Arial,sans-serif}.ban-screen h1{font-size:clamp(28px,6vw,56px);margin:0 0 20px}.ban-screen p{max-width:650px;font-size:18px;line-height:1.6}.ban-screen .reason{font-weight:bold;background:#5b1018;padding:14px 18px;border-radius:8px}.hidden-auth{display:none!important}
.reveal-on-scroll{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}.reveal-on-scroll.is-revealed{opacity:1;transform:translateY(0)}
.motion-flare{position:fixed;inset:auto;z-index:9998;pointer-events:none;width:12px;height:12px;border-radius:50%;background:#d5d9de;box-shadow:0 0 0 8px #d5d9de28;opacity:0;transform:translate(-50%,-50%) scale(.5);transition:opacity .35s ease,transform .35s var(--ease)}
@media(max-width:900px){:root{--sidebar-w:240px}.topbar{height:60px}.welcome-title{font-size:38px}.suggestions{max-width:560px}}
@media(max-width:700px){.sidebar{position:fixed;top:0;left:0;bottom:0;transform:translateX(-102%);box-shadow:12px 0 35px #0000000b}.sidebar.open{transform:translateX(0)}[dir="rtl"] .sidebar{left:auto;right:0;transform:translateX(102%)}[dir="rtl"] .sidebar.open{transform:translateX(0)}.sidebar-toggle{display:flex}.main{padding-left:0}.topbar{padding-left:70px;padding-right:18px}.topbar-right{display:none}.welcome-screen{padding:26px 18px}.welcome-title{font-size:32px}.welcome-sub{font-size:13px;margin-bottom:24px}.welcome-logo{width:68px;height:68px;border-radius:21px}.welcome-logo .brand-mark{width:56px;height:56px}.suggestions{grid-template-columns:1fr;gap:8px;max-width:440px}.suggestion-chip{min-height:52px;padding:12px 14px}.message-row{padding:10px 13px;gap:9px}.avatar{width:29px;height:29px;border-radius:10px}.bubble{max-width:calc(100% - 38px);padding:12px 13px;font-size:13px}.input-bar-wrapper{padding:12px 10px 10px}.input-bar{border-radius:16px;padding:8px}.message-input{font-size:13px}.send-btn{width:37px;height:37px}.mode-btn{width:30px;height:30px}.input-footer{font-size:9.5px}.auth-card{padding:25px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal-on-scroll{opacity:1;transform:none}}


/* Higher-contrast ink outlines: keep the light theme, lose the washed-out feel. */
:root{--line:#c8cbd0;--line-strong:#92969d;--grid:rgba(20,22,26,.085)}
.sidebar{border-color:#25272b;box-shadow:inset -1px 0 0 #25272b}
[dir="rtl"] .sidebar{border-left-color:#25272b}
.sidebar-top,.sidebar-bottom{border-color:#c5c8cd}
.topbar{border-bottom:1px solid #292b30;background:rgba(255,255,255,.9)}
.logo-icon,.welcome-logo{border:1.5px solid #292b30;box-shadow:3px 3px 0 #25272b0c,0 1px 0 #fff inset}
.new-chat-btn{border:1.5px solid #111214;box-shadow:3px 3px 0 #111214}
.history-item{border-color:transparent}
.history-item:hover,.history-item.active{border-color:#292b30;box-shadow:2px 2px 0 #292b3010}
.lang-switcher{border:1px solid #aeb2b8;background:#f0f1f2}
.lang-btn.active,.lang-btn:hover{border-color:#292b30;box-shadow:1px 1px 0 #292b3012}
.suggestion-chip{border:1.5px solid #777b82;box-shadow:2px 2px 0 #2022260b}
.suggestion-chip:hover{border-color:#202226;box-shadow:3px 4px 0 #20222612}
.bubble.ai{border:1.5px solid #b7bbc1;box-shadow:2px 3px 0 #20222608}
.bubble.user{border:1.5px solid #111214;box-shadow:3px 4px 0 #191b1f18}
.input-bar{border:1.5px solid #33363b;box-shadow:3px 4px 0 #2022260d}
.input-bar:focus-within{border-color:#111214;box-shadow:3px 4px 0 #2022260d,0 0 0 3px #20222612}
.mode-btn{border-color:#aeb2b8}
.mode-btn.active,.mode-btn:hover{border-color:#111214}
.send-btn{border:1.5px solid #111214;box-shadow:2px 3px 0 #20222618}
.account-tools button,.account-tools a{border:1.5px solid #6f737a!important;box-shadow:1px 2px 0 #2022260a}
.auth-card{border:1.5px solid #292b30!important;box-shadow:6px 7px 0 #20222612,0 24px 70px #20222614!important}
.auth-card input{border:1.5px solid #92969d!important}
.auth-card input:focus{border-color:#202226!important}
.toast{border:1.5px solid #8f2732}


/* Make the cursor-reactive grid and light field visible without turning the page dark. */
:root{--grid:rgba(22,25,30,.13);--mouse-x-pct:50%;--mouse-y-pct:40%}
body::before{background-image:linear-gradient(rgba(25,28,33,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(25,28,33,.12) 1px,transparent 1px),radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),rgba(205,210,218,.55),rgba(235,237,240,.24) 38%,transparent 74%);background-size:32px 32px,32px 32px,auto;mask-image:none;opacity:.9;transition:background-position .08s linear}
body::after{background:radial-gradient(360px circle at var(--mouse-x) var(--mouse-y),rgba(130,139,152,.19),rgba(220,223,228,.1) 42%,transparent 75%);opacity:1;mix-blend-mode:multiply;transition:opacity .25s ease}
.main::before{background:radial-gradient(ellipse at var(--mouse-x-pct) var(--mouse-y-pct),rgba(224,227,232,.42),transparent 46%),radial-gradient(ellipse at 50% -10%,#fff 0%,#fff0 62%);transition:background-position .12s ease}
.welcome-logo{transition:transform .18s ease-out,box-shadow .25s ease;transform:translate3d(var(--logo-shift-x,0px),var(--logo-shift-y,0px),0) perspective(700px) rotateX(var(--logo-tilt-x,0deg)) rotateY(var(--logo-tilt-y,0deg));transform-style:preserve-3d;will-change:transform}
.welcome-logo.cursor-tracking{animation:none;box-shadow:0 22px 48px #16191f18,0 1px 0 #fff inset}
.welcome-logo.cursor-tracking::before{transform:translate3d(calc(var(--logo-shift-x,0px)*-.35),calc(var(--logo-shift-y,0px)*-.35),-10px);transition:transform .18s ease-out}
@media(max-width:700px){body::before{background-size:28px 28px,28px 28px,auto}}
@media(prefers-reduced-motion:reduce){.welcome-logo{transform:none!important;transition:none!important}}

/* Branded assistant avatar: use the actual Debieb-GPT mark instead of a plain letter. */
.avatar.ai{width:38px;height:38px;border-radius:13px;background:linear-gradient(145deg,#292c31,#111214);border:1px solid #090a0b;box-shadow:0 3px 0 #00000012,0 6px 14px #16191f18,0 1px 0 #ffffff20 inset;position:relative;overflow:hidden;isolation:isolate}
.avatar.ai::before{content:"";position:absolute;inset:3px;border:1px solid #ffffff25;border-radius:9px;pointer-events:none}
.avatar.ai .avatar-mark{width:31px;height:31px;position:relative;z-index:1;overflow:visible;filter:drop-shadow(0 1px 1px #0005)}
.avatar.ai .avatar-mark-d{fill:#f7f8fa}
.avatar.ai .avatar-mark-orbit{fill:none;stroke:#aeb5bf;stroke-width:3.6;stroke-linecap:round}
.avatar.ai .avatar-mark-spark{fill:#fff;stroke:#30343a;stroke-width:1.2;stroke-linejoin:round}
@media(max-width:700px){.avatar.ai{width:32px;height:32px;border-radius:11px}.avatar.ai .avatar-mark{width:27px;height:27px}}


/* Interaction layer: responsive feedback without slowing down the conversation. */
button{ -webkit-tap-highlight-color:transparent; }
button:not(.lang-btn):not(.mode-btn){position:relative;overflow:hidden}
.interaction-ripple{position:absolute;width:12px;height:12px;border-radius:50%;background:currentColor;opacity:.15;pointer-events:none;transform:translate(-50%,-50%) scale(0);animation:interactionRipple .55s ease-out forwards}
@keyframes interactionRipple{to{transform:translate(-50%,-50%) scale(18);opacity:0}}
.input-bar{transition:border-color .22s ease,box-shadow .25s ease,transform .25s var(--ease)}
.input-bar.is-focused{border-color:#aeb4bd;box-shadow:0 0 0 4px #252a3209,0 12px 32px #2022260c}
.message-input{transition:height .18s ease}
.send-btn{transition:transform .2s var(--ease),background .2s ease,box-shadow .2s ease}
.send-btn:hover{transform:translateY(-2px) rotate(-3deg);box-shadow:0 7px 16px #15171b24}
.send-btn:active{transform:scale(.91)}
.jump-latest{position:absolute;right:clamp(20px,4vw,54px);bottom:112px;z-index:12;width:42px;height:42px;border:1px solid #d7dade;border-radius:50%;background:#fff;color:#25282d;box-shadow:0 8px 24px #17191d18;display:grid;place-items:center;cursor:pointer;opacity:0;pointer-events:none;transform:translateY(8px) scale(.92);transition:opacity .2s ease,transform .24s var(--ease),box-shadow .2s ease}
.jump-latest span{font-size:22px;line-height:1}
.jump-latest.is-visible{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}
.jump-latest:hover{box-shadow:0 12px 28px #17191d24;transform:translateY(-2px) scale(1.04)}
.history-item:active,.suggestion-chip:active{transition-duration:.08s;filter:brightness(.98)}
@media(max-width:700px){.jump-latest{right:18px;bottom:104px;width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.interaction-ripple{display:none}.input-bar,.send-btn,.jump-latest{transition:none!important}}


/* Anchor the composer to the actual bottom edge of the chat viewport. */
.main{height:100dvh;min-height:0;}
.input-bar-wrapper{position:absolute;left:0;right:0;bottom:0;z-index:20;padding:0 clamp(14px,3vw,40px) 10px;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
.chat-area{padding-bottom:160px;}
@media(max-width:700px){.input-bar-wrapper{padding-bottom:3px}.chat-area{padding-bottom:145px}}


/* Cursor-reactive details: restrained silver spotlight, comet trail, and click burst. */
.suggestion-chip,.history-item,.input-bar,.welcome-logo{background-image:radial-gradient(180px circle at var(--spot-x,50%) var(--spot-y,50%),rgba(190,198,208,.22),transparent 72%);}
.send-btn,.new-chat-btn,.mode-btn{translate:var(--mag-x,0) var(--mag-y,0);}
.cursor-mote{position:fixed;z-index:9997;pointer-events:none;width:5px;height:5px;border-radius:50%;background:#8b929c;box-shadow:0 0 0 2px rgba(120,128,140,.09),0 0 12px rgba(104,113,126,.22);transform:translate(-50%,-50%) scale(1);animation:cursorMoteFade .58s ease-out forwards;}
.cursor-mote-alt{width:3px;height:3px;background:#c3c8cf;animation-duration:.72s;}
.cursor-burst{position:fixed;z-index:9996;pointer-events:none;width:8px;height:8px;border:1px solid rgba(100,109,121,.6);border-radius:50%;transform:translate(-50%,-50%) scale(.4);animation:cursorBurst .48s cubic-bezier(.18,.7,.25,1) forwards;}
@keyframes cursorMoteFade{0%{opacity:.8;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.15) translateY(-9px)}}
@keyframes cursorBurst{0%{opacity:.65;transform:translate(-50%,-50%) scale(.4)}100%{opacity:0;transform:translate(-50%,-50%) scale(5)}}
.suggestion-chip,.history-item{transition:background-color .25s ease,box-shadow .25s ease,transform .2s ease;}
.suggestion-chip:hover,.history-item:hover{box-shadow:0 9px 24px rgba(25,29,35,.08),0 0 0 1px rgba(165,172,182,.2);}
@media(prefers-reduced-motion:reduce){.cursor-mote,.cursor-burst{display:none!important}.send-btn,.new-chat-btn,.mode-btn{translate:none!important}}


/* Make the rounded composer the only visible floating surface at the bottom. */
.input-bar-wrapper::before,.input-bar-wrapper::after{display:none!important;content:none!important;}
.input-bar{position:relative;background:#fff;border:1.5px solid #33363b;border-radius:19px;box-shadow:0 12px 34px rgba(24,27,32,.13),0 3px 8px rgba(24,27,32,.06);}
.input-footer{margin-top:7px;text-shadow:0 1px 3px rgba(255,255,255,.8);}
@media(max-width:700px){.input-bar-wrapper{padding:0 10px 8px}.input-bar{border-radius:16px}}


/* Responsive hover physics for all main-area controls; sidebar remains untouched. */
.main button:not(.sidebar button),.main .input-bar,.main .suggestion-chip{
  position:relative;
  transform:perspective(700px) rotateX(var(--cursor-tilt-x,0deg)) rotateY(var(--cursor-tilt-y,0deg));
  transition:transform .16s ease-out,box-shadow .2s ease,background-color .2s ease;
  will-change:transform;
}
.main button:not(.sidebar button):not(:disabled):hover{
  box-shadow:0 7px 20px rgba(22,26,32,.12),0 0 0 1px rgba(140,149,162,.22);
}
.main .input-bar.cursor-active{
  box-shadow:0 15px 38px rgba(24,27,32,.17),0 0 0 1px rgba(150,158,170,.22);
  border-color:#8b929c;
}
.main button.cursor-active:not(:disabled){
  background-image:radial-gradient(130px circle at var(--spot-x,50%) var(--spot-y,50%),rgba(190,198,208,.24),transparent 75%);
}
@media(prefers-reduced-motion:reduce){
  .main button,.main .input-bar,.main .suggestion-chip{transform:none!important;transition:none!important;will-change:auto}
}


/* Keep the mobile app canvas aligned to the viewport in both LTR and RTL. */
@media(max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{position:relative}
  .main{width:0;min-width:0;flex:1 1 0}
  .input-bar-wrapper{left:0;right:0;width:100%;max-width:100%;box-sizing:border-box}
  .welcome-screen,.chat-area,.topbar{min-width:0;max-width:100%}
  .suggestions{width:100%;min-width:0}
}


/* Mobile layout repair: prevent fixed composer, header, chat and sidebar from colliding. */
@media (max-width:700px){
  html,body{height:100%;height:100dvh;min-height:0;width:100%;max-width:100%;overflow:hidden}
  body{display:flex;flex-direction:row;position:relative}
  .sidebar{width:min(84vw,300px);max-width:300px;height:100%;height:100dvh;max-height:100dvh;z-index:300;overflow:hidden}
  [dir="ltr"] .sidebar{left:0;right:auto}
  [dir="rtl"] .sidebar{right:0;left:auto}
  .sidebar-toggle{top:max(10px,env(safe-area-inset-top));left:10px;right:auto;z-index:400}
  [dir="rtl"] .sidebar-toggle{left:auto;right:10px}
  .main{display:flex;flex:1 1 0;width:0;min-width:0;height:100%;height:100dvh;min-height:0;overflow:hidden}
  .topbar{height:58px;min-height:58px;flex:0 0 58px;width:100%;min-width:0;padding:0 62px 0 14px;gap:8px}
  [dir="rtl"] .topbar{padding:0 62px 0 14px}
  .topbar-kicker{font-size:9px;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .welcome-screen{flex:1 1 auto;width:100%;min-width:0;min-height:0;max-height:calc(100dvh - 58px);overflow-y:auto;overflow-x:hidden;justify-content:center;padding:24px 14px calc(160px + env(safe-area-inset-bottom))}
  .welcome-logo{width:58px;height:58px;margin-bottom:16px;border-radius:18px}
  .welcome-logo .brand-mark{width:48px;height:48px}
  .welcome-title{font-size:clamp(27px,8vw,34px);line-height:1.12;margin-bottom:8px;overflow-wrap:anywhere}
  .welcome-sub{font-size:13px;line-height:1.55;margin:0 0 18px;max-width:100%;overflow-wrap:anywhere}
  .suggestions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:420px;min-width:0;gap:8px}
  .suggestion-chip{width:100%;min-width:0;min-height:46px;padding:11px 34px 11px 12px;font-size:12px;text-align:start;overflow-wrap:anywhere}
  [dir="rtl"] .suggestion-chip{padding:11px 12px 11px 34px;text-align:right}
  .chat-area{flex:1 1 0;width:100%;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding:14px 0 calc(145px + env(safe-area-inset-bottom));overscroll-behavior:contain}
  .message-row{width:100%;min-width:0;padding:9px 10px;gap:8px}
  .avatar,.avatar.ai{width:29px;height:29px;min-width:29px;border-radius:9px}
  .avatar.ai .avatar-mark{width:24px;height:24px}
  .bubble{min-width:0;max-width:calc(100% - 37px);padding:10px 12px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;word-break:break-word}
  .bubble pre{max-width:100%;white-space:pre;overflow-x:auto}
  .input-bar-wrapper{position:absolute;left:0;right:0;bottom:0;width:100%;max-width:100%;padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:50}
  .input-bar{width:100%;max-width:none;min-width:0;display:flex;align-items:flex-end;gap:6px;padding:7px;border-radius:15px}
  .mode-toggle{flex:0 0 auto;gap:3px}
  .mode-btn{width:29px;height:29px}
  .message-input{width:0;flex:1 1 0;min-width:0;max-height:120px;font-size:14px;line-height:1.45;padding:7px 1px;overflow-wrap:anywhere}
  .send-btn{width:36px;height:36px;min-width:36px;border-radius:11px}
  .input-footer{font-size:9px;margin-top:5px;line-height:1.3}
  .jump-latest{right:12px;bottom:calc(105px + env(safe-area-inset-bottom))}
  [dir="rtl"] .jump-latest{right:auto;left:12px}
  .toast{bottom:calc(100px + env(safe-area-inset-bottom));width:calc(100% - 28px);max-width:520px;text-align:center}
  .auth-overlay{padding:14px;overflow-y:auto;align-items:center}
  .auth-card{width:100%!important;max-width:430px!important;padding:23px!important;margin:auto}
  .auth-card h2{font-size:23px!important}
}
@media (max-width:380px){
  .topbar{height:54px;min-height:54px;flex-basis:54px}
  .topbar-kicker{font-size:8px}
  .welcome-screen{max-height:calc(100dvh - 54px);padding-left:11px;padding-right:11px}
  .input-bar-wrapper{padding-left:7px;padding-right:7px}
  .input-bar{gap:4px;padding:6px}
  .mode-btn{width:26px;height:26px}
  .send-btn{width:33px;height:33px;min-width:33px}
  .message-row{padding-left:7px;padding-right:7px}
  .bubble{font-size:12.5px;padding:9px 10px}
}
@media (max-height:560px) and (max-width:700px){
  .welcome-screen{justify-content:flex-start;padding-top:12px;padding-bottom:145px}
  .welcome-logo{width:44px;height:44px;margin-bottom:8px}
  .welcome-logo .brand-mark{width:37px;height:37px}
  .welcome-sub{margin-bottom:10px}
  .suggestion-chip{min-height:40px;padding-top:8px;padding-bottom:8px}
}


/* Rebuilt phone layout: one header row, one content viewport, one composer. */
@media (max-width:700px){
  html,body{width:100%;height:100%;height:100dvh;min-height:0;overflow:hidden}
  body{display:block;position:relative}
  .main{position:absolute;inset:0;display:flex;flex-direction:column;width:100%;height:100%;height:100dvh;min-width:0;min-height:0;overflow:hidden}
  .topbar{position:relative;display:flex;flex:0 0 58px;height:58px;min-height:58px;width:100%;padding:0 14px;gap:12px;justify-content:flex-start;overflow:hidden}
  .sidebar-toggle{position:relative;inset:auto;display:flex;flex:0 0 40px;width:40px;height:40px;z-index:2;border-radius:10px;box-shadow:none}
  .topbar-kicker{min-width:0;max-width:calc(100% - 52px);font-size:9px;letter-spacing:.07em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-right{display:none}
  .sidebar{position:fixed;top:0;bottom:0;left:0;right:auto;width:min(84vw,300px);height:100%;height:100dvh;max-height:100dvh;transform:translateX(-105%);z-index:500;box-shadow:none;transition:transform .25s ease;overflow:hidden}
  .sidebar.open{transform:translateX(0);box-shadow:12px 0 35px #0002}
  [dir="rtl"] .sidebar{left:auto;right:0;transform:translateX(105%)}
  [dir="rtl"] .sidebar.open{transform:translateX(0);box-shadow:-12px 0 35px #0002}
  .sidebar-toggle{order:0}
  [dir="rtl"] .topbar{flex-direction:row}
  [dir="rtl"] .topbar-kicker{direction:ltr;text-align:left}
  .welcome-screen{flex:1 1 0;width:100%;min-width:0;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;padding:22px 16px calc(155px + env(safe-area-inset-bottom));justify-content:center}
  .welcome-logo{width:56px;height:56px;margin-bottom:13px;border-radius:17px}
  .welcome-logo .brand-mark{width:46px;height:46px}
  .welcome-title{font-size:clamp(27px,8vw,34px);line-height:1.12;margin:0 0 8px;overflow-wrap:anywhere}
  .welcome-sub{font-size:13px;line-height:1.55;margin:0 0 17px;max-width:360px}
  .suggestions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:420px;gap:8px}
  .suggestion-chip{width:100%;min-width:0;min-height:45px;padding:11px 14px;text-align:start;font-size:12px;overflow-wrap:anywhere}
  .chat-area{flex:1 1 0;width:100%;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;padding:18px 12px calc(130px + env(safe-area-inset-bottom));gap:10px}
  .message-row,.message-row.user{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;width:100%;min-width:0;padding:0;gap:9px;direction:ltr}
  .message-row.user{justify-content:flex-end}
  .message-row .avatar{flex:0 0 30px;width:30px;height:30px}
  .message-row .bubble{flex:0 1 auto;width:auto;min-width:0;max-width:calc(100% - 39px);padding:11px 13px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;word-break:normal}
  .message-row.user .bubble{margin-left:auto;max-width:min(84%,560px)}
  .message-row .bubble pre{max-width:100%;overflow-x:auto;white-space:pre}
  .input-bar-wrapper{position:absolute;left:0;right:0;bottom:0;width:100%;max-width:none;padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:30}
  .input-bar{display:flex;width:100%;max-width:none;min-width:0;gap:7px;padding:8px;border-radius:15px;align-items:flex-end}
  .mode-toggle{display:flex;flex:0 0 auto;gap:4px;padding-bottom:2px}
  .mode-btn{width:30px;height:30px}
  .message-input{display:block;flex:1 1 0;width:0;min-width:0;max-height:112px;font-size:14px;line-height:1.45;padding:7px 2px}
  .send-btn{flex:0 0 36px;width:36px;height:36px}
  .input-footer{font-size:9px;margin-top:5px;line-height:1.3}
  .jump-latest{bottom:calc(105px + env(safe-area-inset-bottom));right:14px}
  [dir="rtl"] .jump-latest{right:auto;left:14px}
  .toast{bottom:calc(105px + env(safe-area-inset-bottom));left:50%;width:calc(100% - 28px);max-width:500px}
  .auth-overlay{padding:14px;overflow-y:auto}
  .auth-card{width:100%!important;max-width:430px!important;padding:22px!important}
}
@media(max-width:380px){
  .topbar{flex-basis:54px;height:54px;min-height:54px}
  .sidebar-toggle{width:38px;height:38px;flex-basis:38px}
  .chat-area{padding-left:9px;padding-right:9px}
  .message-row,.message-row.user{gap:7px}
  .message-row .avatar{flex-basis:27px;width:27px;height:27px}
  .message-row .bubble{max-width:calc(100% - 34px);padding:9px 11px;font-size:12.5px}
  .input-bar-wrapper{padding-left:7px;padding-right:7px}
}


/* Center the quick prompts and give the entire interface a restrained floating motion. */
.suggestions{
  justify-items:center;
  align-content:center;
  margin-inline:auto;
}
.suggestion-chip{
  width:100%;
  text-align:center;
}
[dir="rtl"] .suggestion-chip{ text-align:center; }
@keyframes interfaceFloat{
  0%,100%{translate:0 0;}
  50%{translate:0 -1.8px;}
}
/* Independent translate keeps existing hover/3D transforms intact. */
.sidebar,
.sidebar-top,
.logo,
.new-chat-btn,
.chat-history,
.history-item,
.sidebar-bottom,
.lang-switcher,
.credits,
.topbar,
.topbar-kicker,
.topbar-right,
.welcome-logo,
.welcome-title,
.welcome-sub,
.suggestion-chip,
.message-row,
.avatar,
.bubble,
.input-bar,
.mode-btn,
.message-input,
.send-btn,
.input-footer,
.auth-card,
.account-tools,
.toast,
.jump-latest{
  animation-name:interfaceFloat;
  animation-duration:7s;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
}
.suggestion-chip:nth-child(2),
.history-item:nth-child(even),
.message-row:nth-child(even),
.mode-btn:nth-child(2){animation-delay:-2.2s;}
.suggestion-chip:nth-child(3),
.history-item:nth-child(3n),
.message-row:nth-child(3n),
.avatar{animation-delay:-4.1s;}
.suggestion-chip:nth-child(4),
.message-row:nth-child(4n),
.bubble{animation-delay:-1.1s;}
@media(prefers-reduced-motion:reduce){
  .sidebar,.sidebar-top,.logo,.new-chat-btn,.chat-history,.history-item,
  .sidebar-bottom,.lang-switcher,.credits,.topbar,.topbar-kicker,.topbar-right,
  .welcome-logo,.welcome-title,.welcome-sub,.suggestion-chip,.message-row,
  .avatar,.bubble,.input-bar,.mode-btn,.message-input,.send-btn,.input-footer,
  .auth-card,.account-tools,.toast,.jump-latest{animation:none!important;translate:none!important;}
}


/* Explicitly requested ambient float: keep it active even when the OS reduces
   other motion. The independent translate property avoids clobbering hover transforms. */
@keyframes interfaceFloat{
  0%,100%{translate:0 0;}
  50%{translate:0 -2px;}
}
.sidebar,.sidebar-top,.logo,.new-chat-btn,.chat-history,.history-item,
.sidebar-bottom,.lang-switcher,.credits,.topbar,.topbar-kicker,.topbar-right,
.welcome-logo,.welcome-title,.welcome-sub,.suggestion-chip,.message-row,
.avatar,.bubble,.input-bar,.mode-btn,.message-input,.send-btn,.input-footer,
.auth-card,.account-tools,.toast,.jump-latest{
  animation-name:interfaceFloat!important;
  animation-duration:7s!important;
  animation-timing-function:ease-in-out!important;
  animation-iteration-count:infinite!important;
}
.welcome-logo.cursor-tracking{
  animation-name:interfaceFloat!important;
  animation-duration:7s!important;
  animation-iteration-count:infinite!important;
}


/* Premium entry sits with primary navigation, away from account/logout controls. */
.sidebar-top .premium-cta{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;min-height:38px;margin:10px 0 0;padding:0 14px;border:1px solid rgba(156,126,65,.38);border-radius:9px;background:linear-gradient(135deg,#fffdf8 0%,#f4eddf 100%);color:#554323;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.025em;box-shadow:0 2px 9px rgba(73,57,27,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;white-space:nowrap}
.sidebar-top .premium-cta:hover{transform:translateY(-1px);border-color:#b89b61;box-shadow:0 5px 14px rgba(73,57,27,.12)}
.sidebar-top .premium-cta:focus-visible{outline:3px solid rgba(184,155,97,.45);outline-offset:3px}
.premium-cta-mark{font-size:15px;color:#9a793c}
.premium-cta-arrow{font-size:13px;opacity:.7}
