*{box-sizing:border-box} :root{font:15px/1.45 Inter,"Segoe UI",sans-serif;color:#201d2b;background:#faf9fc;--ink:#201d2b;--muted:#6b6678;--line:#e9e5f0;--violet:#633cbd;--soft:#f0eafb;--sidebar:#f8f7fb}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8760df;outline-offset:2px}button{border:0;background:none}svg{width:18px;height:18px;display:block;flex:none} [data-icon]{display:inline-grid;place-items:center;flex:none} [hidden]{display:none!important}.shell{height:100vh;height:100dvh;display:grid;grid-template-columns:288px minmax(0,1fr);overflow:hidden}.sidebar{display:flex;min-height:0;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;margin:25px 20px 23px}.brand-mark{width:42px;height:42px;border-radius:13px;background:#6740c1;color:white;box-shadow:0 3px 8px #5d3ab22e}.brand-mark svg{width:24px;height:24px}.brand strong{display:block;font-size:21px;line-height:1.15;letter-spacing:-.6px}.brand small{font-size:9px;font-weight:800;letter-spacing:2px;color:#72677f}.sidebar-actions{padding:0 16px}.primary{background:var(--violet);color:white;font-weight:650;border-radius:10px;min-height:40px;padding:9px 15px}.primary:hover,.send:hover{background:#5030a0}.new-chat{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-bottom:11px}.search{display:flex;align-items:center;gap:9px;padding:0 10px;height:40px;border:1px solid var(--line);background:white;border-radius:10px;color:var(--muted)}.search input{min-width:0;width:100%;border:none;background:transparent;outline:none;font-size:13px}.search kbd{border:1px solid var(--line);border-radius:4px;padding:0 4px;font-size:11px}.search svg{width:16px}nav{padding:17px 12px 8px}.section-label{display:flex;align-items:center;justify-content:space-between;margin:12px 8px 5px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:1.35px;text-transform:uppercase;min-height:28px}.section-label button{font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;padding:3px;display:flex;align-items:center;gap:7px}.section-label svg{width:14px;height:14px}.nav-row{display:flex;width:100%;align-items:center;gap:9px;text-align:left;padding:8px 10px;border-radius:8px;font-size:13px;color:#524b61;min-height:36px}.nav-row>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-row small{color:var(--muted)}.nav-row.selected,.chat-row.selected{background:var(--soft);color:#5831ae}.nav-row:hover,.chat-row:hover,.icon-btn:hover,.tool:hover{background:#eee9f7}.chat-list{min-height:0;overflow:auto;padding:0 12px 12px;flex:1}.chat-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px;text-align:left;border-radius:10px;min-height:57px}.chat-row .row-text{flex:1;min-width:0}.row-text strong,.row-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-text strong{font-size:13px}.row-text small{font-size:11px;color:var(--muted);margin-top:2px}.chat-symbol{width:32px;height:32px;border:1px solid #e9e2f3;background:#fff;border-radius:9px;color:#765ca5}.chat-symbol svg{width:15px}.sidebar-foot{border-top:1px solid var(--line);padding:11px 14px}.settings-button{width:100%;display:flex;gap:10px;align-items:center;padding:8px 5px;color:#514a60;font-size:13px;text-align:left}.settings-button .status-dot{margin-left:auto}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#598e77}.status-dot.demo{background:#c0893d}.conversation{background:#fff;display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;min-height:76px;gap:12px;padding:12px 24px;border-bottom:1px solid var(--line)}.header-text{min-width:0;flex:1}.header-text h1{font-size:17px;margin:0;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.25px}.header-text small{font-size:12px;color:var(--muted)}.header-controls{display:flex;align-items:center;gap:6px}.model-control{display:flex;background:#f7f4fc;border:1px solid #ebe3f7;border-radius:9px;color:#5f3ca0;align-items:stretch;overflow:hidden}.model-control button{display:flex;align-items:center;gap:6px;padding:7px 9px;font-size:12px;font-weight:650;min-height:36px}.model-control button:hover{background:var(--soft)}.model-control button+button{border-left:1px solid #ebe3f7}.model-control svg{width:14px;height:14px}.active-model{max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;color:var(--muted);flex:none}.mobile-only{display:none}.thread{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;padding:24px clamp(15px,5vw,56px);background:linear-gradient(#fcfbfe 0%,#fff 46%)}.thread-inner{max-width:790px;margin:auto}.date{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);margin:3px 0 27px}.date::before,.date::after{content:"";height:1px;background:var(--line);flex:1}.entry{display:flex;gap:11px;margin:0 0 21px;align-items:flex-start}.entry.user{justify-content:flex-end}.entry-main{min-width:0;max-width:min(86%,630px)}.entry.user .entry-main{max-width:min(84%,570px)}.identity{display:flex;align-items:center;gap:8px;margin:0 0 5px;font-size:12px;font-weight:700}.user .identity{justify-content:flex-end}.identity time{font-size:10px;color:var(--muted);font-weight:400}.avatar{width:31px;height:31px;background:var(--soft);color:var(--violet);border-radius:10px;margin-top:1px}.avatar svg{width:16px}.bubble{border:1px solid var(--line);border-radius:4px 15px 15px;padding:12px 15px;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf9fc;font-size:14px;line-height:1.65}.user .bubble{border-radius:15px 4px 15px 15px;background:#f1eafa;border-color:#e9ddfa}.notice{margin:8px 0 20px;color:#745322;font-size:13px}.album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:min(400px,64vw);margin-bottom:8px}.album:only-child{margin-bottom:0}.album img,.album video{width:100%;height:105px;object-fit:cover;border-radius:7px;background:#e8e1f2}.album a{color:#5333a2;font-size:12px}.run-card{border:1px solid #e7def3;border-radius:13px;padding:12px 14px;margin:0 0 18px;background:#fbf8ff;font-size:13px}.run-card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.run-card header strong{flex:1}.run-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.run-card small{color:var(--muted)}.tag{background:var(--soft);color:#5a388d;border-radius:30px;padding:3px 8px;font-size:10px;font-weight:700}.progress{width:100%;height:6px;accent-color:var(--violet)}.empty{display:grid;place-content:center;text-align:center;min-height:160px;color:var(--muted);font-size:13px}.composer-area{padding:0 clamp(15px,5vw,56px) 13px;max-width:902px;width:100%;margin:auto auto 0}.composer{border:1px solid #e7e0f0;border-radius:15px;padding:8px 9px;background:white;box-shadow:0 4px 20px #37206109}.input-line{display:flex;align-items:flex-end;gap:8px}.input-line textarea{flex:1;width:0;border:none;padding:8px 2px;resize:none;min-height:38px;max-height:120px;background:transparent;outline:none;line-height:1.45}.send{width:38px;height:38px;border-radius:10px;background:var(--violet);color:white}.composer-tools{display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid #f2eef7;margin-top:8px;padding-top:7px}.tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 8px;border-radius:7px;font-size:12px;color:#5b4c73;min-height:31px}.tool svg{width:14px;height:14px}.composer-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:8px}.composer-footer .status-dot{margin-right:4px}.composer-status{font-size:12px;color:#785323}.draft-files{display:flex;gap:8px;overflow:auto}.draft-item{flex:0 0 94px;background:var(--soft);border-radius:8px;padding:5px;margin-bottom:6px;min-width:0}.draft-item img,.draft-item video{display:block;width:100%;height:55px;object-fit:cover;border-radius:4px}.draft-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-item button{font-size:13px;padding:3px 5px}.hint{color:var(--muted);font-size:13px}.small-action{font-size:12px;color:var(--violet);font-weight:700;padding:5px 8px;border-radius:7px}.small-action:hover{background:var(--soft)}dialog{border:1px solid var(--line);border-radius:16px;color:var(--ink);padding:0;width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 28px);box-shadow:0 16px 90px #24203544}dialog::backdrop{background:#25203555}#dialog-form>header,#dialog-form>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}#dialog-form>footer{border-top:1px solid var(--line);border-bottom:none;justify-content:flex-end}#dialog-form h2{margin:0;font-size:17px}#dialog-body{padding:14px 16px}#dialog-body>p:first-child{margin-top:0}.field{display:grid;gap:5px;margin:0 0 12px;font-size:13px;font-weight:650}.field input,.field textarea,.field select,.copy-link{border:1px solid #ded6e8;border-radius:8px;padding:8px;background:white;width:100%;min-width:0;color:var(--ink)}.field textarea{min-height:80px;resize:vertical}.option,.integration,.order-row{display:flex;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #f1edf5;overflow-wrap:anywhere;font-size:13px}.option input{accent-color:var(--violet)}.integration>div,.order-row>span{flex:1;min-width:0}.integration small{display:block;color:var(--muted)}.options-list{max-height:180px;overflow:auto}.menu-action{width:100%;display:flex;gap:8px;text-align:left;padding:9px;border-radius:8px}.menu-action:hover{background:var(--soft)}.dialog-error{color:#a13754;font-size:12px;padding:0 16px}.dialog-error:empty{display:none}.toast{position:fixed;z-index:3;bottom:20px;left:50%;transform:translateX(-50%);background:#271b3b;color:white;border-radius:9px;padding:9px 13px;font-size:13px;max-width:calc(100% - 25px)}.dragging{opacity:.5}
@media(max-width:700px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{display:none;border:0}.shell.show-list .sidebar{display:flex}.shell.show-list .conversation{display:none}.mobile-only{display:inline-grid}.chat-header{padding:8px 9px;min-height:58px;gap:5px}.chat-header .chat-symbol{display:none}.active-model{max-width:112px}.header-controls{gap:2px}.thread{padding:17px 12px}.composer-area{padding:0 10px max(7px,env(safe-area-inset-bottom))}.entry{gap:6px}.entry-main{max-width:calc(100% - 36px)}.input-line textarea,.field input,.field select,.field textarea{font-size:16px}.brand{margin-top:18px}.chat-list{padding-bottom:5px}}
@media(max-width:365px){.active-model{max-width:76px}.model-control button{padding-inline:5px}.chat-header .icon-btn{width:30px}.composer-tools .tool{font-size:11px}}


.chat-header .language-picker { margin: 0 0 0 auto; }
