:root{--navy:#12223c;--blue:#2563eb;--blue-soft:#eff5ff;--bg:#f5f7fb;--surface:#fff;--text:#17253b;--muted:#65748b;--line:#e4eaf2;--red:#b8323f;--red-soft:#fff0f1;--green:#188165;--radius:14px;--shadow:0 8px 30px #1f355308;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #91b9ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.3;letter-spacing:-.8px;margin-bottom:8px}h2{font-size:17px;line-height:1.4;margin-bottom:8px;letter-spacing:-.25px}h3{font-size:15px;margin-bottom:6px}p{margin-bottom:12px}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--muted);margin-bottom:7px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;left:12px;top:-100px;z-index:30;background:#fff;padding:12px;border-radius:8px}.skip-link:focus{top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 15px;border:1px solid var(--line);background:var(--surface);border-radius:8px;color:var(--text);font-weight:650;font-size:12px;text-decoration:none;transition:background .12s,box-shadow .12s}.button:hover:not(:disabled){background:#f7f9fc;text-decoration:none;border-color:#cbd7e6}.button-primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 8px #2563eb17}.button-primary:hover:not(:disabled){background:#1d53ce;border-color:#1d53ce}.button-danger{background:var(--red-soft);color:var(--red);border-color:#ecc9cf}.button-danger:hover:not(:disabled){background:#ffe5e8;border-color:#dc99a6}.button-quiet{border-color:transparent;background:transparent;color:var(--muted);box-shadow:none}.button-small{min-height:33px;padding:6px 10px;font-size:11px}.button-block{width:100%}.icon-button{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:20px}.icon-button:hover{background:var(--bg)}label,legend{display:block;color:#43516a;font-size:12px;font-weight:650;margin-bottom:7px}input,textarea,select{width:100%;padding:10px 12px;min-height:42px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:var(--text)}textarea{resize:vertical;min-height:80px}input:focus,textarea:focus,select:focus{border-color:#8db3f4}input::placeholder,textarea::placeholder{color:#8a97aa}fieldset{padding:0;margin:0;border:0;min-width:0}form>label,form>div>label{margin-top:16px}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:100px;background:#f1f4f8;color:#5d6a7d;padding:4px 9px;font-size:10px;font-weight:750;white-space:nowrap}.pill-blue{background:#eaf2ff;color:#285ec5}.pill-green{background:#e8f6ef;color:#167355}.pill-amber{background:#fff5df;color:#956915}.pill-red{background:#ffedf0;color:#ae3349}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#6bbda4;flex:none}.alert{padding:12px 14px;border-radius:9px;margin-bottom:16px;font-size:12px;border:1px solid #dce7f8;overflow-wrap:anywhere}.alert-error{background:var(--red-soft);border-color:#f3cfd5;color:#9d2b3d}.alert-info{background:#eff5ff;color:#36547f}.alert a{margin-left:8px;font-weight:700}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);min-width:0;margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.section-heading h2{margin-bottom:4px}.section-heading p{margin-bottom:0}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:320px;padding:32px 24px;color:var(--muted)}.empty-state h2,.empty-state h3{color:#43526a}.empty-state p{max-width:350px;font-size:12px}.empty-state.compact{min-height:180px}.empty-state>span{font-size:24px;margin-bottom:10px;color:#8aa0c0}.empty-symbol{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:20px;background:#f0f4fa;font-size:30px!important;color:#7890b4!important;margin-bottom:20px!important}.info-strip{display:flex;align-items:flex-start;gap:12px;padding:15px 18px;border:1px solid #dfe8f8;border-radius:11px;background:#f0f5fd;color:#567092;font-size:12px;margin:16px 0}.info-strip>span{color:#5983bc;font-size:17px;line-height:1.3}.info-strip p{margin:0}.brand{display:flex;align-items:center;gap:11px;font-size:22px;letter-spacing:1px;font-weight:800;color:var(--navy);text-decoration:none}.brand:hover{text-decoration:none}.brand small{font-size:13px;letter-spacing:-.1px;font-weight:500;color:#72829c;display:block;line-height:1.1}.brand-mark{width:38px;height:38px;background:var(--blue);border-radius:10px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:29px;line-height:1;font-weight:900;font-style:italic;font-family:Arial,sans-serif;flex:none;box-shadow:0 5px 12px #2563eb20}.avatar{height:33px;width:33px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#edf2fa;color:#607293;border:1px solid #e3eaf4;border-radius:10px;font-size:12px;font-weight:800}.avatar-large{height:40px;width:40px;border-radius:12px}.notice{background:#f6f8fc;border:1px solid var(--line);border-radius:9px;padding:12px;font-size:11px;color:var(--muted);margin-top:12px}.notice strong{color:#4c5d78}.notice p{margin:6px 0 0}.mobile-only{display:none}
/* Authentication */
.login-body{background:#edf2f8;min-height:100dvh;display:grid;place-items:center;padding:36px}.login-shell{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;min-height:600px;background:#fff;box-shadow:0 25px 90px #20355013;border-radius:22px;overflow:hidden}.login-intro{padding:40px;background:var(--navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-intro:before{content:"";width:330px;height:330px;position:absolute;border:1px solid #ffffff0a;transform:rotate(30deg);border-radius:60px;bottom:-150px;right:-140px;pointer-events:none}.brand-light{color:#fff}.brand-light small{color:#8da4ca}.login-intro .eyebrow{color:#8ca9d5}.login-intro h1{font-size:31px;line-height:1.4;letter-spacing:-1px;margin-bottom:20px}.login-lead{font-size:14px;color:#aebdd3;max-width:310px;line-height:1.8}.login-foot{font-size:11px;color:#8395b0;margin-bottom:0}.login-card{padding:50px 42px;display:flex;flex-direction:column;justify-content:center}.login-card h2{font-size:24px;letter-spacing:-.7px;margin-top:18px}.login-card>p{font-size:13px}.login-card .pill{align-self:flex-start}.password-row{display:flex;position:relative}.password-row input{padding-right:90px}.password-row button{position:absolute;right:3px;top:3px;min-height:36px;padding:6px 10px;font-size:11px}.login-card form>.button-block{margin-top:25px}.login-note{margin-top:22px;line-height:1.7}.login-version{border-top:1px solid var(--line);padding-top:18px;margin-top:14px;display:flex;align-items:center;gap:6px;color:#8b96a8;font-size:10px;overflow-wrap:anywhere}.login-version>span:last-child{max-width:210px}
/* Application shell */
.dashboard-body{background:var(--bg)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:226px;background:#fff;border-right:1px solid var(--line);padding:29px 18px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{padding:0 10px}.sidebar-caption{margin:40px 14px 12px;font-size:9px;letter-spacing:1.7px;font-weight:750;color:#9aa6b7}.main-nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:1px solid transparent;color:#6c7a91;padding:12px 14px;border-radius:9px;font-size:12px;font-weight:650;text-align:left}.nav-item>span:first-child{width:20px;font-size:19px;font-weight:500;line-height:1;text-align:center}.nav-item:hover{background:#f6f8fc}.nav-item.is-active{background:#eff5ff;color:#2459bd;border-color:#e3ecfc}.nav-count{margin-left:auto;background:#dfeaff;color:#2e61b7;border-radius:6px;font-size:10px;padding:2px 6px}.sidebar-bottom{margin-top:auto;padding:18px 12px 0;border-top:1px solid var(--line)}.sidebar-bottom p{font-size:10px;line-height:1.7;color:#8a96a8;margin-top:12px}.build-text{color:#a0aabd;font-size:9px;overflow-wrap:anywhere}.workspace{margin-left:226px;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:85px;background:#ffffffed;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:0;z-index:15;backdrop-filter:blur(10px)}.topbar-title{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.topbar-title .eyebrow{font-size:8px;letter-spacing:1.3px;margin:0;color:#9aa6b7}.topbar-title strong{font-size:14px;font-weight:700}.topbar-tools{display:flex;align-items:center;gap:13px}.topbar-tools select{width:190px;min-height:36px;padding:6px 30px 6px 10px;font-size:11px;background:#f9fbfe}.user-label{display:flex;align-items:center;gap:9px;margin-left:5px;padding-left:18px;border-left:1px solid var(--line)}.user-label strong{display:block;font-size:11px}.user-label small{display:block;font-size:9px;color:var(--muted);margin-top:1px}.main-content{padding:31px 32px 18px;width:100%;max-width:1640px;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading .muted{font-size:12px;margin-bottom:0}.workspace-footer{border-top:1px solid var(--line);padding:16px 32px;display:flex;gap:20px;font-size:9px;color:#98a3b4;justify-content:space-between}.setup-card{padding:40px;background:#fff;border:1px solid var(--line);border-radius:16px;text-align:center;margin-bottom:25px}.setup-card p{font-size:13px;color:var(--muted);max-width:560px;margin:15px auto}.setup-icon{font-size:28px;color:var(--blue);display:inline-block;background:#edf4ff;width:55px;height:55px;padding-top:6px;border-radius:18px;margin-bottom:20px}.setup-card h1{font-size:23px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px;position:relative;box-shadow:var(--shadow)}.metric-card p{font-size:11px;color:#70809a;font-weight:600;margin:0 35px 10px 0}.metric-card>strong{font-size:31px;letter-spacing:-1.2px;display:block;line-height:1.3;margin-bottom:9px}.metric-card small{font-size:9px;color:#9ba6b6;display:block;line-height:1.5}.metric-icon{position:absolute;top:18px;right:18px;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:17px;border-radius:9px}.blue{color:#3774d5;background:#edf4ff}.amber{color:#bd8d36;background:#fff6e4}.teal{color:#3c9480;background:#eafaF5}.slate{color:#7c86a6;background:#f1f2f8}.overview-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.status-list{display:flex;flex-direction:column}.status-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #eef2f7}.status-row:last-child{border-bottom:0}.status-title{display:flex;align-items:center;gap:10px}.status-title .status-icon{width:29px;height:29px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#8392aa;font-size:14px}.status-title strong{font-size:11px;display:block}.status-title small{font-size:9px;color:#94a0b2;display:block;margin-top:3px}.status-value{text-align:right;flex-shrink:0}.status-value small{font-size:9px;color:#9aa7ba;display:block;margin-top:4px}.integration-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.integration-card{background:#fff;border:1px solid var(--line);padding:22px;border-radius:12px;margin-bottom:20px}.integration-card .section-heading{margin-bottom:13px}.integration-card p{font-size:12px;color:var(--muted);margin:0}.data-table-wrap{width:100%;overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.data-table th{padding:11px 12px;font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:#8896aa;background:#f8fafd;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 12px;border-bottom:1px solid #eef2f7;vertical-align:middle;overflow-wrap:anywhere}.data-table tr:last-child td{border-bottom:0}.data-table td .button{white-space:nowrap}
/* Chat workspace */
.conversation-view{height:calc(100dvh - 164px);min-height:510px;display:flex;flex-direction:column}.conversation-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.conversation-toolbar h1{font-size:24px;margin-bottom:3px}.conversation-toolbar p{margin:0}.segmented{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:#edf1f7;gap:2px}.segmented button{border:0;background:transparent;color:#8895aa;padding:6px 20px;border-radius:5px;font-size:11px;font-weight:650}.segmented button.is-active{background:#fff;box-shadow:0 2px 5px #2b39500b;color:var(--text)}.chat-layout{display:grid;grid-template-columns:310px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden;flex:1;min-height:0;box-shadow:var(--shadow)}.chat-list-panel{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line)}.chat-list-controls{padding:17px 15px 10px;border-bottom:1px solid var(--line)}.folder-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:13px}.folder-tabs button{font-size:9px;background:transparent;border:1px solid transparent;color:#7e8da2;border-radius:6px;padding:6px 7px;font-weight:650;display:flex;gap:5px;align-items:center}.folder-tabs button span{font-size:8px;color:#9ba7b8}.folder-tabs button.is-active{background:#ecf3ff;border-color:#e0eafc;color:#3261b4}.folder-tabs button.is-active span{color:#6186c6}.search-wrap{position:relative;display:flex;align-items:center;margin-bottom:10px}.search-wrap>span{position:absolute;left:10px;font-size:18px;color:#8d9cb4}.search-wrap input{padding:9px 9px 9px 31px;background:#f7f9fc;min-height:35px;font-size:10px;border-color:#edf1f7}.chat-list-controls>p{margin:0;font-size:9px;min-height:15px}.conversation-list{overflow:auto;flex:1;min-height:0;padding:7px}.conversation-card{width:100%;border:1px solid transparent;background:#fff;padding:12px;border-radius:9px;text-align:left;display:block;margin:3px 0}.conversation-card:hover{background:#f8fafd}.conversation-card.is-selected{background:#eff5ff;border-color:#d9e6fc}.conversation-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.conversation-card h3{font-size:11px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}.conversation-card time{font-size:8px;color:#9da9bb;white-space:nowrap}.conversation-card .preview{display:block;font-size:10px;margin:7px 0;color:#8290a7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:8px;color:#9ba6b9}.conversation-card .pill{font-size:8px;padding:2px 6px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:9px;color:#8a97aa}.pagination .button{min-height:28px;padding:3px 8px;font-size:14px}.chat-detail-panel{display:flex;min-width:0;min-height:0;flex-direction:column;background:#fcfdff}.chat-detail-panel>.empty-state{flex:1}.conversation-detail{display:flex;flex:1;min-height:0;flex-direction:column}.chat-header{background:#fff;display:flex;align-items:center;gap:11px;padding:15px 19px;border-bottom:1px solid var(--line)}.chat-person{min-width:0;flex:1}.chat-person h2{font-size:13px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-person p{font-size:9px;margin:3px 0 0;overflow-wrap:anywhere}.chat-action-bar{background:#fff;padding:9px 15px;border-bottom:1px solid var(--line);display:flex;gap:5px;flex-wrap:wrap}.chat-action-bar .button{font-size:9px;min-height:28px;padding:5px 7px}.context-bar{padding:9px 18px;font-size:10px;color:#687a98;background:#eef4ff;border-bottom:1px solid #e4ecfb;overflow-wrap:anywhere}.inline-alert{margin:10px 15px 0;padding:9px 12px;font-size:10px}.messages{display:flex;flex-direction:column;gap:14px;padding:22px 20px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}.message{display:flex;flex-direction:column;align-items:flex-start;max-width:min(84%,650px);align-self:flex-start}.message.is-agent{align-items:flex-end;align-self:flex-end}.message.is-system{align-self:center;align-items:center;max-width:95%}.message-author{font-size:9px;color:#8a99af;margin:0 2px 5px;font-weight:650}.message-bubble{padding:12px 14px;border-radius:12px 12px 12px 3px;box-shadow:0 2px 5px #243c5a04;border:1px solid #e6ebf3;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#42536c;min-width:36px}.is-agent .message-bubble{background:#eff5ff;border-color:#dce8ff;border-radius:12px 12px 3px 12px;color:#385b91}.is-system .message-bubble{background:transparent;border:0;box-shadow:none;font-size:10px;color:#8797af;padding:4px}.message time{font-size:8px;color:#9eabba;margin:5px 3px 0}.attachment-link{display:flex;align-items:center;gap:5px;font-size:10px;margin-top:7px;color:#3e70b8;overflow-wrap:anywhere;white-space:normal}.attachment-image{display:block;width:auto;height:auto;max-width:100%;max-height:260px;border-radius:7px;margin-top:8px;object-fit:contain;background:#eef2f6}.attachment-error{font-size:10px;color:#a65862;padding:8px;margin-top:6px;background:#fff5f6;border-radius:6px;white-space:normal}.composer{border-top:1px solid var(--line);padding:13px 18px;background:#fff}.composer textarea{width:100%;border:0;padding:3px 0;min-height:51px;font-size:11px;resize:none;outline:none;color:var(--text)}.composer textarea:focus-visible{outline:2px solid #a8c6fc;outline-offset:3px}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.composer-bottom>div{display:flex;align-items:center;gap:8px}.composer-bottom .muted{font-size:8px}.composer-bottom .button{min-height:32px;padding:7px 12px;font-size:10px}.composer-bottom .upload-button{font-size:9px;padding-left:0}.composer>p{margin:7px 0 0;font-size:8px}.upload-button{cursor:pointer;margin:0}.upload-button.is-disabled{opacity:.45;pointer-events:none}.conversation-tickets{display:flex;flex-wrap:wrap;gap:7px;padding:9px 17px;background:#f6f8fc;border-top:1px solid var(--line);max-height:120px;overflow:auto}.ticket-chip{background:#fff;border:1px solid #e4eaf5;border-radius:7px;padding:6px 8px;font-size:9px;display:flex;gap:8px;align-items:center}.ticket-chip strong{font-size:9px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ticket-chip .button{min-height:23px;padding:2px 6px;font-size:8px}.conversation-view #ticket-workspace{overflow:auto;min-height:0;flex:1}
/* Settings and dialog */
.settings-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.settings-side .card{margin-bottom:20px}.settings-side .card:last-child{margin-bottom:20px}#site-settings-form label{margin-top:17px}#site-settings-form input,#site-settings-form textarea{font-size:12px}#site-settings-form .button{margin-top:20px}#dashboard-days{max-width:120px}.retention-value{display:flex;align-items:baseline;gap:10px;margin:14px 0}.retention-value strong{font-size:31px;line-height:1}.retention-value span{font-size:11px;color:#8a98b0}#widget-snippet{font:10px/1.6 ui-monospace,Consolas,monospace;background:#f8fafd;margin-bottom:8px;min-height:80px}#widget-settings-card label{margin-top:16px}.inline-form{display:grid;grid-template-columns:1fr 1.7fr auto;gap:15px;align-items:end}.inline-form label{margin-top:0}.inline-form .button{min-height:42px;margin-bottom:0}.staff-create{border-top:1px solid var(--line);margin-top:18px;padding-top:17px}.staff-create summary{font-weight:650;color:#4472b7;font-size:12px;cursor:pointer}.staff-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding-top:18px}.staff-form>div>label{margin-top:0}.staff-form>fieldset{grid-column:1/-1}.checkbox-list{display:flex;flex-wrap:wrap;gap:9px}.checkbox-list label{display:inline-flex;align-items:center;gap:8px;background:#f8fafd;padding:8px 11px;border:1px solid var(--line);border-radius:7px;font-size:11px;margin:0}.checkbox-list input{width:15px;height:15px;min-height:15px;margin:0;accent-color:var(--blue)}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%);z-index:100;background:#203553;color:#fff;box-shadow:0 8px 35px #172f5130;padding:13px 20px;border-radius:10px;font-size:12px;max-width:calc(100vw - 32px);text-align:center;overflow-wrap:anywhere}.app-dialog{border:1px solid var(--line);border-radius:16px;padding:27px;width:min(440px,calc(100vw - 32px));box-shadow:0 30px 90px #0d24463b;color:var(--text)}.app-dialog::backdrop{background:#172a4966;backdrop-filter:blur(3px)}.app-dialog h2{font-size:20px;margin:12px 0}.app-dialog p{font-size:12px;color:var(--muted);line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}.dialog-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#edf4ff;color:#4a79bf;font-size:21px;font-weight:700}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.app-dialog code{display:block;font:11px/1.6 ui-monospace,Consolas,monospace;background:#f5f7fb;border:1px solid var(--line);padding:9px;border-radius:7px;overflow-wrap:anywhere;margin-bottom:11px}#ticket-form>label{margin-top:17px}
/* Embedded customer widget */
.widget-body{background:#edf2f8;padding:16px;min-height:100dvh;display:flex;align-items:center;justify-content:center}.widget-shell{background:#fff;width:min(100%,460px);height:min(760px,calc(100dvh - 32px));min-height:min(500px,calc(100dvh - 32px));border:1px solid #dde5f0;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 60px #1a345b0c}.widget-header{display:flex;align-items:center;gap:12px;padding:19px 20px;border-bottom:1px solid var(--line);background:#fff;flex:none}.widget-header>.brand-mark{width:39px;height:39px;font-size:29px;border-radius:11px}.widget-header>div{flex:1;min-width:0}.widget-header h1{font-size:15px;font-weight:750;margin:0;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.widget-header p{font-size:10px;color:#8b9ab0;margin:4px 0 0;display:flex;align-items:center;gap:5px}.widget-header .icon-button{border-color:transparent;color:#91a0b6;font-size:25px}.widget-start{padding:24px;overflow:auto;flex:1;min-height:0}.widget-start h2{font-size:22px;letter-spacing:-.6px;line-height:1.4;margin:16px 0 10px}.welcome-text{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.widget-start form{margin-top:19px}.widget-start input,.widget-start select{font-size:12px;min-height:42px}.widget-start form>label{font-size:11px;margin-top:14px}.widget-start form>.button{margin-top:24px}.privacy-note{font-size:10px;line-height:1.7;margin:17px 0 0;color:#96a3b6}.widget-alert{border-radius:0;border-left:0;border-right:0;margin:0;flex-shrink:0;font-size:10px;padding:9px 16px;max-height:110px;overflow:auto}.widget-chat{display:flex;flex-direction:column;min-height:0;flex:1;background:#f9fbfe}.widget-mode-note{font-size:9px;padding:9px 16px;background:#eef4fd;color:#7189aa;flex:none;border-bottom:1px solid #e6edf9}.widget-messages{padding:20px 16px;gap:15px}.widget-messages .message{max-width:88%}.widget-messages .message-bubble{font-size:12px;line-height:1.7}.widget-messages .is-agent{align-items:flex-start;align-self:flex-start}.widget-messages .is-agent .message-bubble{border-radius:12px 12px 12px 3px;background:#fff;border-color:#e3eaf4;color:#42536c}.widget-messages .is-visitor{align-items:flex-end;align-self:flex-end}.widget-messages .is-visitor .message-bubble{border-radius:12px 12px 3px 12px;background:#edf4ff;border-color:#dce7fb;color:#34598e}.widget-messages .message-author{font-size:9px}.widget-messages .message time{font-size:8px}.widget-composer{padding:12px 16px 9px;background:#fff;border-top:1px solid var(--line);flex:none}.widget-composer textarea{min-height:47px;border:0;resize:none;padding:4px 1px;font-size:12px;max-height:120px}.widget-composer .composer-bottom{margin-top:5px}.widget-composer .composer-bottom>.button{min-height:33px}.widget-composer>p{font-size:8px;margin:8px 0 0}.widget-footer{padding:11px 17px;display:flex;align-items:center;justify-content:center;gap:4px;font-size:8px;color:#a3adbd;border-top:1px solid var(--line);background:#fff;flex:none}.widget-footer strong{font-size:8px;color:#8a99b1;font-weight:650}.widget-footer>span{margin-left:auto}.widget-closed{flex:1;min-height:0}.widget-closed h2{font-size:21px;margin-bottom:12px}.widget-closed p{font-size:12px;line-height:1.8}.closed-symbol{width:56px;height:56px;display:flex;justify-content:center;align-items:center;border-radius:100%;background:#e9f6ee;font-size:25px!important;color:#3a9b79!important;margin-bottom:19px!important}.widget-closed .button{margin-top:12px}
@media(min-width:1600px){.main-content{padding-top:38px}.chat-layout{grid-template-columns:345px minmax(0,1fr)}}
@media(max-width:1180px){.sidebar{width:200px;padding-inline:12px}.workspace{margin-left:200px}.topbar{padding-inline:22px}.main-content{padding:26px 22px 16px}.metric-grid{gap:11px}.metric-card{padding:16px}.metric-icon{right:13px;top:15px;width:25px;height:25px}.metric-card p{font-size:10px}.metric-card small{font-size:8px}.overview-columns{grid-template-columns:1fr}.overview-columns .card{margin-bottom:0}.overview-columns{margin-bottom:22px}.chat-layout{grid-template-columns:275px minmax(0,1fr)}.topbar-tools{gap:8px}.topbar-tools select{width:150px}.user-label{padding-left:11px;gap:7px}.user-label strong{max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-grid{grid-template-columns:1fr 1fr}.card{padding:19px}.inline-form{grid-template-columns:1fr 1.3fr}.inline-form .button{grid-column:1/-1;justify-self:start}.chat-person p{font-size:8px}.conversation-card h3{max-width:140px}}
@media(max-width:900px){.sidebar{width:185px}.workspace{margin-left:185px}.sidebar .brand{padding-left:7px;font-size:20px}.brand small{font-size:11px}.main-nav .nav-item{padding-inline:11px;font-size:11px}.nav-item>span:first-child{font-size:17px}.topbar{padding-inline:16px}.topbar-tools select{width:125px;font-size:10px}.user-label{border-left:0;padding:0}.user-label>span:last-child{display:none}.topbar-tools .button{padding-inline:8px;font-size:10px}.main-content{padding:22px 16px 14px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-card small{font-size:9px}.page-heading h1{font-size:24px}.page-heading .button{font-size:10px;min-height:35px;padding-inline:10px}.page-heading .muted{font-size:11px}.chat-layout{grid-template-columns:245px minmax(0,1fr)}.chat-list-controls{padding:12px 10px}.folder-tabs{gap:2px}.folder-tabs button{font-size:8px;padding:5px}.chat-header{padding:12px;gap:8px}.chat-header>.avatar{display:none}.chat-status{font-size:9px}.chat-header .pill{font-size:9px;padding:3px 7px}.chat-action-bar{padding:8px;gap:4px}.chat-action-bar .button{font-size:8px;padding:5px 6px}.composer{padding:10px 12px}.composer-bottom>div{gap:2px}.composer-bottom .muted{display:none}.messages{padding:17px 12px}.message{max-width:94%}.message-bubble{font-size:11px;padding:10px}.settings-grid{grid-template-columns:1fr}.staff-form{grid-template-columns:1fr 1fr}.section-heading{gap:10px}.section-heading>span{font-size:9px}.workspace-footer{padding-inline:16px}.conversation-view{height:calc(100dvh - 151px)}}
@media(max-width:700px){.mobile-only{display:inline-flex}.sidebar{transform:translateX(-100%);width:230px;transition:transform .18s}.sidebar.is-open{transform:translateX(0)}.sidebar-shade{position:fixed;inset:0;background:#12223c66;z-index:19}.workspace{margin:0}.topbar{height:70px;padding:0 14px;gap:9px}.topbar-title .eyebrow{display:none}.topbar-title strong{font-size:12px}.topbar-tools{gap:7px;margin-left:auto}.topbar-tools select{width:min(31vw,145px);font-size:10px;min-height:34px}.topbar-tools>.icon-button{display:none}.user-label{display:none}.topbar-tools .button{font-size:9px;min-height:32px;padding:7px}.topbar>.icon-button{width:32px;height:32px;font-size:16px}.main-content{padding:21px 14px 12px}.page-heading{gap:14px;align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.page-heading .muted{font-size:11px;line-height:1.7}.page-heading .button{max-width:115px;text-align:center;font-size:9px;gap:5px;padding:8px}.metric-grid{gap:10px;margin-bottom:18px}.metric-card{padding:16px}.metric-card>strong{font-size:28px}.metric-card p{font-size:10px}.metric-icon{width:25px;height:25px;right:13px;top:13px;font-size:15px}.metric-card small{font-size:8px}.card{padding:18px;margin-bottom:16px}.card h2{font-size:15px}.section-heading{flex-wrap:wrap;margin-bottom:13px}.section-heading .small{font-size:10px}.status-row{padding:12px 0}.status-title strong{font-size:10px}.status-title small{font-size:8px}.status-title{gap:8px}.status-title .status-icon{width:27px;height:27px}.status-value .pill{font-size:8px;padding:4px 7px}.status-value small{font-size:8px}.info-strip{font-size:10px;padding:12px;gap:9px}.workspace-footer{padding:13px 14px;font-size:8px;gap:8px}.workspace-footer>span:last-child{display:none}.conversation-view{height:calc(100dvh - 127px);min-height:480px}.conversation-toolbar h1{font-size:21px}.conversation-toolbar{margin-bottom:13px}.conversation-toolbar p{font-size:10px}.segmented button{padding:6px 14px;font-size:10px}.chat-layout{display:block;position:relative;min-height:0}.chat-list-panel{height:100%;border-right:0}.chat-detail-panel{display:none;height:100%;position:absolute;inset:0;z-index:2}.chat-layout.show-detail .chat-detail-panel{display:flex}.chat-layout.show-detail .chat-list-panel{display:none}.chat-list-controls{padding:13px 14px 10px}.folder-tabs{gap:4px}.folder-tabs button{font-size:10px;padding:7px 8px}.folder-tabs button span{font-size:9px}.chat-list-controls>p{font-size:9px}.search-wrap input{font-size:11px;min-height:38px}.conversation-card{padding:14px}.conversation-card h3{font-size:12px;max-width:220px}.conversation-card .preview{font-size:11px}.conversation-card time{font-size:9px}.conversation-card-bottom{font-size:9px}.conversation-card .pill{font-size:9px}.chat-header{padding:13px 12px;gap:10px}.chat-header>.avatar{display:inline-flex;height:34px;width:34px;font-size:11px}.chat-header .mobile-only{width:29px;height:29px;font-size:17px;border:0}.chat-person h2{font-size:12px}.chat-person p{font-size:9px}.chat-action-bar{padding:9px 12px;gap:5px}.chat-action-bar .button{font-size:9px;padding:5px 7px;min-height:29px}.messages{padding:18px 14px}.message{max-width:90%}.message-bubble{font-size:12px;line-height:1.7;padding:11px 13px}.message time{font-size:9px}.message-author{font-size:10px}.composer{padding:12px 14px}.composer textarea{font-size:12px;min-height:50px}.composer-bottom .button{min-height:34px;font-size:10px}.composer-bottom .upload-button{font-size:10px}.composer>p{font-size:8px}.pagination{font-size:10px}.settings-grid{gap:0}.staff-form,.inline-form{grid-template-columns:1fr}.staff-form>fieldset{grid-column:auto}.integration-cards{grid-template-columns:1fr;gap:0}.app-dialog{padding:23px}.app-dialog h2{font-size:18px}.app-dialog p{font-size:11px}.toast{bottom:15px;font-size:11px;padding:11px 16px}.setup-card{padding:28px 20px}.setup-card h1{font-size:21px}.setup-card p{font-size:12px}.data-table{font-size:10px}.data-table th{font-size:8px}.data-table td,.data-table th{padding:10px}.checkbox-list{gap:6px}.checkbox-list label{font-size:10px;padding:7px 9px}.login-body{padding:20px;display:block;min-height:100dvh}.login-shell{min-height:0;max-width:460px;margin:20px auto;display:block;border-radius:17px}.login-intro{padding:25px 27px;gap:25px}.login-intro h1{font-size:25px;margin:0 0 12px}.login-intro .eyebrow{font-size:8px}.login-lead{font-size:12px;margin:0}.login-foot{display:none}.login-card{padding:28px 27px}.login-card h2{font-size:22px}.login-card .pill{font-size:9px}.login-note{font-size:10px!important}.login-version{font-size:9px}.widget-body{padding:0;display:block;background:#fff}.widget-shell{width:100%;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none}.widget-start{padding:23px}.widget-start h2{font-size:22px}.widget-header{padding:16px 18px}.widget-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.widget-composer textarea{font-size:16px;min-height:46px}.widget-start input,.widget-start select{font-size:16px}.widget-start form>label{font-size:11px}.widget-messages .message-bubble{font-size:13px}.widget-mode-note{font-size:9px}.widget-closed h2{font-size:20px}}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 15px;background:#f5f8fe;border-bottom:1px solid var(--line)}.history-toolbar .small{font-size:9px}.history-toolbar .button{font-size:9px;min-height:27px}.status-dot.is-offline{background:#b2bdd0}
.context-bar{white-space:pre-line}.context-bar.has-pending-uploads{background:#fff7e7;color:#795b23;border-bottom-color:#efdfbc}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
