.ux-portal [hidden]{display:none!important}
@media(max-width:740px){body .ux-portal .ux-portal-trigger{font-size:0;gap:0;padding:12px}}
.ux-portal .ux-portal-trigger{position:fixed;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:.5rem;min-height:46px;padding:.65rem 1.1rem;background:#ead4ff;color:#1b1024;border:1px solid #fff9;border-radius:99px;box-shadow:0 4px 24px #0008;font:700 1rem/1.2 system-ui,sans-serif;text-decoration:none}
.ux-portal-trigger svg{width:22px;height:22px}
body:has(#ux-portal-dialog[open]){overflow:hidden}
#ux-portal-dialog{position:fixed;inset:0;width:min(660px,94vw);height:auto;max-height:90vh;max-height:90dvh;margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;background:#14101c;color:#faf6ff;border:1px solid #685478;border-radius:20px;box-shadow:0 20px 100px #0009;text-align:left;font:400 1rem/1.55 system-ui,sans-serif;overflow-wrap:anywhere}
#ux-portal-dialog:not([open]){display:none}
#ux-portal-dialog::backdrop{background:#050209ce}
#ux-portal-dialog .ux-portal-bar{position:sticky;z-index:2;top:0;background:#14101c;display:flex;align-items:center;padding:.5rem 1rem;border-bottom:1px solid #ffffff21}
#ux-portal-dialog .ux-portal-bar button{min-height:44px;background:transparent;color:white;border:0;padding:.5rem;font:inherit;cursor:pointer}
#ux-portal-dialog [data-portal-close]{margin-left:auto}
.ux-portal-body{padding:clamp(16px,4vw,30px)}
#ux-portal-title{font-size:clamp(1.5rem,4vw,2.1rem);line-height:1.15;color:white;margin:0 0 1rem;outline:none}
#ux-portal-dialog p{line-height:1.55;margin:.7rem 0}
#ux-portal-dialog a{color:#efd5ff;text-decoration:underline;text-underline-offset:.18em}
.ux-portal-options{display:grid;gap:.65rem;margin:1.2rem 0}
#ux-portal-dialog .ux-portal-options a{display:grid;gap:.25rem;position:relative;padding:.9rem 2.2rem .9rem 1rem;border:1px solid #63546e;border-radius:12px;background:#211a2c;text-decoration:none}
.ux-portal-options a:after{content:'›';position:absolute;right:1rem;top:50%;transform:translateY(-50%);font-size:1.7rem}
.ux-portal-options strong{font-size:1.05rem;color:white}
.ux-portal-options span{font-size:.92rem;color:#e0d8e8}
#ux-portal-dialog .ux-portal-options a:hover{border-color:#deb4ff}
.ux-portal-direct{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem;border-top:1px solid #ffffff21;padding-top:1rem}
.ux-portal :focus-visible{outline:3px solid #ffd563;outline-offset:2px}
#ux-portal-dialog .contact-form-panel{margin:0;padding:0;background:none;border:none;color:inherit}
#ux-portal-dialog .contact-form-intro{display:none}
#ux-portal-dialog .contact-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#ux-portal-dialog .contact-form :is(input,textarea){width:100%;box-sizing:border-box;min-width:0;background:#100d16;color:white;border:1px solid #887997;border-radius:8px;padding:.65rem;font:inherit}
#ux-portal-dialog .contact-form label{display:block;margin:.45rem 0;color:inherit}
#ux-portal-dialog .contact-form-note{color:#d4cadc}
#ux-portal-dialog :is(.comm-controls,.ux-chat-voice){display:flex;flex-wrap:wrap;gap:.5rem}
#ux-portal-dialog [data-portal-slot] button{white-space:normal;min-height:42px;max-width:100%;padding:.65rem .9rem;border:1px solid #dcb9ff;border-radius:22px;background:#e9cfff;color:#1c1026;cursor:pointer;font:600 .95rem/1.3 system-ui,sans-serif}
#ux-portal-dialog [data-portal-slot] button:disabled{opacity:.55;cursor:default}
#ux-portal-dialog :is(video,audio,textarea){max-width:100%}
#ux-portal-dialog .comm-video{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/9;margin:1rem 0;background:#08060c;border-radius:12px}
#ux-portal-dialog .comm-video-remote{width:100%;height:100%;object-fit:contain}
#ux-portal-dialog .comm-video-local{position:absolute;bottom:.5rem;right:.5rem;width:26%;z-index:1}
#ux-portal-dialog .comm-wait{position:absolute;inset:0;display:grid;place-content:center;padding:1rem;text-align:center}
#ux-portal-dialog .ux-chat{max-width:100%;min-width:0}
#ux-portal-dialog{scroll-padding-block:72px max(22px,env(safe-area-inset-bottom))}
#ux-portal-dialog .ux-chat-log{height:clamp(110px,24dvh,290px);min-height:0;max-height:36dvh;overflow:auto}
#ux-portal-dialog .ux-chat-log:has(>.ux-chat-empty:only-child){height:auto}
/* The original flex layout sets width:0 on the input. Give the editor its own full row. */
#ux-portal-dialog .ux-chat-form{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}
#ux-portal-dialog .ux-chat-form textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:110px;height:110px;max-height:280px;padding:11px 12px;font:400 16px/1.4 system-ui,sans-serif;writing-mode:horizontal-tb;white-space:pre-wrap;overflow-wrap:break-word;resize:vertical;scroll-margin-block:6px}
#ux-portal-dialog .ux-chat-form textarea::placeholder{color:#b5c5d3;opacity:1}
#ux-portal-dialog .ux-chat :is([data-chat-send],[data-chat-record],[data-chat-cancel],[data-chat-retry]){min-height:46px}
#ux-portal-dialog .ux-chat-form [data-chat-send]{width:100%}
#ux-portal-dialog .ux-chat-voice span{font-size:.82rem;line-height:1.4}
@media(max-width:540px){
 .ux-portal .ux-portal-trigger{right:.65rem;bottom:max(.65rem,env(safe-area-inset-bottom));font-size:.92rem;padding:.5rem .8rem}
 #ux-portal-dialog .contact-form-grid{display:grid;grid-template-columns:minmax(0,1fr)}
 #ux-portal-dialog .ux-chat-voice button{width:100%}
 #ux-portal-dialog:has(.ux-chat-form textarea:focus){max-height:96dvh}
}
