/* Shared chatbot + administrator inbox. Never reuse host shell classes. */
#hb-support,#hb-support-admin{font-family:inherit;color:var(--ds-ink,#0a0a0a);font-size:14px;line-height:1.6;box-sizing:border-box}
#hb-support *,#hb-support-admin *{box-sizing:border-box}
#hb-support button,#hb-support input,#hb-support textarea,#hb-support select,#hb-support-admin button,#hb-support-admin textarea,#hb-support-admin select{font:inherit;color:inherit}
#hb-support button,#hb-support-admin button{cursor:pointer;min-height:44px;padding:8px 12px;border:1px solid var(--ds-line,#eaeaea);border-radius:10px;background:#fff;line-height:1.4;text-align:left}
#hb-support button:disabled,#hb-support-admin button:disabled{cursor:default;opacity:.5}
#hb-support button:hover:not(:disabled),#hb-support-admin button:hover:not(:disabled){background:var(--ds-accent-soft,#f2f2f2)}
#hb-support :focus-visible,#hb-support-admin :focus-visible{outline:2px solid var(--ds-brand,#0a0a0a);outline-offset:2px}
#hb-support .hb-support-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#hb-support [hidden]{display:none!important}
#hb-support p,#hb-support h2,#hb-support h3{margin:0}
#hb-support-launch{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;gap:9px;background:var(--ds-brand,#0a0a0a)!important;color:#fff!important;border-color:var(--ds-brand,#0a0a0a)!important;border-radius:24px!important;box-shadow:0 5px 20px #00000026;padding:9px 17px!important}
.hb-support-launch-mark{width:19px;height:19px;flex:none;display:block}
#hb-support-panel{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(80px + env(safe-area-inset-bottom));z-index:81;width:min(440px,calc(100vw - 24px));height:min(740px,calc(100dvh - 104px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--ds-line,#eaeaea);border-radius:26px;background:#fff;box-shadow:0 12px 48px #0000001c}
.hb-support-head{display:flex;align-items:center;gap:13px;padding:21px 24px;flex:none;border-bottom:1px solid var(--ds-line,#eaeaea)}
.hb-support-avatar{display:block;flex:none;width:44px;height:44px}
.hb-support-avatar-tile{fill:#0a0a0a}
.hb-support-avatar-glyph{fill:#fff}
.hb-support-heading{min-width:0;flex:1}
#hb-support h2{font-size:19px;font-weight:750;letter-spacing:-.4px;line-height:1.35}
#hb-support .hb-support-heading p{font-size:12px;color:var(--ds-muted,#666);margin-top:2px}
#hb-support .hb-support-head button{border:0;padding:0;width:44px;font-size:30px;font-weight:300;line-height:1;color:var(--ds-muted,#666);flex:none;text-align:center;background:transparent}
.hb-support-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 24px;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:#bdbdbd transparent}
.hb-support-welcome{padding:8px 0 30px}
#hb-support .hb-support-eyebrow{font-size:13px;font-weight:700;color:var(--ds-brand,#0a0a0a);margin-bottom:18px}
#hb-support .hb-support-welcome h3{font-size:30px;font-weight:750;line-height:1.45;letter-spacing:-1px;margin-bottom:20px}
#hb-support .hb-support-welcome>p:last-child{font-size:16px;line-height:1.8;color:var(--ds-muted,#666)}
.hb-support-log{display:flex;flex-direction:column;gap:20px}
.hb-support-chat-message{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.hb-support-speaker{font-size:11px;color:var(--ds-muted,#666);margin:0 3px 5px}
.hb-support-bubble{max-width:94%;background:var(--ds-accent-soft,#f2f2f2);padding:13px 15px;border-radius:4px 18px 18px 18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px}
.hb-support-chat-user{align-items:flex-end}
.hb-support-chat-user .hb-support-bubble{background:var(--ds-brand,#0a0a0a);color:#fff;border-radius:18px 4px 18px 18px}
.hb-support-chat-admin .hb-support-bubble{border:1px solid var(--ds-control-line,#d4d4d4);background:var(--ds-surface-soft,#fafafa)}
.hb-support-typing{font-size:12px;color:var(--ds-muted,#666)}
.hb-support-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;font-size:12px}
#hb-support .hb-support-links a{border:1px solid var(--ds-line,#eaeaea);border-radius:20px;padding:6px 12px;color:var(--ds-brand,#0a0a0a);text-decoration:none}
.hb-support-compose{padding:0 18px 14px;flex:none;background:#fff}
.hb-support-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-bottom:5px}
#hb-support .hb-support-toolbar button,#hb-support .hb-support-text-button{border:0;background:transparent;font-size:11px;color:var(--ds-muted,#666);padding:6px 8px;min-height:44px}
#hb-support-audience{max-width:145px;border:0;background:transparent;font-size:11px!important;min-height:44px;padding:6px;color:var(--ds-muted,#666)!important;cursor:pointer}
.hb-support-ticket{font-size:10px;color:var(--ds-muted,#666);padding:5px}
#hb-support-form{position:relative;margin:0;border:1px solid var(--ds-control-line,#d4d4d4);border-radius:22px;background:var(--ds-surface-soft,#fafafa);padding:13px 52px 11px 15px}
#hb-support-form:focus-within{outline:2px solid var(--ds-brand,#0a0a0a);outline-offset:2px}
#hb-support #hb-support-input{display:block;min-height:64px;max-height:120px;width:100%;margin:0;padding:0;border:0;outline:0;border-radius:0;resize:none;box-shadow:none;background:transparent;font-size:16px;line-height:1.7;color:var(--ds-ink,#0a0a0a)}
#hb-support-input::placeholder{color:var(--ds-muted,#666);opacity:1}
#hb-support #hb-support-send{position:absolute;right:11px;bottom:11px;min-height:40px;width:40px;height:40px;border:0;border-radius:13px;padding:9px;background:var(--ds-brand,#0a0a0a);color:#fff;text-align:center}
#hb-support-send svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#hb-support #hb-support-send:disabled{background:#b5b5b5;opacity:1}
#hb-support .hb-support-disclaimer{font-size:11px;line-height:1.6;color:var(--ds-muted,#666);text-align:center;margin:10px 8px 0}
#hb-support .hb-support-login{display:block;min-height:44px;padding:10px 0 0;text-align:center;color:var(--ds-brand,#0a0a0a);font-size:13px;text-underline-offset:4px}
.hb-support-privacy{font-size:10px;line-height:1.5;color:var(--ds-muted,#666);text-align:center;margin-top:4px}
.hb-support-privacy summary{cursor:pointer;padding:3px;display:inline-block;min-height:24px}
#hb-support .hb-support-privacy p{padding:6px;text-align:left}
.hb-support-confirm{border:1px solid var(--ds-line,#eaeaea);border-radius:16px;background:var(--ds-surface-soft,#fafafa);padding:16px;margin-top:18px;font-size:12px}
#hb-support .hb-support-confirm h3{font-size:14px;margin-bottom:8px}
.hb-support-confirm label{display:flex;align-items:center;gap:8px;min-height:44px;margin:8px 0}
.hb-support-confirm input{width:18px;height:18px;flex:none;accent-color:var(--ds-brand,#0a0a0a)}
.hb-support-row{display:flex;gap:8px;flex-wrap:wrap}
#hb-support .hb-support-error,#hb-support .hb-support-status{padding:8px 20px;flex:none;font-size:12px;background:#faf7f1;color:#685237;max-height:80px;overflow:auto}
#hb-support .hb-support-status{background:var(--ds-accent-soft,#f2f2f2);color:var(--ds-brand,#0a0a0a)}
#hb-support .hb-support-history-title{font-size:17px;margin-bottom:16px}
#hb-support .hb-support-history-item{display:block;width:100%;margin-bottom:10px;overflow-wrap:anywhere}
.hb-support-history-item small{display:block;color:var(--ds-muted,#666);font-size:11px;margin-top:5px}
/* Existing administrator inbox stays independent of chat bubble styles. */
.hb-support-message{padding:10px 12px;margin:0 0 10px;background:#f7f7f7;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.hb-support-message strong{display:block;font-size:12px;color:#666;margin-bottom:4px}
.hb-support-message p{margin:0!important}
.hb-support-admin-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
#hb-support-admin select{min-height:44px;padding:8px;border:1px solid #ddd;border-radius:8px;background:#fff}
.hb-support-admin-row{border-top:1px solid #eee;padding:16px 0;display:grid;gap:6px}
.hb-support-admin-row p{margin:0;font-size:12px;color:#666;overflow-wrap:anywhere}
.hb-support-admin-detail{border:1px solid #ddd;padding:20px;border-radius:8px;margin-top:20px;min-width:0}
.hb-support-admin-log{max-height:520px;overflow:auto;margin:16px 0}
#hb-support-admin .hb-support-admin-detail textarea{display:block;width:100%;min-height:120px;padding:12px;border:1px solid #ddd;border-radius:8px;resize:vertical;background:#fff;font-size:16px}
.hb-support-admin-detail label{display:block;margin:12px 0 4px}
.hb-support-admin-detail .hb-support-admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
.hb-support-admin-feedback{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:480px){#hb-support-launch{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}#hb-support-panel{right:10px;bottom:calc(72px + env(safe-area-inset-bottom));width:calc(100vw - 20px);height:calc(100dvh - 88px);border-radius:24px}.hb-support-head{padding:16px}.hb-support-body{padding:22px 18px}.hb-support-compose{padding:0 14px 12px}#hb-support .hb-support-welcome h3{font-size:28px}.hb-support-admin-detail{padding:12px}}
@media(max-height:500px){#hb-support-panel{top:8px;bottom:8px;height:calc(100dvh - 16px)}#hb-support-launch[aria-expanded=true]{visibility:hidden}.hb-support-head{padding:5px 14px}.hb-support-avatar{width:34px;height:34px}#hb-support h2{font-size:16px}.hb-support-heading p{display:none}.hb-support-body{padding:12px 18px}.hb-support-welcome{padding:0}#hb-support .hb-support-welcome h3{font-size:22px;margin-bottom:8px}.hb-support-compose{padding-bottom:6px}#hb-support #hb-support-input{min-height:38px}#hb-support-form{padding-top:6px;padding-bottom:6px}.hb-support-toolbar{margin:0}.hb-support-privacy{margin-top:0}#hb-support .hb-support-disclaimer{margin-top:4px;font-size:10px}}
#hb-support-panel{height:var(--hb-chat-height,min(740px,calc(100dvh - 104px)));bottom:var(--hb-chat-bottom,calc(80px + env(safe-area-inset-bottom)))}
@media(max-width:480px){#hb-support-panel{height:var(--hb-chat-height,calc(100dvh - 88px));bottom:var(--hb-chat-bottom,calc(72px + env(safe-area-inset-bottom)))}}
@media(max-height:500px){#hb-support-panel{height:var(--hb-chat-height,calc(100dvh - 16px));bottom:var(--hb-chat-bottom,8px)}}
/* Small screens: the launcher is a round button so it does not cover page controls. Its name stays for screen readers. */
@media(max-width:480px){#hb-support-launch{padding:13px!important;border-radius:50%!important}#hb-support-launch>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media print{#hb-support{display:none!important}}
