:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1f302c;background:#f7f8f5;font-synthesis:none;font-size:15px;--green:#153f36;--mint:#bde7d2;--muted:#708079;--line:#e0e6e0;--paper:#fff}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}input,textarea{color:inherit}input:focus,textarea:focus{outline:2px solid #80b9a3;outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid #70bba3;outline-offset:3px}[hidden]{display:none!important}label{display:block;font-size:.86rem;font-weight:650;margin:22px 0 9px}input{width:100%;border:1px solid #dce3dd;border-radius:9px;padding:13px 14px;background:#fff;min-width:0}input[type=checkbox]{width:auto;accent-color:var(--green)}input:disabled{background:#f0f3ef;color:#75817b}small{font-size:.78rem;color:var(--muted);line-height:1.6}p{line-height:1.65}h1,h2,p{margin-top:0}.eyebrow{font-size:.65rem;letter-spacing:.13em;font-weight:750;margin-bottom:10px}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:1.25rem;font-weight:650;white-space:nowrap}.brand em{font-style:normal;font-weight:400;opacity:.57}.primary,.secondary{display:inline-flex;gap:14px;align-items:center;justify-content:center;min-height:44px;border-radius:9px;padding:11px 18px;font-weight:650;border:1px solid transparent}.primary{color:white;background:var(--green)}.primary:hover{background:#205547}.secondary{border-color:#dce3dd;background:white;color:var(--green)}.icon-button{border:0;background:transparent;color:inherit;border-radius:8px;width:36px;height:36px;font-size:1.3rem;flex-shrink:0}.icon-button:hover{background:#ffffff13}.error{color:#a63430;font-size:.85rem;margin:14px 0;min-height:0}.password-wrap{position:relative}.password-wrap input{padding-right:88px}.password-toggle{position:absolute;right:7px;top:5px;bottom:5px;border:0;background:#f1f5f1;color:#4c685c;border-radius:6px;padding:0 10px;font-size:.74rem;font-weight:650}
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.welcome{background:var(--green);color:#e4eee6;padding:48px 60px;display:flex;flex-direction:column;position:relative;overflow:hidden}.welcome:after{content:"";width:500px;height:500px;border:1px solid #ffffff0c;border-radius:50%;position:absolute;right:-200px;bottom:-210px;box-shadow:0 0 0 60px #ffffff04,0 0 0 120px #ffffff03;pointer-events:none}.welcome-copy{margin:auto 0;padding:70px 0}.welcome-copy .eyebrow{color:#b1d1c1}.welcome h1{font-size:clamp(2.8rem,4.8vw,5.2rem);font-weight:550;line-height:1.08;letter-spacing:-.055em;margin:22px 0 30px}.welcome-copy>p:not(.eyebrow){color:#adc5b9;font-size:1.02rem;line-height:1.9}.welcome-pills{display:flex;gap:9px;margin-top:35px}.welcome-pills span{font-size:.74rem;border:1px solid #ffffff25;padding:7px 15px;border-radius:20px}.welcome-foot{font-size:.74rem;color:#97b5a5;margin-bottom:0}.login-side{display:grid;place-items:center;padding:35px;background:#fafbf8}.login-card{width:100%;max-width:355px}.mini-logo{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce6db;background:#edf3e9;width:46px;height:46px;border-radius:13px;font-size:1.5rem;margin-bottom:26px}.login-card h2{font-size:2rem;font-weight:620;letter-spacing:-.035em;margin-bottom:10px}.login-card>p{color:var(--muted);font-size:.88rem}.login-card .primary{width:100%;justify-content:space-between;margin:8px 0 23px}.login-card>small{display:block;text-align:center}
.app-shell{display:flex;height:100dvh;overflow:hidden}.sidebar{width:248px;flex-shrink:0;background:var(--green);color:#d7e7dd;display:flex;flex-direction:column;padding:30px 19px 18px}.sidebar .brand{font-size:1.05rem;padding:0 3px 40px;gap:9px}.sidebar-label{color:#97b5a5;font-size:.65rem;letter-spacing:.12em;padding:0 12px;margin-bottom:12px}nav{display:grid;gap:6px}.project-button{border:0;text-align:left;display:flex;align-items:center;gap:12px;background:none;color:#bcd1c5;padding:13px;border-radius:9px;font-weight:550}.project-button .project-monogram{width:31px;height:31px;border:1px solid #ffffff2b;display:grid;place-items:center;border-radius:7px;font-size:.65rem}.project-button.active{background:#ffffff12;color:#fff}.project-button.active .project-monogram{background:var(--mint);border:0;color:var(--green)}.project-button .project-arrow{margin-left:auto;color:#adcbb9}.sidebar-spacer{flex:1}.side-button{background:none;border:0;border-radius:8px;padding:12px;text-align:left;color:#b8cec0;font-size:.84rem;display:flex;align-items:center;gap:12px}.side-button:hover{background:#ffffff0b}.side-button span{font-size:1.1rem}.user-row{display:flex;align-items:center;gap:10px;padding-top:21px;border-top:1px solid #ffffff17;margin-top:20px}.avatar{width:34px;height:34px;border-radius:50%;background:#dce9d8;color:#375044;display:grid;place-items:center;font-size:.78rem;font-weight:700}.user-copy{min-width:0;flex:1}.user-copy strong,.user-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-copy strong{font-size:.78rem}.user-copy span{font-size:.68rem;color:#91ad9d;margin-top:3px}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:25px 38px 21px;border-bottom:1px solid var(--line);background:#fafbf8;flex-shrink:0}.heading{display:flex;align-items:center;gap:10px}.topbar .eyebrow{font-size:.59rem;color:#7e8c80;margin-bottom:6px}.topbar h1{font-size:1.27rem;font-weight:650;letter-spacing:-.035em;margin:0}.connection{display:flex;gap:8px;align-items:center;font-size:.73rem;color:#728075}.dot{width:6px;height:6px;border-radius:50%;background:#a7afa9;flex-shrink:0}.connection.online .dot{background:#4b9a72;box-shadow:0 0 0 4px #4b9a7210}.connection.busy .dot{background:#ca9640}.chat-view{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.task-banner{display:flex;gap:12px;align-items:center;margin:22px 38px 0;padding:14px 18px;background:#edf2e9;border:1px solid #e1e8db;border-radius:10px;flex-shrink:0}.task-icon{display:grid;place-items:center;width:32px;height:32px;background:white;border-radius:8px;font-size:1.1rem;color:#5c806c}.task-banner strong{font-size:.78rem;font-weight:650}.task-banner p{font-size:.73rem;color:#7d8c7a;margin:2px 0 0}.live-label{margin-left:auto;border:1px solid #d3decf;color:#758970;border-radius:5px;padding:4px 7px;font-size:.52rem;letter-spacing:.07em;white-space:nowrap}.messages{overflow:auto;flex:1;min-height:0;scroll-behavior:auto;padding:26px max(38px,calc((100% - 920px)/2)) 20px;scrollbar-width:thin;scrollbar-color:#d1dcd1 transparent}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;padding:32px 0;text-align:center}.empty-symbol{background:#e9efe4;color:#6f8770;border:1px solid #dce5d8;border-radius:17px;width:58px;height:58px;display:grid;place-items:center;font-size:1.7rem;margin-bottom:22px}.empty-state h2{font-size:1.55rem;letter-spacing:-.04em;font-weight:560;margin-bottom:12px}.empty-state p{color:#819080;font-size:.86rem;max-width:350px;line-height:1.8}.suggestion-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}.suggestion{background:#fafbf8;border:1px solid #e0e7dc;border-radius:8px;padding:9px 12px;color:#6d7d6a;font-size:.73rem}.message{margin:0 0 28px;max-width:100%;animation:none}.message-head{display:flex;align-items:center;gap:9px;margin-bottom:9px;font-size:.7rem;color:#92998f}.message-head strong{font-size:.77rem;color:#476044}.message-head .sender-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#dfeadb;color:#527346;font-weight:700}.message.user .message-head .sender-icon{background:#eaece7;color:#808879}.message-body{font-size:.9rem;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.message.user .message-body{background:white;border:1px solid var(--line);border-radius:0 12px 12px 12px;padding:14px 18px}.message.assistant .message-body{padding-left:34px}.message-body pre{overflow:auto;white-space:pre;background:#1f342b;color:#e7ede5;border-radius:8px;padding:15px;font-size:.79rem}.message-status{display:flex;align-items:center;gap:12px;font-size:.64rem;color:#8d9a88;margin-top:8px}.message-status.bad{color:#a54b3e}.cancel-message{background:none;border:0;font-size:.65rem;text-decoration:underline;color:#72836c;padding:0}.message-attachments{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.message-attachments img{max-width:200px;max-height:180px;object-fit:contain;border-radius:8px;border:1px solid var(--line);cursor:zoom-in;background:white}.message-attachments audio{max-width:300px;height:40px}.message-attachments a{font-size:.7rem;color:#49754e}.composer-zone{padding:0 38px 18px;flex-shrink:0}.composer{background:white;border:1px solid #d7e0d3;border-radius:13px;padding:12px 15px 12px;box-shadow:0 4px 18px #21331f04}.composer.dragover{outline:3px solid #98b9a0;background:#f1f7ed}.composer textarea{display:block;border:0;resize:none;width:100%;background:transparent;padding:7px 2px 12px;font-size:.88rem;line-height:1.6;min-height:90px;max-height:210px}.composer textarea:focus{outline:none}.composer textarea::placeholder{color:#9aa296}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.attachment-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.tool-button{display:inline-flex;align-items:center;gap:5px;border:0;background:#f2f5ee;color:#667e61;font-size:.72rem;border-radius:7px;padding:8px 10px;white-space:nowrap}.tool-button span:first-child{font-size:1.05rem;line-height:1}.tool-button.recording{background:#fbece8;color:#ab4238}.send-button{min-height:36px;padding:8px 14px;font-size:.78rem;gap:17px}.send-button span{font-size:1.1rem}.composer-hint{display:flex;justify-content:space-between;gap:12px;font-size:.6rem;color:#96a08f;margin:10px 2px 0;line-height:1.5}.activity{font-size:.72rem;color:#8a824e;margin:12px 2px}.upload-status{color:#72836b;font-size:.7rem;max-width:210px}.attachment-tray{display:flex;gap:9px;flex-wrap:wrap}.draft-attachment{position:relative;border:1px solid #e1e8dc;border-radius:8px;padding:5px;display:flex;align-items:center;gap:7px;font-size:.7rem;max-width:190px;color:#6f8169}.draft-attachment img{width:45px;height:40px;object-fit:cover;border-radius:4px}.draft-attachment span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-attachment button{border:0;background:#eef1ea;border-radius:50%;width:21px;height:21px;color:#74836c}.new-messages{position:absolute;bottom:235px;left:50%;transform:translateX(-50%);border:1px solid #d7e0d0;background:white;color:#496c42;box-shadow:0 3px 10px #0001;border-radius:20px;padding:8px 14px;font-size:.73rem}.mobile-only{display:none}
.settings-view{overflow:auto;padding:38px;flex:1}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:30px}.settings-view .eyebrow{color:#8b9783}.settings-view h2{font-size:1.8rem;font-weight:550;letter-spacing:-.04em;line-height:1.2}.info-card{display:flex;align-items:center;gap:17px;background:#eaf1e4;border:1px solid #dae5d1;border-radius:12px;padding:20px;margin:0 0 25px}.info-card>span{font-size:1.5rem;color:#6b8960}.info-card>div{flex:1;min-width:0}.info-card strong{font-size:.86rem}.info-card p{color:#73856a;font-size:.76rem;overflow-wrap:anywhere;margin:5px 0 0}.info-card .secondary{font-size:.75rem;min-height:35px}.user-list{display:grid;gap:10px}.user-card{display:flex;align-items:center;gap:15px;padding:18px;background:white;border:1px solid var(--line);border-radius:11px}.user-card .avatar{width:40px;height:40px}.user-details{flex:1;min-width:0}.user-details strong{font-size:.9rem}.user-details p{color:#8a9582;font-size:.75rem;margin:4px 0 0}.user-card .secondary{min-height:32px;font-size:.71rem;padding:7px 10px}.disabled-tag{font-size:.64rem;color:#a26751;background:#f7eee8;border-radius:5px;padding:4px 8px}.admin-status{font-size:.78rem;line-height:1.8;color:#83917b;margin-top:25px}.settings-card{background:white;border:1px solid var(--line);border-radius:12px;padding:5px 25px 25px;max-width:450px}.settings-card small{display:block;margin:9px 0 23px}.settings-card .primary{font-size:.82rem}.settings-card p{font-size:.82rem;margin:15px 0 0}dialog{border:1px solid #dce4d5;border-radius:15px;padding:25px;width:min(460px,calc(100% - 32px));max-height:90dvh;box-shadow:0 20px 90px #12322222;color:inherit}dialog::backdrop{background:#10251d80}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-header h2{font-size:1.35rem;font-weight:600;letter-spacing:-.03em;margin:0}dialog small{display:block;margin-top:8px}fieldset{border:1px solid #e1e7db;border-radius:8px;margin-top:25px;padding:10px 14px}legend{font-size:.78rem;font-weight:650;color:#6b8161;padding:0 5px}fieldset label{margin:7px 0;display:flex;gap:10px;align-items:center;font-weight:500}dialog .primary{width:100%;margin-top:16px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);background:#243f2e;color:white;border:1px solid #42684f;border-radius:10px;padding:12px 18px;font-size:.8rem;box-shadow:0 8px 24px #0002;z-index:10}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.composer-zone,.task-banner{max-width:1060px;width:calc(100% - 76px);margin-left:auto;margin-right:auto}.composer-zone{padding-left:0;padding-right:0}}
@media(max-width:950px){.sidebar{width:215px;padding-left:14px;padding-right:14px}.sidebar .brand{font-size:.92rem}.topbar{padding:22px 25px}.task-banner{margin-left:25px;margin-right:25px}.messages{padding-left:25px;padding-right:25px}.composer-zone{padding-left:25px;padding-right:25px}.welcome{padding:35px}.welcome h1{font-size:3.6rem}.login-side{padding:30px}.settings-view{padding:27px}.section-heading{align-items:flex-start}.section-heading .primary{font-size:.75rem}.user-card{flex-wrap:wrap}}
@media(max-width:680px){.login-layout{grid-template-columns:1fr}.welcome{padding:25px;min-height:180px}.welcome .brand{font-size:1rem}.welcome .brand img{width:30px;height:30px}.welcome-copy{padding:25px 0 0}.welcome-copy .eyebrow,.welcome-copy>p:not(.eyebrow),.welcome-pills,.welcome-foot{display:none}.welcome h1{font-size:2.2rem;margin:0;line-height:1.1}.welcome h1 br{display:none}.login-side{padding:30px 25px 45px}.login-card .mini-logo{display:none}.login-card h2{font-size:1.6rem}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;z-index:5;transform:translateX(-100%);transition:transform .2s;box-shadow:5px 0 30px #0002}.sidebar.open{transform:translateX(0)}.mobile-only{display:block}.topbar{padding:15px 16px}.topbar .eyebrow{font-size:.5rem}.topbar h1{font-size:1.1rem}.connection{font-size:.64rem;max-width:125px}.task-banner{margin:14px 16px 0;padding:11px 12px;gap:8px}.task-banner p{font-size:.64rem;line-height:1.4}.task-banner strong{font-size:.71rem}.task-icon{width:28px;height:28px}.live-label{display:none}.messages{padding:22px 18px 15px}.empty-state h2{font-size:1.25rem}.empty-state p{font-size:.78rem}.empty-symbol{width:48px;height:48px;margin-bottom:15px}.empty-state{padding:20px 0}.suggestion{font-size:.66rem}.suggestion-row{gap:6px}.composer-zone{padding:0 12px max(10px,env(safe-area-inset-bottom))}.composer{padding:10px 12px}.composer textarea{min-height:70px;font-size:16px;max-height:130px}.composer-hint{font-size:.52rem;justify-content:center}.composer-hint span:last-child{display:none}.tool-button{padding:8px;font-size:.68rem}.send-button{font-size:.73rem;padding:8px 11px;gap:9px}.upload-status{font-size:.62rem;max-width:120px}.attachment-actions{gap:4px}.message-body{font-size:.86rem}.message.assistant .message-body{padding-left:0}.message.user .message-body{padding:11px 13px}.settings-view{padding:25px 18px}.section-heading{display:block}.settings-view h2{font-size:1.55rem}.section-heading .primary{margin-top:4px}.info-card{padding:15px;gap:10px}.user-card{gap:11px;padding:15px}.user-card .secondary{font-size:.67rem}.settings-card{padding:0 18px 20px}.connection-text{white-space:normal}dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Project conversations */
.chat-navigation{display:flex;flex-direction:column;flex:1;min-height:0;margin-top:20px}.sidebar-spacer{flex:0}.new-chat-button{width:100%;border:1px solid #47675a;background:#ffffff0d;color:#eef4e8;border-radius:8px;padding:11px 12px;text-align:left;font-size:.8rem;font-weight:600;cursor:pointer}.new-chat-button:hover{background:#ffffff16}.chat-navigation .sidebar-label{margin-top:24px;margin-bottom:10px}.chat-list{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:4px;padding-right:3px;padding-bottom:12px}.chat-button{display:flex;gap:9px;align-items:center;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;color:#afc4b5;padding:10px 9px;cursor:pointer;font-size:.73rem;line-height:1.4}.chat-button:hover{background:#ffffff0c}.chat-button.active{background:#ffffff14;color:#f1f6ed}.chat-button-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.chat-symbol{flex-shrink:0;opacity:.65}.task-banner>div{min-width:0;flex:1}.task-banner #task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.rename-chat{flex-shrink:0;color:#667e61;border-radius:6px}.rename-chat:hover{background:#e2ebdc}.task-banner .live-label{flex-shrink:0}#chat-dialog{width:min(430px,calc(100vw - 32px))}#chat-form .primary{width:100%;margin-top:18px}.message-body a{color:#38674e}.message-body>code{background:#eaf0e5;border-radius:3px;padding:1px 4px;font-size:.88em}
@media(max-width:680px){.chat-navigation{margin-top:15px}.chat-navigation .sidebar-label{margin-top:18px}.task-banner #task-name{max-width:230px}.chat-button{font-size:.78rem;padding:11px 9px}.task-banner .rename-chat{padding:5px}.task-banner{min-width:0}.task-banner>div{overflow:hidden}}

.notification-card{max-width:580px;padding:24px;margin-bottom:38px}.notification-heading{display:flex;gap:20px;align-items:flex-start}.notification-heading h3{margin:0;font-size:1rem;font-weight:600}.notification-heading p{line-height:1.6;margin-top:8px;color:#687c68}.notification-symbol{font-size:2rem;color:#5d8269}.notification-control{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;margin-top:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.9rem;font-weight:650}.notification-switch{display:flex;align-items:center;flex:none;width:50px;min-height:30px;height:30px;padding:3px;border:1px solid #a0aa9b;border-radius:30px;background:#d7ddd2;cursor:pointer}.notification-switch>span{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #1234;transition:transform .15s}.notification-switch[aria-checked=true]{background:#245e4b;border-color:#245e4b}.notification-switch[aria-checked=true]>span{transform:translateX(19px)}.notification-switch:disabled{opacity:.55;cursor:default}.notification-switch:focus-visible{outline:3px solid #86b99e;outline-offset:3px}#notification-status{line-height:1.6;min-height:2.6em;color:#48624d}#notification-status[data-error=true]{color:#a14d3c}.notification-actions{margin:18px 0}.notification-actions .secondary{font-size:.78rem}.notification-card .notification-note{color:#788670;font-size:.74rem;line-height:1.65}.notification-help{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:.78rem}.notification-help summary{cursor:pointer;font-weight:600}.notification-help p{line-height:1.6;color:#687c68}.notification-heading>div{flex:1}@media(max-width:680px){.notification-card{padding:20px}.notification-symbol{display:none}.notification-actions .secondary{width:100%}}

.inspection-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff1cc;border-bottom:1px solid #ead89f;padding:16px 38px;flex-shrink:0}.inspection-banner strong{font-size:.9rem;color:#66501c}.inspection-banner p{font-size:.76rem;line-height:1.5;color:#7c693a;margin:5px 0 0}.inspection-banner .secondary{white-space:nowrap;background:#fffaf0;border-color:#dfca8e;font-size:.78rem}.access-help{max-width:760px;color:#63735f;font-size:.85rem;line-height:1.7;margin:0 0 24px}.view-user{border-color:#709d82;color:#215c43}.chat-button-title{overflow-wrap:anywhere}@media(max-width:680px){.inspection-banner{padding:14px 18px;align-items:flex-start;flex-direction:column;gap:10px}.inspection-banner .secondary{min-height:38px}.user-card .view-user{margin-left:auto}}

/* Project import and navigation for multiple projects. */
#projects{flex-shrink:0;max-height:32dvh;overflow-y:auto;overflow-x:hidden;grid-template-columns:minmax(0,1fr);min-height:0;scrollbar-width:thin}.project-button{min-width:0}.project-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-monogram,.project-arrow{flex-shrink:0}.sidebar .brand{flex-shrink:0}.side-button,.user-row{flex-shrink:0}
.project-management{border:1px solid var(--line);border-radius:12px;background:#fff;padding:22px;margin-bottom:25px}.project-management-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.project-management h3{font-size:1rem;margin:0}.project-management-heading p{font-size:.76rem;color:#73856a;margin:6px 0 0}.project-management .secondary{font-size:.76rem;white-space:nowrap}.admin-project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-project{padding:12px;background:#f6f8f2;border-radius:8px;min-width:0}.admin-project strong{display:block;font-size:.82rem}.admin-project span{display:block;font-size:.69rem;color:#71816c;margin-top:6px;overflow-wrap:anywhere}.catalog-note{font-size:.78rem;color:#687c68;line-height:1.65}.project-management>.catalog-note{margin-bottom:0}
#project-dialog{width:min(700px,calc(100% - 32px))}.project-catalog-actions{display:flex;gap:10px;justify-content:space-between;margin:20px 0 12px}.project-catalog-actions .secondary{font-size:.75rem;padding:8px 12px}.project-choices{display:grid;gap:8px;max-height:43dvh;overflow-y:auto}.project-choice{display:flex;align-items:center;gap:12px;margin:0;padding:13px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.project-choice input{width:17px;height:17px;flex:none;margin:0;accent-color:#245e4b}.project-choice-details{flex:1;min-width:0}.project-choice strong{display:block;font-size:.84rem}.project-choice small{margin:5px 0 0;overflow-wrap:anywhere;font-size:.69rem;font-weight:400}.project-badge{font-size:.64rem;font-weight:500;color:#64775c;background:#edf2e8;padding:4px 7px;border-radius:5px;white-space:nowrap}#import-projects{width:100%;margin-top:8px}
@media(max-width:680px){.project-management{padding:16px}.project-management-heading{align-items:flex-start;flex-direction:column;gap:14px}.admin-project-list{grid-template-columns:1fr}.project-choice{gap:10px;padding:11px;flex-wrap:wrap}.project-badge{margin-left:27px}.project-choice-details{min-width:calc(100% - 36px)}.project-catalog-actions .secondary{font-size:.69rem;padding:8px}#projects{max-height:29dvh}.sidebar .brand{padding-bottom:24px}}

.message-files{display:grid;gap:9px;margin-top:16px;max-width:610px}.message-body .download-file{display:flex;align-items:center;gap:12px;border:1px solid #d7e2d2;background:#f5f8f1;border-radius:10px;padding:13px 15px;text-decoration:none;color:#234a3c;min-width:0;white-space:normal}.download-file:hover{background:#edf4e5;border-color:#95b398}.download-file:focus-visible{outline:3px solid #86b99e;outline-offset:2px}.download-icon{font-size:1.5rem;flex:none}.download-details{flex:1;min-width:0}.download-details strong{display:block;font-size:.85rem;overflow-wrap:anywhere}.download-details small{display:block;font-size:.72rem;color:#6c8068;margin-top:4px}.download-action{font-size:.75rem;font-weight:600;flex:none}@media(max-width:680px){.message-body .download-file{padding:12px;gap:10px;flex-wrap:wrap}.download-details strong{font-size:.8rem}.download-action{font-size:.7rem}}

/* Questions Codex : formulaire indépendant du flux de messages. */
.questions-zone{margin:0 max(38px,calc((100% - 920px)/2)) 10px;padding:14px 16px;background:#f0f6f0;border:1px solid #c8ddce;border-radius:12px;flex:0 1 auto;min-height:0;max-height:43dvh;overflow:auto;scrollbar-width:thin}.questions-heading{display:flex;align-items:center;gap:10px;font-size:.87rem;margin-bottom:12px}.questions-count{background:var(--green);color:white;border-radius:20px;min-width:23px;padding:3px 7px;text-align:center;font-size:.7rem}.question-card+.question-card{border-top:1px solid #ccdfd0;padding-top:14px;margin-top:16px}.question-title{font-size:.88rem;font-weight:600;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:10px}.question-title a{color:var(--green)}.question-options{display:grid;gap:7px}.question-choice{display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;min-height:42px;border:1px solid #d1ded3;border-radius:8px;background:white;cursor:pointer;font-size:.83rem;font-weight:500;overflow-wrap:anywhere}.question-choice:has(input:checked){border-color:#46876a;background:#e2f2e8}.question-choice input{width:16px;height:16px;margin:0;padding:0;flex-shrink:0;accent-color:var(--green)}.question-card form>label{margin:12px 0 6px;font-size:.78rem;font-weight:500}.question-card textarea{display:block;resize:vertical;width:100%;max-height:180px;min-height:64px;border:1px solid #d1ded3;border-radius:8px;padding:10px;font-size:.85rem;background:white}.question-actions{display:flex;justify-content:flex-end;margin-top:9px}.question-actions button{font-size:.79rem;min-height:40px;padding:9px 15px}.question-error:empty{display:none}.question-note{font-size:.79rem;color:#62766a;margin:8px 0;line-height:1.5}.question-answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.88rem;margin-bottom:5px}.question-history summary{cursor:pointer;font-size:.78rem;color:#526e5c;padding:2px 0}.question-history[open] summary{margin-bottom:14px}.question-history{margin-top:10px}.question-history:first-child{margin-top:0}.question-history .question-card{background:#ffffff9c;border-radius:8px;padding:12px}.question-readonly-options{font-size:.83rem;line-height:1.6;padding-left:20px}
@media(max-width:700px){.questions-zone{margin:0 16px 8px;padding:12px;max-height:43dvh}.questions-heading{font-size:.81rem}.question-actions button{width:100%}}

/* Thème local à l'appareil, appliqué avant l'affichage de la page. */
:root{color-scheme:light}
.theme-toggle{width:100%;gap:10px;flex-shrink:0}
.theme-toggle .theme-label{font-size:.84rem;flex:1}
.theme-toggle .theme-track{display:block;flex:none;width:36px;height:22px;padding:3px;background:#506d60;border:1px solid #7a9585;border-radius:20px}
.theme-track::after{content:"";display:block;width:14px;height:14px;border-radius:50%;background:#edf5ef;transition:transform .15s}
.theme-toggle[aria-checked=true] .theme-track{background:#97d4bc;border-color:#97d4bc}
.theme-toggle[aria-checked=true] .theme-track::after{transform:translateX(14px);background:#16372b}
:root[data-theme=dark]{color-scheme:dark;color:#e7e7e7;background:#191919;--green:#c5c5c5;--mint:#c5c5c5;--muted:#b3b3b3;--line:#434343;--paper:#252525;--surface-soft:#323232}
[data-theme=dark] :is(.sidebar,.welcome){background:#1e1e1e}
[data-theme=dark] :is(.topbar,.login-side){background:#202020}
[data-theme=dark] :is(input,dialog,.composer,.user-card,.settings-card,.project-management,.secondary,.question-choice,.question-card textarea,.question-history .question-card,.message.user .message-body){background:var(--paper);border-color:var(--line);color:inherit}
[data-theme=dark] :is(.task-banner,.info-card,.questions-zone){background:#2b2b2b;border-color:#505050}
[data-theme=dark] :is(.mini-logo,.empty-symbol,.task-icon,.tool-button,.password-toggle,.admin-project,.project-badge,.message-body>code,.draft-attachment button){background:var(--surface-soft);color:#d2d2d2;border-color:var(--line)}
[data-theme=dark] .primary{background:var(--green);color:#252525}
[data-theme=dark] .primary:hover{background:#dbdbdb}
[data-theme=dark] .secondary{color:#d8d8d8}
[data-theme=dark] .secondary:hover{background:#3c3c3c}
[data-theme=dark] .project-button.active .project-monogram{color:#252525}
[data-theme=dark] :is(.avatar,.questions-count){background:#c5c5c5;color:#252525}
[data-theme=dark] :is(.topbar .eyebrow,.connection,.task-banner p,.empty-state p,.message-head,.message-status,.cancel-message,.composer-hint,.upload-status,.settings-view .eyebrow,.info-card p,.user-details p,.admin-status,.notification-heading p,.notification-card .notification-note,.notification-help p,.access-help,.project-management-heading p,.admin-project span,.catalog-note,.download-details small,.question-note,.question-history summary){color:var(--muted)}
[data-theme=dark] :is(.message-head strong,.info-card>span,.notification-symbol,.rename-chat,legend,#notification-status){color:#d0d0d0}
[data-theme=dark] :is(.suggestion,.new-messages){background:var(--paper);color:#d7d7d7;border-color:var(--line)}
[data-theme=dark] :is(.live-label,fieldset,.draft-attachment,.question-card+.question-card){border-color:var(--line)}
[data-theme=dark] :is(.live-label,.draft-attachment){color:#bebebe}
[data-theme=dark] .message-head .sender-icon{background:#414141;color:#dbdbdb}
[data-theme=dark] .message.user .message-head .sender-icon{background:#343434;color:#c9c9c9}
[data-theme=dark] .message-body pre{background:#141414;color:#eaeaea;border:1px solid var(--line)}
[data-theme=dark] :is(.message-body a,.message-attachments a,.question-title a){color:#d0d0d0}
[data-theme=dark] .message-attachments img{background:var(--paper)}
[data-theme=dark] .composer.dragover{background:#3c3c3c}
[data-theme=dark] .composer textarea{background:transparent;color:inherit}
[data-theme=dark] :is(input,textarea)::placeholder{color:#a5a5a5;opacity:1}
[data-theme=dark] input:disabled{background:#2e2e2e;color:#b3b3b3}
[data-theme=dark] :is(input,textarea):focus{outline-color:#c5c5c5}
[data-theme=dark] :is(.tool-button.recording,.disabled-tag){background:#432c27;color:#ffc3ad}
[data-theme=dark] :is(.error,.message-status.bad,#notification-status[data-error=true]){color:#ffb4a8}
[data-theme=dark] .activity{color:#d9c888}
[data-theme=dark] :is(.rename-chat:hover,.message-body .download-file:hover){background:#414141;border-color:#7c7c7c}
[data-theme=dark] .message-body .download-file{background:#2e2e2e;border-color:#4f4f4f;color:#e2e2e2}
[data-theme=dark] .question-choice:has(input:checked){background:#3f3f3f;border-color:#afafaf}
[data-theme=dark] .notification-switch{background:#434343;border-color:#808080}
[data-theme=dark] .notification-switch[aria-checked=true]{background:#7a7a7a;border-color:#a8a8a8}
[data-theme=dark] .project-choice input{accent-color:#c5c5c5}
[data-theme=dark] .inspection-banner{background:#362f1b;border-color:#695934}
[data-theme=dark] .inspection-banner strong{color:#efdb9f}
[data-theme=dark] .inspection-banner p{color:#d5c599}
[data-theme=dark] .inspection-banner .secondary{background:#443a20;border-color:#766134;color:#f1e3b8}
[data-theme=dark] dialog::backdrop{background:#080808aa}
[data-theme=dark] .toast{background:#3e3e3e;color:#eeeeee;border-color:#797979}
[data-theme=dark] :is(.messages,#projects,.chat-list,.questions-zone,.project-choices){scrollbar-color:#5c5c5c transparent}
@media(prefers-reduced-motion:reduce){.theme-track::after{transition:none}}
.sidebar{overflow-y:auto;scrollbar-width:thin}
.sidebar .brand{padding-bottom:24px}
#projects{max-height:26dvh;flex-shrink:1}
.chat-navigation{min-height:155px}

.project-permission{padding:12px 0;border-bottom:1px solid var(--line)}
.project-permission:last-child{border-bottom:0}
#member-projects .shared-permission{margin:10px 0 0 24px;font-weight:400;align-items:flex-start}
.shared-permission small{display:block;margin-top:4px}
.shared-permission:has(input:disabled:not(:checked)){opacity:.55}
.shared-chat-notice{flex:none;margin:0;padding:15px 24px;border-top:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:13px;line-height:1.5}
@media(max-width:680px){.shared-chat-notice{padding:12px 16px}}

/* Project tree: one scroll area, chats stay under their own project. */
#projects{flex:1;min-height:100px;max-height:none;display:block;overflow-y:auto;overflow-x:hidden}.sidebar{overflow:hidden;width:280px}.sidebar .brand{padding-bottom:24px}.sidebar>.sidebar-spacer{flex:0}.project-group{margin-bottom:8px}.project-group>summary{display:flex;align-items:center;gap:10px;padding:12px 9px;cursor:pointer;border-radius:8px;font-size:.88rem;list-style:none}.project-group>summary::-webkit-details-marker{display:none}.project-group>summary::before{content:'▸';font-size:.8rem;color:#c0c0c0}.project-group[open]>summary::before{content:'▾'}.project-group.active>summary{background:#ffffff14;color:white}.project-group .project-monogram{font-size:.66rem;border:1px solid #ffffff24;border-radius:6px;padding:5px}.project-children,.project-group .chat-navigation{margin:3px 0 10px 20px;padding-left:8px;border-left:1px solid #ffffff28}.project-group .chat-list{max-height:none;overflow:visible}.project-group .sidebar-label{font-size:.56rem;padding-left:7px;margin-top:10px}.project-group .chat-button{width:100%;min-width:0}.project-open-button{background:none;border:0;color:#dddddd;font:inherit;font-size:.72rem;padding:9px;text-align:left}.project-group .new-chat-button{width:100%;text-align:left;font-size:.72rem;white-space:normal;margin-bottom:6px}.execution-access-status{margin:8px 38px 0;color:var(--muted);font-size:.73rem;line-height:1.45;flex:none}.execution-choice{display:flex;gap:9px;align-items:flex-start;font-weight:500}.execution-choice input{flex:none;margin-top:2px}#chat-project{color:var(--green)}[data-theme=dark] #chat-project{color:var(--mint)}.chat-button[aria-current=true]{box-shadow:inset 3px 0 #dddddd}.project-group .chat-button-title{min-width:0}@media(max-width:680px){.sidebar{width:280px}.execution-access-status{margin:8px 18px 0}}

.model-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.model-controls label{display:flex;gap:7px;align-items:center;margin:0;font-size:.73rem;font-weight:500}.model-controls select{max-width:240px;min-width:100px;border:1px solid var(--line);border-radius:7px;padding:7px;background:var(--paper);color:inherit;font:inherit}.model-controls small{flex-basis:100%;font-size:.68rem}.model-controls select:disabled{opacity:.6}@media(max-width:680px){.model-controls{gap:6px}.model-controls label{flex:1;min-width:0;flex-direction:column;align-items:stretch}.model-controls select{width:100%;max-width:100%;min-width:0}}

/* Compact conversation layout, including mobile. */
.sidebar .brand{padding-bottom:18px}.project-picker-button{display:flex;align-items:center;gap:8px;flex:none;min-height:44px;border:1px solid #ffffff30;border-radius:9px;background:#ffffff0d;color:inherit;padding:10px;text-align:left;font:inherit;font-size:.82rem}.project-picker-button #sidebar-project-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.sidebar .chat-navigation{flex:1;min-height:0;display:flex;flex-direction:column;margin-top:14px}.sidebar .chat-list{flex:1;min-height:0;max-height:none;overflow-y:auto}.sidebar .new-chat-button{flex:none;margin:0 0 12px;font-size:.73rem}.sidebar-chat-heading{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:0 7px;flex:none}.sidebar-chat-heading>div{flex:1;min-width:0}.sidebar-chat-heading strong{color:#dddddd!important;font-size:.7rem}.sidebar-chat-heading span{display:block;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c0c0c0;margin-top:4px}.sidebar-chat-heading .icon-button{width:30px;height:30px;font-size:1rem}.topbar{gap:10px}.topbar .connection{margin-left:auto}.questions-button{flex:none;min-height:40px;border:1px solid #b17b2f;border-radius:9px;background:#fff0ce;color:#633b06;padding:8px 12px;font:inherit;font-size:.77rem;font-weight:650}.questions-button.awaiting-answer{animation:question-pulse 1.8s ease-in-out infinite}.questions-button:focus-visible{outline:3px solid #b17b2f;outline-offset:3px}@keyframes question-pulse{0%,100%{opacity:1}50%{opacity:.55}}.compact-dialog{width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:auto}.compact-dialog h2{font-size:1.15rem}.compact-dialog #projects{min-height:0;max-height:62dvh;display:grid;gap:6px}.compact-dialog .project-button{width:100%;color:var(--green);background:var(--paper);border:1px solid var(--line)}.compact-dialog .project-button.active{background:#e8e8e8;color:#353535;border-color:#858585}.compact-dialog .project-monogram{color:inherit;border-color:var(--line)}[data-theme=dark] .compact-dialog .project-button{color:var(--mint)}[data-theme=dark] .compact-dialog .project-button.active{background:#444444;color:#f2f2f2}.compact-dialog .model-controls{display:grid;gap:16px}.compact-dialog .model-controls label{display:grid;gap:7px;font-size:.85rem}.compact-dialog .model-controls select{width:100%;max-width:none;min-height:44px}.compact-dialog .execution-access-status{margin:18px 0 0}.compact-dialog .questions-zone{margin:0;padding:0;border:0;background:none;max-height:none;overflow:visible}.compact-dialog #native-attention{font-size:.85rem;line-height:1.6}.model-controls small{line-height:1.5}
@media(max-width:680px){.topbar{padding:7px 12px;min-height:52px}.workspace-heading{display:none}.topbar .heading{flex:none}.topbar .connection{font-size:.65rem;gap:6px;min-width:0}.topbar .connection-text{white-space:normal}.questions-button{font-size:.68rem;padding:7px 8px;min-height:36px}.messages{padding:14px 16px}.composer-zone{padding:8px 10px max(8px,env(safe-area-inset-bottom))}.composer textarea{min-height:62px;padding:10px 12px}.composer-actions{gap:4px;padding:5px 6px}.attachment-actions{gap:1px;flex-wrap:wrap;min-width:0}.tool-button{padding:7px 5px;min-height:36px;font-size:.67rem}.send-button{font-size:.7rem;padding:8px;min-height:36px}.composer-hint{display:none}.compact-dialog{padding:18px}.sidebar{padding-top:18px}.sidebar .brand{padding-bottom:14px}.shared-chat-notice{font-size:.72rem;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.questions-button.awaiting-answer{animation:none;outline:2px solid #b17b2f}}

/* Anthracite surfaces and a shorter composer. */
:root[data-theme=dark]{color:#ececee;background:#202124;--green:#d5d6da;--mint:#e0e1e5;--muted:#a6a8af;--line:#3d3f45;--paper:#292a2e;--surface-soft:#34363b}
[data-theme=dark] :is(.sidebar,.welcome){background:#191a1d;color:#d9dadf}[data-theme=dark] :is(.topbar,.login-side){background:#242529}[data-theme=dark] .sidebar :is(.side-button,.sidebar-label,.user-copy span,.chat-button,.new-chat-button){color:#c2c4cb}[data-theme=dark] .sidebar-chat-heading strong{color:#e0e1e5!important}[data-theme=dark] .sidebar-chat-heading span{color:#b6b8bf}[data-theme=dark] .chat-button[aria-current=true]{box-shadow:inset 3px 0 #c5c7cf}[data-theme=dark] .theme-track{background:#45474e}[data-theme=dark] .theme-track::after{background:#dddfe5}
.composer textarea{height:62px;min-height:62px;max-height:30dvh;padding:10px 12px}.composer-zone{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}@media(max-width:680px){.composer textarea{height:48px;min-height:48px}.composer-actions{padding-top:3px;padding-bottom:3px}}
@media(max-width:680px){.composer{padding:2px 4px}}

.mockups-view{flex:1;min-height:0;display:flex;flex-direction:column;padding:12px;gap:10px}.mockups-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mockups-toolbar strong{flex:1}.mockups-layout{display:flex;gap:12px;flex:1;min-height:0}#mockups-list{width:210px;overflow:auto;display:flex;flex-direction:column;gap:8px}.mockup-choice{background:var(--paper);color:inherit;border:1px solid var(--line);border-radius:8px;padding:10px;text-align:left;overflow-wrap:anywhere}.mockup-choice small{display:block}.mockup-choice[aria-current=true]{border-color:var(--green)}.mockups-slot{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}#mockups-frame{width:100%;flex:1;min-height:200px;border:1px solid var(--line);border-radius:8px;background:white}#mockups-download{align-self:flex-end}#mockups-status:empty{display:none}@media(max-width:680px){.mockups-layout{flex-direction:column}#mockups-list{width:100%;max-height:115px;flex-direction:row}.mockup-choice{min-width:150px}.mockups-toolbar .secondary{padding:6px 8px;min-height:36px;font-size:.75rem}}
