.fmcs-souffle-title-row {
  --fmcs-souffle-size: 154px;
  display: flex; position: relative; align-items: center; gap: 14px;
  box-sizing: border-box; min-width: 0; max-width: 100%;
}
.fmcs-souffle-title-row > h1 { min-width: 0; }
#fmcs-souffle {
  flex: 0 0 var(--fmcs-souffle-size); width: var(--fmcs-souffle-size);
  height: var(--fmcs-souffle-size); display: block; box-sizing: border-box;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; cursor: pointer; line-height: 1; align-self: center;
}
#fmcs-souffle img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  max-width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0;
  box-shadow: none; background: transparent;
}
#fmcs-souffle:focus-visible { outline: 2px solid #155e63; outline-offset: 3px; }
.fmcs-souffle-title-row.fmcs-souffle-in-margin { display: block; }
.fmcs-souffle-in-margin > #fmcs-souffle { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .fmcs-souffle-title-row { --fmcs-souffle-size: 84px; gap: 10px; }
}
@media (max-width: 360px) {
  .fmcs-souffle-title-row { --fmcs-souffle-size: 64px; gap: 8px; }
}

/* 1.1.0: the mascot is a single accessible button with two visual layers. */
#fmcs-souffle { position: relative; }
#fmcs-souffle .fmcs-souffle-canvas {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; margin: 0; padding: 0; border: 0; background: transparent;
  pointer-events: none;
}
#fmcs-souffle.fmcs-souffle-show-canvas img { visibility: hidden; }
#fmcs-souffle.fmcs-souffle-show-canvas .fmcs-souffle-canvas { display: block; }
@media (prefers-reduced-motion: reduce) {
  #fmcs-souffle, #fmcs-souffle img, #fmcs-souffle canvas { animation: none !important; transition: none !important; }
}


/* 2.1: small floating dialogue. Never expands the hero or covers the entire page. */
#fmcs-souffle { overflow:visible; }
#fmcs-souffle .fmcs-souffle-hint { position:absolute; left:0; right:0; bottom:0; padding:2px 3px; border-radius:8px; background:rgba(255,255,255,.94); color:#155e63; font:600 10px/1.2 system-ui,sans-serif; text-align:center; pointer-events:none; }
#fmcs-souffle[data-conversation="listening"]::after { content:""; position:absolute; right:7px; top:7px; width:12px; height:12px; background:#b42336; border:2px solid white; border-radius:50%; box-shadow:0 0 0 3px rgba(180,35,54,.18); pointer-events:none; }
.fmcs-souffle-bubble { position:fixed; z-index:99990; box-sizing:border-box; width:min(340px,calc(100vw - 24px)); max-height:min(480px,65vh); overflow:auto; overscroll-behavior:contain; padding:13px 15px; border:1px solid #b6d6cc; border-radius:18px; background:#fff; color:#164e52; box-shadow:0 12px 35px rgba(10,55,64,.18); font:14px/1.5 system-ui,sans-serif; text-align:left; }
.fmcs-souffle-bubble[hidden],.fmcs-souffle-bubble [hidden]{display:none!important;}
.fmcs-souffle-head,.fmcs-souffle-foot { display:flex; align-items:center; gap:6px; }
.fmcs-souffle-head strong {font-size:15px; color:#12665a; margin-right:auto;}
.fmcs-souffle-bubble button {display:inline-flex; align-items:center; justify-content:center; min-width:30px; min-height:30px; margin:0; padding:3px 6px; background:#f3f9f7; border:1px solid #d6e7e1; border-radius:50%; box-shadow:none; color:#155e63; font:16px/1 system-ui,sans-serif; cursor:pointer; }
.fmcs-souffle-bubble button:disabled {opacity:.5; cursor:default;}
.fmcs-souffle-bubble button:focus-visible,.fmcs-souffle-bubble input:focus-visible,.fmcs-souffle-bubble summary:focus-visible {outline:2px solid #155e63;outline-offset:2px;}
.fmcs-souffle-bubble p {margin:8px 0; overflow-wrap:anywhere;}
.fmcs-souffle-status {font-weight:600; color:#155e63;}
.fmcs-souffle-bubble[data-phase="listening"] .fmcs-souffle-status::before {content:""; display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:50%; background:#b42336;}
.fmcs-souffle-bubble .fmcs-souffle-note {font-size:11px;color:#49676a; margin:4px 0 0;}
.fmcs-souffle-bubble .fmcs-souffle-note:empty {display:none;}
.fmcs-souffle-privacy {font-size:11px; flex:1; color:#49676a;}
.fmcs-souffle-bubble summary {cursor:pointer;}
.fmcs-souffle-write {display:flex;align-items:center;gap:6px;margin:6px 0;}
.fmcs-souffle-write input {box-sizing:border-box;min-width:0; flex:1; border:1px solid #b6d6cc;border-radius:10px;padding:8px;font:inherit;color:#164e52;background:white;}
.fmcs-souffle-result {overflow-wrap:anywhere;white-space:normal;}
.fmcs-souffle-result p {white-space:pre-wrap;}
.fmcs-souffle-result h4 {font-size:14px;line-height:1.4;margin:8px 0;}
.fmcs-souffle-result ul {margin:6px 0;padding-left:18px;}
.fmcs-souffle-result a {color:#075b74;text-decoration:underline;}
.fmcs-souffle-question-echo {background:#e8f4ef;border-radius:12px 12px 3px 12px;padding:8px 10px;}
@media (max-width:767px){#fmcs-souffle .fmcs-souffle-hint{font-size:9px;bottom:-4px;}}

.fmcs-souffle-voice-label {font-size:11px;color:#52686a;white-space:nowrap;}
