/* Share a night (js/nightshift-share.jsx). The row is quiet on purpose:
   eight monochrome glyphs in the haze colour, no fill, no badge, no
   motion. A glyph takes its platform's colour only under the pointer or
   the keyboard — the card stays the night's, not the networks'. */

.nss-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nss-bar-label {
  font-family: var(--nsf-mono, 'JetBrains Mono', monospace); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--nsf-haze, #8E9DBE); opacity: .7; margin-right: 6px;
}
.nss-btn {
  --b: var(--nsf-bone, #E8E4DA);
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--nsf-haze, #8E9DBE); opacity: .78;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, opacity .15s ease;
}
.nss-btn:hover, .nss-btn:focus-visible {
  opacity: 1; color: var(--b); outline: none;
  border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05);
  border-color: color-mix(in srgb, var(--b) 45%, transparent);
  background: color-mix(in srgb, var(--b) 10%, transparent);
}
.nss-linkedin { --b: #3d8fe0; } .nss-x { --b: #e7e9ea; } .nss-instagram { --b: #e1306c; } .nss-tiktok { --b: #25f4ee; }
.nss-youtube { --b: #ff3355; } .nss-facebook { --b: #3b8cf5; } .nss-gmail { --b: #ea4335; } .nss-email { --b: #c9d2e6; }
@media (prefers-reduced-motion: reduce) { .nss-btn { transition: none; } }

/* where the row sits */
.nsf-share-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.nsl-sheet-share { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.nsl-sheet-share-lead { font-size: 12px; color: var(--nsf-haze, #8E9DBE); margin-bottom: 8px; }

/* ── the sheet ─────────────────────────────────────────────────── */
.nss-overlay { z-index: 70; }
.nss-sheet {
  --nss-brand: var(--nsf-bone, #E8E4DA);
  width: min(460px, 100%); max-height: calc(100dvh - 48px); overflow: auto;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px;
  background: rgba(11, 14, 23, 0.98); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: var(--nsf-bone, #E8E4DA); font-family: var(--nsf-sans, 'Inter Tight', system-ui, sans-serif); font-size: 13px;
}
.nss-head { display: flex; align-items: center; gap: 8px; }
.nss-head-glyph { color: var(--nss-brand); display: inline-grid; place-items: center; }
.nss-title { font-weight: 600; font-size: 14px; white-space: nowrap; }
.nss-switch { display: inline-flex; gap: 2px; margin-left: auto; }
.nss-mini {
  width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: transparent;
  color: var(--nsf-haze, #8E9DBE); opacity: .55; display: inline-grid; place-items: center; cursor: pointer;
}
.nss-mini:hover, .nss-mini:focus-visible { opacity: 1; color: var(--nsf-bone, #E8E4DA); outline: none; background: rgba(255, 255, 255, 0.06); }
.nss-close { background: none; border: 0; color: var(--nsf-haze, #8E9DBE); cursor: pointer; font: inherit; padding: 2px 4px; margin-left: 4px; }
.nss-close:hover { color: var(--nsf-bone, #E8E4DA); }

.nss-err { font-size: 12px; color: #E48A98; background: rgba(212, 87, 107, 0.1); border: 1px solid rgba(212, 87, 107, 0.3); border-radius: 6px; padding: 6px 8px; }
.nss-loading { font-family: var(--nsf-mono, monospace); font-size: 11px; color: var(--nsf-haze, #8E9DBE); padding: 24px 0; text-align: center; }

.nss-preview {
  position: relative; width: 100%; margin: 0 auto;
  background: #0B0E1A; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
}
.nss-preview.tall { width: auto; height: 240px; }
.nss-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nss-shimmer { width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02)); background-size: 200% 100%; animation: nssShimmer 1.4s linear infinite; }
@keyframes nssShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .nss-shimmer { animation: none; } }
.nss-badge, .nss-rendering {
  position: absolute; left: 8px; bottom: 8px; font-family: var(--nsf-mono, monospace); font-size: 10px;
  padding: 2px 6px; border-radius: 4px; background: rgba(2, 2, 2, 0.7); color: var(--nsf-bone, #E8E4DA);
}
.nss-rendering { left: auto; right: 8px; color: var(--nsf-haze, #8E9DBE); }

.nss-formats { display: flex; flex-wrap: wrap; gap: 6px; }
.nss-chip {
  font: inherit; font-size: 11px; padding: 4px 9px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--nsf-haze, #8E9DBE); border: 1px solid rgba(255, 255, 255, 0.1);
}
.nss-chip:hover:not(:disabled), .nss-chip:focus-visible { color: var(--nsf-bone, #E8E4DA); border-color: rgba(255, 255, 255, 0.28); outline: none; }
.nss-chip.on { color: var(--nsf-bone, #E8E4DA); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); border-color: color-mix(in srgb, var(--nss-brand) 60%, transparent); background: color-mix(in srgb, var(--nss-brand) 12%, transparent); }
.nss-chip:disabled { opacity: .4; cursor: not-allowed; }
.nss-best { color: var(--nsf-haze, #8E9DBE); }

.nss-input, .nss-text {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 12.5px; color: var(--nsf-bone, #E8E4DA);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 7px 9px;
}
.nss-input:focus, .nss-text:focus { outline: none; border-color: rgba(255, 255, 255, 0.3); }
.nss-caption { position: relative; }
.nss-text { resize: vertical; line-height: 1.45; font-size: 12.5px; display: block; }
.nss-count { display: block; text-align: right; margin-top: 3px; font-family: var(--nsf-mono, monospace); font-size: 10px; color: var(--nsf-haze, #8E9DBE); opacity: .8; }
.nss-count.over { color: #E48A98; opacity: 1; }

.nss-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nss-go {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: 8px; border: 0;
  background: var(--nsf-bone, #E8E4DA); color: #000;
}
.nss-go:hover:not(:disabled) { background: #fff; }
.nss-go:disabled { opacity: .55; cursor: progress; }
.nss-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--nsf-haze, #8E9DBE); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(142, 157, 190, 0.35); text-underline-offset: 3px; }
.nss-link:hover:not(:disabled) { color: var(--nsf-bone, #E8E4DA); }
.nss-link:disabled { opacity: .5; cursor: default; }

.nss-steps, .nss-done { font-size: 11.5px; line-height: 1.5; color: var(--nsf-haze, #8E9DBE); }
.nss-done { color: var(--nsf-supported, #5FBFA8); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.nss-done-err { color: #E48A98; }

.nss-foot { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.nss-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nss-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nsf-haze, #8E9DBE); cursor: pointer; }
.nss-prof { display: flex; flex-direction: column; gap: 6px; }
.nss-prof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nss-prof-acts { display: flex; align-items: center; gap: 10px; }
.nss-hint { font-size: 11px; color: var(--nsf-haze, #8E9DBE); margin-right: auto; }
.nss-disclose { font-size: 10.5px; line-height: 1.45; color: var(--nsf-haze, #8E9DBE); opacity: .75; }

@media (max-width: 520px) {
  .nss-sheet { border-radius: 12px 12px 0 0; align-self: flex-end; }
  .nss-switch { display: none; }
  .nss-prof-row { grid-template-columns: 1fr; }
}
