/* Existing Onest typography and coral glass controls are preserved. */
.messenger-login{margin-top:10px}
.messenger-settings .messenger-note{font:400 13px/1.55 Onest,system-ui,sans-serif;color:var(--muted,#7e746d);margin:0 0 14px}
.messenger-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.messenger-choices .btn{font:500 14px/1.35 Onest,system-ui,sans-serif;min-height:44px}
.messenger-choices .btn[aria-pressed=true]{color:#9c5142;border-color:rgba(224,111,87,.58);background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,234,226,.64));box-shadow:0 0 0 3px rgba(244,123,92,.1),0 5px 18px rgba(226,119,93,.12),inset 0 1px 0 rgba(255,255,255,.96)}
.messenger-choices .btn:disabled{opacity:.58;cursor:default}
.messenger-connections{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:12px}
.messenger-connect{font:400 13px/1.45 Onest,system-ui,sans-serif;padding:5px 0;min-height:32px}
.messenger-status{font:400 12px/1.5 Onest,system-ui,sans-serif;color:var(--muted,#7e746d);margin:10px 0 0}
.messenger-status:empty{display:none}
.messenger-auth .btn{margin-top:14px}
@media(forced-colors:active){.messenger-choices .btn[aria-pressed=true]{outline:2px solid Highlight}}

.messenger-entry{width:100%;max-width:360px;margin:0 auto}.messenger-entry-caption{font:400 12px/1.4 Onest,system-ui,sans-serif;color:var(--muted,#7e746d);text-align:center;margin:0 0 9px!important}.messenger-entry-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.messenger-entry .messenger-entry-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:46px;padding:11px 12px;margin:0;font:500 14px/1.3 Onest,system-ui,sans-serif;white-space:nowrap;border-radius:999px;color:#9b735f;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,248,241,.8));border:1px solid rgba(222,185,166,.65);box-shadow:0 5px 14px rgba(180,119,88,.09),inset 0 1px 0 #fff}.messenger-entry-button img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}.messenger-entry .messenger-entry-button:hover{box-shadow:0 0 0 3px rgba(244,123,92,.08),0 6px 16px rgba(180,119,88,.12),inset 0 1px 0 #fff}.messenger-entry .messenger-entry-button:focus-visible{outline:1px solid #dba18b;outline-offset:3px;box-shadow:0 0 0 5px rgba(244,123,92,.1)}

/* Use the approved common controls for MAX as well. */
.messenger-entry .messenger-entry-button{color:#987260;border-color:#e5cfc3;background:var(--povod-secondary-background,linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,248,241,.72)))}

.povod-message [data-message-bot][hidden]{display:none!important}

/* The approved glass switch, with official messenger icons. */
body .messenger-channel-switch{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:138px;min-width:138px;padding:0 4px}
body .messenger-channel-switch::after{inset:5px 4px}
body .messenger-channel-switch::before{box-sizing:border-box;left:4px;top:7px;bottom:7px;width:calc((100% - 8px)/2);transform:translateX(calc(var(--choice)*100%))}
body .messenger-channel-switch button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;padding:0 4px;cursor:pointer}
body .messenger-channel-switch img{display:block;width:22px;height:22px;object-fit:contain;pointer-events:none;opacity:.68;transition:opacity 160ms ease}
body .messenger-channel-switch [aria-pressed=true] img{opacity:1}
body .messenger-channel-switch [aria-disabled=true] img{opacity:.38}
body .messenger-channel-switch[data-unavailable=true]::before{opacity:.72}
@media(prefers-reduced-motion:reduce){body .messenger-channel-switch img{transition:none}}
