:root{color-scheme:light;--side:274px;--side-bg:#f3f3f3;--white:#fff;--text:#2f2f2d;--muted:#858580;--line:#e7e7e7;--hover:#eaeaea;--active:#e7e7e7;--blue:#4e8ff7;--orange:#d45a25;--red:#c8463d;--sans:"Segoe UI",Arial,sans-serif;--mono:"Cascadia Mono",Consolas,monospace}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;background:var(--side-bg);color:var(--text);font:14px/1.45 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}.hidden{display:none!important}.icon{width:18px;height:18px;display:inline-block;vertical-align:-4px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.auth{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#fff}.auth-card{width:min(390px,calc(100vw - 32px));text-align:center;padding:20px;animation:rise .24s ease-out}.auth-logo{width:54px;height:54px;margin:0 auto 24px}.auth-card h1{font-size:28px;line-height:1.1;letter-spacing:-.035em;margin:0 0 10px;font-weight:600}.auth-card p{color:#777;margin:0 0 25px}.auth-tabs{display:flex;padding:3px;background:#f1f1f1;border-radius:10px;margin-bottom:14px}.auth-tabs button{flex:1;height:38px;border:0;border-radius:8px;background:transparent;color:#777}.auth-tabs button.active{background:#fff;color:#222;box-shadow:0 1px 4px #0001}.auth-primary,.auth-secondary{height:48px;border:1px solid #d8d8d8;border-radius:10px;padding:0 15px;font-weight:600}.auth-primary{width:100%;background:#242424;color:#fff;border-color:#242424}.auth-secondary{background:#fff}.auth-row{display:flex;gap:8px}.auth-row input{flex:1;min-width:0;height:48px;border:1px solid #d8d8d8;border-radius:10px;padding:0 12px;outline:none}.auth-row input:focus{border-color:#888;box-shadow:0 0 0 3px #0000000a}.auth-gap{margin-top:9px}.auth-wait{margin-top:12px;padding:12px;text-align:left;background:#f4f4f4;border-radius:10px;color:#666}.auth-error{min-height:20px;color:var(--red)!important;font-size:12px;margin-top:12px!important}.app{height:100vh;display:grid;grid-template-columns:var(--side) minmax(0,1fr);background:var(--side-bg)}.sidebar{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--side-bg);border-right:0}.side-head{height:48px;flex:none;display:flex;align-items:center;gap:3px;padding:0 10px 0 14px}.brand{height:34px;display:flex;align-items:center;gap:5px;border:0;border-radius:8px;background:transparent;padding:0 6px;font-size:16px;font-weight:600}.brand:hover,.icon-btn:hover{background:var(--hover)}.brand .chev{font-size:11px;color:#888}.side-head .fill{flex:1}.icon-btn{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#565652}.side-scroll{flex:1;min-height:0;overflow:auto;padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:#c7c7c7 transparent}.nav{position:relative;display:grid;gap:1px}.nav-item,.project-item,.chat-item{height:32px;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;text-align:left;padding:0 10px;color:#555;white-space:nowrap;overflow:hidden}.nav-item{width:100%}.nav-item:first-child{position:relative;width:calc(100% - 34px);overflow:visible}.nav-item:first-child .plus-right{position:absolute;right:-29px;color:#777}.nav-item:hover,.project-item:hover,.chat-item:hover{background:var(--hover)}.nav-item.active,.chat-item.active{background:var(--active);color:#252525}.nav-item span,.project-item span,.chat-item span{min-width:0;overflow:hidden;text-overflow:ellipsis}.plug{width:18px;text-align:center;font-size:17px;line-height:1;color:#555}.side-section{margin-top:24px}.side-title{height:26px;display:flex;align-items:center;padding:0 8px;color:#929292;font-size:13px}.side-title button{margin-left:auto;width:26px;height:26px;border:0;border-radius:7px;background:transparent;color:#777}.side-title button:hover{background:var(--hover)}.project-item,.chat-item{width:100%;height:32px;padding-left:9px}.project-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#75b7ef;box-shadow:0 0 0 2px #75b7ef25}.chat-more{margin-left:auto;opacity:0}.chat-item:hover .chat-more{opacity:1}.show-more{height:31px;border:0;background:transparent;color:#8d8d88;padding:0 10px;text-align:left}.account{position:relative;flex:none;height:52px;margin:0 8px 8px;padding:0 8px;display:flex;align-items:center;gap:10px;border-radius:9px}.account:hover{background:var(--hover)}.avatar{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#7d4bc7;color:#fff;font-size:9px;font-weight:700}.account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.help{margin-left:auto;width:18px;height:18px;display:grid;place-items:center;border:1px solid #a5a5a5;border-radius:50%;color:#777;font-size:11px}.main{position:relative;min-width:0;overflow:hidden;background:#fff;border:1px solid #e1e1e1;border-right:0;border-bottom:0;border-radius:13px 0 0 0}.chat-head{height:52px;position:relative;z-index:15;display:flex;align-items:center;gap:8px;padding:0 17px 0 24px}.chat-head h1{min-width:0;margin:0;font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.head-fill{flex:1}.text-btn{height:34px;border:0;border-radius:8px;background:transparent;color:#898985;padding:0 10px}.text-btn:hover{background:#f3f3f3;color:#4b4b48}.more-btn{font-size:19px;letter-spacing:2px}.main.empty .chat-head h1,.main.empty #openEditorTop,.main.empty #share,.main.empty #headMore{visibility:hidden}.show-side{display:none}.scroll{position:absolute;inset:52px 0 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cecece transparent}.feed{width:min(790px,calc(100% - 44px));min-height:calc(100% - 140px);margin:0 auto;padding:62px 0 188px}.welcome{min-height:calc(100vh - 278px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:86px;text-align:center;animation:fade .18s ease-out}.codex-mark{width:60px;height:60px;object-fit:contain;margin-bottom:24px}.welcome h2{margin:0;font-size:28px;line-height:1.18;letter-spacing:-.025em;font-weight:400}.turn{margin:0 0 30px;animation:turn .18s cubic-bezier(.2,.7,.2,1)}.user-turn{display:flex;justify-content:flex-end}.user-bubble{max-width:76%;padding:9px 13px;border-radius:15px;background:#eaf3ff;white-space:pre-wrap;word-break:break-word}.assistant-text{white-space:pre-wrap;word-break:break-word;line-height:1.58}.message-actions{display:flex;align-items:center;gap:2px;height:28px;margin-top:5px;color:#999}.message-actions button{width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:inherit}.message-actions button:hover{background:#f1f1f1;color:#555}.working{display:flex;align-items:center;gap:10px;color:#666}.spinner{width:16px;height:16px;border:2px solid #ddd;border-top-color:#666;border-radius:50%;animation:spin .8s linear infinite}.tool-card{margin:7px 0;border-top:1px solid #ececec;border-bottom:1px solid #ececec}.tool-row{min-height:42px;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;color:#676763;font-size:13px}.tool-row strong{font-weight:550;color:#3f3f3b}.tool-row small{color:#999}.tool-output{margin:0 0 12px 30px;max-height:220px;overflow:auto;padding:11px 12px;border-radius:8px;background:#f5f5f5;color:#4d4d49;white-space:pre-wrap;word-break:break-word;font:12px/1.5 var(--mono)}.error{color:var(--red)}.composer-dock{position:absolute;z-index:16;left:0;right:0;bottom:0;padding:42px 18px 16px;pointer-events:none;background:linear-gradient(to bottom,transparent,#fff 34%,#fff)}.composer-stack{position:relative;width:min(736px,calc(100% - 24px));margin:auto;pointer-events:auto}.project-bar{width:calc(100% - 16px);height:42px;margin:0 8px -10px;padding:0 14px 8px;display:flex;align-items:center;gap:8px;border:1px solid #e8e8e8;border-bottom:0;border-radius:16px 16px 0 0;background:#f4f4f4;color:#999;font-size:13px}.project-bar:hover{background:#f1f1f1;color:#666}.prompt-box{position:relative;border:1px solid #e4e4e4;border-radius:18px;background:#fdfdfd;box-shadow:0 12px 30px rgba(0,0,0,.075),0 2px 6px rgba(0,0,0,.03)}.prompt-box:focus-within{border-color:#cecece}.prompt-box textarea{display:block;width:100%;height:72px;max-height:190px;resize:none;border:0;outline:0;background:transparent;padding:15px 16px 5px;font-size:15px;line-height:1.45;overflow-y:auto}.prompt-box textarea::placeholder{color:#b3b3b3}.compose-row{height:48px;display:flex;align-items:center;gap:6px;padding:0 8px 7px 10px}.circle{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent}.circle:hover,.model-btn:hover{background:#f1f1f1}.access{display:flex;align-items:center;gap:6px;color:var(--orange);font-size:13px}.compose-fill{flex:1}.model-btn{height:32px;border:0;border-radius:8px;background:transparent;padding:0 8px;color:#4c4c48;white-space:nowrap}.model-btn small{color:#9c9c97;margin-left:4px}.send{width:32px;height:32px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;transition:.12s}.send:hover{background:#377eea;transform:translateY(-1px)}.stop{background:#292927}.voice{width:15px;height:14px;display:flex;align-items:center;justify-content:center;gap:2px}.voice i{width:2px;border-radius:2px;background:currentColor}.voice i:nth-child(1){height:5px}.voice i:nth-child(2){height:10px}.voice i:nth-child(3){height:14px}.voice i:nth-child(4){height:9px}.voice i:nth-child(5){height:5px}.popover{position:absolute;z-index:45;min-width:220px;padding:6px;border:1px solid #e3e3e3;border-radius:12px;background:#fff;box-shadow:0 13px 34px #00000024,0 2px 7px #0000000a;animation:popover .13s cubic-bezier(.2,.75,.2,1)}.pop-item{width:100%;min-height:38px;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;padding:7px 9px;text-align:left}.pop-item:hover{background:#f1f1f1}.pop-item .grow{flex:1}.pop-item small{display:block;color:#92928e;margin-top:1px}.pop-item .key{margin-left:auto;color:#999;font-size:12px}.sep{height:1px;background:#e8e8e8;margin:5px -6px}.model-menu{right:47px;bottom:46px;width:286px;transform-origin:bottom}.model-menu .selected{background:#eef4ff}.check{color:var(--blue)}.project-menu{left:8px;bottom:119px;width:310px;transform-origin:bottom}.head-menu{right:14px;top:44px;width:292px;transform-origin:top right}.account-menu{left:10px;bottom:58px;width:238px;transform-origin:bottom left}.account-meta{padding:9px 10px 10px}.account-meta b,.account-meta span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-meta span{color:#929292;font-size:12px;margin-top:3px}.danger{color:var(--red)!important}.toast{position:fixed;z-index:120;right:18px;bottom:18px;padding:10px 13px;border:1px solid #dedede;border-radius:9px;background:#fff;box-shadow:0 12px 35px #0002;animation:popover .13s ease-out}.backdrop{position:fixed;inset:0;z-index:95;display:grid;place-items:center;background:rgba(0,0,0,.14);backdrop-filter:blur(.7px);animation:fade .13s ease-out}.modal{width:min(408px,calc(100vw - 28px));padding:18px;border:1px solid #e4e4e4;border-radius:14px;background:#fff;box-shadow:0 20px 60px #0003;animation:modal .16s cubic-bezier(.2,.72,.2,1)}.modal h3{margin:0 0 12px;font-size:16px}.modal p{margin:0 0 16px;color:#747470}.modal label{display:block;margin:11px 0 6px;color:#73736e;font-size:12px}.modal input{width:100%;height:40px;border:1px solid #d8d8d8;border-radius:8px;padding:0 10px;outline:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.modal-actions button{height:36px;border:1px solid #d9d9d9;border-radius:8px;background:#fff;padding:0 13px}.modal-actions .dark{background:#242424;color:#fff;border-color:#242424}.modal-actions .red{background:var(--red);color:#fff;border-color:var(--red)}.editor-panel{position:fixed;z-index:75;inset:0 0 0 auto;width:min(1120px,calc(100vw - 42px));display:grid;grid-template-columns:218px minmax(0,1fr);grid-template-rows:52px minmax(0,1fr) 190px;background:#fff;border-left:1px solid #ddd;box-shadow:-18px 0 48px #0002;transform:translateX(102%);transition:transform .22s cubic-bezier(.2,.72,.2,1)}.editor-panel.open{transform:none}.editor-head{grid-column:1/-1;display:flex;align-items:center;border-bottom:1px solid #e7e7e7;padding:0 12px 0 17px}.editor-head h2{font-size:14px;margin:0}.editor-head .grow{flex:1}.plain-btn{height:32px;border:0;border-radius:8px;background:transparent;padding:0 9px;color:#666}.plain-btn:hover{background:#f1f1f1}.save-btn{background:#242424;color:#fff!important}.files{grid-row:2/4;border-right:1px solid #e7e7e7;background:#fafafa;padding:12px 8px;overflow:auto}.files-title{padding:0 8px 9px;color:#939393;font-size:12px}.file-btn{width:100%;height:30px;display:flex;align-items:center;gap:7px;border:0;border-radius:6px;background:transparent;text-align:left;font-size:12px;color:#555;white-space:nowrap}.file-btn:hover,.file-btn.active{background:#ededed}.file-btn span{overflow:hidden;text-overflow:ellipsis}.editor-area{display:grid;grid-template-columns:48px 1fr;min-height:0}.nums{padding:16px 10px;text-align:right;color:#b1b1b1;border-right:1px solid #f0f0f0;overflow:hidden;white-space:pre;font:13px/1.62 var(--mono)}#editor{width:100%;height:100%;resize:none;border:0;outline:0;padding:16px 18px;background:#fff;color:#353532;white-space:pre;tab-size:2;font:13px/1.62 var(--mono)}.terminal{grid-column:2;border-top:1px solid #e7e7e7;display:grid;grid-template-rows:34px minmax(0,1fr) 34px;min-height:0;background:#fbfbfb}.term-head{display:flex;align-items:center;padding:0 12px;border-bottom:1px solid #ececec;color:#777;font-size:11px;font-weight:600}.term-out{overflow:auto;padding:9px 13px;white-space:pre-wrap;color:#555;font:12px/1.5 var(--mono)}.cmd{display:flex;align-items:center;gap:7px;border-top:1px solid #ececec;padding:0 13px;color:#777;font:12px var(--mono)}.cmd input{flex:1;border:0;outline:0;background:transparent;font:inherit}@keyframes popover{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:none}}@keyframes modal{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes turn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes fade{from{opacity:0}to{opacity:1}}@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.app{display:block}.main{height:100vh;border-radius:0}.sidebar{position:fixed;z-index:70;inset:0 auto 0 0;width:274px;transform:translateX(-102%);transition:transform .2s;box-shadow:10px 0 35px #0002}.app.mobile-side .sidebar{transform:none}.show-side{display:grid}.chat-head{padding-left:10px}.feed{width:min(720px,calc(100% - 28px));padding-top:38px}.composer-dock{padding-inline:8px}.composer-stack{width:100%}.text-btn span{display:none}.editor-panel{width:100vw;grid-template-columns:176px 1fr}}@media(max-width:620px){.share-btn{display:none}.feed{width:calc(100% - 24px)}.user-bubble{max-width:88%}.access{display:none}.model-btn small{display:none}.editor-panel{grid-template-columns:0 1fr}.files{display:none}.terminal{grid-column:2}.auth-card{padding:10px}.welcome h2{font-size:24px}.codex-mark{width:54px;height:54px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}