/* NuxtreMail + the Messenger (docs/64 §7), in Nuxtre's own look: midnight panes, neon window chrome (blue → violet →
   magenta), glowing edges, Space Grotesk with Plex Mono for the small print — the mid-2000s messenger's shape (windows,
   taskbar, "Name says:", nudges, toasts) without its pale skin. Our own drawing. Fonts and colours members choose for
   their messages are classes (st-f*, st-c*): the CSP allows no inline styles. */
:root {
  --po-ui: 'Space Grotesk', Verdana, Tahoma, sans-serif; --po-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --po-ink: #eef1ff; --po-dim: #9aa3d6; --po-link: #5fdff6; --po-line: rgba(95, 223, 246, .18); --po-line2: rgba(95, 223, 246, .32);
  --po-pane: #070b24; --po-pale: #0d1336; --po-pale2: #121a46; --po-hi: #17205a;
  --po-bar: linear-gradient(90deg, #0865ec 0%, #6022e9 55%, #c40fd0 100%);
  --po-on: #39ff8a; --po-busy: #ff4d6d; --po-away: #ffd23d; --po-off: #4a5280;
  --po-glow: 0 0 0 1px rgba(11, 222, 251, .55), 0 0 22px rgba(11, 222, 251, .28), 0 0 44px rgba(242, 9, 243, .16), 0 18px 40px rgba(2, 1, 12, .7);
}

/* ---------------------------------------------------------------- badges and buttons that open it */
.nx-badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: radial-gradient(circle at 35% 30%, #ff7ae6, #f209f3 45%, #a10599); color: #fff; font: 700 12px/20px var(--po-ui); text-align: center; box-shadow: 0 0 0 2px #050624, 0 0 10px rgba(242, 9, 243, .9); pointer-events: none; z-index: 2; }
.nx-badge[hidden] { display: none; }

/* ---------------------------------------------------------------- floating layer, windows, taskbar */
.po-layer { position: fixed; inset: 0; z-index: 800; pointer-events: none; font: 13px/1.4 var(--po-ui); color: var(--po-ink); }
.po-on-mail .po-layer .po-win, .po-on-mail .po-layer .po-taskbar { display: none; }
.po-win { position: fixed; pointer-events: auto; display: flex; flex-direction: column; min-width: 260px; min-height: 260px; max-width: 96vw; max-height: 94vh; border: 1px solid rgba(95, 223, 246, .55); border-radius: 16px; background: var(--po-pale); box-shadow: var(--po-glow); overflow: hidden; resize: both; }
.po-win[hidden] { display: none; }
.po-win.dragging { opacity: .94; box-shadow: var(--po-glow), 0 26px 52px rgba(0, 0, 0, .6); }
.po-win-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 10px; background: var(--po-bar); color: #fff; cursor: grab; user-select: none; touch-action: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .35); }
.po-win-bar:active { cursor: grabbing; }
.po-win-ico { font-size: 15px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.po-win-title { flex: 1; font: 700 13px var(--po-ui); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-win-bar button { width: 24px; height: 22px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 7px; background: rgba(255, 255, 255, .12); color: #fff; font: 700 11px/1 var(--po-ui); cursor: pointer; }
.po-win-bar button:hover { background: rgba(255, 255, 255, .28); }
.po-win-bar button[data-w="close"]:hover { background: #ff4d6d; border-color: #ffb3c1; }
.po-win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.po-shake { animation: poShake .6s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes poShake { 10%, 90% { transform: translate(-3px, 1px); } 20%, 80% { transform: translate(6px, -2px); } 30%, 50%, 70% { transform: translate(-10px, 3px); } 40%, 60% { transform: translate(10px, -3px); } }
.po-blink { animation: poBlink .5s 3; }
@keyframes poBlink { 50% { box-shadow: 0 0 0 3px #cef41b, 0 0 26px #cef41b; } }
.po-taskbar { position: fixed; right: 12px; bottom: 50px; display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; max-width: 70vw; }
.po-taskbar[hidden] { display: none; }
.po-task { max-width: 220px; padding: 7px 14px; border: 1px solid var(--po-line2); border-radius: 12px 12px 6px 6px; background: linear-gradient(#18215a, #0d1336); color: var(--po-ink); font: 700 12px var(--po-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 12px rgba(11, 222, 251, .2); }
.po-task:hover { border-color: #0bdefb; }
.po-task.flash { animation: poFlash 1s steps(2) infinite; }
@keyframes poFlash { 50% { background: linear-gradient(#f209f3, #8e10c8); border-color: #ff9cf9; box-shadow: 0 0 18px rgba(242, 9, 243, .8); } }

/* ---------------------------------------------------------------- toasts */
.po-toasts { position: fixed; right: 14px; bottom: 54px; z-index: 950; display: flex; flex-direction: column; gap: 8px; }
.po-toast { display: block; width: 270px; padding: 0; border: 1px solid rgba(95, 223, 246, .55); border-radius: 14px; background: var(--po-pale); box-shadow: var(--po-glow); color: var(--po-ink); font: 12px/1.4 var(--po-ui); text-align: left; cursor: pointer; animation: poUp .35s ease-out; overflow: hidden; }
.po-toast.out { opacity: 0; transform: translateY(20px); transition: all .4s; }
@keyframes poUp { from { transform: translateY(40px); opacity: 0; } }
.po-toast-bar { display: block; padding: 4px 10px; background: var(--po-bar); color: #fff; font: 700 10px var(--po-mono); letter-spacing: .12em; text-transform: uppercase; }
.po-toast-in { display: flex; gap: 10px; padding: 10px; align-items: center; }
.po-toast-in img, .po-toast-ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #1b1f5e; font-size: 22px; }
.po-toast b { display: block; color: #fff; }
.po-toast-text { display: block; color: var(--po-dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------------------------------------------------------------- display pictures and status dots */
.po-dp { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 2px; border-radius: 10px; background: var(--po-off); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.po-dp img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.po-dp.big { width: 54px; height: 54px; border-radius: 14px; padding: 3px; }
.po-dp.big img { border-radius: 11px; }
.po-dp.is-online { background: linear-gradient(#9dffc0, var(--po-on)); box-shadow: 0 0 10px rgba(57, 255, 138, .45); }
.po-dp.is-busy { background: linear-gradient(#ffa3b3, var(--po-busy)); box-shadow: 0 0 10px rgba(255, 77, 109, .45); }
.po-dp.is-away, .po-dp.is-brb, .po-dp.is-phone, .po-dp.is-lunch { background: linear-gradient(#ffe78f, var(--po-away)); box-shadow: 0 0 10px rgba(255, 210, 61, .4); }
.po-dp.is-invisible { background: linear-gradient(#7d86b8, var(--po-off)); }
.po-dp.is-email { background: linear-gradient(#5fdff6, #0865ec); } .po-dp.is-group { background: linear-gradient(#ff8af7, #8e10c8); }
.po-dp-ini { font: 700 16px var(--po-ui); color: #fff; }
.po-dp.big .po-dp-ini { font-size: 24px; }
.po-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: var(--po-off); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); vertical-align: -1px; }
.po-dot.is-online { background: var(--po-on); box-shadow: 0 0 8px var(--po-on); }
.po-dot.is-busy { background: var(--po-busy); box-shadow: 0 0 8px var(--po-busy); }
.po-dot.is-away, .po-dot.is-brb, .po-dot.is-phone, .po-dot.is-lunch { background: var(--po-away); box-shadow: 0 0 8px var(--po-away); }
.po-dot.is-blocked { background: linear-gradient(135deg, transparent 42%, #ff4d6d 43% 57%, transparent 58%), #3a4170; }

/* ---------------------------------------------------------------- the contact list */
.po-buddy { display: flex; flex-direction: column; min-height: 0; flex: 1; font: 13px/1.4 var(--po-ui); color: var(--po-ink); background: var(--po-pale); }
.po-me { display: flex; gap: 10px; align-items: center; padding: 10px; background: radial-gradient(120% 140% at 100% 0%, rgba(242, 9, 243, .2), transparent 60%), var(--po-pale2); border-bottom: 1px solid var(--po-line); }
.po-me-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.po-me-name { align-self: flex-start; max-width: 100%; padding: 0; border: 0; background: none; color: #fff; font: 700 15px var(--po-ui); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.po-status-sel { align-self: flex-start; padding: 2px 6px; border: 1px solid var(--po-line2); border-radius: 8px; background: var(--po-pane); color: var(--po-ink); font: 12px var(--po-ui); }
.po-psm-in { width: 100%; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--po-dim); font: italic 12px var(--po-ui); }
.po-psm-in:hover, .po-psm-in:focus { border-color: var(--po-line2); background: var(--po-pane); outline: none; }
.po-mailnote { display: block; padding: 6px 10px; border-bottom: 1px solid var(--po-line); background: var(--po-pane); color: var(--po-link); font-size: 12px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-mailnote.has { background: rgba(206, 244, 27, .1); color: #e8ff8a; }
.po-added { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: rgba(242, 9, 243, .12); border-bottom: 1px solid rgba(242, 9, 243, .35); font-size: 12px; }
.po-added .po-dp { width: 26px; height: 26px; }
.po-added button, .po-buddy-foot button, .po-buddy-foot a, .po-btn, .po-chip, .po-acts button, .po-banner button { padding: 4px 10px; border: 1px solid var(--po-line2); border-radius: 9px; background: var(--po-pale2); color: var(--po-ink); font: 600 12px var(--po-ui); text-decoration: none; cursor: pointer; }
.po-added button:hover, .po-buddy-foot button:hover, .po-buddy-foot a:hover, .po-btn:hover, .po-chip:hover, .po-acts button:hover, .po-banner button:hover { border-color: #0bdefb; box-shadow: 0 0 10px rgba(11, 222, 251, .35); }
.po-btn.big { padding: 10px 20px; font-size: 14px; border-radius: 12px; background: linear-gradient(180deg, #e8ff53, #86c911); color: #0b1156; border-color: transparent; box-shadow: 0 0 16px rgba(206, 244, 27, .45); }
.po-btn.quiet { background: none; border-color: transparent; }
.po-find { margin: 8px 10px; padding: 7px 12px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pane); font: 12px var(--po-ui); color: var(--po-ink); }
.po-find:focus { outline: none; border-color: #0bdefb; box-shadow: 0 0 0 3px rgba(11, 222, 251, .15); }
.po-lists { flex: 1; min-height: 0; overflow: auto; padding: 0 6px 8px; background: var(--po-pale); }
.po-group-h { display: block; width: 100%; margin-top: 6px; padding: 4px 6px; border: 0; background: none; color: #0bdefb; font: 700 11px var(--po-mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer; }
.po-group ul { list-style: none; margin: 0; padding: 0; }
.po-row { display: flex; align-items: center; width: 100%; padding: 5px 8px 5px 14px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--po-ink); font: 13px var(--po-ui); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.po-row:hover, .po-row:focus-visible { background: var(--po-hi); border-color: var(--po-line2); outline: none; }
.po-row-name { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.po-row-psm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--po-dim); font-style: italic; font-size: 12px; margin-left: 6px; }
.po-row.unread .po-row-name { font-weight: 700; color: #fff; }
.po-row.blocked { opacity: .5; }
.po-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #f209f3; color: #fff; font: 700 11px/18px var(--po-ui); text-align: center; margin-left: 4px; box-shadow: 0 0 8px rgba(242, 9, 243, .7); }
.po-empty { padding: 6px 14px; color: var(--po-dim); font-style: italic; font-size: 12px; }
.po-buddy-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--po-line); background: var(--po-pale2); }

/* ---------------------------------------------------------------- a conversation */
.po-conv { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--po-pale); font: 13px/1.45 var(--po-ui); color: var(--po-ink); }
.po-conv.drop { outline: 3px dashed #0bdefb; outline-offset: -6px; }
.po-conv-head { position: relative; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--po-line); background: radial-gradient(120% 160% at 100% 0%, rgba(11, 222, 251, .14), transparent 60%), var(--po-pale2); }
.po-who { flex: 1; min-width: 0; }
.po-to { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.po-st { color: var(--po-dim); font-size: 12px; }
.po-psm { color: var(--po-dim); font-size: 12px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-acts { display: flex; gap: 4px; flex: none; }
.po-menu { position: absolute; right: 8px; top: 100%; z-index: 5; display: flex; flex-direction: column; min-width: 230px; padding: 6px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pale); box-shadow: var(--po-glow); }
.po-menu button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--po-ink); font: 13px var(--po-ui); text-align: left; cursor: pointer; }
.po-menu button:hover { background: var(--po-hi); }
.po-banner { padding: 7px 11px; border-bottom: 1px solid rgba(255, 210, 61, .35); background: rgba(255, 210, 61, .1); color: #ffe39a; font-size: 12px; }
.po-banner.ai { border-bottom-color: rgba(11, 222, 251, .4); background: rgba(11, 222, 251, .08); color: #bdf3ff; }
.po-banner[hidden] { display: none; }
/* A character stepping out of the bit (D38): plain, and easy to spot. */
.po-line.po-safety .po-text { border-left: 3px solid #39ff8a; padding: 6px 10px; background: rgba(57, 255, 138, .08); border-radius: 0 8px 8px 0; color: #eafff2; }
.po-log { flex: 1; min-height: 80px; overflow: auto; margin: 8px; padding: 8px 12px; border: 1px solid var(--po-line); border-radius: 12px; background: linear-gradient(rgba(95, 223, 246, .035) 1px, transparent 1px) 0 0 / 100% 22px, var(--po-pane); overscroll-behavior: contain; }
.po-more { display: block; margin: 0 auto 8px; padding: 3px 12px; border: 1px solid var(--po-line2); border-radius: 10px; background: var(--po-pale2); color: var(--po-link); font: 12px var(--po-ui); cursor: pointer; }
.po-more[hidden] { display: none; }
.po-line { position: relative; padding: 1px 46px 3px 0; overflow-wrap: anywhere; }
.po-says { margin-top: 8px; color: var(--po-dim); font-size: 12px; }
.po-says b { color: #5fdff6; font-weight: 700; }
.po-mine .po-says b { color: #ff7af6; }
.po-tag { display: inline-block; padding: 0 6px; border-radius: 5px; background: rgba(95, 223, 246, .14); color: #9fe9ff; font: 10px var(--po-mono); letter-spacing: .04em; }
.po-subject { margin: 2px 0 2px 10px; font-weight: 700; color: #fff; font-size: 12px; }
.po-text { margin-left: 10px; white-space: normal; }
.po-text a, .po-quoted a { color: var(--po-link); }
.po-text.po-big { font-size: 40px; line-height: 1.15; }
.po-note { margin: 8px 0; color: var(--po-dim); font-style: italic; font-size: 12px; padding: 0 0 0 10px; }
.po-nudge-line { color: #ff7af6; font-weight: 700; font-style: normal; text-shadow: 0 0 8px rgba(242, 9, 243, .6); }
.po-bad, .po-warn { color: #ff8fa3; }
.po-warn { margin: 3px 0 3px 10px; padding: 4px 8px; border-left: 3px solid #ff4d6d; background: rgba(255, 77, 109, .1); border-radius: 0 6px 6px 0; font-size: 12px; }
.po-auto { margin-left: 10px; color: var(--po-dim); font: 10px var(--po-mono); text-transform: uppercase; letter-spacing: .08em; }
.po-quoted { margin: 2px 0 2px 10px; color: var(--po-dim); font-size: 12px; }
.po-quoted summary { display: inline-block; padding: 0 7px; border: 1px solid var(--po-line2); border-radius: 8px; cursor: pointer; list-style: none; }
.po-quoted div { margin-top: 4px; padding-left: 8px; border-left: 2px solid rgba(242, 9, 243, .6); }
.po-chip { display: inline-block; margin: 4px 0 2px 10px; font-size: 11px; }
.po-sticker { display: block; max-width: 140px; max-height: 140px; margin: 4px 0 4px 10px; filter: drop-shadow(0 0 10px rgba(11, 222, 251, .35)); }
.po-photo { margin: 4px 0 4px 10px; }
.po-photo img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; border: 1px solid var(--po-line2); }
.po-video { display: block; max-width: min(300px, 100%); margin: 4px 0 4px 10px; border-radius: 10px; }
.po-voice { display: flex; align-items: center; gap: 6px; margin: 4px 0 4px 10px; font-size: 12px; color: var(--po-dim); }
.po-voice audio, .po-line > audio { height: 32px; max-width: 220px; color-scheme: dark; }
.po-file { display: inline-flex; gap: 10px; align-items: center; margin: 4px 0 4px 10px; padding: 8px 12px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pale2); color: var(--po-ink); text-decoration: none; max-width: calc(100% - 10px); }
.po-file:hover { border-color: #0bdefb; }
.po-file small { display: block; color: var(--po-dim); }
.po-file b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.po-file.danger { border-color: #ff4d6d; background: rgba(255, 77, 109, .1); }
.po-file-ico { font-size: 22px; }
.po-status { margin-left: 10px; color: #7dffb0; font: 11px var(--po-mono); }
.po-status.bad { color: #ff8fa3; }
.po-line-acts { position: absolute; right: 0; top: 2px; display: none; gap: 3px; }
.po-line:hover .po-line-acts, .po-line:focus-within .po-line-acts { display: flex; }
.po-line-acts button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--po-line2); border-radius: 6px; background: var(--po-pale2); color: var(--po-dim); font-size: 11px; cursor: pointer; }
.po-line-acts button:hover { color: #fff; border-color: #0bdefb; }
.po-typing { min-height: 16px; padding: 0 14px; color: #9fe9ff; font-size: 12px; font-style: italic; }
.po-statusbar { padding: 4px 12px 6px; border-top: 1px solid var(--po-line); color: var(--po-dim); font: 10px var(--po-mono); letter-spacing: .04em; background: var(--po-pale2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-viewer { position: absolute; inset: 44px 8px 8px; z-index: 6; display: flex; flex-direction: column; border: 1px solid rgba(95, 223, 246, .55); border-radius: 12px; background: var(--po-pale); box-shadow: var(--po-glow); overflow: hidden; }
.po-viewer-bar { display: flex; gap: 6px; align-items: center; padding: 6px 10px; background: var(--po-pale2); border-bottom: 1px solid var(--po-line); }
.po-viewer-bar b { flex: 1; }
.po-viewer iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.po-hint { margin: 4px 8px; color: var(--po-dim); font-size: 12px; }

/* ---------------------------------------------------------------- the composer */
.po-compose { position: relative; padding: 0 8px 8px; }
.po-compose.busy { opacity: .7; }
.po-tools { display: flex; gap: 2px; align-items: center; padding: 2px 0 4px; }
.po-tools > button, .po-tool { display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 8px; background: none; font: 16px var(--po-ui); color: var(--po-ink); cursor: pointer; }
.po-tools > button:hover, .po-tool:hover { border-color: var(--po-line2); background: var(--po-hi); }
.po-tools > [hidden], .po-tool[hidden] { display: none; }
.po-tools .po-aa { font: 700 15px Georgia, serif; color: #ff7af6; }
.po-subj { width: 100%; margin: 2px 0 6px; padding: 7px 10px; border: 1px solid var(--po-line2); border-radius: 10px; background: var(--po-pane); color: var(--po-ink); font: 13px var(--po-ui); box-sizing: border-box; }
.po-subj[hidden], .po-tray[hidden], .po-rec[hidden], .po-err[hidden] { display: none; }
.po-tray { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.po-tray-item { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pale2); font-size: 12px; }
.po-tray-item img { width: 24px; height: 24px; object-fit: cover; border-radius: 6px; }
.po-tray-item button { border: 0; background: none; color: var(--po-dim); cursor: pointer; }
.po-rec { display: flex; gap: 8px; align-items: center; margin: 2px 0 6px; padding: 6px 10px; border: 1px solid #ff4d6d; border-radius: 10px; background: rgba(255, 77, 109, .1); }
.po-rec-dot { color: #ff4d6d; animation: poRec 1s steps(2) infinite; }
@keyframes poRec { 50% { opacity: .2; } }
.po-input { display: flex; gap: 8px; align-items: stretch; }
.po-input textarea { flex: 1; min-width: 0; min-height: 58px; max-height: 40vh; padding: 8px 10px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pane); color: var(--po-ink); font: 13px/1.45 var(--po-ui); resize: vertical; }
.po-input textarea:focus { outline: none; border-color: #0bdefb; box-shadow: 0 0 0 3px rgba(11, 222, 251, .16); }
.po-send { flex: none; width: 70px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #e8ff53, #86c911); color: #0b1156; font: 700 13px var(--po-ui); cursor: pointer; box-shadow: 0 0 14px rgba(206, 244, 27, .4); }
.po-send:hover { filter: brightness(1.08); }
.po-err { margin-top: 4px; color: #ff8fa3; font-size: 12px; }
.po-pop { position: absolute; bottom: calc(100% - 4px); left: 8px; z-index: 10; width: min(340px, calc(100% - 16px)); max-height: 300px; display: flex; flex-direction: column; border: 1px solid rgba(95, 223, 246, .5); border-radius: 14px; background: var(--po-pale); box-shadow: var(--po-glow); overflow: hidden; }
.po-pop nav { flex: none; display: flex; gap: 2px; padding: 5px; border-bottom: 1px solid var(--po-line); background: var(--po-pale2); overflow-x: auto; }
.po-pop .po-sticker-grid, .po-pop .po-emoji-grid { flex: 1 1 auto; min-height: 0; }
.po-pop nav button { flex: none; padding: 3px 9px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--po-ink); font: 14px var(--po-ui); cursor: pointer; }
.po-pop nav button[aria-current] { border-color: var(--po-line2); background: var(--po-hi); }
.po-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; padding: 6px; overflow: auto; }
.po-emoji-grid button { position: relative; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 22px; cursor: pointer; }
.po-emoji-grid button small { position: absolute; left: 0; right: 0; bottom: -1px; font: 9px var(--po-mono); color: var(--po-dim); }
.po-emoji-grid button:hover, .po-sticker-grid button:hover { background: var(--po-hi); }
.po-sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 6px; overflow: auto; }
.po-sticker-grid button { height: 72px; padding: 4px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.po-sticker-grid button.big { font-size: 40px; }
.po-sticker-grid img { width: 100%; height: 100%; object-fit: contain; }
.po-add-sticker { display: grid; place-items: center; height: 72px; border: 2px dashed var(--po-line2); border-radius: 10px; color: var(--po-link); font-size: 28px; cursor: pointer; }
.po-sticker-grid .po-hint { grid-column: 1 / -1; }
.po-style { padding: 10px; gap: 8px; }
.po-style label { font-size: 12px; }
.po-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.po-swatches .sw { height: 28px; border: 1px solid var(--po-line2); border-radius: 7px; background: var(--po-pane); font: 700 14px var(--po-ui); cursor: pointer; }
.po-swatches .sw.on { outline: 2px solid #cef41b; }
.po-sample { margin: 6px 0 0; padding: 8px; border: 1px solid var(--po-line2); border-radius: 8px; background: var(--po-pane); }
.po-style select { background: var(--po-pane); color: var(--po-ink); border: 1px solid var(--po-line2); border-radius: 8px; padding: 4px 6px; }

/* Members' message fonts and colours — bright enough to read on the dark transcript. */
.st-f0 { font-family: var(--po-ui); } .st-f1 { font-family: "Comic Sans MS", "Comic Neue", cursive; } .st-f2 { font-family: Tahoma, sans-serif; } .st-f3 { font-family: Verdana, sans-serif; }
.st-f4 { font-family: "Times New Roman", Times, serif; } .st-f5 { font-family: "Courier New", monospace; } .st-f6 { font-family: Georgia, serif; } .st-f7 { font-family: "Trebuchet MS", sans-serif; }
.st-f8 { font-family: Impact, "Arial Black", sans-serif; letter-spacing: .02em; } .st-f9 { font-family: "Arial Black", Arial, sans-serif; }
.st-c0 { color: #eef1ff; } .st-c1 { color: #9fd8ff; } .st-c2 { color: #0bdefb; } .st-c3 { color: #2ff0d0; } .st-c4 { color: #5dff8f; } .st-c5 { color: #d6ff1f; } .st-c6 { color: #ff9a8a; } .st-c7 { color: #ff4d6d; }
.st-c8 { color: #b48cff; } .st-c9 { color: #ff6af5; } .st-c10 { color: #ffa24a; } .st-c11 { color: #a9b1d6; } .st-c12 { color: #ff5fa8; } .st-c13 { color: #7dffc4; } .st-c14 { color: #ffd23d; } .st-c15 { color: #ffffff; }
.st-b { font-weight: 700; } .st-i { font-style: italic; }

/* ---------------------------------------------------------------- the NuxtreMail page */
.po-app { display: grid; grid-template-columns: minmax(280px, 350px) 1fr; height: calc(100vh - 150px); min-height: 520px; border: 1px solid rgba(95, 223, 246, .45); border-radius: 22px; overflow: hidden; box-shadow: var(--po-glow); font: 13px/1.45 var(--po-ui); color: var(--po-ink); background: var(--po-pale); }
.po-loading { padding: 20px; color: var(--po-dim); }
.po-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--po-line); background: var(--po-pale); }
.po-side-tabs { display: flex; flex: none; background: var(--po-bar); padding: 6px 6px 0; gap: 4px; }
.po-side-tabs button { flex: 1; padding: 8px; border: 0; border-radius: 10px 10px 0 0; background: rgba(5, 6, 36, .35); color: rgba(255, 255, 255, .85); font: 700 13px var(--po-ui); cursor: pointer; }
.po-side-tabs button[aria-selected="true"] { background: var(--po-pale); color: #fff; box-shadow: inset 0 2px 0 #cef41b; }
.po-side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.po-me.small .po-me-txt b { font-size: 15px; color: #fff; }
.po-addr { color: var(--po-dim); font: 11px var(--po-mono); overflow: hidden; text-overflow: ellipsis; }
.po-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 0; }
.po-filters button { padding: 4px 10px; border: 1px solid var(--po-line2); border-radius: 10px; background: transparent; color: var(--po-ink); font: 600 12px var(--po-ui); cursor: pointer; }
.po-filters button[aria-pressed="true"] { background: linear-gradient(180deg, #19b2ff, #0865ec); color: #fff; border-color: transparent; box-shadow: 0 0 12px rgba(8, 158, 248, .5); }
.po-convlist { flex: 1; min-height: 0; overflow: auto; list-style: none; margin: 8px 0 0; padding: 0 8px; background: var(--po-pale); border-top: 1px solid var(--po-line); }
.po-crow { display: flex; gap: 10px; align-items: center; width: 100%; margin: 4px 0; padding: 9px 8px; border: 1px solid transparent; border-radius: 12px; background: var(--po-pale2); color: var(--po-ink); font: 13px var(--po-ui); text-align: left; cursor: pointer; }
.po-crow:hover { background: var(--po-hi); border-color: var(--po-line2); }
.po-crow.on { border-color: #0bdefb; box-shadow: 0 0 12px rgba(11, 222, 251, .25); }
.po-crow-main { flex: 1; min-width: 0; }
.po-crow-t { display: flex; gap: 6px; justify-content: space-between; }
.po-crow-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--po-ink); }
.po-crow.unread .po-crow-t b { font-weight: 700; color: #fff; }
.po-crow time { flex: none; color: var(--po-dim); font: 10px var(--po-mono); }
.po-crow-s { display: block; color: var(--po-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-usage { flex: none; margin: 0; padding: 8px 12px; border-top: 1px solid var(--po-line); color: var(--po-dim); font: 11px var(--po-mono); }
.po-usage a { color: var(--po-link); }
.po-pane { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--po-pale); overflow: auto; }
.po-pane > .po-conv { flex: 1; }
.po-back { display: none; }
.po-welcome, .po-new, .po-options { max-width: 660px; margin: 0 auto; padding: 28px; }
.po-welcome h1 { margin: 0; font: 400 48px/1 var(--nx-font-display, Anton, sans-serif); background: linear-gradient(90deg, #0bdefb, #f209f3); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .02em; filter: drop-shadow(0 0 14px rgba(11, 222, 251, .3)); }
.po-big-addr { margin: 8px 0 14px; font: 700 20px var(--po-mono); color: #d6ff1f; overflow-wrap: anywhere; text-shadow: 0 0 10px rgba(214, 255, 31, .35); }
.po-tips { padding-left: 18px; color: var(--po-dim); }
.po-tips li { margin: 6px 0; }
.po-tips code { color: #ff7af6; }
.po-new h2, .po-options h2 { margin: 0 0 14px; font: 400 28px var(--nx-font-display, Anton, sans-serif); letter-spacing: .02em; color: #fff; }
.po-new label, .po-options label { display: block; margin: 10px 0; }
.po-new input, .po-options input[type="text"], .po-options input:not([type]), .po-options textarea, .po-options select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--po-line2); border-radius: 10px; background: var(--po-pane); color: var(--po-ink); font: 13px var(--po-ui); }
.po-new input:focus, .po-options input:focus, .po-options textarea:focus, .po-options select:focus { outline: none; border-color: #0bdefb; box-shadow: 0 0 0 3px rgba(11, 222, 251, .15); }
.po-options fieldset { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--po-line2); border-radius: 14px; background: var(--po-pale2); }
.po-options legend { padding: 0 8px; font: 700 11px var(--po-mono); letter-spacing: .12em; text-transform: uppercase; color: #0bdefb; }
.po-check { display: flex !important; gap: 8px; align-items: flex-start; }
.po-check input { margin-top: 3px; accent-color: #cef41b; }
.po-pics { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.po-pic { position: relative; display: grid !important; place-items: center; width: 50px; height: 50px; margin: 0 !important; border: 2px solid var(--po-line2); border-radius: 12px; background: linear-gradient(#1b1f5e, #05061a); font-size: 26px; cursor: pointer; }
.po-pic img { width: 100%; height: 100%; border-radius: 10px; }
.po-pic input { position: absolute; opacity: 0; }
.po-pic:has(input:checked) { border-color: #f209f3; box-shadow: 0 0 12px rgba(242, 9, 243, .75); }
.po-blocked { margin: 8px 0; }
.po-saved { color: #7dffb0; font-weight: 700; }

/* ---------------------------------------------------------------- the front door (signed out) */
.po-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 32px; align-items: center; }
.po-landing h1 { margin: 0; font: 400 clamp(40px, 7vw, 78px)/1 var(--nx-font-display, Anton, sans-serif); background: var(--nx-grad-logo, linear-gradient(90deg, #0bdefb, #f209f3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.po-landing .po-big-addr { color: var(--nx-ice, #c9d6ff); font-size: clamp(18px, 3vw, 28px); }
.po-landing .po-big-addr span { color: var(--nx-acid, #d6ff1f); }
.po-burst { display: inline-block; margin: 0 0 10px; padding: 6px 14px; transform: rotate(-4deg); background: var(--nx-acid, #d6ff1f); color: #12002a; font: 400 22px var(--nx-font-shout, Bangers, sans-serif); letter-spacing: .04em; box-shadow: 4px 4px 0 #f209f3; }
.po-landing ul { padding-left: 18px; }
.po-landing li { margin: 8px 0; }
.po-demo { border: 1px solid rgba(95, 223, 246, .55); border-radius: 18px; overflow: hidden; background: var(--po-pale); box-shadow: var(--po-glow); font: 13px/1.45 var(--po-ui); color: var(--po-ink); transform: rotate(1.5deg); }
.po-demo-bar { padding: 8px 12px; background: var(--po-bar); color: #fff; font-weight: 700; }
.po-demo-log { margin: 10px; padding: 8px 12px 12px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-pane); }
.po-demo-in { margin: 0 10px 10px; padding: 12px; border: 1px solid var(--po-line2); border-radius: 12px; background: var(--po-pane); color: var(--po-dim); display: flex; justify-content: space-between; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 759px) {
  .po-app { grid-template-columns: 1fr; height: calc(100dvh - 120px); min-height: 460px; border-radius: 16px; }
  .po-app .po-pane { display: none; }
  .po-app.show-pane .po-side { display: none; }
  .po-app.show-pane .po-pane { display: flex; }
  .po-back { display: block; flex: none; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--po-line); background: var(--po-pale2); color: var(--po-link); font: 700 13px var(--po-ui); text-align: left; cursor: pointer; }
  .po-landing { grid-template-columns: 1fr; }
  .po-demo { transform: none; }
  .po-toasts { left: 10px; right: 10px; bottom: 10px; }
  .po-toast { width: auto; }
  .po-line-acts { display: flex; position: static; justify-content: flex-end; }
}

/* ---------------------------------------------------------------- calls (docs/64 §13 Stage 2, D41) */
.po-call { position: fixed; right: 16px; bottom: 60px; z-index: 960; width: 340px; display: flex; flex-direction: column; border: 1px solid rgba(95, 223, 246, .6); border-radius: 16px; background: var(--po-pane); box-shadow: var(--po-glow); color: var(--po-ink); font: 13px/1.4 var(--po-ui); overflow: hidden; animation: poUp .3s ease-out; }
.po-call.is-video { width: 420px; }
.po-call.big { width: min(960px, calc(100vw - 32px)); }
.po-call-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--po-bar); color: #fff; cursor: grab; touch-action: none; user-select: none; }
.po-call-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-call-time { font: 600 12px var(--po-mono); color: #d6ff1f; } .po-call-sp { flex: 1; }
.po-call-bar button { border: 0; border-radius: 6px; background: rgba(255, 255, 255, .16); color: #fff; padding: 2px 7px; cursor: pointer; }
.po-call-grid { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px; background: #02030f; min-height: 150px; }
.po-call-grid:not([data-n="1"]) { grid-template-columns: 1fr 1fr; }
.po-call-tile, .po-call-self { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #17205a, #070b24 70%); aspect-ratio: 4 / 3; }
.po-call:not(.is-video) .po-call-tile { aspect-ratio: auto; min-height: 120px; }
.po-call:not(.is-video) .po-call-grid:not([data-n="1"]) .po-call-tile { min-height: 104px; } .po-call:not(.is-video) .po-call-grid:not([data-n="1"]) .po-call-tile img { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.po-call-tile video, .po-call-self video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-call-tile img { position: absolute; left: 50%; top: 42%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(95, 223, 246, .5), 0 0 24px rgba(242, 9, 243, .4); display: none; }
.po-call-tile.no-video img { display: block; } .po-call-tile.no-video video { opacity: 0; }
.po-call-tile figcaption, .po-call-self figcaption { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 1px 8px; border-radius: 8px; background: rgba(2, 3, 15, .7); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-call-self { position: absolute; right: 14px; bottom: 58px; width: 96px; border: 1px solid var(--po-line2); box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.po-call:not(.is-video) .po-call-self, .po-call-self.no-video { display: none; }
.po-call-status { margin: 0; padding: 0 10px; min-height: 0; color: var(--po-away); font-size: 12px; } .po-call-status:empty { display: none; }
.po-call-note { margin: 0; padding: 4px 10px 8px; color: var(--po-away); font-size: 11px; text-align: center; opacity: .85; }
.po-call-ctl { display: flex; gap: 8px; justify-content: center; padding: 8px; border-top: 1px solid var(--po-line); }
.po-call-ctl button { min-width: 44px; height: 38px; border: 1px solid var(--po-line2); border-radius: 19px; background: var(--po-pale2); color: var(--po-ink); font: 600 14px var(--po-ui); cursor: pointer; }
.po-call-ctl button.off { background: #3a0d1c; border-color: var(--po-busy); }
.po-call-ctl .po-call-end { padding: 0 16px; background: linear-gradient(180deg, #ff4d6d, #b3123a); border-color: #ff8aa0; color: #fff; }
.po-ring { position: fixed; right: 16px; bottom: 60px; z-index: 970; width: 320px; padding: 12px; border: 1px solid rgba(95, 223, 246, .6); border-radius: 16px; background: var(--po-pale); box-shadow: var(--po-glow); color: var(--po-ink); font: 13px/1.4 var(--po-ui); animation: poRing 1.3s ease-in-out infinite; }
.po-ring-in { display: flex; gap: 10px; align-items: center; } .po-ring-in img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(95, 223, 246, .55); }
.po-ring-in b { display: block; font-size: 15px; } .po-ring-in span { color: var(--po-dim); }
.po-ring-acts { display: flex; gap: 8px; margin-top: 10px; } .po-ring-acts button { flex: 1; height: 34px; border: 1px solid var(--po-line2); border-radius: 17px; background: var(--po-pale2); color: var(--po-ink); font: 600 13px var(--po-ui); cursor: pointer; }
.po-ring-acts .go { background: linear-gradient(180deg, #39ff8a, #12a352); border-color: #8dffbc; color: #02130a; } .po-ring-acts .no { background: linear-gradient(180deg, #ff4d6d, #b3123a); border-color: #ff8aa0; color: #fff; }
@keyframes poRing { 0%, 100% { box-shadow: var(--po-glow); } 50% { box-shadow: 0 0 0 2px #39ff8a, 0 0 34px rgba(57, 255, 138, .55); } }
.po-call-line { color: var(--po-dim); } .po-call-line.missed { color: var(--po-busy); }
.po-acts [data-a="call"] { font-size: 15px; }
@media (max-width: 760px) { .po-call, .po-call.is-video, .po-ring { left: 8px; right: 8px; width: auto; bottom: 10px; } .po-call.big { inset: 8px; width: auto; } }

/* ---------------------------------------------------------------- the GIF Vault in the pickers (D43) */
.po-sticker-grid .po-gifhead { grid-column: 1 / -1; margin: 6px 2px 0; font: 700 11px var(--po-ui); color: var(--po-dim); text-transform: uppercase; letter-spacing: .08em; }
.po-sticker-grid button.gif img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.po-vault { grid-column: 1 / -1; display: block; margin: 8px 2px 2px; padding: 9px 10px; border-radius: 12px; background: linear-gradient(135deg, #3a4266, #59628e 45%, #2a3050); border: 1px solid rgba(255, 255, 255, .2); color: #fff !important; font: 700 12px var(--po-ui); text-align: center; text-decoration: none; box-shadow: 0 0 14px rgba(11, 222, 251, .25); }
.po-sticker.po-gif { max-width: 220px; max-height: 170px; image-rendering: pixelated; filter: none; }
.po-giflink { display: inline-block; }
