:root{font-family:Segoe UI,Arial,sans-serif;color:#243b35;background:#f4f7f5;font-synthesis:none;--green:#10785c;--light:#e8f4ed;--border:#e1e9e4;--muted:#75877e}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{border:1px solid #d5e0d9;background:#fff;color:#34564a;border-radius:8px;padding:8px 13px;cursor:pointer;font-size:13px;font-weight:600;transition:background .12s}button:hover{background:#edf5ef}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #77bea0;outline-offset:3px}[hidden]{display:none!important}.app{height:100dvh;min-height:570px;display:grid;grid-template-columns:212px 1fr}.rail{background:#f9fbf9;border-right:1px solid var(--border);padding:30px 16px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;margin:0 10px 49px;line-height:1.2;font-size:17px;color:#294939}.brand img{width:39px;height:39px}.brand b{font-weight:650}.rail-label{color:#8b9b91;letter-spacing:1.8px;font-size:10px;font-weight:700;margin:0 13px 15px}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:0;color:#77867b;padding:12px 12px;font-weight:500}nav button.selected{background:#e5f0e9;color:#146948;font-weight:650}nav i{margin-left:auto;font-style:normal}.rail-foot{margin-top:auto;display:flex;gap:9px;align-items:center;padding:12px;font-size:12px;color:#62776b}.dot{width:7px;height:7px;background:#4daf7c;border-radius:50%}main{min-width:0;display:flex;flex-direction:column;padding:27px 28px 12px;gap:20px}header{display:flex;justify-content:space-between;align-items:center;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7f9589;font-weight:650}h1{font-size:24px;letter-spacing:-.7px;font-weight:600;margin:6px 0 0}.header-actions{display:flex;align-items:center;gap:11px}.environment{font-size:9px;letter-spacing:.9px;font-weight:700;padding:7px 10px;border:1px solid #d8e6db;border-radius:5px;color:#75907f;background:#eef5ee}.icon-btn{border:0;background:transparent;padding:6px;font-size:19px;line-height:1}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:310px minmax(0,1fr);background:#fff;border:1px solid var(--border);border-radius:13px;overflow:hidden;box-shadow:0 6px 20px #33544005}.conversations{border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.list-top{display:flex;justify-content:space-between;align-items:center;padding:21px 20px 14px}.list-top h2{margin:0;font-size:15px;font-weight:650}.list-top span{font-size:11px;color:#7d9284;background:#edf3ee;padding:3px 7px;border-radius:5px}.search{margin:0 17px 17px;display:flex;gap:7px;align-items:center;background:#f5f8f5;border:1px solid #edf1ed;border-radius:7px;padding:7px 10px}.search span{color:#91a096;font-size:21px}.search input{width:100%;border:0;outline:0;background:transparent;font-size:12px;color:#345045}.search input::placeholder{color:#9ba9a1}.case-list{overflow:auto;flex:1}.case{display:flex;gap:11px;padding:17px 17px 18px;border:0;border-bottom:1px solid #f0f3f0;border-left:3px solid transparent;border-radius:0;text-align:left;width:100%;font-weight:400}.case:hover{background:#f4f8f5}.case.active{background:#edf6ef;border-left-color:#289665}.avatar{flex:none;width:38px;height:38px;display:grid;place-items:center;background:#e6efe6;border-radius:11px;color:#698e71;font-size:13px;font-weight:600}.case-content{min-width:0;flex:1}.case-title{display:flex;justify-content:space-between;gap:5px;align-items:center;margin:1px 0 6px}.case-title b{font-size:12px;color:#345444;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.case-title time{font-size:10px;color:#93a096;white-space:nowrap}.preview{font-size:11px;color:#84968b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:9px}.case-bottom{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:9px;color:#8da094}.tag{border-radius:4px;padding:3px 6px;background:#eff2ed;color:#758b78}.tag.pending{background:#fbf0d7;color:#9e843a}.tag.mine{background:#dceee0;color:#4e865e}.tag.closed{background:#edf0ee;color:#83948b}.conversation{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:#fcfdfb}.empty-state{margin:auto;max-width:330px;text-align:center;padding:40px 20px}.empty-mark{margin:0 auto 20px;border-radius:22px;display:grid;place-items:center;width:75px;height:75px;background:#eaf3eb;color:#69a379;font-size:40px}.empty-state h2{font-size:19px;font-weight:550;margin:12px 0}.empty-state p{font-size:13px;color:#8b9b90;line-height:1.7}.empty-pills{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;margin-top:24px}.empty-pills span{font-size:9px;color:#7a9382;padding:6px 8px;border:1px solid #e6ede7;border-radius:5px}.thread{height:100%;min-height:0;display:flex;flex-direction:column}.thread-head{display:flex;gap:11px;align-items:center;padding:18px 22px;background:#fff;border-bottom:1px solid var(--border)}.contact{min-width:0}.contact h2{font-size:15px;font-weight:600;margin:0 0 4px}.contact span{font-size:10px;color:#8b9b91}.thread-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.thread-actions button{font-size:10px;padding:6px 9px}.primary{background:#127852;border-color:#127852;color:#fff}.primary:hover{background:#09623f}.ownership{background:#f4f8f3;padding:9px 22px;font-size:10px;color:#7c9482;border-bottom:1px solid #ecf1eb}.message-area{overflow:auto;flex:1;padding:20px 25px;scroll-behavior:smooth}.message{max-width:82%;margin:0 0 17px;clear:both}.message.in{margin-right:auto}.message.out{margin-left:auto}.message .bubble{font-size:12px;line-height:1.65;padding:11px 14px;background:#fff;box-shadow:0 1px 2px #244a2a08;border:1px solid #e7eee6;border-radius:0 10px 10px 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:#40584b}.message.out .bubble{background:#e5f2e7;border:1px solid #d9eada;border-radius:10px 0 10px 10px}.message-meta{display:flex;justify-content:space-between;gap:10px;color:#91a093;font-size:9px;margin:6px 2px 0}.audit{text-align:center;color:#8d9e90;font-size:10px;margin:20px 0}.audit span{background:#eff4ed;padding:5px 10px;border-radius:5px;display:inline-block}.composer{background:#fff;border-top:1px solid #e4ece4;padding:15px 20px}.composer textarea{border:1px solid #e4eae3;border-radius:8px;width:100%;resize:vertical;min-height:64px;max-height:150px;padding:11px 13px;outline:0;font-size:12px;color:#365344}.composer textarea:focus{border-color:#77ab8b}.composer textarea::placeholder{color:#a1afa4}.compose-footer{display:flex;align-items:center;gap:10px;margin-top:10px}.compose-footer .primary{margin-left:auto;font-size:11px;min-width:85px}.compose-footer .primary span{margin-left:14px}.attach{border:0;background:none;color:#83988a;font-size:10px;padding-left:1px;font-weight:400}.small{font-size:10px}.muted{color:var(--muted)}.composer-notice{padding:10px 20px;background:#fcf5e5;color:#947541;font-size:11px}.status-bar{display:flex;justify-content:space-between;color:#91a194;font-size:9px}.load-more,.older{display:block;margin:10px auto;font-size:10px}.empty-list{font-size:12px;padding:25px;text-align:center;line-height:1.8}.demo-banner{background:#fff3d4;border:1px solid #f0dfab;color:#8a7237;font-size:11px;padding:10px 13px;border-radius:7px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#294f3b;color:white;padding:13px 19px;border-radius:9px;max-width:90%;font-size:12px;box-shadow:0 5px 30px #152b2930;z-index:10}.toast.error{background:#974d45}.file-panel{position:absolute;right:0;top:0;bottom:0;background:#fff;width:320px;max-width:90%;padding:20px;box-shadow:-8px 0 30px #244a2a12;border-left:1px solid var(--border);overflow:auto;z-index:2}.panel-title{display:flex;align-items:center;justify-content:space-between}.panel-title h3{font-size:14px}.file-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--border);font-size:11px}.file-row span{min-width:0;overflow-wrap:anywhere}.file-row button{font-size:10px;flex:none}.file-attachment{display:block;padding:9px 10px;margin-top:8px;font-size:11px}.auth-notice{background:white;border:1px solid var(--border);padding:30px;border-radius:12px;max-width:650px;margin:30px auto}.auth-notice h2{font-size:20px}.auth-notice p{font-size:13px;line-height:1.8;color:var(--muted)}.auth-notice a{display:block;color:var(--green);margin-top:20px;font-size:13px}#authDetail{font-size:11px;color:#8a7a5a;margin:15px 0}dialog{border:1px solid var(--border);border-radius:14px;max-width:600px;width:90%;padding:25px;color:#355044;box-shadow:0 15px 70px #163c2440}dialog::backdrop{background:#1b33294d}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h2{font-size:18px;margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#modalBody{font-size:13px;line-height:1.7}#modalBody select{padding:10px;border:1px solid var(--border);border-radius:7px;width:100%}#modalBody img,#modalBody video{max-width:100%;max-height:60dvh;display:block;margin:auto}#modalBody audio{width:100%;margin:15px 0}.download-link{color:var(--green);display:inline-block;margin-top:10px}.busy{opacity:.65;pointer-events:none}@media(max-width:1100px){.app{grid-template-columns:165px 1fr}.rail{padding:22px 10px}.brand{font-size:14px;margin:0 5px 35px}.brand img{width:32px;height:32px}nav button{font-size:11px;padding:11px 8px;gap:6px}main{padding:21px 18px 10px;gap:16px}.workspace{grid-template-columns:260px minmax(0,1fr)}h1{font-size:21px}.thread-head{padding:14px}.thread-actions{gap:4px}.thread-actions button{padding:5px}.thread-head .avatar{display:none}.message-area{padding:18px}.compose-footer .small{display:none}}@media(max-width:780px){.app{grid-template-columns:60px 1fr}.brand span,.rail-label,nav span,.rail-foot span:not(.dot){display:none}.brand{margin:0 0 30px}.rail{padding:20px 9px}nav button{justify-content:center;font-size:19px}.workspace{grid-template-columns:210px minmax(0,1fr)}.environment{display:none}.thread-head{flex-wrap:wrap}.thread-actions{width:100%;justify-content:flex-start}.message{max-width:95%}.status-bar span:last-child{display:none}main{padding:17px 12px 8px}h1{font-size:19px}.case{padding:14px 10px}.case .avatar{display:none}.list-top{padding:17px 12px}.search{margin:0 10px 12px}.composer{padding:10px}.compose-footer{flex-wrap:wrap}.brand img{width:34px;height:34px}}@media(max-width:560px){.workspace{grid-template-columns:1fr}.conversations{max-height:210px;border-bottom:1px solid var(--border)}.conversation{min-height:300px}.app{min-height:750px}.workspace{overflow:auto}.thread{min-height:500px}.thread-head{position:sticky;top:0}.case-list{max-height:130px}.case{padding:10px}.list-top{padding:10px}.search{margin-bottom:7px}.list-top h2{font-size:13px}.workspace:has(.thread:not([hidden])) .conversations{max-height:150px}.workspace:has(.thread:not([hidden])) .case-list{max-height:55px}.header-actions{gap:0}}
@media (min-width:561px) and (max-width:780px){.app{grid-template-columns:145px 1fr}.brand span{display:block;font-size:12px}.rail-label{display:block;font-size:9px;letter-spacing:1px;margin-left:6px}.rail-foot span:not(.dot){display:inline}nav span{display:inline}nav button{justify-content:flex-start;font-size:11px;gap:6px}.brand{gap:7px}.brand img{width:29px;height:29px}.rail{padding:22px 9px}}
/* Keep the conversation inside the Teams viewport rather than growing with its history. */
.app{min-height:0;grid-template-rows:minmax(0,1fr)}main{min-height:0}body{overflow:hidden}
