/* Brooke, Stratara's concierge (Xenia, 2026-11-11). The button and her chat, on every page.
   Her look: a warm front desk. Her portrait heads the chat, with Adam's line under her name. */
@font-face{font-family:Newsreader;src:url('/assets/fonts/Newsreader.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:General Sans;src:url('/assets/fonts/GeneralSans-Variable.woff2') format('woff2');font-weight:200 700;font-display:swap}

.bk{--bk-paper:#f6f3ee;--bk-ink:#22262a;--bk-soft:#6b6f73;--bk-line:#e0dbd2;--bk-her:#ebe5dc;--bk-you:#33414a;--bk-adam:#dfe7ea;--bk-accent:#3f5866;
  font:400 15.5px/1.45 "General Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--bk-ink)}
.bk *{box-sizing:border-box}
.bk button{font:inherit;color:inherit}

/* the button */
.bk-launch{position:fixed;right:20px;bottom:20px;z-index:2147483000;display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border:1px solid #00000014;border-radius:30px;background:#fffdf9;
  box-shadow:0 10px 30px #1b232a2e,0 2px 6px #1b232a1a;cursor:pointer;font-weight:500;transition:transform .2s,box-shadow .2s}
.bk-launch:hover{transform:translateY(-1px);box-shadow:0 14px 34px #1b232a33,0 2px 6px #1b232a1a}
.bk-launch:focus-visible{outline:2px solid var(--bk-accent);outline-offset:3px}
.bk-launch img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 25%}
.bk-launch[hidden]{display:none}
/* on the home page, hidden until the product list, then a 1 s fade (Adam, 2026-11-12) */
.bk-launch.bk-later{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:no-preference){.bk-launch.bk-fade{transition:opacity 1s ease}}

/* the chat */
.bk-panel{position:fixed;right:20px;bottom:20px;z-index:2147483001;width:min(390px,calc(100vw - 32px));height:min(640px,calc(100vh - 40px));display:flex;flex-direction:column;
  background:var(--bk-paper);border-radius:16px;overflow:hidden;box-shadow:0 24px 60px #12191f40,0 4px 12px #12191f26}
.bk-panel[hidden]{display:none}
.bk-head{position:relative;flex:none;height:168px;color:#fff;background:#3a3936 url('/assets/brooke/brooke-desk-2026-11b.jpg') 70% 30%/cover no-repeat}
.bk-head:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#14110ea6 0%,#14110e59 45%,#0000 70%),linear-gradient(180deg,#0000 45%,#14110e8c 100%)}
.bk-title{position:absolute;left:20px;right:60px;bottom:14px;z-index:1}
.bk-title h2{margin:0;font:400 32px/1 Newsreader,Georgia,serif;letter-spacing:-.01em}
.bk-title p{margin:0;font-size:15.5px;letter-spacing:.01em;opacity:.92}
.bk-title p.bk-also{margin-top:2px;font-size:11px;letter-spacing:.04em;color:#c4bfb7;opacity:1}
.bk .bk-reset{position:absolute;top:10px;right:50px;z-index:1;width:32px;height:32px;display:grid;place-items:center;padding:0;border-radius:50%;border:0;background:#14110e40;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;opacity:.75;cursor:pointer;transition:opacity .2s}
.bk .bk-reset:hover{opacity:1}
.bk .bk-reset:focus-visible{outline:2px solid #fff;outline-offset:2px;opacity:1}
.bk .bk-reset svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bk .bk-close{position:absolute;top:10px;right:10px;z-index:1;width:32px;height:32px;border-radius:50%;border:0;background:#14110e59;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.bk-close:focus-visible{outline:2px solid #fff;outline-offset:2px}

.bk-log{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.bk-msg{max-width:84%;padding:10px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.bk-msg a{color:inherit;text-underline-offset:.18em}
.bk-msg.her{align-self:flex-start;background:var(--bk-her);border-bottom-left-radius:4px}
.bk-msg.you{align-self:flex-end;background:var(--bk-you);color:#fff;border-bottom-right-radius:4px}
.bk-msg.adam{align-self:flex-start;background:var(--bk-adam);border-bottom-left-radius:4px}
.bk-msg .bk-who{display:block;font-size:12px;font-weight:500;color:var(--bk-soft);margin-bottom:2px}
.bk-event{align-self:center;font-size:12.5px;color:var(--bk-soft);text-align:center;padding:2px 10px}
.bk-ask{align-self:stretch;background:#fffdf9;border:1px solid var(--bk-line);border-radius:12px;padding:12px}
.bk-ask p{margin:0 0 10px}
.bk-ask div{display:flex;gap:8px;flex-wrap:wrap}
.bk-ask button{min-height:40px;padding:0 16px;border-radius:20px;border:1px solid var(--bk-line);background:#fff;cursor:pointer}
.bk-ask button.yes{background:var(--bk-accent);border-color:var(--bk-accent);color:#fff}
.bk-typing{align-self:flex-start;display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--bk-soft);padding:2px 4px}
.bk-typing i{width:6px;height:6px;border-radius:50%;background:var(--bk-soft);animation:bk-dot 1.2s infinite ease-in-out}
.bk-typing i:nth-child(2){animation-delay:.15s}.bk-typing i:nth-child(3){animation-delay:.3s}
/* waiting for Adam: her face in a slow ring, the time left, and a line that empties */
.bk-wait{align-self:stretch;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 12px;padding:12px 14px;border-radius:14px;background:#fffdf9;border:1px solid var(--bk-line)}
.bk-wait-ring{position:relative;width:40px;height:40px;border-radius:50%;grid-row:1 / 3}
.bk-wait-ring img{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block}
.bk-wait-ring:before,.bk-wait-ring:after{content:'';position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--bk-accent);opacity:0;animation:bk-ring 2s ease-out infinite}
.bk-wait-ring:after{animation-delay:1s}
.bk-wait-words{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.bk-wait-title{font-weight:500}
.bk-wait-time{font-variant-numeric:tabular-nums;color:var(--bk-soft);font-size:14px}
.bk-wait-bar{height:3px;border-radius:2px;background:var(--bk-line);overflow:hidden}
.bk-wait-bar i{display:block;height:100%;background:var(--bk-accent);transform-origin:left;transition:transform 1s linear}
@keyframes bk-ring{0%{transform:scale(.9);opacity:.55}100%{transform:scale(1.35);opacity:0}}
@keyframes bk-dot{0%,80%,100%{opacity:.25}40%{opacity:1}}

.bk-form{flex:none;border-top:1px solid var(--bk-line);padding:10px 12px 8px;background:var(--bk-paper)}
.bk-row{display:flex;gap:8px;align-items:flex-end}
.bk-input{flex:1;min-height:44px;max-height:120px;resize:none;border:1px solid #cfc8bc;border-radius:12px;padding:11px 12px;background:#fff;font:inherit;color:var(--bk-ink)}
.bk-input:focus-visible{outline:none;border-color:var(--bk-accent);box-shadow:0 0 0 3px #3f586633}
.bk .bk-send{flex:none;min-height:44px;padding:0 16px;border-radius:12px;border:0;background:var(--bk-accent);color:#fff;font-weight:500;cursor:pointer}
.bk-send:disabled{opacity:.5;cursor:default}
.bk-send:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}
.bk-note{margin:8px 2px 0;font-size:11.5px;line-height:1.4;color:var(--bk-soft)}
.bk-note a{color:inherit}

@media(max-width:600px){
  .bk-launch{right:14px;bottom:14px}
  .bk-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}
  .bk-head{height:150px}
  .bk-input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.bk-launch{transition:none}.bk-typing i{animation:none;opacity:.6}.bk-wait-ring:before,.bk-wait-ring:after{animation:none}.bk-wait-bar i{transition:none}}
@media print{.bk{display:none}}
