:root{font-family:Inter,Segoe UI,sans-serif;color:#e8e9ee;background:#101116;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}.app{display:flex;min-height:100vh}.rail{width:244px;background:#15161c;border-right:1px solid #292a32;display:flex;flex-direction:column;flex-shrink:0}.brand{height:88px;display:flex;align-items:center;gap:11px;padding:0 25px;font-size:19px;font-weight:750;letter-spacing:-.8px}.brandmark{width:33px;height:33px;border-radius:10px;background:#c8f36a;color:#182110;display:grid;place-items:center;font-size:26px}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#777b86;margin-top:3px}.rail-heading,.section-label,.context-heading{font-size:10px;letter-spacing:1.25px;font-weight:700;color:#6f727e}.rail-heading{padding:28px 20px 13px;display:flex;justify-content:space-between;align-items:center}.rail-heading button{background:none;border:0;color:#858894;font-size:20px;line-height:10px}.project-item{width:calc(100% - 24px);margin:3px 12px;border:0;background:transparent;color:#a7a9b3;display:flex;align-items:center;gap:11px;text-align:left;padding:11px;border-radius:8px}.project-item.active{background:#282b27;color:#eaf4d8}.project-icon{width:29px;height:29px;border-radius:7px;background:#454c3a;color:#c7ef83;display:grid;place-items:center;font-size:13px;font-weight:700}.project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px}.project-item small{color:#b7d981}.new-project{margin:11px 23px;text-align:left;border:0;background:none;color:#878a94;font-size:13px;padding:8px 0}.new-project span{margin-left:10px}.rail-bottom{margin-top:auto;border-top:1px solid #292a32;padding:20px;display:flex;align-items:center;gap:10px}.profile-avatar,.tiny-avatar,.member-avatar{background:#bdb4a5;color:#28251f;display:grid;place-items:center;border-radius:50%;font-weight:700}.profile-avatar,.member-avatar{width:34px;height:34px;font-size:12px}.rail-bottom strong,.member strong,.agent-empty strong,.context-footer strong{display:block;font-size:12px}.rail-bottom small,.member small,.agent-empty small,.context-footer small{display:block;color:#777b86;font-size:11px;margin-top:5px}.profile-more{margin-left:auto;color:#82848d}.main{min-width:0;flex:1}.topbar{height:64px;border-bottom:1px solid #292a32;display:flex;align-items:center;justify-content:space-between;padding:0 33px}.breadcrumb{font-size:12px;color:#777b86}.breadcrumb strong{color:#c5c6cd;font-weight:500}.slash{padding:0 12px;color:#4d4f58}.top-actions{display:flex;align-items:center;gap:20px}.local-status{font-size:11px;color:#9ba095}.local-status i,.online{display:inline-block;width:7px;height:7px;background:#b9ea74;border-radius:50%;margin-right:6px}.icon-button{border:0;background:none;color:#a1a4ad;font-size:20px}.tiny-avatar{width:28px;height:28px;font-size:10px}.content{display:flex;min-height:calc(100vh - 64px)}.workspace{flex:1;min-width:0;padding:45px 48px;max-width:1100px;margin:0 auto}.workspace-header{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#b8df7c}.sparkle{font-size:16px;margin-right:6px}h1{font-size:30px;letter-spacing:-1px;margin:16px 0 8px;font-weight:650}.workspace-header p{color:#858893;font-size:13px;margin:0}.outline-btn{background:transparent;border:1px solid #383b43;color:#d5d7dd;border-radius:8px;padding:10px 14px;font-size:12px}.outline-btn span{margin-left:5px}.tabs{display:flex;gap:27px;border-bottom:1px solid #2a2c33;margin-top:39px}.tab{border:0;background:none;color:#81848f;padding:0 0 16px;font-size:12px;position:relative}.tab span{margin-left:5px}.tab.active{color:#d9edba}.tab.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#c7f081}.chat-layout{min-height:535px;display:flex;flex-direction:column}.chat-heading{display:flex;align-items:center;gap:12px;padding:25px 0;border-bottom:1px solid #24262d}.chat-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#303a29;color:#c6eb91;font-size:20px}.chat-heading h2{font-size:14px;margin:0 0 5px}.chat-heading p{font-size:11px;color:#777b86;margin:0}.messages{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px 0;min-height:290px}.empty-art{width:66px;height:66px;background:#242c22;border:1px solid #384833;border-radius:20px;display:grid;place-items:center;color:#c6ed83;font-size:31px;transform:rotate(-7deg);margin-bottom:19px}.empty-title{font-size:16px;font-weight:650;margin:0 0 9px}.empty-desc{text-align:center;color:#858893;font-size:12px;line-height:1.7;max-width:330px;margin:0}.suggestions{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap;justify-content:center}.suggestions button{background:#1c1e24;color:#aeb1ba;border:1px solid #30323a;border-radius:7px;padding:9px 11px;font-size:11px}.message-list{align-self:stretch;width:100%;display:flex;flex-direction:column;gap:16px}.message{align-self:flex-end;max-width:80%;background:#303c2a;border:1px solid #41543a;padding:11px 14px;border-radius:12px 12px 2px 12px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.composer{border:1px solid #393c43;background:#1b1d22;border-radius:12px;padding:15px}.composer textarea{display:block;resize:none;width:100%;height:44px;background:transparent;border:0;outline:0;color:#e9ebee;font-size:13px}.composer textarea::placeholder{color:#757883}.composer-bottom{display:flex;align-items:center;justify-content:space-between;color:#777b86;font-size:11px}.send{background:#c8f084;color:#202a18;border:0;border-radius:8px;width:34px;height:34px;font-size:19px}.composer-note{text-align:center;font-size:10px;color:#676a74;margin-top:12px}.context{width:270px;flex-shrink:0;border-left:1px solid #292a32;padding:35px 22px;display:flex;flex-direction:column}.context-heading,.section-label{display:flex;justify-content:space-between}.context-card{margin-top:23px;background:linear-gradient(145deg,#303c2c,#20271f);border:1px solid #3d4b35;border-radius:12px;padding:17px}.card-icon{color:#c9f08a;font-size:24px}.context-card h3{font-size:14px;margin:13px 0 8px}.context-card p{color:#a5b09d;font-size:11px;line-height:1.65;margin:0}.context-card button{margin-top:18px;width:100%;border:1px solid #52654a;background:#394a32;color:#d7ebc7;border-radius:7px;padding:9px;font-size:11px;text-align:left}.context-card button span{float:right}.section-label{margin-top:38px}.section-label span{color:#62656e}.member,.agent-empty{display:flex;gap:10px;align-items:center;margin-top:20px}.member .online{margin-left:auto}.agent-icon{width:34px;height:34px;border:1px dashed #555961;border-radius:10px;display:grid;place-items:center;color:#858993}.context-footer{margin-top:auto;padding-top:35px;display:flex;gap:10px;color:#aeb1b9}.context-footer>span{font-size:22px;color:#91ae75}.panel{padding:27px 0}.panel h2{font-size:16px}.panel p,.hint{color:#8c909a;font-size:13px;line-height:1.6}.file-row{display:block;width:100%;text-align:left;background:transparent;color:#d2d5dc;border:0;border-bottom:1px solid #292b32;padding:12px 8px}.file-row:hover{background:#1d2025}.file-row span{color:#b9df83;margin-right:10px}.code{white-space:pre-wrap;overflow-wrap:anywhere;background:#17191e;border:1px solid #30323a;border-radius:8px;padding:16px;font:12px/1.6 Consolas,monospace;max-height:55vh;overflow:auto}.back{background:none;border:0;color:#bfe58c;padding:0}.notice{background:#20241e;border:1px solid #3b4933;border-radius:10px;padding:18px;margin-top:20px}.notice strong{color:#cae8a8;font-size:13px}dialog{background:#1c1e24;color:#e8e9ee;border:1px solid #3b3d45;border-radius:14px;padding:24px;width:min(440px,90vw)}dialog::backdrop{background:#000a}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top h2{font-size:19px;margin:0}.close{background:none;color:#999;border:0;font-size:24px}.dialog-body p,dialog p{color:#969aa4;font-size:13px;line-height:1.6}.field{display:block;font-size:12px;margin-top:18px;color:#c8cad0}.field input{display:block;margin-top:8px;width:100%;background:#111318;border:1px solid #3b3e47;border-radius:7px;padding:11px;color:white}.primary{background:#c8f084;border:0;border-radius:7px;padding:11px 15px;margin-top:20px;color:#1d2815;font-weight:650}.error{color:#f1a8a8;font-size:12px}@media(max-width:1050px){.context{display:none}}@media(max-width:650px){.rail{width:65px}.brand{padding:0 16px}.brand>span:last-child,.rail-heading,.new-project span,.project-name,.project-item small,.rail-bottom>div:not(.profile-avatar),.profile-more{display:none}.project-item{justify-content:center;padding:8px;margin:4px auto}.new-project{text-align:center;margin:15px;font-size:20px}.rail-bottom{padding:15px}.workspace{padding:32px 20px}.topbar{padding:0 20px}.workspace-header h1{font-size:24px}.outline-btn span{display:none}.tabs{gap:18px}.tab{font-size:11px}.breadcrumb span:first-child{display:none}.slash{display:none}.chat-layout{min-height:calc(100vh - 250px)}}
.agent-message{align-self:flex-start;background:#202228;border-color:#33363e}.message small{display:block;font-size:9px;letter-spacing:1px;color:#a6b997;margin-bottom:6px}.codex-check{align-self:center;margin:14px 0 0;font-size:11px}.send:disabled{opacity:.5;cursor:wait}.tabs{flex-wrap:wrap}
.team-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.team-controls .primary{margin-top:0}.team-task{padding:16px;border:1px solid #384333;background:#1b2119;border-radius:12px;margin-top:10px}.team-task .field{margin-top:0}.team-task textarea{display:block;width:100%;min-height:80px;resize:vertical;margin-top:9px;padding:12px;background:#141712;border:1px solid #3b4535;border-radius:8px;color:#e4e9de;font:inherit;font-size:13px}.team-task select{background:#1b2119;color:#d6e8bf;border:1px solid #49583f;border-radius:6px;padding:6px;margin-left:6px}.team-controls label{font-size:12px;color:#aeb5a6}.team-manage{gap:18px}.team-manage button{font-size:11px}.permission-choice{display:flex;align-items:flex-start;gap:8px;margin:15px 0;font-size:11px;color:#a7b19d;line-height:1.6}.permission-choice input{accent-color:#c8f084;margin-top:3px}.patch-button{display:block;margin-top:12px;font-size:12px}.primary:disabled,.outline-btn:disabled{opacity:.45;cursor:default}.message{max-width:95%}.team-task .hint{margin-bottom:0}dialog:has(#patch-confirm){width:min(800px,92vw)}.team-manage [hidden]{display:none}

/* Rahal light theme */
:root{color:#171a18;background:#f5f5f1;font-family:Inter,Segoe UI,sans-serif}
.rail,.topbar,.context{background:#f5f5f1;border-color:#deded8}
.brandmark,.send,.primary{background:#171a18;color:#fff}
.brand small,.rail-heading,.section-label,.context-heading,.breadcrumb,.workspace-header p,.local-status,.chat-heading p,.empty-desc,.composer-note,.panel p,.hint,.dialog-body p,dialog p,.rail-bottom small,.member small,.agent-empty small,.context-footer small{color:#767c76}
.project-item,.new-project,.icon-button,.tab{color:#555d58}
.project-item.active,.tab:hover{background:#eaece7;color:#171a18}
.project-icon,.chat-icon,.empty-art{background:#e9eee9;color:#385943;border-color:#d9ded7}
.breadcrumb strong,.field,.file-row{color:#202520}
.eyebrow,.sparkle,.card-icon,.back{color:#486853}
.tabs,.chat-heading,.file-row,.rail-bottom{border-color:#deded8}
.tab.active{color:#171a18}.tab.active:after{background:#171a18}
.outline-btn,.suggestions button,.context-card button{background:#fff;color:#171a18;border-color:#d5d9d3}
.context-card,.notice,.team-task{background:#f0f2ed;border-color:#dfe2db}
.context-card p,.permission-choice,.team-controls label,.notice strong{color:#626c64}
.message{background:#e9f2e9;border-color:#d4e3d5;color:#171a18}
.agent-message{background:#fff;border-color:#dfe1dc}
.message small{color:#58745c}
.composer,.field input,.team-task textarea,.team-task select,dialog,.code{background:#fff;color:#171a18;border-color:#d9ddd6}
.composer textarea{color:#171a18}.team-task textarea{color:#171a18}
.send:disabled,.primary:disabled{opacity:.5}.permission-choice input{accent-color:#171a18}
.file-row:hover{background:#eceee9}.file-row span{color:#527358}
.profile-avatar,.tiny-avatar,.member-avatar{background:#e8ebe5;color:#171a18}
.auth-logout{border:0;background:none;color:#4b554d;cursor:pointer}.login-message{max-width:500px;margin:15vh auto;padding:32px;background:#fff;border:1px solid #d9ddd6;border-radius:12px}.login-message .primary{display:inline-block;text-decoration:none}

/* Shared workspace header */
body[data-server-busy] button:not(.close):not(.auth-logout):not(.cancel-request){pointer-events:none;opacity:.65}
.global-header{height:64px;background:#f5f5f1;border-bottom:1px solid #deded8;color:#171a18}
.header-inner{height:100%;max-width:1160px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.header-brand{display:flex;align-items:center;gap:9px;min-width:0}
.header-mark{display:grid;place-items:center;width:32px;height:32px;border:1px solid #cfd3cb;border-radius:9px;background:white;font-size:13px;font-weight:700}
.header-brand strong,.header-user strong,.profile-menu strong{display:block;font-size:13px;font-weight:600;white-space:nowrap}
.header-brand small,.header-user small,.profile-menu small{display:block;font-size:10px;color:#91968e;margin-top:2px}
.header-tabs{border:0;margin:0;gap:4px;align-items:center;justify-content:center;flex-wrap:nowrap}
.header-tabs .tab{padding:10px 12px;color:#626862;font-size:12px;white-space:nowrap;border-radius:8px}
.header-tabs .tab span{margin:0}.header-tabs .tab.active{color:#171a18;font-weight:600}.header-tabs .tab.active:after{display:none}.header-tabs .tab:hover{background:#eaece7}
.header-profile{justify-self:end;position:relative}.header-profile summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;border-radius:8px;padding:4px}.header-profile summary::-webkit-details-marker{display:none}.header-profile summary:hover{background:#eceee9}
.header-profile .tiny-avatar{width:34px;height:34px;border:1px solid #d9ddd5;background:#f3f4f0;font-size:11px}.header-user{text-align:right}.profile-chevron{color:#8a9188}
.profile-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;min-width:210px;padding:16px;background:#fff;border:1px solid #deded8;border-radius:12px;box-shadow:0 10px 30px #00000014}.profile-menu small{margin-top:5px}.profile-menu .auth-logout{display:block;width:100%;margin-top:14px;padding:12px 0 0;border-top:1px solid #e4e6df;text-align:left;color:#b63131}
.app{min-height:calc(100vh - 64px)}.rail .brand{display:none}.content{min-height:calc(100vh - 64px)}
@media(max-width:850px){.global-header{height:auto}.header-inner{min-height:64px;grid-template-columns:1fr auto;gap:8px}.header-tabs{grid-column:1/-1;grid-row:2;justify-content:flex-start;overflow:auto;width:100%;padding-bottom:6px}.header-profile{grid-column:2;grid-row:1}.app{min-height:calc(100vh - 110px)}}
@media(max-width:500px){.header-user{display:none}.header-tabs .tab{padding:9px 10px}.header-brand small{font-size:9px}}
