/* Separate anonymous chat view: no overlay, cards, intro or activity wall. */
#view-whisper:not([hidden]){padding:0;min-height:0;height:100%;display:flex;flex-direction:column}
.app-main:has(#view-whisper:not([hidden])){display:flex;flex-direction:column;overflow:hidden}
.whisper-chat{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:#f3f7f1}
.whisper-chat-head{display:flex;align-items:center;flex-shrink:0;gap:10px;padding:12px 13px;background:#103b2a;color:white;border-bottom:1px solid #3a7455}
.whisper-chat-head>div{min-width:0;flex:1}.whisper-chat-head strong{font-size:15px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whisper-chat-head small{display:block;font-size:10px;color:#c6e3c9;margin-top:3px}
.whisper-back,.whisper-refresh{flex:none;min-width:34px;width:34px;height:36px;border:0;border-radius:10px;background:#ffffff17;color:white;font-size:28px;line-height:1}.whisper-refresh{font-size:23px}
.whisper-stream{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:14px 12px 18px;background:linear-gradient(145deg,#edf5ed,#f5f8f0)}
.whisper-message{display:flex;flex-direction:column;align-items:flex-start;max-width:84%;min-width:0}.whisper-message.mine{align-self:flex-end;align-items:flex-end}.whisper-message.other{align-self:flex-start}
.whisper-bubble{padding:11px 13px 7px;border-radius:17px 17px 17px 5px;background:white;border:1px solid #d7e3d8;color:#1c2b20;box-shadow:0 2px 6px #18241b0a;max-width:100%;min-width:58px;overflow-wrap:anywhere}
.whisper-message.mine .whisper-bubble{background:#d4f0dc;border-color:#b2dbbf;border-radius:17px 17px 5px 17px}
.whisper-bubble p{margin:0;white-space:pre-wrap;line-height:1.48;font-size:14px}
.whisper-meta{text-align:right;font-size:10px;color:#617666;margin-top:5px}
.whisper-tools{display:flex;gap:2px;margin:3px 1px 0;align-items:center;flex-wrap:wrap}.whisper-tools button{border:0;border-radius:16px;background:#ffffffa8;color:#1d432a;min-width:27px;min-height:27px;padding:2px 4px;font-size:14px}.whisper-tools button[aria-pressed="true"]{background:#ffebbc;box-shadow:inset 0 0 0 1px #e7be55}.whisper-tools small{font-size:10px}.whisper-tools .whisper-remove{color:#7c8d82;font-size:18px;background:none;margin-left:3px}
.whisper-message.new .whisper-bubble{outline:2px solid #dfb86c;outline-offset:1px}
.whisper-empty{margin:auto;padding:18px;color:#4e6b53;text-align:center;font-size:13px}
.whisper-error{background:#fff3ee;border:1px solid #ce9589;color:#983b2a;border-radius:10px;padding:12px;font-size:12px}
.whisper-older{align-self:center;border:1px solid #c0d6bf;background:#fafff9;border-radius:18px;color:#276447;padding:9px 15px;font-size:12px;font-weight:650}
.whisper-chat-compose{display:flex;gap:8px;align-items:flex-end;flex-shrink:0;margin:0;padding:9px 11px 10px;background:#092e20;border-top:1px solid #397450}
.whisper-chat-compose textarea{flex:1;min-width:0;width:auto;resize:none;max-height:112px;min-height:44px;height:44px;padding:12px 13px;background:#194a32;border:1px solid #4a865a;border-radius:16px;color:#fff;font-size:16px;line-height:1.25}.whisper-chat-compose textarea::placeholder{color:#c9d9c6}
.whisper-chat-compose button{flex:none;background:#db1735;color:#fff;border:0;border-radius:14px;width:44px;height:44px;font-size:23px;display:grid;place-items:center}
.whisper-home-tile .home-tile-icon{font-size:1.5rem}
.whisper-chat-shortcut{flex-shrink:0;display:flex;justify-content:space-between;gap:8px;align-items:center;margin:3px 0 10px;width:100%;padding:9px 11px;min-height:42px;border:1px solid #d2ddcb;border-radius:12px;background:#edf7e9;color:#215942;text-align:left;font-weight:750;font-size:12px;line-height:1.3}.whisper-chat-shortcut span{font-size:20px}
@media(max-width:360px){.whisper-chat-head{padding:9px 8px;gap:6px}.whisper-chat-head strong{font-size:13px}.whisper-stream{padding:10px 8px}.whisper-message{max-width:88%}}

/* v2.15.27 — full description below the anonymous chat name, unobtrusive unread pill. */
.whisper-chat-head small{font-size:11px;line-height:1.35;max-width:100%;white-space:normal;color:#d4ebd5}
.whisper-home-tile{position:relative;padding-right:34px}
.whisper-home-tile small{display:block;line-height:1.45;white-space:normal;overflow-wrap:break-word}
.whisper-home-tile .whisper-unread-badge{position:absolute;right:12px;top:9px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:16px;background:#d51c38;color:white;font-size:11px;font-weight:800;box-shadow:0 1px 3px #0002}
.whisper-home-tile:has(.whisper-unread-badge) .home-tile-arrow{visibility:hidden}
@media(max-width:360px){.whisper-chat-head small{font-size:10px}}

/* 2.15.29 — readable WhatsApp-style chat; Christmas nicknames are distinct, identities stay hidden. */
.whisper-stream{gap:15px;padding:13px 11px 18px}
.whisper-message{max-width:min(88%,470px);gap:0;position:relative}
.whisper-message.grouped{margin-top:-10px}
.whisper-author{display:flex;align-items:center;gap:5px;margin:0 5px 5px;font-size:11px;letter-spacing:.01em;color:#41624f}
.whisper-message.mine .whisper-author{flex-direction:row-reverse}
.whisper-author strong{font-size:11px;font-weight:750}
.whisper-avatar{display:inline-grid;place-items:center;min-width:25px;width:25px;height:25px;border-radius:50%;font-size:17px;background:#fff;border:1px solid #e2e7df}
.whisper-message.grouped .whisper-author{display:none}
.whisper-message.other .whisper-bubble{border-left:3px solid var(--wr-whisper-accent,#85a99b);background:var(--wr-whisper-bg,#fff)}
.whisper-hue-0{--wr-whisper-accent:#be6d6a;--wr-whisper-bg:#fff7f5}
.whisper-hue-1{--wr-whisper-accent:#689c78;--wr-whisper-bg:#f5fff7}
.whisper-hue-2{--wr-whisper-accent:#c59642;--wr-whisper-bg:#fffbf0}
.whisper-hue-3{--wr-whisper-accent:#709cba;--wr-whisper-bg:#f4fbff}
.whisper-hue-4{--wr-whisper-accent:#b17fb5;--wr-whisper-bg:#fcf6ff}
.whisper-hue-5{--wr-whisper-accent:#a17b67;--wr-whisper-bg:#fcf8f3}
.whisper-hue-6{--wr-whisper-accent:#6eafae;--wr-whisper-bg:#f3fffd}
.whisper-hue-7{--wr-whisper-accent:#bc87a1;--wr-whisper-bg:#fff6fb}
.whisper-bubble{padding:9px 11px 5px;border-radius:14px 14px 14px 4px;min-width:74px}
.whisper-message.mine .whisper-bubble{background:#d6f0d8;border-radius:14px 14px 4px 14px}
.whisper-message.grouped.other .whisper-bubble{border-radius:8px 14px 14px 4px}
.whisper-message.grouped.mine .whisper-bubble{border-radius:14px 8px 4px 14px}
.whisper-bubble p{font-size:14px;line-height:1.42}
.whisper-meta{font-size:10px;margin-top:4px;color:#687a6a}
.whisper-tools{gap:5px;margin:4px 3px 0;flex-wrap:wrap}
.whisper-tools button{min-width:29px;min-height:26px;padding:2px 6px;font-size:12px}
.whisper-tools .whisper-reply-action,.whisper-tools .whisper-react-action{background:transparent;color:#526f5b;border:1px solid #dce8dd}
.whisper-tools .whisper-reply-action{display:flex;align-items:center;gap:3px;font-size:16px}
.whisper-reply-action small{font-size:10px;font-weight:650}
.whisper-tools .whisper-react-action{font-size:19px;line-height:1}
.whisper-tools .whisper-react-count{background:#fff;border:1px solid #e2e7dc}
.whisper-reaction-picker{display:flex;gap:4px;background:#fff;border:1px solid #d2e1d0;border-radius:18px;padding:5px;margin:3px 1px 2px;box-shadow:0 3px 10px #113a2214}
.whisper-reaction-picker button{border:0;border-radius:12px;background:transparent;font-size:23px;min-width:36px;min-height:36px}
.whisper-quote{display:block;text-align:left;width:100%;border:0;border-left:3px solid #88ae8b;border-radius:8px;background:#ffffff8a;padding:6px 9px;margin:0 0 6px;color:#345b3f}
.whisper-quote-title,.whisper-quote-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.whisper-quote-title{font-size:11px;font-weight:800;margin-bottom:3px}
.whisper-quote-text,.whisper-quote-removed{font-size:11px;color:#62796a}
.whisper-highlight .whisper-bubble{outline:2px solid #ddb959;outline-offset:3px}
.whisper-compose-wrap{flex-shrink:0;background:#092e20}
.whisper-reply-preview{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:8px 11px 0;padding:9px 12px;border-left:3px solid #eabf7e;border-radius:8px;background:#22533b;color:#f2fff4}
.whisper-reply-preview>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.whisper-reply-preview strong{font-size:12px}
.whisper-reply-preview span{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.whisper-reply-preview button{font-size:23px;border:0;background:transparent;color:#e9f8ec;min-width:31px;min-height:32px}
.whisper-chat-compose{padding-bottom:4px}
.whisper-your-alias{display:block;text-align:center;font-size:10px;color:#c6ddc9;padding:1px 8px 8px}
@media(max-width:360px){.whisper-message{max-width:91%}.whisper-quote-title,.whisper-quote-text{max-width:175px}}


/* v2.15.30 — visible reactions and keyboard-safe reply UI (scoped to whisper). */
.whisper-tools{flex-wrap:nowrap;gap:3px;max-width:100%;margin:4px 2px 0}
.whisper-tools .whisper-react-action{
 display:inline-flex;align-items:center;justify-content:center;gap:1px;
 min-width:29px;min-height:31px;padding:2px 4px;border:1px solid #dce8dd;
 border-radius:12px;background:#fffdf9;font-size:18px;line-height:1.1;
}
.whisper-tools .whisper-react-action small{font-size:10px;font-weight:750;line-height:1}
.whisper-tools .whisper-react-action[aria-pressed="true"]{background:#ffe6aa;border-color:#e7bb5c}
.whisper-tools .whisper-reply-action{min-height:31px;padding:2px 6px;white-space:nowrap;gap:3px}
.whisper-tools .whisper-remove{min-height:31px;min-width:23px;padding:0 2px;margin-left:0}
.whisper-reply-preview[hidden]{display:none!important}
.whisper-reply-preview{margin:6px 9px 0;padding:6px 9px;min-height:45px;max-height:56px}
.whisper-reply-preview strong{font-size:11px}
.whisper-reply-preview span{font-size:11px;max-width:100%}
.whisper-compose-wrap{min-height:0;position:relative;z-index:1}
.whisper-chat-compose{padding:7px 9px 5px}
.whisper-chat-compose textarea{overflow-y:auto;overscroll-behavior:contain;min-height:44px;max-height:100px}
.whisper-stream{overflow-anchor:none;-webkit-overflow-scrolling:touch}
/* When the iPhone keyboard is visible, dedicate space to messages and typing.
   The whisper title stays available; global header and bottom tabs return on blur. */
.app-shell.wr-whisper-typing:has(#view-whisper:not([hidden]))>.app-header,
.app-shell.wr-whisper-typing:has(#view-whisper:not([hidden]))>.bottom-nav{display:none}
.app-shell.wr-whisper-typing #view-whisper:not([hidden]) .whisper-chat-head small,
.app-shell.wr-whisper-typing #view-whisper:not([hidden]) .whisper-your-alias{display:none}
.app-shell.wr-whisper-typing #view-whisper:not([hidden]) .whisper-chat-head{padding:7px 11px}
.app-shell.wr-whisper-typing #view-whisper:not([hidden]) .whisper-chat-head strong{font-size:14px}
@media(max-width:360px){
 .whisper-tools{gap:2px}
 .whisper-tools .whisper-react-action{min-width:27px;padding:2px 3px;font-size:17px}
 .whisper-tools .whisper-reply-action{padding:2px 4px}
 .whisper-reply-action small{font-size:9px}
}

/* v2.15.31 — the anonymous chat is a full-screen conversation.
   Hide only the global bottom tabs while this view is active.
   The chat header Back button still returns to Start, restoring the tabs. */
.app-shell:has(#view-whisper:not([hidden])) > .bottom-nav { display: none; }
/* Preserve iPhone gesture-area clearance after removing the tab bar. */
.app-shell:has(#view-whisper:not([hidden])) .whisper-compose-wrap {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* When the keyboard is active, don't reserve gesture padding a second time. */
.app-shell.wr-whisper-typing:has(#view-whisper:not([hidden])) .whisper-compose-wrap {
  padding-bottom: 0;
}
