/* Cealius Operations / Apple-inspired glass reply notifications.
   Scoped entirely to the reply widget; honors dark/light tokens and reduced-motion. */
.reply-alert {
  position:relative; z-index:35; flex:0 0 auto; align-self:center;
  display:flex; align-items:center; justify-content:center;
  width:38px; height:40px; margin-inline:1px;
}
.reply-alert .reply-bell {
  -webkit-appearance:none; appearance:none;
  position:relative; isolation:isolate; box-sizing:border-box;
  display:grid; place-items:center; width:36px; height:36px;
  padding:0; margin:0; border-radius:50%;
  border:1px solid rgba(var(--c-fg,20,20,20),.15);
  background:linear-gradient(145deg,rgba(var(--c-fg,255,255,255),.08),rgba(var(--c-fg,255,255,255),.015));
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  color:var(--c-ink,#202124); cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 9px rgba(0,0,0,.045);
  transition:transform .32s cubic-bezier(.2,.8,.2,1),background .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.reply-alert .reply-bell:hover {
  transform:translateY(-1px) scale(1.045);
  border-color:rgba(var(--c-fg,20,20,20),.27);
  background:rgba(var(--c-fg,255,255,255),.105);
  box-shadow:0 6px 20px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.10);
}
.reply-alert .reply-bell:active {transform:scale(.94)}
.reply-alert .reply-bell:focus-visible {outline:2px solid var(--c-acc2,#ad895c);outline-offset:3px}
.reply-alert .reply-bell.is-open {
  border-color:var(--c-acc2,#ad895c);
  background:rgba(var(--c-fg,255,255,255),.13);
  box-shadow:0 0 0 3px rgba(183,145,91,.08),inset 0 1px 0 rgba(255,255,255,.12);
}
.reply-alert .reply-bell-mark{display:grid;place-items:center;width:19px;height:19px}
.reply-alert .reply-bell-svg{display:block;width:19px;height:19px;transform-origin:50% 17%;overflow:visible}
.reply-alert .reply-count {
  box-sizing:border-box; position:absolute; top:-6px; right:-7px;
  display:grid; place-items:center; min-width:18px; height:18px;
  padding:0 4px; border:2px solid var(--c-bg,#f2f2ef);
  border-radius:999px; background:var(--c-acc2,#aa794b);
  color:var(--c-bg,#fff); font:700 10px/1 var(--c-sans,Inter,system-ui,sans-serif);
  font-variant-numeric:tabular-nums; letter-spacing:-.02em;
  box-shadow:0 2px 8px rgba(0,0,0,.10); pointer-events:none;
}
.reply-alert.reply-just-arrived .reply-bell-svg{animation:ceReplyRing .9s ease-out both}
.reply-alert.reply-just-arrived .reply-count{animation:ceReplyBadge .55s cubic-bezier(.16,1.3,.3,1) both}
@keyframes ceReplyRing{
  0%,60%,100%{transform:rotate(0)}
  10%{transform:rotate(13deg)}22%{transform:rotate(-12deg)}
  34%{transform:rotate(8deg)}46%{transform:rotate(-5deg)}
}
@keyframes ceReplyBadge{0%{transform:scale(.65)}65%{transform:scale(1.15)}100%{transform:scale(1)}}
.reply-alert .reply-panel {
  position:absolute; right:-15px; top:calc(100% + 12px);
  width:min(375px,calc(100vw - 28px)); max-height:min(520px,72vh);
  overflow:hidden; display:flex; flex-direction:column; padding:0;
  border-radius:21px;
  border:1px solid rgba(var(--c-fg,20,20,20),.16);
  background:linear-gradient(145deg,rgba(var(--c-bg-rgb,242,242,239),.93),rgba(var(--c-bg-rgb,242,242,239),.84));
  -webkit-backdrop-filter:blur(30px) saturate(170%);
  backdrop-filter:blur(30px) saturate(170%);
  box-shadow:0 22px 64px rgba(0,0,0,.20),0 5px 14px rgba(0,0,0,.065),inset 0 1px 0 rgba(255,255,255,.08);
  color:var(--c-ink,#202124); z-index:100;
  animation:ceReplyPanelIn .34s cubic-bezier(.16,1,.3,1) both;
}
.reply-alert .reply-panel[hidden]{display:none!important}
@keyframes ceReplyPanelIn {
  from{opacity:0;transform:translateY(-8px) scale(.975);filter:blur(4px)}
  to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
.reply-alert .reply-panel-head {
  flex:0 0 auto; display:flex; justify-content:space-between; align-items:start; gap:12px;
  padding:21px 22px 16px; border-bottom:1px solid rgba(var(--c-fg,20,20,20),.09);
}
.reply-alert .reply-panel-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.reply-alert .reply-eyebrow {
  font:500 9px/1.4 var(--c-mono,ui-monospace,monospace);
  letter-spacing:.17em; color:var(--c-acc2,#95703d);
}
.reply-alert .reply-panel-head strong{font-size:19px;font-weight:600;letter-spacing:-.05em;line-height:1.2}
.reply-alert .reply-panel-head small{font-size:12px;color:var(--c-ink3,#84848a);line-height:1.4}
.reply-alert #replyNotifyClose{
  flex:0 0 auto; display:grid;place-items:center;width:29px;height:29px;padding:0;
  border:1px solid rgba(var(--c-fg,20,20,20),.1);border-radius:50%;
  background:rgba(var(--c-fg,255,255,255),.045);color:var(--c-ink2,#555);
  cursor:pointer;transition:background .2s,transform .2s;
}
.reply-alert #replyNotifyClose svg{display:block;width:14px;height:14px}
.reply-alert #replyNotifyClose:hover{background:rgba(var(--c-fg,255,255,255),.1);transform:rotate(90deg)}
.reply-alert .reply-panel-content{overflow:auto;overscroll-behavior:contain}
.reply-alert .reply-item{
  position:relative; display:flex;align-items:center;gap:12px;text-align:left;
  width:100%; min-width:0; margin:0; padding:13px 21px;
  border:0;border-bottom:1px solid rgba(var(--c-fg,20,20,20),.075);
  background:transparent;color:inherit;cursor:pointer;
  transition:background .22s ease,transform .22s ease;
}
.reply-alert .reply-item:last-child{border-bottom:none}
.reply-alert .reply-item:hover{background:rgba(var(--c-fg,20,20,20),.055)}
.reply-alert .reply-item:active{background:rgba(var(--c-fg,20,20,20),.09)}
.reply-alert .reply-company-mark{
  flex:0 0 37px; width:37px;height:37px;display:grid;place-items:center;
  border-radius:12px;border:1px solid rgba(var(--c-fg,20,20,20),.10);
  background:rgba(var(--c-fg,20,20,20),.045);
  font:600 15px/1 var(--c-sans,Inter,system-ui,sans-serif);
  color:var(--c-ink2,#555);
}
.reply-alert .reply-item.fresh .reply-company-mark{
  background:rgba(185,143,76,.13);border-color:rgba(185,143,76,.23);color:var(--c-acc2,#94703c);
}
.reply-alert .reply-item-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.reply-alert .reply-item-copy strong{font-size:13px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-alert .reply-item-copy small{font-size:12px;line-height:1.3;color:var(--c-ink2,#555);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-alert .reply-item-copy time{font:400 10px/1.3 var(--c-sans,Inter,system-ui,sans-serif);color:var(--c-ink3,#888)}
.reply-alert .reply-unread-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--c-acc2,#987346)}
.reply-alert .reply-read-all {
  flex:0 0 auto; display:flex;justify-content:space-between;align-items:center;
  width:100%;padding:14px 21px;border:0;border-top:1px solid rgba(var(--c-fg,20,20,20),.085);
  background:rgba(var(--c-fg,20,20,20),.023);color:var(--c-ink2,#555);
  font-size:12px;font-weight:500;cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.reply-alert .reply-read-all:hover{background:rgba(var(--c-fg,20,20,20),.06);color:var(--c-ink,#111)}
.reply-alert .reply-panel-empty{display:grid;justify-items:center;gap:9px;text-align:center;padding:35px 16px 41px}
.reply-alert .reply-empty-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(var(--c-fg,20,20,20),.06);color:var(--c-ink3,#888)}
.reply-alert .reply-empty-icon svg{width:21px;height:21px}
.reply-alert .reply-panel-empty strong{font-size:13px;font-weight:600}
.reply-alert .reply-panel-empty small{font-size:12px;color:var(--c-ink3,#888)}
/* Retain existing Analytics grid layout: previously supplied by this stylesheet. */
.sf-analytics-wide{grid-column:1/-1}
@media(max-width:700px){
  .reply-alert{width:36px;height:38px;margin:0}
  .reply-alert .reply-bell{width:34px;height:34px}
  .reply-alert .reply-panel{position:fixed;right:12px;top:65px;width:calc(100vw - 24px);max-height:70dvh;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){
  .reply-alert *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
