.cgpt-shell{height:calc(100vh - 126px);min-height:620px;display:grid;grid-template-columns:248px minmax(0,1fr);border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#0b0d11}
.cgpt-sidebar{display:flex;flex-direction:column;min-width:0;padding:16px;border-right:1px solid var(--line);background:#090b0e}
.cgpt-brand{padding:6px 4px 16px}
.cgpt-brand h2{margin:0;font-size:17px}
.cgpt-brand p{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.cgpt-new{width:100%;height:40px;border:1px solid rgba(249,56,34,.4);border-radius:11px;background:rgba(249,56,34,.11);color:#ff8d7f;font-weight:800;cursor:pointer}
.cgpt-history-label{margin:18px 3px 9px;color:#777d87;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px}
.cgpt-history{flex:1;overflow:auto;display:flex;flex-direction:column;gap:5px}
.cgpt-history button{width:100%;border:0;border-radius:10px;background:transparent;color:#b7bac1;text-align:left;padding:10px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.cgpt-history button:hover,.cgpt-history button.active{background:#171a20;color:#fff}
.cgpt-account{padding-top:12px;border-top:1px solid var(--line)}
.cgpt-account-row{display:flex;align-items:center;gap:9px}
.cgpt-avatar{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,var(--red),#a62013);font-size:10px;font-weight:900}
.cgpt-account-copy{min-width:0;flex:1}
.cgpt-account-copy b,.cgpt-account-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgpt-account-copy b{font-size:11px}
.cgpt-account-copy span{margin-top:3px;color:var(--muted);font-size:9px}
.cgpt-logout{margin-top:8px;width:100%;border:0;background:transparent;color:#777d87;text-align:left;padding:6px 0;cursor:pointer;font-size:10px}
.cgpt-main{min-width:0;display:flex;flex-direction:column}
.cgpt-topbar{min-height:66px;padding:13px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}
.cgpt-heading h1{margin:0;font-size:15px}
.cgpt-heading p{margin:4px 0 0;color:var(--muted);font-size:9px}
.cgpt-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.cgpt-toggle{display:flex;align-items:center;gap:7px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#111318;color:#aaaeb6;font-size:9px;cursor:pointer}
.cgpt-toggle input{accent-color:var(--red)}
.cgpt-toggle.disabled{opacity:.45;cursor:not-allowed}
.cgpt-action{height:34px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#111318;color:#c8cbd1;font-size:9px;cursor:pointer}
.cgpt-messages{flex:1;overflow:auto;padding:26px max(24px,8vw);scroll-behavior:smooth}
.cgpt-empty{max-width:720px;margin:8vh auto 0;text-align:center}
.cgpt-logo{width:54px;height:54px;margin:0 auto 20px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,var(--red),#a81d12);box-shadow:0 18px 55px rgba(249,56,34,.22);font-size:20px;font-weight:900}
.cgpt-empty h2{margin:0;font-size:28px;letter-spacing:-.8px}
.cgpt-empty p{max-width:580px;margin:13px auto 22px;color:var(--muted);font-size:11px;line-height:1.8}
.cgpt-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.cgpt-prompt{border:1px solid var(--line);border-radius:13px;background:#111318;color:#c6c9cf;padding:13px;text-align:left;font-size:10px;line-height:1.5;cursor:pointer}
.cgpt-prompt:hover{border-color:rgba(249,56,34,.38);background:rgba(249,56,34,.06)}
.cgpt-message{max-width:820px;margin:0 auto 22px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px}
.cgpt-message.user{grid-template-columns:minmax(0,1fr) 30px}
.cgpt-message.user .cgpt-message-body{order:-1;background:#1b1e24;border-color:#2b2f37}
.cgpt-message-avatar{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#20242b;color:#dfe1e5;font-size:10px;font-weight:900}
.cgpt-message.assistant .cgpt-message-avatar{background:var(--red);color:white}
.cgpt-message-body{min-width:0;border:1px solid var(--line);border-radius:14px;padding:13px 15px;background:#0f1115;color:#e4e6ea;font-size:12px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.cgpt-message-body p{margin:0 0 10px}
.cgpt-message-body p:last-child{margin-bottom:0}
.cgpt-message-body a{color:#84bdff;text-decoration:none}
.cgpt-cursor{display:inline-block;width:7px;height:14px;margin-left:3px;vertical-align:-2px;background:#ff735f;animation:cgptBlink .8s infinite}
@keyframes cgptBlink{50%{opacity:.2}
}
.cgpt-sources{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px solid var(--line)}
.cgpt-source{max-width:260px;padding:7px 9px;border:1px solid #2b3038;border-radius:9px;color:#9bc9ff!important;background:#14171c;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgpt-composer{padding:12px max(20px,7vw) 16px;background:linear-gradient(transparent,#0b0d11 28%)}
.cgpt-compose-box{max-width:860px;margin:0 auto;border:1px solid #323640;border-radius:17px;background:#13161b;padding:11px 12px 9px;box-shadow:0 18px 45px rgba(0,0,0,.25)}
.cgpt-compose-box:focus-within{border-color:rgba(249,56,34,.52)}
.cgpt-compose-box textarea{width:100%;min-height:44px;max-height:160px;resize:none;border:0;outline:0;background:transparent;color:white;font:inherit;font-size:12px;line-height:1.6}
.cgpt-compose-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cgpt-compose-note{color:#717680;font-size:8px}
.cgpt-send{width:35px;height:35px;border:0;border-radius:11px;background:var(--red);color:white;font-weight:900;cursor:pointer}
.cgpt-send:disabled{opacity:.45;cursor:not-allowed}
.cgpt-gate{min-height:520px;display:grid;place-items:center}
.cgpt-gate-card{width:min(430px,calc(100% - 32px));padding:30px;border:1px solid var(--line);border-radius:20px;background:#0d0f13;text-align:center}
.cgpt-gate-card h2{margin:15px 0 8px}
.cgpt-gate-card p{margin:0 0 20px;color:var(--muted);font-size:11px;line-height:1.7}
.cgpt-gate-card input{width:100%;height:43px;border:1px solid #30343c;border-radius:11px;background:#111419;color:white;padding:0 12px;outline:0}
.cgpt-gate-card input:focus{border-color:rgba(249,56,34,.55)}
.cgpt-gate-card button{width:100%;height:42px;margin-top:10px;border:0;border-radius:11px;background:var(--red);color:white;font-weight:900;cursor:pointer}
.cgpt-gate-error{min-height:18px;margin-top:9px;color:#ff8171;font-size:10px}
.cgpt-loading{min-height:520px;display:grid;place-items:center;color:var(--muted);font-size:11px}
.cgpt-audit{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.7);display:grid;place-items:center;padding:24px}
.cgpt-audit-card{width:min(940px,100%);max-height:82vh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:#0d0f13;padding:20px}
.cgpt-audit-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.cgpt-audit-head h3{margin:0}
.cgpt-audit table{width:100%;border-collapse:collapse;font-size:10px}
.cgpt-audit th,.cgpt-audit td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.cgpt-audit th{color:#7f848e}
.cgpt-banner{max-width:860px;margin:0 auto 10px;padding:9px 12px;border:1px solid rgba(255,184,64,.28);border-radius:11px;background:rgba(255,184,64,.08);color:#ffd38d;font-size:9px;line-height:1.5}
.cgpt-compose-left{display:flex;align-items:center;gap:9px;min-width:0}
.cgpt-attach{height:29px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#1a1d23;color:#bec2c9;font-size:9px;cursor:pointer}
.cgpt-attach:disabled{opacity:.45}
.cgpt-attachments{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:8px}
.cgpt-file-chip{display:inline-flex;align-items:center;gap:6px;max-width:240px;padding:6px 8px;border:1px solid #313640;border-radius:9px;background:#1a1d23;color:#cfd2d8;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgpt-file-chip button{border:0;background:transparent;color:#8b9099;cursor:pointer}
.cgpt-message-files{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:9px}
.cgpt-message-files span{padding:5px 7px;border:1px solid #30353e;border-radius:8px;background:#181b21;color:#bfc4cd;font-size:9px}
.cgpt-scope-card{max-width:680px}
.cgpt-scope-list{display:grid;gap:8px;margin:16px 0}
.cgpt-scope-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#0e1014}
.cgpt-scope-row span{font-size:13px}.cgpt-scope-row b{font-size:12px}
.cgpt-scope-row b.full{color:#75e990}.cgpt-scope-row b.read{color:#8ebcff}.cgpt-scope-row b.limited{color:#ffc266}.cgpt-scope-row b.none{color:#ff7c70}
@media(max-width:900px){.cgpt-shell{grid-template-columns:1fr;height:auto;min-height:70vh}
.cgpt-sidebar{display:none}
.cgpt-topbar{align-items:flex-start;flex-direction:column}
.cgpt-controls{justify-content:flex-start}
.cgpt-messages{min-height:480px;padding:22px 16px}
.cgpt-composer{padding:10px 14px 14px}
.cgpt-prompts{grid-template-columns:1fr}
}
