:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",sans-serif;color:#232b2a;background:#fff;font-size:14px;line-height:1.6;font-synthesis:none;--green:#17695c;--green-hover:#0f564b;--muted:#6d7774;--line:#e4e9e6;--soft:#f4f7f5;--red:#b43b41;letter-spacing:0}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button,input,textarea,select{border-radius:6px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #278b7a;outline-offset:3px}input,textarea{width:100%;background:#fff;border:1px solid #cad4cf;padding:11px 12px}textarea{resize:vertical;line-height:1.7}textarea:focus{outline:2px solid #278b7a;outline-offset:-2px}a{color:var(--green)}h1,h2,p{margin:0}h1{font-size:20px;line-height:1.4;font-weight:600}h2{font-size:17px;font-weight:600}svg{width:18px;height:18px;flex-shrink:0;stroke-width:1.7}[hidden]{display:none!important}.primary{background:var(--green);color:#fff;min-height:42px;padding:9px 16px;font-weight:500}.primary:hover:not(:disabled){background:var(--green-hover)}.secondary-button{min-height:40px;border:1px solid #ccd6d1;padding:8px 15px;background:#fff}.secondary-button:hover{background:var(--soft)}.text-button{color:var(--green);padding:8px}.icon{width:36px;height:36px;flex-shrink:0;border-radius:6px;color:#65736d}.icon:hover:not(:disabled){background:#eaf0ec;color:#1a5045}.full{width:100%}.secondary{color:var(--muted)}.error{color:var(--red);font-size:13px;min-height:1em}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:8px;background:#e1f0e9;color:var(--green)}.brand-icon svg{width:24px;height:24px}
.auth-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;background:#f5f8f6;padding:36px 22px}.auth-brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600;align-self:flex-start}.auth-form{width:100%;max-width:390px;margin:auto;padding:56px 0}.auth-form h1{font-size:27px;margin:5px 0 28px}.eyebrow{color:var(--green);font-weight:500}.auth-form label{display:block;margin:18px 0;font-weight:500}.auth-form input{margin-top:8px;height:48px}.auth-form .primary{height:46px;margin-top:16px}.auth-form .text-button{margin-top:12px;width:100%}.auth-foot{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:12px}
.workspace{height:100dvh;display:grid;grid-template-columns:274px minmax(0,1fr)}.sidebar{background:#f5f7f5;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:26px 16px 0}.brand{display:flex;align-items:center;gap:10px;margin:0 6px 28px}.brand strong{font-size:16px;font-weight:650;display:block}.brand>div>span{font-size:12px;color:var(--muted);display:block;margin-top:1px}.new{width:100%;justify-content:flex-start;margin-bottom:18px}.search{display:flex;align-items:center;position:relative}.search svg{position:absolute;left:11px;color:#85918b}.search input{padding:9px 10px 9px 36px;background:#fff;font-size:13px;min-width:0}.scope{display:grid;grid-template-columns:1fr 1fr;background:#e9eeea;padding:3px;border-radius:6px;margin:15px 0 12px}.scope button{min-height:32px;font-size:12px;color:#69776f}.scope button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #15291c12;color:#194a3e}.list-heading{display:flex;align-items:center;justify-content:space-between;color:#78827d;font-size:11px;padding-left:9px}.list-heading .icon{width:28px;height:28px}.list-heading svg{width:14px;height:14px}.conversation-list{overflow-y:auto;min-height:0;flex:1;padding-bottom:16px}.conversation-item{display:block;width:100%;text-align:left;padding:12px 11px;margin-top:4px;border:1px solid transparent;min-height:73px}.conversation-item:hover{background:#ecf1ed}.conversation-item.active{background:#e2ede7;border-color:#d2e1d8}.conversation-item strong{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-meta{display:flex;justify-content:space-between;gap:6px;color:#768178;font-size:11px;margin-top:5px}.conversation-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-empty{color:var(--muted);text-align:center;padding:36px 8px;font-size:13px}.sidebar-footer{border-top:1px solid var(--line);padding:17px 0}.user-row{display:flex;align-items:center;gap:9px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dde7ed;color:#355367;font-size:12px;font-weight:600;flex-shrink:0}.user-info{flex:1;min-width:0}.user-info strong,.user-info span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info strong{font-size:12px;font-weight:500}.user-info span{font-size:10px;color:var(--muted)}
.main{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff}.conversation-header{border-bottom:1px solid var(--line);min-height:89px;padding:20px 32px;display:flex;align-items:center;gap:12px}.heading-block{flex:1;min-width:0}.heading-block h1{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.heading-block p{font-size:11px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:3px}.sync{font-size:11px;color:#71867b;margin-right:14px;white-space:nowrap}.sync::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#3e927b;margin-right:6px;vertical-align:middle}.messages{overflow-y:auto;min-height:0;flex:1;padding:20px max(30px,calc((100% - 780px)/2)) 28px;scroll-behavior:smooth}.message{padding:20px 0;border-bottom:1px solid #f0f3f1}.message:last-child{border-bottom:0}.message-head{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#6d7a73;font-size:11px}.message-mark{display:grid;place-items:center;width:26px;height:26px;background:#edf2ef;border-radius:6px;color:#5e7567}.message-mark svg{width:15px;height:15px}.message.draft .message-mark{background:#def0e7;color:#1d745d}.message.reply .message-mark{background:#e7edf5;color:#4d6a8d}.message-head strong{font-size:12px;font-weight:600;color:#44574c}.message-head time{margin-left:auto;white-space:nowrap}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;padding-left:34px}.message.customer .message-content{background:#f4f6f4;padding:13px 16px;border-radius:6px;margin-left:34px}.message.note .message-content{border-left:2px solid #d3b66a;padding-left:14px;margin-left:34px;color:#62623f}.message-actions{display:flex;align-items:center;gap:3px;margin:10px 0 0 28px;flex-wrap:wrap}.message-actions .icon{width:32px;height:32px}.message-actions .icon svg{width:15px;height:15px}.message-actions .message-state{font-size:11px;color:#829088;margin-left:7px}.notes{margin:16px 0 0 34px;padding-left:13px;border-left:2px solid #c1a55f;font-size:12px;color:#7b6a3e}.notes summary{cursor:pointer;font-size:11px;font-weight:500}.notes ul{margin:7px 0 0;padding-left:16px}.edit-area{margin-left:34px}.edit-area textarea{min-height:150px;font-size:14px}.edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.edit-actions button{font-size:12px;min-height:34px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100%;padding:40px 12px;color:#8d9c92;text-align:center}.empty>svg{width:37px;height:37px;margin-bottom:18px;stroke-width:1.3;color:#a4b7a9}.empty h2{color:#40594b;font-size:20px;font-weight:500}.empty p{font-size:13px;margin-top:6px}.busy{display:flex;align-items:center;gap:9px;color:var(--green);font-size:12px;padding:10px max(30px,calc((100% - 712px)/2))}.busy svg{width:16px;height:16px}.workspace-error{margin:12px 28px 0;background:#fff1f1;border-left:3px solid #c85f61;padding:10px 13px;color:#8f343b;font-size:13px;display:flex;justify-content:space-between;gap:8px}.workspace-error button{color:#8f343b;flex-shrink:0}.change-notice,.context-notice{font-size:12px;color:#85662d;background:#fcf8eb;padding:8px 16px}.composer-area{padding:12px max(30px,calc((100% - 780px)/2)) 14px;background:#fff}.composer{border:1px solid #cfdad3;border-radius:8px;background:#fff;box-shadow:0 4px 16px #1b483b06;overflow:hidden}.composer:focus-within{border-color:#689c82}.composer-top{display:flex;align-items:center;justify-content:space-between;padding:9px 13px 0;gap:10px}.composer-top select{background:#f0f4f1;border:0;padding:4px 7px;font-size:11px;max-width:65%;color:#516b5b}.composer-top>span{font-size:10px;color:#8b958e;white-space:nowrap}.composer textarea{border:0;outline:none!important;min-height:96px;max-height:240px;padding:12px 15px;font-size:14px;border-radius:0;display:block}.composer textarea::placeholder{color:#9ba59f}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 13px}.draft-label{display:flex;align-items:center;gap:5px;color:#8b968f;font-size:11px}.draft-label svg{width:13px;height:13px}.composer-bottom button{font-size:12px;min-height:37px}.composer-bottom svg{width:16px;height:16px}.composer-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px;color:#8c9790;font-size:10px}.composer-footer>span{display:flex;align-items:center;gap:5px}.composer-footer svg{width:12px;height:12px}.mobile-only{display:none}
dialog{width:min(440px,calc(100% - 32px));border:1px solid var(--line);border-radius:8px;padding:24px;background:#fff;color:#232b2a;box-shadow:0 14px 60px #20332a33}dialog::backdrop{background:#18291e66}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.dialog-head h2{font-size:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}#dialog-content label{display:block;margin:12px 0;font-size:13px}#dialog-content input{margin-top:6px}#dialog-content p{font-size:13px;line-height:1.8;color:var(--muted)}#dialog-content .account-name{color:#25392d;font-size:16px;font-weight:500}.danger{background:var(--red)!important}.account-buttons{display:flex;flex-direction:column;gap:10px;margin-top:22px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10;padding:10px 20px;border-radius:6px;background:#20382c;color:#fff;font-size:13px;max-width:calc(100% - 32px);box-shadow:0 6px 24px #14261a22}.loading{min-height:100dvh;display:flex;gap:12px;align-items:center;justify-content:center;color:var(--green)}.spinning{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.backdrop{display:none}
@media(min-width:1400px){.workspace{grid-template-columns:292px minmax(0,1fr)}}
@media(max-width:850px){.workspace{grid-template-columns:240px minmax(0,1fr)}.sidebar{padding:22px 12px 0}.conversation-header{padding:18px 20px}.sync{display:none}.messages{padding:14px 24px 24px}.composer-area{padding:12px 24px}.header-actions .icon{width:32px}.brand{margin-bottom:24px}.brand strong{font-size:15px}}
@media(max-width:620px){.workspace{display:block}.main{height:100dvh}.mobile-only{display:inline-flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(300px,88%);z-index:5;transform:translateX(-100%);transition:transform .15s}.sidebar.open{transform:translateX(0)}.sidebar .brand>.icon{margin-left:auto}.backdrop:not([hidden]){display:block;position:fixed;inset:0;border-radius:0;background:#182b2466;z-index:4}.conversation-header{min-height:75px;padding:13px 12px;gap:7px}.heading-block h1{font-size:15px}.heading-block p{font-size:10px}.messages{padding:5px 16px 16px}.message{padding:16px 0}.message-content{padding-left:0;font-size:14px}.message.customer .message-content{margin-left:0}.message.note .message-content{margin-left:0}.message-actions{margin-left:-5px}.notes,.edit-area{margin-left:0}.composer-area{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.composer textarea{font-size:16px;min-height:84px;max-height:170px}.composer-footer{font-size:10px}.composer-top select{font-size:12px}.composer-bottom{padding:6px 10px 10px}.composer-bottom button{min-height:40px}.workspace-error{margin:8px 12px 0}.busy{padding:8px 16px}.auth-brand{font-size:16px}.auth-page{padding:24px 22px}.icon{width:40px;height:40px}.header-actions .icon{width:36px;height:40px}.empty{min-height:160px}.user-info span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinning{animation-duration:2s}}
