*{box-sizing:border-box} :root{--bg:#fff;--sidebar:#f9f9f9;--text:#202123;--muted:#68686b;--line:#e7e7e7;--soft:#f4f4f4} body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);height:100vh;overflow:hidden} button,textarea,input{font:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:var(--sidebar);border-right:1px solid #f0f0f0;display:flex;flex-direction:column;z-index:20;transition:transform .25s}.brand-row{height:58px;display:flex;align-items:center;justify-content:space-between;padding:10px 14px}.icon-button,.menu-button{border:0;background:transparent;border-radius:8px;width:36px;height:36px;color:#565656;font-size:19px;cursor:pointer}.icon-button:hover,.menu-button:hover{background:#efefef}.new-chat{margin:0 12px 14px;border:0;background:transparent;display:flex;align-items:center;gap:10px;border-radius:8px;padding:10px 8px;text-align:left;cursor:pointer;color:#2c2c2c}.new-chat:hover{background:#efefef}.new-chat .shortcut{margin-left:auto;color:#999;font-size:12px}.chat-icon{font-size:20px}.chat-history{flex:1;overflow-y:auto;padding:0 12px}.history-label{font-size:12px;font-weight:600;color:#777;padding:8px}.history-item{width:100%;border:0;background:transparent;text-align:left;border-radius:7px;padding:9px 8px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.history-item:hover,.history-item.active{background:#eaeaea}.sidebar-footer{padding:10px 12px}.upgrade,.profile-button{width:100%;border:0;background:transparent;border-radius:8px;display:flex;align-items:center;text-align:left;cursor:pointer;gap:10px;padding:9px}.upgrade:hover,.profile-button:hover{background:#efefef}.upgrade span:last-child{display:flex;flex-direction:column;font-size:13px}.upgrade small{color:#777;margin-top:2px}.upgrade-icon{font-size:22px}.avatar{width:32px;height:32px;border-radius:50%;background:#222;color:white;display:grid;place-items:center}.profile-name{flex:1}.main{height:100vh;margin-left:260px;display:grid;grid-template-rows:58px 1fr auto}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.model-picker-wrap{display:flex;align-items:center}.menu-button{display:none}.model-picker{border:0;background:transparent;font-size:17px;font-weight:600;padding:8px;border-radius:8px;cursor:pointer}.model-picker:hover{background:#f5f5f5}.model-picker span{color:#777;margin-left:3px}.header-actions{display:flex;align-items:center;gap:2px}.auth-button,.signup-button{border-radius:8px;padding:9px 14px;font-weight:600;cursor:pointer}.auth-button{background:#fff;border:1px solid #ddd;margin-left:4px}.signup-button{background:#202123;color:white;border:1px solid #202123;margin-left:3px}.chat-view{overflow-y:auto;padding:18px;display:flex;flex-direction:column}.welcome{margin:auto;text-align:center;transform:translateY(-20px)}.welcome h1{font-size:34px;font-weight:600;margin-top:18px}.orb{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#111 5%,#777 55%,#111);color:white;display:grid;place-items:center;margin:auto;font-size:18px}.orb.small{width:38px;height:38px;margin-bottom:16px}.messages{width:min(760px,100%);margin:0 auto auto;padding-bottom:30px}.message{display:flex;gap:14px;margin:24px 0;line-height:1.55}.message.user{justify-content:flex-end}.message.user .bubble{background:#f4f4f4;border-radius:18px;padding:10px 16px;max-width:75%;white-space:pre-wrap}.message.assistant .avatar-mini{flex:none;width:28px;height:28px;border-radius:50%;background:#111;color:white;display:grid;place-items:center;font-size:13px}.message-content{max-width:700px;white-space:pre-wrap}.composer-area{width:min(780px,calc(100% - 36px));margin:0 auto;padding-bottom:10px}.composer{border:1px solid #dedede;border-radius:26px;box-shadow:0 2px 10px rgba(0,0,0,.07);padding:12px 14px;background:white}.composer:focus-within{box-shadow:0 0 0 1px #bbb,0 4px 14px rgba(0,0,0,.08)}.composer textarea{border:0;outline:0;resize:none;width:100%;max-height:160px;padding:3px 4px;font-size:16px}.composer-tools{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.tool-left{display:flex;align-items:center;gap:4px}.round-tool,.tool-button,.send-button{height:32px;border-radius:16px;border:0;background:white;cursor:pointer;color:#555}.round-tool{width:32px;font-size:22px;border:1px solid #ddd}.tool-button{padding:0 10px;border:1px solid transparent}.tool-button:hover,.round-tool:hover{background:#f4f4f4}.send-button{width:32px;background:#202123;color:white;font-size:20px}.send-button:disabled{background:#e4e4e4;color:#999}.disclaimer{text-align:center;font-size:11px;color:#777;margin:8px 0 0}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);display:grid;place-items:center;z-index:50}.modal-backdrop[hidden]{display:none}.modal{background:white;border-radius:16px;width:min(420px,calc(100% - 30px));padding:28px;position:relative;text-align:center;box-shadow:0 18px 60px rgba(0,0,0,.2)}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:24px;cursor:pointer;color:#777}.modal h2{margin:0 0 8px;font-size:25px}.modal>p{color:#777;font-size:14px}.modal form{display:grid;gap:10px;margin-top:22px}.modal input{height:46px;border:1px solid #d8d8d8;border-radius:9px;padding:0 13px;outline:none}.modal input:focus{border-color:#777}.primary-modal-button,.social-button{height:44px;border-radius:22px;border:0;cursor:pointer;font-weight:600}.primary-modal-button{background:#202123;color:white;margin-top:3px}.auth-divider{display:flex;align-items:center;color:#aaa;font-size:12px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e3e3e3;flex:1}.auth-divider span{padding:0 10px}.social-button{width:100%;background:white;border:1px solid #ddd}.auth-switch{font-size:13px!important}.auth-switch button{border:0;background:none;color:#111;font-weight:bold;cursor:pointer}.popover{position:fixed;z-index:40;width:210px;background:white;border:1px solid #ddd;border-radius:12px;padding:6px;box-shadow:0 12px 35px rgba(0,0,0,.14)}.popover button{width:100%;border:0;background:transparent;padding:10px;border-radius:7px;text-align:left;cursor:pointer}.popover button:hover{background:#f2f2f2}.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;background:#202123;color:white;padding:10px 16px;border-radius:8px;font-size:13px;transition:.25s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}.typing{color:#777}.typing:after{content:'•••';animation:blink 1s infinite}@keyframes blink{50%{opacity:.25}}@media(max-width:760px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0);box-shadow:12px 0 35px rgba(0,0,0,.15)}.main{margin-left:0}.menu-button{display:block}.header-actions #shareButton{display:none}.welcome h1{font-size:27px}.auth-button{padding:8px 10px}.signup-button{display:none}}
