/* UBN Group v5.34.09 — expressive accessible character concierge.
   Scoped classes; does not override CRM styles, navigation or site forms. */
.ubn-helper {
  --ubn-h-ink:#1b2231;--ubn-h-gold:#e5ad64;--ubn-h-cream:#fff9f1;
  position:fixed;bottom:94px;right:18px;z-index:9901;
  font:inherit;color:#1b2231;pointer-events:none;
}
.ubn-helper > * {pointer-events:auto}
.ubn-helper button {font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ubn-helper button:focus-visible,.ubn-helper a:focus-visible {outline:3px solid #dc9342;outline-offset:3px}
.ubn-helper-launch {
  display:flex;align-items:center;gap:6px;position:relative;
  min-height:55px;padding:5px 13px 5px 6px;border:1px solid #fff8;
  border-radius:999px;background:#1c2331;color:#fff;
  box-shadow:0 16px 45px #15202f59, inset 0 1px #ffffff1b;
  transition:transform 260ms cubic-bezier(.2,1,.3,1),box-shadow 250ms;
  isolation:isolate;
}
.ubn-helper-launch:before {
  content:"";position:absolute;inset:-5px;border:2px solid #f7cf8d40;
  border-radius:999px;z-index:-1;animation:ubn-h-breath 3.8s ease-in-out infinite;
}
.ubn-helper-launch:hover {transform:translateY(-4px);box-shadow:0 20px 48px #15202f64}
.ubn-helper-launch:active {transform:scale(.976)}
.ubn-helper-portrait,.ubn-helper-head-avatar {
  position:relative;display:block;flex:none;width:45px;height:45px;
  border-radius:50%;overflow:hidden;border:2px solid #f3d3a7;
  background:#f9dba6;
}
.ubn-helper-avatar-svg {display:block;width:100%;height:100%;transform-origin:50% 85%;animation:ubn-h-idle 5s ease-in-out infinite}
.ubn-helper-eyes{transform-origin:center;animation:ubn-h-blink 5.3s infinite}
.ubn-helper-launch-copy{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:2px;max-width:160px}
.ubn-helper-launch-copy strong{font-size:13px;line-height:1.1;letter-spacing:.1px}
.ubn-helper-launch-copy small{color:#dbe0ed;font-size:9px;line-height:1.2;white-space:nowrap}
.ubn-helper-online {position:absolute;left:39px;top:38px;width:10px;height:10px;border-radius:50%;background:#3fd999;border:3px solid #1c2331}
.ubn-helper.is-open .ubn-helper-launch{opacity:0;visibility:hidden;pointer-events:none}
.ubn-helper-panel[hidden]{display:none!important}
.ubn-helper-panel {
  display:flex;flex-direction:column;position:absolute;bottom:0;right:0;
  width:min(412px,calc(100vw - 32px));height:min(652px,calc(100dvh - 120px));
  background:var(--ubn-h-cream);color:var(--ubn-h-ink);border:1px solid #e5ddcf;
  box-shadow:0 30px 95px #13213756,0 5px 18px #00000013;
  border-radius:24px;overflow:hidden;
  animation:ubn-h-open 300ms cubic-bezier(.2,1,.3,1) both;
}
.ubn-helper-head {display:flex;gap:12px;align-items:center;flex:none;padding:15px 14px;
  background:linear-gradient(125deg,#252a3b,#3a3d51 75%,#444e5b);color:#fff}
.ubn-helper-head-avatar{width:60px;height:60px;border-color:#e5bc83}
.ubn-helper-title{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.ubn-helper-title strong{display:flex;align-items:center;gap:9px;font-size:20px;letter-spacing:-.4px}
.ubn-helper-title i{display:inline-flex;gap:4px;align-items:center;color:#aaf1c6;font-style:normal;font-size:11px;font-weight:650;letter-spacing:0}
.ubn-helper-title small{font-size:11px;color:#dfe4eb;line-height:1.3}
.ubn-helper-close{border:1px solid #ffffff2d;color:white;background:#ffffff16;
  width:38px;height:38px;border-radius:50%;font-size:28px;flex:none;display:grid;place-items:center}
.ubn-helper-close:hover{background:#ffffff35;transform:rotate(90deg)}
.ubn-helper-log {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:10px;padding:17px 14px;background:linear-gradient(180deg,#f9f7f3,#f5f1ea)}
.ubn-helper-line{max-width:91%;width:fit-content;border-radius:17px 17px 17px 5px;
  background:#fff;border:1px solid #e8e1d8;box-shadow:0 4px 13px #1b223112;
  padding:11px 13px;font-size:13px;line-height:1.52;white-space:pre-wrap;overflow-wrap:anywhere;
  animation:ubn-h-line 245ms ease-out both}
.ubn-helper-line.user{align-self:flex-end;border:0;background:#33394e;color:#fff;border-radius:17px 17px 5px 17px}
.ubn-helper-listings {display:grid;gap:8px;max-width:95%;width:100%}
.ubn-helper-listing {display:flex;flex-direction:column;gap:5px;text-decoration:none;
  color:#28283a!important;background:#fff;border:1px solid #e9bc82;border-radius:14px;
  padding:11px 12px;box-shadow:0 6px 16px #5d3a1b10;
  transition:transform 220ms ease,box-shadow 220ms ease,border-color 220ms}
.ubn-helper-listing strong{font-size:12px;line-height:1.4}
.ubn-helper-listing small{color:#5e6670;font-size:11px;line-height:1.4}
.ubn-helper-listing span{font-size:11px;color:#995c21;font-weight:800}
.ubn-helper-listing:hover{transform:translateX(4px);box-shadow:0 10px 20px #5d3a1b1c}
.ubn-helper-quick {display:flex;gap:7px;flex-wrap:wrap;padding:9px 11px;background:#fffaf4;border-top:1px solid #e9ded1}
.ubn-helper-quick button{background:#fff;border:1px solid #e3d6c5;color:#3b3942;border-radius:100px;padding:8px 9px;font-size:11px;font-weight:730;transition:background .2s,transform .2s}
.ubn-helper-quick button:hover{background:#fff0d8;transform:translateY(-2px)}
.ubn-helper-foot {flex:none;padding:10px 12px 12px;background:#fff;border-top:1px solid #e8e1d8}
.ubn-helper-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.ubn-helper-toolbar button{border:1px solid #d9dce4;color:#283046;background:#f5f6f8;border-radius:100px;font-size:11px;font-weight:720;padding:7px 11px;white-space:nowrap}
.ubn-helper-toolbar button[aria-pressed="true"]{background:#e5f7e9;color:#1a6438;border-color:#9ed4aa}
.ubn-helper-toolbar span{font-size:10px;color:#5b626d;line-height:1.3;text-align:right}
.ubn-helper-form{display:flex;gap:7px;align-items:center;margin:0}
.ubn-helper-form input{flex:1;min-width:0;min-height:47px;width:auto;border:1px solid #d6d7df;
  background:#fff;border-radius:13px;padding:10px 12px;font-size:13px;outline:none;color:#243044}
.ubn-helper-form input:focus{border-color:#e4a75f;box-shadow:0 0 0 3px #f0bd7442}
.ubn-helper-form button{display:grid;place-items:center;flex:none;height:45px;width:43px;border:0;border-radius:13px;font-size:20px;color:#263041;background:#e9ebf1}
.ubn-helper-form [data-helper-send]{background:#e8b46c;color:#202638;font-weight:800}
.ubn-helper-form button:hover{filter:brightness(.95)}
.ubn-helper-form button:disabled{opacity:.48;cursor:not-allowed}
.ubn-helper-disclaimer {display:block;margin:9px 0 0;font-size:10px;line-height:1.45;color:#656974}
.ubn-helper.is-speaking .ubn-helper-mouth{animation:ubn-h-talk 210ms ease-in-out infinite alternate}
.ubn-helper.is-speaking .ubn-helper-head-avatar {box-shadow:0 0 0 4px #e9c78977}
.ubn-helper.is-listening .ubn-helper-head-avatar{box-shadow:0 0 0 5px #85dfbb88}
.ubn-helper.is-thinking .ubn-helper-head-avatar .ubn-helper-avatar-svg{animation-duration:1.3s}
@keyframes ubn-h-breath{50%{opacity:.3;transform:scale(1.025)}}
@keyframes ubn-h-idle{50%{transform:rotate(1.7deg) translateY(1px)}}
@keyframes ubn-h-blink{0%,44%,47%,87%,90%,100%{transform:scaleY(1)}45%,88%{transform:scaleY(.13)}}
@keyframes ubn-h-talk{to{transform:translateY(2px) scaleY(1.5)}}
@keyframes ubn-h-open{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ubn-h-line{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(max-width:760px){
  .ubn-helper{right:12px;bottom:149px}
  .ubn-helper-launch{min-height:48px;min-width:48px;padding:4px;border-radius:50%;width:48px;height:48px}
  .ubn-helper-launch-copy{display:none}
  .ubn-helper-portrait{width:40px;height:40px}
  .ubn-helper-online{left:35px;top:35px;width:9px;height:9px;border-width:2px}
  .ubn-helper-panel{position:fixed;right:8px;left:8px;bottom:calc(83px + env(safe-area-inset-bottom));
    width:auto;height:min(640px,calc(100dvh - 98px));border-radius:20px}
  .ubn-helper-log{padding:13px 10px}
  .ubn-helper-head{padding:11px}
  .ubn-helper-disclaimer{font-size:9px}
}
@media(max-height:620px){.ubn-helper-quick{padding:6px}.ubn-helper-head-avatar{width:48px;height:48px}.ubn-helper-panel{height:calc(100dvh - 96px)}}
@media(prefers-reduced-motion:reduce){
  .ubn-helper *,.ubn-helper *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.ubn-helper{display:none!important}}

.ubn-helper-inline-link{color:#936024;text-decoration:underline;font-weight:800;white-space:nowrap;display:inline-block;margin-left:3px}
.ubn-helper-line.user .ubn-helper-inline-link{color:#ffe3bc}

/* Compact launcher, with a full touch target on phones. */
.ubn-helper-launch{min-height:44px;padding:4px 10px 4px 4px;gap:6px}
.ubn-helper-launch .ubn-helper-portrait{width:34px;height:34px}
.ubn-helper-launch-copy small{display:none}
.ubn-helper-launch .ubn-helper-online{left:29px;top:29px;width:8px;height:8px;border-width:2px}
@media(max-width:640px){.ubn-helper-launch{width:44px;height:44px;min-width:44px;min-height:44px;padding:4px}}

/* v19: compact action row and improved mobile controls */
.ubn-helper-quick{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;gap:7px}
.ubn-helper-quick button,.ubn-helper-quick-link{flex:none;scroll-snap-align:start;white-space:nowrap;min-height:35px}
.ubn-helper-quick-link{display:inline-flex;align-items:center;border:1px solid #c9d9ee;border-radius:100px;padding:7px 12px;background:#eef5ff;color:#21559b!important;text-decoration:none;font-size:11px;font-weight:750}
.ubn-helper-toolbar{justify-content:flex-start;flex-wrap:wrap}
.ubn-helper-toolbar [data-helper-clear]{background:#fff;color:#596579}
.ubn-helper-toolbar span{margin-left:auto}
@media(max-width:760px){.ubn-helper-panel{max-height:calc(100dvh - 96px)}.ubn-helper-disclaimer{max-height:38px;overflow:auto}.ubn-helper-quick{flex-wrap:nowrap}}

/* v20: lead capture directly into CRM */
.ubn-amira-lead-wrap{padding:8px 12px;background:#f9fbff;border-top:1px solid #e5eaf2}
.ubn-amira-lead-open{width:100%;min-height:36px;background:#e8f2ff;color:#1551a0;border:1px solid #bbd5f6;border-radius:10px;font-size:12px;font-weight:750;cursor:pointer}
.ubn-amira-lead-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px;max-height:40vh;overflow-y:auto;padding:2px}
.ubn-amira-lead-form[hidden]{display:none!important}
.ubn-amira-lead-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:#334155}
.ubn-amira-lead-form label:has(textarea),.ubn-amira-lead-form .ubn-amira-consent,.ubn-amira-lead-actions,.ubn-amira-lead-form [data-amira-lead-status]{grid-column:1/-1}
.ubn-amira-lead-form input:not([type=checkbox]),.ubn-amira-lead-form select,.ubn-amira-lead-form textarea{min-width:0;width:100%;padding:9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-size:13px}
.ubn-amira-lead-form .ubn-amira-consent{flex-direction:row;align-items:flex-start;font-size:10px;font-weight:400}
.ubn-amira-lead-actions{display:flex;gap:7px}
.ubn-amira-lead-actions button{flex:1;padding:9px;border-radius:9px;cursor:pointer;background:#1d5aa5;color:#fff;border:0;font-weight:700}
.ubn-amira-lead-actions button+button{background:#e2e8f0;color:#334155}
.ubn-amira-honey{position:absolute!important;left:-10000px!important;opacity:0!important;height:1px!important;width:1px!important}
@media(max-width:420px){.ubn-amira-lead-form{grid-template-columns:1fr}}

/* UBN Amira 8.9: premium assistant concept, fully local browsing mode */
.ubn-helper{--amira-violet:#1465d6;--amira-deep:#0a1e39;--amira-text:#172942}
.ubn-helper-panel{width:min(424px,calc(100vw - 24px));background:#f8fafc;color:var(--amira-text);border:1px solid #d1dceb;box-shadow:0 26px 85px #0e2f5e60,0 0 0 3px #5a98f020}
.ubn-helper-head{background:radial-gradient(circle at 85% 15%,#266bcc 0,#10305e 45%,#06172f 100%);padding:16px}
.ubn-helper-head-avatar,.ubn-helper-portrait{border-color:#c8d5e7;background:#112e57;box-shadow:0 0 0 3px #478dee36}
.ubn-helper-avatar-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.ubn-helper-head-avatar{width:64px;height:64px}
.ubn-helper-launch{background:#11294b;border-color:#5495ef;color:#fff;box-shadow:0 12px 34px #13315a66}
.ubn-helper-launch:before{border-color:#5c9af055}
.ubn-helper-head .ubn-helper-title strong{font-size:20px}
.ubn-helper-head .ubn-helper-title i{color:#a4ffcf}
.ubn-helper-log{background:linear-gradient(180deg,#f5f7fa,#fff);padding:14px}
.ubn-helper-line.bot{border:1px solid #e0e7f1;box-shadow:0 4px 14px #1f4c8c12}
.ubn-helper-line.user{background:linear-gradient(110deg,#156be4,#2066c8)}
.ubn-helper-actions-caption{padding:11px 14px 4px;font-size:12px;font-weight:850;color:#143a6f;background:#fff}
.ubn-helper-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:7px;padding:7px 12px;background:#fff}
.ubn-helper-quick button{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;min-height:42px;padding:7px;border-radius:12px;font-size:11px;line-height:1.28;border:1px solid #d7e0ed;color:#1c4379;background:linear-gradient(#fff,#f7f9fb);font-weight:750}
.ubn-helper-quick button:hover{background:#e9eef5;border-color:#488dee}
.ubn-helper-examples{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:7px 12px 11px;background:#fff}
.ubn-helper-examples span{width:100%;color:#66768c;font-size:10px;font-weight:700}
.ubn-helper-examples button{border:1px solid #e2e9f2;background:#f0f3f8;border-radius:999px;padding:6px 9px;color:#1a498b;font-size:10px;cursor:pointer}
.ubn-amira-lead-wrap{background:#f8fafc;border-color:#dbe3ef}
.ubn-amira-lead-open{background:#e8edf4;border-color:#7badf3;color:#124b9b}
.ubn-helper-form [data-helper-send]{background:linear-gradient(140deg,#1b71ea,#1465d7);color:white}
.ubn-helper-form input:focus{border-color:#1d70e5;box-shadow:0 0 0 3px #4e91ef44}
.ubn-helper-toolbar span{color:#64758e}
@media(max-width:760px){.ubn-helper-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.ubn-helper-panel{height:min(710px,calc(100dvh - 90px))}.ubn-helper-launch{width:48px;height:48px}}
@media(max-height:660px){.ubn-helper-quick button{min-height:35px}.ubn-helper-examples{padding-block:5px}.ubn-helper-disclaimer{max-height:28px;overflow:auto}}

/* UBN Amira 9.0 — photorealistic assistant / premium unified finish */
.ubn-helper{--amira-deep:#0a1e39;--amira-violet:#1b69d7;--amira-border:#79acf3}
.ubn-helper-panel{border:1px solid var(--amira-border);border-radius:24px;background:#fcfcfd;box-shadow:0 27px 80px rgba(14, 46, 90,.38),0 0 0 4px rgba(87, 150, 239,.13)}
.ubn-helper-head{min-height:112px;background:radial-gradient(ellipse at 80% 0%,rgba(62, 135, 237,.52),transparent 52%),linear-gradient(115deg,#07162b,#103a76 70%,#164b95);padding:16px 17px}
.ubn-helper-head-avatar{height:79px;width:79px;border-radius:19px;border:2px solid #d6dfec;box-shadow:0 5px 20px #04132985}
.ubn-helper-avatar-photo{width:100%;height:100%;object-fit:cover;object-position:center 25%;display:block}
.ubn-helper-launch{background:linear-gradient(120deg,#12315c,#2458a2);box-shadow:0 10px 35px #13376966}
.ubn-helper-launch .ubn-helper-portrait{height:43px;width:43px;border-color:#d8e1ee}
.ubn-helper-launch .ubn-helper-online{left:39px;top:37px}
.ubn-helper-launch-copy{max-width:180px}.ubn-helper-launch-copy strong{font-size:14px}
.ubn-helper-head .ubn-helper-title strong{color:white;font-size:24px}
.ubn-helper-head .ubn-helper-title i{font-size:11px;border:1px solid #ffffff36;padding:4px 7px;border-radius:20px}
.ubn-helper-head .ubn-helper-title small{font-size:12px;color:#e1e8f1}
.ubn-helper-actions-caption{border-top:1px solid #f0f3f8}
.ubn-helper-quick{gap:8px;padding:8px 13px}.ubn-helper-quick button{min-height:49px;border-radius:13px;box-shadow:0 3px 9px #194b910a;text-align:center}
.ubn-helper-log{background:linear-gradient(180deg,#f4f6fa 0%,#fafbfd 100%)}
.ubn-helper-foot{border-color:#e5ebf3}.ubn-helper-form [data-helper-send]{box-shadow:0 5px 13px #2368c851}
.ubn-helper-avatar-photo{image-rendering:auto}
@media(max-width:760px){.ubn-helper-head-avatar{height:59px;width:59px}.ubn-helper-panel{max-height:calc(100dvh - 95px)}.ubn-helper-launch .ubn-helper-portrait{height:40px;width:40px}.ubn-helper-launch .ubn-helper-online{left:35px;top:35px}}


/* UBN Group 9.1 — readable conversation first, quick actions collapse by default */
.ubn-helper-panel{height:min(690px,calc(100dvh - 108px))}
.ubn-helper-head{min-height:80px;padding:10px 13px}
.ubn-helper-head-avatar{width:52px;height:52px;border-radius:13px}
.ubn-helper-head .ubn-helper-title strong{font-size:20px}
.ubn-helper-head .ubn-helper-title small{font-size:11px}
.ubn-helper-log{flex:1 1 auto;min-height:140px;padding:14px}
.ubn-helper-functions{flex:none;background:#fff;border-top:1px solid #e5ebf3}
.ubn-helper-functions>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;min-height:40px;padding:8px 14px;color:#1a498c;font-size:12px;font-weight:800}
.ubn-helper-functions>summary::-webkit-details-marker{display:none}
.ubn-helper-functions>summary:after{content:'⌄';font-size:19px;line-height:1;transition:transform .2s}
.ubn-helper-functions[open]>summary:after{transform:rotate(180deg)}
.ubn-helper-functions>summary small{margin-left:auto;font-size:10px;font-weight:500;color:#657994}
.ubn-helper-functions>summary:hover{background:#f4f6fa}
.ubn-helper-functions>summary:focus-visible{outline:3px solid #4f8fe9;outline-offset:-3px}
.ubn-helper-functions .ubn-helper-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px 12px}
.ubn-helper-functions .ubn-helper-quick button{min-height:34px;padding:6px 7px;border-radius:9px;font-size:11px;line-height:1.2;white-space:normal}
.ubn-helper-functions .ubn-helper-examples{padding:4px 12px 8px;gap:5px}
.ubn-helper-functions .ubn-helper-examples button{padding:5px 8px}
.ubn-helper-foot{padding:8px 11px}
.ubn-helper-disclaimer{max-height:29px;overflow-y:auto}
@media(max-width:760px){.ubn-helper-panel{height:min(690px,calc(100dvh - 99px))}.ubn-helper-head{min-height:68px;padding:9px 11px}.ubn-helper-head-avatar{width:46px;height:46px}.ubn-helper-head .ubn-helper-title strong{font-size:18px}}
@media(max-height:600px){.ubn-helper-head{min-height:56px}.ubn-helper-log{min-height:75px}.ubn-helper-disclaimer{max-height:18px}.ubn-helper-functions>summary{min-height:35px}}
