:root{color-scheme:dark;--bg:#151a17;--sidebar:#101512;--panel:#1d2420;--line:#2c352e;--muted:#87948b;--text:#edf2ed;--mint:#b9e7c4;--accent:#86b994;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--mint);outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0;background:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:650;color:var(--accent)}
.app-shell{height:100dvh;display:grid;grid-template-columns:258px minmax(0,1fr);overflow:hidden}.sidebar{background:var(--sidebar);border-right:1px solid #253026;display:flex;flex-direction:column;min-height:0;padding:28px 17px 12px}.brand{display:flex;align-items:center;gap:12px;padding:0 10px;margin-bottom:31px;font-size:17px;font-weight:650;letter-spacing:-.5px}.brand small{display:block;color:#7d8b81;font-size:10px;letter-spacing:.2px;margin-top:5px;font-weight:400}.brand-mark{width:58px;height:58px;background:var(--mint);border-radius:18px;display:inline-flex;justify-content:center;align-items:center;color:#1c3c27;font-size:41px;font-weight:650;letter-spacing:-5px;line-height:1;padding-right:7px}.brand-mark span{font-size:27px;align-self:flex-end;line-height:1.25}.brand-mark.small{width:36px;height:36px;font-size:27px;border-radius:11px;letter-spacing:-3px;padding-right:4px}.brand-mark.small span{font-size:19px;line-height:1.25}.new-chat{display:flex;align-items:center;gap:11px;padding:13px 12px;border:1px solid #364339;border-radius:11px;text-align:left;font-size:12px;font-weight:550;background:#1d2820;transition:background .2s}.new-chat:hover{background:#2a372d}.new-chat svg{width:17px;height:17px;color:var(--mint)}.new-chat span{margin-left:auto;font-size:10px;color:#6e8073;font-weight:400}.primary-nav{margin:20px 0 18px}.nav-item,.project-nav{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border-radius:8px;padding:10px 12px;font-size:12px;color:#a1afa4}.nav-item.active{background:#202b23;color:var(--mint)}.nav-item:hover,.project-nav:hover{background:#202822}.nav-item svg{width:17px;height:17px}.sidebar-section{margin-bottom:25px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.25px;color:#6f7e73;font-weight:650;margin:0 12px 10px;min-height:20px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:8px;color:#95a49a;flex-shrink:0}.icon-button:hover{background:#2a342c;color:#e2eae4}.section-label .icon-button{width:22px;height:22px}.section-label svg{width:14px;height:14px}.project-nav{padding:9px 10px;color:#c7d0c9}.project-nav.active{background:#26332a;color:#e2ece4}.project-nav .project-badge{width:24px;height:24px;border-radius:7px;font-size:9px}.project-nav .count{margin-left:auto;font-size:10px;color:#6b7c70}.project-badge{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:650;letter-spacing:-.3px;flex-shrink:0}.mint{color:#b1dcbf;background:#2a4031}.lilac{color:#c8b5e7;background:#363044}.blue{color:#a7c6e8;background:#28394c}.orange{color:#dfc49a;background:#443a2b}.history-section{flex:1;overflow:auto;min-height:100px}.history-list{display:flex;flex-direction:column;gap:3px}.history-item{width:100%;display:flex;align-items:center;gap:8px;text-align:left;padding:10px 12px;border-radius:8px;color:#99a89e;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item span{overflow:hidden;text-overflow:ellipsis}.history-item svg{width:14px;height:14px;color:#5f7465}.history-item:hover,.history-item.active{background:#243027;color:#dbe7de}.empty-note{font-size:11px;line-height:1.6;color:#637469;padding:4px 12px}.subtle-button{font-size:9px;letter-spacing:0;color:#8b9b90;padding:2px 0}.subtle-button:hover{color:var(--mint)}.owner-button{display:flex;align-items:center;gap:10px;text-align:left;border-top:1px solid var(--line);padding:17px 9px 5px;width:100%}.avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#39443b;color:#d9e5dd;font-size:11px}.owner-text{font-size:12px;flex:1}.owner-text small{display:flex;align-items:center;gap:5px;font-size:9px;color:#718579;margin-top:5px}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8fc79c;flex-shrink:0}.owner-button>svg{width:16px;height:16px;color:#63766a}
.main-area{display:flex;flex-direction:column;min-width:0;min-height:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #252e28;padding:0 34px;flex-shrink:0;font-size:11px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:15px;min-width:0}.topbar-left>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-left>span:first-of-type{color:#d9e2db}.topbar-divider{height:13px;width:1px;background:#3b463e;flex-shrink:0}#scope-label{color:#7d8f83}.model-tag{color:#8fa195;display:flex;gap:7px;align-items:center;font-size:10px}.workspace{display:flex;flex:1;min-height:0;position:relative}.conversation-column{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.welcome{flex:1;overflow-y:auto;width:100%;padding:clamp(35px,7vh,90px) 30px 26px;max-width:800px;margin:0 auto}.welcome-heading{margin-bottom:35px}.welcome-heading .eyebrow{margin-bottom:18px}h1{font-size:clamp(30px,3.3vw,46px);line-height:1.15;letter-spacing:-1.8px;font-weight:500;margin:0 0 14px}h1 span{color:var(--mint)}.welcome-heading>p{color:#91a096;font-size:12px;line-height:1.7;margin:0}.project-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:35px}.project-card{border:1px solid #344137;border-radius:14px;padding:18px 16px 16px;text-align:left;background:linear-gradient(135deg,#202b23,#1c241f);min-height:155px;transition:border-color .2s,transform .2s;position:relative}.project-card:hover{border-color:#758d7c;transform:translateY(-2px)}.project-card .project-badge{width:34px;height:34px;font-size:10px;border-radius:10px;margin-bottom:18px}.project-card>svg{position:absolute;right:15px;top:20px;width:14px;height:14px;color:#63776a}.project-card strong{display:block;font-size:13px;font-weight:550;margin-bottom:7px}.project-card p{font-size:10px;line-height:1.6;color:#829389;margin:0}.services .section-label{margin-left:0;margin-right:0;font-size:9px}.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.service-card{display:flex;align-items:center;gap:12px;padding:15px 13px;border:1px solid #2b372e;border-radius:11px;background:#19211b;font-size:11px}.service-card:hover{border-color:#526959}.service-card small{display:block;font-size:9px;color:#718679;margin-top:5px}.service-card>svg{width:13px;height:13px;color:#6a8171;margin-left:auto}.service-icon{width:32px;height:32px;border:1px solid #344a3a;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#a2c4ac;font-size:12px}.service-icon svg{width:17px;height:17px}.service-icon.billiard{background:#a2bfaa;color:#172a1d;border-radius:50%;width:28px;height:28px;border:5px solid #283a2d;font-size:9px;font-weight:700;margin:2px}
.composer-zone{width:100%;max-width:800px;padding:13px 30px 17px;margin:0 auto;flex-shrink:0}.composer{background:#242e27;border:1px solid #405146;border-radius:17px;padding:16px 14px 10px;box-shadow:0 15px 40px #0002}.composer:focus-within{border-color:#6a8974}textarea{resize:vertical}.composer textarea{display:block;width:100%;min-height:30px;max-height:160px;border:0;resize:none;background:transparent;color:#edf5ef;outline:none;font-size:13px;line-height:1.7;padding:0 4px 12px}.composer textarea::placeholder{color:#82948a}.composer textarea:focus-visible{outline:0}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-left{display:flex;align-items:center;gap:7px;min-width:0}.tool-toggle{display:inline-flex;gap:6px;align-items:center;border-radius:7px;padding:6px 8px;font-size:10px;color:#849b8d;border:1px solid transparent}.tool-toggle svg{width:14px;height:14px}.tool-toggle.selected{color:#bedbc7;background:#314538;border-color:#3b5444}.tool-toggle:hover{color:#d2e6d9}.send-button{display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--mint);color:#1c3926;width:33px;height:33px;flex-shrink:0}.send-button:hover{background:#d0f0d7}.send-button svg{width:18px;height:18px;stroke-width:2}.stop-button span{width:10px;height:10px;background:#1c3926;border-radius:2px}.composer-foot{display:flex;justify-content:space-between;gap:8px;font-size:8px;color:#64776a;margin:10px 4px 0}.temporary-notice{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;color:#a2b1a8;margin-bottom:12px}.temporary-notice svg{width:13px;height:13px}.attachment-list{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.attachment-chip{display:flex;align-items:center;gap:7px;background:#29372e;border:1px solid #3a5041;padding:7px 10px;border-radius:9px;max-width:220px;font-size:10px}.attachment-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip svg{width:13px;height:13px}.attachment-chip button{padding:0;display:flex;color:#99b0a0}.messages{flex:1;overflow:auto;padding:35px 30px 10px}.message{max-width:740px;margin:0 auto 28px}.message.user{display:flex;flex-direction:column;align-items:flex-end}.message.user .message-content{background:#29382e;border:1px solid #35493c;border-radius:16px 16px 3px 16px;padding:12px 17px;max-width:88%;font-size:13px;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.message.assistant .message-label{display:flex;align-items:center;gap:8px;font-size:10px;color:#9bb6a4;margin-bottom:12px}.message.assistant .message-content{font-size:13px;line-height:1.9;color:#dce7df;overflow-wrap:anywhere}.message-content p{margin:0 0 13px}.message-content a{color:#b4e0c0;text-decoration:underline;text-decoration-color:#5d8669;text-underline-offset:3px}.message-content h2,.message-content h3,.message-content h4{font-size:16px;font-weight:600;line-height:1.5;margin:23px 0 10px}.message-content ul,.message-content ol{padding-left:23px;margin:10px 0 20px}.message-content li{margin:5px 0}.message-content code{font:12px ui-monospace,SFMono-Regular,Consolas,monospace;background:#2a362d;padding:2px 5px;border-radius:4px}.message-content pre{background:#101812;border:1px solid #34463b;border-radius:10px;padding:16px;overflow:auto;line-height:1.6;position:relative;margin:14px 0}.message-content pre code{padding:0;background:none;white-space:pre}.message-content pre button{position:absolute;right:9px;top:8px;font-size:9px;color:#9caf9f;background:#243529;border-radius:5px;padding:4px 7px}.message-tools{display:flex;align-items:center;gap:10px;margin-top:9px;color:#5f7a69;font-size:9px}.message-tools .icon-button{width:23px;height:23px}.message-tools svg{width:13px;height:13px}.sources{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.source-chip{font-size:9px;max-width:220px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#25342b;border:1px solid #344a3b;padding:5px 8px;border-radius:6px;color:#aac5b3}.thinking{display:flex;gap:8px;align-items:center;color:#8eaa98;font-size:11px;padding-top:8px}.thinking-dots{display:flex;gap:3px}.thinking-dots i{display:block;width:4px;height:4px;background:#96c5a4;border-radius:50%;animation:pulse 1.3s infinite}.thinking-dots i:nth-child(2){animation-delay:.2s}.thinking-dots i:nth-child(3){animation-delay:.4s}@keyframes pulse{0%,80%,100%{opacity:.3}40%{opacity:1}}.response-error{color:#d7b095;font-size:11px;padding:10px 0}.conversation-empty{padding:40px 0;color:#7c9284;text-align:center;font-size:12px}.context-panel{width:280px;flex-shrink:0;border-left:1px solid #29392e;background:#151e18;padding:18px 22px;overflow:auto}.context-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8ca392;margin-bottom:28px}.context-panel h2{font-size:21px;font-weight:500;letter-spacing:-.5px;margin:18px 0 9px}.context-panel p{font-size:11px;line-height:1.8;color:#8ba594}.context-panel label{display:block;margin-top:28px;font-size:11px}.context-panel .field-hint{font-size:9px}.context-panel textarea{width:100%;background:#1c2a20;border:1px solid #344b3c;border-radius:9px;padding:11px;font-size:11px;line-height:1.8;color:#d8e5dd;margin:5px 0 12px}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:10px;font-size:12px;padding:12px 16px;min-height:42px}.primary{background:var(--mint);color:#173c24;font-weight:600}.primary:hover{background:#d0f1d9}.secondary{background:#29392e;border:1px solid #405447;color:#c6daca}.secondary:hover{background:#334a3c}.wide{width:100%}.primary svg,.secondary svg{width:16px;height:16px}.text-button{color:#88a391;font-size:11px;padding:15px 0}.text-button:hover{color:var(--mint)}.login-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:30px 20px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 15%,#213528 0,#111914 65%)}.login-orb{width:530px;height:530px;border-radius:50%;border:1px solid #80b5900c;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.login-card{position:relative;width:380px;z-index:1;text-align:center;padding:25px 0}.login-card .brand-mark{margin-bottom:30px}.login-card .eyebrow{margin-bottom:15px}.login-card h1{font-size:35px;letter-spacing:-1px}.login-description{font-size:13px;line-height:1.9;color:#92a79a;margin:18px 0 35px}.login-foot{display:flex;align-items:center;justify-content:center;gap:6px;color:#687f70;font-size:9px;margin-top:25px}.login-foot svg{width:12px;height:12px}.login-card label{text-align:left;display:block;font-size:10px;color:#9eb6a6;margin:15px 0 8px}.login-card input{width:100%;border:1px solid #3b5443;background:#1e2d23;border-radius:9px;padding:13px;color:#e4f1e8;margin-bottom:15px;font-size:12px}.login-card h2{font-size:22px;font-weight:500}.form-intro{font-size:12px;line-height:1.9;color:#91a99a}.form-error{font-size:11px;line-height:1.7;color:#e7b3a2;min-height:20px}.modal{border:1px solid #3b5042;border-radius:18px;background:#1a271e;color:#e6eee7;width:min(500px,calc(100% - 30px));padding:25px;box-shadow:0 30px 120px #0009}.modal::backdrop{background:#050c08b8;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal h2{font-size:20px;font-weight:500;letter-spacing:-.5px;margin:0}.modal label{display:block;font-size:11px;color:#a5bfae;margin:15px 0 8px}.modal input:not([type=checkbox]),.modal textarea{width:100%;border:1px solid #3b5443;background:#132018;border-radius:8px;padding:12px;color:#dfede3;outline:none;font-size:12px}.modal p{font-size:12px;line-height:1.8;color:#a2b8a8}.modal form>.primary{margin-top:20px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.menu-actions{display:flex;flex-direction:column;gap:6px}.menu-actions button,.menu-actions a{display:flex;gap:11px;align-items:center;text-align:left;font-size:12px;border-radius:8px;padding:12px}.menu-actions button:hover,.menu-actions a:hover{background:#293e31}.menu-actions svg{width:17px;height:17px}.danger{color:#e2b3a2!important}.settings-section{border-top:1px solid #344a3b;padding-top:16px;margin-top:22px}.settings-section h3{font-size:11px;font-weight:600;color:#94b09c;letter-spacing:.2px;margin:0 0 11px}.device-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #293c30;font-size:11px}.device-row small{display:block;font-size:9px;color:#7f9b89;margin-top:5px}.device-row .current-tag{color:#b1dbbd;font-size:9px}.recovery-dialog{width:min(540px,calc(100% - 30px))}.recovery-dialog h2{margin-top:16px}.recovery-dialog code{display:block;padding:20px 12px;background:#101d14;border:1px solid #42624c;border-radius:10px;word-break:break-all;font:15px/1.9 ui-monospace,SFMono-Regular,monospace;color:#c6e9cf;letter-spacing:1px}.recovery-dialog ol{font-size:11px;line-height:1.8;color:#a2b8a8;padding-left:20px}.paper-origin{font-size:11px;margin:15px 0;color:#b4d5bf;word-break:break-all}.recovery-actions{display:flex;gap:8px;margin:20px 0 15px}.checkbox-row{display:flex!important;align-items:center;gap:8px;font-size:11px;margin-bottom:20px!important;line-height:1.6}.checkbox-row input{accent-color:var(--mint)}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 19px;border:1px solid #4a6553;border-radius:11px;background:#2c4435;color:#e0f0e5;font-size:12px;z-index:100;max-width:calc(100% - 30px);box-shadow:0 5px 30px #0005}.mobile-only{display:none}.sidebar-backdrop{position:fixed;inset:0;background:#0009;z-index:20}
@media(min-width:1500px){.welcome{max-width:850px;padding-top:11vh}.composer-zone{max-width:850px}.project-card{min-height:170px}.sidebar{padding-top:32px}.topbar{height:80px}}
@media(max-width:1150px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.sidebar{padding-inline:12px}.topbar{padding-inline:22px}.welcome{padding-inline:24px}.composer-zone{padding-inline:24px}.context-panel{position:absolute;right:0;top:0;bottom:0;z-index:10;box-shadow:-15px 0 40px #0005}.project-card{padding:15px 12px}.service-card{gap:8px;padding:13px 10px}}
@media(max-width:760px){.app-shell{display:flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;z-index:30;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.main-area{width:100%}.mobile-only{display:flex}.topbar{height:59px;padding-inline:13px}.topbar-left{gap:9px}.topbar-right{gap:5px}.model-tag{font-size:9px}.topbar-divider{display:none}#breadcrumb{display:none}.welcome{padding:37px 20px 22px}.welcome-heading{margin-bottom:27px}h1{font-size:35px;letter-spacing:-1.3px}.welcome-heading .eyebrow{font-size:9px;margin-bottom:17px}.project-cards{gap:8px;margin-bottom:27px}.project-card{padding:13px 10px;min-height:148px;border-radius:11px}.project-card .project-badge{width:29px;height:29px;margin-bottom:15px}.project-card strong{font-size:12px}.project-card p{font-size:9px;line-height:1.6}.project-card>svg{display:none}.service-grid{grid-template-columns:1fr;gap:8px}.service-card{padding:12px}.service-card small{font-size:9px}.composer-zone{padding:9px 13px max(12px,env(safe-area-inset-bottom));background:var(--bg)}.composer{border-radius:15px;padding:13px 10px 9px}.composer textarea{font-size:16px;line-height:1.6;padding-bottom:10px}.composer-left{gap:3px}.tool-toggle{font-size:9px;padding:6px}.tool-toggle svg{width:13px;height:13px}.composer-foot{font-size:8px;justify-content:center}.composer-foot>span:first-child{display:none}.messages{padding:24px 18px 8px}.message.assistant .message-content,.message.user .message-content{font-size:14px}.message.user .message-content{max-width:94%}.context-panel{width:min(310px,90%)}.modal{padding:21px}.login-card h1{font-size:33px}.login-card input,.modal input:not([type=checkbox]),.modal textarea{font-size:16px}.recovery-dialog code{font-size:13px}.attachment-chip{max-width:170px}}
@media(max-height:750px) and (min-width:761px){.welcome{padding-top:30px}.welcome-heading{margin-bottom:24px}.welcome-heading h1{font-size:36px}.project-cards{margin-bottom:24px}.project-card{min-height:135px}.project-card .project-badge{margin-bottom:12px}.sidebar-section{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body>*{display:none!important}#recovery-card{display:block!important;position:static;border:0;box-shadow:none;width:100%;max-width:100%;background:white;color:black;padding:20mm}#recovery-card .print-card{display:block}#recovery-card .recovery-actions,#recovery-card .checkbox-row,#finish-recovery{display:none!important}#recovery-card p,#recovery-card ol,#recovery-card .eyebrow,#paper-origin{color:#222}#paper-code{color:black;background:white;border:1px solid #555}}

@media(max-width:760px){#project-notes{font-size:16px}}
