/* Estados de 24 h en Online. La miniatura usa la celda existente del encabezado. */
#online .br-note-own{
  position:relative;display:grid;place-items:center;
  width:100%;aspect-ratio:1;min-width:0;padding:0;
  border:0;appearance:none;background:none;cursor:pointer;
}
#online .br-note-own-avatar{
  width:100%;height:100%;border-radius:50%;box-sizing:border-box;
  border:2px solid #fff;box-shadow:0 0 0 1px #c6ddf9;
  background:#e8f2fe center/cover no-repeat;
}
#online .br-note-own-pencil{
  position:absolute;right:0;bottom:0;display:grid;place-items:center;
  width:18px;height:18px;border-radius:50%;box-sizing:border-box;
  color:#fff;background:#2388ed;border:1.5px solid #fff;
}
#online .br-note-own-pencil svg{width:11px;height:11px;}
@media(prefers-reduced-motion:no-preference){
  #online .br-note-own.is-empty .br-note-own-pencil::before{
    content:'';position:absolute;inset:-2px;border:2px solid #2388ed;
    border-radius:inherit;pointer-events:none;
    animation:br-note-pencil-pulse 1.8s ease-out .35s 3 both;
  }
}
@keyframes br-note-pencil-pulse{
  0%{opacity:.65;transform:scale(.88);}
  62%,100%{opacity:0;transform:scale(1.65);}
}
#online .br-note-own:focus-visible,#online .br-note-bubble:focus-visible{
  outline:2px solid #247be2;outline-offset:2px;
}
#online .br-note-bubble{
  position:absolute;left:50%;bottom:calc(100% + 2px);transform:translateX(-50%);
  display:flex;align-items:center;justify-content:center;width:max-content;min-width:40px;
  max-width:min(104px,28vw);box-sizing:border-box;padding:3px 7px;
  border:1px solid #d6e5f5;border-radius:999px;
  background:#fff;color:#344d69;box-shadow:0 2px 7px rgba(29,74,128,.14);
  font:600 10px/15px Arial,sans-serif;text-align:center;
  z-index:12;cursor:pointer;overflow:visible;
}
#online .br-note-own-bubble{bottom:calc(100% + 3px);pointer-events:none;}
#online .br-note-own-bubble[hidden]{display:none;}
#online .br-note-bubble-text{
  display:block;min-width:0;max-width:100%;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;
}
#online .br-note-bubble.is-truncated{gap:4px;}
#online .br-note-bubble.is-truncated::before{
  content:'';order:1;flex:0 0 4px;width:4px;height:4px;
  margin-right:2px;border:solid #247be2;border-width:1.5px 1.5px 0 0;
  transform:rotate(45deg);
}
#online .br-note-bubble::after{
  content:'';position:absolute;top:100%;left:calc(50% - 12px);
  width:24px;height:22px;pointer-events:none;
  background:
    radial-gradient(circle at 7px 5px,#fff 3px,#b9d2ee 3.5px 4px,transparent 4.5px),
    radial-gradient(circle at 12px 13px,#fff 1.8px,#b9d2ee 2.3px 2.8px,transparent 3.3px),
    radial-gradient(circle at 16px 19px,#fff .8px,#b9d2ee 1.3px 1.8px,transparent 2.3px);
}
#online .on-honey-row > .on-user3,#online .on-honey-row .on-pos{overflow:visible;}
.br-note-modal-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(17,27,42,.28);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;}
.br-note-modal{width:min(100%,540px);max-height:90vh;overflow:auto;background:#fff;color:#233149;border:1px solid #dbe8f6;border-radius:22px;padding:20px 24px;overscroll-behavior:contain;box-sizing:border-box;box-shadow:0 20px 50px rgba(10,22,41,.28);font:14px/1.4 Arial,sans-serif;}
.br-note-modal-title{font-size:18px;line-height:24px;margin:0 0 14px;font-weight:700;color:#263851;overflow-wrap:anywhere;}
.br-note-editor-input{width:100%;min-height:62px;max-height:140px;border:1px solid #d5e2f1;border-radius:11px;padding:11px;font:16px/21px Arial,sans-serif;color:#243449;background:#f9fbfe;resize:none;display:block;box-sizing:border-box;outline:none;}
.br-note-editor-input:focus{border-color:#2788ec;box-shadow:0 0 0 3px rgba(39,136,236,.1);}
.br-note-editor-meta{display:flex;justify-content:space-between;align-items:center;margin:8px 0 2px;font-size:12px;color:#6c7a90;}
.br-note-editor-count.over-limit{color:#d43f46;font-weight:700;}
.br-note-editor small{color:#8390a3;font-size:11px;}
.br-note-editor-error{margin:6px 0;color:#c23542;font-size:12px;}
.br-note-editor-error[hidden]{display:none;}
.br-note-modal-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-top:19px;}
.br-note-modal-actions button{border:0;border-radius:9px;padding:10px 12px;min-height:38px;cursor:pointer;font:600 13px Arial,sans-serif;}
.br-note-modal-actions button:disabled{opacity:.5;cursor:wait;}
.br-note-btn-muted{background:#edf3fa;color:#52657e;}
.br-note-btn-main{background:#2588ed;color:#fff;}
.br-note-btn-danger{background:#fff0f1;color:#c8404e;}
.br-note-view-text{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;background:#f5f9fe;border-radius:12px;font-size:16px;line-height:24px;color:#233a56;}
.br-note-modal-actions button[hidden]{display:none;}
.br-note-modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;
}
.br-note-modal-head .br-note-modal-title{margin:0;}
.br-note-modal-close{
  margin-inline-start:auto;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:50%;
  color:#62738b;background:#edf3fa;font:24px/1 Arial,sans-serif;cursor:pointer;
}
.br-note-view-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:50%;object-fit:cover;}
.br-note-mobile-overlay{align-items:flex-end;padding:0;background:transparent;}
.br-note-mobile-overlay .br-note-modal{
  width:min(100%,480px);max-height:100%;
  padding:16px 18px max(15px,env(safe-area-inset-bottom));
  border-radius:20px 20px 0 0;
}
@media(max-width:768px){
  .br-note-modal-overlay{align-items:flex-end;padding:0;background:transparent;}
  .br-note-modal{
    width:min(100%,480px);max-height:100%;
    padding:16px 18px max(15px,env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
  }
}
@media(prefers-reduced-motion:no-preference){
  .br-note-mobile-overlay .br-note-modal{animation:br-note-open .18s ease-out both;}
  @media(max-width:768px){.br-note-modal{animation:br-note-open .18s ease-out both;}}
}
@keyframes br-note-open{from{transform:translateY(18px);opacity:0;}to{transform:translateY(0);opacity:1;}}
@media(max-width:360px){#messages .br-message-contacts-track{gap:20px;padding-left:19px;padding-right:19px;}}

/* The heading's empty padding overlaps the first row's raised notes. */
#online .online-users-head{pointer-events:none;}
#online .online-users-head .br-note-own{pointer-events:auto;}
#online .on-honey-row:has(.br-note-visitor){padding-top:12px;}
#online .online-users-head + .on-honey-group > .on-row-3:has(.br-note-visitor){padding-top:30px;}
.br-note-modal-actions .br-note-emoji-toggle{
  display:grid;place-items:center;margin-inline-end:auto;
  width:38px;min-width:38px;padding:0;color:#2588ed;background:#edf5fe;font-size:20px;
}
.br-note-emoji-toggle svg{width:20px;height:20px;}
.br-note-emoji-toggle[aria-expanded="true"]{background:#dceeff;}
.br-note-emoji-picker{
  margin-top:10px;padding:6px;border:1px solid #dbe8f6;border-radius:12px;background:#f8fbff;
}
.br-note-emoji-picker[hidden]{display:none;}
.br-note-emoji-categories{display:flex;overflow-x:auto;gap:2px;border-bottom:1px solid #dbe8f6;}
.br-note-emoji-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(32px,1fr));
  max-height:120px;overflow-y:auto;padding-top:4px;overscroll-behavior:contain;
}
.br-note-emoji-categories button,.br-note-emoji-grid button{
  min-width:32px;min-height:32px;padding:0 3px;border:0;
  border-radius:6px;background:transparent;cursor:pointer;font-size:19px;line-height:1;
}
.br-note-emoji-categories button[aria-pressed="true"],.br-note-emoji-grid button:hover{background:#dceeff;}
#online .br-note-visitor{touch-action:manipulation;user-select:none;}
#online .br-note-visitor::before{pointer-events:none;}
