/* XiXChat Web R — interaction and visual refresh */
:root{
  --bg:#eef5ff;--surface:rgba(255,255,255,.86);--surface-solid:#fff;--surface-2:#f0f5fc;
  --surface-hover:#e8f1ff;--line:rgba(40,74,118,.11);--text:#12233e;--muted:#6c7d95;
  --blue:#1677ff;--cyan:#18bde5;--indigo:#6558ff;--shadow:0 28px 80px rgba(47,86,133,.14);
  --small-shadow:0 10px 34px rgba(47,86,133,.09);--radius-xl:32px;--radius-lg:24px;
}
html[data-theme="dark"]{--bg:#07111f;--surface:rgba(13,27,45,.88);--surface-solid:#0e1c2e;--surface-2:#142840;--surface-hover:#19344f;--line:rgba(191,218,255,.11);--text:#f2f7ff;--muted:#91a5bd;--shadow:0 30px 90px rgba(0,0,0,.42);--small-shadow:0 12px 34px rgba(0,0,0,.26)}
@media(prefers-color-scheme:dark){html[data-theme="system"]{--bg:#07111f;--surface:rgba(13,27,45,.88);--surface-solid:#0e1c2e;--surface-2:#142840;--surface-hover:#19344f;--line:rgba(191,218,255,.11);--text:#f2f7ff;--muted:#91a5bd;--shadow:0 30px 90px rgba(0,0,0,.42);--small-shadow:0 12px 34px rgba(0,0,0,.26)}}
html,body{width:100%;height:100%;overscroll-behavior:none}body{background:radial-gradient(circle at 7% 4%,rgba(34,186,255,.12),transparent 27%),radial-gradient(circle at 93% 96%,rgba(101,88,255,.11),transparent 30%),var(--bg)}
button,.list-row,.nav-button,.icon-button{-webkit-tap-highlight-color:transparent}.button{min-height:42px;border:1px solid transparent;letter-spacing:.01em}.button:not(.primary):not(.danger){border-color:var(--line)}.button.primary{box-shadow:0 13px 32px rgba(22,119,255,.24)}
.input,.textarea,.select{min-height:48px;border-radius:16px;background:color-mix(in srgb,var(--surface-solid) 94%,var(--blue) 6%);font-size:16px}.secret-input{font-family:ui-rounded,"SF Pro Rounded",system-ui,sans-serif;letter-spacing:.02em;caret-color:var(--blue)}
.card{border-color:color-mix(in srgb,var(--line) 75%,white 25%);box-shadow:0 14px 40px rgba(44,83,128,.075);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.page-inner>.card:hover{border-color:rgba(22,119,255,.17);box-shadow:0 18px 48px rgba(44,83,128,.1)}
.auth-shell{min-height:min(660px,calc(100dvh - 32px));border:1px solid rgba(255,255,255,.55);box-shadow:0 40px 120px rgba(36,77,127,.2)}.auth-art{isolation:isolate;background:linear-gradient(145deg,#0f7bff 0%,#386fff 45%,#6859ff 100%)}.auth-art:before{content:"";position:absolute;width:360px;height:360px;right:-150px;top:-130px;border-radius:50%;background:rgba(255,255,255,.16);filter:blur(2px);z-index:-1}.auth-art:after{z-index:-1;pointer-events:none}.auth-art>div,.auth-art>small{position:relative;z-index:1}.auth-main{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.auth-main>.brand-logo{display:none}.auth-submit{width:100%;margin-top:14px;min-height:50px;border-radius:17px}.auth-divider{display:flex;align-items:center;gap:12px;margin:19px 0;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.qr-login-button{width:100%;padding:12px;text-align:left;justify-content:flex-start;background:linear-gradient(135deg,rgba(22,119,255,.08),rgba(24,189,229,.06));border-color:rgba(22,119,255,.13)!important}.qr-login-button>span:nth-child(2){display:grid;gap:2px;flex:1}.qr-login-button small{color:var(--muted);font-weight:550}.qr-login-button>i{font-size:22px;color:var(--muted)}.qr-button-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--cyan));color:white;font-size:25px}
.qr-login-panel{text-align:center;display:grid;justify-items:center;gap:10px;padding:4px 0}.qr-login-panel h3{margin:7px 0 0;font-size:22px}.qr-orbit{width:104px;height:104px;border-radius:32px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(22,119,255,.14),rgba(101,88,255,.12));color:var(--blue);font-size:42px;animation:qr-breathe 1.4s ease-in-out infinite}.qr-orbit.error{color:var(--red);animation:none}.qr-image-shell{position:relative;width:236px;height:236px;padding:14px;border-radius:32px;background:white;box-shadow:0 20px 55px rgba(32,77,126,.18)}.login-qr{width:100%;height:100%;display:block;border-radius:18px;image-rendering:pixelated}.qr-image-shell>i{position:absolute;inset:-7px;border:2px solid rgba(22,119,255,.2);border-radius:37px;pointer-events:none}.qr-status{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-weight:700}.qr-status>span{width:9px;height:9px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 5px rgba(239,154,56,.12);animation:status-pulse 1.1s infinite}.qr-status.scanned{color:var(--green)}.qr-status.scanned>span{background:var(--green);box-shadow:0 0 0 5px rgba(25,184,120,.12)}.qr-steps{text-align:left;margin:4px 0;padding-left:24px;color:var(--muted);font-size:13px;line-height:1.8}.security-note{padding:9px 12px;border-radius:12px;background:rgba(25,184,120,.09);color:var(--green);font-size:12px;font-weight:650}
.app-shell{grid-template-columns:84px 360px minmax(0,1fr);background:transparent}.rail{margin:12px 0 12px 12px;border:1px solid var(--line);border-radius:27px;background:var(--surface);box-shadow:var(--small-shadow);backdrop-filter:blur(24px)}.nav-button{transition:transform .18s ease,background .18s ease,color .18s ease}.nav-button:hover{transform:translateY(-2px)}.nav-button.active{background:linear-gradient(145deg,rgba(22,119,255,.16),rgba(24,189,229,.09));box-shadow:inset 0 0 0 1px rgba(22,119,255,.08)}
.sidebar{margin:12px 0 12px 12px;border:1px solid var(--line);border-radius:27px 0 0 27px;overflow:hidden;box-shadow:var(--small-shadow);backdrop-filter:blur(24px)}.sidebar-head{padding:24px 18px 13px}.sidebar-title{font-size:29px}.sidebar-scroll{scrollbar-width:thin;overscroll-behavior:contain}.list-row{min-height:68px;padding:10px 12px;border:1px solid transparent;transition:background .18s ease,border-color .18s ease,transform .18s ease}.list-row:hover{transform:translateX(2px)}.list-row.active{background:linear-gradient(135deg,rgba(22,119,255,.12),rgba(24,189,229,.06));border-color:rgba(22,119,255,.1)}
.content{margin:12px 12px 12px 0;border:1px solid var(--line);border-left:0;border-radius:0 27px 27px 0;overflow:hidden;box-shadow:var(--small-shadow);background:color-mix(in srgb,var(--surface) 72%,transparent);backdrop-filter:blur(24px)}
.chat-head{height:78px;padding:11px 18px;background:color-mix(in srgb,var(--surface-solid) 89%,transparent);backdrop-filter:blur(22px)}.chat-head .avatar{width:46px;height:46px}.chat-scroll{height:0;min-height:0;flex:1 1 0;overflow-y:auto!important;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:24px;background:radial-gradient(circle at 20% 8%,rgba(22,119,255,.045),transparent 25%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 42%,transparent),transparent)}.message-list{min-height:100%;justify-content:flex-end;padding-top:18px}.message-line{flex:0 0 auto}.bubble{padding:10px 14px;border:1px solid rgba(45,79,118,.07);box-shadow:0 6px 20px rgba(42,76,116,.07)}.mine .bubble{border:0;background:linear-gradient(135deg,#197fff,#2da9f6);box-shadow:0 8px 22px rgba(25,127,255,.2)}.message-time{opacity:.82}.composer{position:relative;z-index:3;padding:10px 14px calc(10px + var(--safe-bottom));background:color-mix(in srgb,var(--surface-solid) 92%,transparent);backdrop-filter:blur(26px)}.composer-tools{overflow-x:auto;scrollbar-width:none;padding:1px}.composer-tools::-webkit-scrollbar{display:none}.icon-button{flex:0 0 39px;border:1px solid var(--line);background:var(--surface-2);transition:transform .16s ease,background .16s ease}.icon-button:active{transform:scale(.92)}.composer-row .textarea{resize:none;min-height:46px;max-height:118px;border-radius:18px}.composer-row .button{min-height:46px;border-radius:16px}.typing-bubble{box-shadow:none}
.page{padding:28px;scrollbar-width:thin;overscroll-behavior:contain}.page-inner{max-width:1040px;gap:18px}.page-inner h1,.page-inner h2,.page-inner h3{letter-spacing:-.025em}.hero-card{position:relative;overflow:hidden;background:linear-gradient(135deg,#0d79fb,#3d71f4 55%,#6457f5)}.hero-card:after{content:"";position:absolute;width:240px;height:240px;right:-90px;top:-110px;border-radius:50%;background:rgba(255,255,255,.14);pointer-events:none}.profile-hero{padding:30px}.bill-row{padding:14px 4px}.pill{font-weight:650}.route-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,rgba(22,119,255,.13),rgba(101,88,255,.09));font-size:20px}
.overlay{background:rgba(4,13,26,.48);backdrop-filter:blur(18px)}.dialog{border-radius:30px;padding:26px}.toast{backdrop-filter:blur(18px)}
@keyframes qr-breathe{50%{transform:scale(1.04);box-shadow:0 18px 44px rgba(22,119,255,.15)}}@keyframes status-pulse{50%{opacity:.45;transform:scale(.78)}}
@media(max-width:1020px){.app-shell{grid-template-columns:76px 310px minmax(0,1fr)}.rail{margin-left:8px}.sidebar{margin-left:8px}.content{margin-right:8px}}
@media(max-width:720px){
  body:before,body:after{opacity:.11}.app-shell{height:100dvh;display:flex;padding:0}.rail{margin:0;border-radius:0;border:0;border-top:1px solid var(--line);box-shadow:0 -8px 28px rgba(37,70,110,.08);background:color-mix(in srgb,var(--surface-solid) 92%,transparent);backdrop-filter:blur(28px);transition:transform .24s ease,opacity .2s ease}.sidebar{margin:0;border:0;border-radius:0;padding-bottom:calc(72px + var(--safe-bottom));box-shadow:none}.content{margin:0;border:0;border-radius:0;box-shadow:none;background:var(--bg);height:auto;min-height:0}.content.mobile-open{display:flex}.chat-active .rail{transform:translateY(110%);opacity:0;pointer-events:none}.chat-active .content{inset:0!important;height:100dvh;transform:none}.chat-head{height:calc(66px + var(--safe-top));padding:calc(8px + var(--safe-top)) 11px 8px}.chat-scroll{height:0;padding:12px 9px 18px;scrollbar-gutter:auto}.message-list{padding-top:12px;gap:7px;justify-content:flex-end}.message-wrap{max-width:82%}.bubble{font-size:15px;border-radius:19px 19px 19px 6px}.mine .bubble{border-radius:19px 19px 6px 19px}.composer{padding:8px 9px calc(8px + var(--safe-bottom))}.composer-tools{gap:6px;margin-bottom:6px}.composer-row{gap:7px}.composer-row .button{padding:10px 13px}.page{padding:14px 11px calc(88px + var(--safe-bottom))}.chat-active .page{padding-bottom:14px}.card{border-radius:20px;padding:16px}.auth-main{padding:24px 21px calc(22px + var(--safe-bottom));justify-content:flex-start;overflow-x:hidden;overflow-y:auto}.auth-tabs{margin:17px 0}.auth-main .brand-logo.large{width:70px;height:70px;border-radius:22px}.qr-image-shell{width:min(218px,58vw);height:min(218px,58vw);border-radius:28px}.qr-steps{font-size:12px}.dialog{width:min(94vw,650px);border-radius:24px;padding:20px}.toast-stack{left:12px;right:12px;bottom:calc(18px + var(--safe-bottom))}.toast{text-align:center}.profile-hero{padding:24px 16px}
}
.message-list{justify-content:flex-start}
.message-list:before{content:"";flex:1 1 0;min-height:0}.row-chevron{color:var(--muted);font-size:22px;font-weight:400}
/* Calm surfaces and compact controls, shared by sign-in and the app. */
:root{--bg:#f3f5f8;--surface:rgba(255,255,255,.94);--surface-2:#f2f4f8;--surface-hover:#eaf1fd;--blue:#3269df;--cyan:#397ae8;--indigo:#536cd7;--muted:#67758a;--line:rgba(39,57,82,.1);--shadow:0 18px 60px rgba(26,47,79,.1);--small-shadow:0 3px 18px rgba(26,47,79,.045);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
html[data-theme="dark"]{color-scheme:dark;--bg:#111722;--surface:#18212f;--surface-solid:#192332;--surface-2:#212d3e;--surface-hover:#26364d;--text:#ecf1f8;--muted:#a0aec2;--line:rgba(187,205,229,.12);--blue:#548bf1;--cyan:#548bf1}
html[data-theme="light"]{color-scheme:light}
@media(prefers-color-scheme:dark){html[data-theme="system"]{--bg:#111722;--surface:#18212f;--surface-solid:#192332;--surface-2:#212d3e;--surface-hover:#26364d;--text:#ecf1f8;--muted:#a0aec2;--line:rgba(187,205,229,.12);--blue:#548bf1;--cyan:#548bf1}}
body{background:var(--bg)}body:before,body:after{display:none}button{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid color-mix(in srgb,var(--blue) 62%,transparent);outline-offset:3px}button:focus:not(:focus-visible){outline:none}
.ui-icon{width:22px;height:22px;display:block;flex:0 0 auto}.button,.icon-button{min-height:44px}.button{white-space:nowrap;flex-shrink:0;font-weight:650;transition:background .16s,transform .16s,opacity .16s}.button.primary{background:var(--blue);box-shadow:none}.button:hover{filter:none}.input,.textarea,.select{background:var(--surface-solid);border-radius:12px}.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:.9}.card{box-shadow:none;border-color:var(--line);border-radius:20px}.page-inner>.card:hover{box-shadow:none;border-color:var(--line)}.hero-card{background:linear-gradient(120deg,#346cda,#526ecd)}.hero-card:after{opacity:.5}.brand-logo{box-shadow:none;border-radius:15px}.brand-logo.large{border-radius:26px}
.app-shell{grid-template-columns:80px 312px minmax(0,1fr);min-width:0}.rail{margin:10px 0 10px 10px;padding:18px 8px;border-radius:21px;box-shadow:none;gap:10px;min-height:0;overflow-y:auto}.rail .brand-logo{width:42px;height:42px;margin-bottom:10px}.nav-button{width:54px;height:54px;border-radius:15px}.nav-button .ui-icon{width:23px;height:23px}.nav-button:hover{transform:none;background:var(--surface-2)}.nav-button.active{background:var(--surface-hover);box-shadow:none}.sidebar{margin:10px 0 10px 10px;border-radius:21px 0 0 21px;box-shadow:none;min-height:0;background:var(--surface-solid)}.sidebar-head{padding:24px 18px 14px}.sidebar-title{font-size:25px;font-weight:740;letter-spacing:-.035em}.sidebar-count{font-size:12px;color:var(--muted);white-space:nowrap}.content{margin:10px 10px 10px 0;border-radius:0 21px 21px 0;box-shadow:none;background:var(--bg);min-height:0}.search-box{border:0;background:var(--surface-2);border-radius:12px;min-height:44px;padding:10px 12px;margin-top:16px}.search-box .ui-icon{width:18px;height:18px;color:var(--muted)}.search-box input{font-size:13px}.search-box:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 40%,transparent)}
.sidebar-scroll{padding:3px 10px 20px}.list-row{border-radius:14px;min-height:76px;padding:11px 10px;gap:11px}.list-row:hover{transform:none}.list-row.active{background:var(--surface-hover);border-color:transparent}.row-main>.row-title,.row-main>.row-detail{display:block}.row-title{font-size:14px;font-weight:650;line-height:1.4}.row-detail{font-size:12px;line-height:1.5;margin-top:5px}.chat-row-meta{align-self:stretch;display:flex;align-items:flex-end;flex-direction:column;gap:10px;max-width:85px;flex:0 0 auto}.chat-row-meta .row-meta{font-size:10px;align-self:auto;margin:2px 0 0;max-width:85px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.unread-count{font-size:10px;line-height:19px;min-width:19px;text-align:center;border-radius:20px;padding:0 5px;background:var(--blue);color:white;font-weight:700}.pin-mark{color:var(--muted)}.avatar{width:44px;height:44px;background:linear-gradient(140deg,#89a9da,#697fa6);font-weight:650}.empty-state{font-size:14px;line-height:1.6}.empty-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid var(--line);background:var(--surface-solid);border-radius:20px;margin:0 auto 18px;color:var(--blue)}.empty-icon .ui-icon{width:27px;height:27px}.conversation-empty b{font-weight:500;color:var(--muted)}.chat-announcement{border-radius:12px;margin:4px 0 10px;overflow-wrap:anywhere}.chat-announcement p{margin:4px 0 0}
.chat-head{height:76px;min-height:76px;padding:12px 22px;background:var(--surface-solid);gap:12px;backdrop-filter:none}.chat-head .row-title{font-size:15px}.chat-head .row-detail{margin-top:3px;font-size:11px}.chat-head .avatar{width:42px;height:42px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;box-shadow:none;border:0;color:var(--muted);background:transparent}.icon-button:hover{background:var(--surface-2);color:var(--text)}.chat-timeline{position:relative;display:flex;min-height:0;flex:1;overflow:hidden}.chat-scroll{height:auto;flex:1;min-width:0;padding:22px 26px;background:none;overflow-anchor:none}.message-list{min-height:100%;gap:12px;padding-top:0;max-width:920px}.message-list:before{content:none}.message-line{animation:none;align-items:flex-start}.message-line.is-new{animation:message-in .18s ease-out}.message-line .avatar{margin-top:4px}.message-wrap{min-width:0;max-width:min(620px,82%)}.bubble{font-size:14px;line-height:1.65;padding:10px 14px;border:1px solid var(--line);border-radius:17px 17px 17px 5px;box-shadow:0 2px 4px rgba(26,47,79,.02)}.mine .bubble{background:var(--blue);border-radius:17px 17px 5px 17px;box-shadow:none}.bubble.media{padding:5px;white-space:normal}.bubble.recalled{color:var(--muted);background:var(--surface-2);box-shadow:none}.bubble-image{max-width:100%;width:auto;max-height:360px;border-radius:12px}.bubble audio{display:block;max-width:100%;width:270px}.bubble .pill{white-space:normal}.message-meta{display:flex;align-items:center;min-height:24px;gap:6px;padding:0 4px}.mine .message-meta{justify-content:flex-end}.message-time{font-size:10px;line-height:1.4;margin:0;opacity:1}.recall-button{font-size:10px;min-height:28px;padding:3px 7px;border-radius:6px;transition:opacity .15s;background:none}.recall-button:hover{background:var(--surface-2)}.file-message{display:flex;gap:10px;align-items:center;text-decoration:none;white-space:normal;min-height:34px}.file-message span{overflow-wrap:anywhere}.location-label{padding:8px;display:flex;align-items:center;gap:6px}.transfer-card{min-width:0;width:min(260px,100%);padding:6px;white-space:normal}.transfer-amount{font-size:24px;overflow-wrap:anywhere}.transfer-card .button-row{gap:6px}.transfer-card .pill{font-size:11px}.typing-bubble{background:var(--surface-solid);border:0}.jump-latest{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;max-width:calc(100% - 32px);padding:0 14px;min-height:40px;border-radius:24px;border:1px solid var(--line);background:var(--surface-solid);color:var(--text);box-shadow:0 4px 20px rgba(26,47,79,.12);font-size:12px;cursor:pointer;white-space:nowrap}.jump-latest .ui-icon{width:18px;height:18px}.jump-latest.has-new{background:var(--blue);color:white;border-color:transparent}
.composer{padding:14px 18px calc(14px + var(--safe-bottom));background:var(--surface-solid);backdrop-filter:none}.composer-row{align-items:flex-end;gap:10px;max-width:940px;margin:auto;min-width:0}.composer-row .textarea{flex:1 1 0;min-width:0;width:0;border-radius:14px;min-height:46px;max-height:132px;padding:12px 14px;background:var(--surface-2);border-color:transparent;line-height:22px;font-size:15px;resize:none}.composer-row .textarea:focus{background:var(--surface-solid);border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 9%,transparent)}.composer-row .button,.composer-row .icon-button{flex:0 0 46px;width:46px;min-width:46px;height:46px;min-height:46px;padding:0;border-radius:14px;white-space:nowrap}.attachment-toggle[aria-expanded="true"]{color:var(--blue);background:var(--surface-hover)}.attachment-toggle .ui-icon{transition:transform .16s}.attachment-toggle[aria-expanded="true"] .ui-icon{transform:rotate(45deg)}.attachment-menu{position:absolute;bottom:calc(100% + 8px);left:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(340px,calc(100% - 36px));padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--surface-solid);box-shadow:0 10px 32px rgba(26,47,79,.15);animation:fade-in .15s;max-height:min(300px,50dvh);overflow:auto}.attachment-menu button{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px;border:0;border-radius:11px;background:none;text-align:left;color:var(--text);font-size:13px;cursor:pointer}.attachment-menu button:hover{background:var(--surface-2)}.attachment-menu .ui-icon{color:var(--blue)}.recording-status{display:flex;align-items:center;gap:8px;margin:8px 0 0 56px;min-height:36px;border:0;border-radius:10px;padding:6px 10px;background:color-mix(in srgb,var(--red) 9%,transparent);color:var(--red);font-size:12px;cursor:pointer}.recording-status .ui-icon{width:16px;height:16px}.recording-status i{width:7px;height:7px;background:var(--red);border-radius:50%;animation:status-pulse 1.1s infinite}.warning-banner{flex:0 0 auto;font-size:12px;padding:8px 18px}.page{padding:24px}.balance{font-size:clamp(32px,4vw,48px)}.dialog{border-radius:22px;max-width:100%;overflow-x:hidden}.dialog h2{font-size:23px}.toast{max-width:min(440px,calc(100vw - 24px));overflow-wrap:anywhere;font-size:13px;border-radius:12px}.password-toggle{min-width:44px;min-height:40px;right:5px}.password-input .input{padding-right:86px}
.auth-page{min-height:100dvh;height:100dvh;padding:32px;overflow:auto;place-items:center}.auth-shell{width:min(920px,100%);min-height:0;height:auto;max-height:none;grid-template-columns:.9fr 1fr;border-radius:26px;border:1px solid var(--line);box-shadow:var(--shadow);flex-shrink:0}.auth-art{padding:44px;background:linear-gradient(150deg,#3268d5,#5278d2);overflow:hidden}.auth-art:before{opacity:.5}.auth-art h1{font-size:46px;margin:25px 0 10px;letter-spacing:-.045em;font-weight:750}.auth-art p{font-size:17px;line-height:1.6}.auth-art .brand-logo{width:78px;height:78px;border-radius:24px}.auth-art small{font-size:12px;opacity:.75}.auth-main{padding:38px 40px;overflow:visible;min-width:0}.auth-main h2{font-size:27px;font-weight:720}.auth-main>.auth-heading>.brand-logo{display:none}.auth-main p{line-height:1.6}.auth-heading>.subtle{font-size:14px;margin:9px 0 0}.auth-tabs{border-radius:12px;margin:25px 0 16px}.auth-tabs button{min-height:42px;border-radius:9px;cursor:pointer;font-size:14px}.auth-submit{min-height:48px;border-radius:12px;margin-top:15px}.auth-divider{margin:16px 0}.qr-login-button{min-height:48px;justify-content:center;background:var(--surface-solid);border-color:var(--line)!important;border-radius:12px;font-size:14px}.qr-button-icon{width:24px;height:24px;background:none;border-radius:0;color:var(--blue)}.qr-login-button>span:nth-child(2){display:block;flex:none}.auth-language{margin-top:22px}.auth-language .select{min-height:42px;font-size:13px;background:transparent;color:var(--muted);padding:8px 12px}.qr-image-shell{width:212px;height:212px;padding:12px;border-radius:20px;box-shadow:var(--small-shadow)}.login-qr{border-radius:10px}.qr-image-shell>i{display:none}.qr-login-panel h3{font-size:18px}.qr-login-panel .subtle{font-size:13px;margin:6px 0;max-width:290px}.qr-steps{padding:0;text-align:center;line-height:1.6}.qr-status{font-size:13px;font-weight:550}.qr-orbit{width:80px;height:80px;border-radius:22px;animation:none;background:var(--surface-2)}.security-note{background:none;color:var(--muted);padding:0;font-weight:400}.auth-main .button-row{gap:8px}.auth-main .button-row .button{white-space:normal}
@media(hover:hover) and (pointer:fine){.recall-button{opacity:0}.message-line:hover .recall-button,.message-line:focus-within .recall-button{opacity:1}}
@media(max-width:1120px) and (min-width:761px){.app-shell{grid-template-columns:72px 270px minmax(0,1fr)}.rail{margin-left:8px}.sidebar{margin-left:8px}.chat-scroll{padding:20px 16px}.composer{padding-left:12px;padding-right:12px}}
@media(max-width:900px){.auth-shell{display:block;max-width:450px}.auth-art{display:none}.auth-main>.auth-heading>.brand-logo{display:block;width:52px;height:52px;border-radius:16px;margin-bottom:20px}.auth-main{padding:32px}.auth-page{padding:24px}}
@media(max-width:760px){.app-shell{display:flex;position:relative;padding:0;height:100dvh}.rail{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(70px + var(--safe-bottom));margin:0;padding:6px 8px var(--safe-bottom);border:0;border-top:1px solid var(--line);border-radius:0;flex-direction:row;justify-content:space-around;overflow:visible;background:var(--surface-solid)}.rail .brand-logo,.rail-spacer{display:none}.nav-button{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:58px;height:56px;width:auto;border-radius:12px}.nav-button .ui-icon{width:21px;height:21px}.nav-button .label{display:block;font-size:10px;line-height:1.1}.sidebar{width:100%;margin:0;padding:var(--safe-top) 0 calc(70px + var(--safe-bottom));border:0;border-radius:0}.sidebar-head{padding:22px 20px 14px}.sidebar-title{font-size:28px}.content{position:fixed;inset:var(--safe-top) 0 calc(70px + var(--safe-bottom));margin:0;border:0;border-radius:0;z-index:30;transform:translateX(100%);transition:transform .2s;min-height:0}.content.mobile-open{display:flex;transform:none}.content.chat-mode{bottom:0}.chat-active .content{inset:0!important;height:100dvh;transform:none}.chat-active .rail{transform:translateY(110%);opacity:0;pointer-events:none}.mobile-back{display:inline-flex!important}.chat-head{height:calc(66px + var(--safe-top));min-height:calc(66px + var(--safe-top));padding:calc(8px + var(--safe-top)) 12px 8px;gap:10px}.chat-head .avatar{width:38px;height:38px}.chat-head .row-title{font-size:14px}.chat-head .icon-button{width:40px;flex-basis:40px;min-height:44px}.chat-scroll{padding:18px 13px}.message-list{gap:9px}.message-wrap{max-width:83%}.bubble{font-size:14px}.composer{padding:10px 10px calc(10px + var(--safe-bottom))}.composer-row{gap:7px}.composer-row .button,.composer-row .icon-button{flex-basis:44px;min-width:44px;width:44px;height:46px}.composer-row .textarea{padding:12px;font-size:16px}.attachment-menu{left:10px;width:min(340px,calc(100% - 20px))}.page{padding:18px 14px calc(88px + var(--safe-bottom))}.chat-active .page{padding-bottom:18px}.grid-2,.grid-3{grid-template-columns:1fr}.toast-stack{left:12px;right:12px;bottom:calc(18px + var(--safe-bottom))}.toast{max-width:100%}.auth-page{padding:20px;align-items:safe center}.auth-shell{height:auto;min-height:0;border:1px solid var(--line);border-radius:22px}.auth-main{padding:28px 24px;justify-content:flex-start}.dialog{padding:20px}.transfer-card{width:min(240px,100%)}.qr-image-shell{width:200px;height:200px}}
@media(max-width:380px){.auth-page{padding:12px}.auth-main{padding:24px 18px}.chat-scroll{padding-left:9px;padding-right:9px}.message-wrap{max-width:85%}.message-line{gap:6px}.message-line .avatar{width:26px;height:26px}.bubble{padding:9px 12px}.chat-head{gap:6px}.composer-row{gap:4px}}
@media(max-height:650px){.auth-page{place-items:start center;padding-top:20px;padding-bottom:20px}.auth-shell{margin:auto}.auth-main{padding-top:25px;padding-bottom:25px}.auth-main>.auth-heading>.brand-logo{width:44px;height:44px;margin-bottom:12px}.auth-tabs{margin:16px 0 10px}.auth-language{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mobile-page-back{display:none}
.button.primary,.mine .bubble,.unread-count,.jump-latest.has-new{background:#3269df;color:#fff}
.button-row>.input.grow{width:0;min-width:110px;flex:1 1 110px}
@media(max-width:760px){.mobile-page-back{display:inline-flex;margin:-4px 0 10px;padding:6px 8px;font-size:13px}.mobile-page-back .ui-icon{width:18px;height:18px}}
.avatar-rainbow-ring{position:absolute;inset:-4px;border-radius:50%;padding:2.5px;background:conic-gradient(#ed4560,#ff9b39,#ffd958,#48c784,#3ebce4,#6b72f0,#b253d8,#ed4560);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:xor;pointer-events:none}
