@font-face{font-family:"GBC Interface";src:local("Segoe UI Variable");font-style:normal;font-weight:100 900;font-display:swap}:root{color-scheme:light;--ink:#17293e;--muted:#617187;--blue:#1648d8;--line:#dde5ef;--wash:#f5f8fc;--soft:#eaf0ff;font-family:"GBC Interface","Segoe UI Variable","Segoe UI",system-ui,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--wash);color:var(--ink);font-family:"GBC Interface","Segoe UI Variable","Segoe UI",system-ui,sans-serif;font-synthesis:none}button,input,select,textarea{font:inherit}button{cursor:pointer}[hidden]{display:none!important}:focus-visible{outline:3px solid #6c99ff;outline-offset:2px}.ui-icon{display:block;width:20px;height:20px;flex:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app-shell{width:min(100%,520px);height:100dvh;margin:auto;display:flex;flex-direction:column;background:#fff;box-shadow:0 0 0 1px #2040640c,0 20px 90px #112d570f}.brand-bar{height:76px;flex:none;padding:13px 26px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);background:#ffffffed;position:relative;z-index:2}.brand-bar img{width:92px;height:auto;object-fit:contain}.brand-divider{width:1px;height:25px;background:#c9d4e1}.brand-caption,.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#5e728e}.app-shell>main{display:flex;flex:1;min-height:0;flex-direction:column}.entry-view{padding:clamp(16px,3dvh,30px) clamp(20px,6vw,42px) 18px;overflow:auto}.entry-art{height:clamp(66px,12dvh,96px);position:relative;margin-bottom:clamp(10px,2dvh,18px)}.chat-glyph{position:absolute;width:86px;height:68px;left:3px;top:5px;border-radius:29px 29px 29px 8px;background:linear-gradient(145deg,#2167ec,#1242cb);box-shadow:0 17px 35px #1648d838;display:flex;align-items:center;justify-content:center;gap:7px;z-index:1;animation:arrive .65s ease-out both}.chat-glyph span{width:8px;height:8px;border-radius:50%;background:#fff;animation:blink 1.7s infinite}.chat-glyph span:nth-child(2){animation-delay:.18s}.chat-glyph span:nth-child(3){animation-delay:.36s}.entry-art-ring{position:absolute;width:94px;height:94px;border:1px solid #dbe6fb;border-radius:50%;left:47px;top:0}.entry-view .eyebrow{margin:0 0 7px;color:var(--blue)}h1,h2,h3{font-family:inherit;letter-spacing:-.045em}h1{font-size:clamp(36px,7vw,50px);line-height:1.05;margin:0}.entry-lead{font-size:15px;line-height:1.4;color:var(--muted);max-width:360px;margin:7px 0 16px}.entry-form{display:grid;gap:8px}.entry-form input{width:100%;min-height:50px;border:1px solid #cfd9e7;background:#fff;border-radius:12px;padding:0 15px;color:var(--ink)}.entry-form>input:focus{border-color:var(--blue);outline:none;box-shadow:none}.entry-form input::placeholder{color:#8899ae}.phone-control{display:flex;align-items:center;height:50px;border:1px solid #cfd9e7;border-radius:12px;background:#fff;position:relative}.country-picker{width:68px;height:100%;flex:none;border-right:1px solid #e5ebf2}.country-trigger{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px 0 0 12px;background:transparent;color:#27374a}.country-trigger:hover,.country-trigger[aria-expanded=true]{background:#eef4ff}.country-trigger .ui-icon{width:13px;height:13px}.country-trigger[aria-expanded=true] .ui-icon{transform:rotate(180deg)}#country-mark{font-size:12px;font-weight:800;color:#1648d8}.entry-form .phone-control input,.entry-form .phone-control input:hover,.entry-form .phone-control input:focus,.entry-form .phone-control input:focus-visible{flex:1;width:1px;min-width:0;min-height:0;height:100%;padding-left:15px;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent}.form-note,.privacy-note{font-size:12px;line-height:1.55;color:#687b94}.form-note{margin:0 0 2px}.privacy-note{margin:10px 0 0;max-width:370px}.form-error,.feedback{min-height:16px;color:#a01e35;font-size:12px}.form-error:empty{display:none}.primary-button{width:100%;max-width:360px;margin-inline:auto;min-height:50px;background:linear-gradient(130deg,#2364e5,#1648d8);border:1px solid #1748cc;color:#fff;border-radius:13px;font-size:15px;line-height:1.2;font-weight:600;box-shadow:0 4px 12px #1648d81c;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px}.primary-button:hover{background:linear-gradient(130deg,#1b58d5,#113fc4);box-shadow:0 5px 13px #1648d822}.primary-button:focus-visible{outline:2px solid #123887;outline-offset:3px}.send-button:hover{background:#0c3abf}.chat-view{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-header{height:78px;flex:none;display:flex;align-items:center;padding:11px 23px;gap:12px;border-bottom:1px solid var(--line)}.agent-avatar{height:46px;width:46px;border-radius:16px;background:#e8efff;color:var(--blue);font-size:25px;font-weight:800;display:grid;place-items:center}.chat-header-copy{display:grid;gap:3px}.chat-header-copy strong{font-size:16px;font-weight:600;line-height:1.25}.chat-header-copy span{font-size:12px;line-height:1.35;font-weight:400;color:var(--muted)}.header-live{margin-left:auto;width:9px;height:9px;border-radius:50%;background:#7893b2;box-shadow:0 0 0 4px #eaf0f7}.messages{flex:1;min-height:0;overflow:auto;padding:25px 20px;display:flex;flex-direction:column;gap:11px;background:linear-gradient(#fff,#fbfdff)}.bubble-row{display:flex;flex-direction:column;align-items:flex-end;animation:arrive .2s ease-out both}.bubble-row.agent{align-items:flex-start}.bubble{max-width:83%;padding:11px 14px;border-radius:16px;line-height:1.43;overflow-wrap:anywhere;font-size:14px;background:var(--blue);color:#fff;border-bottom-right-radius:5px}.agent .bubble{background:#edf2f8;color:var(--ink);border-bottom-left-radius:5px;border-bottom-right-radius:16px}.bubble-meta{font-size:10px;color:#71849b;margin:4px 2px}.empty{font-size:13px;line-height:1.5;color:var(--muted);text-align:center;padding:10px 20px}.feedback{margin:0 18px}.preview{margin:0 14px 8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.preview img{max-width:160px;max-height:115px;object-fit:contain;display:block;margin-top:8px}.preview-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:9px}.preview button{min-height:44px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 11px;color:var(--blue);font-weight:700}.preview button.confirm{background:var(--blue);color:#fff}.chat-composer{min-height:76px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:flex;gap:7px;align-items:center;border-top:1px solid var(--line);background:#fff;flex:none}.icon-button{border:0;background:transparent;color:#547087;min-width:44px;height:44px;border-radius:9px;display:grid;place-items:center}.icon-button:hover,.composer-field button:hover{background:#edf3fa}.composer-field{display:flex;align-items:center;flex:1;min-width:0;border:1px solid #dbe3ef;background:#f7f9fc;border-radius:18px;padding:0 4px 0 12px}.composer-field textarea{flex:1;border:0;resize:none;background:transparent;outline:0;box-shadow:none;min-width:0;max-height:100px;min-height:43px;padding:12px 0;font-size:14px;color:var(--ink)}.composer-field button{border:0;background:transparent;color:#6d8199;min-width:44px;height:44px;border-radius:8px;display:grid;place-items:center}.send-button{min-width:44px;height:44px;border:0;background:var(--blue);color:#fff;border-radius:14px;display:grid;place-items:center}.demo-note{text-align:center;font-size:10px;letter-spacing:.05em;color:#5d708b;padding:4px 8px max(8px,env(safe-area-inset-bottom));background:#fff}.location-card{display:grid;gap:9px;background:#fff;border:1px solid #dbe5f0;border-radius:15px;color:var(--ink);overflow:hidden;min-width:min(280px,80vw)}.map-art{height:100px;background:linear-gradient(120deg,#e6f1e9 20%,#f5f1df 20% 44%,#d9e9f1 44% 50%,#eef1dc 50%);display:grid;place-items:center;color:var(--blue)}.map-art .ui-icon{width:26px;height:26px}.location-card strong,.location-card span{padding:0 12px}.location-card a{color:var(--blue);font-size:12px;font-weight:700;padding:8px 12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{border:0;border-radius:16px;max-width:400px;box-shadow:0 20px 80px #11294750}dialog::backdrop{background:#11294788}.dialog-content{padding:24px}.dialog-content p{line-height:1.5;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-height:44px;padding:8px 12px;border-radius:9px}.dialog-actions .primary{background:var(--blue);color:#fff;border:0}.dialog-actions .subtle{background:#fff;color:var(--blue);border:1px solid var(--line)}
/* Liquid Glass finish on the original composition; messages stay opaque. */
.brand-bar,.chat-header,.chat-composer{background:linear-gradient(130deg,#fffffff0,#eff6ffeb 55%,#fffffff0);box-shadow:inset 0 1px #fff,0 5px 18px #1648d814;position:relative}.brand-bar::after,.chat-header::after,.chat-composer::after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#fff,#a9caff,#fff,transparent);pointer-events:none}.entry-form>input,.preview{box-shadow:inset 0 1px #fff,0 5px 16px #1648d80e}.chat-glyph{box-shadow:inset 0 1px #ffffff80,0 17px 35px #1648d838}.primary-button,.send-button,.icon-button{transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.primary-button:active{background:#113fc4;box-shadow:0 2px 7px #1648d81b}.send-button:active,.icon-button:active{transform:scale(.96)}@supports ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){.brand-bar,.chat-header,.chat-composer{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}@supports not ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){.brand-bar,.chat-header,.chat-composer{background:#f7fbff}}
@keyframes blink{0%,70%,100%{opacity:.5;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(min-width:680px){.app-shell{margin:32px auto;height:min(850px,calc(100dvh - 64px));border-radius:28px;overflow:hidden}}@media(max-width:380px){.brand-bar{height:66px;padding:9px 20px}.brand-bar img{width:77px}.brand-caption{font-size:9px}.entry-view{padding:30px 20px}.chat-composer{padding-left:6px;padding-right:6px;gap:2px}.icon-button{min-width:40px}.composer-field button{min-width:40px}.send-button{min-width:44px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* App viewport: scroll remains usable inside content, without visible tracks. */
html,body{width:100%;height:100%;overflow:hidden}
.app-shell{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top)}
.app-shell>main,.chat-view{min-height:0;overflow:hidden}
.entry-view,.messages,.preview,dialog{
  scrollbar-width:none;
  -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.entry-view::-webkit-scrollbar,.messages::-webkit-scrollbar,
.preview::-webkit-scrollbar,
dialog::-webkit-scrollbar{display:none}
.entry-view{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto}
.messages{overflow-x:hidden;overflow-y:auto;min-height:0}
.chat-header,.chat-composer,.brand-bar,.demo-note{flex-shrink:0}
.chat-composer{padding-bottom:10px}
.preview{max-height:35dvh;overflow-y:auto;overflow-x:hidden}


dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(min-width:680px){.app-shell{height:min(850px,calc(100dvh - 64px));max-height:calc(100dvh - 64px)}}
@media(max-height:650px){.entry-view{padding-top:12px;padding-bottom:12px}.entry-art{height:54px;margin-bottom:8px}.chat-glyph{transform-origin:top left;scale:.68}.entry-art-ring{width:54px;height:54px;left:39px}.entry-lead{margin:5px 0 12px}.privacy-note{margin-top:8px}}


/* One focus surface for each compound control. */
.phone-control:focus-within{border-color:var(--blue)}

.composer-field,.composer-field:hover,.composer-field:focus-within{box-shadow:none}
.composer-field:hover{border-color:#bbcae4}
.composer-field:focus-within{border-color:var(--blue)}
.composer-field textarea:focus-visible,.composer-field button:focus-visible{outline:none;box-shadow:none}
.chat-view{position:relative}


/* The recording surface replaces the composer; it never pushes it down. */
.voice{min-height:76px;max-height:none;margin:0;padding:8px 12px;display:flex;align-items:center;gap:8px;flex:none;border-top:1px solid var(--line);background:linear-gradient(130deg,#fffffff0,#eff6ffeb 55%,#fffffff0)}
.voice-icon-button{width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:12px;background:transparent;color:#4b6281;display:grid;place-items:center}
.voice-icon-button:hover{background:#e8effa}
.voice-icon-button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.voice-icon-button.confirm{background:var(--blue);color:#fff}
.voice-icon-button.confirm:hover{background:#0c3abf}
.record-dot{width:9px;height:9px;min-width:9px;border-radius:50%;background:#d7374d}
.is-paused .record-dot{background:#8794a7}
.voice-timer{font-size:14px;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.voice-meter{height:22px;flex:1;min-width:24px;display:flex;align-items:center;justify-content:center;gap:3px}
.voice-meter i{display:block;width:3px;height:4px;border-radius:3px;background:var(--blue)}
.voice-review-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.voice audio{flex:1;min-width:0;height:40px}
@media(max-width:380px){.voice{gap:4px;padding-inline:6px}.voice-meter{gap:2px}}

/* World telephone region selector. SVG source: flag-icons 7.6.0, MIT. */
.history-more{align-self:center;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--blue);font-weight:700}
.history-more:disabled{opacity:.6;cursor:wait}
.country-picker{width:91px}
.country-trigger{gap:5px;padding:0 5px}
.country-flag{display:block;width:24px;height:18px;flex:none;object-fit:cover;aspect-ratio:4/3;border-radius:2px;box-shadow:0 0 0 1px #16365d20}
#country-mark{font-size:12px;font-weight:500;color:#5c6e82;letter-spacing:.01em}
.country-trigger .ui-icon{width:12px;height:12px;color:#7a8a9c}

.country-trigger:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}

/* Solicitudes y configuración de la demostración. */
.chat-header-copy{min-width:0;flex:1}.chat-header-copy strong,.chat-header-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-settings-button{margin-left:auto;flex:none;border:1px solid #d5e0ef;border-radius:9px;background:#fff;color:#1648d8;padding:7px 9px;font-size:11px;font-weight:700;max-width:96px;line-height:1.25}
.chat-header .header-live{display:none}
.request-choices{align-self:flex-start;width:min(100%,365px);padding:12px;background:#f3f7fc;border:1px solid #dce6f2;border-radius:16px;display:grid;gap:7px}
.request-choices p{margin:0 0 2px;font-size:13px;font-weight:700;color:var(--ink)}
.request-choices button{min-height:44px;text-align:left;background:#fff;border:1px solid #d3e1f2;border-radius:10px;padding:8px 12px;color:#163d9a;font-weight:650}
.request-choices button:hover{background:#eaf1ff}
.flow-settings-dialog{width:min(94vw,520px);max-height:min(90dvh,800px);padding:0}
@media(max-width:380px){.chat-header{padding-inline:12px;gap:8px}.agent-avatar{width:39px;height:39px;flex:none}.flow-settings-button{max-width:82px;padding:6px}.chat-header-copy strong{font-size:14px}}
/* Conversation header keeps agent identity visible while leaving space for messages. */
.chat-header{height:auto;min-height:58px;padding:6px 14px;gap:10px;background:#fff;box-shadow:none}
.chat-header::after{display:none}
.agent-avatar{width:32px;height:32px;flex:none;border-radius:11px;font-size:17px}
.chat-header-copy{gap:1px}
.chat-header-copy strong{font-size:14px;line-height:1.2;font-weight:700}
.chat-header-copy span{font-size:12px;line-height:1.25}
.flow-settings-button{display:grid;place-items:center;width:44px;height:44px;max-width:none;margin-left:0;padding:0;border:0;border-radius:12px;background:transparent;color:#536780;font-size:26px;line-height:1;letter-spacing:0}
.flow-settings-button:hover{background:#eef3fb;color:#1648d8}
@media(max-width:380px){.chat-header{padding-inline:12px;gap:8px}.agent-avatar{width:32px;height:32px}.flow-settings-button{width:44px;height:44px;max-width:none;padding:0}}
.request-choices{width:min(100%,270px);gap:6px;padding:9px;border-radius:13px;background:linear-gradient(145deg,#f5f9ff,#eef4fc);box-shadow:inset 0 1px #fff}
.request-choices p{font-size:12px;line-height:1.35;margin:0 2px 1px}.request-choices small{font-size:11px;line-height:1.35;color:#536781}
.request-choices button{width:100%;min-height:44px;padding:6px 11px;border:1px solid #1746bd;border-radius:9px;background:#1648d8;color:#fff;box-shadow:0 2px 5px #153e971c;font-size:12.5px;line-height:1.25;font-weight:650;white-space:normal;overflow-wrap:break-word;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
.request-choices button:hover{background:#123fbf;box-shadow:0 3px 8px #153e9726}.request-choices button:active{background:#1038aa;transform:translateY(1px);box-shadow:0 1px 3px #153e971c}
.request-choices button:focus-visible{outline:3px solid #84aaff;outline-offset:2px}
.flow-settings-dialog[open]{padding:20px;display:grid;gap:12px}.flow-settings-dialog h2{margin:0;font-size:22px}.flow-settings-dialog p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.fixture-actions{display:grid;gap:7px}.fixture-actions button,.flow-settings-dialog>button{min-height:44px;border:1px solid #d2deee;border-radius:9px;background:#f7faff;color:#1648d8;padding:8px 11px;text-align:left;font-weight:650}

/* Preserve 44px touch areas even in the narrow mobile composer. */
@media(max-width:380px){.chat-composer .icon-button,.composer-field button{min-width:44px;width:44px;flex-shrink:0}}

.bubble .attachment-image{display:block;max-width:100%;max-height:260px;border-radius:9px;margin-top:8px;object-fit:contain}
.bubble audio{display:block;width:230px;max-width:100%;height:42px;margin-top:8px}
.preview strong{overflow-wrap:anywhere}

/* Coverage is a compact receipt, not a map or an agent reassignment. */
.coverage-summary{display:grid;gap:4px;max-width:270px;font-size:12px;line-height:1.4}
.coverage-summary strong{font-size:13px;font-weight:650}
.coverage-summary span{overflow-wrap:anywhere}

/* Mobile containment: leave a real writing row, without removing any tools. */
.app-shell{height:var(--chat-viewport-height,100dvh);max-height:var(--chat-viewport-height,100dvh)}
.entry-view{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.brand-bar{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.brand-caption{min-width:0;overflow-wrap:anywhere}
.bubble,.bubble-row,.request-choices{min-width:0}
.location-card{min-width:0;width:280px;max-width:100%}
.preview-actions,.dialog-actions{flex-wrap:wrap}
.preview audio{max-width:100%}
.feedback{overflow-wrap:anywhere;max-height:20%;overflow-y:auto;flex-shrink:0}
.feedback:empty{min-height:0}
.composer-field button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.dialog-content{padding:clamp(12px,5vw,24px)}
dialog{max-width:calc(100vw - 24px);max-height:calc(var(--chat-viewport-height,100dvh) - 24px)}
@media(max-width:679px){
  .app-shell{position:relative;top:var(--chat-viewport-top,0px);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  .entry-form input,.composer-field textarea{font-size:16px}
  .chat-composer{display:grid;grid-template-columns:repeat(3,44px) minmax(0,1fr) 44px;gap:4px;padding:6px 10px}
  .composer-field{grid-row:1;grid-column:1 / 5}
  .send-button{grid-row:1;grid-column:5}
  #attach{grid-row:2;grid-column:1}
  #location{grid-row:2;grid-column:2}
  #record{grid-row:2;grid-column:3}
  .icon-button,.composer-field button{width:44px;min-width:44px}
  .messages{padding:16px 12px}
}
@media(min-width:680px){
  .app-shell{height:min(850px,calc(var(--chat-viewport-height,100dvh) - 64px));max-height:calc(var(--chat-viewport-height,100dvh) - 64px)}
}
/* Short viewports (keyboard or landscape) prioritize the conversation. */
@media(max-width:679px) and (max-height:450px){
  .brand-bar{height:48px;padding-top:6px;padding-bottom:6px;gap:12px}
  .brand-bar img{width:68px}
  .brand-caption{font-size:9px}
  .chat-header{min-height:46px;padding-top:4px;padding-bottom:4px}
  .messages{padding-top:10px;padding-bottom:10px}
}

/* Private text uses the same chat, with one compact writing row. Unsupported
   media controls are disabled in JS and absent only in this opt-in mode. */
.private-text-chat .chat-composer{display:flex;min-height:64px;padding:8px 10px;gap:8px}
.private-text-chat .chat-composer [hidden]{display:none!important}
.private-text-chat .composer-field{flex:1;min-width:0}
.private-text-chat .send-button{flex:0 0 44px}
.private-text-chat .demo-note{font-size:10px;letter-spacing:0;line-height:1.4}

.private-text-chat .request-choices button:disabled,.private-text-chat .send-button:disabled{opacity:.55;cursor:default}
@media(max-width:679px){.private-text-chat .composer-field textarea{font-size:16px}.private-text-chat .messages{padding-block:12px}}

/* Three existing choices share one compact touch-friendly row in text mode. */
.private-text-chat .request-choices{width:min(100%,365px);grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px}
.private-text-chat .request-choices :is(p,small){grid-column:1/-1}
.private-text-chat .request-choices button{min-height:52px;padding:7px 5px;text-align:center;font-size:12px;line-height:1.3}

.private-text-chat .bubble-row.agent .bubble{color:#20344d;background:#eaf0f7}
.private-text-chat :is(.bubble-meta,.demo-note,.chat-header-copy span){color:#526a87}
@media(max-width:679px){.private-text-chat .request-choices{align-self:stretch}}
/* Polling replaces the text window: never fade the entire verified transcript. */
.private-text-chat .bubble-row{animation:none}


/* Reviewed private location is local text and a link, never a map preview. */
.private-location-chat .private-location-preview{flex-shrink:0;max-height:35dvh;margin:0 10px 8px;padding:10px}
.private-location-preview[hidden]{display:none}
.private-location-preview-title{font-size:13px;line-height:1.4;margin:0 0 8px;color:#20344d}
.private-location-chat .private-location-card{display:grid;gap:7px;min-width:0;max-width:100%;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.private-location-chat .private-location-card :is(p,strong,span,a){max-width:100%;overflow-wrap:anywhere;word-break:normal}
.private-location-chat .private-location-card a{color:inherit;min-height:44px;display:flex;align-items:center}
.private-location-preview .private-location-card a{color:#1648d8}
.private-location-chat #location{flex:0 0 44px}
.private-location-chat .chat-composer{gap:5px}
.private-location-preview .preview-actions{gap:6px;flex-wrap:wrap}
.private-location-preview .preview-actions button{min-height:44px;min-width:44px;flex:1}
.private-location-preview button:focus-visible,.private-location-card a:focus-visible{outline:2px solid #1648d8;outline-offset:2px}
@media(max-width:380px){.private-location-chat .chat-composer{padding-inline:6px}.private-location-chat .composer-field{padding-left:8px}.private-location-chat .bubble{max-width:90%}}
/* Decorative recording activity, never an amplitude or transmission indicator. */
.voice.is-recording .voice-meter i{height:14px;animation:voice-activity .9s ease-in-out infinite alternate}
.voice.is-recording .voice-meter i:nth-child(2n){height:22px;animation-delay:-.3s}
.voice.is-recording .voice-meter i:nth-child(3n){height:10px;animation-delay:-.6s}
.voice.is-paused .voice-meter i{animation-play-state:paused;opacity:.5}
@keyframes voice-activity{from{transform:scaleY(.4)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.voice.is-recording .voice-meter i{animation:none}}

.bubble p{margin:0 0 .65em}.bubble p:last-of-type{margin-bottom:0}.bubble ul,.bubble ol{margin:.4em 0;padding-left:1.5em}.bubble code{font-family:monospace;white-space:pre-wrap}

.customer-quoted-message{display:block;width:100%;text-align:left;border:0;border-left:3px solid #7494cf;background:#183a6810;color:inherit;padding:6px 8px;border-radius:5px;margin-bottom:6px;font-size:12px;overflow-wrap:anywhere}.customer-cite-message{display:block;margin-left:auto;border:0;background:transparent;color:inherit;font-size:11px;min-height:28px;opacity:.75}.customer-quote-draft{padding:7px 12px;font-size:12px;border-left:3px solid #6e95d6;overflow-wrap:anywhere}

.request-choices{max-height:min(48dvh,360px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

/* Location messages use the same protected card as staff, with customer-specific sizing. */
.private-location-chat a.private-location-card{display:flex;flex-direction:column;gap:0;width:280px;max-width:100%;min-width:0;background:#fff;border:1px solid #dbe5f0;border-radius:13px;overflow:hidden;color:var(--ink);text-decoration:none;font-size:13px;line-height:1.45}
.private-location-chat .private-location-card .private-location-map{display:grid;place-items:center;flex:none;width:100%;height:96px;background-color:#edf3ed;background-image:linear-gradient(28deg,transparent 43%,#fff 44%,#fff 49%,#d8e2d7 50%,transparent 52%),linear-gradient(95deg,transparent 35%,#fff 36%,#fff 42%,transparent 43%),repeating-linear-gradient(0deg,transparent 0 27px,#dce7db 28px 30px),repeating-linear-gradient(90deg,transparent 0 38px,#dce7db 39px 41px)}
.private-location-chat .private-location-map svg{display:block;width:42px;height:42px;max-width:42px;flex:none}
.private-location-chat .private-location-copy{display:flex;flex-direction:column;gap:5px;padding:12px;min-width:0}
.private-location-chat .private-location-copy strong{font-size:14px}.private-location-chat .private-location-copy small{font-size:12px;color:#526780}.private-location-chat .private-location-copy .private-location-link{color:#1648d8;font-size:13px;line-height:24px;text-decoration:underline;text-underline-offset:3px}
.private-location-chat .bubble:has(>.private-location-card){max-width:min(90%,310px);padding:6px;background:#fff;color:var(--ink);border:1px solid #dbe5f0}
/* Full-width writing surface; tools have their own row and keep 44px touch targets. */

/* Choice cards belong to the scrolling transcript and must never collapse. */
.messages>.request-choices{flex:0 0 auto;min-height:min-content;max-height:none;overflow:visible;scrollbar-gutter:auto}
.request-choice-prompt{grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
.request-choice-prompt p{margin:0;font-size:12px;line-height:1.4}
.request-choice-prompt p+p{margin-top:6px}

/* One compact composer, including prepared thumbnails and all sending tools. */
.chat-view .chat-composer{position:relative;display:flex;flex-direction:column;gap:4px;flex:none;margin:8px 10px 3px;padding:10px;background:#fff;border:1px solid #d6dfeb;border-radius:20px;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;min-height:0}
.chat-view .chat-composer:focus-within{border-color:#a2b9d7}.chat-view .chat-composer::after{display:none}.chat-view .chat-composer .composer-field{display:block;width:100%;min-width:0;border:0;border-radius:0;background:none;padding:0;box-shadow:none}.chat-view .chat-composer .composer-field:focus-within{border:0;box-shadow:none;outline:0}.chat-view .chat-composer #message{display:block;width:100%;min-width:0;min-height:36px;max-height:144px;height:36px;margin:0;padding:4px 6px;border:0;outline:0;box-shadow:none;resize:none;background:transparent;color:var(--ink);font-size:16px;line-height:24px;overflow-y:auto}.chat-view .composer-tools{display:flex;align-items:center;gap:6px;min-width:0;width:100%;margin:0}.chat-view .composer-tools :is(.icon-button,#emoji-button){display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:7px;border:0;border-radius:50%;background:transparent;color:#61758c}.chat-view .composer-tools #record{margin-left:auto}.chat-view .composer-tools .send-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:7px;border-radius:50%;background:var(--blue)}.customer-attach-menu{position:absolute;z-index:30;bottom:calc(100% + 8px);left:0;display:flex;flex-direction:column;min-width:210px;padding:6px;background:#fff;border:1px solid #dce5f0;border-radius:13px;box-shadow:0 8px 26px #16325518}.customer-attach-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:8px;background:#fff;color:#243e60;font-size:14px;text-align:left}.customer-attach-menu button:hover{background:#f0f5fc}.customer-attach-menu svg{width:19px;height:19px}.customer-location-again{border:0;border-radius:7px;background:#edf4ff;color:#1b59b4;padding:7px 9px;margin-top:6px;font-size:12px}
html[data-chat-keyboard] .app-shell{position:fixed;top:var(--chat-viewport-top,0px);left:0;right:0;width:min(100%,520px);height:var(--chat-viewport-height,100dvh);max-height:var(--chat-viewport-height,100dvh);margin:auto}html[data-chat-keyboard] .brand-bar{display:flex;height:44px;padding-top:4px;padding-bottom:4px;gap:12px}html[data-chat-keyboard] .brand-bar img{width:84px;height:34px;object-fit:contain}html[data-chat-keyboard] .chat-header{padding:5px 10px;min-height:38px}html[data-chat-keyboard] .agent-avatar{width:30px;height:30px;font-size:14px}html[data-chat-keyboard] .chat-header-copy strong{font-size:14px}html[data-chat-keyboard] .chat-header-copy span{font-size:11px}html[data-chat-keyboard] .chat-view .chat-composer{margin:4px 7px;padding:6px 8px}html[data-chat-keyboard] .chat-composer #message{max-height:84px}html[data-chat-keyboard] .demo-note{display:none}html[data-chat-keyboard] .messages{padding-block:6px}.entry-view #customer-phone[aria-invalid=true]{border-color:#e52f45;box-shadow:0 0 0 1px #e52f451a}

.private-media-attachment.is-image-preview{width:240px;max-width:100%;min-height:160px}.is-image-preview>.private-media-title,.is-image-preview>a{display:none}.is-image-preview .attachment-image{width:100%;height:160px;max-height:160px;border-radius:12px;object-fit:contain;cursor:zoom-in}.customer-attach-menu #location:disabled{display:flex!important;opacity:.55}
.chat-episode-separator{margin:14px auto 8px;text-align:center;font-size:11px;color:#60758c;line-height:1.4}.history-window-gap{display:block;margin:12px auto;border:1px solid #dce5ef;border-radius:12px;padding:8px;background:white;color:#426587;font-size:12px}
.customer-attention-notice{align-self:center;max-width:90%;margin:8px auto;padding:5px 11px;border-radius:14px;background:#e9eff5;color:#526981;font-size:12px;line-height:1.45;text-align:center}.customer-system-event .bubble-meta{font-size:10px;margin:2px 0 0}

/* Brand stays within a white, reserved header at every viewport size. */
.app-shell .brand-bar{background:#fff;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}.brand-bar::after{display:none}.app-shell .brand-bar img{display:block;flex:0 1 auto;max-width:42%;object-fit:contain;object-position:center;height:auto;max-height:100%;align-self:center}.private-text-chat .customer-system-event .bubble-meta{color:#fff;opacity:1}

/* Automatic messages share the agent layout; only their colors differ. */
.private-text-chat .bubble-row.automated .bubble{text-align:left;background:#edf2f8;color:var(--ink)}
.private-text-chat .bubble-row.customer-system-event .bubble{background:#b91c1c;color:#fff}
.order-notification-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 10px;
  padding: 4px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.order-notification-notice button {
  flex: none;
  min-height: 36px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
}
.order-notification-notice button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.order-notification-notice .order-notification-dismiss {
  width: 36px;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.order-notification-dismiss:hover { background: #eaf1fb; }
.order-notification-notice[hidden],
.order-notification-notice button[hidden],
html[data-chat-keyboard] .order-notification-notice { display: none; }

.customer-whatsapp-link { width: min(420px, calc(100vw - 28px)); padding: 0; }
.customer-whatsapp-link h2 { margin: 0; color: var(--ink); font-size: 20px; }
.customer-whatsapp-link .dialog-content { display: grid; gap: 12px; }
.customer-whatsapp-link p { margin: 0; font-size: 13px; }
.customer-whatsapp-link-code { width: 100%; min-width: 0; resize: none; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7faff; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-whatsapp-link .dialog-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.customer-whatsapp-link [hidden] { display: none !important; }

.private-text-chat .first-hour-offer{grid-template-columns:repeat(2,minmax(0,1fr))}
.first-hour-offer button[data-first-hour-decision='no']{background:#fff;color:#1648ad;border-color:#ccd9ed;box-shadow:none}
.first-hour-offer button[data-first-hour-decision='no']:hover{background:#eef4ff}

/* Recovery and permissions use the existing GBC dialog/button language. */
.client-connection-retry{align-self:flex-start;min-height:40px;margin:5px 18px;padding:7px 12px;border:1px solid #bed0ec;border-radius:9px;background:#edf4ff;color:#1648ad;font-weight:600;font-size:13px}
.feedback.is-warning{display:flex;align-items:flex-start;gap:7px;line-height:1.45}.feedback.is-warning::before{content:'!';display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;margin-top:1px;border:1.5px solid currentColor;border-radius:50%;font-size:11px;font-weight:800;line-height:1}
.feedback:not(.is-warning){color:var(--muted)}
.customer-attention-actions{display:flex;align-items:center;justify-content:space-between;flex:none;gap:10px;padding:6px 14px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;background:#f8faff}.customer-attention-actions button{min-height:36px;padding:6px 10px;border:1px solid #cfdbef;border-radius:8px;color:var(--blue);background:#fff;font-size:12px;font-weight:600}

/* Existing client close dialog retains its original dimensions and controls. */
.customer-finish-dialog{width:min(440px,calc(100vw - 28px));max-height:85dvh;margin:auto;padding:0;overflow-y:auto;border:1px solid var(--line);background:#fff;color:var(--ink)}
.customer-finish-dialog .dialog-content{padding:22px}.customer-finish-dialog h2{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.025em}.customer-finish-dialog p{font-size:13px;line-height:1.5}.customer-finish-dialog .dialog-actions button{min-height:44px;font-size:13px}
/* R113 per-message send feedback */
#messages .bubble-row:not(.agent) .bubble-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.chat-view .private-message-receipt{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex:none;line-height:1}
.chat-view .private-message-receipt .gbc-ui-icon{display:block;width:15px;height:15px}
.chat-view .bubble-row:not(.agent) .private-message-receipt{color:inherit;opacity:.88}
.chat-view .client-outbox-row .bubble>p{margin:0 0 4px;white-space:pre-wrap}
.chat-view .client-outbox-row .bubble{min-width:112px}
.chat-view .client-send-failure{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 10px;margin-top:6px;padding-top:5px;border-top:1px solid #ffffff36}
.chat-view .client-send-error{font-size:11px;line-height:1.35;color:inherit}
.chat-view .client-message-retry{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:3px 8px;border:1px solid #ffffff70;border-radius:7px;background:#ffffff12;color:inherit;font-size:12px;font-weight:600;line-height:1.3}
.chat-view .client-message-retry .gbc-ui-icon{width:14px;height:14px;flex:none}.chat-view .client-message-retry:hover{background:#ffffff26}.chat-view .client-message-retry:disabled{opacity:.55;cursor:default}
.chat-view .client-message-retry:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.order-notification-dismiss .gbc-ui-icon{width:18px;height:18px;margin:auto}

/* R113 status contrast and unavailable-mic alignment */
.chat-view .composer-tools #send-text{margin-left:auto}.chat-view .composer-tools:has(#record:not([hidden])) #send-text{margin-left:0}
#messages .bubble-row:not(.agent) .bubble-meta{color:#ffffffc9}
.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .bubble{background:#f1f5fc;border:1px solid #d5e1f2;color:#254d77}
#messages .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .bubble-meta{color:#63738b}
.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .client-send-failure{border-color:#d3deee}
.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .client-send-error,.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .private-message-receipt{color:#a82e45}
.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .client-message-retry{border-color:#bdcfe6;background:#fff;color:#1648d8}
.chat-view .client-outbox-row:is([data-send-state=failed],[data-send-state=unconfirmed]) .client-message-retry:hover{background:#e8f0fc}
.messages{position:relative}
.history-loading{position:static;display:grid;place-items:center;order:-1;flex:0 0 26px;width:26px;height:26px;margin:0 auto;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--blue);pointer-events:none;box-shadow:0 2px 8px #173d6b12}
/* Keep one row reserved, so showing or hiding the loader never moves the anchor. */
.messages>.history-loading[hidden]{display:grid!important;visibility:hidden}
.history-loading .gbc-ui-icon{width:17px;height:17px}
.chat-startup{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center;background:var(--wash);color:var(--ink)}
.chat-startup>img{object-fit:contain}
html:has(#chat-startup:not([hidden]))>[data-offline-notice]{display:none}
.chat-startup-status{display:grid;justify-items:center;gap:12px}
.chat-startup p{max-width:32ch;margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.chat-startup-spinner{width:34px;height:34px;border:3px solid #dce6fa;border-top-color:var(--blue);border-radius:50%}
.chat-startup button{min-height:44px;padding:0 16px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:600}
.chat-startup-spinner,.history-loading .gbc-ui-icon{animation:client-history-spin .8s linear infinite}
@keyframes client-history-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.chat-startup-spinner,.history-loading .gbc-ui-icon{animation:none!important}}
.message-choice-buttons{display:grid;gap:6px;margin-top:10px}
.message-choice-buttons button,.customer-attention-notice button{min-height:44px;width:100%;padding:8px 12px;border:1px solid #cbd9eb;border-radius:10px;background:#fff;color:var(--blue);text-align:center;font-size:13px;line-height:1.3;font-weight:600}
.message-choice-buttons button:disabled,.customer-attention-notice button:disabled{opacity:.55;cursor:default}
.customer-attention-notice button{margin-top:9px}
@media(hover:hover) and (pointer:fine){.message-choice-buttons button:not(:disabled):hover,.customer-attention-notice button:not(:disabled):hover{background:var(--soft)}}

/* Country-specific content only. The shared GBC component owns the menu,
   search field, selected state, focus and viewport placement. */
.country-menu .select-option-label{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.country-menu .country-option-name{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere}
.country-menu .country-option-dial{flex:none;white-space:nowrap;font-size:12px;color:#617996}
.country-trigger.gbc-select-trigger{width:100%;min-width:0;height:100%;min-height:44px;margin:0;border:0;box-shadow:none}
