@font-face{font-family:Local;src:local('Inter'),local('Segoe UI')}*{box-sizing:border-box}body{margin:0;font-family:Local,system-ui,sans-serif;color:#233c33;background:#f6f7f3;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:10px;min-height:44px;font-weight:600;padding:10px 16px;transition:background .15s}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #e4b355;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #dce3dc;background:#fff;border-radius:10px;padding:12px;color:#203c30;min-height:44px;outline:none}input:focus,select:focus,textarea:focus{border-color:#287956;box-shadow:0 0 0 3px #28795612}textarea{resize:vertical;line-height:1.5}label{display:block;margin:14px 0 7px;font-weight:550;font-size:13px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1px;margin-bottom:0}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:16px;margin-bottom:12px}p{line-height:1.6}.hidden{display:none!important}.muted{color:#7a877e}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#819086;margin-bottom:7px}.primary{background:#176349;color:white}.primary:hover{background:#104c37}.quiet{background:#edf1eb;color:#355343}.text-button{background:transparent;color:#64766a;padding-left:0}.icon-button{background:white;border:1px solid #e0e6de;font-size:23px;width:44px;padding:4px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:#176349;color:#fff;font-family:Georgia,serif;font-size:39px;line-height:1;width:44px;height:44px;border-radius:14px;padding-bottom:6px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#203f30;font-size:21px;font-weight:750;letter-spacing:-.5px}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;color:#8b958c;margin-top:4px}.sidebar{position:fixed;left:0;top:0;bottom:0;width:224px;background:#fff;border-right:1px solid #e5e9e2;padding:30px 20px;display:flex;flex-direction:column}.sidebar nav{margin-top:45px;display:grid;gap:8px}.nav{width:100%;text-align:left;background:transparent;color:#748279;display:flex;gap:12px;align-items:center;font-size:18px}.nav span{font-size:13px}.nav.active{background:#eaf2e9;color:#176349}.sidebar-foot{margin-top:auto;font-size:11px;color:#536b5b}.sidebar-foot p{font-size:11px;color:#8c978e;margin:9px 0}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#438565;margin-right:7px}main{margin-left:224px;padding:30px 32px 20px;max-width:1800px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.top-actions{display:flex;align-items:center;gap:10px}.pill{font-size:11px;padding:7px 11px;background:#edf2e8;border-radius:20px;color:#5b7150}.overview-strip{padding:14px 18px;background:#edf2e9;border:1px solid #e1e9dc;border-radius:12px;display:flex;justify-content:space-between;gap:10px;font-size:11px;margin-bottom:20px}.overview-strip strong{font-weight:600}.inbox-layout{display:grid;grid-template-columns:360px minmax(0,1fr);height:calc(100dvh - 196px);min-height:480px;background:#fff;border:1px solid #e2e7df;border-radius:16px;overflow:hidden;box-shadow:0 6px 30px #23432e03}.inbox-list{border-right:1px solid #e6eae3;display:flex;flex-direction:column;min-height:0}.list-tools{padding:18px 17px 0}.list-tools select{border:0;padding:4px 2px;font-size:13px;font-weight:650;background:#fff}.search{display:flex;align-items:center;border:1px solid #e2e7df;border-radius:9px;background:#f8f9f6;margin:10px 0 14px}.search span{font-size:23px;padding-left:12px;color:#97a192}.search input{border:0;background:none;box-shadow:none;font-size:12px;min-width:0}.tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #edf0e9}.tabs button{background:none;font-size:11px;padding:10px 9px;border-radius:0;border-bottom:2px solid transparent;white-space:nowrap;color:#819082;min-height:38px}.tabs button.active{color:#176349;border-bottom-color:#176349}.tabs b{font-size:9px;background:#e7efdf;border-radius:4px;padding:1px 4px}.case-list{overflow-y:auto;flex:1}.case-row{display:flex;width:100%;text-align:left;gap:11px;border-radius:0;background:#fff;padding:17px 18px;min-height:98px;border-bottom:1px solid #f0f2ed;font-weight:400}.case-row:hover,.case-row.selected{background:#f0f5ed}.avatar{width:40px;height:40px;border-radius:13px;background:#eee9db;color:#8b815f;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}.avatar.t1{background:#e1ebdf;color:#5b7d57}.avatar.t2{background:#e9e5f1;color:#82719d}.avatar.t3{background:#f1e3dc;color:#b4846b}.case-copy{min-width:0;flex:1}.case-top{display:flex;justify-content:space-between;gap:5px;align-items:center}.case-name{font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-time{color:#9aa397;font-size:9px;white-space:nowrap}.preview{font-size:11px;color:#889181;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:6px 0 9px}.case-meta{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8e998a}.badge{display:inline-block;padding:4px 7px;border-radius:5px;font-size:9px;white-space:nowrap;background:#f0f1ec;color:#86907e}.badge.review{background:#fff1d8;color:#a57b28}.badge.human{background:#f8e5df;color:#aa6550}.badge.new{background:#e7eee0;color:#6c884c}.badge.answered{background:#e1f0e8;color:#448969}.detail{min-width:0;display:flex;flex-direction:column;min-height:0;background:#fcfdf9}.empty-detail{margin:auto;text-align:center;color:#9aa592;padding:35px}.empty-detail h2{color:#536d58;margin:18px 0 10px}.empty-detail p{font-size:13px}.empty-icon{font-size:55px;color:#b5c5a7}.chat-head{display:flex;align-items:center;justify-content:space-between;padding:17px 24px;background:white;border-bottom:1px solid #e9ede4;gap:10px}.chat-person{display:flex;gap:10px;align-items:center;min-width:0}.chat-person h2{font-size:14px;margin:0 0 5px}.chat-person small{font-size:10px;color:#8c9786}.chat-head .quiet{font-size:11px}.back{display:none}.conversation{flex:1;overflow-y:auto;padding:22px 26px;min-height:100px}.date-divider{text-align:center;font-size:9px;color:#9ba591;margin:0 0 20px}.message{max-width:83%;margin:0 0 14px}.bubble{border:1px solid #e5e9df;border-radius:13px 13px 13px 3px;background:white;padding:12px 15px;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.message.out{margin-left:auto}.message.out .bubble{background:#edf3e8;border-color:#dfe9d7;border-radius:13px 13px 3px 13px}.message small{font-size:9px;color:#a0a995;display:block;margin-top:5px}.message.out small{text-align:right}.attachment{display:block;font-size:11px;padding:6px 0;color:#7d8d72}.composer{background:white;padding:18px 24px;border-top:1px solid #e5e9df;max-height:52%;overflow-y:auto}.draft-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.draft-header strong{font-size:12px}.draft-header .pill{font-size:9px}.reason{font-size:11px;color:#829078;margin:8px 0;line-height:1.5}.composer textarea{font-size:12px;min-height:90px;max-height:190px;background:#fafbf8}.compose-actions{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:12px}.compose-actions button{font-size:11px}.compose-actions .primary{margin-left:auto}.footnote{font-size:9px;color:#9ba58f;margin:9px 0 0}.notice{background:#fff5df;padding:12px;border-radius:8px;font-size:12px;line-height:1.5;color:#94743b}.empty-list{padding:38px 22px;text-align:center;color:#8c9981;font-size:12px;line-height:1.7}.section-intro{margin:35px 0 25px}.section-intro p{color:#87937e;max-width:650px}.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.info-card,.agent-card{background:white;border:1px solid #e3e9df;border-radius:14px;padding:22px;margin-bottom:18px}.agent-card{margin-bottom:0}.agent-card header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.agent-card h3{margin:0}.agent-card p{font-size:12px;color:#8c9883}.agent-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.agent-card button{font-size:11px}.agent-grid+.info-card{margin-top:24px}.connection{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eef1e9;padding:13px 0;font-size:12px}.rules-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1.3fr);gap:24px}.rules-layout .info-card{align-self:start}.rules-layout small{display:block;line-height:1.6;margin-top:15px}.rules-layout form button{margin:15px 0 0;width:100%}details{background:white;border:1px solid #e3e9df;border-radius:12px;padding:16px 18px;margin-bottom:10px}summary{cursor:pointer;font-weight:600;font-size:13px;min-height:25px}details p{color:#7c8c72;font-size:12px;margin:15px 0 0}.subtle{background:#eef3e9}.subtle p{font-size:12px;color:#7d8d72;margin-bottom:0}.bottom-nav{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#254432;color:white;padding:14px 22px;border-radius:12px;box-shadow:0 10px 30px #0002;z-index:20;max-width:90vw;font-size:13px}dialog{border:0;border-radius:18px;padding:30px;max-width:500px;width:calc(100% - 28px);color:#284430;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#16312266;backdrop-filter:blur(3px)}blockquote{margin:20px 0;padding:15px;background:#f1f5ec;border-radius:10px;white-space:pre-wrap;line-height:1.6;max-height:40dvh;overflow:auto;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.login{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 70% 20%,#dfebd5,transparent 70%),#f4f5ed}.login-card{width:410px;max-width:100%;padding:38px;background:#ffffffdd;border:1px solid #e0e8d9;border-radius:25px;box-shadow:0 30px 100px #25491e0a}.login-card .eyebrow{margin-top:28px}.login-card h1{font-size:32px;line-height:1.2;margin-bottom:16px}.login-card .muted{font-size:13px;margin-bottom:28px}.login-card .primary{width:100%;margin-top:16px;display:flex;justify-content:space-between}.login-card small{display:block;text-align:center;color:#9ca88f;font-size:10px;margin-top:26px}#login-error{color:#b05a40;font-size:12px;margin:12px 0 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.preview{display:block}.timeline{padding:10px 12px;margin:12px 0 0}.timeline summary{font-size:11px;min-height:20px}.timeline p{font-size:11px;margin:6px 0}.delivery-warning{margin:12px 0}
@media(min-width:1450px){.inbox-layout{grid-template-columns:400px minmax(0,1fr)}.bubble{font-size:14px}.case-name{font-size:14px}.preview{font-size:12px}}
.mobile-only{display:none}
@media(max-width:1100px){.rules-layout{grid-template-columns:minmax(0,1fr)}.sidebar{width:190px;padding:25px 15px}main{margin-left:190px;padding:24px 20px}.inbox-layout{grid-template-columns:310px minmax(0,1fr)}.desktop-only{display:none}.agent-grid{grid-template-columns:repeat(2,1fr)}.chat-head,.composer{padding:15px}.conversation{padding:18px}.compose-actions{flex-wrap:wrap}}
@media(max-width:760px){body.chat-open{overflow:hidden}.mobile-only{display:block}body{font-size:14px}.sidebar{display:none}main{margin:0;padding:22px 16px 90px}.topbar{margin-bottom:20px}.topbar h1{font-size:28px}.top-actions{gap:7px}.top-actions .pill{display:none}.top-actions .quiet{font-size:11px;padding:10px}.overview-strip{font-size:10px;flex-direction:column;gap:7px;padding:12px 14px;margin-bottom:16px}.inbox-layout{display:block;height:auto;min-height:calc(100dvh - 275px);border-radius:14px}.inbox-list{border-right:0}.list-tools{padding:13px 14px 0}.list-tools select{font-size:14px}.search input{font-size:14px}.tabs button{font-size:12px;flex:1;padding:10px 8px;min-height:43px}.case-row{padding:17px 15px;min-height:105px}.case-name{font-size:14px}.case-time{font-size:10px}.preview{font-size:12px;margin-top:7px}.case-meta{font-size:10px}.badge{font-size:10px}.avatar{width:43px;height:43px;font-size:14px}.detail{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:6px 8px calc(7px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e3e9df;backdrop-filter:blur(15px);z-index:10}.bottom-nav button{background:none;color:#98a18e;font-size:10px;padding:4px 18px;min-width:90px}.bottom-nav span{display:block;font-size:24px;line-height:28px;margin-bottom:2px}.bottom-nav button.active{color:#176349}.chat-open .detail{display:flex;position:fixed;inset:0;background:#f8faf5;z-index:12;height:100dvh}.chat-open .bottom-nav{display:none}.back{display:block;background:none;font-size:22px;color:#647c58;padding:5px;min-width:32px}.chat-head{padding:13px 12px;flex-shrink:0}.chat-person{gap:8px}.chat-person h2{font-size:14px}.chat-person .avatar{display:none}.chat-head .quiet{font-size:10px;max-width:110px;padding:8px}.conversation{padding:18px 15px}.message{max-width:90%}.bubble{font-size:14px;padding:12px 14px}.message small{font-size:10px}.composer{padding:14px 16px calc(14px + env(safe-area-inset-bottom));max-height:49%}.composer textarea{font-size:16px;min-height:100px}.draft-header strong{font-size:13px}.reason{font-size:12px}.compose-actions{gap:7px}.compose-actions button{font-size:12px}.compose-actions .primary{flex:1}.footnote{font-size:10px}.agent-grid{grid-template-columns:1fr}.agent-card{padding:19px}.agent-card footer button{font-size:12px}.section-intro{margin-top:25px}.section-intro h2{font-size:20px}.section-intro p{font-size:13px}.rules-layout{display:block}.rules-layout input,.rules-layout textarea,.rules-layout select{font-size:16px}.toast{bottom:85px;width:max-content;max-width:calc(100vw - 30px)}.chat-open .toast{bottom:25px;z-index:30}.login-card{padding:30px 24px}.login-card input{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
