/* The Kept in Touch header: one dark bar at the top of every product, the CRM's design.
   Canonical copy: keptintouch/src/kit-header/. Contracts, Nadia and ListLogic carry exact copies
   (node scripts/sync-kit-header.mjs writes them; each repo's tests fail when a copy drifts).

   [☰] [logo ▾ Brokerage] | Product [its sections] ... [the product's own] [Search] [Ask Nadia] [team chat] [bell] [avatar]

   The logo button opens every product (the CRM's dropdown). The right side never changes: Search,
   Ask Nadia, team chat with what is new, the one bell for every product, and the avatar, always
   last, which opens the account menu (profile, notifications, help, sign out). --kit-bar is the bar's height while
   it is on the page, for the chrome below it. */
:root{--kit-bar:0px;--kit-hd-bg:#0E1726;--kit-hd-accent:#CFB36E;--kit-hd-on-accent:#000;--kit-hd-sheet-bg:#111827}
/* A phone app (and a page added to the home screen) draws the page under the phone's clock. The bar
   reaches up under it in its own color and keeps its row below, so its buttons can always be tapped;
   in a browser the inset is 0 and nothing changes. --kit-bar counts it. */
:root{--kit-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px))}
:root[data-kit-header]{--kit-bar:calc(56px + var(--kit-top))}
@media (min-width:1024px){:root[data-kit-header]{--kit-bar:calc(52px + var(--kit-top))}}
.kit-hd{position:sticky;top:0;z-index:60;padding-top:var(--kit-top);background:var(--kit-hd-bg);color:#fff;font:400 14px/1.3 'Open Sans',system-ui,-apple-system,sans-serif;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;font-feature-settings:normal;font-variant-numeric:normal;-webkit-font-smoothing:antialiased}
.kit-hd *,.kit-hd *::before,.kit-hd *::after{box-sizing:border-box}
.kit-hd-row{display:flex;align-items:center;gap:8px;height:56px;padding:0 12px;min-width:0}
@media (min-width:1024px){.kit-hd-row{height:52px;padding:0 16px}}
@media (max-width:359px){.kit-hd-row{gap:4px;padding:0 8px}}
@media (max-width:479px){.kit-hd-tight .kit-hd-product{display:none}}
/* The bar's own buttons and links start plain. What a product draws in a slot of its own
   ([data-kit-own]: the CRM's sections, its lead-flow switch) keeps the product's styles. */
.kit-hd button:where(:not([data-kit-own] *)){font:inherit;color:inherit;background:none;border:0;margin:0;cursor:pointer}
.kit-hd a:where(:not([data-kit-own] *)){color:inherit;text-decoration:none}
/* A browser gives a button padding of its own and a page's reset takes it away: none here either way, below any class that sets one. */
:where(.kit-hd) button:where(:not([data-kit-own] *)){padding:0}
.kit-hd-nav{flex:none;display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:40px;height:40px;margin-left:-6px;padding:0 10px;border-radius:8px}
.kit-hd-nav span{display:block;height:2px;border-radius:2px;background:rgba(255,255,255,.85)}
.kit-hd-nav:hover{background:rgba(255,255,255,.1)}
@media (min-width:1024px){.kit-hd-nav{display:none}}
/* The products: the brokerage's logo (or its initials) and name, with an arrow. */
.kit-hd-switch{position:relative;flex:none;min-width:0;max-width:40vw}
/* On a phone a wide logo gives way before a button leaves the screen. */
@media (max-width:639px){.kit-hd-switch{flex:0 1 auto}.kit-hd-logo{flex:0 1 auto;min-width:0}}
.kit-hd-brand{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:0}
.kit-hd-brand::after{content:"";flex:none;width:6px;height:6px;margin-left:-2px;border-right:2px solid rgba(255,255,255,.6);border-bottom:2px solid rgba(255,255,255,.6);transform:translateY(-2px) rotate(45deg)}
.kit-hd-brand[aria-expanded="true"]::after{transform:translateY(1px) rotate(-135deg)}
.kit-hd-brand-plain::after{display:none}
.kit-hd-tile{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:var(--kit-hd-accent);color:var(--kit-hd-on-accent);font-weight:800;font-size:13px;letter-spacing:-.01em}
.kit-hd-logo{display:block;height:32px;width:auto;max-width:11rem;object-fit:contain}
.kit-hd-name{display:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:14px;letter-spacing:-.01em}
@media (min-width:640px){.kit-hd-name{display:inline}}
.kit-hd-product{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:10px;margin-left:2px;border-left:1px solid rgba(255,255,255,.16);font-weight:600;font-size:14px;color:var(--kit-hd-accent)}
.kit-hd-own{display:flex;align-items:stretch;align-self:stretch;flex:none;min-width:0}
.kit-hd-own:empty,.kit-hd-menu-slot:empty{display:none}
.kit-hd-gap{flex:1 1 auto;min-width:0}
.kit-hd-actions{display:flex;align-items:center;gap:4px;flex:none}
.kit-hd-actions:empty{display:none}
/* Search and Ask Nadia: an icon each on a phone and a small laptop; at a desk a search box to click and a named button. */
.kit-hd .kit-hd-search,.kit-hd .kit-hd-ask{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;width:40px;height:44px;border-radius:8px;color:rgba(255,255,255,.78)}
.kit-hd .kit-hd-search:hover,.kit-hd .kit-hd-ask:hover{color:#fff;background:rgba(255,255,255,.1)}
/* Nadia open: her button is lit. */
.kit-hd .kit-hd-ask[aria-pressed="true"]{color:#fff;background:rgba(255,255,255,.14)}
.kit-hd-search svg,.kit-hd-ask svg{display:block;flex:none}
.kit-hd-ask svg{color:var(--kit-hd-accent)}
.kit-hd-search span,.kit-hd-search kbd,.kit-hd-ask span{display:none}
/* The same width shows the same bar in every product: icons up to a small laptop (the CRM's
   sections need the room), the search box and Nadia's name from 1400px. */
@media (min-width:1024px){.kit-hd .kit-hd-search,.kit-hd .kit-hd-ask{height:40px}}
@media (min-width:1400px){
.kit-hd .kit-hd-search{width:auto;min-width:168px;height:34px;margin-right:6px;padding:0 8px 0 10px;justify-content:flex-start;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:rgba(255,255,255,.62);font-size:13px}
.kit-hd .kit-hd-search:hover{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff}
.kit-hd-search span{display:inline}
.kit-hd-search kbd{display:inline;margin-left:auto;padding:0 4px;border:1px solid rgba(255,255,255,.2);border-radius:4px;font:inherit;font-size:10px;line-height:16px}
.kit-hd .kit-hd-ask{width:auto;height:34px;margin-right:4px;padding:0 11px;border:1px solid rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:600}
.kit-hd .kit-hd-ask:hover{border-color:rgba(255,255,255,.3)}
.kit-hd .kit-hd-ask[aria-pressed="true"]{border-color:#fff;background:#fff;color:#111827}
.kit-hd .kit-hd-ask[aria-pressed="true"] svg{color:#111827}
.kit-hd-ask span{display:inline}
/* What waits on a yes sits after her name at a desk, on the corner of her spark on a phone. */
.kit-hd-ask .kit-hd-badge:not(.kit-hd-dot){position:static;margin-left:-2px}
.kit-hd-ask .kit-hd-dot{top:4px;right:4px}
}
/* The search box and what it found: under the bar on a phone, a card near the top at a desk. */
.kit-hd-find{position:fixed;inset:0;z-index:80;display:flex;justify-content:center;align-items:flex-start;padding:calc(var(--kit-top) + 8px) 8px 8px;font:400 14px/1.3 'Open Sans',system-ui,-apple-system,sans-serif}
@media (min-width:640px){.kit-hd-find{padding-top:10vh}}
.kit-hd .kit-hd-find-back{position:absolute;inset:0;width:100%;height:100%;background:rgba(15,23,42,.45);cursor:default}
.kit-hd-find-card{position:relative;display:flex;flex-direction:column;width:100%;max-width:36rem;max-height:min(70vh,32rem);border-radius:14px;background:#fff;color:#111827;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow:hidden}
.kit-hd-find-top{display:flex;align-items:center;gap:10px;padding:0 6px 0 14px;border-bottom:1px solid #e5e7eb;color:#6b7280}
.kit-hd-find-top svg{flex:none}
.kit-hd-find-top input{flex:1 1 auto;min-width:0;height:52px;border:0;outline:0;background:none;color:#111827;font:inherit;font-size:16px}
.kit-hd-find-top input::-webkit-search-cancel-button{display:none}
.kit-hd .kit-hd-find-close{flex:none;min-height:44px;padding:0 10px;border-radius:8px;color:#4b5563;font-size:13px;font-weight:600}
.kit-hd .kit-hd-find-close:hover{background:#f3f4f6}
.kit-hd-find-list{overflow-y:auto;padding:6px}
.kit-hd-find-none{margin:0;padding:14px 10px;color:#4b5563}
.kit-hd-find-list a,.kit-hd-find-list button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 10px;border-radius:8px;text-align:left;text-decoration:none}
.kit-hd .kit-hd-find-list a,.kit-hd .kit-hd-find-list button{color:#111827}
.kit-hd-find-list [aria-selected="true"],.kit-hd-find-list a:hover,.kit-hd-find-list button:hover{background:#f3f4f6}
.kit-hd-find-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.kit-hd-find-text b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kit-hd-find-text small{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kit-hd-find-from{flex:none;font-size:11px;font-weight:600;color:#6b7280}
/* The usage wallet's balance, before team chat from a tablet up (on a phone it is at the top of the bell). */
.kit-hd .kit-hd-wallet{display:none}
@media (min-width:640px){
.kit-hd .kit-hd-wallet{position:relative;display:inline-flex;align-items:center;gap:6px;flex:none;height:34px;margin-right:4px;padding:0 10px;border:1px solid rgba(255,255,255,.16);border-radius:8px;color:#fff;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.kit-hd a.kit-hd-wallet:hover{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.1)}
.kit-hd-wallet svg{display:block;flex:none;color:var(--kit-hd-accent)}
.kit-hd .kit-hd-wallet[data-state="low"]{border-color:#f59e0b;color:#fde68a}
.kit-hd .kit-hd-wallet[data-state="low"] svg{color:#f59e0b}
.kit-hd .kit-hd-wallet[data-state="empty"]{border-color:#ef4444;color:#fecaca}
.kit-hd .kit-hd-wallet[data-state="empty"] svg{color:#ef4444}
}
.kit-hd .kit-hd-bell .kit-hd-bell-wallet{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 0 4px;padding:6px 10px;border-radius:8px;background:#f9fafb;color:#111827;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-decoration:none}
.kit-hd-bell-wallet svg{flex:none;color:#6b7280}
.kit-hd .kit-hd-bell .kit-hd-bell-wallet[data-state="low"]{background:#fffbeb;color:#92400e}
.kit-hd .kit-hd-bell .kit-hd-bell-wallet[data-state="empty"]{background:#fef2f2;color:#991b1b}
.kit-hd-bell-wallet[data-state="low"] svg{color:#d97706}
.kit-hd-bell-wallet[data-state="empty"] svg{color:#dc2626}
@media (min-width:640px){.kit-hd .kit-hd-bell .kit-hd-bell-wallet{display:none}}
/* Team chat and the bell: the same two buttons, in the same place, in every product. */
.kit-hd-core{display:flex;align-items:center;gap:0;flex:none}
.kit-hd-core:empty{display:none}
.kit-hd .kit-hd-ic{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:44px;border-radius:8px;color:rgba(255,255,255,.78)}
.kit-hd .kit-hd-ic:hover,.kit-hd .kit-hd-ic[aria-expanded="true"]{color:#fff;background:rgba(255,255,255,.1)}
.kit-hd .kit-hd-ic[aria-current="page"]{color:#fff;background:rgba(255,255,255,.14)}
.kit-hd-ic svg{display:block}
@media (min-width:1024px){.kit-hd .kit-hd-ic{height:40px}}
.kit-hd-badge{position:absolute;top:5px;right:1px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#dc2626;color:#fff;font:700 10px/16px 'Open Sans',system-ui,-apple-system,sans-serif;font-style:normal;text-align:center}
.kit-hd-dot{min-width:9px;width:9px;height:9px;padding:0;top:9px;right:7px;background:var(--kit-hd-accent)}
.kit-hd-dot-red{background:#ef4444}
@media (min-width:1024px){.kit-hd-badge{top:3px}.kit-hd-dot{top:7px}}
.kit-hd-bellwrap{position:relative;flex:none;display:flex}
.kit-hd-bellslot{display:flex;align-items:center;flex:none}
.kit-hd-bellslot:empty{display:none}
/* On a phone the bell opens just under the bar's own row, wherever the page keeps --kit-bar
   (the CRM counts the bar itself and leaves it 0, which put the list over the bar). */
.kit-hd-bell{position:fixed;left:8px;right:8px;top:calc(56px + var(--kit-top) + 4px);z-index:70;max-height:70vh;overflow-y:auto;padding:6px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#111827;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);font:400 14px/1.3 'Open Sans',system-ui,-apple-system,sans-serif}
@media (min-width:640px){.kit-hd-bell{position:absolute;left:auto;right:0;top:100%;width:22rem;margin-top:4px}}
.kit-hd-bell[hidden]{display:none}
.kit-hd-bell-title{margin:0;padding:6px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#9ca3af}
.kit-hd-bell-none{margin:0;padding:12px 10px;font-size:14px;color:#4b5563}
.kit-hd-bell a,.kit-hd-bell button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 10px;border-radius:8px;text-align:left;font-size:14px;color:#111827;text-decoration:none}
.kit-hd .kit-hd-bell a,.kit-hd .kit-hd-bell button{color:#111827}
.kit-hd-bell a:hover,.kit-hd-bell button:hover{background:#f9fafb}
.kit-hd-bell-text{flex:1 1 auto;min-width:0}
/* A line says what in two lines at most, and where or when under it, smaller. */
.kit-hd-bell-main{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.kit-hd-bell-sub{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:1px;font-size:12px;color:#6b7280}
.kit-hd-bell small{flex:none;align-self:flex-start;margin-top:2px;max-width:40%;font-size:11px;font-weight:600;color:#6b7280;text-align:right}
/* The bell's sections (Reply or call, Approve or review, ...), each with how many are in it. */
.kit-hd-bell-group{display:flex;align-items:center;gap:6px;margin:6px 0 0;padding:8px 10px 2px;border-top:1px solid #f3f4f6;font-size:12px;font-weight:700;color:#374151}
.kit-hd-bell-title+.kit-hd-bell-group,.kit-hd-bell-wallet+.kit-hd-bell-group{margin-top:0;border-top:0}
.kit-hd-bell-group b{min-width:18px;padding:0 6px;border-radius:999px;background:#f3f4f6;color:#374151;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.kit-hd-tone{flex:none;align-self:flex-start;margin-top:6px;width:8px;height:8px;border-radius:999px;background:#3b82f6}
.kit-hd-tone[data-tone="red"]{background:#ef4444}
.kit-hd-tone[data-tone="orange"]{background:#f97316}
.kit-hd-tone[data-tone="amber"]{background:#f59e0b}
/* The dropdown under the logo: every product with one line about it, then who is signed in. */
.kit-hd-sheet{position:absolute;top:100%;left:0;z-index:70;width:min(20rem,calc(100vw - 16px));margin-top:6px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:var(--kit-hd-sheet-bg);color:#fff;box-shadow:0 16px 40px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:2px;white-space:normal;font:600 13px/1.3 'Open Sans',system-ui,-apple-system,sans-serif}
.kit-hd-sheet[hidden]{display:none}
.kit-hd-sheet-brand{padding:8px 12px 6px;font-size:13px;font-weight:600;color:#9ca3af}
.kit-hd-sheet a{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:48px;padding:8px 12px;border-radius:8px;color:#d1d5db;text-decoration:none}
.kit-hd-sheet a:hover{color:#fff;background:rgba(255,255,255,.08)}
.kit-hd-sheet a[aria-current="page"]{color:var(--kit-hd-accent)}
.kit-hd-sheet a[aria-busy="true"]{color:#fff;background:rgba(255,255,255,.08)}
.kit-hd-sheet a[aria-busy="true"] b::after{content:"Opening…";margin-left:8px;font-size:12px;font-weight:400;color:#9ca3af}
.kit-hd-sheet b{font-size:14px;font-weight:600}
.kit-hd-sheet small{font-size:12px;font-weight:400;line-height:1.3;color:#9ca3af}
.kit-hd-sheet-who{margin:4px 0 0;padding:8px 12px 4px;border-top:1px solid rgba(255,255,255,.1);font-size:12px;font-weight:400;color:#9ca3af}
/* The avatar, always last: the account menu. */
.kit-hd-me{position:relative;flex:none}
.kit-hd-avatar{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border-radius:999px}
.kit-hd-avatar:hover{background:rgba(255,255,255,.1)}
.kit-hd-initials{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:999px;font-size:12px;font-weight:600;line-height:1}
.kit-hd-avatar .kit-hd-initials{box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.kit-hd-menu{position:absolute;right:0;top:100%;z-index:70;width:18rem;max-width:calc(100vw - 16px);margin-top:4px;padding:8px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#111827;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);font:400 14px/1.3 'Open Sans',system-ui,-apple-system,sans-serif}
.kit-hd-menu[hidden]{display:none}
.kit-hd-menu-head{display:flex;align-items:center;gap:10px;padding:8px;margin-bottom:4px;border-bottom:1px solid #f3f4f6}
.kit-hd-menu-head .kit-hd-initials{width:40px;height:40px;font-size:14px}
.kit-hd-menu-head p{margin:0;min-width:0}
.kit-hd-menu-head p strong,.kit-hd-menu-head p span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kit-hd-menu-head p strong{font-size:14px;font-weight:600;color:#111827}
.kit-hd-menu-head p span{font-size:12px;color:#6b7280}
.kit-hd-menu a:where(:not([data-kit-own] *)),.kit-hd-menu button:where(:not([data-kit-own] *)){display:flex;align-items:center;width:100%;min-height:38px;padding:0 8px;border-radius:6px;text-align:left;font-size:14px;color:#1f2937;text-decoration:none}
.kit-hd-menu a:where(:not([data-kit-own] *)):hover,.kit-hd-menu button:where(:not([data-kit-own] *)):hover{background:#f9fafb}
.kit-hd-menu-slot{padding:6px 8px;margin-bottom:4px;border-bottom:1px solid #f3f4f6}
.kit-hd-menu hr{margin:4px 0;border:0;border-top:1px solid #f3f4f6}
/* Team chat, opened where the person is: a panel under the bar on a desk, the whole screen below
   the bar on a phone. The conversations, then one conversation with a box to write in. */
.kit-hd-chat{position:fixed;right:12px;bottom:12px;z-index:75;display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 24px);max-height:680px;margin-top:8px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#111827;box-shadow:0 24px 60px rgba(0,0,0,.28);overflow:hidden;font:400 14px/1.4 'Open Sans',system-ui,-apple-system,sans-serif}
@media (max-width:639px){.kit-hd-chat{left:0;right:0;bottom:0;width:auto;max-width:none;max-height:none;margin-top:0;border:0;border-radius:0;box-shadow:none;padding-bottom:env(safe-area-inset-bottom,0px)}}
.kit-hd .kit-hd-chat [hidden]{display:none}
.kit-hd-chat-head{flex:none;display:flex;align-items:center;gap:4px;min-height:52px;padding:0 6px 0 14px;border-bottom:1px solid #e5e7eb}
.kit-hd-chat-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:700}
.kit-hd .kit-hd-chat-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;color:#4b5563}
.kit-hd .kit-hd-chat-btn:hover{background:#f3f4f6;color:#111827}
.kit-hd .kit-hd-chat-btn[data-kit-chat-back]{margin-left:-10px}
.kit-hd .kit-hd-chat-full{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;border-radius:8px;color:#4b5563;font-size:13px;font-weight:600;white-space:nowrap}
.kit-hd .kit-hd-chat-full:hover{background:#f3f4f6;color:#111827}
.kit-hd-chat-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media (min-width:640px){.kit-hd-chat-body{min-height:260px}}
.kit-hd-chat-none{margin:0;padding:16px 14px;color:#4b5563}
.kit-hd .kit-hd-chat-again{display:block;margin:4px auto 8px;min-height:40px;padding:0 14px;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:13px;font-weight:600}
.kit-hd .kit-hd-chat-again:hover{background:#f9fafb}
.kit-hd-chat-list{padding:6px}
.kit-hd-chat-label{margin:10px 8px 4px;color:#6b7280;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.kit-hd .kit-hd-chat-row{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:6px 8px;border-radius:10px;color:#111827;text-align:left}
.kit-hd .kit-hd-chat-row:hover{background:#f3f4f6}
.kit-hd .kit-hd-chat-row[aria-busy="true"]{opacity:.6}
.kit-hd-chat-row .kit-hd-initials{flex:none;width:36px;height:36px;font-size:13px}
.kit-hd-chat-words{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.kit-hd-chat-top{display:flex;align-items:baseline;gap:8px}
.kit-hd-chat-words b{flex:1 1 auto;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kit-hd-chat-words small{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kit-hd-chat-top small{flex:none}
.kit-hd-chat-new{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font:700 11px/20px 'Open Sans',system-ui,-apple-system,sans-serif;font-style:normal;text-align:center}
.kit-hd-chat-thread{display:flex;flex-direction:column;gap:10px;padding:12px 12px 14px}
.kit-hd-chat-msg{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:88%}
.kit-hd-chat-mine{align-self:flex-end;align-items:flex-end}
.kit-hd-chat-meta{font-size:11px;color:#6b7280}
.kit-hd-chat-bubble{display:flex;flex-direction:column;gap:6px;padding:8px 12px;border-radius:14px;background:#f3f4f6;color:#111827;white-space:pre-wrap;overflow-wrap:anywhere}
.kit-hd-chat-mine .kit-hd-chat-bubble{background:#0E1726;color:#fff}
.kit-hd-chat-ann{max-width:100%;align-self:stretch}
.kit-hd-chat-ann .kit-hd-chat-bubble{align-self:stretch;border:1px solid #fcd34d;background:#fffbeb;color:#111827}
.kit-hd-chat-reply{padding-left:8px;border-left:2px solid currentColor;font-size:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.kit-hd .kit-hd-chat-pic{display:block}
.kit-hd-chat-pic img{display:block;max-width:220px;max-height:220px;border-radius:10px}
.kit-hd-chat-reacts{display:flex;flex-wrap:wrap;gap:4px}
.kit-hd-chat-react{padding:1px 7px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#374151;font-size:12px}
.kit-hd-chat-react-mine{border-color:#93c5fd;background:#eff6ff}
.kit-hd .kit-hd-chat-got{min-height:40px;padding:0 14px;border-radius:999px;background:#0E1726;color:#fff;font-size:13px;font-weight:600}
.kit-hd .kit-hd-chat-got:disabled{opacity:.5}
.kit-hd-chat-note{flex:none;margin:0;padding:8px 14px;border-top:1px solid #e5e7eb;color:#4b5563;font-size:13px}
.kit-hd-chat-foot{flex:none;display:flex;align-items:flex-end;gap:8px;margin:0;padding:8px 10px;border-top:1px solid #e5e7eb}
.kit-hd-chat-note:not([hidden]) + .kit-hd-chat-foot{border-top:0;padding-top:0}
.kit-hd-chat-foot textarea{flex:1 1 auto;min-width:0;min-height:44px;max-height:120px;margin:0;padding:11px 12px;border:1px solid #d1d5db;border-radius:12px;outline:0;background:#fff;color:#111827;font:inherit;font-size:16px;line-height:1.3;resize:none;box-sizing:border-box}
.kit-hd-chat-foot textarea:focus{border-color:#0E1726;box-shadow:0 0 0 1px #0E1726}
.kit-hd .kit-hd-chat-send{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--kit-hd-accent);color:var(--kit-hd-on-accent)}
.kit-hd .kit-hd-chat-send:disabled{opacity:.5}
/* The product list, the bell and the account menu open with a short fade and lift (the CRM's, now
   everyone's); not for someone who asked for less motion, and not on a phone, where they are sheets. */
@keyframes kit-hd-pop{from{opacity:0;translate:0 -4px;scale:.98}}
@media (min-width:640px) and (prefers-reduced-motion:no-preference){
  .kit-hd .kit-hd-sheet,.kit-hd .kit-hd-bell,.kit-hd .kit-hd-menu,.kit-hd .kit-hd-chat{animation:kit-hd-pop .14s cubic-bezier(.16,1,.3,1);transform-origin:top}
  .kit-hd .kit-hd-still{animation:none}
}
