/* Sleepm AI Chat 1.5.1: three tabs pinned at the top, the living guide and her greeting under them, a roomy conversation
   that reads top to bottom, outlined buttons, 17 px text. While the chat is open the launcher is a BioCrystal that closes it.
   Night look by default, frosty light look under html.lloyd-light (no gold fills there). Hover effects only where there is a
   real pointer; touch gets press states; reduced motion gets colour only. */
html.sac-on #slc, html.sac-on #pcg, html.sac-on #slcL { display: none !important; }

/* ---------- the launcher: the guide herself when closed, a BioCrystal when open */
.sac-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 2147483000;
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer;
  font: 500 14px/1 Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #eef0ff;
  -webkit-tap-highlight-color: transparent; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.sac-fl { padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255, 217, 138, .28); background: rgba(10, 13, 36, .92); color: #eef0ff; white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.sac-fw { position: relative; flex: none; width: 76px; height: 76px; display: block; }
.sac-fa, .sac-fc { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: opacity .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease; }
.sac-fa { background: #141a52; box-shadow: 0 0 0 1.5px #e2bf55, 0 12px 28px -10px rgba(0, 0, 0, .75); }
.sac-fa > svg { width: 24px; height: 24px; fill: #ffd98a; }
.sac-fab-on .sac-fa { background: none; box-shadow: 0 0 0 0 rgba(255, 217, 138, 0), 0 12px 28px -10px rgba(0, 0, 0, .75); }
.sac-fab:focus-visible { outline: none; }
.sac-fab:focus-visible .sac-fw { outline: 2px solid #ffd98a; outline-offset: 6px; border-radius: 50%; }
.sac-fab-q .sac-fl, html.sac-open .sac-fab .sac-fl { opacity: 0; transform: translateX(10px); pointer-events: none; }
.sac-fab-q:focus-visible .sac-fl { opacity: 1; transform: none; }
.sac-fab:active { transform: scale(.96); }
html.sac-unread .sac-fa::after { content: ""; position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 0 2.5px #0a0d24; }

/* the crystal: a dark glass disc, a faceted point, a gold and a silver thread. It floats a little; a glint crosses now and then. */
.sac-fc { opacity: 0; transform: scale(.5) rotate(-40deg); pointer-events: none; background: radial-gradient(circle at 50% 34%, #232b72 0%, #111646 55%, #0a0d2c 100%); box-shadow: 0 0 0 1.5px rgba(226, 191, 85, .75), 0 12px 28px -10px rgba(0, 0, 0, .75); }
.sac-fc svg { width: 100%; height: 100%; overflow: visible; }
html.sac-open .sac-fa { opacity: 0; transform: scale(.5) rotate(30deg); }
html.sac-open .sac-fc { opacity: 1; transform: none; }
.sac-fc .f1 { fill: #eef2ff; } .sac-fc .f2 { fill: #b9c5ff; } .sac-fc .f3 { fill: #9aa9f5; } .sac-fc .f4 { fill: #6373d6; } .sac-fc .f5 { fill: #7686e6; } .sac-fc .f6 { fill: #4a57b4; }
.sac-cgl { fill: #fff; opacity: 0; }
.sac-csh { stroke-dasharray: 9 140; stroke-dashoffset: 9; opacity: .9; }
.sac-cgem { transform-origin: 32px 32px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html.sac-open .sac-fc .sac-cgem { animation: sacFloat 6s ease-in-out infinite; }
html.sac-open .sac-fc .sac-cgl.g1 { animation: sacGlint 7s ease-in-out 1.2s infinite; }
html.sac-open .sac-fc .sac-cgl.g2 { animation: sacGlint 7s ease-in-out 1.75s infinite; }
html.sac-open .sac-fc .sac-csh { animation: sacThread 7s cubic-bezier(.4, 0, .3, 1) 2s infinite; }
html.sac-open .sac-fc .sac-csh.s2 { animation-delay: 5.2s; }
@keyframes sacFloat { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-1.5px); } }
@keyframes sacGlint { 0%, 12%, 100% { opacity: 0; } 5% { opacity: .75; } }
@keyframes sacThread { 0% { stroke-dashoffset: 9; } 30%, 100% { stroke-dashoffset: -80; } }

html.lloyd-light .sac-fl { border-color: rgba(126, 166, 214, .6); background: rgba(255, 255, 255, .96); color: #171c3c; box-shadow: 0 8px 20px -12px rgba(40, 52, 112, .5); }
html.lloyd-light .sac-fa { box-shadow: 0 0 0 1.5px #5f8dc8, 0 12px 26px -12px rgba(40, 52, 112, .55); }
html.lloyd-light .sac-fa > svg { fill: #2f5f96; }
html.lloyd-light .sac-fab-on .sac-fa { box-shadow: 0 0 0 0 rgba(95, 141, 200, 0), 0 12px 26px -12px rgba(40, 52, 112, .55); }
html.lloyd-light .sac-fab:focus-visible .sac-fw { outline-color: #2f5f96; }
html.lloyd-light.sac-unread .sac-fa::after { background: #2f5f96; box-shadow: 0 0 0 2.5px #fff; }
html.lloyd-light .sac-fc { background: radial-gradient(circle at 50% 34%, #2b3a80 0%, #1a2358 60%, #131a45 100%); box-shadow: 0 0 0 1.5px #8fb2de, 0 0 0 5px rgba(255, 255, 255, .7), 0 12px 26px -12px rgba(40, 52, 112, .6); }

/* ---------- the panel */
.sac {
  --bg: #0c1030; --bg2: #121844; --bd: rgba(159, 176, 255, .18); --ink: #eef0ff; --dim: #aab1d8; --acc: #ffd98a;
  --ubd: rgba(255, 217, 138, .5); --cbd: rgba(255, 217, 138, .3); --abg: rgba(255, 255, 255, .065); --line: rgba(159, 176, 255, .13); --in: rgba(255, 255, 255, .045); --onbg: rgba(255, 217, 138, .14); --hov: rgba(255, 217, 138, .09); --pop: #131840; --ubg: rgba(255, 217, 138, .09); --avbg: #080b24;
  position: fixed; right: 24px; bottom: 108px; z-index: 2147483001;
  width: 424px; max-width: calc(100vw - 32px); height: min(690px, calc(100vh - 132px));
  display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--bd); background: var(--bg); color: var(--ink);
  box-shadow: 0 32px 72px -28px rgba(0, 0, 0, .9);
  font: 400 17px/1.5 Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-align: left; -webkit-font-smoothing: antialiased;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: 100% 100%;
  transition: opacity .24s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sac[hidden] { display: none !important; }
.sac.sac-show { opacity: 1; transform: none; }
.sac *, .sac *::before, .sac *::after { box-sizing: border-box; }
.sac button, .sac input, .sac textarea { font: inherit; letter-spacing: 0; text-transform: none; box-shadow: none; margin: 0; min-height: 0; -webkit-tap-highlight-color: transparent; }
.sac p { margin: 0; }

/* tabs: always at the very top */
.sac-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 0 16px; }
.sac-tabs { position: relative; flex: 1; min-width: 0; display: flex; padding: 4px; border-radius: 999px; background: var(--in); border: 1px solid var(--line); }
.sac-tind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: var(--onbg); border: 1px solid var(--cbd); pointer-events: none; }
.sac-tind.rdy { transition: transform .34s cubic-bezier(.3, .9, .3, 1), width .34s cubic-bezier(.3, .9, .3, 1); }
.sac .sac-tab { position: relative; flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-size: 15.5px; font-weight: 500; line-height: 1.15; cursor: pointer; white-space: nowrap; transition: color .18s ease; }
.sac .sac-tab.on { color: var(--ink); font-weight: 600; }
.sac .sac-x { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease, transform .12s ease; }
.sac .sac-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the guide and her greeting */
.sac-hero { flex: none; position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--line); }
.sac-av { flex: none; width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ubd); background: var(--avbg); color: var(--acc); transition: transform .17s ease, opacity .17s ease; }
.sac-av svg { width: 26px; height: 26px; fill: currentColor; }
.sac-av.sac-pep { border: 0; box-shadow: 0 0 0 1px var(--cbd), 0 10px 22px -12px rgba(0, 0, 0, .7); }
.sac-av.sac-swap { transform: scale(.55) rotate(-8deg); opacity: 0; }
.sac-av.sac-pop { animation: sacPop .26s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes sacPop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
.sac-hi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sac-hi b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 700 21px/1.2 Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); padding-right: 96px; }
.sac-hi em { position: relative; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .08em; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line); color: var(--dim); }
.sac-hi em.sac-prev::after { content: ""; position: absolute; top: -3px; right: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.sac-hi2 { font-size: 17px; line-height: 1.35; color: var(--dim); }
.sac-hb { position: absolute; top: 12px; right: 10px; display: flex; align-items: center; }
.sac-mw { position: relative; display: flex; }
.sac .sac-lb, .sac .sac-ob { flex: none; height: 36px; width: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background .18s ease, color .18s ease, transform .12s ease; }
.sac .sac-lb { width: auto; padding: 0 7px 0 6px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.sac-lbf { display: flex; }
.sac-flag { flex: none; display: block; width: 21px; height: 15px; border-radius: 3.5px; box-shadow: 0 0 0 1px rgba(150, 160, 205, .4); }
.sac .sac-lb > svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.sac .sac-lb[aria-expanded="true"] > svg { transform: rotate(180deg); }
.sac .sac-ob svg { width: 20px; height: 20px; fill: currentColor; }
.sac .sac-lb[aria-expanded="true"], .sac .sac-ob[aria-expanded="true"] { color: var(--ink); background: var(--abg); }
.sac .sac-lb:active, .sac .sac-ob:active, .sac .sac-x:active { background: var(--abg); color: var(--ink); transform: scale(.94); }
.sac-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 200px; padding: 4px; border-radius: 14px; border: 1px solid var(--bd); background: var(--pop); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); display: flex; flex-direction: column; gap: 0; transform-origin: 100% 0; animation: sacMenu .16s ease both; }
@keyframes sacMenu { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sac-menu[hidden] { display: none; }
.sac .sac-mi { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
.sac .sac-mi > span { flex: 1; }
.sac .sac-mi:focus-visible, .sac .sac-mi:active { background: var(--abg); }
.sac .sac-mi.on { font-weight: 600; }
.sac-ck { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--acc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.sac .sac-mi.on .sac-ck { opacity: 1; }
.sac-ainote { padding: 8px 12px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); white-space: nowrap; }

/* the open tab */
.sac-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sac-view[hidden] { display: none; }
.sac-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 24px; gap: 14px; }
.sac-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.sac-m { flex: none; max-width: 88%; padding: 11px 15px; border-radius: 18px; overflow-wrap: anywhere; line-height: 1.5; }
.sac-a { align-self: flex-start; background: var(--abg); border-bottom-left-radius: 6px; }
.sac-u { align-self: flex-end; background: var(--ubg); border: 1px solid var(--cbd); border-bottom-right-radius: 6px; color: var(--ink); margin-top: 6px; }
.sac-m a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sac-m b { font-weight: 600; }
.sac-in { animation: sacIn .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sacIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sac-typing { display: flex; gap: 5px; padding: 17px 16px; }
.sac-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: sacDot 1.2s ease-in-out infinite; }
.sac-typing i:nth-child(2) { animation-delay: .15s; } .sac-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sacDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sac-note { flex: none; align-self: center; max-width: 92%; text-align: center; font-size: 15px; line-height: 1.45; color: var(--dim); padding: 4px 8px; }
.sac-site { flex: none; align-self: flex-start; font-size: 15px; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sac-site[hidden] { display: none; }
.sac-lbl { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* questions: full-width outlined rows, easy to read and to tap */
.sac-start, .sac-qlist, .sac-sheet { display: flex; flex-direction: column; gap: 10px; }
.sac-start { flex: none; }
.sac-start .sac-lbl { margin-bottom: 2px; }
.sac .sac-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px 10px 18px; border-radius: 16px; border: 1px solid var(--cbd); background: transparent; color: var(--ink); font-size: 17px; line-height: 1.3; cursor: pointer; text-align: left; transition: background .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
.sac-ar { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .18s ease; }
.sac .sac-chip:active { background: var(--onbg); transform: scale(.99); }
.sac .sac-chip-team { border-style: dashed; color: var(--acc); }
.sac .sac-act { flex: none; align-self: flex-start; width: auto; min-height: 44px; border-radius: 999px; color: var(--acc); font-size: 16px; animation: sacIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.sac .sac-allq { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--acc); font-size: 16px; font-weight: 500; cursor: pointer; }
.sac-hint { font-size: 16px; color: var(--dim); }
.sac-cats { flex: none; position: relative; display: flex; gap: 0; padding: 4px; border-radius: 14px; background: var(--in); }
.sac-ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 10px; background: var(--onbg); pointer-events: none; }
.sac-ind.rdy { transition: transform .32s cubic-bezier(.3, .9, .3, 1), width .32s cubic-bezier(.3, .9, .3, 1); }
.sac .sac-cat { position: relative; flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 4px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-size: 14.5px; font-weight: 500; line-height: 1.15; cursor: pointer; transition: color .18s ease; }
.sac .sac-cat.on { color: var(--ink); font-weight: 600; }
.sac .sac-cat:active { color: var(--ink); }

/* the small way back to the questions once a conversation is going: it opens over the conversation, never inside it */
.sac-dock { flex: none; position: relative; padding: 4px 16px 0; }
.sac-dock[hidden] { display: none; }
.sac .sac-sugg { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 14.5px; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.sac-sp { width: 13px; height: 13px; fill: var(--acc); }
.sac .sac-sugg > svg:last-child { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); transition: transform .2s ease; }
.sac .sac-sugg[aria-expanded="true"] { color: var(--ink); border-color: var(--cbd); }
.sac .sac-sugg[aria-expanded="true"] > svg:last-child { transform: none; }
.sac-sheet { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 4; padding: 12px; border-radius: 20px; border: 1px solid var(--bd); background: var(--pop); box-shadow: 0 -18px 44px -18px rgba(0, 0, 0, .85); transform-origin: 20% 100%; animation: sacSheet .22s cubic-bezier(.2, .8, .2, 1) both; }
.sac-sheet[hidden] { display: none; }
@keyframes sacSheet { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* composer: one field, a small paperclip inside it, an outlined send button */
.sac-form { flex: none; display: flex; align-items: flex-end; gap: 4px; margin: 10px 16px 16px; padding: 5px 5px 5px 18px; border-radius: 28px; border: 1px solid var(--bd); background: var(--in); transition: border-color .18s ease; }
.sac-form:focus-within { border-color: var(--ubd); }
.sac .sac-form textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; line-height: 1.4; padding: 10px 0; max-height: 120px; border-radius: 0; }
.sac .sac-form textarea::placeholder, .sac .sac-ho input::placeholder, .sac .sac-ho textarea::placeholder { color: var(--dim); opacity: .9; }
.sac .sac-clip { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--dim); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease, transform .12s ease; }
.sac .sac-clip svg, .sac .sac-hoclip svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.sac .sac-clip:active { color: var(--acc); background: var(--abg); transform: scale(.94); }
.sac .sac-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ubd); background: transparent; color: var(--acc); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .14s ease, background .18s ease, border-color .18s ease; }
.sac .sac-send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.sac .sac-send:active { transform: scale(.92); background: var(--onbg); }
.sac .sac-send:disabled { opacity: .4; cursor: default; }

/* Talk to us: the hand-off form, files, the team */
.sac-ho { flex: none; display: flex; flex-direction: column; gap: 10px; }
.sac-hoh { font: 700 19px/1.25 Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); }
.sac-ho p { margin: 0 0 4px; font-size: 16.5px; line-height: 1.45; color: var(--dim); }
.sac .sac-ho input, .sac .sac-ho textarea { width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--bd); background: var(--in); color: var(--ink); font-size: 17px; line-height: 1.4; outline: 0; resize: none; transition: border-color .18s ease; }
.sac .sac-ho input:focus, .sac .sac-ho textarea:focus { border-color: var(--ubd); outline: 2px solid var(--cbd); outline-offset: 1px; }
.sac-horow { display: flex; gap: 10px; align-items: center; margin-top: 2px; }
.sac .sac-btn { flex: 1; min-height: 50px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--ubd); background: transparent; color: var(--acc); font-size: 16.5px; font-weight: 600; cursor: pointer; transition: transform .14s ease, background .18s ease, border-color .18s ease; }
.sac .sac-btn:active { transform: scale(.98); background: var(--onbg); }
.sac .sac-btn:disabled { opacity: .5; }
.sac .sac-ho .sac-hoclip { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--bd); background: transparent; color: var(--acc); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s ease; }
.sac-hoerr { font-size: 15px; color: #ffb4a8; min-height: 0; }
.sac-hoerr:empty { display: none; }
.sac-other { flex: none; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.sac-other p { margin-top: 6px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.sac-other a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sac-card { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--cbd); }
.sac-card .sac-btn { flex: none; align-self: stretch; }
.sac-okic { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ubd); display: flex; align-items: center; justify-content: center; }
.sac-okic .sac-ck { opacity: 1; width: 15px; height: 15px; }
.sac-tray { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 16px 0; }
.sac-ho .sac-tray { margin: 0; }
.sac-tray[hidden] { display: none; }
.sac-file-c { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--abg); font-size: 14px; color: var(--ink); }
.sac-file-c img, .sac-file-c .sac-doc { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.sac-doc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--acc); }
.sac-doc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sac-file-c i { font-style: normal; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sac .sac-file-c button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sac-file-c.sac-up { opacity: .6; }
.sac-file-c.sac-up::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sacUp 1.1s linear infinite; }
@keyframes sacUp { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.sac-traymsg { flex-basis: 100%; font-size: 14px; color: var(--dim); }
.sac-traymsg:empty { display: none; }
.sac-traymsg.sac-bad { color: #ffb4a8; }
.sac-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.sac-thumbs:first-child { margin-top: 0; }
.sac-thumbs img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.sac-thumbs .sac-doc { padding: 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; }
.sac-thumbs .sac-doc i { font-style: normal; color: var(--ink); }
.sac-tick { display: block; margin-top: 4px; font-size: 13px; color: var(--dim); text-align: right; }
.sac-tick::before { content: "\2713\00a0"; color: var(--acc); }
.sac-s { border: 1px solid var(--cbd); }
.sac-who { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.sac-teambar { flex: none; display: flex; align-items: center; gap: 8px; margin: 4px 16px 0; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--in); font-size: 14px; line-height: 1.35; color: var(--dim); }
.sac-teambar[hidden] { display: none; }
.sac-teambar span { flex: 1; min-width: 0; }
.sac .sac-again { flex: none; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cbd); background: transparent; color: var(--acc); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .18s ease; }
.sac .sac-again:active { background: var(--onbg); }
.sac .sac-x:focus-visible, .sac .sac-tab:focus-visible, .sac .sac-lb:focus-visible, .sac .sac-ob:focus-visible, .sac .sac-chip:focus-visible, .sac .sac-cat:focus-visible, .sac .sac-allq:focus-visible, .sac .sac-sugg:focus-visible, .sac .sac-send:focus-visible, .sac .sac-clip:focus-visible, .sac .sac-hoclip:focus-visible, .sac .sac-again:focus-visible, .sac .sac-mi:focus-visible, .sac .sac-btn:focus-visible, .sac .sac-file-c button:focus-visible, .sac-m a:focus-visible, .sac-other a:focus-visible, .sac-site:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- a real pointer: quiet hover effects (touch screens get the :active press states above instead) */
@media (hover: hover) and (pointer: fine) {
  .sac-fab:hover { transform: translateY(-3px); }
  .sac-fab:hover .sac-fl { opacity: 1; transform: none; }
  .sac-fab-on:hover .sac-fa { box-shadow: 0 0 0 6px rgba(255, 217, 138, .2), 0 16px 30px -10px rgba(0, 0, 0, .8); }
  html.lloyd-light .sac-fab-on:hover .sac-fa { box-shadow: 0 0 0 6px rgba(95, 141, 200, .22), 0 16px 28px -12px rgba(40, 52, 112, .6); }
  html.sac-open .sac-fab:hover .sac-fc { box-shadow: 0 0 0 1.5px #ffd98a, 0 0 0 6px rgba(255, 217, 138, .16), 0 16px 30px -10px rgba(0, 0, 0, .8); }
  html.lloyd-light.sac-open .sac-fab:hover .sac-fc { box-shadow: 0 0 0 1.5px #5f8dc8, 0 0 0 6px rgba(95, 141, 200, .22), 0 16px 28px -12px rgba(40, 52, 112, .6); }
  html.sac-open .sac-fab:hover .sac-cgem { transform: rotate(-14deg) scale(1.04); animation-play-state: paused; }
  .sac .sac-lb:hover, .sac .sac-ob:hover, .sac .sac-x:hover { color: var(--ink); background: var(--abg); }
  .sac .sac-mi:hover { background: var(--abg); }
  .sac .sac-tab:hover, .sac .sac-cat:hover { color: var(--ink); }
  .sac .sac-chip:hover { background: var(--hov); border-color: var(--ubd); }
  .sac .sac-chip:hover .sac-ar, .sac .sac-allq:hover .sac-ar { transform: translateX(3px); opacity: 1; }
  .sac .sac-sugg:hover { color: var(--ink); border-color: var(--cbd); background: var(--hov); }
  .sac .sac-clip:hover { color: var(--acc); background: var(--abg); }
  .sac .sac-clip:hover svg { transform: rotate(-12deg); }
  .sac .sac-send:not(:disabled):hover, .sac .sac-btn:not(:disabled):hover { background: var(--hov); border-color: var(--acc); }
  .sac .sac-send:not(:disabled):hover svg { transform: translateX(2px); }
  .sac .sac-ho .sac-hoclip:hover, .sac .sac-again:hover { background: var(--hov); }
  .sac .sac-file-c button:hover { color: var(--ink); background: var(--in); }
}

/* light mode: frosty pale blue, no gold */
html.lloyd-light .sac { --bg: #fbfdff; --bg2: #eaf2fb; --bd: rgba(126, 166, 214, .5); --ink: #171c3c; --dim: #4f5a86; --acc: #2a5a92; --ubd: rgba(74, 124, 190, .8); --cbd: rgba(126, 166, 214, .65); --abg: #edf3fb; --line: rgba(40, 52, 112, .11); --in: #f2f7fc; --onbg: #ffffff; --hov: #eaf2fb; --pop: #ffffff; --ubg: #e4effb; --avbg: #141a4a; box-shadow: 0 32px 64px -30px rgba(40, 52, 112, .55); }
html.lloyd-light .sac-hero { background: linear-gradient(180deg, rgba(234, 242, 251, 0) 0%, #eaf2fb 100%); }
html.lloyd-light .sac-tabs { background: #e9f1fa; }
html.lloyd-light .sac-tind, html.lloyd-light .sac-ind { box-shadow: 0 1px 3px rgba(40, 52, 112, .16); }
html.lloyd-light .sac-cats { background: #e9f1fa; }
html.lloyd-light .sac .sac-chip { background: #fff; }
html.lloyd-light .sac .sac-chip:active { background: #eaf2fb; }
html.lloyd-light .sac-form, html.lloyd-light .sac .sac-ho input, html.lloyd-light .sac .sac-ho textarea { background: #fff !important; }
html.lloyd-light .sac-flag { box-shadow: 0 0 0 1px rgba(40, 52, 112, .18); }
html.lloyd-light .sac-hoerr, html.lloyd-light .sac-traymsg.sac-bad { color: #b3261e; }
html.lloyd-light .sac-menu { box-shadow: 0 18px 40px -18px rgba(40, 52, 112, .5); }
html.lloyd-light .sac-sheet { box-shadow: 0 -18px 44px -20px rgba(40, 52, 112, .5); }
html.lloyd-light .sac .sac-form textarea { border: 0 !important; background: transparent !important; box-shadow: none !important; }
@media (hover: hover) and (pointer: fine) { html.lloyd-light .sac .sac-chip:hover { background: #eef5fc; } }

/* a short window: the greeting line steps back to leave room for the conversation */
@media (max-height: 640px) and (min-width: 761px) { .sac-hi2 { display: none; } .sac-hero { padding-top: 10px; padding-bottom: 10px; } .sac-av { width: 56px; height: 56px; } }

/* phones: a bottom sheet */
@media (max-width: 760px) {
  .sac-fab { right: 16px; bottom: 16px; gap: 8px; }
  .sac-fw { width: 56px; height: 56px; }
  .sac-fl { font-size: 13.5px; padding: 8px 12px; }
  .sac { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; height: 88vh; height: 88dvh; border-radius: 24px 24px 0 0; border-bottom: 0; transform-origin: 50% 100%; transform: translateY(28px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sac-top { padding: 16px 8px 0 12px; }
  .sac-top::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--bd); }
  .sac .sac-tab { font-size: 15px; padding: 4px 6px; min-height: 42px; }
  .sac-hero { padding: 14px 8px 14px 16px; gap: 12px; }
  .sac-av { width: 64px; height: 64px; }
  .sac-hi b { font-size: 20px; }
  .sac-body { padding: 16px 16px 12px; }
  .sac-scroll { padding: 16px 16px 24px; }
  .sac-m { max-width: 90%; }
  .sac-form { margin: 10px 12px 12px; }
  .sac-dock { padding: 4px 12px 0; }
  html.sac-open .sac-fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 360px) { .sac-hi b { font-size: 18px; padding-right: 0; padding-top: 30px; } .sac-hi2 { font-size: 16px; } .sac .sac-tab { font-size: 14px; } }
/* reduced motion: nothing moves; colours still answer the pointer */
@media (prefers-reduced-motion: reduce) {
  .sac, .sac-in, .sac-ho, .sac-menu, .sac-sheet, .sac-act, .sac-typing i, .sac-av, .sac-av.sac-pop, .sac-file-c.sac-up::after, .sac-fc *, html.sac-open .sac-fc .sac-cgem, html.sac-open .sac-fc .sac-cgl, html.sac-open .sac-fc .sac-csh { animation: none !important; }
  .sac, .sac *, .sac-fab, .sac-fab * { transition-property: color, background-color, border-color, opacity !important; transition-duration: .12s !important; }
  .sac-fa, .sac-fc, html.sac-open .sac-fa, html.sac-open .sac-fc, html.sac-open .sac-fab:hover .sac-cgem { transform: none !important; }
  .sac-fab:hover, .sac-fab:active, .sac .sac-chip:hover, .sac .sac-chip:active, .sac .sac-send:active, .sac .sac-clip:active, .sac .sac-lb:active, .sac .sac-ob:active, .sac .sac-x:active, .sac .sac-chip:hover .sac-ar, .sac .sac-send:hover svg, .sac .sac-clip:hover svg, .sac .sac-btn:active { transform: none !important; }
  .sac .sac-lb[aria-expanded="true"] > svg, .sac .sac-sugg > svg:last-child { transform: rotate(180deg) !important; }
  .sac .sac-sugg[aria-expanded="true"] > svg:last-child { transform: none !important; }
  .sac-fl, .sac-fab-q .sac-fl { transform: none !important; }
  .sac-ind.rdy, .sac-tind.rdy { transition: none !important; }
  .sac-csh { opacity: 0; }
}
@media print { .sac, .sac-fab { display: none !important; } }

/* 1.5.1: Pepper is alive in the launcher: a slow breathing float, two soft rings pulsing out, a lift on hover */
.sac-fw::before, .sac-fw::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 217, 138, .55); opacity: 0; pointer-events: none; }
html:not(.sac-open) .sac-fab-on .sac-fw::before { animation: sacRing 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
html:not(.sac-open) .sac-fab-on .sac-fw::after { animation: sacRing 3.6s cubic-bezier(.2, .6, .3, 1) 1.8s infinite; }
@keyframes sacRing { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.42); opacity: 0; } }
html:not(.sac-open) .sac-fab-on .sac-fa { animation: sacBreath 5s ease-in-out infinite; }
@keyframes sacBreath { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.03); } }
@media (hover: hover) {
  html:not(.sac-open) .sac-fab-on:hover .sac-fa { animation-play-state: paused; transform: scale(1.09); }
  html:not(.sac-open) .sac-fab-on:hover .sac-fw::before, html:not(.sac-open) .sac-fab-on:hover .sac-fw::after { animation-duration: 1.8s; }
  html:not(.sac-open) .sac-fab:hover .sac-fl { border-color: rgba(255, 217, 138, .7); color: #ffd98a; }
}
html.lloyd-light .sac-fw::before, html.lloyd-light .sac-fw::after { border-color: rgba(95, 141, 200, .6); }
html.lloyd-light:not(.sac-open) .sac-fab:hover .sac-fl { border-color: rgba(95, 141, 200, .8); color: #2f5f96; }
@media (max-width: 760px) { .sac-fw { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .sac-fw::before, .sac-fw::after { animation: none !important; opacity: 0 !important; } html .sac-fab-on .sac-fa { animation: none !important; } }
