/* ============================================================
   MESSAGES (2.8.73) · the conversation with whoever sends feedback, and the bell (app/messages.js)
   ============================================================ */

/* ---------- the bell, at the top, to the left of the cloud. Only when something is unread ---------- */
.notices-btn{position:relative;border:none;background:none;cursor:pointer;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:9px;color:var(--olive);padding:0;transition:background .15s}
.notices-btn[hidden]{display:none}
.notices-btn:hover{background:var(--surface-2)}
.notices-btn:focus-visible{outline:2px solid var(--olive-soft);outline-offset:2px}
.notices-btn .glyph{width:20px;height:20px}
.notices-n{position:absolute;top:0;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--olive-soft);color:#fff;font-size:10.5px;font-weight:700;display:grid;place-items:center;line-height:1;border:2px solid var(--bg);box-sizing:border-box}
:root[data-theme="dark"] .notices-n{color:#17191A}
.notices-btn.ringing .glyph{animation:msgSuena .7s ease;transform-origin:50% 10%}
@keyframes msgSuena{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(3deg)}}
@media (prefers-reduced-motion:reduce){.notices-btn.ringing .glyph{animation:none}}

/* its list (it goes in the custom dropdown, #pkPop) */
.notices-row{display:flex;align-items:flex-start;gap:10px;width:100%;padding:9px 8px;border:1px solid transparent;background:none;border-radius:11px;text-align:left;font-family:inherit;color:var(--text);cursor:pointer}
.notices-row:hover{background:var(--surface-2)}
.notices-row:focus-visible{outline:2px solid var(--olive-soft);outline-offset:-2px}
.notices-row .msg-av{width:28px;height:28px;font-size:12px}
.notices-txt{flex:1;min-width:0}
.notices-txt b{display:block;font-size:13.5px;font-weight:600}
.notices-txt small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;color:var(--muted);line-height:1.4;margin-top:1px;overflow-wrap:anywhere}
.notices-ago{font-size:11px;color:var(--faint);white-space:nowrap;margin-top:2px}
.notices-row:not(.is-new){opacity:.72}
.notices-row.is-new .notices-txt b::after{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--olive-soft);margin-left:7px;vertical-align:1px}
.notices-sep{font-size:11px;font-weight:700;color:var(--faint);text-transform:uppercase;letter-spacing:.05em;margin:8px 8px 2px}
.notices-empty{font-size:13px;color:var(--faint);padding:10px 8px 6px}

/* ---------- avatars ---------- */
.msg-av{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-family:var(--font-head);font-weight:700;font-size:13px;background:var(--surface-2);color:var(--muted);border:1px solid var(--border-soft)}
.msg-av.dev{background:var(--olive-bg);color:var(--olive-ink);border-color:transparent}
.msg-av.hecha{background:var(--olive-bg);color:var(--olive);border-color:transparent}
.msg-av.hecha .glyph{font-size:14px;stroke-width:2.6}

/* ---------- notices in the feedback sheet and in Settings ---------- */
.msg-notice-form{display:flex;align-items:center;gap:11px;width:100%;margin:-4px 0 14px;padding:10px 12px;border:1px solid var(--olive-soft);border-radius:var(--radius-s);background:none;font-family:inherit;color:var(--text);text-align:left;cursor:pointer}
.msg-notice-form:hover{border-color:var(--olive)}
.msg-nf-txt{flex:1;min-width:0}
.msg-nf-txt b{display:block;font-size:14px;font-weight:600}
.msg-nf-txt small{display:block;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-notice-form>.glyph{color:var(--faint);font-size:15px}
.msg-notice-set{display:flex;align-items:center;gap:6px;margin-top:7px;padding:0;border:none;background:none;font-family:inherit;font-size:12.5px;font-weight:700;color:var(--olive);cursor:pointer;text-align:left}
.msg-notice-set i{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--olive-soft)}
.msg-notice-set:hover{text-decoration:underline}
.msg-notice-set:focus-visible{outline:2px solid var(--olive-soft);outline-offset:2px;border-radius:4px}

/* ---------- in the rows ---------- */
.msg-meta-new{display:inline-flex;align-items:center;gap:5px;color:var(--olive);font-weight:700}
.msg-meta-new i{width:7px;height:7px;border-radius:50%;background:var(--olive-soft)}
.msg-meta-n{display:inline-flex;align-items:center;gap:3px;color:var(--faint)}
.msg-meta-n .glyph{font-size:12.5px}
.pill.msg-pill-new{background:var(--olive-bg);color:var(--olive);border-color:transparent}

/* ---------- the conversation: bubbles ---------- */
.msg-conv-h{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--faint);margin:16px 0 4px;padding-top:12px;border-top:1px solid var(--border-soft)}
.msg-thread{display:flex;flex-direction:column;margin:4px 0 6px}
.msg-m{display:flex;flex-direction:column;max-width:84%;margin-top:3px}
.msg-m.is-first{margin-top:10px}
.msg-m.mine{align-self:flex-end;align-items:flex-end}
.msg-m.theirs{align-self:flex-start;align-items:flex-start}
.msg-who{font-size:11.5px;font-weight:700;color:var(--muted);margin:0 4px 3px}
.msg-bubble{padding:8px 12px;border-radius:16px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}
.msg-m.theirs .msg-bubble{background:var(--surface-2);border:1px solid var(--border-soft)}
.msg-m.mine .msg-bubble{background:var(--olive-bg);color:var(--text)}
.msg-m.theirs.is-last .msg-bubble{border-bottom-left-radius:5px}
.msg-m.mine.is-last .msg-bubble{border-bottom-right-radius:5px}
.msg-m.is-new .msg-bubble{box-shadow:0 0 0 2px var(--olive-soft)}
.msg-time{font-size:11px;color:var(--faint);margin:3px 6px 0}
.msg-img{display:block;max-width:220px;max-height:180px;width:auto;border-radius:10px;margin-top:6px;cursor:zoom-in;border:1px solid var(--border-soft)}
.msg-bubble .msg-img:first-child{margin-top:0}
.msg-img-loading{display:block;font-size:12px;color:var(--faint);margin-top:4px}
.msg-seen{align-self:flex-end;max-width:100%;text-align:right;font-size:11px;color:var(--faint);margin:3px 6px 0}

/* ---------- the box for writing ---------- */
.msg-quick{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.msg-quick button{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:4px 10px;font-family:inherit;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;transition:.12s}
.msg-quick button:hover{border-color:var(--olive-soft);color:var(--olive)}
.msg-box{border:1px solid var(--border);border-radius:14px;background:var(--bg);padding:8px 8px 6px 12px;margin-top:10px;transition:border-color .15s}
.msg-box:focus-within{border-color:var(--olive-soft)}
.msg-box textarea{display:block;width:100%;border:0;background:none;resize:none;font-family:inherit;font-size:14.5px;line-height:1.45;color:var(--text);outline:none;padding:2px 0;margin:0;min-height:23px;max-height:160px;box-shadow:none;-webkit-appearance:none;appearance:none}
.msg-box-bot{display:flex;align-items:center;gap:8px;margin-top:4px}
.msg-icon{border:0;background:none;color:var(--faint);width:30px;height:30px;display:grid;place-items:center;border-radius:8px;cursor:pointer;margin-left:-6px}
.msg-icon:hover{background:var(--surface-2);color:var(--olive)}
.msg-icon .glyph{font-size:17px}
.msg-hint{font-size:11px;color:var(--faint)}
.msg-send{margin-left:auto}
.msg-send:disabled{opacity:.6;cursor:default}
.msg-att{position:relative;display:inline-block;margin:2px 0 6px}
.msg-att img{display:block;max-height:110px;max-width:180px;border-radius:10px;border:1px solid var(--border);cursor:zoom-in}
.msg-att-x{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0}
.msg-att-x .glyph{font-size:12px}
@media(max-width:700px){
  .msg-box textarea{font-size:16px}   /* below 16 px the iPhone zooms in when typing */
  .msg-hint{display:none}
  .msg-quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-4px;padding-bottom:2px}
  .msg-quick::-webkit-scrollbar{display:none}
  .msg-quick button{flex:0 0 auto}
}
/* in the Inbox it goes between the details and the status buttons */
.dev-fb-body .msg-conv{max-width:620px}
.dev-fb-body .msg-conv-h{margin-top:4px}
