/* Community Hub. Colours: navy text (never black), buttons follow the member's Highlight, own dark mode (auto-dark skips data-bd-keep). */
.bch{--bch-ink:#0c009b;--bch-sub:#6b6b76;--bch-card:#fff;--bch-soft:#f4f3ff;--bch-line:#d9d6ff;--bch-btn:var(--bud-hl,#0c009b);--bch-btn-ink:#fff;color:var(--bch-ink);box-sizing:border-box;text-align:left}
html.bud-hl .bch{--bch-btn-ink:#0c009b}
html.bud-dark .bch{--bch-ink:#e4e1ff;--bch-sub:#a9a7c4;--bch-card:#1b1838;--bch-soft:#26224d;--bch-line:#39346b;--bch-btn:var(--bud-hl,#19b5a5);--bch-btn-ink:#1b1838}
.bch *,.bch *::before,.bch *::after{box-sizing:border-box}
.bch [hidden]{display:none!important}
.bch p,.bch ul,.bch ol,.bch h2{margin:0}
.bch .bch-tile{background:var(--bch-card);border:1px solid var(--bch-line);border-radius:16px;padding:min(32px,5vw);min-width:0}
.bch h2{color:var(--bud-hl,#0c009b);font-size:1.35rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 14px}
.bch .bch-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:var(--bch-btn);color:var(--bch-btn-ink);border:0;border-radius:10px;padding:11px 20px;font:inherit;font-size:1rem;font-weight:700;line-height:1.2;text-decoration:none;cursor:pointer;box-shadow:none}
.bch .bch-btn:hover{opacity:.85;color:var(--bch-btn-ink)}
.bch .bch-btn:disabled{opacity:.55;cursor:default}
.bch .bch-link{background:none;border:0;border-radius:6px;padding:2px 4px;font:inherit;font-size:.82rem;font-weight:600;line-height:1.3;color:var(--bch-sub);text-decoration:underline;text-underline-offset:.2em;white-space:nowrap;cursor:pointer;box-shadow:none}
.bch .bch-link:hover{color:var(--bch-ink)}
.bch .bch-link:disabled{cursor:default;text-decoration:none}
.bch button:focus-visible,.bch a:focus-visible,.bch textarea:focus-visible,.bch input:focus-visible,.bch .bch-scroll:focus-visible{outline:2px solid #19b5a5;outline-offset:2px}

/* The page template's empty spacer columns are hidden so the hub uses the full width. */
.wp-block-column:has(.bch){flex-basis:100%!important}
.wp-block-column:has(.bch)~.wp-block-column:empty{display:none!important}

/* Intro paragraph (editable in the page editor), lined up with the chat below it. */
:is(.wp-block-post-content,.bch-acct-body)>p.bch-intro{max-width:var(--wp--style--global--wide-size,1200px);margin:0 auto 22px;color:#0c009b;font-size:1.1rem;line-height:1.6}
html.bud-dark :is(.wp-block-post-content,.bch-acct-body)>p.bch-intro{color:#e4e1ff}

.bch-gate .bch-tile{max-width:560px;margin:0 auto;text-align:center}
.bch-gate p{color:var(--bch-sub);margin:0 0 20px}

.bch-pins{display:grid;gap:10px;margin:0 0 20px}
.bch-pin{background:var(--bch-soft);border:1px solid var(--bch-line);border-left:5px solid var(--bch-btn);border-radius:12px;padding:14px 18px;min-width:0}
.bch-pin-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.82rem;color:var(--bch-sub);white-space:nowrap}
.bch-pin-top span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.bch-pin .bch-text{margin-top:4px}

.bch-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:20px;align-items:start}
.bch-chat{display:flex;flex-direction:column;position:relative}
.bch-scroll{height:clamp(320px,58vh,620px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--bch-line);border-radius:12px;padding:12px}
.bch-older{display:block;margin:0 auto 10px}
.bch-empty{color:var(--bch-sub);text-align:center;padding:24px 8px}
.bch .bch-list{list-style:none;padding:0;display:grid;gap:14px}
.bch .bch-list li{display:flex;gap:10px;align-items:flex-start;min-width:0;margin:0}
.bch-av{position:relative;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--bch-soft);color:var(--bch-ink);display:flex;align-items:center;justify-content:center;font-weight:700;overflow:hidden}
.bch .bch-av img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;margin:0}
.bch-body{flex:1;min-width:0}
.bch-meta{display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:0;line-height:1.4}
.bch-meta strong{overflow:hidden;text-overflow:ellipsis;min-width:0}
.bch-meta time{color:var(--bch-sub);font-size:.8rem}
.bch-tag{background:var(--bch-btn);color:var(--bch-btn-ink);border-radius:999px;padding:0 8px;font-size:.7rem;font-weight:700;line-height:1.7}
.bch-flag{background:#d63638;color:#fff}
.bch-bubble{display:inline-block;max-width:100%;background:var(--bch-soft);border-radius:4px 14px 14px 14px;padding:8px 13px;margin-top:2px}
.bch li.bch-mine .bch-bubble{background:transparent;border:1.5px solid var(--bch-line)}
.bch-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.bch-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px}
.bch-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;font-size:.88rem}
.bch .bch-ask input{flex:1 1 180px;min-width:0;max-width:340px;margin:0;font:inherit;font-size:16px;color:var(--bch-ink);background:var(--bch-card);border:1px solid var(--bch-line);border-radius:10px;padding:8px 10px}
.bch .bch-ask .bch-btn{padding:8px 14px;font-size:.88rem}
.bch .bch-jump{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(min(32px,5vw) + 92px);padding:8px 14px;font-size:.88rem;z-index:2}
.bch .bch-error{color:#d63638;font-weight:600;margin-top:10px}
html.bud-dark .bch .bch-error{color:#ff9d9f}
.bch-compose{display:flex;gap:10px;align-items:flex-end;margin-top:14px}
.bch .bch-compose textarea{flex:1;min-width:0;width:100%;margin:0;resize:none;font:inherit;font-size:16px;line-height:1.4;color:var(--bch-ink);background:var(--bch-card);border:1.5px solid var(--bch-line);border-radius:12px;padding:10px 12px}
.bch textarea::placeholder,.bch input::placeholder{color:var(--bch-sub)}
.bch-agree{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;background:var(--bch-soft);border-radius:12px;padding:14px 16px}
.bch .bch-muted{margin-top:14px;background:var(--bch-soft);border-radius:12px;padding:14px 16px}

.bch .bch-rules{padding-left:1.1em;display:grid;gap:8px;font-size:.95rem;line-height:1.45}
.bch .bch-rules li{margin:0;overflow-wrap:anywhere}
.bch .bch-events{list-style:none;padding:0;display:grid;gap:10px}
.bch .bch-events li{margin:0;min-width:0}
.bch .bch-events a{display:block;background:var(--bch-soft);border-radius:12px;padding:10px 14px;color:var(--bch-ink);text-decoration:none}
.bch .bch-events a:hover{opacity:.85}
.bch .bch-events strong,.bch .bch-events span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bch .bch-events span{color:var(--bch-sub);font-size:.85rem}


/* The Bud Buck Wheel */
.bchw-nowin{color:var(--bch-sub)}
.bch .bchw-winlist{list-style:none;padding:0;display:grid;gap:8px}
/* Five winners show; the rest scroll. A faded sixth row hints that there is more. */
.bch .bchw-winlist{grid-auto-rows:62px;align-content:start;max-height:calc(5 * 62px + 4 * 8px + 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:12px}
.bch .bchw-winlist:has(li:nth-child(6)):not(.is-end){-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 30px),transparent)}
.bch .bchw-winlist li{overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;min-width:0;background:var(--bch-soft);border-radius:12px;padding:8px 10px 8px 14px}
.bchw-who{flex:1;min-width:0}
.bchw-who strong,.bchw-who small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bchw-who small{color:var(--bch-sub);font-size:.8rem}
.bchw-prize{flex:none;white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:.82rem;font-weight:700;line-height:1.5}
html.bud-dark .bchw-prize{box-shadow:0 0 0 1px rgba(184,179,255,.55)}

.bchw-row{display:flex;flex-wrap:wrap;align-items:center;gap:24px}
.bchw-wheel{flex:0 1 420px;min-width:0;margin:0 auto}
.bch .bchw-wheel svg{display:block;width:100%;height:auto}
.bchw-wheel text{font-family:inherit;font-weight:700;text-anchor:middle}
.bchw-turn{will-change:transform}
.bchw-info{flex:1 1 220px;display:grid;gap:14px;min-width:0;line-height:1.5}
.bchw-left{font-size:1.1rem;white-space:nowrap}
.bch .bchw-lots{list-style:none;padding:0;display:grid;gap:8px}
.bch .bchw-lots:empty{display:none}
.bch .bchw-lots li{margin:0;min-width:0;background:var(--bch-soft);border-radius:12px;padding:8px 14px}
.bchw-lots strong,.bchw-lots span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bchw-lots span{color:var(--bch-sub);font-size:.85rem}
.bchw-none{color:var(--bch-sub)}
.bch .bchw-none a{color:var(--bch-ink);font-weight:700;white-space:nowrap}
.bchw-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.bch .bchw-odds-open{font-size:.95rem}
.bch .bchw-result{background:var(--bch-soft);border-radius:12px;padding:12px 14px;font-weight:700}
.bch .bchw-won .bchw-result{border:2px solid #f2b200}
.bchw-balance{color:var(--bch-sub)}
.bchw-balance strong{color:var(--bch-ink)}
.bch .bchw-odds{box-sizing:border-box;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;margin:auto;padding:24px;background:var(--bch-card);color:var(--bch-ink);border:1px solid var(--bch-line);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.bch .bchw-odds::backdrop{background:rgba(15,13,36,.6)}
.bch .bchw-odds table{width:100%;border-collapse:collapse;margin:0 0 14px;border:0}
.bch .bchw-odds th,.bch .bchw-odds td{padding:8px 4px;border:0;border-bottom:1px solid var(--bch-line);text-align:left;white-space:nowrap;color:var(--bch-ink);background:transparent}
.bch .bchw-odds th:last-child,.bch .bchw-odds td:last-child{text-align:right}
.bchw-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px;box-shadow:0 0 0 1px rgba(12,0,155,.3)}
html.bud-dark .bchw-dot{box-shadow:0 0 0 1.5px #b8b3ff!important}
.bch .bchw-odds p{font-size:.9rem;line-height:1.5;color:var(--bch-sub);margin:0 0 16px}

/* Chat rules (with the I agree box underneath) sit beside the chat, events below them. */
.bch-rulestile .bch-agree{margin-top:18px}
.bch-rulestile .bch-agree .bch-btn{width:100%}

/* Layout. Tablet and desktop: chat beside the rules, wheel beside recent winners, events under the winners. */
.bch-main,.bch-side,.bch-wheelrow{display:contents}
.bch-grid{grid-template-columns:minmax(0,1fr) minmax(0,clamp(250px,38vw,340px));grid-template-rows:auto min-content 1fr auto auto auto}
.bch-grid .bch-tile{min-width:0}
.bch-grid .bch-chat{grid-area:1/1}
.bch-grid .bch-rulestile{grid-area:1/2}
.bch-grid .bchw{grid-area:2/1/span 2/auto}
.bch-grid .bchw-winners{grid-area:2/2}
.bch-grid .bch-eventstile{grid-area:3/2}
.bch-grid:not(:has(.bchw)) .bch-eventstile{grid-area:2/2}

/* The "Games" title and its line, across the page above the games. */
.bch-grid .bch-games{grid-area:4/1/auto/-1;min-width:0;margin:16px 0 0;padding:0 4px}
.bch .bch-grid .bch-games h2{margin:0 0 6px;font-size:1.7rem}
.bch .bch-games p{font-size:1.1rem;line-height:1.6;text-wrap:balance}

/* Pong and its high scores: a row under everything else, laid out like the wheel and its winners. */
.bch-grid .bch-pong{grid-area:5/1}
.bch-grid .bchp-scores{grid-area:5/2}
.bchp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}
.bch .bchp-head h2{margin:0;min-width:0}
.bch .bchp-level{flex:none;white-space:nowrap;background:var(--bch-soft);border-radius:999px;padding:3px 14px;font-weight:700;line-height:1.5}
.bchp-none{color:var(--bch-sub)}
.bch .bchp-list{list-style:none;padding:0;display:grid;gap:8px}
.bch .bchp-list li{display:flex;align-items:center;gap:10px;margin:0;min-width:0;background:var(--bch-soft);border:2px solid transparent;border-radius:12px;padding:6px 8px}
.bch .bchp-list li.bchp-mine{border-color:var(--bch-btn)}
.bchp-rank{flex:none;min-width:1.5em;text-align:center;font-weight:700}
.bchp-who{flex:1;min-width:0}
.bchp-who strong,.bchp-who small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bchp-who small{color:var(--bch-sub);font-size:.8rem}
.bchp-reached{flex:none;white-space:nowrap;background:var(--bch-btn);color:var(--bch-btn-ink);border-radius:999px;padding:3px 10px;font-size:.82rem;font-weight:700;line-height:1.5}
.bch .bchp-best{margin-top:12px;color:var(--bch-sub);font-size:.9rem}
.bchp-game{width:100%;max-width:720px;margin:0 auto}
.bch .bchp-score{display:flex;justify-content:space-between;gap:12px;margin:0 0 10px;white-space:nowrap;font-weight:600;line-height:1.4}
.bchp-score strong{display:inline-block;min-width:1.6em;margin-left:.3em;background:var(--bch-soft);border-radius:8px;padding:0 6px;text-align:center}
.bch .bchp-court{display:block;width:100%;height:auto;aspect-ratio:8/5;background:#0c009b;border:1px solid var(--bch-line);border-radius:12px;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
html.bud-dark .bch .bchp-court{background:#100d2e}
.bch .bchp-court:focus-visible{outline:2px solid #19b5a5;outline-offset:2px}
/* While a game is on, dragging moves the paddle instead of scrolling the page. */
.bch .bch-pong.is-playing .bchp-court{touch-action:none;cursor:ns-resize}
.bchp-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.bch .bchp-help{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--bch-sub);font-size:.9rem}
.bch .bchp-play{flex:none;min-width:130px}
.bchp-touch{display:none}
@media (pointer:coarse){.bchp-mouse{display:none}.bchp-touch{display:inline}}
.bch .bchp-status{margin-top:10px;text-align:center;font-weight:700}
.bch .bchp-status:empty{display:none}

/* Shuttle Invaders and its high scores: the next row. Its inner parts share Pong's styles. */
.bch-grid .bch-invaders{grid-area:6/1}
.bch-grid .bchi-scores{grid-area:6/2}
.bch .bchi-game{max-width:min(520px,max(300px,60vh))}
.bch .bchi-field{display:block;width:100%;height:auto;aspect-ratio:6/7;background:#0c009b;border:1px solid var(--bch-line);border-radius:12px;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html.bud-dark .bch .bchi-field{background:#100d2e}
.bch .bchi-field:focus-visible{outline:2px solid #19b5a5;outline-offset:2px}
.bch .bch-invaders.is-playing .bchi-field{touch-action:none;cursor:ew-resize}

/* Narrow phones: "Shuttle Invaders" stays whole beside the wave number. */
@media (max-width:400px){
.bch .bch-invaders .bchp-head h2{font-size:min(1.35rem,calc((100vw - 184px) / 8.2))}
.bch .bch-invaders .bchp-level{padding:3px 8px;font-size:.85rem}
}

/* Games legal notice: ordinary blocks under the hub, so the wording is editable in the page editor. */
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal{box-sizing:border-box;max-width:var(--wp--style--global--wide-size,1200px);margin:20px auto 0;background:#fff;border:1px solid #d9d6ff;border-radius:16px;padding:min(32px,5vw);color:#6b6b76;text-align:left}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal h2{margin:0 0 12px;color:var(--bud-hl,#0c009b);font-size:1.1rem;line-height:1.3}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal p{max-width:none;margin:0 0 10px;color:#6b6b76;font-size:.85rem;line-height:1.6}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal p:last-child{margin-bottom:0}
/* Everything after the first line is folded behind a "Show more" link. */
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal details{margin:0;padding:0}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal summary{display:block;width:max-content;max-width:100%;list-style:none;margin:0;border-radius:6px;color:var(--bud-hl,#0c009b);font-size:.85rem;font-weight:700;line-height:1.6;text-decoration:underline;text-underline-offset:.2em;white-space:nowrap;cursor:pointer}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal summary::-webkit-details-marker{display:none}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal summary::marker{content:""}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal summary:focus-visible{outline:2px solid #19b5a5;outline-offset:2px}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal details[open]>summary{margin-bottom:10px;font-size:0}
:is(.wp-block-post-content,.bch-acct-body)>.bch-legal details[open]>summary::after{content:"Show less";font-size:.85rem}
html.bud-dark :is(.wp-block-post-content,.bch-acct-body)>.bch-legal{background:#1b1838;border-color:#39346b}
html.bud-dark :is(.wp-block-post-content,.bch-acct-body)>.bch-legal p{color:#a9a7c4}
@media (max-width:600px){:is(.wp-block-post-content,.bch-acct-body)>.bch-legal{padding:16px 12px}}

/* Tablets: slimmer padding so names and event titles have room. */
@media (min-width:601px) and (max-width:900px){
.bch .bch-grid .bch-tile{padding:20px 14px}
.bch .bchw-winlist li{padding:8px 8px 8px 12px;gap:8px}
}

/* Tablets and small laptops: the court needs the full width, so the high scores go underneath it. */
@media (min-width:601px) and (max-width:1100px){
.bch-grid .bch-pong{grid-area:5/1/auto/-1}
.bch-grid .bchp-scores{grid-area:6/1/auto/-1}
.bch-grid .bch-invaders{grid-area:7/1/auto/-1}
.bch-grid .bchi-scores{grid-area:8/1/auto/-1}
}

/* Narrow tablets: smaller headings so none is cut short. */
@media (min-width:601px) and (max-width:700px){
.bch .bch-grid h2{font-size:1.15rem}
}

/* With the account menu beside it (1000px and wider) the hub is narrower than the screen, so it sizes by its own width. */
@media (min-width:1000px){
.bch-acct-body .bch-grid{grid-template-columns:minmax(0,1fr) minmax(0,clamp(240px,38cqw,340px))}
@container bchacct (max-width:960px){
.bch-grid .bch-pong{grid-area:5/1/auto/-1}
.bch-grid .bchp-scores{grid-area:6/1/auto/-1}
.bch-grid .bch-invaders{grid-area:7/1/auto/-1}
.bch-grid .bchi-scores{grid-area:8/1/auto/-1}
}
@container bchacct (max-width:780px){
.bch .bch-grid .bch-tile{padding:20px 14px}
.bch .bchw-winlist li{padding:8px 8px 8px 12px;gap:8px}
}
@container bchacct (max-width:700px){
.bch .bch-grid h2{font-size:1.15rem}
}
}

/* Phones: one column - chat, rules, wheel, winners, events. */
@media (max-width:600px){
.bch-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
.bch-grid .bch-chat,.bch-grid .bch-rulestile,.bch-grid .bchw,.bch-grid .bchw-winners,.bch-grid .bch-eventstile,.bch-grid:not(:has(.bchw)) .bch-eventstile,.bch-grid .bch-games,.bch-grid .bch-pong,.bch-grid .bchp-scores,.bch-grid .bch-invaders,.bch-grid .bchi-scores{grid-area:auto}
.bch-grid .bch-chat{order:1}
.bch-grid .bch-rulestile{order:2}
.bch-grid .bchw{order:3}
.bch-grid .bchw-winners{order:4}
.bch-grid .bch-eventstile{order:5}
.bch-grid .bch-games{order:6}
.bch-grid .bch-pong{order:7}
.bch-grid .bchp-scores{order:8}
.bch-grid .bch-invaders{order:9}
.bch-grid .bchi-scores{order:10}
/* Pong stands upright on phones. The height cap keeps the whole court on screen. */
.bch .bchp-court{aspect-ratio:5/8;width:min(100%,43vh);margin:0 auto}
.bch .bch-pong.is-playing .bchp-court{cursor:ew-resize}
.bch .bchp-score{gap:8px;font-size:min(1rem,4.4vw)}
.bchp-bar{flex-direction:column;gap:10px}
.bch .bchp-help{max-width:100%;font-size:.85rem}
.bch .bchp-play{width:100%}
.bchp-mouse{display:none}
.bchp-touch{display:inline}
}
@media (max-width:600px){
/* "Community Hub" stays on one line. */
body:has(.bch) .wp-block-post-title{white-space:nowrap;font-size:min(2.54rem,calc((100vw - 90px) / 8.4))!important}
/* Signed in, the title is indented like the account pages. */
body.woocommerce-account:has(.bch) .wp-block-post-title{font-size:min(2.54rem,calc((100vw - 118px) / 8.4))!important}
.bch .bch-tile{padding:16px 12px}
.bch-scroll{padding:8px;height:clamp(300px,55vh,520px)}
.bch .bch-jump{bottom:110px}
.bch-compose{gap:8px}
.bch .bch-compose .bch-btn{padding:11px 14px}
.bch-agree .bch-btn{width:100%}
.bchw-actions .bch-btn{flex:1 1 100%}
.bchw-actions .bch-link{margin:0 auto}
}

/* Emoji reactions and direct replies. */
.bch .bch-quote{display:block;width:100%;max-width:100%;margin:0 0 6px;padding:5px 10px;background:var(--bch-card);color:var(--bch-sub);border:0;border-left:4px solid var(--bch-btn);border-radius:8px;box-shadow:none;font:inherit;font-size:.82rem;line-height:1.4;text-align:left;min-width:0}
.bch button.bch-quote{cursor:pointer}
.bch .bch-quote strong,.bch .bch-quote span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bch .bch-quote strong{color:var(--bch-ink)}
/* The quote never widens its bubble: it is cut off to fit the reply. */
.bch-bubble:has(>.bch-quote){min-width:min(220px,100%)}
.bch-bubble>.bch-quote{contain:inline-size}
.bch-reacts,.bch-picker{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.bch .bch-chip,.bch .bch-pick{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin:0;background:var(--bch-soft);color:var(--bch-ink);border:1.5px solid transparent;border-radius:999px;box-shadow:none;font:inherit;line-height:1;white-space:nowrap;cursor:pointer}
.bch .bch-chip{min-height:30px;padding:3px 10px;font-size:.82rem;font-weight:700}
.bch .bch-chip.is-mine{border-color:var(--bch-btn)}
.bch .bch-chip:disabled{cursor:default}
.bch-emoji{font-size:1rem}
.bch .bch-pick{width:38px;height:38px;padding:0;font-size:1.15rem}
.bch .bch-pick:hover{border-color:var(--bch-btn)}
.bch-replying{display:flex;align-items:center;gap:10px;margin-top:14px;background:var(--bch-soft);border-left:4px solid var(--bch-btn);border-radius:10px;padding:8px 12px;font-size:.88rem;min-width:0}
.bch-replying span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bch-replying+.bch-compose{margin-top:8px}
.bch-replying[hidden]+.bch-compose{margin-top:14px}
.bch .bch-chat.is-replying .bch-jump{bottom:calc(min(32px,5vw) + 140px)}
.bch .bch-list li.bch-flash .bch-bubble{outline:3px solid var(--bch-btn);outline-offset:1px}