/* Only the conversation surface changes. Call screens, inbox and all action hooks remain as before. */
#nc-sheet.nc-thread{isolation:isolate;overflow:hidden;padding:24px 12px max(16px,env(safe-area-inset-bottom));color:#10162a;background:radial-gradient(ellipse at 4% 8%,#e4ceff 0,transparent 41%),radial-gradient(ellipse at 100% 23%,#7eafff 0,transparent 60%),radial-gradient(ellipse at 3% 95%,#b8aff4 0,transparent 58%),linear-gradient(145deg,#c5c2fa,#a5bbfa 58%,#aabafa);box-shadow:0 18px 60px #142e8266}
#nc-sheet.nc-thread>header{position:relative;flex:0 0 auto;gap:5px;padding:0 0 18px;border:0;background:transparent}
#nc-sheet.nc-thread h2{display:flex;align-items:center;gap:5px;min-width:0;margin:0;color:#111627;font-size:15px;font-weight:800;letter-spacing:-.3px;line-height:1.3}
.nc-thread h2>.nc-thread-face{flex:0 0 33px;width:33px;height:38px}
#nc-sheet.nc-thread .nc-peer-name{flex:1;min-width:25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111627;font:inherit}
.nc-thread .nc-peer-link{flex:0 0 auto;color:#1953be;font-size:18px;font-weight:800;font-style:normal;line-height:1}
.nc-thread-face{position:relative;display:inline-grid;place-items:center;width:36px;height:40px;margin:0;border:1px solid #ffffffdc;border-radius:50%;background:linear-gradient(140deg,#fff,#ddeaff 62%,#d6d7fb);box-shadow:inset 0 2px 4px #fff,0 3px 5px #343b9140;color:#2065bb;font-size:17px;font-weight:800;font-style:normal;overflow:hidden}
.nc-thread-face img{display:block;width:100%;height:100%;padding:3px;object-fit:contain;border-radius:50%}
#nc-sheet.nc-thread .nc-back,#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close,#nc-sheet.nc-thread .nc-tool{flex:0 0 auto;display:inline-grid;place-items:center;min-width:0;margin:0;padding:0;border:1px solid #ffffffb8;border-radius:50%;background:linear-gradient(145deg,#ffffffb8,#e6e7ff5e 56%,#d4dffc9e);box-shadow:inset 0 1px 3px #fff,0 3px 5px #3b419547;color:#004fc8;cursor:pointer}
#nc-sheet.nc-thread .nc-back{width:auto;min-height:29px;padding:4px 7px;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:750;line-height:1.2}
#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close{width:29px;height:29px;min-height:29px}
#nc-sheet.nc-thread #nc-close{font-size:15px}
#nc-sheet.nc-thread .nc-call svg{display:block;flex:none;width:17px;height:17px;padding:0;border-radius:0;background:none;fill:currentColor;filter:drop-shadow(0 1px 1px #fff9)}
#nc-sheet.nc-thread .nc-body{position:relative;gap:7px;min-width:0;padding:0;overflow:hidden}
#nc-sheet.nc-thread .nc-messages{gap:5px;min-width:0;padding:6px 2px 14px;scrollbar-width:thin;scrollbar-color:#798ce177 transparent;overscroll-behavior:contain}
#nc-sheet.nc-thread .nc-msg.nc-callmsg{flex:0 0 auto;align-items:center;gap:7px;align-self:center;width:fit-content;max-width:98%;margin:0;padding:5px 12px;border:1px solid #ffffffb5;border-radius:999px;background:linear-gradient(155deg,#f8f3ffad,#e9edff7a 60%,#cfdbffbd);box-shadow:inset 0 1px 2px #fff,0 3px 5px #2e46a53d;color:#11192c;line-height:1.3}
#nc-sheet.nc-thread .nc-callmsg>span{min-width:0;font-size:13px;font-weight:650;line-height:1.4;white-space:normal}
#nc-sheet.nc-thread .nc-callmsg small{flex:0 0 auto;margin:0 0 0 8px;color:#35476e;font-size:10px;line-height:1.3;opacity:1;white-space:nowrap}
.nc-log-icon{display:flex;flex:0 0 19px;align-items:center;margin:0;color:#0064e2;font-style:normal;filter:drop-shadow(0 1px 1px #ffffffc4)}
.nc-log-icon svg{display:block;width:19px;height:19px;fill:currentColor}
.nc-log-icon.is-voice{color:#14ae37}
#nc-sheet.nc-thread .nc-textmsg{position:relative;flex:0 0 auto;gap:3px;max-width:calc(100% - 84px);min-width:82px;margin:4px 40px 5px;padding:9px 14px;border:1px solid #ffffffdc;border-radius:23px 23px 23px 7px;background:linear-gradient(145deg,#ffffffe3,#ece6ffab 75%,#ecebffde);box-shadow:inset 0 2px 3px #fff,0 4px 6px #3d439238;color:#0e162e;align-self:flex-start}
#nc-sheet.nc-thread .nc-textmsg:after{content:'';position:absolute;bottom:-1px;left:-8px;width:14px;height:14px;clip-path:polygon(85% 0,100% 100%,0 100%,55% 65%);background:#edebff;border-bottom:1px solid #fff;border-radius:0 0 0 3px}
#nc-sheet.nc-thread .nc-textmsg.mine{border-color:#b6faff;border-radius:23px 23px 7px 23px;background:linear-gradient(140deg,#15cbff,#0878ff 44%,#0050da 100%);box-shadow:inset 0 1px 3px #c3ffff,0 4px 7px #263d9b66;color:#fff;align-self:flex-end}
#nc-sheet.nc-thread .nc-textmsg.mine:after{left:auto;right:-8px;transform:scaleX(-1);background:#075be5;border-color:#b6faff}
#nc-sheet.nc-thread .nc-textmsg>span{font-size:15px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
#nc-sheet.nc-thread .nc-textmsg small{font-size:10px;color:#3e4771;line-height:1.4;opacity:1}
#nc-sheet.nc-thread .nc-textmsg.mine small{color:#e0ebff}
.nc-textmsg>.nc-thread-face{position:absolute;bottom:3px;left:-42px;width:34px;height:39px}
.nc-textmsg.mine>.nc-thread-face{left:auto;right:-42px}
#nc-sheet.nc-thread .nc-voice{border:1px solid #ffffffbc;border-radius:20px;background:#ecebffb5;box-shadow:inset 0 1px 2px #fff,0 3px 5px #3b419530}
#nc-sheet.nc-thread .nc-voice.mine{background:#2077df;color:#fff}
#nc-sheet.nc-thread .nc-stickers{border:1px solid #ffffffb5;border-radius:16px;background:#f1edffcf;box-shadow:0 3px 8px #3b419530}
#nc-sheet.nc-thread .nc-form{position:relative;flex:0 0 auto;gap:7px;align-items:center;margin:0;padding:10px 1px 0;border:0;background:transparent}
#nc-sheet.nc-thread .nc-tool{width:34px;height:38px;min-height:38px;font-size:23px;border-radius:13px}
#nc-sheet.nc-thread .nc-tool svg{display:block;width:21px;height:21px;fill:currentColor}
#nc-sheet.nc-thread .nc-form textarea{flex:1;width:0;min-width:0;min-height:44px;max-height:105px;margin:0;padding:12px 14px;border:1px solid #ffffffe6;border-radius:999px;background:linear-gradient(155deg,#ffffffd9,#e6e3ffb8);box-shadow:inset 0 1px 4px #fff,0 2px 5px #3d439233;color:#1f2953;font:inherit;font-size:15px;line-height:1.3;resize:none}
#nc-sheet.nc-thread .nc-form textarea::placeholder{color:#6d7398;opacity:1}
#nc-sheet.nc-thread .nc-form>.nc-primary{display:grid;place-items:center;flex:0 0 49px;width:49px;min-width:49px;height:45px;min-height:45px;margin:0;padding:8px;border:1px solid #b4fbff;border-radius:18px;background:linear-gradient(140deg,#1bcbff,#0084f8 46%,#0050e5);box-shadow:inset 0 1px 3px #b2ffff,0 3px 6px #2543ae55;color:#fff}
#nc-sheet.nc-thread .nc-form>.nc-primary svg{width:25px;height:25px;fill:currentColor;filter:drop-shadow(0 1px 1px #174fb9)}
.nc-send-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#nc-sheet.nc-thread .nc-form.recording>:not(.nc-rec){display:none}
#nc-sheet.nc-thread .nc-rec{padding:8px;border:1px solid #ffffffb8;border-radius:20px;background:#efebffcc}
#nc-sheet.nc-thread .nc-note{position:relative;flex:0 0 auto;margin:4px 0 0;padding:0 5px;color:#8f1742;font-size:12px}
#nc-sheet.nc-thread .nc-note:empty{display:none}
#nc-sheet.nc-thread :is(button,textarea):focus-visible{outline:2px solid #1748aa;outline-offset:3px}
@media(max-width:640px){#nc-sheet.nc-thread{height:100dvh;max-height:100dvh;padding:calc(24px + env(safe-area-inset-top)) 10px max(20px,env(safe-area-inset-bottom));border-radius:0}#nc-sheet.nc-thread::backdrop{background:#a9b6f4}}
@media(min-width:421px) and (max-width:640px){#nc-sheet.nc-thread{padding-top:calc(32px + env(safe-area-inset-top))}#nc-sheet.nc-thread h2{gap:7px;font-size:19px}.nc-thread h2>.nc-thread-face{flex-basis:42px;width:42px;height:48px}#nc-sheet.nc-thread .nc-back{min-height:34px;padding:5px 10px;font-size:15px}#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close{width:35px;height:35px}#nc-sheet.nc-thread .nc-call svg{width:21px;height:21px}#nc-sheet.nc-thread .nc-callmsg>span{font-size:15px}#nc-sheet.nc-thread .nc-callmsg small{font-size:12px}#nc-sheet.nc-thread .nc-textmsg>span{font-size:18px}#nc-sheet.nc-thread .nc-textmsg small{font-size:12px}#nc-sheet.nc-thread .nc-msg.nc-callmsg{padding:7px 15px}#nc-sheet.nc-thread .nc-form textarea{min-height:52px;font-size:18px}#nc-sheet.nc-thread .nc-tool{width:42px;height:48px}#nc-sheet.nc-thread .nc-form>.nc-primary{flex-basis:58px;width:58px;height:53px}.nc-textmsg>.nc-thread-face{width:40px;height:46px;left:-48px}.nc-textmsg.mine>.nc-thread-face{left:auto;right:-48px}#nc-sheet.nc-thread .nc-textmsg{margin-left:46px;margin-right:46px;max-width:calc(100% - 96px)}}
@media(min-width:641px){#nc-sheet.nc-thread{padding:26px 18px 20px}#nc-sheet.nc-thread h2{gap:9px;font-size:19px}.nc-thread h2>.nc-thread-face{flex-basis:42px;width:42px;height:48px}#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close{width:36px;height:36px}#nc-sheet.nc-thread .nc-back{min-height:34px;padding:5px 11px;font-size:15px}}
@media(max-width:360px){#nc-sheet.nc-thread h2{gap:3px;font-size:13px}.nc-thread h2>.nc-thread-face{flex-basis:28px;width:28px;height:33px}#nc-sheet.nc-thread .nc-back{padding-inline:5px;font-size:11px}}
#nc-sheet.nc-thread #nc-close{font-size:0}
#nc-sheet.nc-thread #nc-close:after{content:'•••';font-size:15px;font-weight:800;letter-spacing:1px}
#nc-sheet.nc-thread .nc-file-input[hidden]{display:none}
#nc-sheet.nc-thread .nc-attach:disabled{opacity:.55;cursor:wait}
#nc-sheet.nc-thread .nc-filemsg{max-width:82%;padding:10px 13px;border:1px solid #ffffffc9;border-radius:19px;background:linear-gradient(145deg,#ffffffdf,#e4e3ffb0);box-shadow:inset 0 1px 3px #fff,0 3px 5px #3b419537}
#nc-sheet.nc-thread .nc-filemsg.mine{background:linear-gradient(140deg,#139ef9,#0761de);color:#fff}
.nc-filemsg a{display:grid;grid-template-columns:26px minmax(0,1fr);gap:3px 7px;min-width:0;max-width:100%;color:inherit;text-decoration:none}
.nc-filemsg a i{grid-row:1/3;align-self:center;font-size:22px;font-style:normal}
.nc-filemsg a b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.nc-filemsg a small{grid-column:2;font-size:10px}
.nc-filemsg a:hover b{text-decoration:underline}

#nc-sheet.nc-thread{background:#b1b9f6 url("/images/chat-thread-bg.svg?v=1.1.370") center/100% 100% no-repeat}
.nc-thread h2>.nc-thread-face{overflow:visible}
.nc-thread h2>.nc-thread-face:has(img):after{content:'';position:absolute;right:-1px;bottom:1px;width:8px;height:8px;border:1.5px solid #fff;border-radius:50%;background:linear-gradient(135deg,#46ed71,#12b941);box-shadow:0 1px 2px #263b7855}
/* Call recordings share the conversation's glass finish without stretching the history pills. */
#nc-sheet.nc-thread .nc-msg.nc-callrecord{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;width:min(100%,340px);max-width:98%;padding:11px;border-radius:20px;white-space:normal}
#nc-sheet.nc-thread .nc-callrecord>.nc-log-icon{grid-column:1;grid-row:1}
#nc-sheet.nc-thread .nc-callrecord>span:not(.nc-record-label){grid-column:2;grid-row:1;font-size:13px}
#nc-sheet.nc-thread .nc-callrecord>small,#nc-sheet.nc-thread .nc-callrecord>.nc-record-label,#nc-sheet.nc-thread .nc-callrecord>audio,#nc-sheet.nc-thread .nc-callrecord>video,#nc-sheet.nc-thread .nc-callrecord>label{grid-column:1/-1;margin:0}
#nc-sheet.nc-thread .nc-callrecord>.nc-record-label{font-size:11px;color:#35476e}
#nc-sheet.nc-thread .nc-callrecord label{font-size:12px}
#nc-sheet.nc-thread .nc-callrecord audio,#nc-sheet.nc-thread .nc-callrecord video{width:100%;min-width:0;max-width:100%;border-radius:12px}

/* 1.1.376 owner: like Viber — nothing typed: the right-hand button is the microphone; text typed: it becomes Send. Same glass look. */
#nc-sheet.nc-thread .nc-form:has(textarea:placeholder-shown)>button[type="submit"]{display:none}
#nc-sheet.nc-thread .nc-form:has(textarea:not(:placeholder-shown))>.nc-mic{display:none}

/* 1.1.377 owner (Messenger reference): attach on the left; sticker and mic/send on the right; small icons; the text box grows up to 5 lines. */
#nc-sheet.nc-thread .nc-form{align-items:flex-end;gap:6px}
#nc-sheet.nc-thread .nc-form>.nc-attach{order:0;width:30px;height:30px;min-height:30px;font-size:18px;border-radius:11px}
#nc-sheet.nc-thread .nc-form>textarea{order:1;min-height:36px;max-height:118px;margin:0;padding:8px 14px;font-size:16px;line-height:20px;border-radius:18px}
#nc-sheet.nc-thread .nc-form>[data-nc=stickers]{order:2;width:30px;height:30px;min-height:30px;font-size:18px;border-radius:11px}
#nc-sheet.nc-thread .nc-form>.nc-mic,#nc-sheet.nc-thread .nc-form>button[type=submit]{order:3;flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;border-radius:14px}
#nc-sheet.nc-thread .nc-form>.nc-primary svg{width:19px;height:19px}

/* 1.1.378 owner (neat pill reference): round attach left; ONE glass pill with the sticker inside at its right; round blue mic/Send at the far right. */
#nc-sheet.nc-thread .nc-form{gap:8px;align-items:flex-end}
#nc-sheet.nc-thread .nc-form>.nc-attach{width:38px;height:38px;min-height:38px;border-radius:50%;font-size:18px}
#nc-sheet.nc-thread .nc-form>textarea{padding:9px 44px 9px 16px;border-radius:19px;min-height:38px}
#nc-sheet.nc-thread .nc-form>[data-nc=stickers]{position:relative;z-index:1;width:30px;height:30px;min-height:30px;margin:0 0 4px -46px;border:0;border-radius:50%;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;font-size:19px}
#nc-sheet.nc-thread .nc-form>.nc-mic,#nc-sheet.nc-thread .nc-form>button[type=submit]{flex:0 0 38px;width:38px;height:38px;min-height:38px;border-radius:50%}
/* 1.1.378 owner: no blue line/ring around the typing box. */
#nc-sheet.nc-thread .nc-form>textarea,#nc-sheet.nc-thread .nc-form>textarea:focus,#nc-sheet.nc-thread .nc-form>textarea:focus-visible,#nc-sheet.nc-thread .nc-chat-view .nc-form>textarea:focus-visible{outline:0 !important}
/* 1.1.379 owner: attach button snug against the typing pill (small gap). */
#nc-sheet.nc-thread .nc-form{gap:3px}
#nc-sheet.nc-thread .nc-form>[data-nc=stickers]{margin-left:-39px}
/* 1.1.379 owner: a clear gap between the typing pill and the mic/Send button; the button sits at the far right. */
#nc-sheet.nc-thread .nc-form>.nc-mic,#nc-sheet.nc-thread .nc-form>button[type=submit]{margin-left:13px;margin-right:0}

/* 1.1.383 owner: the page behind the open chat cannot be scrolled or dragged (typing with the keyboard open). */
html:has(dialog.nc-sheet[open]),html:has(dialog.nc-sheet[open]) body{overflow:hidden!important;overscroll-behavior:none}
#nc-sheet .nc-messages,#nc-sheet .nc-conversations,#nc-sheet textarea{overscroll-behavior:contain}
#nc-sheet.nc-thread{touch-action:manipulation}

/* 1.1.393 owner's picture: Chat thread — one glass header card (← · face + name · 📞 📹 🔍 •••), mint bubbles for my messages with the
   clock time under the text, no side avatars/tails, outline smiley in the composer. */
#nc-sheet.nc-thread>header{margin:2px 0 12px;padding:9px 11px;border:1px solid #ffffffc9;border-radius:30px;background:linear-gradient(145deg,#ffffffa6,#ffffff61);box-shadow:0 10px 26px #5a5fb82b,inset 0 1px 2px #fff}
#nc-sheet.nc-thread h2{gap:9px}
#nc-sheet.nc-thread h2>.nc-thread-face{flex:0 0 46px;width:46px;height:46px}
#nc-sheet.nc-thread .nc-peer-name{font-size:21px;font-weight:850;letter-spacing:-.4px}
#nc-sheet.nc-thread .nc-back{width:34px;min-height:34px;height:34px;padding:0;border:0;background:none;box-shadow:none;color:#1b4fc4;border-radius:0}
#nc-sheet.nc-thread .nc-back svg{display:block;width:30px;height:30px}
#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close{width:36px;height:36px;min-height:36px}
#nc-sheet.nc-thread .nc-call svg{width:20px;height:20px}
#nc-sheet.nc-thread>header{gap:7px}
#nc-sheet.nc-thread .nc-textmsg{max-width:82%;min-width:0;margin:3px 0;padding:10px 15px 8px;border-radius:22px;gap:2px}
#nc-sheet.nc-thread .nc-textmsg:after,#nc-sheet.nc-thread .nc-textmsg.mine:after{display:none}
#nc-sheet.nc-thread .nc-textmsg.mine{border-color:#ffffffd9;background:linear-gradient(145deg,#e8faea,#d5f3da);box-shadow:0 4px 10px #3a8a5a1f;color:#10231b}
#nc-sheet.nc-thread .nc-textmsg>span{font-size:16px;line-height:1.55}
#nc-sheet.nc-thread .nc-textmsg small{display:flex;align-items:center;gap:5px;font-size:12px;color:#3e4771}
#nc-sheet.nc-thread .nc-textmsg.mine small{justify-content:flex-end;color:#2a4a3a}
.nc-tick{font-weight:800;color:#2c7a4f;font-size:13px}
#nc-sheet.nc-thread .nc-tool .nc-smile{display:block;width:24px;height:24px}
.nc-find{display:block;margin:0 0 6px}
.nc-find input{width:100%;height:40px;padding:0 16px;border:1px solid #ffffffd9;border-radius:20px;background:#ffffffc7;font-size:16px;color:#10162a;outline:0}
.nc-messages>.nc-hide{display:none!important}
#nc-sheet.nc-thread .nc-form>[data-nc=stickers]{color:#232a4a}
/* second pass: name gets the room, bubbles hug the text, thinner header */
#nc-sheet.nc-thread>header{padding:8px 10px;gap:5px}
#nc-sheet.nc-thread h2{gap:7px;flex:1 1 auto;min-width:0}
#nc-sheet.nc-thread h2>.nc-thread-face{flex-basis:44px;width:44px;height:44px}
#nc-sheet.nc-thread .nc-peer-name{font-size:19px}
#nc-sheet.nc-thread .nc-call,#nc-sheet.nc-thread #nc-close{width:34px;height:34px;min-height:34px}
#nc-sheet.nc-thread .nc-textmsg{width:fit-content;padding:8px 14px 6px;border-radius:20px}
#nc-sheet.nc-thread .nc-textmsg>span{font-size:15.5px;line-height:1.5}
#nc-sheet.nc-thread .nc-textmsg small{font-size:11.5px}
/* 1.1.394 owner's picture: rounded rectangles with small corners (not pills) — header card, bubbles, call cards, search box. */
#nc-sheet.nc-thread>header{border-radius:24px}
#nc-sheet.nc-thread .nc-textmsg,#nc-sheet.nc-thread .nc-textmsg.mine{border-radius:17px}
#nc-sheet.nc-thread .nc-sticker,#nc-sheet.nc-thread .nc-voice,#nc-sheet.nc-thread .nc-filemsg{border-radius:17px}
#nc-sheet.nc-thread .nc-msg.nc-callmsg{border-radius:20px}
#nc-sheet.nc-thread .nc-msg.nc-callmsg.nc-callrecord{border-radius:22px}
#nc-sheet.nc-thread .nc-callrecord video,#nc-sheet.nc-thread .nc-callrecord audio{border-radius:14px}
.nc-find input{border-radius:16px}

/* 1.1.395 owner's picture: call recording cards — glass card with title + ⬇ + share, a rounded video, and a dark voice player with a waveform. */
#nc-sheet.nc-thread .nc-msg.nc-callmsg.nc-callrecord{display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:9px;row-gap:6px;align-items:center;align-self:center;width:min(100%,360px);max-width:100%;padding:13px 13px 14px;border:1px solid #ffffffd9;border-radius:26px;background:linear-gradient(150deg,#ffffffad,#e2e7ff8c);box-shadow:0 10px 26px #4e55b02e,inset 0 1px 2px #fff;white-space:normal}
#nc-sheet.nc-thread .nc-callrecord>.nc-log-icon{grid-column:1;grid-row:1;width:28px;height:28px}
#nc-sheet.nc-thread .nc-callrecord>.nc-log-icon svg{width:28px;height:28px}
#nc-sheet.nc-thread .nc-callrecord>span:not(.nc-record-label):not(.nc-rec-actions){grid-column:2;grid-row:1;font-size:19px;font-weight:800;color:#0f1730;letter-spacing:-.2px}
#nc-sheet.nc-thread .nc-callrecord>.nc-rec-actions{grid-column:3;grid-row:1;display:flex;gap:8px;margin:0}
#nc-sheet.nc-thread .nc-callrecord>small{grid-column:1/-1;grid-row:2;margin:-2px 0 0;font-size:15px;color:#4a5578}
#nc-sheet.nc-thread .nc-callrecord>.nc-record-label{grid-column:1/-1;grid-row:3;margin:2px 0 0;font-size:15px;font-weight:600;color:#202b4f}
#nc-sheet.nc-thread .nc-callrecord>video,#nc-sheet.nc-thread .nc-callrecord>.nc-wv,#nc-sheet.nc-thread .nc-callrecord>label{grid-column:1/-1;grid-row:4}
#nc-sheet.nc-thread .nc-callrecord>label{grid-row:5}
.nc-rbtn{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ffffffdc;border-radius:50%;background:linear-gradient(145deg,#fff,#dde6ff);box-shadow:0 3px 8px #3b459a38,inset 0 1px 2px #fff;color:#1b4fc4;cursor:pointer;text-decoration:none}
.nc-rbtn svg{display:block;width:21px;height:21px}
#nc-sheet.nc-thread .nc-callrecord>video{display:block;width:100%;max-height:270px;border-radius:20px;background:#101624;object-fit:contain}
#nc-sheet.nc-thread .nc-callrecord>audio{display:none}
.nc-wv{display:flex;align-items:center;gap:10px;height:56px;padding:0 16px 0 8px;border-radius:28px;background:#586079b3;color:#fff}
.nc-wplay{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:linear-gradient(160deg,#4aa6ff,#0b58df);box-shadow:0 3px 8px #0a3a9a66;color:#fff;cursor:pointer}
.nc-wplay svg{display:block;width:22px;height:22px}
.nc-wplay .q,.nc-wv.playing .nc-wplay .p{display:none}
.nc-wv.playing .nc-wplay .q{display:block}
.nc-wt,.nc-wd{flex:0 0 auto;font-size:15px;font-variant-numeric:tabular-nums;color:#fff}
.nc-wbars{display:flex;flex:1;align-items:center;gap:2.5px;height:38px;min-width:0;cursor:pointer}
.nc-wbars>i{flex:1;min-width:2px;border-radius:2px;background:#ffffff66}
.nc-wbars>i.on{background:#fff}
#nc-sheet.nc-thread .nc-callrecord>span.nc-rec-actions{grid-column:3;grid-row:1;font-size:inherit;font-weight:400}
#nc-sheet.nc-thread .nc-callrecord>span.nc-record-label{grid-column:1/-1;grid-row:3;font-size:15px}
/* 1.1.396 owner: no ••• button beside the search in the chat header. */
#nc-sheet.nc-thread #nc-close{display:none!important}

/* 1.1.397 owner's picture (Viber style): hold 🎤 → red dot + timer + "‹ Slide to cancel", the mic grows with a glow, a lock shows above it
   (slide up = lock → Cancel + Send, slide left = cancel, let go = send). */
#nc-sheet.nc-thread .nc-form{position:relative}
#nc-sheet.nc-thread .nc-mic{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#nc-sheet.nc-thread .nc-form.recording>:not(.nc-rec):not(.nc-mic):not(.nc-lock){display:none!important}
#nc-sheet.nc-thread .nc-form.recording>.nc-mic{display:grid!important;order:3;position:relative;z-index:2;transform:scale(1.45);transform-origin:50% 60%;box-shadow:0 0 0 7px #3b82f633,0 0 0 15px #3b82f61f,0 8px 20px #1c47c566;transition:transform .15s}
#nc-sheet.nc-thread .nc-form.recording.locked>.nc-mic{display:none!important}
#nc-sheet.nc-thread .nc-rec{flex:1;order:1;min-width:0;height:44px;padding:0 6px 0 12px;gap:10px;border:1px solid #ffffffb8;border-radius:22px;background:#ffffffb8}
#nc-sheet.nc-thread .nc-rec .nc-rec-dot{flex:0 0 12px;width:12px;height:12px;background:#e0505e}
#nc-sheet.nc-thread .nc-rec .nc-rec-time{font-size:21px;font-weight:500;color:#1c2340}
#nc-sheet.nc-thread .nc-rec .nc-rec-hint{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#6b7390;font-size:17px;transform:translateX(var(--dx,0px))}
#nc-sheet.nc-thread .nc-rec .nc-rec-cancel,#nc-sheet.nc-thread .nc-rec .nc-rec-send{display:none;width:auto;height:auto;margin:0;padding:0;border:0;background:none;color:#3b4fd0;font-size:18px;font-weight:600;cursor:pointer}
#nc-sheet.nc-thread .nc-form.recording.locked .nc-rec-hint{display:none}
#nc-sheet.nc-thread .nc-form.recording.locked .nc-rec-cancel{display:block;flex:1;text-align:center}
#nc-sheet.nc-thread .nc-form.recording.locked .nc-rec-send{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;background:linear-gradient(160deg,#4aa6ff,#0b58df);box-shadow:0 4px 10px #0a3a9a66;color:#fff}
#nc-sheet.nc-thread .nc-rec-send svg{display:block;width:22px;height:22px}
.nc-lock{position:absolute;right:2px;bottom:84px;z-index:3;display:grid;justify-items:center;gap:4px;width:44px;padding:11px 0 8px;border-radius:22px;background:#ffffffd1;box-shadow:0 6px 16px #3a4a9a33;color:#6b7390}
.nc-lock[hidden]{display:none}
.nc-lock svg{display:block;width:22px;height:22px}
/* 1.1.397 fixes after the first look: the grown mic keeps its right edge (no clipping), the lock floats above the bar, smaller Send. */
#nc-sheet.nc-thread .nc-form.recording>.nc-mic{transform:scale(1.32);transform-origin:100% 60%;margin-right:4px}
#nc-sheet.nc-thread .nc-form{z-index:6}
.nc-lock{z-index:30;right:4px;bottom:calc(100% + 26px)}
#nc-sheet.nc-thread .nc-form.recording.locked .nc-rec-send{flex:0 0 40px;width:40px;height:40px}
#nc-sheet.nc-thread .nc-rec{height:46px}
#nc-sheet.nc-thread .nc-form.recording>.nc-lock:not([hidden]){display:grid!important}
#nc-sheet.nc-thread .nc-form.recording>.nc-mic{transform-origin:100% 100%;margin-right:0}

/* 1.1.420 owner (Android): chat, inbox and Home hug the top, right under the system status bar. The iPhone spacing is unchanged. */
@media(max-width:640px){
 html.is-android #nc-sheet.nc-inbox,html.is-android .nc-sheet.nc-chat-view{padding-top:6px}
 /* the strip between the white status bar and the card is white too, so both read as one piece */
 html.is-android #nc-sheet.nc-inbox::before,html.is-android .nc-sheet.nc-chat-view::before{content:"";position:fixed;z-index:6;left:0;right:0;top:0;height:6px;background:#fff;pointer-events:none}
 html.is-android body:not(.visiting-shop):not(.non-home-view) .home-profile-banner{padding-top:8px}
}

/* 1.1.420 owner (Android): like Viber, the chat header is ONE full-width white bar joined to the white status bar - no floating card, no gap. */
@media(max-width:640px){
 #nc-sheet.nc-thread{padding-top:0}
 #nc-sheet.nc-thread>header{margin:0 -10px 12px;border-radius:0;background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;box-shadow:0 1px 0 rgba(17,22,39,.08);padding:calc(env(safe-area-inset-top) + 8px) 10px 8px}
}
/* 1.1.431 owner: iPhone too - the chat header is one white bar from the very top (it grows by the safe area, so it joins the status bar). */

/* 1.1.434 owner (iPhone): keep the composer above the keyboard while the sheet itself reaches the bottom of the screen (nothing of the page shows below it). */
@media(max-width:640px){
 #nc-sheet.nc-thread{padding-bottom:calc(max(20px,env(safe-area-inset-bottom)) + var(--nc-kb,0px))}
 #nc-sheet.nc-inbox{padding-bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--nc-kb,0px))}
}
/* 1.1.444 owner (iPhone): the area under the chat sheet (keyboard toolbar) must not show the shop page: while a chat is open the page is hidden and the background is the sheet's colour. */
@media(max-width:640px){
 html.nc-thread-open:not(#x),html.nc-thread-open:not(#x) body:not(#x){background:#aebaf7!important;background-image:none!important}
 html.nc-thread-open body>*:not(#nc-sheet):not(script):not(style){visibility:hidden!important}
 html.nc-thread-open body::before,html.nc-thread-open body::after{display:none!important}
}
/* 1.1.444 owner: while typing, the message box is as close to the keyboard as possible. */
@media(max-width:640px){
 #nc-sheet.nc-thread.nc-typing{padding-bottom:calc(5px + var(--nc-kb,0px))}
 #nc-sheet.nc-thread.nc-typing .nc-note{margin-top:2px}
}
/* 1.1.444 owner: pictures sent in chat show as pictures */
#nc-sheet.nc-thread .nc-filemsg.nc-imgmsg{flex:0 0 auto;padding:5px 5px 8px;width:min(280px,72%);max-width:72%;overflow:hidden}
#nc-sheet.nc-thread .nc-imgmsg a{display:block;grid-template-columns:none}
#nc-sheet.nc-thread .nc-imgmsg img{display:block;width:100%;max-height:320px;object-fit:cover;border-radius:15px;background:#ffffff66}
#nc-sheet.nc-thread .nc-imgmsg>small{display:block;margin:4px 8px 0}
/* 1.1.444 owner: photo viewer like the phone gallery: solid black, whole picture; pill buttons with icons and glowing rims (Close = light rim, Media = green), round Share / Save (green) buttons */
.nc-lightbox{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:calc(env(safe-area-inset-top) + 66px) 0 calc(env(safe-area-inset-bottom) + 108px);background:#000;color:#fff;touch-action:pan-y}   /* the picture stays between the top pills and the bottom buttons (they never cover it) */
.nc-lightbox>img.nc-lb-img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
.nc-lb-top{position:absolute;left:0;right:0;top:0;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:max(14px,calc(env(safe-area-inset-top) + 4px)) 16px 10px}
.nc-lb-top>b{font-size:19px;font-weight:600;letter-spacing:.5px;text-align:center}
.nc-lb-top button{display:inline-flex;align-items:center;gap:9px;justify-self:start;min-height:46px;padding:0 22px 0 16px;border:1.5px solid transparent;border-radius:99px;color:#fff;font:600 17px/1 system-ui,sans-serif;cursor:pointer;background:linear-gradient(#171718,#0c0c0d) padding-box,linear-gradient(135deg,#f6edc0,#8c8c8c 48%,#ffe9a6) border-box;box-shadow:0 0 12px #ffffff1f}
.nc-lb-top .nc-lb-media{justify-self:end;background:linear-gradient(#0e3d2c,#06281c) padding-box,linear-gradient(135deg,#43ffb2,#0b6a49 50%,#2de39a) border-box;box-shadow:0 0 16px #1fe6a266}
.nc-lb-bottom{position:absolute;left:0;right:0;bottom:0;z-index:2;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;justify-items:center;padding:10px 26px max(26px,calc(env(safe-area-inset-bottom) + 14px))}
.nc-lb-bottom>.nc-lb-share{justify-self:start}
.nc-lb-bottom button,.nc-lb-bottom a{display:grid;place-items:center;width:64px;height:64px;border:1.5px solid transparent;border-radius:50%;color:#fff;text-decoration:none;cursor:pointer;background:linear-gradient(#171718,#0c0c0d) padding-box,linear-gradient(135deg,#f6edc0,#7a7a7a 50%,#ffe9a6) border-box;box-shadow:0 0 12px #ffffff1a}
.nc-lb-bottom .nc-lb-save{background:linear-gradient(#0e3d2c,#06281c) padding-box,linear-gradient(135deg,#43ffb2,#0b6a49 50%,#2de39a) border-box;box-shadow:0 0 16px #1fe6a266}
.nc-lb-grid{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;background:#000;overflow-y:auto;-webkit-overflow-scrolling:touch}
.nc-lb-grid[hidden]{display:none}
.nc-lb-grid .nc-lb-top{position:sticky;background:#000}
.nc-lb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px}
.nc-lb-tiles button{padding:0;border:0;background:#1c1c1e;aspect-ratio:1;overflow:hidden}
.nc-lb-tiles img{display:block;width:100%;height:100%;object-fit:cover}
/* 1.1.444 owner: round "jump to the newest message" arrow, shown while the chat is scrolled up */
#nc-sheet .nc-jump{position:absolute;left:50%;z-index:6;display:grid;place-items:center;width:46px;height:46px;margin-left:-23px;padding:0;border:1px solid #d9e1ff;border-radius:50%;background:#ffffffee;color:#1d4ed8;box-shadow:0 6px 18px #142e8240;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#nc-sheet .nc-jump[hidden]{display:none}
#nc-sheet .nc-jump:active{transform:scale(.94)}
/* 1.1.466 owner: a picture being sent shows at once, dimmed, with "Sending NN%". */
#nc-sheet.nc-thread .nc-sending .nc-pic{position:relative;display:block}
#nc-sheet.nc-thread .nc-sending .nc-pic img{display:block;width:auto;height:auto;max-width:100%;max-height:min(66vh,540px);object-fit:contain;border-radius:18px;opacity:.72}
#nc-sheet.nc-thread .nc-prog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:5px 12px;border-radius:999px;background:#0b3b7ccc;color:#fff;font:700 13px/1.2 system-ui,sans-serif;font-style:normal;white-space:nowrap}
#nc-sheet.nc-thread .nc-pic-file{display:flex;align-items:center;gap:8px;padding:8px 10px;min-height:44px}
#nc-sheet.nc-thread .nc-pic-file .nc-prog{position:static;transform:none;margin-left:auto}
/* 1.1.467/1.1.468 owner (Viber look): a picture in the chat has NO bubble / blue border - the WHOLE picture in its own proportions (nothing cropped), rounded, with the time in a small dark pill on its bottom-right corner. */
#nc-sheet.nc-thread .nc-msg.nc-imgmsg,#nc-sheet.nc-thread .nc-msg.nc-imgmsg.mine{position:relative;display:flex;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;width:auto;max-width:78%;overflow:visible}
#nc-sheet.nc-thread .nc-imgmsg.mine{justify-content:flex-end}
#nc-sheet.nc-thread .nc-imgmsg a{position:relative;display:block;max-width:100%;border-radius:18px;overflow:hidden;line-height:0}
#nc-sheet.nc-thread .nc-imgmsg img{display:block;width:auto;height:auto;max-width:100%;max-height:min(66vh,540px);min-width:90px;min-height:60px;object-fit:contain;border-radius:18px;background:#e7ebf5}
#nc-sheet.nc-thread .nc-imgmsg a>small.nc-imgtime,#nc-sheet.nc-thread .nc-imgmsg.nc-sending>small{position:absolute;right:8px;bottom:8px;margin:0;padding:3px 9px;border-radius:999px;background:#000000a6;color:#fff;font:600 12px/1.3 system-ui,sans-serif}
#nc-sheet.nc-thread .nc-imgmsg.nc-sending>small:empty{display:none}
#nc-sheet.nc-thread .nc-sending .nc-pic{position:relative;display:block;line-height:0}
/* 1.1.469 owner (Viber): the paperclip opens a panel of round icons under the message box. */
#nc-sheet.nc-thread .nc-attach-panel{flex:0 0 auto;margin:8px 0 0;padding:14px 8px 10px;border-radius:22px;background:#ffffffd9;border:1px solid #ffffffe6;box-shadow:0 -4px 18px #3a4aa01f}
#nc-sheet.nc-thread .nc-attach-panel[hidden]{display:none}
#nc-sheet.nc-thread .nc-att-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 4px}
#nc-sheet.nc-thread .nc-att-grid[hidden],#nc-sheet.nc-thread .nc-attform[hidden]{display:none}
#nc-sheet.nc-thread .nc-att{display:grid;justify-items:center;gap:6px;padding:0;border:0;background:transparent;color:#1d2557;font:600 13px/1.2 system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
#nc-sheet.nc-thread .nc-att small{font-size:13px;font-weight:600;color:#2c3566}
#nc-sheet.nc-thread .nc-att-ic{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:#fff;box-shadow:0 6px 14px #3a4aa033}
#nc-sheet.nc-thread .nc-att-ic svg{width:28px;height:28px}
#nc-sheet.nc-thread .nc-att:active .nc-att-ic{transform:scale(.94)}
#nc-sheet.nc-thread .nc-att-gallery{background:linear-gradient(160deg,#a58bff,#6a4ee0)}
#nc-sheet.nc-thread .nc-att-camera{background:linear-gradient(160deg,#6db0ff,#3b78ee)}
#nc-sheet.nc-thread .nc-att-ic.nc-att-contact{background:linear-gradient(160deg,#8d9bff,#5766e6)}
#nc-sheet.nc-thread .nc-att-location{background:linear-gradient(160deg,#59b4f2,#3b84dc)}
#nc-sheet.nc-thread .nc-att-file{background:linear-gradient(160deg,#5ac4ee,#3a9fd9)}
#nc-sheet.nc-thread form.nc-attform{display:flex;flex-wrap:wrap;gap:8px;padding:2px 6px}
#nc-sheet.nc-thread .nc-attform input{flex:1 1 40%;min-width:0;height:44px;padding:0 14px;border:1px solid #cfd6f5;border-radius:14px;background:#fff;font:16px system-ui,sans-serif}
#nc-sheet.nc-thread .nc-att-go{height:44px;padding:0 20px;border:0;border-radius:14px;background:linear-gradient(160deg,#4a8cf5,#2b63e0);color:#fff;font:700 15px system-ui,sans-serif}
#nc-sheet.nc-thread .nc-att-back{width:44px;height:44px;border:1px solid #cfd6f5;border-radius:14px;background:#fff;color:#4a5384;font-size:22px}
#nc-sheet.nc-thread .nc-attach.is-on{background:linear-gradient(160deg,#dfe6ff,#c4d1ff)}
#nc-sheet.nc-thread .nc-locmsg>a{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:0 10px;align-items:center;min-width:200px;color:inherit;text-decoration:none}
#nc-sheet.nc-thread .nc-locpin{grid-row:1/3;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:linear-gradient(160deg,#59b4f2,#3b84dc);color:#fff}
#nc-sheet.nc-thread .nc-locpin svg{width:26px;height:26px}
#nc-sheet.nc-thread .nc-locmsg b{font-size:15px}
#nc-sheet.nc-thread .nc-locmsg em{font-style:normal;font-size:12.5px;opacity:.8}
#nc-sheet.nc-thread .nc-textmsg a{color:inherit;text-decoration:underline;word-break:break-all}

/* 1.1.470 owner (Viber): press and hold a message -> Reply / Edit / Delete; quoted reply; reply bar; trash in the picture viewer. */
#nc-sheet.nc-thread .nc-messages>[data-nc-message]{-webkit-touch-callout:none}
#nc-sheet.nc-thread .nc-imgmsg a,#nc-sheet.nc-thread .nc-filemsg a{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#nc-sheet.nc-thread .nc-quote{display:block;margin:0 0 6px;padding:5px 10px;border-left:3px solid #5766e6;border-radius:10px;background:#ffffff8c;font-style:normal;cursor:pointer;text-align:left}
#nc-sheet.nc-thread .mine .nc-quote,#nc-sheet.nc-thread .nc-msg.mine>.nc-quote{border-left-color:#2f9e5a;background:#ffffff73}
#nc-sheet.nc-thread .nc-quote b{display:block;font:700 12.5px/1.3 system-ui,sans-serif;color:#3f4fd0}
#nc-sheet.nc-thread .nc-msg.mine>.nc-quote b{color:#1f7d44}
#nc-sheet.nc-thread .nc-quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:400 13.5px/1.35 system-ui,sans-serif;color:#4a527a;word-break:break-word}
#nc-sheet.nc-thread .nc-flash{animation:nc-flash 1.3s ease}
@keyframes nc-flash{0%,60%{box-shadow:0 0 0 3px #5766e6aa}100%{box-shadow:0 0 0 3px #5766e600}}
#nc-sheet.nc-thread .nc-ctx-on{outline:2px solid #5766e690;outline-offset:3px}
#nc-sheet .nc-ctx{position:fixed;inset:0;z-index:60}
#nc-sheet .nc-ctx-back{position:absolute;inset:0;background:#0f163a38}
#nc-sheet .nc-ctx-card{position:absolute;width:236px;max-width:calc(100vw - 24px);padding:6px 0;border-radius:22px;background:#2a2c38f2;box-shadow:0 14px 40px #0006;color:#fff;overflow:hidden}
#nc-sheet .nc-ctx-i{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;height:50px;padding:0 20px;border:0;background:transparent;color:#fff;font:500 18px system-ui,sans-serif;text-align:left;cursor:pointer}
#nc-sheet .nc-ctx-i+.nc-ctx-i{border-top:1px solid #ffffff1c}
#nc-sheet .nc-ctx-i:active{background:#ffffff18}
#nc-sheet .nc-ctx-i.is-del{color:#ff6b6b}
#nc-sheet .nc-ctx-ask{margin:0;padding:16px 20px 8px;font:500 17px/1.3 system-ui,sans-serif;color:#fff}
#nc-sheet .nc-ctx-row{display:grid;grid-template-columns:1fr 1fr}
#nc-sheet .nc-ctx-row .nc-ctx-i{justify-content:center;border-top:1px solid #ffffff1c}
#nc-sheet .nc-ctx-row .nc-ctx-i+.nc-ctx-i{border-left:1px solid #ffffff1c}
#nc-sheet.nc-thread .nc-replybar{flex:0 0 auto;display:flex;align-items:center;gap:10px;margin:6px 8px 0;padding:8px 10px;border-left:3px solid #5766e6;border-radius:16px;background:#ffffffe0}
#nc-sheet.nc-thread .nc-replybar[hidden]{display:none}
#nc-sheet.nc-thread .nc-replybar i{display:grid;place-items:center;color:#3f4fd0}
#nc-sheet.nc-thread .nc-replybar span{flex:1;min-width:0;display:grid;gap:1px}
#nc-sheet.nc-thread .nc-replybar b{font:700 13px/1.3 system-ui,sans-serif;color:#3f4fd0}
#nc-sheet.nc-thread .nc-replybar em{font:400 14px/1.3 system-ui,sans-serif;font-style:normal;color:#4a527a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#nc-sheet.nc-thread .nc-replybar button{width:32px;height:32px;border:0;border-radius:50%;background:#e9ecfb;color:#3a4388;font:600 15px system-ui,sans-serif}
.nc-lb-bottom>.nc-lb-del{justify-self:end}
.nc-lb-bottom .nc-lb-del{color:#ff8b8b;background:linear-gradient(#3a1114,#240a0c) padding-box,linear-gradient(135deg,#ff9a9a,#7a1f1f 50%,#ff6b6b) border-box;box-shadow:0 0 14px #ff6b6b44}
.nc-lb-bottom .nc-lb-del[hidden]{display:none}

/* 1.1.472 owner (iPhone): pressing a message must show only our Reply / Edit / Delete menu - no text selection handles, no Copy / Look Up / Translate bubble, no picture selection or Save-Image sheet. */
#nc-sheet.nc-thread .nc-messages>[data-nc-message],#nc-sheet.nc-thread .nc-messages>[data-nc-message] *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#nc-sheet.nc-thread .nc-messages img{-webkit-user-drag:none;user-drag:none;pointer-events:auto}
#nc-sheet.nc-thread .nc-messages>[data-nc-message]::selection,#nc-sheet.nc-thread .nc-messages>[data-nc-message] *::selection{background:transparent}

/* 1.1.473 owner (Viber): swipe a message left = Reply, right = select. */
#nc-sheet.nc-thread .nc-messages>[data-nc-message]{touch-action:pan-y;will-change:transform}
#nc-sheet .nc-swipe-ind{position:fixed;z-index:55;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#ffffffd9;color:#3f4fd0;box-shadow:0 3px 12px #2a35871f;opacity:0;pointer-events:none;transition:transform .12s ease,background .12s ease,color .12s ease}
#nc-sheet .nc-swipe-ind.is-ready{transform:scale(1.14);background:#5766e6;color:#fff}
#nc-sheet.nc-thread.nc-selecting-ui .nc-messages{padding-left:46px}
#nc-sheet .nc-selrings{position:fixed;inset:0;z-index:54;pointer-events:none}
#nc-sheet .nc-selrings i{position:fixed;width:26px;height:26px;border:2px solid #ffffff;border-radius:50%;box-sizing:border-box;display:grid;place-items:center;color:transparent;background:#ffffff1f;box-shadow:0 1px 6px #2a35873a;pointer-events:auto;cursor:pointer}
#nc-sheet .nc-selrings i.on{background:#6a4ee0;border-color:#6a4ee0;color:#fff}
#nc-sheet.nc-thread.nc-selecting-ui .nc-form,#nc-sheet.nc-thread.nc-selecting-ui .nc-replybar,#nc-sheet.nc-thread.nc-selecting-ui .nc-attach-panel,#nc-sheet.nc-thread.nc-selecting-ui .nc-stickers{display:none!important}
#nc-sheet.nc-thread .nc-selbar{flex:0 0 auto;display:flex;align-items:center;gap:12px;margin:8px 10px max(10px,env(safe-area-inset-bottom));padding:8px 10px;border-radius:20px;background:#ffffffe8;box-shadow:0 4px 18px #2a35872b}
#nc-sheet.nc-thread .nc-selbar b{flex:1;font:700 16px system-ui,sans-serif;color:#2c3566}
#nc-sheet.nc-thread .nc-selx{width:40px;height:40px;border:0;border-radius:50%;background:#e9ecfb;color:#3a4388;font:600 17px system-ui,sans-serif}
#nc-sheet.nc-thread .nc-seldel{display:flex;align-items:center;gap:8px;height:42px;padding:0 18px;border:0;border-radius:14px;background:#e5484d;color:#fff;font:700 15px system-ui,sans-serif}
#nc-sheet.nc-thread .nc-seldel:disabled{opacity:.4}
#nc-sheet.nc-thread .nc-seldel svg{width:20px;height:20px}

/* 1.1.476 owner (Viber): heart on a message, Forward picker. */
#nc-sheet.nc-thread .nc-messages>[data-hearted="1"]{position:relative;margin-bottom:16px}
#nc-sheet.nc-thread .nc-heart{position:absolute;right:10px;bottom:-14px;z-index:2;display:flex;align-items:center;gap:2px;min-width:26px;height:26px;padding:0 6px;border-radius:13px;background:#fff;box-shadow:0 2px 8px #2a358733;font:400 15px/1 system-ui,sans-serif;font-style:normal;justify-content:center}
#nc-sheet.nc-thread .nc-heart sup{font:700 11px/1 system-ui,sans-serif;color:#5a6290}
#nc-sheet .nc-fwd{position:fixed;inset:0;z-index:62;display:flex;flex-direction:column;background:#000;color:#fff;padding-top:env(safe-area-inset-top)}
#nc-sheet .nc-fwd-top{flex:0 0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:14px 14px 10px}
#nc-sheet .nc-fwd-top button{justify-self:start;height:50px;padding:0 24px;border:1.5px solid #ffffff1f;border-radius:25px;background:linear-gradient(#232325,#161617);color:#fff;font:500 19px system-ui,sans-serif}
#nc-sheet .nc-fwd-top .nc-fwd-done{justify-self:end}
#nc-sheet .nc-fwd-top .nc-fwd-done:disabled{opacity:.45}
#nc-sheet .nc-fwd-title{display:grid;justify-items:center;line-height:1.2}
#nc-sheet .nc-fwd-title b{font:700 20px system-ui,sans-serif}
#nc-sheet .nc-fwd-title small{font:500 15px system-ui,sans-serif;color:#cfcfd6}
#nc-sheet .nc-fwd-search{flex:0 0 auto;display:flex;align-items:center;gap:12px;margin:6px 14px 12px;height:52px;padding:0 18px;border:1.5px solid #ffffff17;border-radius:26px;background:#161617;color:#d6d6dc}
#nc-sheet .nc-fwd-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#fff;font:400 20px system-ui,sans-serif;-webkit-appearance:none}
#nc-sheet .nc-fwd-search input::placeholder{color:#9a9aa3}
#nc-sheet .nc-fwd-list{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:max(18px,env(safe-area-inset-bottom))}
#nc-sheet .nc-fwd-list p{margin:18px;color:#9a9aa3;font:500 17px system-ui,sans-serif}
#nc-sheet .nc-fwd-row{display:flex;align-items:center;gap:16px;width:100%;padding:10px 20px 10px 22px;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
#nc-sheet .nc-fwd-row[hidden]{display:none}
#nc-sheet .nc-fwd-row:active{background:#1c1c1f}
#nc-sheet .nc-fwd-ck{flex:0 0 28px;width:28px;height:28px;border:2px solid #d9d9df;border-radius:50%;box-sizing:border-box;display:grid;place-items:center;color:transparent}
#nc-sheet .nc-fwd-row.on .nc-fwd-ck{background:#7360f2;border-color:#7360f2;color:#fff}
#nc-sheet .nc-fwd-av{position:relative;flex:0 0 58px;width:58px;height:58px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(160deg,#8d9bff,#5766e6);color:#fff;font:700 24px system-ui,sans-serif}
#nc-sheet .nc-fwd-av em{font-style:normal}
#nc-sheet .nc-fwd-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#222}
#nc-sheet .nc-fwd-row b{flex:1;min-width:0;font:500 21px system-ui,sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 1.1.478: no iOS text selection anywhere in an open chat except the message box. */
html.nc-thread-open,html.nc-thread-open body,#nc-sheet.nc-thread,#nc-sheet.nc-thread *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#nc-sheet.nc-thread textarea,#nc-sheet.nc-thread input{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

/* 1.1.496 owner: voice / video calls are not used any more - the two call buttons in the chat header are hidden (the call code stays in place). */
button[data-nc="call"],button[data-nc="vcall"]{display:none!important}

/* 1.1.503 owner: two blue ticks once the other side has seen the message */
.nc-tick.is-seen{color:#1a73e8;letter-spacing:-3px;margin-right:3px}
.nc-imgtime .nc-tick{color:#fff}.nc-imgtime .nc-tick.is-seen{color:#7fc4ff}

/* 1.1.506 owner: the inbox shows HOW MANY unread messages each conversation has (a number, not a dot) */
.nc-conversation-meta .nc-unread-n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:#0867f9;color:#fff;font:700 12px/1 system-ui,sans-serif;margin-top:4px}

/* 1.1.508 owner: "Create account" under the message box for somebody without a shop */
#nc-sheet.nc-thread .nc-note.is-create{font-size:14px;line-height:1.5;text-align:center;padding:6px 10px}
.nc-note .nc-create{display:inline-block;margin:8px 0 0 0;padding:9px 18px;border-radius:999px;background:#137a2c;color:#fff;font:700 14px system-ui,sans-serif;text-decoration:none}
.nc-note span+.nc-create{display:table;margin:10px auto 4px}
