:root{--canvas:#f8f9f7;--paper:#fff;--sidebar:#f0f3ef;--ink:#223a34;--text:#314640;--muted:#78847d;--line:#dde4dc;--accent:#286451;--soft:#e8f0e9;--radius:16px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);font-size:14px;background:var(--canvas)}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--accent)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}button:focus-visible,a:focus-visible{outline:3px solid #8eb6a4;outline-offset:3px}input:focus,textarea:focus{outline:none;border-color:#719e87;box-shadow:0 0 0 3px #28645112}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;letter-spacing:-.6px;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--accent);color:#fff;border-radius:10px}.brand-mark svg{width:21px;height:21px}.eyebrow{display:block;font-size:10px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}.muted{color:var(--muted);line-height:1.75}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--text);padding:10px 16px;font-weight:550;transition:background .15s,transform .15s}.button:hover{background:#f4f7f2}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:#20513f}.full{width:100%}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6b947b;flex-shrink:0}.login-view{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:40px 24px;background:radial-gradient(ellipse at 70% 15%,#e6eee330,transparent 60%),var(--canvas)}.login-card{width:440px;padding:40px 44px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 55px #213d2c05}.login-card .brand{margin-bottom:46px}.login-card h1{font-size:38px;line-height:1.18;font-weight:550;letter-spacing:-1.8px;margin:13px 0 14px}.login-card .muted{margin-bottom:28px}.login-card label{display:block;font-size:12px;font-weight:600;margin:17px 0 8px}.login-card input{width:100%;height:44px;border:1px solid var(--line);background:#fcfdfb;border-radius:8px;padding:0 12px;color:var(--text)}.login-card .primary{margin-top:24px;justify-content:space-between}.demo-note{font-size:11px;color:var(--muted);line-height:1.85;margin:25px 0 0}.demo-note .dot{margin-right:4px}.login-footer{position:fixed;bottom:22px;font-size:11px;color:#8b978f}.workspace{display:flex;height:100dvh;overflow:hidden}.sidebar{width:252px;background:var(--sidebar);border-right:1px solid var(--line);padding:28px 18px 18px;display:flex;flex-direction:column;flex-shrink:0}.sidebar .brand{padding:0 10px;margin-bottom:34px}.new-conversation{width:100%;justify-content:flex-start;background:#ffffffa6;min-height:44px}.new-conversation svg{width:17px}.sidebar-label{font-size:9px;font-weight:650;letter-spacing:1.3px;color:#849187;margin:30px 11px 13px}.history-empty{font-size:11px;line-height:1.9;color:#96a096;padding:0 12px}.conversation-item{display:block;text-align:left;position:relative;border:0;background:none;width:100%;border-radius:8px;padding:12px;color:#738178;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}.conversation-item:hover{background:#e7ede5}.conversation-item.active{background:#e0e9df;color:var(--ink);font-weight:600}.sidebar-bottom{margin-top:auto}.workspace-context{border-top:1px solid var(--line);padding:20px 10px;display:flex;align-items:center;gap:8px;font-size:11px;color:#65756a}.profile{display:flex;align-items:center;gap:9px;padding:10px 6px 0}.avatar{width:31px;height:31px;display:grid;place-items:center;background:#dde6db;border:1px solid #d4ded2;border-radius:50%;font-size:11px;font-weight:600}.profile strong{font-size:11px;font-weight:600}.profile small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.profile .icon-button{margin-left:auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;border-radius:8px;min-width:34px;min-height:34px;color:#73857a}.icon-button:hover{background:var(--soft);color:var(--accent)}.main-panel{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--canvas)}.workspace-header{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);flex-shrink:0;background:#ffffff70}.workspace-header h1{font-size:14px;letter-spacing:-.15px;font-weight:600;margin:0 0 6px}.workspace-header p{font-size:10px;color:var(--muted);margin:0}.preview-badge{display:flex;align-items:center;gap:7px;padding:7px 10px;background:#edf2e9;border:1px solid #e0e7d9;border-radius:6px;font-size:10px;color:#708064;white-space:nowrap}.conversation-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth}.welcome{max-width:840px;margin:0 auto;padding:88px 42px 32px;text-align:center}.welcome-mark{display:grid;place-items:center;margin:0 auto 25px;width:56px;height:56px;background:var(--soft);color:var(--accent);border-radius:17px;border:1px solid #dce7dc}.welcome-mark svg{height:29px;width:29px}.welcome h2{font-size:32px;letter-spacing:-1.1px;font-weight:550;color:var(--ink);margin:14px 0}.welcome>p{font-size:13px;line-height:1.85;color:var(--muted)}.example-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:33px auto 24px;text-align:left}.example-card{border:1px solid var(--line);padding:24px 22px 19px;border-radius:12px;background:var(--paper);text-align:left;transition:border-color .15s,box-shadow .15s;color:var(--text)}.example-card:hover{border-color:#99b49d;box-shadow:0 5px 18px #213d2c05}.example-card>svg{color:#5f856a;display:block;margin-bottom:19px}.example-card strong{display:block;font-size:13px;font-weight:600;margin-bottom:9px}.example-card>span{display:block;color:var(--muted);font-size:11px;line-height:1.7}.example-card small{display:block;font-size:10px;color:#6d8b74;margin-top:22px}.example-card small span{float:right}.welcome .welcome-footnote{font-size:10px;color:#99a196}.messages{max-width:810px;margin:auto;padding:32px 32px 22px}.message{margin-bottom:30px;animation:appear .22s ease}.message.user{display:flex;justify-content:flex-end}.user-bubble{max-width:85%;padding:13px 18px;background:#e9efe7;color:var(--ink);border-radius:14px 14px 3px 14px;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.message-label{display:flex;gap:8px;align-items:center;font-size:10px;font-weight:600;color:#748778;margin-bottom:11px}.message-label svg{width:15px;height:15px}.assistant-body{font-size:13px;line-height:1.85;color:var(--text)}.assistant-body p{margin:0 0 12px;white-space:pre-wrap}.card{padding:21px 23px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-top:16px}.card h3{font-size:13px;font-weight:600;letter-spacing:-.1px;margin:0 0 5px;color:var(--ink)}.card .card-subtitle{font-size:11px;color:var(--muted);margin:0 0 15px}.order-list{list-style:none;padding:0;margin:16px 0}.order-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #edf0eb}.order-number{display:grid;place-items:center;width:25px;height:25px;background:var(--canvas);border-radius:6px;font-size:10px;color:var(--muted)}.order-name{flex:1;font-size:12px}.order-count{color:var(--muted);font-size:10px;margin-left:4px}.move-button{min-height:30px;min-width:30px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted)}.move-button:disabled{opacity:.3;cursor:default}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.card .button{font-size:11px;min-height:36px;padding:8px 12px}.review-details{display:grid;grid-template-columns:90px 1fr;row-gap:10px;font-size:11px;margin:15px 0 0}.review-details dt{color:var(--muted)}.review-details dd{margin:0;overflow-wrap:anywhere;color:var(--ink)}.status-heading{display:flex;align-items:center;gap:10px}.success-icon{display:grid;place-items:center;width:29px;height:29px;background:var(--soft);border-radius:50%;color:var(--accent)}.success-icon svg{width:17px}.status-heading h3{margin:0}.status-heading small{font-size:10px;color:var(--muted)}.artifact-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);padding:13px 0;border-top:1px solid #edf0eb;margin-top:8px}.artifact-link>svg:first-child{color:#789082}.artifact-link>svg:last-child{margin-left:auto;width:17px;color:var(--accent)}.artifact-link strong{font-size:11px;font-weight:600;display:block}.artifact-link small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.artifact-link:hover strong{color:var(--accent);text-decoration:underline}.processing-step{display:flex;gap:10px;align-items:center;color:#789082;font-size:11px;padding:6px 0}.processing-step.active{color:var(--ink)}.processing-step svg{height:15px;width:15px}.spinner{width:13px;height:13px;border:2px solid #d9e5da;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}.composer-area{padding:0 32px 17px;flex-shrink:0}.composer{max-width:746px;margin:auto;background:var(--paper);border:1px solid #d5dfd3;border-radius:14px;box-shadow:0 5px 20px #213d2c04;padding:12px 14px 8px}.composer:focus-within{border-color:#96b4a0;box-shadow:0 0 0 3px #28645107}.composer textarea{width:100%;resize:none;max-height:150px;min-height:51px;border:0;background:none;padding:4px 3px;font-size:12px;line-height:1.7;color:var(--text);box-shadow:none}.composer textarea::placeholder{color:#97a294}.composer-actions{display:flex;justify-content:space-between;align-items:center}.attachment-control{display:flex;align-items:center;gap:6px}.attachment-control span{color:#98a18f;font-size:9px}.send-button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:var(--accent);color:white}.send-button:hover{background:#20513f}.send-button:disabled{cursor:default;background:#cad7c8;opacity:1}.composer-note{max-width:746px;margin:9px auto 0;color:#9ca59a;font-size:9px;text-align:center}.attached-file{display:flex;align-items:center;gap:9px;background:#f0f4ed;border:1px solid #e2e8dc;border-radius:8px;font-size:10px;width:fit-content;max-width:100%;padding:7px 9px;margin:0 0 7px}.attached-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attached-file svg{height:16px;width:16px;color:#71896a}.attached-file .icon-button{min-height:21px;min-width:21px;margin-left:7px;font-size:15px}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--ink);color:white;border-radius:9px;box-shadow:0 4px 15px #0002;padding:12px 18px;font-size:12px;z-index:20;max-width:calc(100% - 32px);line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mobile-menu{display:none}.sidebar-overlay{position:fixed;inset:0;background:#162a2255;border:0;z-index:9}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}@media(min-height:850px){.welcome{padding-top:120px}}@media(max-width:1020px){.sidebar{width:220px}.workspace-header{padding:0 24px}.welcome{padding:65px 25px 20px}.welcome h2{font-size:28px}.composer-area{padding-inline:24px}}@media(max-width:720px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:10;width:252px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex;margin-right:10px}.workspace-header{height:72px;padding:0 16px;justify-content:flex-start}.workspace-header>div{flex:1}.workspace-header h1{font-size:12px}.preview-badge{font-size:8px;padding:6px}.welcome{padding:42px 22px 20px}.welcome h2{font-size:25px}.welcome>p{font-size:12px}.example-grid{grid-template-columns:1fr;gap:10px;margin-top:25px}.example-card{padding:17px 18px}.example-card>svg{float:left;margin:2px 14px 0 0}.example-card small{margin-top:14px}.welcome-mark{width:47px;height:47px;margin-bottom:21px}.messages{padding:24px 20px 12px}.composer-area{padding:0 14px 12px}.composer-note{font-size:8px}.card{padding:17px}.user-bubble{max-width:92%}.login-card{padding:32px 28px}.login-card h1{font-size:34px}.login-footer{position:static;margin-top:20px}.login-view{flex-direction:column}.review-details{grid-template-columns:75px 1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep the conversation history scrollable without displacing the account controls. */
.sidebar > .brand,.sidebar > .new-conversation,.sidebar-label,.history-empty,.sidebar-bottom{flex-shrink:0}
#conversation-list{min-height:0;overflow-y:auto;flex:1}
.sidebar-bottom{margin-top:16px}
@media(max-height:480px){.sidebar{overflow-y:auto}#conversation-list{flex:none;overflow:visible}.sidebar .brand{margin-bottom:16px}.sidebar-label{margin-top:18px}}

/* Production state and safe plain-text content. */
.form-error { color: #a33c32; font-size: 13px; line-height: 1.5; }
.message p, .user-bubble span { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile strong, .profile small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-name, .review-details dd, .artifact-link small { overflow-wrap: anywhere; min-width: 0; }
