:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg:#000;--panel:#111;--surface:#1c1c1c;--surface-2:#242424;--line:#2c2c2c;--text:#f5f5f5;--muted:#a7a7a7;--accent:#7acfff}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border:1.8px solid currentColor;border-radius:9px;font-size:20px;line-height:1;transform:rotate(-13deg);font-weight:400}
.wordmark{display:inline-flex;align-items:center;gap:10px;font-size:19px;font-weight:600;letter-spacing:-.55px;white-space:nowrap}
.app-shell{display:flex;min-height:100vh;background:#000}
.sidebar{width:260px;min-width:260px;display:flex;flex-direction:column;border-right:1px solid #202020;background:#070707;padding:16px 6px 14px}
.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 13px 22px}
.panel-icon{color:#b9b9b9;display:flex}
.sidebar-nav{display:flex;flex-direction:column;gap:2px}
.nav-item{height:35px;padding:0 12px;display:flex;align-items:center;gap:11px;border-radius:9px;font-size:14px;color:#e6e6e6}
.nav-item svg{width:19px;height:19px}
.nav-item.active{background:#202020}
.nav-item.muted{color:#d3d3d3}
.nav-item:hover:not(.muted){background:#262626}
.sidebar-footer{margin-top:auto;border-top:1px solid #222;padding-top:10px}
.community{margin-bottom:10px}
.account-block{display:flex;align-items:center;gap:10px;padding:8px 11px}
.account-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.account-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-copy small{font-size:11px;color:#9f9f9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:31px;height:31px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#9e6cd1;color:#fff;font-size:11px;font-weight:700;flex:none}
.avatar.small{width:29px;height:29px}
.subtle-button{background:none;border:0;color:#a9a9a9;padding:7px 13px;font-size:12px}
.subtle-button:hover,.text-button:hover{color:white}
.sidebar-actions{display:flex;gap:8px;padding:8px 10px}
.sidebar-actions a{padding:9px 12px;border-radius:8px;font-size:13px;text-align:center;flex:1}
.sidebar-login{border:1px solid #444}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column}
.workspace-header{height:64px;position:relative;display:flex;align-items:flex-start;justify-content:center;padding-top:15px}
.mode-switch{height:36px;padding:2px;border-radius:22px;background:#171717;display:flex;width:230px}
.mode-switch button{border:0;background:transparent;color:#d0d0d0;border-radius:20px;font-size:14px;flex:1}
.mode-switch button.selected{background:#252525;color:#fff}
.header-account{position:absolute;right:20px;top:17px;display:flex;align-items:center;gap:11px;font-size:13px;color:#ddd}
.header-org{color:#aaa}
.header-account>a{border:1px solid #3a3a3a;padding:8px 14px;border-radius:8px}
.hero{flex:1;display:flex;align-items:center;justify-content:center;padding:0 32px 100px}
.hero-inner{width:min(768px,100%);transform:translateY(7px)}
.hero h1{text-align:center;font-size:24px;font-weight:500;letter-spacing:-.4px;margin:0 0 36px}
.composer{height:128px;border-radius:25px;background:#1d1d1d;padding:15px 17px 10px;display:flex;flex-direction:column;border:1px solid #242424}
.composer textarea{background:transparent;color:white;resize:none;width:100%;flex:1;border:0;outline:0;font-size:16px;line-height:1.5;padding:0}
.composer textarea::placeholder{color:#a9a9a9}
.composer-toolbar{display:flex;align-items:center;justify-content:space-between}
.composer-plus{font-size:27px;font-weight:300;line-height:28px;color:#eee;padding-left:3px}
.send-button{width:35px;height:35px;border:0;border-radius:50%;background:#3a3a3a;color:#1b1b1b;display:flex;align-items:center;justify-content:center}
.send-button:disabled{cursor:not-allowed}
.send-button svg{width:19px;height:19px;stroke-width:2.5}
.project-bar{height:45px;background:#151515;margin:0 20px;border-radius:0 0 18px 18px;display:flex;align-items:center;gap:10px;padding:0 13px;color:#bebebe;font-size:14px}
.project-bar svg{width:17px;height:17px}
.preview-note{text-align:center;color:#787878;font-size:12px;margin:17px 0 0}
.auth-shell{min-height:100vh;background:#000;display:flex;flex-direction:column}
.auth-header{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 42px}
.auth-header .wordmark{font-size:22px}
.auth-header-label{font-size:11px;letter-spacing:1.7px;color:#85858d}
.auth-main{flex:1;display:flex;align-items:center;justify-content:center;padding:36px 24px 90px}
.auth-card{width:min(440px,100%);margin:auto}
.auth-card h1{font-size:39px;line-height:1.18;font-weight:600;letter-spacing:-1.25px;text-align:center;margin:0 0 15px}
.auth-subtitle{font-size:15px;color:#babac0;text-align:center;line-height:1.5;margin:0 0 33px}
.auth-form{display:flex;flex-direction:column}
.auth-form label{font-size:13px;font-weight:600;margin:0 0 8px;color:#e8e8e8}
.auth-form input{height:52px;background:#1d1d1f;border:1px solid #797984;border-radius:6px;color:white;outline:0;font-size:16px;padding:0 15px;margin-bottom:19px}
.auth-form input::placeholder{color:#92929a}
.auth-form input:focus{border-color:#82d0ff;box-shadow:0 0 0 2px #82d0ff33}
.primary-button{height:51px;width:100%;background:#80d0fb;color:#111;border:0;border-radius:8px;font-size:16px;font-weight:600;margin-top:7px}
.primary-button:hover{background:#a0ddff}
.auth-divider{display:flex;align-items:center;gap:14px;color:#a8a8af;font-size:13px;margin:31px 0 21px}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#35353a;flex:1}
.secondary-button{display:flex;align-items:center;justify-content:center;height:49px;border:1px solid #66666d;border-radius:8px;font-size:15px}
.secondary-button:hover{border-color:#bdbdc4;background:#252529}
.auth-footer{display:flex;justify-content:space-between;padding:22px 42px;color:#777780;font-size:11px}
.form-error{border:1px solid #aa5454;background:#3b2527;color:#ffd5d5;padding:11px 13px;border-radius:7px;font-size:13px;line-height:1.4;margin:0 0 19px}
.name-row{display:flex;gap:12px}
.name-row>div{flex:1;min-width:0;display:flex;flex-direction:column}
.name-row input{width:100%}
.domain-hint{color:#a4a4ab;font-size:12px;line-height:1.55;margin:14px 0 0}
.continue-account{display:flex;align-items:center;gap:14px;background:#252528;border:1px solid #44444a;border-radius:12px;padding:16px;margin:0 0 20px}
.continue-account .avatar{width:42px;height:42px;font-size:14px}
.continue-account span:last-child{display:flex;flex-direction:column;gap:4px}
.continue-account strong{font-size:15px}
.continue-account small{color:#aaaab0;font-size:12px}
.switch-form{text-align:center;margin-top:19px}
.text-button{border:0;background:none;color:#aaaab3;font-size:13px}
.email-card{width:min(440px,100%)}
.email-card .auth-form input{height:62px;background:#000;border:1px solid #333;border-radius:999px;font-size:20px;padding:0 22px;margin-bottom:20px}
.email-card .auth-form input::placeholder{color:#a7a7a7}
.email-card .primary-button{height:60px;background:#ececec;border-radius:999px;color:#101010;font-size:20px;font-weight:400;margin-top:0}
.email-card .primary-button:hover{background:#fff}
.selected-email{height:62px;border:1px solid #333;border-radius:999px;display:flex;align-items:center;padding:0 22px;color:#c5c5c5;margin-bottom:20px;font-size:18px}
.back-link{display:block;margin-top:22px;text-align:center;color:#a7a7a7;font-size:13px}
@media(max-width:800px){.sidebar{width:215px;min-width:215px}.hero{padding-bottom:45px}.hero-inner{transform:none}.header-org{display:none}}
@media(max-width:620px){.sidebar{display:none}.workspace-header{height:72px}.hero{padding:0 17px 100px}.hero h1{font-size:22px;margin-bottom:27px}.composer{height:120px}.project-bar{margin:0 13px}.auth-header{padding:0 22px;height:70px}.auth-header-label{display:none}.auth-main{padding:35px 20px 70px}.auth-card h1{font-size:33px}.auth-footer{padding:15px 20px;gap:10px;flex-direction:column}}
.mode-switch span{border-radius:20px;color:#d0d0d0;font-size:14px;flex:1;display:flex;align-items:center;justify-content:center}
.mode-switch span.selected{background:#252525;color:#fff}
.conversation-sidebar{height:100vh;position:sticky;top:0}
.history-heading{color:#969696;font-size:12px;font-weight:600;margin:28px 12px 8px}
.history-list{display:flex;flex-direction:column;gap:1px;overflow-y:auto;min-height:0;padding-right:2px}
.history-item{height:35px;min-height:35px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:8px;color:#d7d7d7;font-size:13px;white-space:nowrap;overflow:hidden}
.history-item span{overflow:hidden;text-overflow:ellipsis}
.history-item svg{width:15px;height:15px;color:#a6a6a6}
.history-item:hover,.history-item.selected{background:#252525;color:#fff}
.conversation-sidebar .sidebar-footer{flex:none}
.mobile-menu,.mobile-close{display:none}
.thread{flex:1;min-height:0;display:flex;flex-direction:column}
.thread-title{padding:24px 24px 20px;text-align:center;border-bottom:1px solid #222}
.thread-title>span{color:#909090;font-size:12px}
.thread-title h1{font-size:18px;font-weight:600;margin:6px 0 0;letter-spacing:-.2px}
.thread-scroll{flex:1;overflow-y:auto;min-height:0}
.thread-body{width:min(900px,100%);margin:0 auto;padding:35px 28px 80px}
.message-row{display:flex;margin:0 0 32px}
.user-row{justify-content:flex-end}
.user-bubble{background:#272727;border-radius:22px;padding:12px 18px;max-width:min(76%,680px);line-height:1.65;font-size:15px}
.user-bubble p,.assistant-copy p{margin:0 0 13px}
.user-bubble p:last-child,.assistant-copy p:last-child{margin-bottom:0}
.assistant-row{gap:15px;align-items:flex-start}
.assistant-mark{width:27px;height:27px;flex:none;display:flex;align-items:center;justify-content:center;margin-top:1px}
.assistant-mark .brand-mark{width:24px;height:24px;font-size:18px}
.assistant-copy{line-height:1.7;font-size:15px;min-width:0;flex:1;padding-top:2px}
.assistant-copy code,.user-bubble code{background:#2a2a2a;border-radius:4px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.91em}
.thread-composer{width:min(780px,calc(100% - 48px));min-height:73px;background:#1e1e1e;border:1px solid #2b2b2b;border-radius:24px;margin:0 auto 20px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;color:#888;font-size:15px}
.thread-composer button{width:31px;height:31px;border:0;border-radius:50%;background:#343434;color:#a1a1a1;display:flex;align-items:center;justify-content:center;cursor:default}
.thread-composer svg{width:18px;height:18px}
.thread-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.thread-empty h1{font-size:22px;font-weight:500}
.thread-empty a{font-size:14px;color:#a9d9ff}
.pr-card{border:1px solid #3c3c3c;border-radius:16px;margin:22px 0;background:#111;overflow:hidden;line-height:1.5}
.pr-top{display:flex;justify-content:space-between;align-items:center;padding:17px 20px 0;color:#aaa;font-size:12px}
.pr-state{border:1px solid #397755;color:#8ce1aa;border-radius:999px;padding:2px 10px}
.pr-card h3{font-size:17px;font-weight:600;letter-spacing:-.25px;margin:9px 20px 2px}
.pr-card h3 span{font-weight:400;color:#888}
.pr-branch{color:#999;font-size:12px;margin:0 20px 18px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.pr-layout{display:grid;grid-template-columns:minmax(190px,27%) minmax(0,1fr);border-top:1px solid #303030}
.pr-summary{padding:18px 18px 25px;border-right:1px solid #303030;font-size:12px;color:#c9c9c9}
.pr-summary strong{font-size:12px;color:#fff}
.pr-summary p{margin:8px 0 22px}
.pr-summary ul{list-style:none;padding:0;margin:8px 0 0;color:#91dba7}
.pr-summary li{margin:0 0 7px}
.pr-files{min-width:0;padding:0 14px 18px}
.pr-tabs{display:flex;align-items:center;gap:23px;height:46px;border-bottom:1px solid #303030;color:#9a9a9a;font-size:12px}
.pr-tabs strong{color:#fff;border-bottom:2px solid #fff;height:46px;display:flex;align-items:center}
.pr-file,.source-preview{border:1px solid #333;border-radius:9px;margin-top:14px;overflow:hidden}
.pr-file summary,.source-preview summary{display:flex;align-items:center;gap:9px;background:#1d1d1d;padding:9px 11px;cursor:pointer;font-size:12px;list-style:none}
.pr-file summary::-webkit-details-marker,.source-preview summary::-webkit-details-marker{display:none}
.pr-file summary svg,.source-preview summary svg{width:15px;height:15px}
.pr-file summary span,.source-preview summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-file summary small,.source-preview summary small{margin-left:auto;white-space:nowrap;color:#929292;font-size:10px}
.diff-lines{overflow-x:auto;background:#121212}
.diff-row{display:flex;min-width:max-content;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre}
.diff-row>span{width:25px;flex:none;text-align:center;color:#888;user-select:none}
.diff-row code{background:none;padding:0 10px 0 0;font-size:inherit}
.diff-add{background:#173523;color:#bcecc8}
.diff-remove{background:#3b2023;color:#f1b7bd}
.source-preview pre{background:#101010;color:#d6d6d6;margin:0;padding:14px;overflow:auto;max-height:340px;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.source-preview pre code{background:none;padding:0;font-size:inherit}
@media(max-width:800px){.pr-layout{grid-template-columns:1fr}.pr-summary{border-right:0;border-bottom:1px solid #303030}}
@media(max-width:760px){.conversation-sidebar{display:flex;position:fixed;z-index:20;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .18s ease;width:min(290px,88vw);height:100vh}.sidebar-open .conversation-sidebar{transform:translateX(0)}.mobile-menu,.mobile-close{display:block;background:none;border:0;color:#ccc;font-size:20px}.mobile-menu{position:absolute;left:18px;top:18px}.mobile-close{font-size:25px}.thread-title{padding:17px 16px}.thread-title h1{font-size:16px}.thread-body{padding:24px 17px 60px}.user-bubble{max-width:90%;font-size:14px}.assistant-copy{font-size:14px}.assistant-row{gap:10px}.thread-composer{width:calc(100% - 28px);margin-bottom:12px}.pr-card{margin-left:-35px}.pr-files{padding:0 8px 12px}}
