/* ntwrkk · live layer styles (Phase 1) */

/* Boot: hide the app until the member's own data has loaded, so sample data never flashes. */
.nk-loader { display: none; }
.nk-boot .app, .nk-boot .dock { visibility: hidden; }
.nk-boot .nk-loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 50; }
.nk-loader img { width: 44px; height: 44px; animation: nk-pulse 1.4s ease-in-out infinite; }
@keyframes nk-pulse { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nk-loader img { animation: none; } }

/* Real profile photos inside avatars. */
.av { overflow: hidden; }
.av > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Preview note on areas that open in a later phase. */
.nk-preview { margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  background: color-mix(in srgb, var(--nk-signal, #0563FD) 9%, transparent); color: var(--fg-2, inherit); }
.nk-preview b { color: var(--nk-signal, #0563FD); margin-right: 6px; }

/* Requests waiting for you on a Portfolio (vouch, recommendation, approval). */
.live-ask { margin: 0 0 16px; padding: 6px 16px; }
.live-ask .setr { gap: 16px; }
.live-ask .acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .live-ask .setr { flex-direction: column; align-items: flex-start; } }

/* Real QR code. */
.qr-real { display: block; width: 168px; height: 168px; margin: 0 auto 12px; background: #fff; border-radius: 12px; padding: 6px; }
.qr-real svg { width: 100%; height: 100%; display: block; }

/* Download as PDF: print just the Portfolio. */
@media print {
  .nk-print .rail, .nk-print .top, .nk-print .sheet-root, .nk-print .toasts, .nk-print .dock, .nk-print .nk-preview,
  .nk-print .live-ask, .nk-print button, .nk-print .tabsx, .nk-print .edbar { display: none !important; }
  .nk-print body, .nk-print .app, .nk-print .stage { background: #fff !important; color: #000 !important; display: block !important; margin: 0 !important; padding: 0 !important; }
  .nk-print .pn, .nk-print .cd { box-shadow: none !important; border: 1px solid #ddd !important; background: #fff !important; break-inside: avoid; }
  .nk-print * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* Real post attachments */
.pmedia .pimg { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; margin-top: 4px; background: rgba(0,0,0,.04); }
.pmedia video.pimg { object-fit: contain; background: #000; }

/* Site banner and read-only notice (set in the admin portal), and the test-account badge. */
#nk-site { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(640px, calc(100vw - 32px)); }
#nk-site > * { pointer-events: auto; }
.nk-banner { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4;
  background: var(--sheet-bg, #fff); color: var(--ink, #111); box-shadow: 0 8px 30px rgba(4, 10, 30, .18), inset 0 0 0 1px var(--sep, rgba(0,0,0,.08)); }
.nk-banner span { flex: 1; }
.nk-banner.warn { box-shadow: 0 8px 30px rgba(4, 10, 30, .18), inset 0 0 0 1.5px #E8A33D; }
.nk-banner .lk .ic { width: 16px; height: 16px; }
.nk-testpill { position: fixed; top: 0; left: 0; z-index: 60; padding: 3px 10px 4px 8px; border-radius: 0 0 10px 0; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: #E8A33D; color: #1a1205; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nk-testpill::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: #E8A33D; pointer-events: none; }
@media (max-width: 760px) { #nk-site { bottom: 84px; } }
.nk-tp-s { display: none; }
@media (max-width: 760px) { .nk-tp-l { display: none; } .nk-tp-s { display: inline; } .nk-testpill { padding: 1px 7px 2px 5px; font-size: 10px; } }

/* Membership: limits with usage meters. */
.nk-lim { align-items: center; }
.nk-use { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 140px; }
.nk-use small { color: var(--ink3, #777); font-size: 12px; }
.nk-meter { display: block; width: 140px; height: 6px; border-radius: 99px; background: var(--well, rgba(0,0,0,.08)); overflow: hidden; }
.nk-meter i { display: block; height: 100%; border-radius: inherit; background: #0563FD; }
.nk-meter.near i { background: #E8A33D; } .nk-meter.full i { background: #D64545; }
@media (max-width: 640px) { .nk-lim { flex-direction: column; align-items: flex-start; } .nk-use { align-items: flex-start; } }
select.inp[disabled] { opacity: .55; cursor: not-allowed; }

/* Attachments (live7.js): photo galleries, video, PDF cards, link cards, viewers. */
.nk-media { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.nk-gal { display: grid; gap: 4px; border-radius: 18px; overflow: hidden; }
.nk-gal.n1 { grid-template-columns: 1fr; }
.nk-gal.n2 { grid-template-columns: 1fr 1fr; }
.nk-gal.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.nk-gal.n3 .nk-gi:first-child { grid-row: span 2; }
.nk-gal.n4 { grid-template-columns: 1fr 1fr; }
.nk-gi { position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: rgba(0,0,0,.05); aspect-ratio: 4 / 3; overflow: hidden; }
.nk-gal.n1 .nk-gi { aspect-ratio: auto; max-height: 520px; }
.nk-gal.n3 .nk-gi { aspect-ratio: auto; min-height: 140px; }
.nk-gi img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.nk-gi:hover img { transform: scale(1.02); }
.nk-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,10,30,.5); color: #fff; font-size: 28px; font-weight: 700; }
.nk-vid { width: 100%; max-height: 560px; border-radius: 18px; background: #000; display: block; }
.nk-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--well, rgba(0,0,0,.05)); }
.nk-doc-i { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 8px; background: #D64545; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.nk-doc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nk-doc-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-doc-t small { color: var(--ink3, #6B7280); font-size: 12.5px; }
.nk-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--well, rgba(0,0,0,.05)); color: inherit; text-decoration: none; }
.nk-link span { display: flex; flex-direction: column; min-width: 0; } .nk-link small { color: var(--ink3, #6B7280); font-size: 12.5px; }
.nk-view img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 12px; }
.nk-pdf object { display: block; width: 100%; height: min(72vh, 900px); border: 0; border-radius: 12px; background: #fff; }
.sh:has(.nk-pdf), .sh:has(.nk-view) { width: min(960px, 96vw); max-width: min(960px, 96vw); }
@media (max-width: 640px) { .nk-doc { flex-wrap: wrap; } .nk-gal.n3 { grid-template-columns: 1fr 1fr; } .nk-gal.n3 .nk-gi:first-child { grid-row: auto; grid-column: span 2; } }
