:root {font-family:system-ui,'Segoe UI',Arial,sans-serif;color-scheme:dark;background:#0b1120;color:#e7eefb}
* {box-sizing:border-box}body{margin:0}main{max-width:760px;margin:24px auto;padding:0 16px}.wide{max-width:1150px}
header{padding:18px 0 6px}h1{margin:0;font-size:29px}h2{font-size:21px;margin:0 0 14px}p{color:#b9c7d9;line-height:1.48}
section{background:#141e30;border:1px solid #34445c;border-radius:12px;padding:20px;margin:18px 0}
label{display:block;font-size:14px;margin:12px 0;color:#cdd9e7}input,textarea{display:block;width:100%;background:#0e1728;border:1px solid #53647c;color:#fff;border-radius:7px;padding:11px;margin-top:6px;font:inherit}
button{background:#367bf5;border:1px solid #387df5;border-radius:8px;color:#fff;padding:10px 14px;font-size:14px;cursor:pointer;margin:6px 8px 6px 0}button:hover{filter:brightness(1.15)}button:disabled{opacity:.55;cursor:default}.secondary{background:transparent;border-color:#6b7a8e}
.actions{display:flex;flex-wrap:wrap}.status{white-space:pre-wrap;color:#a9d2ff}pre{background:#070e1d;padding:12px;border-radius:7px;overflow:auto;min-height:40px;max-height:300px;white-space:pre-wrap;overflow-wrap:anywhere}
a{color:#91bcff}footer{margin:24px 0 38px;font-size:13px}.overflow{overflow-x:auto}table{border-collapse:collapse;min-width:900px;width:100%}td,th{border-bottom:1px solid #33445f;padding:9px;text-align:left;vertical-align:top}td{font-size:13px}td input{min-width:140px;margin:0}.muted{color:#95a6bb} .bad{color:#ff9d9d}.ok{color:#9fdaa9}
/* NVPM_AUTO_AUTH_V21_20261121 */
#inviteCode{display:none!important}
label:has(> #inviteCode){display:none!important}
#checkBtn{display:none}
@media(max-width:680px){
  #enroll,#signin{padding:16px}
  #signin>p:not(.status){display:none}
}

/* NVPM_MOBILE_CHAT_V1_20261121: mobile minimal UI, desktop completely unchanged */
.nvmm{display:none}
[hidden]{display:none!important}
@media(max-width:680px){
 :root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
 main{margin:0 auto;padding:0 12px;max-width:100%}
 header{padding:18px 2px 4px}
 header h1{font-size:23px}
 header p{font-size:13px;line-height:1.35}
 section{margin:12px 0;padding:16px;border-radius:12px}
 section h2{font-size:19px}
 label{font-size:13px}
 #enroll>p:first-of-type{font-size:12px}
 button,input,textarea{font-size:16px}
 #joinBtn,#loginBtn{padding:12px 16px}
 body.nvmm-auth{overscroll-behavior:none}
 body.nvmm-auth main{margin:0;padding:0;max-width:none;height:100dvh;min-height:0;overflow:hidden}
 body.nvmm-auth header,body.nvmm-auth #enroll,body.nvmm-auth #signin,body.nvmm-auth footer{display:none!important}
 body.nvmm-auth #chat{height:100dvh;min-height:0;overflow:hidden;margin:0;padding:0;background:#0b1424;border:0;border-radius:0;display:flex;flex-direction:column}
 body.nvmm-auth #chat > :not(.nvmm):not(#claimBox){display:none!important}
 body.nvmm-auth #chat #claimBox:not([hidden]){padding:16px;overflow-y:auto}
 body.nvmm-auth.nvmm-claim #nvmm{display:none!important}
 body.nvmm-auth #nvmm{display:flex;flex:1;min-height:0;flex-direction:column;color:#eaf1ff;background:#0b1424}
 .nvmm button{margin:0;border:0;filter:none!important;touch-action:manipulation}
 .nvmm-bar{height:56px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #233248;background:#131f31}
 .nvmm-brand{font-weight:750;font-size:18px;letter-spacing:.02em}
 .nvmm-network{margin-left:auto;font-size:11px;color:#9ecbc2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
 .nvmm-network[data-online="0"]{color:#f0b17f}
 .nvmm-icon{width:34px;height:36px;flex-shrink:0;background:transparent;color:#bfcfe5;font-size:24px;padding:0}
 .nvmm-list-view,.nvmm-thread-view{flex:1;display:flex;flex-direction:column;min-height:0}
 .nvmm-title{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;flex-shrink:0}
 .nvmm-title h3{margin:0;font-size:20px;font-weight:700}
 .nvmm-new{background:#253d5b;color:#daeaff;font-size:13px;padding:10px 12px;border-radius:20px}
 .nvmm-new-wrap{padding:8px 14px 12px;border-bottom:1px solid #253348}
 .nvmm-new-wrap label{display:block;margin:0 0 6px;color:#a9bad0}
 .nvmm-peer-row{display:flex;align-items:center;gap:8px}
 .nvmm-peer-row input{min-width:0;flex:1;margin:0;height:44px;border-radius:12px}
 .nvmm-peer-row button{border-radius:12px;height:44px;padding:0 14px}
 .nvmm-peers{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .nvmm-peer{width:100%;min-height:67px;display:flex;gap:12px;text-align:left;align-items:center;padding:10px 14px;background:transparent;border-bottom:1px solid #202e40;border-radius:0;color:inherit}
 .nvmm-avatar{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#274b72;color:#fff;font-weight:700;font-size:18px}
 .nvmm-peer-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
 .nvmm-peer-main strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .nvmm-peer-main small{font-size:12px;color:#93a5bc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .nvmm-empty{padding:20px 16px;font-size:14px;color:#91a9c4;line-height:1.5}
 .nvmm-thread-head{height:56px;display:flex;align-items:center;gap:10px;background:#131f31;border-bottom:1px solid #243448;padding:4px 12px;flex-shrink:0}
 .nvmm-thread-head strong{flex:1;min-width:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .nvmm-back{font-size:32px;width:35px;color:#dae8ff;background:transparent;padding:0;line-height:1}
 .nvmm-bubbles{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:9px;padding:14px 12px;overscroll-behavior:contain;scrollbar-width:thin}
 .nvmm-bubble{max-width:87%;min-width:42px;padding:9px 11px;border-radius:14px 14px 14px 4px;background:#203149;align-self:flex-start;word-break:break-word;overflow-wrap:anywhere;white-space:pre-wrap;font-size:15px;line-height:1.43}
 .nvmm-bubble.mine{background:#204b43;align-self:flex-end;border-radius:14px 14px 4px 14px}
 .nvmm-bubble.pending{opacity:.75}
 .nvmm-bubble .meta{display:block;text-align:right;color:#a9bacb;font-size:10px;margin-top:4px}
 .nvmm-placeholder{margin:auto;color:#95a9c1;text-align:center;max-width:260px;font-size:13px;line-height:1.5}
 .nvmm-compose{display:flex;align-items:end;gap:8px;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:#131f31;border-top:1px solid #263850;flex-shrink:0}
 .nvmm-compose textarea{margin:0;min-height:43px;max-height:105px;flex:1;resize:none;border-radius:21px;line-height:1.35;padding:10px 14px;overflow-y:auto;background:#0e1a2c}
 .nvmm-compose button{width:44px;height:44px;flex-shrink:0;border-radius:50%;font-size:20px;display:grid;place-items:center;padding:0;background:#2b7bf3}
 .nvmm-notice{position:absolute;bottom:80px;left:16px;right:16px;z-index:9;padding:11px 14px;border:1px solid #4b6279;border-radius:12px;background:#18293e;color:#f4efe8;text-align:center;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.nvmm *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* NVPM_DESKTOP_CHAT_V1_20261121 — only desktop, mobile ≤680px unchanged */
@media (min-width:681px) {
  html:has(body.nvpd-auth),body.nvpd-auth { overflow:hidden; }
  #nvpd[hidden] {display:none!important}
  body.nvpd-auth #nvpd {display:grid;}
  #nvpd {--p:#07172d;--edge:#214871;--bright:#03a8f5;--txt:#e9f2ff;--dim:#93b0d4;position:fixed;z-index:100;inset:0;width:100vw;height:100vh;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:radial-gradient(ellipse at 70% 32%,#092a54 0%,#071c39 53%,#071528 100%);color:var(--txt);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;grid-template-columns:215px 340px minmax(320px,1fr);gap:0;font-size:14px;line-height:1.4;overflow:hidden}
  #nvpd *{box-sizing:border-box}
  #nvpd button,#nvpd input,#nvpd textarea{font:inherit;letter-spacing:normal}
  #nvpd button{cursor:pointer;margin:0;padding:0;transition:background .15s ease,border-color .15s ease;flex-shrink:0}
  #nvpd button:disabled{opacity:.35;cursor:not-allowed;filter:none}
  #nvpd button:hover:not(:disabled){filter:brightness(1.13)}
  #nvpd input,#nvpd textarea{margin:0}
  #nvpd .nvpd-nav{min-width:0;border-right:1px solid #1c426b;background:linear-gradient(150deg,#06162d 0%,#0c2c54 90%);display:flex;flex-direction:column;padding:22px 14px 20px;gap:26px}
  #nvpd .nvpd-logo{display:flex;gap:11px;align-items:center;padding:0 7px}
  #nvpd .nvpd-mark{width:43px;height:43px;border-radius:13px;background:linear-gradient(140deg,#04b7e9,#0d67b9);font-size:25px;font-weight:850;display:grid;place-items:center;box-shadow:0 5px 18px #0007}
  #nvpd .nvpd-logo strong{display:block;font-size:19px;white-space:nowrap}
  #nvpd .nvpd-logo small{display:block;letter-spacing:.21em;color:var(--dim);font-size:9px;margin-top:2px}
  #nvpd .nvpd-navlinks button{width:100%;text-align:left;border:1px solid #38688d;border-radius:13px;padding:11px 13px;background:linear-gradient(125deg,#0b6f97aa,#144371c5);font-weight:650}
  #nvpd .nvpd-navlinks button span{margin-right:9px}
  #nvpd .nvpd-identity{display:flex;gap:9px;align-items:center;margin-top:auto;padding:0 7px;min-width:0}
  #nvpd .nvpd-identity>div{min-width:0}
  #nvpd .nvpd-identity strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #nvpd .nvpd-identity small{font-size:11px;color:var(--dim);display:block}
  #nvpd .nvpd-led{width:9px;height:9px;border-radius:50%;background:#eaa352;box-shadow:0 0 12px #eaa35280;flex-shrink:0}
  #nvpd .nvpd-led.online{background:#2bd9ac;box-shadow:0 0 12px #2bd9ac60}
  #nvpd .nvpd-logout{color:#a7bedb;background:#071d3a;border:1px solid #254872;border-radius:10px;padding:9px!important}
  #nvpd .nvpd-sidebar{border-right:1px solid #21456e;min-width:0;background:linear-gradient(135deg,#0b2a4c,#081a33 60%);display:flex;flex-direction:column;padding:20px 14px;overflow:hidden}
  #nvpd .nvpd-side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
  #nvpd .nvpd-side-head strong{font-size:21px}
  #nvpd .nvpd-round{width:43px;height:43px;border-radius:14px;border:1px solid #3576b1;background:linear-gradient(145deg,#0a8ee1,#0a4d99);color:#fff;display:grid;place-items:center;font-size:27px;box-shadow:inset 0 1px #ffffff33}
  #nvpd .nvpd-search{display:flex;margin:0 0 14px;padding:0 12px;align-items:center;gap:9px;width:100%;height:42px;border:1px solid #315d8e;border-radius:13px;background:#0c2442}
  #nvpd .nvpd-search span{font-size:27px;color:#9ab9d6}
  #nvpd .nvpd-search input{border:0;background:transparent;box-shadow:none;color:#fff;padding:0;width:100%;min-width:0;outline:0;font-size:13px}
  #nvpd .nvpd-search input::placeholder,#nvpd textarea::placeholder{color:#96afd0}
  #nvpd .nvpd-new-form{background:#0c2340;border:1px solid #315c8c;border-radius:14px;padding:12px;margin-bottom:13px}
  #nvpd .nvpd-new-form[hidden]{display:none}
  #nvpd .nvpd-new-form label{display:block;font-size:12px;margin:0 0 7px;color:#a5c2e6}
  #nvpd .nvpd-new-form div{display:flex;gap:5px}
  #nvpd .nvpd-new-form input{width:100%;min-width:0;padding:8px;border-radius:8px;border:1px solid #3c618a;background:#07172b;color:white;font-size:12px}
  #nvpd .nvpd-new-form button{padding:6px 9px;background:#176ec5;border-radius:9px}
  #nvpd .nvpd-peer-list{overflow-y:auto;min-height:0;flex:1;scrollbar-color:#2f5a87 transparent;scrollbar-width:thin}
  #nvpd .nvpd-peer{display:flex;gap:11px;align-items:center;width:100%;padding:12px 9px;border:1px solid transparent;border-bottom-color:#24466a;background:transparent;text-align:left;border-radius:12px}
  #nvpd .nvpd-peer.active{background:linear-gradient(115deg,#117cbd88,#0e467d99);border:1px solid #198bd8;box-shadow:inset 0 1px #ffffff24}
  #nvpd .nvpd-peer-avatar,#nvpd .nvpd-avatar{height:44px;width:44px;border-radius:50%;background:linear-gradient(145deg,#6f8ffb,#416ad3);display:grid;place-items:center;color:#fff;font-weight:750;font-size:23px;flex-shrink:0}
  #nvpd .nvpd-peer-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
  #nvpd .nvpd-peer-name{font-weight:720;color:white;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #nvpd .nvpd-peer-preview{font-size:12px;color:#a9c1df;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #nvpd .nvpd-peer-time{font-size:11px;color:#b8cce7;align-self:flex-start;margin-left:auto}
  #nvpd .nvpd-empty{font-size:13px;line-height:1.5;color:#90aed0;padding:8px;margin:0}
  #nvpd .nvpd-main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse at 40% 54%,#0a2850aa,#081832 70%);padding:0;margin:0;border:0;border-radius:0;box-shadow:none}
  #nvpd .nvpd-head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(110deg,#10365d,#0b2345);border:1px solid #2c628f;border-radius:21px;margin:15px 17px 0;padding:12px 19px;min-height:79px;flex-shrink:0}
  #nvpd .nvpd-contact{display:flex;align-items:center;gap:12px;min-width:0}
  #nvpd .nvpd-contact strong{display:block;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #nvpd .nvpd-contact span:not(.nvpd-avatar){display:block;font-size:12px;color:#b5c7e0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #nvpd .nvpd-actions{display:flex;gap:8px}
  #nvpd .nvpd-tool{height:42px;width:44px;background:linear-gradient(150deg,#163e6c,#0b2448);border:1px solid #34649a;border-radius:13px;display:grid;place-items:center;color:#e8f5ff;font-size:24px}
  #nvpd .nvpd-tool svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
  #nvpd .nvpd-message-stage{position:relative;flex:1;min-height:0;overflow-y:auto;scrollbar-color:#315b82 transparent;scrollbar-width:thin;padding:22px 24px 20px}
  #nvpd #nvpd-messages{display:flex;flex-direction:column;gap:10px;justify-content:flex-start;min-height:min-content}
  #nvpd .nvpd-bubble{align-self:flex-start;max-width:min(68%,560px);min-width:74px;padding:9px 13px;border:1px solid #315879;border-radius:16px 16px 16px 5px;background:linear-gradient(125deg,#193d66,#142c4d);overflow-wrap:anywhere;white-space:pre-wrap;box-shadow:0 3px 10px #0003}
  #nvpd .nvpd-bubble.mine{align-self:flex-end;background:linear-gradient(130deg,#066fb2,#125487);border-color:#0c9ff4;border-radius:16px 16px 5px 16px}
  #nvpd .nvpd-bubble-content{display:block;font-size:14px;color:#f1f7ff}
  #nvpd .nvpd-bubble-meta{display:block;text-align:right;color:#a2beda;margin-top:4px;font-size:11px;line-height:1.1}
  #nvpd .nvpd-bubble.pending .nvpd-bubble-meta{color:#c4d8eb}
  #nvpd .nvpd-bubble.failed{border-color:#c88285}
  #nvpd .nvpd-retry{font-size:11px!important;padding:2px 7px!important;border-radius:6px;background:#7b3344;margin-top:5px!important}
  #nvpd .nvpd-chat-empty{color:#88abc9;position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);text-align:center;max-width:300px;font-size:14px;pointer-events:none}
  #nvpd .nvpd-chat-empty[hidden]{display:none}
  #nvpd .nvpd-compose{display:flex;align-items:center;gap:10px;margin:0 18px 20px;padding:11px;border-radius:20px;border:1px solid #3474a7;background:linear-gradient(110deg,#10355c,#0d2445);flex-shrink:0}
  #nvpd .nvpd-compose .nvpd-round{width:44px;height:44px;font-size:23px}
  #nvpd .nvpd-compose textarea{min-width:0;min-height:42px;max-height:140px;flex:1;resize:none;background:#071a36;border:1px solid #315e91;border-radius:17px;padding:11px 14px;color:#fff;outline:0;font-size:14px;line-height:20px;overflow-y:auto}
  #nvpd .nvpd-compose textarea:focus{border-color:#368ade}
  #nvpd .nvpd-compose .nvpd-send{font-size:23px}
  #nvpd .nvpd-notice{position:absolute;bottom:92px;left:50%;transform:translateX(-50%);max-width:500px;min-width:220px;border:1px solid #4675ab;background:#112d50;color:#fff;border-radius:12px;padding:10px 16px;text-align:center;box-shadow:0 10px 25px #0008;z-index:5;font-size:13px}
  #nvpd .nvpd-notice[hidden]{display:none}
}
@media (min-width:681px) and (max-width:1110px){
  #nvpd{grid-template-columns:75px 265px minmax(320px,1fr)}
  #nvpd .nvpd-logo{justify-content:center;padding:0}
  #nvpd .nvpd-logo>div,#nvpd .nvpd-navlinks button{font-size:0}
  #nvpd .nvpd-navlinks button{padding:8px 0}
  #nvpd .nvpd-navlinks button span{font-size:25px;margin:0}
  #nvpd .nvpd-identity>div{display:none}
  #nvpd .nvpd-identity{justify-content:center}
  #nvpd .nvpd-logout{font-size:10px;padding:8px 3px!important}
}
@media (prefers-reduced-motion:reduce){#nvpd *{transition:none!important}}


/* NVPM_MULTIDEVICE_V1 */
.nvpm-pair{border-color:#286c9c;max-width:720px}
.nvpm-pair-code{display:inline-block;border:1px solid #4080b5;border-radius:14px;background:#0b1d35;padding:16px 20px;font-family:ui-monospace,monospace;font-size:clamp(20px,3vw,28px);letter-spacing:.08em;color:#ecf7ff;font-weight:750}
@media(max-width:680px){.nvpm-pair{display:none!important}}

/* NVPM_ADMIN_RECORDS_V1: styles restricted to private admin console */
.nvpm-admin-records .nvpm-record-actions{min-width:250px;white-space:normal}
.nvpm-admin-records .nvpm-record-actions button{margin:3px 5px 3px 0;padding:9px 12px}
.nvpm-admin-records .danger-outline{color:#ffb7b7;background:rgba(156,43,61,.12);border-color:#b85866}
.nvpm-admin-records .danger-outline:hover{background:rgba(156,43,61,.24)}
.nvpm-admin-records dialog{position:fixed;max-width:min(520px,calc(100vw - 28px));width:100%;padding:24px;background:#141e30;border:1px solid #506989;border-radius:16px;color:#e7eefb;box-shadow:0 22px 75px rgba(0,0,0,.5)}
.nvpm-admin-records dialog::backdrop{background:rgba(0,0,0,.70)}
.nvpm-admin-records dialog input{min-width:0}
.nvpm-admin-records dialog p{font-size:13px}

/* NVPM_DESKTOP_MEDIA_V24_20261121 — crisp native typography, operable controls */
@media(min-width:681px){
 #nvpd{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:auto}
 #nvpd .nvpd-bubble-content{font-size:15px;line-height:1.48;font-weight:500;letter-spacing:0;color:#F5FAFF}
 #nvpd .nvpd-bubble-meta{font-size:12px;line-height:1.3;color:#C2D7EA;font-weight:500}
 #nvpd .nvpd-peer-name{font-size:14px;font-weight:700;color:#FAFCFF}
 #nvpd .nvpd-peer-preview,#nvpd .nvpd-peer-time{font-size:12px;color:#B9CCE4}
 #nvpd .nvpd-contact strong{font-size:18px;font-weight:700;color:#fff}
 #nvpd .nvpd-compose textarea{font-size:15px;font-weight:500;line-height:1.45;color:#fff}
 #nvpd .nvpd-compose .nvpd-mic{touch-action:none;user-select:none;cursor:grab;font-size:22px;order:2}
 #nvpd .nvpd-compose .nvpd-attach{order:0}
 #nvpd .nvpd-compose textarea{order:1}
 #nvpd .nvpd-compose .nvpd-send{order:3}
 #nvpd .nvpd-compose .nvpd-mic.recording{background:#C32646;color:#fff;border-color:#FF6785;box-shadow:0 0 0 4px #ED467030;cursor:grabbing}
 #nvpd .nvpd-media-open{display:block;margin:0;max-width:100%;word-break:break-word;white-space:normal;text-align:left;padding:9px 12px!important;border-radius:11px;border:1px solid #5085AC;background:#173960;color:#FFF;font-size:14px;font-weight:600;line-height:1.4}
 #nvpd .nvpd-media-open:hover{background:#21639A}
 #nvpd .nvpd-call-panel[hidden]{display:none!important}
 #nvpd .nvpd-call-panel{position:absolute;z-index:1200;inset:0;background:#031123D9;display:grid;place-items:center;padding:30px}
 #nvpd .nvpd-call-dialog{max-width:680px;width:min(100%,680px);padding:28px;border:1px solid #3674AA;border-radius:24px;background:linear-gradient(135deg,#12325B,#0A203B);box-shadow:0 22px 70px #0009;display:flex;flex-direction:column;gap:18px}
 #nvpd .nvpd-call-dialog>strong{font-size:23px;font-weight:750}
 #nvpd #nvpd-call-state{font-size:14px;color:#B8CFE7}
 #nvpd .nvpd-video-wrap{display:none;grid-template-columns:1fr 1fr;gap:12px;min-height:210px}
 #nvpd .nvpd-call-panel.video-call .nvpd-video-wrap{display:grid}
 #nvpd .nvpd-video-wrap video,#nvpd .nvpd-video-wrap canvas{min-width:0;width:100%;aspect-ratio:16/9;object-fit:cover;background:#030D20;border:1px solid #39668F;border-radius:14px}
 #nvpd .nvpd-call-buttons{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
 #nvpd .nvpd-call-buttons button{padding:11px 20px;border-radius:12px;color:#fff;background:#1264AC;border:1px solid #4685B8;font-weight:700}
 #nvpd #nvpd-call-accept{background:#07865E;border-color:#2CC19B}
 #nvpd #nvpd-call-decline,#nvpd #nvpd-call-hangup{background:#B52A46;border-color:#DD6580}
 #nvpd .nvpd-call-buttons button[hidden]{display:none!important}
}

/* Voice controls: stays mounted while the message list is rebuilt. */
@media(min-width:681px){
 #nvpd .nvpd-voice-bar[hidden]{display:none!important}
 #nvpd .nvpd-voice-bar{flex:0 0 auto;min-width:0;margin:0 12px 8px;padding:10px 13px;border:1px solid #315b86;border-radius:14px;background:#132c4a;color:#eef7ff}
 #nvpd .nvpd-voice-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px}
 #nvpd .nvpd-voice-head strong{font-weight:600}
 #nvpd #nvpd-voice-time-v21{color:#bed2e9;font-variant-numeric:tabular-nums;margin-left:auto;font-size:12px}
 #nvpd .nvpd-voice-close{background:transparent;color:#edf5ff;border:1px solid #547aa2;border-radius:8px;min-width:30px;min-height:30px;font-size:21px;cursor:pointer}
 #nvpd .nvpd-voice-bar audio{display:block;width:100%;height:45px;min-width:0;accent-color:#30c6b8}
}

/* Desktop v2.2: authenticated image preview; download only on explicit Save. */
@media(min-width:681px){
 #nvpd .nvpd-image-preview-v22[hidden]{display:none!important}
 #nvpd .nvpd-image-preview-v22{position:fixed;inset:0;z-index:3200;background:rgba(2,11,27,.93);display:grid;place-items:center;padding:20px;color:#ecf7ff}
 #nvpd .nvpd-image-dialog-v22{width:min(96vw,1200px);height:min(94vh,960px);min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #38628b;border-radius:18px;background:#08192e;box-shadow:0 24px 90px #000a}
 #nvpd .nvpd-image-toolbar-v22{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:11px 14px;border-bottom:1px solid #284e76}
 #nvpd .nvpd-image-toolbar-v22 strong{font-size:14px;font-weight:650;min-width:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}
 #nvpd .nvpd-image-toolbar-v22 button{background:#173454;border:1px solid #376b9b;border-radius:9px;color:#f7fbff;padding:7px 12px;cursor:pointer;min-height:36px;font-size:14px}
 #nvpd .nvpd-image-toolbar-v22 button:hover{background:#2765a1}
 #nvpd .nvpd-image-stage-v22{min-height:0;flex:1;overflow:hidden;display:flex;justify-content:center;align-items:center;background:#061224}
 #nvpd .nvpd-image-stage-v22 img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;user-select:none;transition:transform 80ms ease-out}
}


/* v2.3: text contrast and safe in-chat previews; no transforms on text. */
@media(min-width:681px){
 #nvpd{font-family:"Segoe UI Variable Text","Segoe UI",Arial,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
 #nvpd .nvpd-bubble-content{font-size:15.5px;line-height:1.52;font-weight:500;letter-spacing:0;color:#f6faff}
 #nvpd .nvpd-peer-name,#nvpd .nvpd-contact strong{color:#ffffff;font-weight:700;letter-spacing:0}
 #nvpd .nvpd-bubble-meta{color:#d2e3f3;font-size:12px;font-variant-numeric:tabular-nums}
 #nvpd .nvpd-peer-preview{color:#c2d6eb}
 #nvpd .nvpd-compose textarea{font-size:15.5px;color:#fff;font-weight:500}
 #nvpd .nvpd-image-stage-v22>*[hidden],#nvpd .nvpd-image-toolbar-v22 button[hidden]{display:none!important}
 #nvpd .nvpd-image-stage-v22 iframe{width:100%;height:100%;border:0;background:#f6f7fb}
 #nvpd .nvpd-image-stage-v22 video{display:block;max-width:100%;max-height:100%;object-fit:contain}
 #nvpd .nvpd-image-stage-v22 audio{width:min(90%,720px);accent-color:#23c6b7}
 #nvpd .nvpd-image-stage-v22 pre{max-width:100%;width:100%;height:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;font-size:14px;line-height:1.5;color:#edf6fe;background:#061224}
 #nvpd .nvpd-unpreviewable{max-width:600px;text-align:center;font-size:15px;line-height:1.6;padding:20px;color:#c9d9ef}
}

/* v2.4 — thumbnail cards, quoted replies, clickable call diagnostics. */
@media(min-width:681px){
 #nvpd .nvpd-bubble{position:relative}
 #nvpd .nvpd-image-card-v24{display:block;cursor:zoom-in;text-align:left;background:#0c2544;border:1px solid #437ca9;border-radius:12px;padding:0;overflow:hidden;max-width:min(390px,55vw);min-width:160px;color:#edf8ff}
 #nvpd .nvpd-image-card-v24 img{display:block;width:100%;max-height:300px;object-fit:contain;background:#061426}
 #nvpd .nvpd-image-card-v24 img[hidden]{display:none!important}
 #nvpd .nvpd-image-fallback-v24{display:block;padding:10px 12px;font-size:12.5px;overflow-wrap:anywhere;color:#c9e4f7}
 #nvpd .nvpd-image-card-v24:hover{border-color:#66c4ed}
 #nvpd .nvpd-reply-action-v24{display:block;margin:7px 0 0 auto;background:transparent;color:#aac9e9;border:0;font-size:11.5px;cursor:pointer;padding:2px 5px;text-decoration:underline;text-underline-offset:2px}
 #nvpd .nvpd-reply-action-v24:hover{color:white}
 #nvpd .nvpd-reply-preview-v24[hidden]{display:none!important}
 #nvpd .nvpd-reply-preview-v24{margin:0 10px 7px;padding:9px 12px;border:1px solid #4486b6;border-left:3px solid #35c8b5;background:#122d4f;color:#e8f5ff;border-radius:9px;display:flex;align-items:center;gap:12px;font-size:12px;min-width:0}
 #nvpd .nvpd-reply-preview-v24>div{display:flex;flex-direction:column;min-width:0;overflow:hidden;gap:3px}
 #nvpd .nvpd-reply-preview-v24 strong{font-size:12px}
 #nvpd .nvpd-reply-source-v24{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#bbd4eb}
 #nvpd .nvpd-reply-preview-v24 button{margin-left:auto;background:none;color:white;border:1px solid #567c9e;border-radius:8px;min-width:30px;min-height:30px;cursor:pointer}
 #nvpd .nvpd-quoted-line-v24{display:block;max-width:100%;font-size:12px;line-height:1.35;color:#d4e9f7;padding:5px 9px;margin-bottom:7px;border-left:3px solid #38c8b5;border-radius:5px;background:#0a203e;overflow-wrap:anywhere}
 #nvpd .nvpd-head .nvpd-actions button[data-call-state=connecting]{border-color:#26c0b6}
 #nvpd .nvpd-head .nvpd-actions button:disabled{opacity:.46;cursor:not-allowed}
}

/* NVPM C.0.4: hide legacy connection indicator */
#nvpd #nvpd-led { display: none !important; }


/* NVPM_C06_DYNAMIC_LOCALE_REPLY_20261127: visual Reply treatment only */
#nvpd .nvpd-reply-action-v24{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:2px 3px!important;
  border-radius:5px!important;
  color:rgba(218,237,255,.77)!important;
  text-decoration:none!important;
  font-size:11px!important;
  font-weight:500!important;
}
#nvpd .nvpd-reply-action-v24:hover,
#nvpd .nvpd-reply-action-v24:focus-visible{
  color:#fff!important;
  background:rgba(255,255,255,.10)!important;
  text-decoration:underline!important;
}
#nvpd .nvpd-reply-action-v24:focus-visible{outline:2px solid #8cc7f7!important;outline-offset:2px!important}

/* NVPM_C08_STREAM_UI_CLEANUP_20261127: retain live telemetry DOM, hide duplicate call summary */
#nvpd #nvpd-v264-flow-brief{display:none!important}

/* NVPM_C010_CALL_OVERLAY_BORDER_20261127: strip inherited generic <section> frame
   from the fullscreen transparent overlay only; preserve .nvpd-call-dialog. */
#nvpd #nvpd-call-panel {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
