/* Shared form controls across the application and visitor widget. */
.message-delete-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;padding:5px;border:0;border-radius:6px;background:transparent;color:#9fa7a2;cursor:pointer;transition:color .15s,background .15s,opacity .15s;opacity:.55}
.message-delete-button:hover{color:#c65d6a;background:#fff0f2;opacity:1}
.message-delete-button:focus-visible{opacity:1;outline:2px solid #74e8a480;outline-offset:2px}
:is(.chat-message,.team-chat-message):is(:hover,:focus-within) .message-delete-button{opacity:1}
.message-delete-button:disabled{opacity:.35;cursor:wait}
:is(.chat-message,.team-chat-message,.widget-message).is-deleted p{color:#959e99!important;font-style:italic;font-size:12px}
.swal2-popup.message-delete-dialog{font-family:inherit;border-radius:14px}
.message-delete-dialog .swal2-title{font-size:20px;font-weight:400}
.message-delete-dialog .swal2-html-container{font-size:13px;line-height:1.8}
.message-delete-dialog .swal2-styled{font-size:13px;border-radius:7px}
@media(hover:none){.message-delete-button{opacity:1}}
:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:not(:where(.bot-publish-toggle input,.editor-switch input,.team-access-switch input)){
 appearance:none;-webkit-appearance:none;display:inline-block;box-sizing:border-box;flex:0 0 17px;width:17px;height:17px;min-width:17px;min-height:17px;max-height:17px;margin:0;vertical-align:middle;padding:0;border:1.5px solid #cbe3d5;border-radius:5px;background-color:var(--widget-input,#fff);background-position:center;background-size:13px 13px;background-repeat:no-repeat;cursor:pointer;box-shadow:0 1px 2px #24603d05;transition:background-color .15s,border-color .15s,box-shadow .15s;
}
:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:not(:where(.bot-publish-toggle input,.editor-switch input,.team-access-switch input)):checked{
 background-color:var(--widget-primary,var(--primary,#16a34a));border-color:var(--widget-primary,var(--primary,#16a34a));background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 8 3 3 6-6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:not(:where(.bot-publish-toggle input,.editor-switch input,.team-access-switch input)):indeterminate{background-color:var(--widget-primary,var(--primary,#16a34a));border-color:var(--widget-primary,var(--primary,#16a34a));background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:focus-visible{outline:3px solid color-mix(in srgb,var(--widget-primary,var(--primary,#16a34a)) 22%,transparent);outline-offset:3px}
:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
.dashboard-body :is(.hours-day>label,.hours-enable,.editor-active-toggle label,.team-password-hint label,.team-chat-member-picker>label){gap:10px;align-items:center}
.dashboard-body :is(.bot-switch,.editor-switch>span,.team-access-switch>span){position:relative;width:34px;height:20px;display:block;flex:none;border-radius:99px;background:#cbe3d5;transition:background .18s}
.dashboard-body :is(.editor-switch,.team-access-switch){width:34px;height:20px}
.dashboard-body :is(.bot-switch::after,.editor-switch>span::before,.team-access-switch>span::before){position:absolute;content:'';top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #24603d20;transition:transform .18s}
.dashboard-body :is(.bot-publish-toggle input:checked+.bot-switch,.editor-switch input:checked+span,.team-access-switch input:checked+span){background:var(--primary,#16a34a)}
.dashboard-body :is(.bot-publish-toggle input:checked+.bot-switch::after,.editor-switch input:checked+span::before,.team-access-switch input:checked+span::before){transform:translateX(14px)}
.dashboard-body :is(.bot-publish-toggle,.editor-switch,.team-access-switch):has(input:focus-visible){outline:3px solid #74e8a425;outline-offset:3px;border-radius:9px}
.dashboard-body .bot-editor-fields{gap:18px;align-items:center;padding:20px 0}
.dashboard-body .bot-publish-toggle{min-height:58px;gap:11px;padding:12px 14px;background:#f9fefb;border:1px solid #e8f5ed;border-radius:10px}
.dashboard-body .bot-publish-toggle strong{font-size:12px;line-height:1.5;color:#555d58}
.dashboard-body .bot-publish-toggle small{font-size:11px;line-height:1.5;color:#919994}
.dashboard-body .bot-editor-actions{gap:20px;padding:18px 0 2px;align-items:center}
.dashboard-body .bot-editor-actions>div{flex:none}
.dashboard-body .bot-editor-actions .button{flex:none;width:auto;min-width:166px;margin-left:auto;min-height:40px;padding:10px 18px;font-size:13px;border-radius:8px}
.dashboard-body .bot-delete{font-size:12px;line-height:1.5;white-space:nowrap;padding:9px 0;color:#bf6673}
.dashboard-body .reply-shortcut-input{display:flex;gap:0;align-items:stretch;padding:0!important;margin-top:8px;border:1px solid #d9ede1;background:#fff;border-radius:9px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.dashboard-body .reply-shortcut-input>span{display:grid;place-items:center;width:36px;flex:none;color:#909893;background:#f9fefb;border-right:1px solid #e8f5ed;font-size:14px}
.dashboard-body .reply-shortcut-input input{width:100%;min-width:0;height:42px;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;background:transparent;font-size:13px}
.dashboard-body .reply-shortcut-input:focus-within{border-color:#89ecb2;box-shadow:0 0 0 3px #74e8a410}
.dashboard-body :is(.tools-card>footer,.team-editor form>footer,.editor-save-bar){align-items:center;gap:14px}
.dashboard-body :is(.tools-card>footer,.team-editor form>footer,.editor-save-bar) .button{width:auto;min-width:150px;font-size:13px;border-radius:8px}
.swal2-container .swal2-popup.lyno-feedback{font-family:inherit;border:1px solid #e5f2ea;border-radius:12px;box-shadow:0 12px 36px #373c3918;color:#4b524e}
.swal2-container .lyno-feedback .swal2-title{font-size:14px;font-weight:400!important;line-height:1.5}
.swal2-container .lyno-feedback .swal2-html-container{font-size:12px;line-height:1.6;color:#808984}
.swal2-container .lyno-feedback .swal2-timer-progress-bar{background:#74e8a455}
@media(max-width:600px){.dashboard-body .bot-editor-actions{gap:12px;flex-wrap:wrap}.dashboard-body .bot-editor-actions .button{min-width:145px}.dashboard-body .bot-publish-toggle{min-height:54px}}
@media(prefers-reduced-motion:reduce){input[type=checkbox],.bot-switch,.bot-switch::after,.editor-switch span,.editor-switch span::before,.team-access-switch span,.team-access-switch span::before{transition:none!important}}
@media(forced-colors:active){:is(.dashboard-body,.auth-layout,.widget-panel) input[type=checkbox]:not(:where(.bot-publish-toggle input,.editor-switch input,.team-access-switch input)){appearance:auto;background-image:none}}
[data-feedback-message][hidden]{display:none!important}
/* Adapt editor controls to the card width rather than the entire screen. */
.dashboard-body .bot-editor-card{container-type:inline-size}
@container(max-width:520px){.dashboard-body .bot-editor-fields{grid-template-columns:minmax(0,1fr);gap:14px}.dashboard-body .bot-publish-toggle{width:100%;min-height:58px}.dashboard-body .bot-publish-toggle small{max-width:none}}
/* Composite search fields share one surface, border and focus indicator. */
.dashboard-body :is(.team-search,.team-chat-search,.conversation-search){display:flex;align-items:center;gap:9px;min-width:0;height:42px;padding:0 12px;border:1px solid #dfefe6;border-radius:8px;background:#fff;color:#919a95;transition:border-color .15s,box-shadow .15s}
.dashboard-body :is(.team-search,.team-chat-search,.conversation-search)>input:not([type=hidden]){display:block;flex:1 1 0%;width:0;min-width:0;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#4b524e;font:inherit;font-size:13px;line-height:normal;outline:none}
.dashboard-body :is(.team-search,.team-chat-search,.conversation-search)>input:not([type=hidden]):focus{border:0;background:transparent;box-shadow:none;outline:none}
.dashboard-body :is(.team-search,.team-chat-search,.conversation-search):focus-within{border-color:#89ecb2;box-shadow:0 0 0 3px #74e8a414}
.dashboard-body :is(.team-search,.team-chat-search,.conversation-search)>.icon{position:static;flex:none;width:17px;height:17px;color:inherit;pointer-events:none}
.dashboard-body .conversation-search .search-submit{position:static;flex:none;width:28px;height:28px;margin:0 -6px 0 0;padding:0}
@media(prefers-reduced-motion:reduce){.dashboard-body :is(.team-search,.team-chat-search,.conversation-search){transition:none}}
/* Account settings: dashboard card system. */
.avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-settings{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start;padding-bottom:24px}
.dashboard-body .account-overview{position:sticky;top:20px;padding:24px;text-align:center}
.account-photo{display:grid;place-items:center;width:88px;height:88px;margin:0 auto 16px;border-radius:12px;background:#f0fcf5;color:#16a34a;font-size:30px;overflow:hidden}
.account-photo>img{width:100%;height:100%;object-fit:cover}
.dashboard-body .account-overview h2{margin:0 0 5px;font-size:18px;color:#363b38;overflow-wrap:anywhere}
.dashboard-body .account-overview>p{margin:0 0 12px;font-size:13px;color:#6b746f;overflow-wrap:anywhere}
.account-role{display:inline-block;padding:5px 10px;border-radius:7px;background:#f0fcf5;color:#4fc480;font-size:11px}
.account-photo-form{margin-top:22px;padding-top:20px;border-top:1px solid #edf5f0;text-align:left}
.account-photo-form h3{margin:0 0 7px;font-size:15px;color:#363b38}
.dashboard-body .account-photo-form p{margin:0 0 14px;font-size:13px;line-height:1.6;color:#6b746f}
.account-photo-form form{display:grid;gap:10px}
.account-file{position:relative;display:block;padding:12px;border:1px dashed #cbefda;border-radius:9px;background:#fafefc;color:#16a34a;font-size:12px;text-align:center;cursor:pointer;transition:background .18s,border-color .18s}
.account-file:hover{border-color:#99eebc;background:#f1fdf6}
.account-file:focus-within{outline:3px solid #74e8a425;outline-offset:2px}
.account-file input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.account-photo-form small,.account-file-name{font-size:10px;line-height:1.6;color:#98a09b;overflow-wrap:anywhere}
.dashboard-body .account-photo-form .button{width:100%;min-height:38px;margin-top:5px;font-size:12px}
.account-remove-photo{justify-self:center;margin-top:10px;color:#bb6875;font-size:11px}
.account-forms{display:grid;gap:24px;min-width:0}
.account-form{min-width:0;overflow:hidden}
.account-form header{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #edf5f0}
.account-section-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:#f0fcf5;color:#16a34a}
.dashboard-body .account-form h2{margin:0 0 5px;font-size:18px;color:#363b38}
.dashboard-body .account-form header p{margin:0;font-size:13px;line-height:1.6;color:#6b746f}
.account-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.account-form label{display:block;margin-bottom:18px;color:#5a625d;font-size:13px}
.account-form label small{font-size:11px;color:#98a09b}
.dashboard-body .account-form input{display:block;width:100%;height:42px;margin-top:7px;padding:10px 12px;border:1px solid #dfefe6;border-radius:8px;background:#fff;box-shadow:none;color:#4b524e;font-size:13px}
.account-form .account-confirm-password{max-width:380px}
.account-form .account-confirm-password small{display:block;margin-top:7px;line-height:1.6}
.account-hint{display:block;margin:-5px 0 18px;color:#98a09b;font-size:11px}
.account-form footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:6px;padding-top:18px;border-top:1px solid #edf5f0}
.account-form footer>span{color:#98a09b;font-size:11px;line-height:1.6}
.dashboard-body .account-form footer .button{width:auto;min-height:38px;flex:none;font-size:12px}
.organization-brand-settings{display:grid;grid-template-columns:112px minmax(0,1fr);gap:20px;align-items:start;margin-bottom:22px;padding:18px;border:1px solid #e8f5ed;border-radius:12px;background:#fff}
.organization-brand-settings>div{min-width:0}
.organization-brand-preview{display:grid;place-items:center;width:112px;height:112px;overflow:hidden;border:1px solid #e1f2e8;border-radius:12px;background:#f9fefb;color:#16a34a;font-size:26px;font-weight:600}
.organization-brand-preview img{width:100%;height:100%;padding:10px;object-fit:contain}
.organization-brand-preview img[data-pending=true]{outline:3px solid #74e8a440;outline-offset:-3px}
.organization-brand-settings>div:last-child>label:first-child{margin-bottom:14px}
.organization-contact-settings{margin:-4px 0 22px;padding:18px;border:1px solid #e8f5ed;border-radius:12px;background:#f9fefb}
.organization-contact-settings>p{margin:9px 0 0;color:#78867d;font-size:11px;line-height:1.6}
.dashboard-body .account-form .organization-contact-settings [data-phone-field] .registration-phone input{width:0;height:40px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;box-shadow:none}
.dashboard-body .account-form .organization-contact-settings [data-phone-field] .registration-phone input:focus{outline:0;box-shadow:none}
.organization-brand-settings .account-file{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;min-height:72px;margin:0;padding:14px 16px;text-align:left}
.organization-brand-settings .account-file-title{display:block;color:#2fbd6a;font-size:12px;font-weight:600;line-height:1.35}
.organization-brand-settings .account-file-description{display:block;color:#9da5a0;font-size:10px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.organization-brand-settings .account-file-name{display:block;margin-top:8px;color:#47bb77}
.dashboard-body .account-delete-card{border:1px solid #f1d9dc;background:#fff}
.account-delete-card .account-section-icon{background:#fff2f1;color:#bc5a5a}
.dashboard-body .account-delete-card>p{margin:0 0 20px;color:#7b7777;font-size:12px;line-height:1.75}
.account-delete-card form{display:block}
.account-delete-card label strong{color:#a44444}
.dashboard-body .account-delete-card .account-delete-button{border:1px solid #c35b5b;background:#b94f4f;color:#fff}
.dashboard-body .account-delete-card .account-delete-button:hover{background:#a83d3d}
.dashboard-body .account-form .account-check{display:flex;align-items:center;gap:8px;width:max-content;margin:10px 0 0!important;padding:7px 10px;border:1px solid #f1d9dc;border-radius:8px;background:#fff8f8;color:#a5666d;font-size:11px;line-height:1.3;cursor:pointer}
.dashboard-body .account-form .account-check input{appearance:none;width:16px!important;height:16px!important;margin:0!important;padding:0!important;flex:none;border:1px solid #d8a9af;border-radius:5px;background:#fff;box-shadow:none;cursor:pointer}
.dashboard-body .account-form .account-check input:checked{border-color:#ba7079;background:#ba7079;box-shadow:inset 0 0 0 3px #fff}
@media(max-width:1150px){.account-settings{grid-template-columns:230px minmax(0,1fr);gap:18px}.account-field-grid{grid-template-columns:1fr;gap:0}}
@media(max-width:760px){.account-settings{grid-template-columns:1fr}.dashboard-body .account-overview{position:static}.account-form footer{flex-wrap:wrap}.account-form footer .button{margin-left:auto}}
@media(max-width:600px){.organization-brand-settings{grid-template-columns:1fr;gap:14px}.organization-brand-preview{width:88px;height:88px}.organization-brand-settings .account-file{min-height:68px}}

/* Shared custom dropdown, including authentication forms. */
.select-option-content{display:flex;align-items:center;gap:9px;min-width:0}
.dashboard-body .account-form .account-check input{width:16px!important;height:16px;margin:0;padding:0;flex:none;accent-color:#16a34a;box-shadow:none}
.dashboard-body .account-form .account-file input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.select-country-flag{display:block;flex:none;width:20px;height:15px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #24603d12}
.select-menu.select-menu-searchable{display:flex;flex-direction:column;overflow:hidden;padding:8px}
.select-menu-searchable .select-menu-list{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.select-menu-searchable input.select-menu-search{flex:none;width:100%;height:36px;margin:0 0 7px;padding:7px 10px;border:1px solid #dfefe6;border-radius:6px;background:#f9fefb;font:inherit;font-size:12px;color:#4b524e;box-shadow:none;outline:0}
.select-menu-searchable input.select-menu-search:focus{border-color:#89ecb2;box-shadow:none}
.select-menu-empty{padding:16px 10px;color:#919994;font-size:12px}
.select-control{display:block;position:relative;min-width:0;width:100%}.select-native{display:none!important}.select-trigger{font:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 13px;background:#fff;border:1px solid #cde1d5;border-radius:9px;color:#414744;text-align:left;cursor:pointer;box-shadow:0 1px 2px #10281a04;transition:border-color .15s,box-shadow .15s;font-size:13px;line-height:1.5}.select-trigger:hover{border-color:#a8afab}.select-trigger:focus-visible,.select-trigger[aria-expanded=true]{outline:0;border-color:#50e38d;box-shadow:0 0 0 3px #44e18514}.select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-chevron{display:flex;color:#7e8782;flex-shrink:0;transition:transform .15s}.select-trigger[aria-expanded=true] .select-chevron{transform:rotate(180deg)}.select-trigger:disabled{cursor:not-allowed;background:#f3f8f5;color:#858e89;opacity:.8}.select-menu{position:fixed;z-index:120;overflow:auto;overscroll-behavior:contain;padding:5px;background:#fff;border:1px solid #dbece2;border-radius:11px;box-shadow:0 12px 32px #18402922,0 3px 8px #1840290a;font-size:13px;color:#414744;scrollbar-width:thin}.select-menu-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:39px;padding:9px 11px;border-radius:7px;cursor:pointer;line-height:1.5}.select-menu-option.is-highlighted{background:#f1fbf5;color:#26613f}.select-menu-option[aria-selected=true]{background:#f0fcf5;color:#24c668;font-weight:550}.select-option-check{width:16px;color:#16a34a;flex-shrink:0}
@media(max-width:600px){.select-menu-option{min-height:44px}.select-trigger{font-size:14px}}
