/* Zoom Team Chat inside Kilby (kilby-zoom.js). The look is the approved prototype's
   (docs/zoom-chat-mockup/zoom-prototype.js; owner, 2026-11-18: "THAT LOOKS GREAT!!!!"). */
.zoom-logo { background:#0b5cff; display:inline-grid; place-items:center; flex:none; }
.zoom-logo svg { width:62%; height:62%; }
.zoom-logo-heading { width:18px; height:18px; border-radius:5px; margin-right:7px; }
.zoom-logo-row { width:36px; height:36px; border-radius:10px; }
.zoom-logo-head { width:30px; height:30px; border-radius:8px; }
.zoom-chat-list[hidden] { display:none; }

#zoomPanel { width:var(--zoom-width,440px); flex:none; display:flex; flex-direction:column; background:var(--kilby-black,#fff); color:var(--kilby-white,#111);
  border-left:1px solid var(--kilby-border,#e3e5e9); border-right:1px solid var(--kilby-border,#e3e5e9); box-sizing:border-box;
  position:sticky; align-self:flex-start; font-family:'DM Sans',sans-serif; z-index:5; }
#zoomPanel .zoom-head { display:flex; align-items:center; gap:10px; padding:14px 14px 12px 16px; border-bottom:1px solid var(--kilby-border,#e3e5e9); }
#zoomPanel .zoom-head-copy { min-width:0; }
#zoomPanel .zoom-title { font-weight:600; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#zoomPanel .zoom-sub { font-size:12.5px; color:var(--kilby-secondary,#6b7280); }
#zoomPanel .zoom-live { color:#15803d; font-weight:600; }
#zoomPanel .zoom-x { margin-left:auto; width:32px; height:32px; border:0; background:none; border-radius:8px; color:var(--kilby-secondary,#5f6368); cursor:pointer; display:grid; place-items:center; flex:none; }
#zoomPanel .zoom-x:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-list { flex:1; overflow-y:auto; padding:8px 16px; }
#zoomPanel .zoom-day { text-align:center; font-size:12px; color:var(--kilby-secondary,#6b7280); margin:6px 0; }
#zoomPanel .zoom-m { display:flex; gap:10px; position:relative; border-radius:8px; margin:0 -8px; padding:8px; }
#zoomPanel .zoom-m:hover { background:var(--kilby-panel,#f6f7f9); }
#zoomPanel .zoom-m.pending { opacity:.6; }
#zoomPanel .zoom-av { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; font:600 12px 'DM Sans',sans-serif; flex:none; }
#zoomPanel .zoom-av img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
#zoomPanel .zoom-body { min-width:0; flex:1; }
#zoomPanel .zoom-who { font-weight:600; font-size:14px; }
#zoomPanel .zoom-who time { font-weight:400; font-size:12px; color:var(--kilby-secondary,#6b7280); margin-left:6px; }
#zoomPanel .zoom-text { font-size:14px; line-height:1.5; margin-top:2px; white-space:pre-wrap; overflow-wrap:anywhere; }
#zoomPanel .zoom-link { color:var(--kilby-link,#1a73e8); text-decoration:underline; }
#zoomPanel .zoom-file { display:flex; align-items:center; gap:8px; margin-top:6px; padding:8px 10px; max-width:320px; border:1px solid var(--kilby-border,#e3e5e9);
  border-radius:10px; color:inherit; text-decoration:none; font-size:13.5px; }
#zoomPanel .zoom-file:hover { border-color:var(--kilby-link,#1a73e8); }
#zoomPanel .zoom-file svg { width:18px; height:18px; flex:none; color:var(--kilby-secondary,#5f6368); }
#zoomPanel .zoom-file-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#zoomPanel .zoom-file-size { margin-left:auto; flex:none; font-size:12px; color:var(--kilby-secondary,#6b7280); }
/* Reactions (approved mockup docs/zoom-reactions-mockup/; owner, 2026-11-20: "I like the reactions."): four quick ones
   and the full set on hover, each reaction a count under the message (yours outlined in blue), an emoji for the box. */
#zoomPanel .zoom-tools { position:absolute; top:-14px; right:8px; display:none; align-items:center; gap:2px; padding:3px; background:var(--kilby-black,#fff);
  border:1px solid var(--kilby-border,#e3e5e9); border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.08); z-index:2; }
#zoomPanel .zoom-m:hover .zoom-tools, #zoomPanel .zoom-m:focus-within .zoom-tools { display:flex; }
#zoomPanel .zoom-tool { width:30px; height:30px; border:0; background:none; border-radius:7px; font-size:17px; line-height:1; cursor:pointer; display:grid; place-items:center; color:var(--kilby-secondary,#5f6368); }
#zoomPanel .zoom-tool:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-tools .sep { width:1px; height:18px; background:var(--kilby-border,#e3e5e9); margin:0 3px; }
#zoomPanel .zoom-reactions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; align-items:center; }
#zoomPanel .zoom-reaction { font:500 13px 'DM Sans',sans-serif; padding:2px 9px; border-radius:999px; border:1px solid var(--kilby-border,#e3e5e9);
  background:var(--kilby-black,#fff); color:inherit; cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
#zoomPanel .zoom-reaction:hover { border-color:#9db8f5; }
#zoomPanel .zoom-reaction.mine { border-color:#1a73e8; background:rgba(26,115,232,.10); color:var(--kilby-link,#1a73e8); }
#zoomPanel .zoom-reaction-add { width:28px; height:24px; padding:0; justify-content:center; color:var(--kilby-secondary,#5f6368); display:none; }
#zoomPanel .zoom-m:hover .zoom-reaction-add, #zoomPanel .zoom-m:focus-within .zoom-reaction-add { display:inline-flex; }
#zoomPanel .zoom-emoji-btn { width:32px; height:32px; border:0; background:none; border-radius:50%; color:var(--kilby-secondary,#5f6368); cursor:pointer; display:grid; place-items:center; flex:none; }
#zoomPanel .zoom-emoji-btn:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-picker { position:absolute; z-index:5; box-sizing:border-box; width:304px; padding:8px; background:var(--kilby-black,#fff); border:1px solid var(--kilby-border,#e3e5e9);
  border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.14); display:grid; grid-template-columns:repeat(8, 34px); gap:2px; }
#zoomPanel .zoom-picker[hidden] { display:none; }
#zoomPanel .zoom-picker button { width:34px; height:34px; padding:0; border:0; background:none; border-radius:8px; font-size:20px; cursor:pointer; }
#zoomPanel .zoom-picker button:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-form { margin:8px 12px 4px; border:1px solid var(--kilby-border,#d7dbe2); border-radius:24px; display:flex; align-items:center; gap:4px; padding:6px 6px 6px 8px; }
#zoomPanel .zoom-attach { width:32px; height:32px; border:0; background:none; border-radius:50%; color:var(--kilby-secondary,#5f6368); cursor:pointer; display:grid; place-items:center; flex:none; }
#zoomPanel .zoom-attach:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-input { flex:1; min-width:0; border:0; outline:0; background:none; font:400 14.5px 'DM Sans',sans-serif; color:inherit; }
#zoomPanel .zoom-send { width:34px; height:34px; border-radius:50%; border:0; background:#111; color:#fff; display:grid; place-items:center; cursor:pointer; flex:none; }
#zoomPanel .zoom-send:disabled { opacity:.35; cursor:default; }
#zoomPanel .zoom-note { text-align:center; font-size:12px; color:var(--kilby-secondary,#6b7280); margin:2px 12px 12px; }
#zoomPanel .zoom-note.error { color:#b42318; }

/* New message: "To" takes a Zoom contact or a Zoom user's email (kilby-zoom.js compose). */
#zoomPanel.composing .zoom-attach { display:none; }
#zoomPanel .zoom-to { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--kilby-border,#e3e5e9); }
#zoomPanel .zoom-to-label { font-size:14px; color:var(--kilby-secondary,#6b7280); }
#zoomPanel .zoom-to-input { flex:1; min-width:0; border:0; outline:0; background:none; font:400 14.5px 'DM Sans',sans-serif; color:inherit; }
#zoomPanel .zoom-to-results { display:flex; flex-direction:column; padding:4px 0; }
#zoomPanel .zoom-to-check { display:flex; align-items:center; gap:10px; padding:0 6px; font-size:13.5px; color:var(--kilby-secondary,#4b5563); }
#zoomPanel .zoom-to-check:not(:empty) { padding:8px 6px; }
#zoomPanel .zoom-to-check.ok .zoom-to-name { font-weight:600; color:var(--kilby-text,#111827); }
#zoomPanel .zoom-to-ok { margin-left:auto; color:#15803d; font-size:12.5px; font-weight:600; }
#zoomPanel .zoom-to-check.none { color:#b91c1c; flex-wrap:wrap; }
#zoomPanel .zoom-to-check.sent { color:#15803d; }
#zoomPanel .zoom-invite { margin-left:auto; border:1px solid var(--kilby-border,#d1d5db); background:none; color:var(--kilby-text,#111827);
  border-radius:8px; padding:5px 10px; font:inherit; font-size:13px; cursor:pointer; }
#zoomPanel .zoom-invite:hover { color:#2563eb; border-color:#2563eb; }
#zoomPanel .zoom-invite:disabled { opacity:.6; cursor:default; }
#zoomPanel .zoom-to-said { flex-basis:100%; color:#b91c1c; }
#zoomPanel .zoom-to-pick { display:flex; align-items:center; gap:10px; padding:8px 6px; border:0; background:none; border-radius:8px;
  color:inherit; cursor:pointer; text-align:left; font:400 14px 'DM Sans',sans-serif; }
#zoomPanel .zoom-to-pick:hover { background:var(--kilby-panel,#f1f3f4); }
#zoomPanel .zoom-to-name { font-weight:600; }
#zoomPanel .zoom-to-email { color:var(--kilby-secondary,#6b7280); font-size:12.5px; margin-left:auto; }

/* Phones: the panel fills the screen over the chat, with its X to come back. */
@media (max-width: 760px) {
  #zoomPanel { position:fixed; inset:0; width:100%; height:100% !important; top:0 !important; z-index:60; border:0; }
}

/* The sidebar's Zoom rows look like Kilby's Messages rows (kilby-team-threads.css scopes those to .team-thread-list,
   which this list can't carry: Messages' code acts on every .team-thread-list). The open chat sat shifted left with a
   narrow highlight (owner's screenshot, 2026-11-19). */
#zoomChatList .thread-item { position:relative; display:block; width:100%; text-align:left; box-sizing:border-box; }
#zoomChatList .thread-item.message-row { display:flex; align-items:center; gap:10px; padding:8px 10px; }
#zoomChatList .message-row .team-unread { top:50%; transform:translateY(-50%); }
.ws-sidebar #zoomChatList .message-new { width:100%; gap:10px; margin:2px 0; padding:8px 10px; border:0; border-radius:8px;
  box-sizing:border-box; font-size:13px; color:var(--kilby-list-title, var(--kilby-secondary)); }
.ws-sidebar #zoomChatList .message-new svg { flex:none; color:var(--kilby-secondary); }
.ws-sidebar #zoomChatList .message-new:hover { background:rgba(var(--kilby-tint),0.04); color:var(--kilby-white); }
/* The Messages list's box and lines: rows indented as the rows around them, name above its last line. */
.ws-sidebar .sidebar-conversations > #zoomChatList { padding:0 10px; }
#zoomChatList .title, #zoomChatList .meta { display:block; padding-right:25px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#zoomChatList .message-who { min-width:0; flex:1; }
.ws-sidebar #zoomChatList button.section-toggle { width:100%; margin:2px 0; padding:8px 10px; box-sizing:border-box; }

/* Telling Kilby's Messages from Zoom Chat (owner, 2026-11-19; docs/zoom-chat-mockup/sidebar-sources.html): each heading
   carries its owner's logo, each Zoom chat a small Zoom badge on its circle, a line between the two sections. */
.section-toggle .section-logo { width:18px; height:18px; border-radius:5px; margin-right:7px; flex:none; }
#zoomChatList .zoom-face { position:relative; }
#zoomChatList .zoom-badge { position:absolute; right:-6px; bottom:-6px; width:14px; height:14px; border-radius:4px;
  box-shadow:0 0 0 2px var(--kilby-black,#fff); display:grid; place-items:center; }
#zoomChatList .zoom-badge svg { width:10px; height:10px; }
.ws-sidebar .team-thread-list:not([hidden]) + #zoomChatList:not([hidden])::before { content:''; display:block;
  border-top:1px solid var(--kilby-border); margin:8px 10px; }

/* An image in a chat shows as the picture (owner, 2026-11-19). */
#zoomPanel .zoom-image { display:block; margin-top:6px; max-width:320px; }
#zoomPanel .zoom-image img { display:block; max-width:100%; max-height:240px; border-radius:8px; border:1px solid var(--kilby-border,#e3e5e9); object-fit:contain; background:var(--kilby-panel,#f6f7f9); }

/* Files picked to send wait above the message box until Send, each with an X (owner, 2026-11-19). */
#zoomPanel .zoom-staged { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
#zoomPanel .zoom-staged[hidden] { display: none; }
#zoomPanel .zoom-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px;
  border: 1px solid var(--kilby-border, #e3e5e9); border-radius: 8px; font-size: 13px; color: var(--text, #111827); background: var(--surface, #fff); }
#zoomPanel .zoom-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
#zoomPanel .zoom-chip .zoom-file-size { color: var(--text-secondary, #4b5563); font-size: 12px; }
#zoomPanel .zoom-chip-x { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px;
  border-radius: 6px; color: var(--text-secondary, #4b5563); }
#zoomPanel .zoom-chip-x:hover { background: var(--hover, #f3f4f6); color: var(--text, #111827); }

/* The panel's left edge drags, as every column's does (owner, 2026-11-19: "they all should flex."); kilby.css .home-divider. */
.zoom-divider { display:block; position:relative; flex:0 0 8px; margin:0 -4px; z-index:6; cursor:col-resize; align-self:stretch; }
.zoom-divider::after { content:''; position:absolute; top:0; bottom:0; left:3px; width:2px; background:transparent; transition:background .15s ease; }
.zoom-divider .wp-divider-tip { font-weight:400; }
@media (max-width: 760px) { .zoom-divider { display:none; } }
/* "Loading…" under the Zoom heading while its first list comes, lined up with the rows (kilby-zoom.js listed). */
.zoom-list-loading { padding:6px 10px 8px; }
