/* Northpoint Dynamics website (index.html): top bar with tabs, one section per tab. */
.landing.site { justify-content: flex-start; max-width: 1180px; gap: 0; padding: 0 24px 20px; }

/* ---------- top bar ---------- */
.np-nav {
  position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 18px;
  margin: 12px 0 26px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(var(--surface-rgb), .62); border: 1px solid rgba(var(--hud2-rgb), .16);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.np-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 19px var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.np-brand b { font-weight: 700; }
.np-brand span { color: var(--text-soft); }
.np-brand img { filter: drop-shadow(0 0 10px rgba(var(--hud-rgb), .35)); }
.np-tabs { position: relative; display: flex; gap: 4px; margin: 0 auto; }
.np-tabs a {
  position: relative; z-index: 1; padding: 9px 14px; border-radius: 10px; color: var(--text-soft); text-decoration: none;
  font: 600 14px var(--display); letter-spacing: .14em; text-transform: uppercase; transition: color .2s, background .2s;
}
.np-tabs a:hover { color: var(--text); background: rgba(var(--hud2-rgb), .07); }
.np-tabs a.active { color: #fff; }
/* the glowing underline that glides to the active tab */
.np-ink {
  position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hud), transparent); box-shadow: 0 0 12px var(--hud);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1);
}
.np-signin { flex: none; }

/* ---------- pages ---------- */
.np-pages { flex: 1; }
.np-page { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.np-page.in { opacity: 1; transform: none; }
.np-page h2 { font: 700 clamp(30px, 4.2vw, 46px)/1.08 var(--display); letter-spacing: .02em; margin: 6px 0 14px; }
.np-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--hud); font: 700 13px var(--display); letter-spacing: .22em; text-transform: uppercase; }
.np-live { width: 8px; height: 8px; border-radius: 50%; background: #3fd07a; box-shadow: 0 0 10px #3fd07a; animation: np-blink 1.6s ease-in-out infinite; }
@keyframes np-blink { 50% { opacity: .35; } }
.np-lead { color: var(--text-soft); font-size: 17px; line-height: 1.6; max-width: 640px; }

/* ---------- home ---------- */
.np-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; min-height: min(62vh, 560px); }
.np-hero h1 { font: 700 clamp(40px, 6vw, 72px)/1.02 var(--display); letter-spacing: .01em; margin: 14px 0 18px; }
.np-hero h1 em {
  font-style: normal; background: linear-gradient(90deg, #6fd3ff, #46a2ff 45%, #ff7a52); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.np-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.np-join { display: flex; gap: 8px; }
.np-join input { width: 150px; height: 48px; text-transform: uppercase; letter-spacing: .14em; font: 600 15px var(--display); }
.np-join .btn { height: 48px; }

/* the radio console */
.np-console {
  position: relative; border-radius: 18px; padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(14, 26, 44, .82), rgba(var(--surface-rgb), .9)); border: 1px solid rgba(var(--hud2-rgb), .2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--hud-rgb), .05), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.np-console::before, .np-console::after { /* HUD corner brackets */
  content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--hud); opacity: .7;
}
.np-console::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.np-console::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.np-console-head { display: flex; align-items: center; gap: 10px; color: #9fb6cf; font: 700 13px var(--display); letter-spacing: .18em; }
.np-rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #ff6b5e; }
.np-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; animation: np-blink 1.2s infinite; }
.np-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin: 14px 0 10px; }
.np-wave i { flex: 1; height: 3px; border-radius: 2px; background: rgba(var(--hud-rgb), .35); transition: height .15s; }
.np-wave.talk i { animation: np-bar .5s ease-in-out infinite alternate; background: var(--hud); box-shadow: 0 0 6px rgba(var(--hud-rgb), .6); }
.np-wave.talk i:nth-child(3n) { animation-delay: -.2s; }
.np-wave.talk i:nth-child(3n + 1) { animation-delay: -.35s; }
.np-wave.talk i:nth-child(4n) { animation-duration: .38s; }
@keyframes np-bar { from { height: 4px; } to { height: 30px; } }
.np-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 230px; font: 14px/1.45 var(--mono, 'JetBrains Mono', monospace); }
.np-log li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; color: #d6e4f3; animation: np-in .35s ease; }
.np-log li:not(:last-child) { opacity: .55; }
.np-log b { color: var(--accent-2); font-weight: 600; letter-spacing: .04em; }
.np-log li:last-child span::after { content: '_'; color: var(--hud); animation: np-blink .8s steps(1) infinite; }
@keyframes np-in { from { opacity: 0; transform: translateY(6px); } }

.np-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 10px; }
.np-feature {
  position: relative; padding: 22px; border-radius: 16px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.np-feature:hover { transform: translateY(-3px); border-color: rgba(var(--hud-rgb), .4); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.np-feature svg { width: 34px; height: 34px; fill: none; stroke: var(--hud); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(var(--hud-rgb), .4)); }
.np-feature h3 { font: 700 20px var(--display); letter-spacing: .04em; margin: 12px 0 8px; }
.np-feature p { color: var(--text-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- products ---------- */
.np-product { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 10px; }
.np-cz-logo { width: min(300px, 70vw); filter: drop-shadow(0 0 24px rgba(60, 160, 255, .3)); }
.np-modules { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 36px; }
.np-module { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; color: var(--text); text-decoration: none; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.np-module h3 { font: 700 26px var(--display); letter-spacing: .1em; text-transform: uppercase; margin: 2px 0; }
.np-module p { color: var(--text-soft); margin: 0; line-height: 1.5; }
.np-module ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-soft); line-height: 1.7; font-size: 14.5px; }
.np-module:not(.live) { opacity: .62; }
.np-module.live { border-color: rgba(236, 52, 44, .5); box-shadow: 0 0 0 1px rgba(236, 52, 44, .15), 0 18px 50px rgba(236, 52, 44, .12); transition: transform .25s, box-shadow .25s; }
.np-module.live:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(236, 52, 44, .4), 0 22px 60px rgba(236, 52, 44, .22); }
.np-module.live img { filter: drop-shadow(0 0 14px rgba(236, 52, 44, .45)); }
.np-tag { align-self: flex-start; font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.np-tag.live { border-color: rgba(63, 208, 122, .5); color: #7ee2a8; }
.np-go { margin-top: auto; padding-top: 8px; color: var(--accent-2); font: 700 14px var(--display); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- about ---------- */
.np-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; margin-top: 10px; }
.np-about p { color: var(--text-soft); line-height: 1.65; }
.np-values { display: grid; gap: 12px; }
.np-values div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); border-left: 3px solid var(--hud); }
.np-values b { font: 700 17px var(--display); letter-spacing: .06em; }
.np-values span { color: var(--text-soft); font-size: 14.5px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.np-faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin-top: 18px; }
.np-faq details { border-radius: 14px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); transition: border-color .2s; }
.np-faq details[open] { border-color: rgba(var(--hud-rgb), .4); }
.np-faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font: 700 18px var(--display); letter-spacing: .04em; display: flex; justify-content: space-between; gap: 12px; }
.np-faq summary::-webkit-details-marker { display: none; }
.np-faq summary::after { content: '+'; color: var(--hud); font-size: 22px; line-height: 1; transition: transform .25s; }
.np-faq details[open] summary::after { transform: rotate(45deg); }
.np-faq p { margin: 0; padding: 0 20px 18px; color: var(--text-soft); line-height: 1.6; }

/* ---------- contact ---------- */
.np-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin-top: 24px; }
.np-contact-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.np-contact-item span { color: var(--hud); font: 700 12px var(--display); letter-spacing: .2em; text-transform: uppercase; }
.np-contact-item b { font: 600 18px var(--font); color: var(--text); }

.np-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(var(--hud2-rgb), .1); }
.np-copy { color: var(--muted); font-size: 12.5px; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .np-hero, .np-about, .np-product { grid-template-columns: 1fr; }
  .np-hero { min-height: 0; gap: 28px; }
  .np-features, .np-modules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .landing.site { padding: 0 14px 16px; }
  .np-nav { flex-wrap: wrap; gap: 8px 12px; top: 8px; padding: 10px 12px; }
  .np-brand { font-size: 16px; }
  .np-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .np-tabs::-webkit-scrollbar { display: none; }
  .np-tabs { justify-content: space-between; }
  .np-tabs a { padding: 8px 6px; font-size: 12.5px; letter-spacing: .06em; }
  .np-signin { margin-left: auto; }
  .np-contact { grid-template-columns: 1fr; }
  .np-log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-page, .np-ink, .np-feature, .np-module { transition: none; }
  .np-wave.talk i, .np-live, .np-rec i { animation: none; }
}

/* ---------- signed in: account chip, library, account page (site-account.js) ---------- */
.np-acct-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid rgba(var(--hud2-rgb), .3);
  color: var(--text); text-decoration: none; font: 600 14px var(--font); background: rgba(var(--surface-rgb), .6); max-width: 220px; }
.np-acct-chip:hover { border-color: var(--hud); }
.np-acct-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2b7bd6, #46c8ff); color: #04121f; font: 700 12px var(--display); flex: none; }
.np-dialog { width: min(480px, calc(100% - 24px)); }
.np-dialog.wide { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
.np-dialog h3 { margin: 0 0 8px; }
.np-dialog input, .np-dialog select, .np-dialog textarea { width: 100%; }
.np-error { color: #ff8a7a; font-size: 13px; min-height: 18px; margin-top: 8px; }
.np-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30000; padding: 10px 16px; border-radius: 10px; background: var(--field);
  border: 1px solid rgba(var(--hud-rgb), .45); color: var(--text-hi); font: 14px var(--font); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .5s; max-width: calc(100% - 32px); }
.np-toast.warn { border-color: #ffb454; }
.np-toast.out { opacity: 0; }

.lib-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lib-bar input[type=search] { flex: 1 1 280px; font-size: 16px; padding: 12px 14px; }
.lib-bar select { flex: 0 0 auto; }
.lib-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 6px; }
.lib-types button { border: 1px solid rgba(var(--hud2-rgb), .2); background: rgba(var(--surface-rgb), .6); color: var(--muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 600 13px var(--font); }
.lib-types button.on { color: #04121f; background: var(--hud); border-color: var(--hud); }
.lib-mine { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; text-transform: none; letter-spacing: 0; font: 500 13px var(--font); color: var(--text); }
.lib-count { font-size: 13px; margin: 6px 0 10px; min-height: 18px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.lib-card { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; color: var(--text);
  background: rgba(var(--surface-rgb), .7); border: 1px solid rgba(var(--hud2-rgb), .14); transition: border-color .2s, transform .2s; font: inherit; }
.lib-card:hover { border-color: var(--hud); transform: translateY(-2px); }
.lib-thumb { height: 140px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(43, 123, 214, .25), rgba(var(--accent-rgb), .12)); }
.lib-thumb { position: relative; overflow: hidden; }
.lib-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-icon { font-size: 44px; opacity: .85; }
.lib-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.lib-meta b { font-size: 15px; }
.lib-type { align-self: flex-start; font: 700 10.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ff9a6b; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lib-tags i { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(var(--hud-rgb), .1); color: var(--hud-soft); }
.lib-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); border: 1px dashed rgba(var(--hud2-rgb), .2); border-radius: 14px; }
.small { font-size: 12.5px; }
.item-photo { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #000; }
.item-box { padding: 14px; border-radius: 10px; background: rgba(var(--hud-rgb), .06); border: 1px solid rgba(var(--hud-rgb), .2); }
.item-list { margin: 0; padding: 12px 14px 12px 34px; border-radius: 10px; background: rgba(var(--hud-rgb), .06); line-height: 1.7; }
.item-desc { white-space: pre-wrap; color: var(--text-soft); }
.item-actions { gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn.danger { border-color: #ff6b6b; color: #ffb3b3; }

.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 16px; border-bottom: 1px solid rgba(var(--hud2-rgb), .15); }
.acct-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 14px; cursor: pointer; font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.acct-tabs button.on { color: var(--hud); border-bottom-color: var(--hud); }
.acct-card { max-width: 640px; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 14px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.acct-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.acct-row span { color: var(--muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acct-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font: 500 14px var(--font); color: var(--text); }
.acct-h3 { margin: 26px 0 0; font: 700 18px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.acct-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.acct-dl { display: grid; grid-template-columns: 150px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.plans p { margin: 6px 0 0; }
@media (max-width: 720px) {
  .np-acct-chip { max-width: 150px; }
  .acct-dl { grid-template-columns: 1fr auto; }
  .lib-mine { margin-left: 0; }
}
.lib-bar > * { width: auto; margin: 0; }
.lib-bar input[type=search] { min-width: 0; }
.lib-bar select { flex: 0 0 180px; }
.lib-bar .btn { flex: none; }
.np-acct-chip.active, body .np-acct-chip[aria-current] { border-color: var(--hud); box-shadow: 0 0 12px rgba(var(--hud-rgb), .35); }
@media (max-width: 720px) {
  .np-acct-chip { margin-left: auto; padding-right: 10px; }
  .np-tabs a { padding: 8px 4px; font-size: 11.5px; letter-spacing: .04em; }
}

/* ---------- plans (Account > Plan & pricing) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; max-width: 860px; margin-top: 14px; }
.plan-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: rgba(var(--surface-rgb), .7); border: 1px solid rgba(var(--hud2-rgb), .18); }
.plan-card.have { border-color: rgba(63, 208, 122, .5); }
.plan-name { font: 700 22px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--hud); }
.plan-price { font: 600 15px var(--font); color: #ffd0b8; }
.plan-card ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text-soft); line-height: 1.6; font-size: 14px; }
.plan-action { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plan-have { color: #3fd07a; font-weight: 600; }
.plan-wait { color: #ffd166; font-weight: 600; }
.plan-no { color: #ff9a8a; font-size: 13px; }

/* ---------- Account > Appearance ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; max-width: 900px; margin-top: 12px; }
.theme-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--text);
  background: rgba(var(--surface-rgb), .7); border: 2px solid rgba(var(--hud2-rgb), .18); font: inherit; }
.theme-card:hover { border-color: rgba(var(--hud-rgb), .6); }
.theme-card.on { border-color: var(--hud); box-shadow: 0 0 14px rgba(var(--hud-rgb), .3); }
.theme-swatch { width: 100%; height: 54px; border-radius: 10px; display: flex; align-items: flex-end; gap: 6px; padding: 8px; border: 1px solid rgba(128, 128, 128, .3); }
.theme-swatch i { width: 26px; height: 10px; border-radius: 999px; }
.theme-on { color: var(--ok); font-size: 12.5px; font-weight: 700; }
.holiday-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.holiday-list i { font-style: normal; }

/* ---------- Account > Account management ---------- */
.mg-box { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); max-width: 900px; margin-bottom: 8px; }
.mg-list { display: flex; flex-direction: column; gap: 6px; max-width: 900px; margin-top: 10px; }
.mg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px;
  background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.mg-who { display: flex; flex-direction: column; min-width: 0; }
.mg-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-acts select { width: auto; min-width: 130px; }
.mg-pill { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mg-pill.owner { color: #ffd166; border-color: rgba(255, 209, 102, .5); }
.mg-pill.admin { color: var(--hud); border-color: rgba(var(--hud-rgb), .5); }
.mg-pill.instructor { color: var(--ok); border-color: rgba(63, 208, 122, .5); }
.fold-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- organization tag (top bar) and Your Organization ---------- */
.np-org-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .1); font: 700 12px var(--display); letter-spacing: .12em; }
.np-org-tag:hover { background: rgba(var(--accent-rgb), .2); }
.np-org-tag .emo { font-size: 15px; letter-spacing: 0; }
.org-head { display: flex; align-items: center; gap: 14px; max-width: 900px; padding: 18px 20px; border-radius: 16px; background: rgba(var(--surface-rgb), .7); border: 1px solid rgba(var(--accent-rgb), .35); }
.org-head .emo { font-size: 40px; line-height: 1; }
.org-head .tag { font: 700 12px var(--display); letter-spacing: .16em; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .6); color: var(--accent-2); }
.org-head h3 { margin: 0; font-size: 24px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.emoji-pick button { font-size: 20px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(var(--hud2-rgb), .2); background: rgba(var(--surface-rgb), .6); cursor: pointer; }
.emoji-pick button.on { border-color: var(--hud); box-shadow: 0 0 10px rgba(var(--hud-rgb), .4); }
.org-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; max-width: 900px; margin-top: 14px; }
@media (max-width: 720px) { .np-org-tag { padding: 3px 8px; } }

/* ---------- notification bell ---------- */
.np-bell-wrap { position: relative; flex: none; }
.np-bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--text-soft);
  background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .25); }
.np-bell:hover, .np-bell[aria-expanded="true"] { color: var(--hud); border-color: var(--hud); }
.np-bell.has { color: var(--hud); }
.np-bell.has svg { animation: np-ring 2.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes np-ring { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(14deg); } 94% { transform: rotate(-12deg); } 97% { transform: rotate(6deg); } }
.np-bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 11px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.np-bell-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 3000; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  border-radius: 14px; border: 1px solid rgba(var(--hud2-rgb), .25); background: var(--panel); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.np-bell-menu[hidden] { display: none; }
.np-bell-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.np-bell-head .spacer { flex: 1; }
.np-bell-item { display: flex; gap: 10px; width: 100%; padding: 10px 14px; text-align: left; border: 0; border-bottom: 1px solid rgba(var(--hud2-rgb), .08); background: none; color: var(--text-soft); cursor: pointer; font: inherit; }
.np-bell-item:hover { background: rgba(var(--hud-rgb), .07); }
.np-bell-item.unread { color: var(--text); background: rgba(var(--accent-rgb), .07); }
.np-bell-item.unread .tx::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.np-bell-item .ic { font-size: 18px; }
.np-bell-item .tx { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.4; }
.np-bell-item .tx i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.np-bell-empty { padding: 22px; text-align: center; color: var(--muted); }

/* ---------- contact form ---------- */
.np-msg-form { max-width: 860px; margin-top: 26px; padding: 22px; border-radius: 16px; background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .14); }
.np-msg-form h3 { margin: 0; font: 700 20px var(--display); letter-spacing: .06em; }
.np-msg-form p { margin: 4px 0 4px; }
.np-msg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.np-msg-form input, .np-msg-form select, .np-msg-form textarea { width: 100%; }
.np-msg-sent { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(63, 208, 122, .12); border: 1px solid rgba(63, 208, 122, .45); }
@media (max-width: 720px) { .np-msg-grid { grid-template-columns: 1fr; } }

/* ---------- owners' inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 14px; max-width: 1100px; margin-top: 12px; min-height: 420px; }
.inbox-list { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.inbox-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-align: left; cursor: pointer; color: var(--text-soft); font: inherit;
  background: rgba(var(--surface-rgb), .6); border: 1px solid rgba(var(--hud2-rgb), .12); }
.inbox-item:hover { border-color: rgba(var(--hud-rgb), .5); }
.inbox-item.on { border-color: var(--hud); box-shadow: 0 0 10px rgba(var(--hud-rgb), .25); }
.inbox-item.unread { color: var(--text); border-left: 3px solid var(--accent); }
.inbox-item.unread .from, .inbox-item.unread .subj { font-weight: 700; }
.inbox-item .from { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.inbox-item .from i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.inbox-item .subj { font-size: 13.5px; }
.inbox-item .snip { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-read { padding: 18px 20px; border-radius: 14px; background: rgba(var(--surface-rgb), .7); border: 1px solid rgba(var(--hud2-rgb), .14); min-width: 0; }
.inbox-read h3 { margin: 6px 0; font-size: 22px; }
.inbox-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.inbox-from { color: var(--text-soft); margin-bottom: 12px; overflow-wrap: anywhere; }
.inbox-body { white-space: pre-wrap; line-height: 1.6; padding: 14px; border-radius: 10px; background: rgba(var(--hud-rgb), .05); border: 1px solid rgba(var(--hud2-rgb), .12); overflow-wrap: anywhere; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } }
