/* Scoped NexFrag expansion styles: works alongside the existing site stylesheet. */
.nfx-page{max-width:1150px;margin:0 auto;padding-bottom:46px;display:grid;gap:17px}
.nfx-heading{padding:22px 25px;border:1px solid rgba(77,214,131,.17);border-radius:19px;background:linear-gradient(115deg,rgba(32,173,94,.10),transparent 70%),var(--panel,#171b24)}
.nfx-heading h1{font-size:clamp(24px,3.8vw,35px);margin:6px 0 8px}.nfx-heading p{color:var(--muted,#a0a9bc);margin:0 0 12px}.nfx-heading>a{display:block;color:#81dda9;margin-bottom:12px}
.nfx-kicker{color:#77dca1;font-size:10px;font-weight:900;letter-spacing:.17em}
.nfx-inline{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.nfx-inline select,.nfx-inline input{flex:1 1 190px;min-width:0}
.nfx-balance{display:inline-flex;align-items:baseline;gap:9px;font-size:28px;font-weight:900;color:#87ebac}.nfx-balance small{font-size:12px;color:var(--muted,#a0a9bc)}
.nfx-chips{display:flex;gap:7px;flex-wrap:wrap}.nfx-chip{display:inline-flex;padding:5px 9px;border:1px solid rgba(81,212,139,.22);border-radius:20px;background:rgba(70,208,131,.075);color:#8adfab;font-size:11px;font-weight:800;text-transform:capitalize}
.nfx-goal{display:grid;gap:11px}.nfx-goal-top{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.nfx-progress{height:12px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.09)}.nfx-progress i{display:block;height:100%;background:linear-gradient(90deg,#43b675,#99e6a8);border-radius:inherit}
.nfx-readable{white-space:normal;line-height:1.65;overflow-wrap:anywhere}.nfx-review{padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:13px;margin:10px 0}.nfx-review p{overflow-wrap:anywhere}.nfx-review form{display:grid;gap:11px}
.nfx-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin:17px 0}.nfx-codes code{padding:13px;border-radius:9px;background:#0e1521;border:1px dashed #477a61;text-align:center;color:#a1eac0}
/* DM visual overhaul: preserve old message, file attachment and voice hooks */
.nfx-dm-layout{display:grid!important;grid-template-columns:minmax(205px,285px) minmax(0,1fr)!important;gap:0!important;min-height:min(78vh,850px);overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:19px;background:var(--panel,#161b23);box-shadow:0 16px 48px rgba(0,0,0,.18)}
.nfx-dm-layout .channel-pane{border:0;border-right:1px solid rgba(255,255,255,.08);padding:17px 11px;min-width:0;background:linear-gradient(180deg,rgba(51,173,108,.055),transparent 34%)}
.nfx-dm-layout .channel-pane h3{padding:0 11px;margin:6px 0 16px;font-size:17px}.nfx-dm-layout .channel-link{border-radius:11px;padding:12px!important;margin:3px 0;text-decoration:none;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background .15s}
.nfx-dm-layout .channel-link:hover,.nfx-dm-layout .channel-link.is-current{background:rgba(95,214,126,.12);color:#a3f0bb}
.nfx-dm-layout .chat-pane{display:flex;flex-direction:column;min-width:0;min-height:550px;border:0;overflow:hidden}
.nfx-dm-layout .nf-dm-call-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 19px;min-height:72px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(13,18,25,.45);flex:0 0 auto}
.nfx-dm-layout .nf-dm-call-bar b{font-size:14px}.nfx-dm-layout .nf-voice-phone{flex:0 0 auto;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#237c4a;border:1px solid rgba(123,246,158,.33);color:white;cursor:pointer}
.nfx-dm-layout .nf-voice-phone:hover{background:#31995d}
.nfx-dm-layout .dm-messages{flex:1;overflow-y:auto;min-height:300px;padding:17px 19px;display:flex;flex-direction:column;gap:12px;scrollbar-color:#435449 transparent}
.nfx-dm-layout .dm-messages .message{display:flex;gap:12px;max-width:100%;border-radius:12px;padding:9px 12px;transition:background .15s}
.nfx-dm-layout .dm-messages .message:hover{background:rgba(255,255,255,.035)}.nfx-dm-layout .message-body{min-width:0;overflow-wrap:anywhere}.nfx-dm-layout .message-body p{margin:6px 0 3px;line-height:1.55}
.nfx-dm-layout .dm-compose{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:13px;border-top:1px solid rgba(255,255,255,.09);background:rgba(12,15,22,.48)}
.nfx-dm-layout .dm-compose .input{flex:1;min-width:120px;border-radius:12px}.nfx-dm-layout .composer-plus{flex:0 0 40px;width:40px;height:40px;border-radius:11px}.nfx-dm-layout .attachment-draft{flex:1 1 100%;order:4}
.nfx-dm-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.nfx-dm-head h1{margin:0;font-size:26px}.nfx-dm-head p{color:var(--muted,#9ea6b5);font-size:12px;margin:4px 0 0}
.nfx-dm-search{width:100%;min-width:0;padding:9px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.11);background:rgba(0,0,0,.14);color:inherit;margin-bottom:12px}
.nfx-diagnostics{font-size:11px;flex:1 1 100%;max-width:100%;margin:9px 0 0}.nfx-diagnostics summary{color:#96e6b0;cursor:pointer}.nfx-diag-grid{display:grid;grid-template-columns:minmax(110px,1fr) minmax(110px,2fr);gap:9px;margin-top:10px}.nfx-diag-grid span{color:#a5acb6}.nfx-diag-grid strong{overflow-wrap:anywhere;font-size:11px}
@media(max-width:720px){.nfx-dm-layout{grid-template-columns:1fr!important}.nfx-dm-layout .channel-pane{border-right:0;border-bottom:1px solid rgba(255,255,255,.08);max-height:215px;overflow-y:auto}.nfx-dm-layout .chat-pane{min-height:470px}.nfx-dm-head{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.nfx-dm-layout *{transition:none!important}}

.nfx-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:0 auto 14px;max-width:1150px}.nfx-shortcuts a{border:1px solid rgba(255,255,255,.085);border-radius:999px;padding:7px 12px;background:rgba(92,192,130,.07);font-size:11px;color:#b7d7bf;text-decoration:none}.nfx-shortcuts a:hover{background:rgba(68,201,119,.19);color:white}

.nfx-dm-layout .channel-link[hidden]{display:none!important}
