/* Niguro page CSS: the remaining pages (built on the page kit in niguro.css; see dev/niguro-kit.md)
   search (.ng-xsearch) and its /search landing (.ng-sl), a photo's page (.ng-xphoto), share (.ng-xshare), the OAuth consent (.ng-xoauth),
   the payment results (.ng-xpay: payment_status, ccbill_status) and the social sign-up (.ng-xsocial).
   This file loads on every page, so every rule is scoped under one of those page classes.
   Colours only from tokens; tiles tinted by --h. */

/* ------------------------------- */
/* Centred pages (OAuth, payment results): the card in the middle of the screen, like the status pages */
/* ------------------------------- */
:is(.ng-xoauth, .ng-xpay).ng-xcenter .ng-hubwrap {
  display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - var(--ng-top, 56px) - 160px);
}

/* ------------------------------- */
/* Search: the hero carries the field (title and art on top, the field across under them); the
   results are Sngine's posts or the directory's list rows */
/* ------------------------------- */
.ng-xsearch .ng-xsearch__hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text art" "form form"; align-items: center; gap: 18px 20px;
}
@media (min-width: 768px) { .ng-xsearch .ng-xsearch__hero { grid-template-areas: "text art" "form art"; row-gap: 20px; } }
.ng-xsearch .ng-xsearch__hero > .ng-hero__text { grid-area: text; }
.ng-xsearch .ng-xsearch__hero > .ng-hero__art { grid-area: art; }
.ng-xsearch .ng-xsearch__form { grid-area: form; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 620px; margin: 0; }
.ng-xsearch .ng-xsearch__form .ng-pbtn { flex: none; height: var(--ng-field-h); } /* matches the field beside it, as the kit's filter bar */
.ng-xsearch .ng-xsearch__field { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; margin: 0; }
.ng-xsearch .ng-xsearch__field > .ng-ico { position: absolute; left: 14px; z-index: 1; width: 18px; height: 18px; color: var(--ng-sub); pointer-events: none; }
.ng-xsearch .ng-xsearch__field .form-control { width: 100%; padding-left: 42px; }
[dir="RTL"] .ng-xsearch .ng-xsearch__field > .ng-ico { left: auto; right: 14px; }
[dir="RTL"] .ng-xsearch .ng-xsearch__field .form-control { padding-left: 14px; padding-right: 42px; }

.ng-xsearch .ng-dsec > .card { margin: 0; }
.ng-xsearch .ng-sechead h2 { flex-wrap: wrap; gap: 6px; min-width: 0; }
.ng-xsearch .ng-xsearch__q { min-width: 0; color: var(--ng-brand); overflow-wrap: anywhere; }

/* posts: Sngine's cards, 16px apart; "More Results" under them */
.ng-xsearch .ng-dposts > li > .post { margin-bottom: 16px; }
.ng-xsearch .ng-dposts > li:last-child > .post { margin-bottom: 0; }

/* ------------------------------- */
/* Search landing (/search, __ng_slanding.tpl): niguroapp's page-search.php without a query, at its sizes
   (niguroapp skins/search.css §2): 16px a side on phones, 24px from 768px, inside the frame's 8px (niguroapp's
   #main-content gutter below 1024px); beside the rail, 24px from the column. A 760px hero, 40px 0 28px (72px 0 36px from 768px): a 28px badge, the
   title 18px under it, 34px (48px), 800, -.03em, its second half in the brand colour; the line 14px under,
   15px (16px), at most 560px; the field 28px under (36px), 60px high at every width (the search home's,
   home.css, with its icon, Ask Bhotu and the round go, the text from 52px); the trust row 16px under;
   the trending chips 22px under, 34px pills 8px apart. Then, up to 1080px and 12px under the hero, the
   cards 14px apart: 20px padding (24px), 18px corners, flat; tiles and rows on the fill, 12px corners, 40px
   tinted icon tiles; three across from 768px, the web card two columns from 1024px. Tokens only, day and
   night; no border or shadow on the field (user, 2026-10-17: as the search home's). */
/* ------------------------------- */
.ng-sl { padding: 0 16px 48px; color: var(--ng-ink); }
.ng-sl .ng-ico { flex: none; }
.ng-sl :is(h1, h2, h3, p) { margin: 0; }

/* hero */
.ng-sl-hero { max-width: 760px; margin: 0 auto; padding: 40px 0 28px; text-align: center; }
.ng-sl-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: hsl(var(--primary) / .1); color: var(--ng-brand); font-size: 12px; font-weight: 600; line-height: 1;
}
.ng-sl-badge .ng-ico { width: 14px; height: 14px; }
.ng-sl-badge--sm { height: 26px; font-size: 11.5px; }
.ng-sl .ng-sl-hero__title { margin-top: 18px; font-size: 34px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--ng-ink-strong); }
.ng-sl-hero__title span { color: var(--ng-brand); }
.ng-sl .ng-sl-hero__lede { max-width: 560px; margin: 14px auto 0; font-size: 15px; line-height: 1.6; color: var(--ng-sub); }

/* the field: the search home's, 60px at every width, the text from 52px */
.ng-sl-wrap { position: relative; margin: 28px auto 0; text-align: left; }
.ng-sl .ng-sl-form { max-width: none; height: 60px; border-radius: 30px; }
.ng-sl .ng-sl-form.is-open { border-radius: 30px 30px 0 0; }
.ng-sl .ng-sl-form .ng-shome__field { gap: 12px; }
.ng-sl .ng-sdd { max-height: 50vh; }

/* trust row and trending chips */
.ng-sl-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; font-size: 12px; line-height: 1.4; color: var(--ng-faint); }
.ng-sl-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ng-sl-trust .ng-ico { width: 14px; height: 14px; }
.ng-sl-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.ng-sl-chips__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 2px; font-size: 12px; font-weight: 600; color: var(--ng-sub); }
.ng-sl-chips__label .ng-ico { width: 15px; height: 15px; color: var(--ng-brand); }
.ng-sl-chip {
  display: inline-block; height: var(--ng-chip-h); padding: var(--ng-chip-pad); border-radius: var(--ng-chip-r); background: var(--ng-card); color: var(--ng-ink); font-size: var(--ng-chip-fs); font-weight: var(--ng-chip-fw); text-decoration: none; transition: background-color .15s ease; line-height: var(--ng-chip-h); /* [Chips: one size] */
}
.ng-sl-chip:hover { background: var(--ng-fill); color: var(--ng-ink); text-decoration: none; }
.ng-sl-chip .ng-ico { width: var(--ng-chip-ico); height: var(--ng-chip-ico); color: var(--ng-brand); margin: -2px 0 0 4px; /* [Chips: one size] */ }

/* the cards */
.ng-sl-body { display: grid; gap: 14px; max-width: 1080px; margin: 12px auto 0; }
.ng-sl-card { min-width: 0; padding: 20px; border-radius: var(--ng-r); background: var(--ng-card); }
.ng-sl-card__head { margin-bottom: 14px; }
.ng-sl .ng-sl-card__title { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--ng-ink-strong); }
.ng-sl .ng-sl-card__title--lg { margin-top: 10px; font-size: 20px; letter-spacing: -.02em; }
.ng-sl .ng-sl-card__sub { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ng-sub); }
.ng-sl .ng-sl-card__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ng-sub); }
.ng-sl-tiles, .ng-sl-rows { display: grid; gap: 10px; }
.ng-sl-tile { padding: 16px; border-radius: var(--ng-r-sm); background: var(--ng-fill); }
.ng-sl-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--primary) / .12); color: var(--ng-brand);
}
.ng-sl-ico .ng-ico { width: 20px; height: 20px; }
.ng-sl .ng-sl-tile__title { margin-top: 12px; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ng-ink-strong); }
.ng-sl .ng-sl-tile__text { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--ng-sub); }
.ng-sl-mini { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--ng-r-sm); background: var(--ng-fill); }
.ng-sl .ng-sl-mini__title { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ng-ink-strong); }
.ng-sl .ng-sl-mini__text { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ng-sub); }
.ng-sl-split { display: grid; gap: 18px; }
.ng-sl-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: hsl(var(--primary) / .08); }
.ng-sl .ng-sl-cta .ng-sl-card__title--lg { margin-top: 0; }
.ng-sl-cta .ng-pbtn { flex: none; height: 44px; padding: 0 20px; }

/* phones: the "what you can find" tiles as rows, the icon beside the title and text */
@media (max-width: 767.98px) {
  .ng-sl-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .ng-sl-tile .ng-sl-ico { grid-row: span 2; }
  .ng-sl .ng-sl-tile__title { margin-top: 0; font-size: 14px; }
  .ng-sl .ng-sl-tile__text { margin-top: 2px; font-size: 12.5px; }
}
@media (min-width: 768px) {
  .ng-sl { padding: 0 24px 64px; }
  .ng-sl-hero { padding: 72px 0 36px; }
  .ng-sl .ng-sl-hero__title { font-size: 48px; }
  .ng-sl .ng-sl-hero__lede { font-size: 16px; }
  .ng-sl-wrap { margin-top: 36px; }
  .ng-sl-card { padding: 24px; }
  .ng-sl-tiles--3, .ng-sl-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-sl-tiles--2, .ng-sl-tiles--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-sl-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px; }
}
/* beside the rail the frame already keeps 12px a side: 12px more makes niguroapp's 24px from the column */
@media (min-width: 1024px) {
  .ng-sl { padding-left: 12px; padding-right: 12px; }
  .ng-sl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
}
/* [Layout: gutters] phones and tablets: 8px a side, the frame's own (user, 2026-10-18; it was 8px + 16 / 24px) */
@media (max-width: 1023.98px) { .ng-sl { padding-left: 0; padding-right: 0; } }

/* ------------------------------- */
/* A photo's page: one viewer card - the photo on a soft backdrop made from itself, arrows, then the
   post's head, caption, bar and comments (Sngine's .post) */
/* ------------------------------- */
.ng-xphoto .ng-xphoto__card { margin: 0; border-radius: var(--ng-r); }
.ng-xphoto .ng-xphoto__stage {
  position: relative; isolation: isolate; display: grid; place-items: center; min-height: 220px; overflow: hidden;
  border-radius: var(--ng-r) var(--ng-r) 0 0; background: var(--ng-fill);
}
.ng-xphoto .ng-xphoto__stage::before {
  content: ""; position: absolute; inset: -48px; z-index: -1; pointer-events: none;
  background: var(--ng-xphoto-bg) center / cover no-repeat; filter: blur(36px) saturate(1.15); opacity: .5;
}
.ng-xphoto .ng-xphoto__img { display: block; max-width: 100%; cursor: zoom-in; }
.ng-xphoto .ng-xphoto__img img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 880px); margin: 0 auto; object-fit: contain; }
.ng-xphoto .ng-xphoto__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--ng-card); box-shadow: var(--ng-shadow-lg); color: var(--ng-ink-strong); text-decoration: none; transition: background .15s;
}
.ng-xphoto .ng-xphoto__nav[hidden] { display: none; }
.ng-xphoto .ng-xphoto__nav:hover { background: var(--ng-fill); color: var(--ng-ink-strong); }
.ng-xphoto .ng-xphoto__nav:focus-visible { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ng-xphoto .ng-xphoto__nav .ng-ico { width: 22px; height: 22px; }
.ng-xphoto .ng-xphoto__nav.is-prev { left: 12px; }
.ng-xphoto .ng-xphoto__nav.is-next { right: 12px; }
.ng-xphoto .ng-xphoto__card .post-header { padding-top: 16px; }
.ng-xphoto .ng-xphoto__post { flex: none; }
@media (max-width: 419.98px) { .ng-xphoto .ng-xphoto__post { padding: 0 12px; } }
.ng-xphoto .ng-xphoto__card .post-footer { padding-bottom: 6px; }

/* ------------------------------- */
/* Share: the link being shared, the "Share to" choices (Sngine's radio labels) and the pickers */
/* ------------------------------- */
.ng-xshare .ng-phead > div { min-width: 0; }
.ng-xshare .ng-xshare__link {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--ng-card); font-size: 13px; color: var(--ng-sub);
}
.ng-xshare .ng-xshare__link .ng-ico { flex: none; width: 15px; height: 15px; color: var(--ng-brand); }
.ng-xshare .ng-xshare__link > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-xshare .ng-xshare__to { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.ng-xshare .ng-xshare__to .button-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 14px 10px 12px;
  background: transparent; color: var(--ng-ink-strong);
}
.ng-xshare .ng-xshare__to .button-label:hover { box-shadow: inset 0 0 0 1.5px hsl(var(--primary) / .45); }
.ng-xshare .ng-xshare__to .input-label:checked + .button-label,
.ng-xshare .ng-xshare__to .input-label:checked + .button-label:hover { box-shadow: inset 0 0 0 2px var(--ng-brand); background: var(--ng-tint); color: var(--ng-brand); }
.ng-xshare .ng-xshare__to .input-label:focus-visible + .button-label { outline: 2px solid var(--ng-brand); outline-offset: 2px; }
.ng-xshare .ng-xshare__to .button-label .icon { width: 40px; height: 40px; margin: 0; border-radius: 12px; background: var(--ng-fill); opacity: 1; filter: none; }
.ng-xshare .ng-xshare__to .input-label:checked + .button-label .icon { background: var(--ng-card); }
.ng-xshare .ng-xshare__to .button-label .title { margin: 0; font-size: 14px; font-weight: 600; color: inherit; }
.ng-xshare .ng-xshare__pick { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ng-line); }
.ng-xshare .ng-xshare__pick .form-group { margin-bottom: 12px; }
.ng-xshare .ng-xshare__go { display: flex; justify-content: flex-end; }
.ng-xshare .ng-xshare__pub > :last-child { margin-bottom: 0; }

/* ------------------------------- */
/* OAuth consent: the app and you, what it receives, Continue / Cancel */
/* ------------------------------- */
.ng-xoauth .ng-xoauth__card {
  display: flex; flex-direction: column; align-items: center; margin: 0; padding: 28px 20px 22px; border: 0; border-radius: var(--ng-r); text-align: center;
  background: radial-gradient(80% 55% at 50% 0%, hsl(var(--primary) / .12), transparent 70%), var(--ng-card);
}
@media (min-width: 768px) { .ng-xoauth .ng-xoauth__card { padding: 36px 32px 28px; } }
.ng-xoauth .ng-xoauth__pair { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ng-xoauth .ng-xoauth__pair img { display: block; width: 64px; height: 64px; object-fit: cover; background: var(--ng-fill); box-shadow: 0 0 0 4px var(--ng-card); }
.ng-xoauth .ng-xoauth__app { border-radius: 18px; }
.ng-xoauth .ng-xoauth__you { border-radius: 50%; }
.ng-xoauth .ng-xoauth__link { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ng-tint); color: var(--ng-brand); }
.ng-xoauth .ng-xoauth__link .ng-ico { width: 18px; height: 18px; }
.ng-xoauth .ng-xoauth__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ng-brand); }
.ng-xoauth .ng-xoauth__title { margin: 6px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; color: var(--ng-ink-strong); overflow-wrap: anywhere; }
.ng-xoauth .ng-xoauth__domain { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 6px 0 0; font-size: 14px; color: var(--ng-sub); }
.ng-xoauth .ng-xoauth__domain .ng-ico { flex: none; width: 15px; height: 15px; }
.ng-xoauth .ng-xoauth__domain > span { min-width: 0; overflow-wrap: anywhere; }
.ng-xoauth .ng-xoauth__perms { width: 100%; margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--ng-fill); text-align: start; }
.ng-xoauth .ng-xoauth__perms > p { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-xoauth .ng-xoauth__perms ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ng-xoauth .ng-xoauth__perms li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--ng-ink); }
.ng-xoauth .ng-xoauth__perms .ng-lrow__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.ng-xoauth .ng-xoauth__perms .ng-lrow__icon .ng-ico { width: 18px; height: 18px; }
.ng-xoauth .ng-xoauth__acts { display: grid; gap: 8px; width: 100%; margin-top: 22px; }
.ng-xoauth .ng-xoauth__note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; text-align: start; color: var(--ng-sub); }
.ng-xoauth .ng-xoauth__note .ng-ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ng-brand); }
.ng-xoauth .ng-xoauth__note a { font-weight: 600; color: var(--ng-brand); text-decoration: none; }
.ng-xoauth .ng-xoauth__note a:hover { text-decoration: underline; }

/* ------------------------------- */
/* Payment results (payment_status, ccbill_status): the kit's empty-state tile, a bigger one */
/* ------------------------------- */
.ng-xpay .ng-xresult { margin: 0; }
.ng-xpay .ng-xresult .ng-empty { gap: 0; padding: 36px 20px 30px; }
@media (min-width: 768px) { .ng-xpay .ng-xresult .ng-empty { padding: 44px 36px 36px; } }
.ng-xpay .ng-xresult .ng-lrow__icon { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 20px; }
.ng-xpay .ng-xresult .ng-lrow__icon .ng-ico { width: 30px; height: 30px; }
.ng-xpay .ng-xresult__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--ng-ink-strong); }
@media (min-width: 768px) { .ng-xpay .ng-xresult__title { font-size: 24px; } }
.ng-xpay .ng-xresult__text { max-width: 400px; margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ng-ink); }
.ng-xpay .ng-xresult__note { max-width: 400px; margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ng-sub); }
.ng-xpay .ng-xresult__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
@media (max-width: 479.98px) {
  .ng-xpay .ng-xresult__acts { align-self: stretch; }
  .ng-xpay .ng-xresult__acts > .ng-pbtn { flex: 1 1 100%; }
}
/* CCBill's checker (Sngine's hooks: .ccbill-pulse-bar, #ccbill-check-msg.info|success|danger) */
.ng-xpay .ng-xresult__check { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 22px; }
.ng-xpay .ccbill-pulse-bar { width: 100%; max-width: 240px; height: 4px; overflow: hidden; border-radius: 999px; background: var(--ng-fill); }
.ng-xpay .ccbill-pulse-bar span {
  display: block; width: 40%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, hsl(var(--h, 38) 85% 50%), transparent); animation: ng-xpay-sweep 1.6s ease-in-out infinite;
}
@keyframes ng-xpay-sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .ng-xpay .ccbill-pulse-bar span { width: 100%; opacity: .45; animation: none; } }
.ng-xpay .ccbill-check-msg { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ng-xpay .ccbill-check-msg.info { background: var(--ng-fill); color: var(--ng-sub); }
.ng-xpay .ccbill-check-msg.success { background: var(--ng-tint); color: var(--ng-brand); }
.ng-xpay .ccbill-check-msg.danger { background: hsl(var(--destructive) / .12); color: hsl(var(--destructive)); }

/* ------------------------------- */
/* Sign up after a social sign-in: the sign-up card (niguro.css .ng-auth) with your picture on the brand side */
/* ------------------------------- */
.ng-xsocial .ng-xsocial__pic { display: block; width: 88px; height: 88px; margin: 0 auto 20px; padding: 4px; border-radius: 50%; background: var(--ng-card); }
.ng-xsocial .ng-xsocial__pic img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 767.98px) { .ng-xsocial .ng-xsocial__pic { width: 72px; height: 72px; margin-bottom: 14px; } }
.ng-xsocial .ng-auth__top h1 { overflow-wrap: anywhere; }
.ng-xsocial .ng-xsocial__form { display: grid; gap: 18px; }
.ng-xsocial .ng-xsocial__form .form-group { margin: 0; }
.ng-xsocial .ng-xsocial__form .alert { margin: 0; }
.ng-xsocial .ng-xsocial__form .alert.x-hidden { display: none; }

/* ------------------------------- */
/* Getting started (/started, started.tpl): niguro.com's /onboarding sheet as niguroapp skins it (account.css):
   560px wide, 28px corners, no shadow; a top band (the brand, "set up your profile", three 44x5 step bars) and
   one step at a time (26/24/28px padding, a 36px step number, 24px heading, 14px line); niguroapp's onboarding
   fields (50px) and buttons (48px, 12px corners); a 112px photo with the 32px camera badge. Day and night from
   the tokens. The activation notice (activation.tpl) uses the same sheet. */
/* ------------------------------- */
.ng-onb { --ng-field-h: 50px; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 0 48px; }
.ng-onb__card { overflow: hidden; border-radius: var(--ng-r); background: var(--ng-card); /* [Card radius] */ }

/* top band */
.ng-onb__top {
  padding: 28px 24px 22px; text-align: center;
  background: radial-gradient(360px 220px at 50% 0, hsl(var(--primary) / .2), transparent 75%), linear-gradient(180deg, hsl(var(--primary) / .08), transparent);
}
.ng-onb__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--ng-ink-strong); text-decoration: none; }
.ng-onb__brand:hover { color: var(--ng-ink-strong); }
.ng-onb__logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ng-brand); color: hsl(var(--primary-foreground)); }
.ng-onb__logo .ng-ico { width: 16px; height: 16px; }
.ng-onb__eyebrow { margin: 16px 0 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ng-brand); }
.ng-onb__dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.ng-onb__dots button { position: relative; width: 44px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: var(--ng-fill); cursor: pointer; transition: background-color .2s ease; }
.ng-onb__dots button::before { content: ""; position: absolute; inset: -10px -3px; } /* a bigger target than the 5px bar */
.ng-onb__dots button:disabled { cursor: default; }
.ng-onb__dots button.is-active { background: var(--ng-brand); }

/* a step */
.ng-onb__panel { padding: 26px 24px 28px; }
.ng-onb__panel[hidden] { display: none !important; }
.ng-onb__panel--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ng-onb__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ng-tint); color: var(--ng-brand); font-size: 14px; font-weight: 700; line-height: 1; }
.ng-onb__title { margin: 12px 0 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; color: var(--ng-ink-strong); overflow-wrap: anywhere; }
.ng-onb__sub { max-width: 440px; margin: 8px 0 0; font-size: 14px; line-height: 1.625; color: var(--ng-sub); }

/* the photo: Sngine's avatar wrapper, uploader, loader, crop and delete */
.ng-onb .profile-avatar-wrapper.ng-onb__ava {
  position: relative; top: auto; left: auto; transform: none; width: 112px; height: 112px; margin: 28px auto 0; padding: 0;
  border-radius: 50%; background: var(--ng-card); box-shadow: none;
}
.ng-onb__ava > img { display: block; width: 112px; height: 112px; border: 4px solid var(--ng-card); border-radius: 50%; object-fit: cover; box-shadow: var(--ng-shadow-lg); }
/* the whole photo opens the file picker (Sngine's hidden file input fills the square), the badge marks it */
.ng-onb__ava .profile-avatar-change { position: absolute; inset: 0; z-index: 1; padding: 0; border-radius: 0; background: transparent; opacity: 1; font-size: inherit; color: inherit; }
.ng-onb__ava .profile-avatar-change:hover { background: transparent; }
.ng-onb__ava .profile-avatar-change form.x-uploader { position: absolute; inset: 0; }
.ng-onb__badge {
  position: absolute; right: 0; bottom: 3px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px;
  border: 2px solid var(--ng-card); border-radius: 50%; background: var(--ng-brand); color: hsl(var(--primary-foreground)); pointer-events: none;
}
.ng-onb__badge .svg-container, .ng-onb__tool .svg-container { display: grid; place-items: center; color: inherit; } /* white on the brand, ink on the fill */
.ng-onb__ava :is(.profile-avatar-crop, .profile-avatar-delete) { position: absolute; z-index: 2; padding: 0; border-radius: 50%; background: transparent; opacity: 1; font-size: inherit; }
.ng-onb__ava .profile-avatar-crop { top: 3px; left: 0; right: auto; bottom: auto; }
.ng-onb__ava .profile-avatar-delete { bottom: 3px; left: 0; right: auto; top: auto; }
.ng-onb__tool {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 2px solid var(--ng-card); border-radius: 50%;
  background: var(--ng-fill); color: var(--ng-ink-strong); cursor: pointer;
}
.ng-onb__tool:hover { background: var(--ng-fill-2); }
.ng-onb__tool :is(.ng-ico, .svg-container) { display: grid; place-items: center; width: 16px !important; height: 16px !important; }
.ng-onb__ava .profile-avatar-change-loader { z-index: 4; inset: 0; padding: 53px 24px 0; border-radius: 50%; background: hsl(0 0% 0% / .45); opacity: 1; }
.ng-onb__ava .profile-avatar-change-loader .progress { height: 6px; border-radius: 999px; background: hsl(0 0% 100% / .3); }
.ng-onb__ava .profile-avatar-change-loader .progress-bar { border-radius: 999px; background: #fff; }
.ng-onb__hint { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: var(--ng-sub); }

/* actions: the quiet skip on the left, the main button on the right */
.ng-onb__acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 24px; }
.ng-onb__form .ng-onb__acts { margin-top: 4px; } /* the form's 20px gap + 4px = niguro's 24px */
.ng-onb__skip { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ng-sub); cursor: pointer; }
.ng-onb__skip:hover { color: var(--ng-ink-strong); }
.ng-onb__acts .btn:not(.btn-icon):not(.rounded-circle):not(.btn-close):not(.dropdown-toggle-split) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px;
  border-radius: var(--ng-r-sm) !important; font-size: 15px; font-weight: 600; line-height: 20px;
}
.ng-onb__acts .btn .ng-ico { width: 16px; height: 16px; margin-right: -4px; }

/* the info form: groups split by a hairline, 16px between fields */
.ng-onb__form { display: grid; gap: 20px; margin-top: 24px; }
.ng-onb__group { display: grid; gap: 16px; min-width: 0; }
.ng-onb__group + .ng-onb__group { padding-top: 20px; border-top: 1px solid var(--ng-line); }
.ng-onb__label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ng-sub); }
.ng-onb .form-group { margin: 0; }
.ng-onb__form .row { --bs-gutter-x: 12px; --bs-gutter-y: 0; row-gap: 16px; }
.ng-onb__form .row.x-hidden { display: none; }
.ng-onb .form-label { margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ng-ink-strong); }
.ng-onb .form-control, .ng-onb .form-select { padding-left: 16px; padding-right: 16px; }
.ng-onb .form-select { padding-right: 36px; }
.ng-onb__form .alert { margin: 0; border-radius: var(--ng-r-sm); font-size: 14px; }
.ng-onb__form .alert.x-hidden { display: none; }

/* connections: /people's cards on the fill, two across (three from 520px), with their compact phone sizes */
.ng-onb__people.ng-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .ng-onb__people.ng-dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ng-onb__items.ng-dgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ng-onb :is(.ng-pcard, .ng-scard) { background: var(--ng-fill); }
.ng-onb .ng-pcard__body { padding: 10px 10px 12px; }
.ng-onb .ng-pcard__name { font-size: 15px; }
.ng-onb .ng-pcard__mutual { font-size: 12.5px; }
.ng-onb .ng-pcard__faces img { box-shadow: 0 0 0 2px var(--ng-fill); }
.ng-onb .ng-pcard__acts .btn { padding: 0 8px; }
.ng-onb :is(.ng-pcard, .ng-scard) .btn-light { background: var(--ng-card); }
.ng-onb :is(.ng-pcard, .ng-scard) .btn-light:hover { background: var(--ng-fill-2); }
.ng-onb__empty { padding: 20px 0 4px; }

/* the activation notice (activation.tpl): an icon in the step circle, the address in ink, the spam hint on the
   fill, Enter Code across and the two other actions side by side under it */
.ng-onb__num--icon { width: 48px; height: 48px; }
.ng-onb__num--icon .ng-ico { width: 22px; height: 22px; }
.ng-onb__em { font-weight: 700; color: var(--ng-ink-strong); overflow-wrap: anywhere; }
.ng-onb__note { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 440px; margin: 16px 0 0; padding: 10px 14px; border-radius: var(--ng-r-sm); background: var(--ng-fill); font-size: 13px; line-height: 1.5; text-align: start; color: var(--ng-sub); }
.ng-onb__note .ng-ico { width: 18px; height: 18px; margin-top: 1px; color: var(--ng-brand); }
.ng-onb__acts--stack { flex-direction: column; align-items: stretch; gap: 12px; }
.ng-onb__pair { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.ng-onb__pair .btn:not(.btn-icon):not(.rounded-circle):not(.btn-close):not(.dropdown-toggle-split) { min-height: 48px; padding: 0 12px; border-radius: var(--ng-r-sm) !important; font-size: 15px; font-weight: 600; }
