.myvybz-support-shell .myvybz-support-messages{max-width:900px;margin-inline:auto;min-width:0}
.myvybz-support-shell .myvybz-support-messages-head,
.myvybz-support-shell .myvybz-support-messages-head h2,
.myvybz-support-shell .myvybz-support-messages-head p{background:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important}
.myvybz-support-shell .myvybz-support-messages-head{margin:0 0 18px!important;padding:0!important}
.myvybz-support-shell .myvybz-support-messages-head h2{color:var(--mvzsup-text)!important;margin:0 0 9px!important;line-height:1.2}
.myvybz-support-shell .myvybz-support-messages-head p{color:var(--mvzsup-muted)!important;margin:0!important;max-width:64ch}
.myvybz-support-shell .myvybz-support-optin-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:12px 0;padding:12px 16px;background:var(--mvzsup-card2)!important;border:1px solid var(--mvzsup-line);border-radius:12px;box-shadow:none}
.myvybz-support-shell .myvybz-support-optin-note p{margin:0;color:var(--mvzsup-text)!important;flex:1 1 280px}
.myvybz-support-shell .myvybz-support-preferences-link{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;white-space:nowrap;text-decoration:none!important}
.myvybz-support-shell .myvybz-support-message-history{display:flex;flex-direction:column;gap:12px;min-height:150px;max-height:min(520px,60vh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px;margin:14px 0;border:1px solid var(--mvzsup-line);border-radius:12px;background:var(--mvzsup-card2)}
.myvybz-support-shell .myvybz-support-message{max-width:85%;width:max-content;min-width:0;min-inline-size:120px;padding:12px 15px;border-radius:14px;border:1px solid var(--mvzsup-line);background:var(--mvzsup-card);box-shadow:0 2px 6px rgba(0,0,0,.04);overflow-wrap:anywhere}
.myvybz-support-shell .myvybz-support-message.is-resident{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in srgb,var(--mvzsup-accent) 10%,var(--mvzsup-card))}
.myvybz-support-shell .myvybz-support-message.is-staff{align-self:flex-start;border-bottom-left-radius:4px}
.myvybz-support-shell .myvybz-support-message p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.myvybz-support-shell .myvybz-support-message a{overflow-wrap:anywhere;text-decoration:underline}
.myvybz-support-shell .myvybz-support-message time{display:block;font-size:.78rem;color:var(--mvzsup-muted);margin-top:7px}
.myvybz-support-shell .myvybz-support-message-images{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.myvybz-support-shell .myvybz-support-message-images img{width:90px;height:75px;object-fit:contain;max-width:100%;border:1px solid var(--mvzsup-line);border-radius:6px}
.myvybz-support-shell .myvybz-support-message-pagination{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0 16px}
.myvybz-support-shell .myvybz-support-message-compose{display:grid;gap:10px;min-width:0}
.myvybz-support-shell .myvybz-support-message-compose[hidden],
.myvybz-support-shell .myvybz-support-message-state[hidden],
.myvybz-support-shell [data-support-closed-note][hidden]{display:none!important}
.myvybz-support-shell .myvybz-support-message-compose textarea{display:block;width:100%;min-height:95px;resize:vertical;padding:12px;background:var(--mvzsup-card);color:var(--mvzsup-text);border:1px solid var(--mvzsup-line);border-radius:8px;box-sizing:border-box}
.myvybz-support-shell .myvybz-support-message-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;position:relative}
.myvybz-support-shell .myvybz-support-message-close,.myvybz-support-shell .myvybz-support-message-clear,.myvybz-support-shell .myvybz-support-message-state{margin-top:14px}
.myvybz-support-shell .myvybz-support-message-clear .myvybz-support-btn{font-size:.85rem}
.myvybz-support-shell [data-support-action-status]{margin:12px 0;padding:9px 12px}
.myvybz-support-shell .myvybz-emoji-picker{position:absolute;right:0;bottom:calc(100% + 10px);z-index:70;box-sizing:border-box;width:min(380px,calc(100vw - 34px));max-width:100%;max-height:min(445px,75vh);display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--mvzsup-card)!important;color:var(--mvzsup-text)!important;border:1px solid var(--mvzsup-line);border-radius:12px;box-shadow:0 14px 38px rgba(0,0,0,.32);overflow:hidden}
.myvybz-emoji-picker[hidden],.myvybz-emoji-feedback[hidden]{display:none!important}
.myvybz-emoji-controls{display:flex;gap:6px;align-items:center;min-width:0}
.myvybz-emoji-search{flex:1 1 auto;min-width:0;box-sizing:border-box;width:100%;padding:8px 9px;border-radius:8px;border:1px solid var(--mvzsup-line);background:var(--mvzsup-card2);color:var(--mvzsup-text)}
.myvybz-emoji-tone{flex:0 0 108px;min-width:0;max-width:108px;padding:7px 4px;border-radius:8px;border:1px solid var(--mvzsup-line);background:var(--mvzsup-card2);color:var(--mvzsup-text)}
.myvybz-emoji-categories{display:flex;gap:3px;overflow-x:auto;min-height:34px;max-width:100%;scrollbar-width:thin}
.myvybz-emoji-category{flex:0 0 auto;min-height:30px;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;padding:4px 8px;font-size:12px;cursor:pointer}
.myvybz-emoji-category[aria-selected="true"],.myvybz-emoji-category:focus-visible{border-color:var(--mvzsup-accent);background:var(--mvzsup-card2)}
.myvybz-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-content:start;gap:4px;max-height:278px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-width:0;scrollbar-width:thin}
.myvybz-emoji-item{width:100%;height:38px;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:7px;background:transparent;color:inherit;font-size:23px!important;line-height:1;font-family:system-ui,'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;cursor:pointer}
.myvybz-emoji-item:hover,.myvybz-emoji-item:focus-visible{background:var(--mvzsup-card2);outline:2px solid var(--mvzsup-accent);outline-offset:-2px}
.myvybz-emoji-feedback{margin:4px 0;color:inherit;font-size:13px}
.myvybz-emoji-anchor{position:relative;display:inline-block;margin-top:8px}
/* Admin selectors are separate: the wp-admin form is not in the public Support shell. */
body.wp-admin .myvybz-emoji-picker{position:absolute;top:calc(100% + 6px);left:0;bottom:auto;right:auto;z-index:9999;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;width:min(380px,calc(100vw - 48px));max-height:min(445px,75vh);padding:12px;border:1px solid #8c8f94;border-radius:12px;background:#fff;color:#1d2327;box-shadow:0 12px 36px rgba(0,0,0,.2);overflow:hidden}
body.wp-admin .myvybz-emoji-search,body.wp-admin .myvybz-emoji-tone{color:#1d2327;background:#fff;border:1px solid #8c8f94}
body.wp-admin .myvybz-emoji-category{color:#1d2327;background:transparent}
body.wp-admin .myvybz-emoji-category[aria-selected="true"]{background:#e4f2ff;border-color:#2271b1}
body.wp-admin .myvybz-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));max-height:275px;overflow-y:auto;overflow-x:hidden}
body.wp-admin .myvybz-emoji-item{background:transparent;color:#1d2327;border:0;font-size:23px!important;width:100%;height:38px;padding:0!important}
body.wp-admin .myvybz-emoji-item:hover,body.wp-admin .myvybz-emoji-item:focus-visible{background:#e4f2ff;outline:2px solid #2271b1}
body.wp-admin .myvybz-emoji-feedback{color:#1d2327}
.myvybz-support-shell .myvybz-support-modal{padding:12px;box-sizing:border-box}
.myvybz-support-shell .myvybz-support-modal-panel{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;position:relative}
.myvybz-support-shell .myvybz-support-modal-close{position:sticky;top:0;float:right;z-index:6;min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center}
.myvybz-support-shell .myvybz-support-modal-body{clear:both;min-width:0}
@media(max-width:640px){
 .myvybz-support-shell .myvybz-support-messages{padding:12px}
 .myvybz-support-shell .myvybz-support-message-history{padding:9px;max-height:55dvh}
 .myvybz-support-shell .myvybz-support-message{max-width:94%}
 .myvybz-support-shell .myvybz-support-modal{padding:5px}
 .myvybz-support-shell .myvybz-support-modal-panel{width:100%;max-width:100%;max-height:calc(100dvh - 10px);margin:0}
 .myvybz-support-shell .myvybz-support-optin-note{align-items:stretch}
 .myvybz-support-shell .myvybz-support-preferences-link{width:100%}
 .myvybz-support-shell .myvybz-emoji-picker{width:min(330px,calc(100vw - 34px));max-height:65dvh}
 .myvybz-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* Keep the conversation title independent of the site's global header treatment. */
.myvybz-support-shell div.myvybz-support-messages-head{display:block!important;position:relative;margin:0 0 18px!important;padding:0!important;background-color:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;isolation:isolate}
.myvybz-support-shell div.myvybz-support-messages-head::before,.myvybz-support-shell div.myvybz-support-messages-head::after{content:none!important;display:none!important}
.myvybz-support-shell div.myvybz-support-messages-head h2,.myvybz-support-shell div.myvybz-support-messages-head p{background:transparent!important;background-color:transparent!important;background-image:none!important}
.myvybz-support-shell [data-emoji-toggle]{display:inline-flex!important;align-items:center;justify-content:center;gap:8px!important;padding-inline:12px!important;white-space:nowrap}
.myvybz-support-shell .myvybz-emoji-button-icon,.myvybz-emoji-button-icon{display:inline-block;flex:none;font-family:system-ui,'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;font-size:17px;line-height:1;vertical-align:middle}

/* Shared emoji dialog: explicit tone swatches, consistent in WordPress and on the website. */
.myvybz-emoji-picker{min-width:0}
.myvybz-emoji-picker .myvybz-emoji-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(126px,auto);align-items:center;gap:9px}
.myvybz-emoji-picker .myvybz-emoji-search{min-width:0;width:100%;min-height:38px;margin:0!important}
.myvybz-emoji-tone-wrap{position:relative;min-width:0}
.myvybz-emoji-tone-label{display:block;margin-bottom:3px;font-size:11px;line-height:1.2;white-space:nowrap;color:inherit;opacity:.85}
.myvybz-emoji-tone-button{display:flex!important;align-items:center;justify-content:space-between;gap:5px;min-width:0;width:100%;min-height:35px;padding:4px 7px!important;border:1px solid var(--mvzsup-line,#8c8f94)!important;border-radius:7px;background:var(--mvzsup-card2,#fff)!important;color:var(--mvzsup-text,#1d2327)!important;cursor:pointer;box-sizing:border-box}
.myvybz-emoji-tone-display{display:inline-flex;align-items:center;min-width:0;gap:5px}
.myvybz-emoji-tone-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.myvybz-emoji-tone-arrow{font-size:14px;line-height:1}
.myvybz-emoji-tone-symbol{display:inline-block;flex:none;font-family:system-ui,'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif!important;font-size:19px!important;line-height:1!important;background:none!important;filter:none!important}
.myvybz-emoji-tone-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:5;width:max(170px,100%);max-width:min(250px,calc(100vw - 40px));max-height:260px;overflow-y:auto;box-sizing:border-box;background:var(--mvzsup-card,#fff)!important;color:var(--mvzsup-text,#1d2327)!important;border:1px solid var(--mvzsup-line,#8c8f94);border-radius:9px;padding:5px;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.myvybz-emoji-tone-menu[hidden]{display:none!important}
.myvybz-emoji-tone-option{display:flex!important;align-items:center;gap:9px;width:100%;min-height:36px;text-align:left;padding:5px 8px!important;background:transparent!important;color:inherit!important;border:0!important;border-radius:6px;cursor:pointer;font-size:12px!important;white-space:nowrap}
.myvybz-emoji-tone-option:hover,.myvybz-emoji-tone-option[aria-selected="true"],.myvybz-emoji-tone-option:focus-visible{background:var(--mvzsup-card2,#e4f2ff)!important;outline:1px solid var(--mvzsup-accent,#2271b1)}
.myvybz-emoji-picker .myvybz-emoji-categories{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;gap:3px;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px;scrollbar-width:thin}
.myvybz-emoji-picker .myvybz-emoji-category{min-height:34px;padding:5px 9px;font-size:12px}
.myvybz-emoji-picker .myvybz-emoji-grid{flex:1 1 auto;min-height:60px;max-height:none;overflow-y:auto}
body.wp-admin .myvybz-emoji-picker{background:#fff!important;color:#1d2327!important}
body.wp-admin .myvybz-emoji-tone-menu{background:#fff!important;color:#1d2327!important}
body.wp-admin .myvybz-emoji-tone-button{background:#fff!important;color:#1d2327!important;border-color:#8c8f94!important}
body.wp-admin .myvybz-emoji-tone-option[aria-selected="true"],body.wp-admin .myvybz-emoji-tone-option:hover{background:#e4f2ff!important}
body.wp-admin .myvybz-emoji-picker .myvybz-emoji-controls{grid-template-columns:minmax(0,1fr) minmax(126px,auto)}
@media(max-width:380px){.myvybz-emoji-picker .myvybz-emoji-controls{grid-template-columns:minmax(0,1fr)}.myvybz-emoji-tone-wrap{display:flex;align-items:center;gap:8px}.myvybz-emoji-tone-label{margin:0}.myvybz-emoji-tone-button{flex:1}}

/* Status stays inside the composer, without navigating or shifting the thread. */
.myvybz-support-shell .myvybz-support-message-send-status{margin:6px 0 0;font-size:.86em;line-height:1.4;color:var(--mvzsup-muted)}
.myvybz-support-shell .myvybz-support-message-send-status.error{color:#dc645e}
