
:root{--ink:#34354e;--muted:#777b94;--purple:#8278c7;--purple-dark:#6259a3;--line:rgba(143,143,180,.17);--glass:rgba(255,255,255,.66);--shadow:0 8px 28px rgba(92,82,137,.045);font-family:Inter,"Segoe UI","Microsoft JhengHei",sans-serif;color:var(--ink);background:#f5f5fb;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{-webkit-user-select:none;user-select:none}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #9c91de;outline-offset:3px}input:focus,textarea:focus{outline:none;border-color:#9f93d8!important;box-shadow:0 0 0 3px #afa5e321}input,textarea{min-width:0;color:var(--ink)}[hidden]{display:none!important}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}button{transition:background .18s,box-shadow .18s,transform .18s}button:hover:not(:disabled){filter:brightness(.98)}.ambient{position:fixed;z-index:-1;pointer-events:none;border-radius:50%}.ambient-one{width:60vw;height:60vh;top:-15vh;left:10vw;background:radial-gradient(ellipse,#ddd7ff77 0%,#ddd7ff44 40%,#ddd7ff00 72%)}.ambient-two{width:40vw;height:65vh;top:28vh;right:-15vw;background:radial-gradient(ellipse,#d7effd88 0%,#d7effd44 40%,#d7effd00 72%)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:12px;padding:12px 17px;font-size:14px;font-weight:600;min-height:44px}.primary{color:#fff;background:linear-gradient(120deg,#8f82d2,#7a7dc9);box-shadow:0 5px 12px #8376c624}.primary:hover{box-shadow:0 6px 18px #8376c644;transform:translateY(-1px)}.dark{background:#6d639e;color:white}.subtle{border-color:var(--line);background:#ffffffa8;color:#6f688d}.text-button{border:0;background:none;color:#77718f;padding:8px 0;font-size:14px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;min-width:40px;min-height:40px;border-radius:11px;color:#807b98}.icon-button:hover{background:#eae7f7}.danger-hover:hover{color:#ae5366;background:#fce8ef}.eyebrow{display:block;font-size:12px;font-weight:650;letter-spacing:2px;color:#9790ac}.brand{display:flex;align-items:center;gap:8px;font-size:26px;font-weight:720;letter-spacing:-.7px;white-space:nowrap}.brand-star{font-size:31px;color:#8f83ce;line-height:1}.brand-ai{font-size:12px;letter-spacing:1px;color:#9182bd;padding:3px 5px;border:1px solid #c9c2e4;border-radius:5px;margin-left:0}.brand a{color:inherit}.glass{background:var(--glass);border:1px solid rgba(255,255,255,.9);border-radius:21px;box-shadow:var(--shadow);backdrop-filter:none}
.auth-screen{display:grid;grid-template-columns:1.08fr 1fr;min-height:100dvh;padding:22px;gap:22px;max-width:1700px;margin:auto}.auth-art{position:relative;border-radius:28px;overflow:hidden;background:linear-gradient(140deg,#eae5fc,#e6effc 80%);padding:40px 48px;min-height:720px;border:1px solid #fff}.auth-copy{position:relative;z-index:1;margin-top:65px}.auth-copy h1{font-size:clamp(32px,3.5vw,52px);font-weight:600;line-height:1.45;letter-spacing:-1px;margin:20px 0}.auth-copy p{color:#77748e;line-height:1.9}.auth-character{position:absolute;right:-15px;bottom:35px;width:60%;max-width:440px;border-radius:34%;box-shadow:0 16px 55px #958bd43b;transform:rotate(-5deg)}.auth-footer{position:absolute;left:48px;bottom:30px;font-size:12px;letter-spacing:2px;color:#8d88a4}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:370px}.small-star{width:52px;height:52px;border-radius:17px;background:#eeebfa;color:#9488c7;display:grid;place-items:center;font-size:30px;margin-bottom:30px}.auth-form h2{font-size:30px;font-weight:600;margin:12px 0}.auth-form>p{color:#818196;margin:0 0 32px;font-size:15px}.auth-form label,.modal-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#67677f;margin:18px 0}.auth-form input,.modal-form input,.modal-form textarea{width:100%;background:#ffffffa6;border:1px solid #dfddeb;border-radius:11px;padding:14px 15px;font-size:16px}.auth-form .primary{width:100%;justify-content:space-between;margin-top:5px;padding:15px 20px}.auth-form .text-button{width:100%;padding:22px 0}.privacy-note{display:flex;justify-content:center;align-items:center;gap:7px;border-top:1px solid var(--line);padding-top:22px;color:#9692a8;font-size:12px}.privacy-note svg{width:15px;height:15px}.error-text{color:#a44860!important;font-size:14px!important;margin:12px 0!important}
.app{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;display:flex;flex-direction:column;padding:31px 20px 18px;border-right:1px solid #e4e2ee;background:linear-gradient(170deg,#f6f4ffdc,#f2f3fbde);backdrop-filter:none;z-index:20}.sidebar .brand{padding:0 12px}.sidebar-subtitle{font-size:12px;color:#9791ac;margin:8px 0 32px 16px;letter-spacing:1.5px}.new-chat{width:100%;justify-content:flex-start;padding:13px 13px;gap:8px;font-size:14px}.new-chat svg{width:18px}.keycap{font-size:12px;color:#ebe7ff;border:1px solid #d9d2f86b;padding:2px 5px;border-radius:4px;margin-left:auto}.sidebar nav{display:grid;gap:5px;margin-top:27px}.nav-button{display:flex;align-items:center;gap:13px;width:100%;border:0;background:transparent;color:#7e7b92;padding:13px 15px;border-radius:11px;text-align:left;font-size:14px}.nav-button.active{background:#e8e3f6;color:#7663ac;font-weight:600}.nav-button svg{width:18px;height:18px}.count{margin-left:auto;font-size:12px}.history-heading{margin:29px 13px 12px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#9e99ae}.history-heading svg{width:13px;height:13px}.chat-list{display:grid;align-content:start;gap:2px;overflow-y:auto;flex:1;min-height:80px}.chat-list button{display:flex;align-items:center;gap:10px;font-size:13px;color:#828094;border:0;background:transparent;padding:10px 12px;border-radius:9px;text-align:left;min-width:0}.chat-list button span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-list button.active{background:#eae6f6;color:#7161a4}.chat-list svg{width:14px;height:14px;flex-shrink:0}.empty-history{font-size:12px;line-height:1.8;color:#a09bad;padding:8px 13px}.sidebar-bottom{margin-top:20px}.local-card{display:flex;gap:10px;align-items:center;background:#ffffff64;border:1px solid #e5e2f1;border-radius:13px;padding:13px 11px;color:#9185b2;margin-bottom:18px}.local-card strong{font-size:12px;font-weight:550;display:block;color:#777185}.local-card small{font-size:12px;display:block;color:#aaa3b7;margin-top:4px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:18px 2px 0}.profile-avatar{width:34px;height:34px;display:grid;place-items:center;background:#e3dff2;border:2px solid white;color:#8c78b4;border-radius:12px;font-size:13px;font-weight:600}.profile>div{min-width:0;flex:1}.profile strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{font-size:12px;color:#a69eb5;display:block;margin-top:3px}.profile .icon-button{min-width:30px}.profile svg{width:16px}.workspace{grid-column:2;min-width:0;display:flex;flex-direction:column;min-height:100dvh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid #e4e2ee99;background:#fff4}.topbar-left,.topbar-right{display:flex;align-items:center;gap:22px}.breadcrumb{font-size:12px;color:#a5a0b5}.breadcrumb span{padding:0 12px;color:#c7c2d2}.breadcrumb strong{color:#7c7690;font-weight:500}.connection-pill{display:flex;align-items:center;gap:7px;border:1px solid #e3e0ee;background:#ffffff9c;color:#91899f;border-radius:20px;padding:7px 10px;font-size:12px;white-space:nowrap}.connection-pill i{width:6px;height:6px;border-radius:50%;background:#c9b992}.connection-pill.online i{background:#79af9e}.connection-pill.online{color:#6f9588}.mobile-only{display:none}main{flex:1;min-height:0}.view{width:100%;max-width:1450px;margin:0 auto}.home-view,.memory-view{padding:34px 38px 22px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;gap:20px}.page-heading h1{font-size:27px;font-weight:590;margin:10px 0 9px;letter-spacing:.2px}.page-heading p{font-size:13px;color:#9790a5;margin:0}.heading-star{font-size:30px;font-weight:400;color:#aea1d7;margin-left:5px}.date-label{font-size:12px;color:#a9a2b8}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:25px}.home-primary{display:grid;align-content:start;gap:26px}.hero{height:330px;position:relative;overflow:hidden;background:linear-gradient(117deg,#efebfddd,#e9eafee6 60%,#e0ecffcc);border-color:#fff;box-shadow:0 12px 35px #c8bed926}.hero-copy{position:relative;z-index:3;padding:29px 28px;width:63%}.tag{display:inline-flex;align-items:center;gap:6px;border:1px solid #cec5e985;border-radius:16px;font-size:12px;background:#ffffff63;color:#8c7db4;padding:5px 10px}.hero h2{font-size:clamp(23px,2.15vw,34px);font-weight:580;line-height:1.5;letter-spacing:.7px;margin:14px 0 9px}.hero p{font-size:12px;color:#9790ac;line-height:1.8;margin:0 0 19px}.hero .button{font-size:12px;min-height:40px;padding:10px 17px;border-radius:10px;gap:17px}.hero .button svg{width:15px}.hero-foot{font-size:12px;color:#aaa1ba;display:flex;gap:5px;align-items:center;margin-top:20px}.hero-foot svg{width:11px;height:11px}.hero-character{position:absolute;width:46%;max-width:285px;right:-2%;bottom:34px;border-radius:35%;z-index:2;transform:rotate(-7deg);box-shadow:0 12px 35px #bbb2d22c;opacity:.94}.hero-orbit{position:absolute;border:1px solid #b1a4d927;width:380px;height:380px;border-radius:50%;right:-80px;top:-75px;transform:rotate(-30deg)}.orbit-two{width:285px;height:410px;right:10px;top:-35px}.hero-spark{position:absolute;color:#a392ca;z-index:3}.spark-one{right:27%;top:16px;font-size:24px}.spark-two{right:16px;top:80px;font-size:30px;color:#b5a1d0}.character-tag{position:absolute;bottom:28px;right:24px;z-index:4;background:#ffffffc4;backdrop-filter:blur(14px);border:1px solid #fff;border-radius:12px;padding:10px 15px;transform:rotate(-3deg);box-shadow:0 3px 12px #cabfe729}.character-tag strong{display:block;font-size:16px;font-weight:550;color:#786b9c}.character-tag span{font-size:12px;color:#9d91b0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.section-heading h2{font-size:14px;font-weight:580;margin:0}.section-heading>span{color:#aaa2b5;font-size:12px}.section-heading>.text-button{font-size:12px;padding:0}.section-heading svg{width:16px;height:16px;color:#b4a8c7}.prompt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.prompt-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:15px 12px 16px;background:#ffffffad;border:1px solid white;border-radius:15px;box-shadow:var(--shadow);min-width:0}.prompt-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #d7cfe943}.prompt-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;margin-bottom:12px;flex-shrink:0}.prompt-icon svg{width:17px;height:17px}.lilac{background:#eeebf9;color:#9b86bd}.blue{background:#e7effb;color:#819fbd}.peach{background:#f9eeea;color:#bc958d}.mint{background:#e8f2ef;color:#85a69b}.prompt-card strong{font-size:12px;font-weight:550;margin-bottom:6px;white-space:nowrap}.prompt-card>span:last-child{font-size:12px;color:#a09aac;line-height:1.6}.recent-chats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.recent-card{display:flex;align-items:center;gap:12px;padding:16px;background:#ffffff91;border:1px solid white;border-radius:14px;text-align:left;min-width:0}.recent-card>svg{width:16px;color:#b2a6c8;flex-shrink:0}.recent-card>div{min-width:0}.recent-card strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;color:#777087}.recent-card small{display:block;font-size:12px;color:#b0a7b8;margin-top:5px}.empty-card{padding:24px;border:1px dashed #d9d2e8;border-radius:15px;color:#a297b1;line-height:1.8;font-size:13px;grid-column:1/-1;background:#fff4}.home-secondary{display:grid;gap:19px;align-content:start}.home-secondary>section{padding:20px}.companion-profile{display:flex;gap:14px;align-items:center;margin-top:19px}.companion-profile img{width:68px;height:68px;object-fit:cover;border-radius:21px;border:3px solid white;box-shadow:0 3px 12px #d4cfe86b}.companion-profile h3{font-size:20px;font-weight:580;color:#726782;margin:0 0 6px}.companion-profile h3 span{color:#b49cd4;font-size:13px}.companion-profile p{margin:0;font-size:12px;color:#a399ac;line-height:1.7}.mini-tag{font-size:12px!important;letter-spacing:1px;background:#f0edf8;color:#a397b9!important;padding:4px 6px;border-radius:5px}.soft-note{text-align:center;font-size:12px;line-height:1.9;color:#9c8eb1;padding:13px 8px;margin-top:18px;background:#f6f2fc82;border:1px solid #eee9f7;border-radius:12px}.artwork-choices{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.artwork-choices:empty{display:none}.artwork-choice{background:none;border:2px solid transparent;padding:0;border-radius:50%;width:34px;height:34px;overflow:hidden}.artwork-choice img{width:100%;height:100%;object-fit:cover}.artwork-choice.active{border-color:#b6a5d7}.model-name{display:flex;align-items:center;gap:10px;margin-top:18px}.qwen-logo{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#9982cf,#909fde);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:600;font-style:italic}.model-name strong{display:block;font-size:14px;font-weight:600}.model-name>div>span{display:block;font-size:12px;color:#a79eaf;margin-top:4px}.model-name>.mini-tag{margin-left:auto}.model-details{display:grid;grid-template-columns:1.1fr 1fr;gap:6px;margin-top:20px;padding:12px 0;border-top:1px solid #eeeaf5;border-bottom:1px solid #eeeaf5}.model-details>div+div{border-left:1px solid #eeeaf5;padding-left:15px}.model-details small{display:block;color:#b1a6ba;font-size:12px;margin-bottom:6px}.model-details strong{font-size:12px;font-weight:550;color:#8a7c9c}.model-details strong span{font-size:12px;color:#a79bae;font-weight:500}.context-label{display:flex;justify-content:space-between;font-size:12px;color:#a39aad;margin:17px 0 9px}.context-label strong{font-size:12px;color:#9484b1}.capacity-track{height:5px;background:#eeebf4;border-radius:6px;overflow:hidden}.capacity-track i{display:block;background:linear-gradient(90deg,#b3a6df,#afc4e9);width:100%;height:100%}.card-footnote{font-size:12px;color:#afa5b9;margin:10px 0 0}.memory-card p{font-size:12px;color:#a096ae;line-height:1.9;margin:15px 0}.memory-card .button{width:100%;justify-content:space-between;font-size:12px;padding:10px 12px;min-height:37px;background:#f3effb8c;border-color:#e8e1f5}.memory-card svg{width:14px;height:14px}.memory-note{display:flex;align-items:center;gap:5px;color:#b0a4be;font-size:12px;margin-top:14px}.memory-note svg{width:12px;height:12px;color:#9faeae}.home-footer{display:flex;justify-content:space-between;margin-top:28px;padding-top:17px;border-top:1px solid #e6e0ef80;color:#b3a9c1;font-size:12px}.home-footer>span:last-child{font-size:12px;letter-spacing:2px}
.chat-view{height:calc(100dvh - 76px);display:flex;flex-direction:column;max-width:1200px;padding:0 35px}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;padding:23px 0 16px;gap:12px}.chat-toolbar h1{font-size:19px;font-weight:550;margin:0 0 5px;max-width:65vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-toolbar>div>span{font-size:12px;color:#9b93a8}.toolbar-actions{display:flex;gap:5px}.context-strip{display:flex;align-items:center;gap:13px;font-size:12px;color:#9890a5;padding:0 0 15px;border-bottom:1px solid var(--line)}.context-strip .text-button{padding:0;margin-left:auto;font-size:12px}.context-mini-track{width:100px;background:#e5e1f0;height:4px;overflow:hidden;border-radius:4px}.context-mini-track i{display:block;height:100%;background:#a495d4;width:0}.message-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 0;scrollbar-width:thin;scrollbar-color:#d6cde5 transparent;min-height:0}.load-older{display:flex;margin:0 auto 15px;font-size:12px}.messages-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40vh;text-align:center;color:#9d93af}.messages-empty img{width:100px;height:100px;border-radius:30px;margin-bottom:16px}.messages-empty h2{font-size:22px;font-weight:500;color:#817296}.messages-empty p{font-size:14px;line-height:1.9;margin:0}.message{display:flex;gap:12px;margin:18px 0 28px;align-items:flex-start}.message-avatar{width:33px;height:33px;border-radius:11px;flex-shrink:0;object-fit:cover;background:#e8e1f4;color:#9b86ba;display:grid;place-items:center;font-size:12px}.message-main{min-width:0;max-width:calc(100% - 48px)}.message-header{font-size:12px;font-weight:600;color:#82758f;margin:2px 0 8px;display:flex;align-items:center;gap:9px}.message-header small{font-size:12px;font-weight:400;color:#ada4b6}.message-content{font-size:16px;line-height:1.85;overflow-wrap:anywhere}.message.user{justify-content:flex-end}.message.user .message-avatar{order:2}.message.user .message-header{justify-content:flex-end}.message.user .message-content{background:#eae4f5b5;border:1px solid #fff9;border-radius:16px 3px 16px 16px;padding:13px 18px;color:#716184;white-space:pre-wrap}.message.assistant .message-content{background:#ffffff90;border:1px solid white;border-radius:3px 16px 16px 16px;padding:17px 22px;box-shadow:var(--shadow)}.message.archived .message-header::after{content:'已納入摘要';font-size:12px;font-weight:400;background:#e8e4f0;padding:2px 6px;border-radius:5px;color:#a197ad}.message-content>:first-child{margin-top:0}.message-content>:last-child{margin-bottom:0}.message-content p{margin:10px 0}.message-content h1,.message-content h2,.message-content h3{line-height:1.5;margin-top:1.5em}.message-content h1{font-size:1.4em}.message-content h2{font-size:1.25em}.message-content h3{font-size:1.1em}.message-content pre{overflow-x:auto;max-width:100%;background:#f1eef7;border:1px solid #e6e0ef;padding:15px;border-radius:11px;font-size:13px;line-height:1.65;white-space:pre}.message-content code{font-family:Consolas,monospace;background:#f0ebf7;padding:2px 5px;border-radius:4px;font-size:.88em}.message-content pre code{padding:0;background:none}.message-content blockquote{border-left:3px solid #c4b1da;padding:1px 16px;margin:15px 0;color:#94849e}.message-content a{color:#8171b8;text-decoration:underline;text-underline-offset:3px}.message-content table{border-collapse:collapse;display:block;max-width:100%;overflow:auto;font-size:14px}.message-content th,.message-content td{padding:8px 12px;border:1px solid #e1d9e9;min-width:80px}.message-actions{display:flex;gap:12px;margin:8px 0}.message-actions button{background:none;border:0;color:#afa2ba;font-size:12px;padding:4px 0;display:flex;align-items:center;gap:4px}.message-actions svg{width:12px;height:12px}.message-state{font-size:12px;color:#a88493;margin-top:8px}.composer-area{padding:10px 0 13px}.composer{border:1px solid white;border-radius:18px;background:#ffffffc9;box-shadow:0 5px 24px #bcb1d622;padding:15px 16px 11px}.composer:focus-within{border-color:#c0b2df}.composer textarea{width:100%;border:0;outline:0;resize:none;background:transparent;line-height:1.6;padding:0 0 10px;max-height:160px;font-size:16px;box-shadow:none}.composer textarea::placeholder{color:#b3a8c0}.composer textarea:focus{box-shadow:none}.composer-bottom{display:flex;justify-content:space-between;align-items:center}.composer-bottom>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#b2a6be}.composer-bottom>span svg{width:12px;height:12px}.composer-bottom>div{display:flex;gap:8px;align-items:center}.composer-bottom .button{padding:8px 12px;min-height:36px;font-size:12px}.send-button{border:0;width:38px;height:36px;border-radius:10px;background:#9788c5;color:white}.send-button svg{width:17px;height:17px}.composer-hint{display:flex;justify-content:space-between;font-size:12px;color:#b5a9c0;margin:9px 3px 0;gap:10px}.stream-status{font-size:12px;color:#9b88ac;margin:0 4px 8px;min-height:16px}.source-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.source-list button{font-size:12px;color:#9980ab;border:1px solid #e0d6ed;background:#f1edf8;border-radius:7px;padding:5px 8px}.memory-intro{padding:20px;display:flex;align-items:center;gap:18px;margin:25px 0}.memory-intro .prompt-icon{margin:0;width:44px;height:44px}.memory-intro strong{font-size:14px;font-weight:550}.memory-intro p{font-size:12px;color:#9b90a8;margin:8px 0 0;line-height:1.8}.memory-intro .button{margin-left:auto;white-space:nowrap}.knowledge-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.knowledge-card{padding:21px;background:#fffc;border:1px solid white;border-radius:18px;box-shadow:var(--shadow);cursor:pointer;min-width:0}.knowledge-card:hover{border-color:#d9cce9}.knowledge-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.knowledge-card>header span{font-size:12px;background:#eee8f8;color:#9b82b4;border-radius:5px;padding:5px 7px}.knowledge-card h2{font-size:16px;font-weight:550;overflow-wrap:anywhere;margin:8px 0}.knowledge-card p{font-size:13px;line-height:1.8;color:#a396ae;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.knowledge-card small{font-size:12px;color:#b4a5bf}.knowledge-card .icon-button{min-width:28px;min-height:28px}.knowledge-card svg{width:14px;height:14px}.upload-label{cursor:pointer}dialog{width:min(600px,calc(100% - 28px));max-height:85dvh;overflow-y:auto;border:1px solid white;border-radius:22px;background:#f9f7ff;box-shadow:0 25px 90px #6e5b9140;color:var(--ink);padding:24px}dialog::backdrop{background:#62567639;backdrop-filter:blur(5px)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-header h2{font-size:20px;font-weight:550;margin:0}.modal-form textarea{min-height:180px;line-height:1.7;resize:vertical}.modal-form .help{font-size:12px;line-height:1.8;color:#a195ad}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.modal-prose{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.modal-prose small{font-size:12px;color:#a494b1}.toast{position:fixed;z-index:100;left:50%;bottom:30px;transform:translateX(-50%);background:#716386ec;color:white;backdrop-filter:blur(15px);border-radius:13px;box-shadow:0 6px 30px #67508f30;padding:14px 24px;max-width:calc(100% - 32px);font-size:14px;line-height:1.7}.sidebar-overlay{position:fixed;inset:0;background:#5b506653;z-index:19;backdrop-filter:blur(3px)}
@media(min-width:1550px){.home-view{padding-top:45px}.home-grid{grid-template-columns:minmax(0,1fr) 310px;gap:30px}.hero{height:365px}.hero-copy{padding:33px 35px}.hero-character{max-width:310px;bottom:30px}.hero h2{font-size:37px}.hero p{font-size:14px}.hero-foot{margin-top:24px}.prompt-card{padding:20px 16px}.prompt-card strong{font-size:14px}.prompt-card>span:last-child{font-size:12px}.home-secondary>section{padding:23px}.home-primary{gap:30px}}
@media(max-width:1190px){.app{grid-template-columns:208px minmax(0,1fr)}.sidebar{width:208px;padding-left:14px;padding-right:14px}.home-view,.memory-view{padding:28px 24px 20px}.topbar{padding:0 24px}.home-grid{grid-template-columns:minmax(0,1fr) 248px;gap:18px}.hero-copy{padding:25px 23px;width:70%}.hero-character{width:45%;right:-4%;bottom:49px}.hero h2{font-size:24px}.hero p{font-size:12px}.hero-foot{margin-top:21px}.hero{height:318px}.character-tag{right:12px;padding:8px 10px;bottom:28px}.home-secondary>section{padding:17px}.prompt-grid{grid-template-columns:1fr 1fr}.prompt-card{min-height:100px;position:relative;padding:16px 12px 14px 50px;justify-content:center}.prompt-card .prompt-icon{position:absolute;left:11px;top:18px;width:29px;height:29px;border-radius:9px}.prompt-card>span:last-child{font-size:12px}.knowledge-list{grid-template-columns:1fr 1fr}.date-label{display:none}.hero-spark.spark-one{right:18%}.recent-chats{grid-template-columns:1fr}.home-footer>span:last-child{display:none}}
@media(max-width:960px){.home-grid{grid-template-columns:1fr}.home-secondary{grid-template-columns:1fr 1fr;gap:16px}.memory-card{grid-column:1/-1}.hero{height:320px}.hero-copy{width:60%;padding:28px}.hero h2{font-size:30px}.hero-character{width:42%;max-width:275px;right:2%;bottom:25px}.hero p{font-size:12px}.hero-foot{margin-top:20px}.character-tag{right:25px;bottom:25px}.prompt-grid{grid-template-columns:1fr 1fr}.memory-intro{flex-wrap:wrap}.memory-intro .button{margin-left:62px}.auth-art{padding:32px;min-height:660px}.auth-copy{margin-top:55px}.auth-character{width:75%}.auth-footer{left:32px}.auth-form-wrap{padding:25px}.chat-view{padding:0 24px}}
@media(max-width:720px){.auth-screen{display:block;padding:18px;min-height:100dvh}.auth-art{min-height:230px;padding:25px;border-radius:22px}.auth-art .brand{font-size:23px}.auth-copy{margin-top:23px;max-width:65%}.auth-copy .eyebrow{display:none}.auth-copy h1{font-size:24px;line-height:1.5;margin:0}.auth-copy p{display:none}.auth-character{width:180px;max-width:45%;right:0;bottom:0}.auth-footer{left:25px;bottom:22px;font-size:12px;letter-spacing:1px}.auth-form-wrap{padding:35px 15px 20px}.auth-form{max-width:430px}.small-star{display:none}.auth-form .eyebrow{font-size:12px}.auth-form h2{font-size:26px}.auth-form>p{margin-bottom:25px}.app{display:block}.sidebar{width:252px;transform:translateX(-100%);transition:transform .25s}.sidebar.open{transform:translateX(0)}.workspace{min-height:100dvh}.mobile-only{display:flex}.topbar{height:64px;padding:0 15px}.topbar-left,.topbar-right{gap:6px}.breadcrumb{font-size:12px}.breadcrumb span{padding:0 8px}.connection-pill{font-size:12px;padding:6px 9px;max-width:150px}.connection-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-view,.memory-view{padding:25px 19px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:23px;margin-top:9px}.page-heading .eyebrow{font-size:12px;letter-spacing:1.6px}.page-heading p{font-size:12px}.heading-star{font-size:24px}.hero{height:305px;border-radius:20px}.hero-copy{padding:25px 21px;width:65%}.hero h2{font-size:26px;line-height:1.55}.hero p{font-size:12px}.hero-character{width:44%;right:-2%;bottom:60px}.hero-foot{margin-top:21px;font-size:12px}.hero .tag{font-size:12px;padding:4px 8px}.hero .button{font-size:12px;padding:9px 13px;min-height:37px}.character-tag{right:13px;bottom:35px;padding:7px 10px}.character-tag strong{font-size:13px}.character-tag span{font-size:12px}.hero-spark.spark-one{font-size:18px;top:18px;right:20%}.hero-spark.spark-two{font-size:21px;right:9px;top:67px}.home-primary{gap:25px}.section-heading h2{font-size:14px}.section-heading>span{font-size:12px}.prompt-grid{gap:10px}.prompt-card{min-height:99px;padding:17px 10px 14px 49px}.prompt-card strong{font-size:13px}.prompt-card>span:last-child{font-size:12px}.home-secondary{grid-template-columns:1fr 1fr;gap:12px}.home-secondary>section{padding:16px}.companion-profile{display:block}.companion-profile img{float:left;width:48px;height:48px;border-radius:15px;margin-right:9px}.companion-profile h3{font-size:17px;margin-top:1px}.companion-profile p{font-size:12px;line-height:1.65}.soft-note{clear:both;font-size:12px;padding:10px 5px}.model-name{gap:7px}.model-name>.mini-tag{display:none}.model-name strong{font-size:13px}.model-name>div>span{font-size:12px}.qwen-logo{width:33px;height:33px;font-size:22px;border-radius:10px}.model-details{margin-top:17px;gap:3px;grid-template-columns:1.2fr .8fr}.model-details>div+div{padding-left:8px}.model-details strong{font-size:12px}.model-details small{font-size:12px}.model-details strong span{font-size:12px}.context-label{font-size:12px}.card-footnote{font-size:12px}.memory-card{display:none}.home-footer{font-size:12px;line-height:1.7;margin-top:22px}.chat-view{height:calc(100dvh - 64px);padding:0 16px}.chat-toolbar{padding:17px 0 13px}.chat-toolbar h1{font-size:17px;max-width:52vw}.chat-toolbar>div>span{font-size:12px}.toolbar-actions{gap:0}.toolbar-actions .icon-button{min-width:34px;min-height:36px}.toolbar-actions svg{width:17px;height:17px}.context-strip{gap:8px;font-size:12px;padding-bottom:13px;flex-wrap:wrap}.context-strip .text-button{font-size:12px}.context-mini-track{width:60px}.message{gap:8px;margin:13px 0 24px}.message-avatar{width:28px;height:28px;border-radius:9px;font-size:12px}.message-main{max-width:calc(100% - 36px)}.message-content{font-size:15px;line-height:1.85}.message.assistant .message-content{padding:13px 15px}.message.user .message-content{padding:10px 14px}.message-header{font-size:12px}.message-header small{font-size:12px}.message-actions button{font-size:12px}.composer-area{padding-bottom:calc(10px + env(safe-area-inset-bottom))}.composer{padding:13px 13px 9px;border-radius:15px}.composer textarea{font-size:16px}.composer-hint{font-size:12px}.composer-hint>span{max-width:160px;text-align:right}.messages-empty h2{font-size:20px}.messages-empty p{font-size:13px}.memory-view>.page-heading{align-items:flex-start}.memory-view>.page-heading .button{font-size:12px;padding:9px 10px;min-height:36px;gap:5px}.memory-view>.page-heading .button svg{width:14px}.memory-view .page-heading h1{font-size:23px}.memory-intro{padding:17px;gap:12px}.memory-intro .prompt-icon{width:35px;height:35px}.memory-intro>div{flex:1}.memory-intro strong{font-size:13px;line-height:1.7;display:block}.memory-intro p{font-size:12px}.memory-intro .button{margin-left:47px;font-size:12px}.knowledge-list{grid-template-columns:1fr}.knowledge-card{padding:18px}.recent-chats{grid-template-columns:1fr 1fr}.recent-card{padding:14px 12px;gap:8px}.recent-card strong{font-size:12px}.recent-card>svg{width:13px}.recent-card small{font-size:12px}}
@media(max-width:370px){.hero h2{font-size:23px}.hero-character{bottom:69px;width:42%}.hero-copy{width:72%}.hero-foot{font-size:12px}.prompt-card{padding-left:13px;padding-top:48px;min-height:130px}.prompt-card .prompt-icon{top:13px}.home-view,.memory-view{padding-left:14px;padding-right:14px}.home-secondary{grid-template-columns:1fr}.companion-profile{display:flex}.companion-profile img{float:none}.soft-note{display:none}.memory-card{display:block}.recent-chats{grid-template-columns:1fr}.auth-copy h1{font-size:21px}.breadcrumb{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Keep secondary copy legible on the pale glass surfaces. */
.sidebar-subtitle,.history-heading,.empty-history,.local-card small,.profile small,.breadcrumb,.date-label,.page-heading p,.hero p,.hero-foot,.prompt-card>span:last-child,.recent-card small,.section-heading>span,.companion-profile p,.soft-note,.model-name>div>span,.model-details small,.context-label,.card-footnote,.memory-card p,.memory-note,.home-footer,.auth-footer,.privacy-note,.chat-toolbar>div>span,.context-strip,.message-header small,.message-actions button,.composer-bottom>span,.composer-hint,.memory-intro p,.knowledge-card p,.knowledge-card small,.modal-form .help{color:#82768f}
.hero-foot,.card-footnote,.memory-note,.home-footer{line-height:1.7}
.copy-text{width:100%;min-height:260px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff;line-height:1.8;resize:vertical}.model-card .model-name>div:nth-child(2){min-width:0;flex:1}.model-card .model-name strong{overflow-wrap:anywhere;line-height:1.6}.model-card .qwen-logo{flex-shrink:0}.model-card .mini-tag{font-size:10px!important;padding:4px}.chat-toolbar>div:first-child{min-width:0}.message-header{flex-wrap:wrap;gap:5px 9px}.message-header .message-model{max-width:100%;overflow-wrap:anywhere;color:#9784aa;font-size:11px}
@media(max-width:720px){.model-card .model-name{align-items:flex-start}.model-card .model-name strong{font-size:12px}.model-card .model-name>div>span{font-size:11px;line-height:1.6}.model-card .model-name .mini-tag{display:none}}
.local-account-note{display:flex;align-items:flex-start;gap:10px;padding:17px 15px;border:1px solid #e3ddef;background:linear-gradient(120deg,#f0ecfa9c,#edf5faaa);border-radius:13px;color:#7b6e94}.local-account-note>span{padding-top:2px}.local-account-note svg{width:18px;height:18px}.local-account-note strong{font-size:13px;font-weight:600}.local-account-note p{font-size:12px;line-height:1.8;margin:6px 0 0;color:#81768f}.auth-form>p{line-height:1.8}
.service-capacity{border-top:1px solid var(--line);margin-top:15px;padding-top:12px}.service-capacity>span{font-size:12px;color:#686287;font-weight:600;line-height:1.8;display:block}.service-capacity>span::before{content:'';display:inline-block;width:6px;height:6px;background:#99bbae;border-radius:50%;margin-right:7px;vertical-align:1px}.service-capacity>span.at-capacity::before{background:#b59acf}.service-capacity p{font-size:12px;line-height:1.8;color:#877b95;margin:5px 0 0}.model-health-note{color:#947450;font-size:12px;line-height:1.8;margin:10px 0 0}
.message-stage{position:relative;display:flex;flex:1;min-height:0;flex-direction:column}.message-scroll{overflow-anchor:none}.return-latest{position:absolute;z-index:2;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;min-height:38px;padding:8px 14px;white-space:nowrap;border:1px solid #d4cae9;border-radius:20px;color:#766099;background:#ffffffeb;box-shadow:0 5px 20px #8b78aa26;backdrop-filter:blur(12px);font-size:12px}.return-latest svg{width:15px;height:15px}.composer-status{display:flex;align-items:baseline;justify-content:space-between;gap:9px;min-height:24px;flex-wrap:wrap}.composer-capacity{font-size:12px;color:#8c7c9d;margin:0 4px 8px;white-space:nowrap}.stream-status{margin-bottom:8px;min-height:0}.stream-status.queued{color:#8a6cac}.stream-status.queued::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#b098d2;margin-right:7px;vertical-align:1px}.connection-notice{padding:10px 12px;margin:0 0 10px;border:1px solid #e3dcee;background:#f1edf8b3;border-radius:11px;color:#84738f;font-size:12px;line-height:1.75}.configuration-notice{border-color:#e9dcc8;background:#fcf7ee;color:#8d795b}.chat-toolbar,.context-strip,.composer-area{flex-shrink:0}
@media(max-width:720px){.composer-status{gap:0 8px}.composer-capacity{font-size:11px}.connection-notice{padding:8px 10px;font-size:12px}.service-capacity{padding-top:10px;margin-top:12px}.return-latest{bottom:8px;min-height:38px}.model-health-note{overflow-wrap:anywhere}}
@media(max-width:720px){.sidebar{visibility:hidden}.sidebar.open{visibility:visible}.composer-hint{font-size:12px}.composer-hint>span{font-size:12px}.home-secondary .section-heading{align-items:flex-start}.hero{height:335px}.hero-foot{max-width:70%}.hero h2{font-size:24px}}

/* Keep the fixed model label beside sending, with room for touch controls. */
.composer-bottom{gap:12px;min-width:0}
.composer-bottom .composer-privacy{flex-shrink:0;white-space:nowrap}
.composer-bottom .composer-actions{flex:1;min-width:0;justify-content:flex-end;gap:8px}
.composer-actions>button{flex-shrink:0}
.composer-actions .send-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px}
.composer-actions .button{min-height:44px}
.composer:focus-within{box-shadow:0 0 0 3px #b9a7db20,0 5px 24px #bcb1d622}
.composer textarea{scrollbar-width:thin;scrollbar-color:#c9bedc transparent}
.modal-header .icon-button{min-width:44px;min-height:44px;flex-shrink:0}
.modal-header h2{line-height:1.5;overflow-wrap:anywhere}
.modal-header h2,.page-heading>div{min-width:0}
#greeting{overflow-wrap:anywhere}
.knowledge-card:focus-visible{outline:3px solid #9c91de;outline-offset:3px}
.modal-actions{flex-wrap:wrap}
.error-text:empty{display:none}
#auth-reconnect{width:100%;margin:4px 0 12px}
.chat-search-wrap{position:relative;margin:0 4px 8px}
.chat-search-wrap input{width:100%;min-height:40px;border:1px solid #e0d8ee;border-radius:11px;background:#ffffffa8;font-size:13px;padding:10px 38px 10px 12px;color:#625672}
.chat-search-wrap input::placeholder{color:#9789a7}
.chat-search-wrap input::-webkit-search-cancel-button{display:none}
.chat-search-wrap>.icon-button{position:absolute;right:1px;top:1px;min-width:38px;min-height:38px}
.chat-search-wrap .icon{width:14px;height:14px}
.chat-search-count{font-size:12px;line-height:1.6;color:#8a789d;padding:0 12px 9px}
.chat-list button{min-height:40px}
.chat-list button:focus-visible{outline-offset:-3px}
.composer-bottom .draft-status,.composer-bottom .input-count{font-size:11px;line-height:1.5;color:#8a7a9a;white-space:nowrap;flex-shrink:0}
.composer-bottom .draft-status{color:#81759d;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.composer-bottom .input-count{font-variant-numeric:tabular-nums;margin-left:auto}
.composer-bottom .input-count.near-limit{color:#a56e4b}
.composer-bottom:has(.input-count:not([hidden])) .composer-actions{flex:0 1 auto}
.composer{container-type:inline-size}
@container(max-width:540px){
  .composer-bottom{flex-wrap:wrap;gap:8px}
  .composer-privacy .privacy-label{display:none}
  .composer-bottom .draft-status{max-width:calc(100% - 95px);order:0}
  .composer-bottom .input-count{order:0}
  .composer-bottom .composer-privacy{order:1}
  .composer-bottom .composer-actions{order:1;flex:1!important}
  .composer-bottom:has(.draft-status:not([hidden]),.input-count:not([hidden])) .composer-actions{max-width:calc(100% - 24px)}
  .composer-bottom:has(.draft-status:not([hidden]),.input-count:not([hidden]))::before{content:'';order:1;flex-basis:100%;height:0}
}
@media(max-width:720px){
  .composer-bottom{gap:8px}
  .composer-privacy .privacy-label{display:none}
  .composer-bottom .composer-actions{gap:6px}
  .composer-actions .button{padding:8px 10px}
  .toolbar-actions .icon-button,.topbar .mobile-only{min-width:44px;min-height:44px}
  dialog{padding:18px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .chat-search-wrap input{min-height:44px;font-size:16px}
  .chat-search-wrap>.icon-button{min-width:42px;min-height:42px}
  .composer-bottom{flex-wrap:wrap}
  .composer-bottom .draft-status{max-width:calc(100% - 95px);order:0}
  .composer-bottom .input-count{order:0}
  .composer-bottom .composer-privacy{order:1}
  .composer-bottom .composer-actions{order:1;flex:1!important}
  .composer-bottom:has(.draft-status:not([hidden]),.input-count:not([hidden])) .composer-actions{max-width:calc(100% - 24px)}
  .composer-bottom:has(.draft-status:not([hidden]),.input-count:not([hidden]))::before{content:'';order:1;flex-basis:100%;height:0}
}
.sidebar{overflow-y:auto}.sidebar-bottom{flex-shrink:0}
@media(max-height:800px){.sidebar{padding-top:20px}.sidebar-subtitle{margin-bottom:20px}.sidebar nav{margin-top:18px}.history-heading{margin-top:20px}.sidebar-bottom{margin-top:12px}.local-card{padding:10px 11px;margin-bottom:12px}.profile{padding-top:12px}}

/* Reading tools stay inside the message, even with wide code or tables. */
.message-content{color:#3e3b52}
.message-header,.message-header small,.message-header .message-model,.message-actions button,.context-strip,.composer-hint,.composer-bottom>span,.composer-bottom .draft-status,.composer-bottom .input-count,.composer-capacity,.chat-search-count{color:#6f607e}.connection-notice,.modal-form .help,.modal-prose small{color:#6c5d7a}
.chat-search-wrap input::placeholder,.composer textarea::placeholder{color:#877591}
.message-content blockquote{color:#72607f}
.message-content a{color:#645095}
.message-actions{gap:8px;flex-wrap:wrap}
.message-actions button{min-height:36px;padding:5px 8px;border-radius:8px}
.message-actions button:hover{background:#e9e2f3}
.message-content .code-block{max-width:100%;min-width:0;margin:16px 0;border:1px solid #ddd5ec;border-radius:12px;overflow:hidden;background:#f5f2fa}
.code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:5px 10px 5px 14px;background:#eee8f8;border-bottom:1px solid #ded6eb}
.code-language{font-size:12px;font-weight:600;color:#716180;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.code-copy{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:36px;padding:6px 10px;border:1px solid #dcd2eb;border-radius:8px;background:#ffffffb3;color:#665478;font-size:12px}
.code-copy:hover{background:#fff}.code-copy.copied{color:#3f7564;border-color:#b2cebf;background:#f3faf6}
.code-copy .icon{width:14px;height:14px}
.message-content .code-block pre{max-width:100%;margin:0;border:0;border-radius:0;padding:15px 16px;background:transparent;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c5b6db transparent;font:14px/1.75 Consolas,"Cascadia Code",monospace;tab-size:4}
.message-content pre code{font:inherit;background:none;padding:0;border-radius:0}
.message-content pre:focus-visible,.table-scroll:focus-visible{outline:2px solid #9480c1;outline-offset:-2px}
.message-content .table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;margin:16px 0;border:1px solid #ded5e9;border-radius:10px;scrollbar-width:thin;scrollbar-color:#c5b6db transparent}
.message-content .table-scroll table{display:table;width:max-content;min-width:100%;max-width:none;margin:0;overflow:visible;background:#fff8}
.message-content .table-scroll th{background:#eee8f6;color:#5e506f;font-weight:600}
.message-content .table-scroll td,.message-content .table-scroll th{border-width:0 1px 1px 0;max-width:360px;overflow-wrap:anywhere}
.message-content .table-scroll tr:last-child td{border-bottom:0}.message-content .table-scroll tr>*:last-child{border-right:0}
.export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin:18px 0}
.export-option{display:flex;align-items:flex-start;gap:9px;padding:14px;border:1px solid #ded6e9;border-radius:12px;background:#ffffffa1;cursor:pointer;font-size:14px;color:#61516f}
.export-option:has(input:checked){border-color:#a58bc9;background:#eee7f8}
.export-option input{width:auto;flex-shrink:0;margin:4px 0 0;accent-color:#8671b6}
.export-option strong{display:block;font-weight:600}.export-option small{display:block;margin-top:5px;font-size:12px;color:#766384;line-height:1.6}
.export-check{display:flex;align-items:center;gap:9px;font-size:13px;color:#6c5b7b;line-height:1.7}
.export-check input{width:auto;accent-color:#8671b6;flex-shrink:0}
.export-note{font-size:13px;color:#786784;line-height:1.8;margin:12px 0}
.export-options legend{font-size:13px;color:#70617d;padding:0 0 9px}
.modal-form .export-option{flex-direction:row;margin:0;gap:9px;align-items:flex-start}
.modal-form .export-check{flex-direction:row;align-items:center;gap:9px}
.modal-form .export-option input,.modal-form .export-check input{padding:0;box-shadow:none}
@media(max-width:720px){.message-actions button,.code-copy{min-height:44px}.message-content .code-block pre{font-size:13px;padding:13px}.code-toolbar{padding:3px 7px 3px 12px}.export-options{grid-template-columns:1fr}.message-header .message-model{font-size:12px}}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important}.prompt-card:hover,.primary:hover{transform:none!important}}

/* Explain a failed response inside its bubble without hiding partial text. */
.message.failed .message-content{border-color:#e9ced9;background:#fffafb}
.message-content .message-error{color:#8b3f59;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.message-content>*+.message-error{border-top:1px solid #ecd8e1;padding-top:12px;margin-top:16px}

.composer-model{display:block;flex:0 1 auto;min-width:0;max-width:min(360px,50vw);font-size:12px;line-height:1.6;color:#786586;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text}
@media(max-width:720px){.composer-model{max-width:100%;font-size:11px}}

/* V2 account and memory review controls */
.profile #account-settings{margin-left:auto}.profile #logout{margin-left:0}.memory-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.memory-status{display:inline-block;padding:4px 8px;background:#e6f0e9;color:#4c7058;border-radius:7px}.memory-status.expired{background:#eee9f0;color:#756682}.memory-expired{border-style:dashed;background:#f5f1f9}.memory-source-tag{font-size:12px;color:#766983}.memory-versions details{border:1px solid #ded5ea;border-radius:12px;padding:12px;margin:12px 0}.memory-versions summary{cursor:pointer;font-size:13px;line-height:1.7}.memory-versions .modal-prose{margin-top:14px}#auth-form #forgot-password{margin-top:4px}.modal-prose pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:12px;background:#eee9f5;border-radius:10px}
