/* Not Quite News — PDD section 4. Figures 3–10 geometry. Approved category colours come from the API. */
:root {
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --ink: #111827;
  --muted: #6B7280;
  --line: rgba(17, 24, 39, 0.08);
  --nqn-bg: #F6F7FB;
  --nqn-card: #FFFFFF;
  --nqn-text: #111827;
  --nqn-meta: #6B7280;
  --nqn-hairline: rgba(17, 24, 39, 0.08);
  --nqn-radius-card: 18px;
  --nqn-radius-pill: 999px;
  --teal: #5A9A7A;
  --nqn-logo: #80B490;
  --nqn-mark: #83B692;
  --nqn-mark-dark: #51705A;
  --nqn-heart: #DBACBC;
  --nqn-paper: #B0476B;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--nqn-logo);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.nq-container {
  width: min(1180px, calc(100% - 2.75rem));
  margin-left: auto;
  margin-right: auto;
}

.nq-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nq-topbar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
}

.nq-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.nq-brand img {
  display: block;
  height: 54px;
  width: auto;
}

.nq-topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.nq-account-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  overflow: visible;
  cursor: pointer;
}

.nq-account-orb svg {
  width: 18px;
  height: 18px;
}

.nq-account-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.nq-menu-welcome {
  margin: 4px 4px 8px;
  padding: 0 4px;
  font-weight: 800;
  color: var(--ink);
}

.nq-home-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.nq-fossick {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(36rem, 100%);
  margin: 0;
}

.nq-view-block {
  display: flex;
  justify-content: center;
}

.nq-fossick-field {
  position: relative;
}

.nq-fossick-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--muted);
  pointer-events: none;
}

.nq-fossick input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 0.4rem 2.4rem 0.4rem 2.35rem;
  font: inherit;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  outline: none;
}

.nq-fossick input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.nq-fossick-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nq-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nq-clear[hidden] {
  display: none;
}

.nq-views {
  display: none;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.nq-views a {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
}

.nq-views a[aria-current="page"] {
  color: var(--ink);
}

.nq-menu {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.nq-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nq-iconbtn svg {
  width: 18px;
  height: 18px;
}

.nq-dropdown {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: calc(100vw - 2rem);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(246, 247, 251, 0.98);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
}

.nq-dropdown[hidden] {
  display: none;
}

.nq-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 8px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.2;
}

.nq-menu-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nq-menu-item:hover {
  background: var(--cat, #111827);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
}

.nq-menu-divider {
  height: 1px;
  margin: 8px 4px;
  background: var(--line);
  border: 0;
}

.nq-main {
  width: min(1180px, calc(100% - 2.75rem));
  margin: 1.5rem auto 3rem;
}

.nq-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.nq-hero {
  position: relative;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
}

.nq-slide {
  position: absolute;
  inset: 0;
  display: none;
  color: #fff;
}

.nq-slide.is-active {
  display: block;
}

.nq-slide-media {
  position: absolute;
  inset: 0;
  background: var(--cat, #9CA3AF) center/cover no-repeat;
}

.nq-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nq-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.05) 60%);
}

.nq-slide-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.nq-hero:has(.nq-dots) .nq-slide-copy {
  bottom: 36px;
}

.nq-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--cat, #111827);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.nq-tag svg {
  width: 12px;
  height: 12px;
}

.nq-hero-title {
  display: block;
  margin: 0 0 0.25rem;
  color: #f7f7f7;
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a.nq-slide .nq-hero-dek,
a.nq-slide .nq-hero-meta,
a.nq-slide .nq-tag {
  color: #f7f7f7;
}

a.nq-slide:hover,
a.nq-slide:focus-visible,
a.nq-slide:hover .nq-hero-title,
a.nq-slide:focus-visible .nq-hero-title,
a.nq-slide:hover .nq-hero-dek,
a.nq-slide:focus-visible .nq-hero-dek,
a.nq-slide:hover .nq-hero-meta,
a.nq-slide:focus-visible .nq-hero-meta,
a.nq-slide:hover .nq-tag,
a.nq-slide:focus-visible .nq-tag {
  color: #ffffff;
}

.nq-cardx:hover .nq-card-title,
.nq-cardx:focus-within .nq-card-title,
.nqn-card:hover .nqn-card-title,
.nqn-card:focus-within .nqn-card-title,
.nq-subcard:hover .nq-card-title,
.nq-subcard:focus-visible .nq-card-title,
.nq-latest-item:hover strong,
.nq-latest-item:focus-visible strong {
  color: var(--cat, var(--ink));
}

.nq-hero-dek {
  display: -webkit-box;
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: #f7f7f7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nq-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  color: #f7f7f7;
  font-size: 0.92rem;
}

.nq-hero-meta .nq-tag {
  margin: 0;
}

.nq-hero-nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.nq-hero-nav button {
  opacity: 0;
  visibility: hidden;
}

/* Desktop: persistent prev/next. Mobile: always hidden (swipe only). */
@media (min-width: 992px) {
  .nq-hero .nq-hero-nav button,
  .nq-hero.is-arrows .nq-hero-nav button {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 991px) {
  .nq-hero .nq-hero-nav button,
  .nq-hero.is-arrows .nq-hero-nav button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.nq-hero-nav button,
.nq-dots {
  pointer-events: auto;
}

.nq-hero-nav button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.nq-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nq-dots button {
  width: 22px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
}

.nq-dots button.is-active {
  background: #fff;
}

.nq-subhero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1rem;
}

.nq-subcard {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.nq-subcard .nq-cover {
  height: 96px;
}

.nq-subcard .nq-card-title {
  font-size: 0.95rem;
}
.nq-subhero .nq-card-compact {
  min-width: 0;
}
.nq-subhero .nq-card-compact .nq-cover {
  height: 96px;
}
.nq-subhero .nq-card-compact .nq-card-title {
  font-size: 0.95rem;
}

.nq-latest {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
  padding: 1rem;
  max-height: 100%;
  overflow: auto;
}

.nq-latest h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nq-latest h2 a {
  color: inherit;
}

.nq-latest-item {
  display: flex;
  flex-direction: column;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.nq-latest-item strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.nq-latest-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.nq-latest-item .nq-tag {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 5.5rem);
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nq-latest-when {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
}

.nq-latest-item .nq-tag svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.nq-latest-item:hover .nq-tag,
.nq-latest-item:focus-visible .nq-tag {
  color: #fff;
}

.nq-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cat, #9CA3AF);
  flex: 0 0 auto;
}

.nq-section {
  margin-top: 2.3rem;
}

.nq-section-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.nq-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nq-catdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cat, #9CA3AF);
  flex: 0 0 auto;
}

.nq-viewall {
  margin-left: auto;
  color: var(--muted);
  border-bottom: 1px dotted var(--muted);
  font-weight: 600;
}

.nq-viewall:hover,
.nq-viewall:focus-visible {
  color: var(--cat, var(--ink));
  border-bottom-color: var(--cat, var(--ink));
}

/* Two-by-two until the content column (viewport minus 2rem) fits four
   tiles of about 250px with 16px gaps. That lands at 1080px. */
.nq-row,
.nq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nq-cardx,
.nqn-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  color: inherit;
}

.nq-row .nq-cardx {
  border-radius: 20px;
}

.nq-cardhit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nq-cover {
  display: block;
  height: 130px;
  background: var(--cat, #9CA3AF) center/cover no-repeat;
}

.nq-grid .nq-cover,
.nq-cardx .nq-cover {
  height: 140px;
}

.nq-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nq-catbar,
.nqn-card-bar {
  display: block;
  height: 4px;
  background: var(--cat, var(--nqn-cat, #9CA3AF));
}

.nq-card-body,
.nqn-card-body {
  display: block;
  padding: 0.85rem 0.9rem 2.7rem;
}

.nq-card-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.nq-round {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
}

.nq-round svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nq-round[data-nqn-fav].is-on {
  color: var(--nqn-heart);
}

.nq-round[data-nqn-fav]:hover,
.nq-round[data-nqn-fav]:focus-visible,
.nq-fav-toggle:hover,
.nq-fav-toggle:focus-visible {
  color: #FF4D88;
}

.nq-round[data-nqn-paper]:hover,
.nq-round[data-nqn-paper]:focus-visible,
.nq-round[data-nqn-paper].is-on {
  color: var(--nqn-paper);
}

.nq-round[data-nqn-share]:hover,
.nq-round[data-nqn-share]:focus-visible {
  color: var(--nqn-logo);
}

.nq-fa-pluswrap {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.nq-fa-plus {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nq-fa-plus svg {
  width: 9px;
  height: 9px;
}

.nq-share-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(24rem, calc(100vw - 2rem));
  max-width: 24rem;
}

.nq-share-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.nq-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.nq-share-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.nq-share-grid a:hover,
.nq-share-grid a:focus-visible {
  color: var(--ink);
  background: #F3F4F6;
}

.nq-share-grid svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nq-share-url {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.nq-share-url-text {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.nqn-modal-card #nq-share-copy {
  position: absolute;
  top: 0.35rem;
  right: 0.25rem;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
  font-weight: 400;
}

.nqn-modal-card #nq-share-copy svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nq-card-title,
.nqn-card-title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.nq-dek,
.nqn-card-summary {
  display: -webkit-box;
  margin: 0 0 0.45rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.nq-time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.nq-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.nq-keyword,
.nqn-chip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F3F4F6;
  color: var(--muted);
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
}

.nq-keyword:hover,
.nq-keyword:focus-visible {
  color: var(--ink);
  background: #E5E7EB;
  border-color: rgba(17, 24, 39, 0.18);
}

a.nqn-chip {
  color: var(--muted);
  text-decoration: none;
}

.nq-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.nq-kicker {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.nq-pagehead h1,
.nqn-article-title,
.nqn-static-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.nq-pagehead h1 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nq-latest-note {
  color: var(--muted);
  font-weight: 600;
}

.nq-article-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.nq-article,
.nqn-article-image {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.nq-article-hero {
  display: block;
  height: 360px;
  background: var(--cat, #9CA3AF) center/cover no-repeat;
}

.nq-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nq-article-body {
  padding: 1rem;
}

.nq-catlink {
  color: var(--muted);
  border-bottom: 1px dotted var(--muted);
  font-weight: 600;
}

.nq-catlink:hover,
.nq-catlink:focus-visible {
  color: var(--muted);
  border-bottom-color: var(--muted);
}

.nq-article .nq-keyword {
  font-size: 0.8rem;
}

.nq-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.nq-author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.nq-author:hover,
.nq-author:focus-visible,
.nq-author:hover .nq-avatar,
.nq-author:focus-visible .nq-avatar,
.nq-author:hover strong,
.nq-author:focus-visible strong {
  color: var(--nqn-logo);
}

.nq-author:hover .nq-avatar,
.nq-author:focus-visible .nq-avatar {
  border-color: var(--nqn-logo);
}

.nq-byline-meta {
  color: var(--muted);
}

.nq-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
}

.nq-byline strong {
  display: block;
}

.nq-byline span,
.nqn-article-summary {
  color: var(--muted);
}

.nqn-article-summary,
.nq-summary {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.nqn-article-body,
.nq-prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.nq-prose p {
  margin: 0 0 1rem;
}

.nq-rule {
  height: 1px;
  margin: 1rem 0;
  background: var(--line);
  border: 0;
}

.nq-rail-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0.5rem 0 0;
}

.nq-qr-row {
  display: flex;
  justify-content: center;
}

.nq-qr-link {
  display: inline-flex;
  line-height: 0;
  color: var(--ink);
}

.nq-qr-link:hover,
.nq-qr-link:focus-visible {
  color: var(--ink);
}

.nq-qr-row .nq-qr {
  width: 84px;
  height: 84px;
}

.nq-article-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.nq-article-actions .nq-act,
.nq-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  align-self: center;
  cursor: pointer;
}

.nq-article-actions .nq-act svg,
.nq-act svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nq-article-actions a.nq-act:hover,
.nq-article-actions a.nq-act:focus-visible {
  color: var(--nqn-logo);
}

.nq-article-actions a.nq-act-facebook:hover,
.nq-article-actions a.nq-act-facebook:focus-visible {
  color: #1877F2;
}

.nq-article-actions a.nq-act-linkedin:hover,
.nq-article-actions a.nq-act-linkedin:focus-visible {
  color: #0A66C2;
}

.nq-article-actions a.nq-act-x:hover,
.nq-article-actions a.nq-act-x:focus-visible {
  color: #0F1419;
}

.nq-article-actions .nq-act.nq-act-report {
  width: 48.4px;
  height: 48.4px;
  background: transparent;
  color: var(--ink);
}

.nq-article-actions .nq-act.nq-act-report svg {
  width: 24.2px;
  height: 24.2px;
}

.nq-act-report:hover,
.nq-act-report:focus-visible {
  color: #DC2626;
  background: transparent;
}

.nq-search-status {
  margin: 0 0 1rem;
  color: var(--muted);
}

.nq-empty {
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  padding: 1.5rem;
}

.nq-footer,
.nqn-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nq-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nq-footer-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #16a34a);
}

.nqn-footer-nav,
.nq-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.6rem 0;
}

.nqn-footer-nav a,
.nq-footer-nav a,
.nqn-footer-note {
  color: var(--muted);
}

.nqn-footer-nav a:hover,
.nqn-footer-nav a:focus-visible,
.nq-footer-nav a:hover,
.nq-footer-nav a:focus-visible {
  color: var(--nqn-logo);
}

.nqn-footer-note,
.nq-footer p {
  margin: 0.2rem 0;
}

.nqn-status,
.nqn-meta {
  color: var(--muted);
}

.nqn-status {
  margin: 1rem 0;
}

.nq-article h1 {
  margin: 0.55rem 0 0.7rem;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nq-cardx,
  .nqn-card,
  .nq-subcard,
  .nq-latest-item,
  .nq-menu-item,
  .nq-share a,
  .nq-iconbtn {
    transition: transform 0.12s ease, background 0.12s ease;
  }

  .nq-cardx:hover,
  .nqn-card:hover,
  .nq-subcard:hover,
  .nq-latest-item:hover,
  .nq-share a:hover,
  .nq-iconbtn:hover {
    transform: translateY(-1px);
    text-decoration: none;
  }

  .nq-cover img,
  .nq-slide-media img,
  .nq-article-hero img {
    transition: transform 0.25s ease;
  }

  .nq-cardx:hover .nq-cover img,
  .nqn-card:hover .nq-cover img,
  .nq-subcard:hover .nq-cover img {
    transform: scale(1.02);
  }
}

@media (min-width: 480px) {
  .nq-share-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  /* Home categories, Fossick, and category browse: four cards per row on desktop.
     Below this breakpoint both stay two per row (four items = two rows). */
  .nq-row,
  .nq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nq-topbar-row {
    flex-wrap: nowrap;
  }

  .nq-hero-row {
    grid-template-columns: 1fr;
  }

  .nq-hero {
    height: 320px;
  }

  .nq-latest {
    max-height: none;
  }

  .nq-row .nq-cover {
    height: 160px;
  }
}

@media (max-width: 767px) {
  /* Home category rows stay two-up on phones, like Ads Mart. */
  .nq-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .nq-row .nq-cover {
    height: 110px;
  }

  .nq-subhero {
    grid-template-columns: 1fr;
  }

  .nq-subcard .nq-cover {
    height: 140px;
  }

  .nq-pagehead {
    align-items: flex-start;
    flex-direction: column;
  }

  .nq-pagehead h1,
  .nqn-article-title,
  .nqn-static-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575px) {
  .nq-hero {
    height: 280px;
    border-radius: 18px;
  }

  .nq-subcard,
  .nq-latest,
  .nq-cardx,
  .nqn-card {
    border-radius: 18px;
  }

  .nq-article-hero {
    height: 260px;
  }

  .nq-article-body {
    padding: 1rem;
  }
}

@media (min-width: 992px) {
  .nq-main {
    margin-top: 3rem;
  }

  .nq-views {
    display: flex;
  }

  .nq-article-body {
    padding: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-cardx,
  .nqn-card,
  .nq-subcard,
  .nq-cover img,
  .nq-slide-media img {
    transition: none;
  }
}

/* Account, contact, and /my screens keep the same tokens. */
.nqn-static p {
  margin: 0 0 1rem;
}

.nqn-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.nqn-socials svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.nqn-contact-form,
.nqn-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.nqn-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nqn-field input,
.nqn-field textarea,
.nqn-field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
}

.nqn-login-form button,
.nqn-contact-form button,
.nqn-modal-card button:not(.nqn-modal-x):not(#nq-share-copy),
.nqn-download {
  align-self: flex-start;
  border: 2px solid #51705A;
  border-radius: 999px;
  background: #51705A;
  color: #fff;
  padding: 0.65rem 1.2rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nqn-login-form button:hover:not(:disabled),
.nqn-login-form button:focus-visible:not(:disabled),
.nqn-contact-form button:hover:not(:disabled),
.nqn-contact-form button:focus-visible:not(:disabled),
.nqn-modal-card button:not(.nqn-modal-x):not(#nq-share-copy):hover:not(:disabled),
.nqn-modal-card button:not(.nqn-modal-x):not(#nq-share-copy):focus-visible:not(:disabled),
.nqn-download:hover,
.nqn-download:focus-visible {
  background: #83B692;
  color: #51705A;
  border-color: #51705A;
}

.nqn-code-field input {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 1.8rem) 1px;
  background-position: 0.9rem 55%;
  background-repeat: no-repeat;
  letter-spacing: 0.28em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.nqn-check {
  display: flex;
  gap: 0.65rem;
  font-weight: 400;
}

/* t805: .nqn-my-tiles live-tile grid owned by account.css */
.nqn-my-tiles { display: grid; gap: 0.7rem; }

/* t805: .nqn-my-tile chrome owned by account.css (BookBag-inspired live tiles) */
.nqn-my-tile {
  /* see account.css — do not reintroduce aspect-ratio/radius here */
}

.nqn-my-tile-count,
.nqn-my-count {
  font-size: 2rem;
  font-weight: 950;
}

.nqn-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
  z-index: 80;
}

.nqn-modal[hidden] {
  display: none;
}

.nqn-modal-card {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  padding: 2.6rem 1.5rem 1.5rem;
  max-width: 22rem;
}

.nqn-modal-card.nq-share-panel {
  max-width: 26rem;
}

.nqn-modal-card.nq-report-panel,
.nqn-modal-card.nq-contact-panel {
  width: min(32rem, calc(100vw - 1.5rem));
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.nq-box-msg {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nq-box-msg.is-bad {
  color: #B91C1C;
}

.nq-id-legend {
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.nq-id-line,
.nq-id-sent {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nq-id-line strong {
  color: var(--ink);
  font-weight: 700;
}

.nq-id-badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--nqn-logo);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 1px;
}

.nq-otp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.nq-otp-row input {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  font: inherit;
}

.nq-report-piece {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.9rem 0 0.2rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.nq-report-piece img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.nq-report-piece strong {
  display: block;
  line-height: 1.25;
}

.nq-report-piece p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nqn-contact-form[hidden],
.nq-id-known[hidden],
.nq-id-anon[hidden],
.nq-id-sent[hidden],
.nq-id-line[hidden],
.nq-box-msg[hidden],
.nq-box-thanks[hidden],
.nq-otp-row input[hidden] {
  display: none;
}

.nqn-modal-card button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.nqn-modal-card .nqn-modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
  font-weight: 400;
  cursor: pointer;
}

.nqn-modal-card .nqn-modal-x svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nqn-field input.nqn-username-ok {
  border-color: #16A34A;
}

.nqn-field input.nqn-username-bad {
  border-color: #B91C1C;
}

/* t805: grid columns owned by account.css */
@media (min-width: 768px) {
  .nqn-my-tiles {
    /* see account.css */
  }
}

.nq-viewpill {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.2rem;
  padding: 4px;
  border: 2px solid #51705A;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.nq-viewpill button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #51705A;
  font: inherit;
  font-weight: 800;
  font-size: 0.9775rem;
  line-height: 1.2;
  padding: 0.29rem 1.04rem;
  cursor: pointer;
}

.nq-viewpill button[aria-pressed="true"] {
  border: 0;
  border-radius: 999px;
  background: #51705A;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9775rem;
  line-height: 1.2;
  padding: 0.29rem 1.04rem;
  cursor: pointer;
}

.nq-viewpill button:hover,
.nq-viewpill button:focus-visible {
  background: #E4EFE7;
  color: #51705A;
}

.nq-viewpill button[aria-pressed="true"]:hover,
.nq-viewpill button[aria-pressed="true"]:focus-visible {
  background: #3F5A47;
  color: #fff;
}

.nq-viewpill button:focus-visible {
  outline: 2px solid #51705A;
  outline-offset: 2px;
}

/* Account Connections / Content pills (same look as marketplace / Front|Back). */
.nq-account-main .nq-viewpill.nq-account-pills {
  margin: 0 auto 0.85rem;
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}
.nq-content-shell .nq-viewpill.nq-account-pills,
.nq-content-pills-wrap .nq-viewpill.nq-account-pills {
  margin: 0 auto 0.85rem;
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}
.nq-content-shell .nq-mh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}
.nq-content-shell .nq-mh-top .nqn-static-title { margin: 0; }
.nq-content-shell .nq-content-grid { margin: 1rem 0 0; }
.nq-meme-cardx .nq-meme-cover,
.nq-ad-cardx .nq-ad-cover {
  display: flex; align-items: center; justify-content: center;
  height: 140px; padding: 10px 12px; box-sizing: border-box;
  background: #F3F4F6; overflow: hidden;
}
.nq-meme-cardx .nq-meme-cover img,
.nq-ad-cardx .nq-ad-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px;
}
.nq-meme-cardx .nq-meme-mark,
.nq-ad-cardx .nq-ad-mark {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px;
  background: var(--cat, #51705A); color: #fff; font-weight: 800; font-size: 1.4rem;
}
.nq-ad-cardx .nq-card-body { padding: 0.75rem 0.85rem 0.9rem; }
.nq-ad-cardx .nq-ad-meta { display: block; color: #6B7280; font-size: 0.82rem; margin-top: 0.2rem; }
@media (max-width: 600px) {
  .nq-meme-cardx .nq-meme-cover,
  .nq-ad-cardx .nq-ad-cover { height: 118px; }
}
.nq-account-main .nq-viewpill a.nq-viewpill-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #51705A;
  font-weight: 800;
  font-size: 0.9775rem;
  line-height: 1.2;
  padding: 0.29rem 1.04rem;
  text-decoration: none;
}
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-current="page"],
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-pressed="true"] {
  background: #51705A;
  color: #fff;
}
.nq-account-main .nq-viewpill a.nq-viewpill-link:hover,
.nq-account-main .nq-viewpill a.nq-viewpill-link:focus-visible {
  background: #E4EFE7;
  color: #51705A;
}
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-current="page"]:hover,
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-pressed="true"]:hover,
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-current="page"]:focus-visible,
.nq-account-main .nq-viewpill a.nq-viewpill-link[aria-pressed="true"]:focus-visible {
  background: #3F5A47;
  color: #fff;
}

.nq-bell {
  flex: 0 0 auto;
}

.nq-favs {
  position: relative;
  flex: 0 0 auto;
}

.nq-favs-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nq-favs-panel {
  width: min(22rem, calc(100vw - 2rem));
  padding: 10px;
}

.nq-favs-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nq-favs-empty {
  margin: 0.4rem 0.2rem 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nq-fav-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.nq-fav-row img {
  width: 49px;
  height: 49px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.nq-fav-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 400;
  font-size: 0.8em;
  line-height: 1.25;
}

.nq-fav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c0c0c0;
  cursor: pointer;
  flex: 0 0 auto;
}

.nq-fav-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.nq-fav-toggle.is-on {
  color: #ff8fab;
}

.nq-favs-btn.is-flash {
  animation: nq-fav-pulse 0.4s ease-in-out;
}

@keyframes nq-fav-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.nq-fav-fly {
  display: inline-flex;
  line-height: 1;
  pointer-events: none;
}

.nq-fav-fly svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
  stroke: none;
}

.nq-favs-all {
  display: block;
  margin-top: 0.55rem;
  padding: 0.55rem 0.35rem 0.2rem;
  font-weight: 800;
  text-align: center;
}

.nq-account-main .nq-library-grid {
  margin-top: 0.85rem;
}

.nq-favs-page .nq-fav-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.75rem;
}

.nq-profile-subscribe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.nq-profile-qr {
  display: inline-flex;
  line-height: 0;
  color: var(--ink);
}

.nq-qr rect {
  fill: currentColor;
}

.nq-act .nq-qr {
  width: 28px;
  height: 28px;
}

.nq-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
  flex: none;
}

.nq-account-nav a {
  font-weight: 800;
  color: var(--muted);
}

.nq-inbox {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.nq-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nq-thread-list li {
  border-bottom: 1px solid var(--line);
}

.nq-thread-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-weight: 800;
}

.nq-unread {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--nqn-logo);
  flex: 0 0 auto;
}

.nq-message {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.nq-activity {
  margin: 0;
  padding-left: 1.2rem;
}

.nq-activity li {
  margin: 0 0 1rem;
}

.nq-market {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}

.nq-market-card,
.nq-edition-tile,
.nq-canvas-slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.nq-owner-tag {
  font-weight: 800;
  color: var(--nqn-logo);
}

.nq-advertise a {
  font-weight: 800;
}

.nq-edition-grid,
.nq-canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nq-canvas {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.nq-canvas-slot {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.nq-interstitial {
  text-align: center;
  padding: 2rem 0 3rem;
}

@media (min-width: 800px) {
  .nq-canvas {
    grid-template-columns: 1fr 1fr;
  }

  .nq-edition-grid,
  .nq-canvas-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nq-inbox {
    display: block;
  }

  .nq-inbox:not([data-open]) .nq-inbox-thread {
    display: none;
  }

  .nq-inbox[data-open] .nq-inbox-list {
    display: none;
  }
}

@media (min-width: 761px) {
  .nq-inbox-back {
    display: none;
  }
}

/* Article subscribe (right of publisher) */
.nq-article-subscribe-form {
  display: inline-flex;
  margin: 0;
}
.nq-article-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.nq-article-subscribe svg {
  width: 0.9rem;
  height: 0.9rem;
}
.nq-article-subscribe.is-on {
  background: color-mix(in srgb, var(--cat, #2a6) 18%, transparent);
}

/* Google Preferred Source below QR — Google Material / blue CTA look */
.nq-preferred-wrap {
  display: flex;
  justify-content: center;
  margin: 0.55rem 0 0.35rem;
}
.nq-preferred-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a73e8;
  font-family: "Google Sans", "Roboto", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2), 0 1px 3px 1px rgba(60, 64, 67, 0.1);
}
.nq-preferred-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.nq-preferred-btn:hover,
.nq-preferred-btn:focus-visible {
  background: #f8f9fa;
  border-color: #d2e3fc;
  color: #174ea6;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25), 0 2px 6px 2px rgba(60, 64, 67, 0.12);
}
.nq-preferred-btn:active {
  background: #e8f0fe;
  box-shadow: none;
}

/* Comments section */
.nq-comments {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.nq-comments-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.nq-comments-compose {
  margin-bottom: 1rem;
}
.nq-star-row {
  display: flex;
  justify-content: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
}
.nq-star-row.is-needed {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  border-radius: 4px;
}
.nq-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, currentColor 35%, transparent);
  cursor: pointer;
}
.nq-star svg {
  width: 1.25rem;
  height: 1.25rem;
}
.nq-star.is-on {
  color: #f5a623;
}
.nq-comments.is-replying .nq-star-row {
  opacity: 0.35;
  pointer-events: none;
}
.nq-compose-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}
.nq-compose-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.nq-comment-textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  height: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem 1.5rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.nq-char-count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.65;
  pointer-events: none;
}
.nq-comment-submit {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 5.25rem;
  min-height: 5.5rem;
  padding: 0.4rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--cat, #2a6) 16%, transparent);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.nq-comment-submit svg {
  width: 1.15rem;
  height: 1.15rem;
}
.nq-comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nq-comments-login {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}
.nq-comments-empty {
  margin: 0.85rem 0 1rem;
}
.nq-comments-empty-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1rem;
  border: 2px dotted color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 10px;
  text-align: left;
  opacity: 0.85;
}
.nq-comments-empty-inner svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  opacity: 0.7;
}
.nq-comments-empty-inner p {
  margin: 0;
  flex: 1 1 auto;
}
.nq-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nq-comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.nq-comment.is-reply {
  margin-left: 1.25rem;
  padding: 0.55rem 0;
  border-bottom-style: dashed;
}
.nq-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}
.nq-comment-author {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.nq-comment-stars {
  display: inline-flex;
  gap: 0.05rem;
}
.nq-comment-star {
  display: inline-flex;
  color: color-mix(in srgb, currentColor 30%, transparent);
}
.nq-comment-star.is-on {
  color: #f5a623;
}
.nq-comment-star svg {
  width: 0.85rem;
  height: 0.85rem;
}
.nq-comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.4rem;
}
.nq-comment-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
}
.nq-comment-score {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-right: 0.15rem;
}
.nq-comment-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}
.nq-comment-act svg {
  width: 1rem;
  height: 1rem;
}
.nq-comment-act:hover,
.nq-comment-act:focus-visible,
.nq-comment-act.is-on {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.nq-comment-act.is-on {
  color: #1a73e8;
}
.nq-view-more {
  display: inline-block;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: #1a73e8;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}
.nq-comment-thread {
  margin-top: 0.35rem;
}
.nq-comments-sentinel {
  height: 1px;
}


/* Logged-out sign-in prompt overlay */
.nq-signin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(32, 33, 36, 0.45);
  backdrop-filter: blur(1px);
}
.nq-signin-overlay[hidden] {
  display: none !important;
}
.nq-signin-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 12rem;
  max-width: 20rem;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  background: #fff;
  color: #202124;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.nq-signin-overlay-card p {
  margin: 0;
  font-size: 0.95rem;
}
.nq-signin-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  background: #1a73e8;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.nq-signin-overlay-btn:hover,
.nq-signin-overlay-btn:focus-visible {
  background: #174ea6;
}
.nq-signin-overlay-dismiss {
  border: 0;
  background: transparent;
  color: #5f6368;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}


/* 2026-10-16 NQN tweaks: compact home cards, categories burger, account quick icons */
/* Pin the time + actions row to the bottom so varying titles keep a level footer. */
.nq-row,
.nq-grid {
  align-items: stretch;
}
.nq-card-compact {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nq-card-compact .nq-card-body {
  padding-bottom: 0.2rem;
  flex: 1 1 auto;
  min-height: 0;
}
.nq-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 34px;
  padding: 0 0.6rem 0.45rem 0.9rem;
  pointer-events: none;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}
.nq-card-foot .nq-card-actions {
  position: static;
  pointer-events: auto;
}
.nq-card-foot .nq-time {
  display: inline;
}
.nq-catmenu {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}
.nq-catmenu-panel {
  left: 0;
  right: auto;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.nq-catmenu-panel .nq-menu-item {
  margin: 6px 0;
  padding: 11px 14px;
}
.nq-menu-quick {
  display: flex;
  gap: 0.5rem;
  margin: 0 4px 6px;
}
.nq-menu-quick .nq-favs-panel {
  position: static;
  width: auto;
  margin-top: 6px;
  box-shadow: none;
}
.nq-menu-quick .nq-favs {
  position: static;
}
.nq-menu-quick:has(.nq-favs-panel:not([hidden])) {
  flex-wrap: wrap;
}
.nq-menu-quick:has(.nq-favs-panel:not([hidden])) .nq-favs {
  flex: 1 1 100%;
  order: 2;
}
.nq-catmenu-btn:focus-visible,
.nq-account-orb:focus-visible {
  outline: 2px solid #51705A;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .nq-topbar-row { gap: 0.5rem; padding: 0.6rem 0; }
  .nq-brand { flex: 1 1 auto; justify-content: center; }
  .nq-brand img { height: 40px; }
}

/* 16 Oct: logo centred, +10% */
.nq-topbar-row { position: relative; }
.nq-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.nq-brand img { height: 59.4px; }
@media (max-width: 600px) {
  .nq-brand { flex: none; }
  .nq-brand img { height: 44px; }
}

.nq-time { white-space: nowrap; }

/* 2026-10-17: report trigger, modal head, integrated OTP row, full-width send */
.nq-act.nq-act-report:hover,.nq-act.nq-act-report:focus-visible,.nq-act.nq-act-report.is-hot{background:transparent;color:#DC2626}
.nq-act-report:hover svg path:first-child,.nq-act-report:focus-visible svg path:first-child,.nq-act-report.is-hot svg path:first-child{fill:#DC2626;stroke:#DC2626}
.nq-act-report:hover svg path:last-child,.nq-act-report:focus-visible svg path:last-child,.nq-act-report.is-hot svg path:last-child{fill:#fff;stroke:#fff}
.nq-modal-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:-.6rem -.4rem .6rem 0}
.nqn-modal-card.nq-report-panel,.nqn-modal-card.nq-contact-panel{padding-top:1rem}
.nq-modal-head h2{margin:0}
.nqn-modal-card .nq-modal-head .nqn-modal-x{position:static;flex:0 0 auto}
.nq-otp-row{flex-wrap:nowrap;gap:0;border:1px solid var(--line);border-radius:999px;background:var(--card);padding:4px;align-items:stretch}
.nq-otp-row:focus-within{border-color:#51705A}
.nq-otp-row input{border:0;background:transparent;border-radius:999px;outline:none}
.nqn-modal-card .nq-otp-row button{flex:0 0 auto;align-self:stretch;padding:.45rem 1rem;white-space:nowrap}
.nqn-modal-card .nq-otp-row button[data-phase="send"]::after{content:" \2192"}
/* t846: NQNModal (.nqn-dlg) OTP hug-pill — same as .nqn-modal-card */
.nqn-dlg-body .nq-otp-row button{flex:0 0 auto;align-self:stretch;padding:.45rem 1rem;white-space:nowrap}
.nqn-dlg-body .nq-otp-row button[data-phase="send"]::after{content:" \2192"}

.nqn-modal-card button.nq-btn-full,.nqn-contact-form button.nq-btn-full{align-self:stretch;width:100%;display:block}

/* 2026-10-23 unified account menu (grid) + nav quick icons */
.nq-topbar-tools{display:flex;align-items:center;gap:.35rem}
.nq-nav-quick{display:flex;align-items:center;gap:.35rem}
.nq-dropdown#nq-menu-panel{width:340px;padding:12px}
.nq-um-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.nq-um-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;border-radius:14px;background:transparent;color:#4B5563;text-decoration:none;transition:background .15s,color .15s}
.nq-um-tile .nq-um-ic{color:#83B692;display:grid;place-items:center;width:48px;height:48px}
.nq-um-tile svg{width:34px;height:34px}
.nq-um-lbl{font-size:11.5px;font-weight:600;line-height:1.1;text-align:center}
.nq-um-bottom{display:flex;justify-content:space-between;gap:4px;border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.nq-um-bt{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 4px;border-radius:10px;color:#6B7280;text-decoration:none;transition:background .15s,color .15s}
.nq-um-bt .nq-um-ic{color:#83B692;display:grid}.nq-um-bt svg{width:18px;height:18px}
.nq-um-bt .nq-um-lbl{font-size:10.5px}
.nq-um-out .nq-um-ic{color:#B91C1C}
.nq-um-tile:hover,.nq-um-tile:focus-visible,.nq-um-tile.is-active,.nq-um-bt:hover,.nq-um-bt:focus-visible,.nq-um-bt.is-active{background:#5f9a72;color:#fff;text-decoration:none;outline:0}
.nq-um-tile:hover .nq-um-ic,.nq-um-tile:focus-visible .nq-um-ic,.nq-um-tile.is-active .nq-um-ic,.nq-um-bt:hover .nq-um-ic,.nq-um-bt:focus-visible .nq-um-ic,.nq-um-bt.is-active .nq-um-ic{color:#fff}
@media (max-width:600px){.nq-dropdown#nq-menu-panel,.nq-dropdown#nq-favs-panel,.nq-favs-panel{position:fixed;left:3%;right:3%;top:64px;width:94%;max-width:none}.nq-um-tile{padding:14px 4px 12px}}
.nq-dropdown#nq-menu-panel{background:#fff}

/* 2026-10-24 speech-bubble pointers; position set by nav.js (nqn_ptr_place) */
#nq-menu-panel,#nq-favs-panel{background:#fff;overflow:visible}
#nq-menu-panel::before,#nq-favs-panel::before{content:"";position:absolute;top:-8px;left:calc(var(--nq-ptr,50%) - 8px);width:14px;height:14px;background:#fff;border-top:1px solid var(--line);border-left:1px solid var(--line);transform:rotate(45deg);border-top-left-radius:3px;pointer-events:none}
#nq-favs-panel .nq-favs-list{text-align:left}
#nq-favs-panel .nq-favs-all{display:block;text-align:center;margin-top:8px}
#nq-favs-panel .nq-favs-empty{text-align:center;margin:8px 0}

/* 2026-10-24: logo centred in the gap between categories (left) and right-side tools */
.nq-topbar-row .nq-brand{position:static;left:auto;transform:none;flex:1 1 auto;min-width:0;justify-content:center;order:1}
.nq-topbar-row .nq-brand img{max-width:100%;object-fit:contain}
.nq-topbar-row .nq-topbar-tools{margin-left:0;order:2}

/* 2026-10-24 V1: categories + account carousel in account dropdown; categories button removed */
.nq-topbar-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.nq-topbar-row .nq-brand{grid-column:2;flex:none;justify-content:center}
.nq-topbar-row .nq-topbar-tools{grid-column:3;justify-self:end;margin-left:0}
.nq-um-pages{overflow:hidden;touch-action:pan-y;outline:0;cursor:grab;user-select:none}
.nq-um-pages.nq-um-single{cursor:auto}
.nq-um-track{display:flex;transition:transform .32s ease}
.nq-um-track.is-drag{transition:none}
.nq-um-page{flex:0 0 100%;min-width:0}
.nq-um-pages a{-webkit-user-drag:none}
.nq-um-cat .nq-um-lbl{text-align:center;line-height:1.15;font-size:.72rem}
.nq-um-cat svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nq-um-dots{display:flex;justify-content:center;gap:8px;padding:6px 0 2px}
.nq-um-dot{width:8px;height:8px;padding:0;border:0;border-radius:99px;background:#d6e7db;cursor:pointer;transition:width .2s,background .2s}
.nq-um-dot.is-on{width:20px;background:#83B692}
.nq-um-dot:focus-visible{outline:2px solid #5f9a72;outline-offset:2px}
.nq-um-in .nq-um-ic{color:#83B692}

/* 2026-10-24 v24b: logo left, category-coloured tiles, logged-out sign-in button */
.nq-topbar-row .nq-brand{grid-column:1;justify-self:start}
.nq-um-cat .nq-um-ic{color:var(--cat,#83B692)}
.nq-um-cat:hover,.nq-um-cat:focus-visible,.nq-um-cat.is-active{background:color-mix(in srgb,var(--cat,#5f9a72) 88%,#000)}
.nq-um-cat:hover .nq-um-ic,.nq-um-cat:focus-visible .nq-um-ic,.nq-um-cat.is-active .nq-um-ic{color:#fff}
.nq-um-signin{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0 2px;padding:12px;border-radius:14px;background:#80B490;color:#fff;font-weight:700;text-align:center;text-decoration:none}
.nq-um-signin-ic{display:grid;place-items:center;color:#fff}
.nq-um-signin-ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nq-um-signin:hover,.nq-um-signin:focus-visible{background:#5f9a72;color:#fff;text-decoration:none;outline:0}

/* 2026-10-24 v24c: favourited hearts are pink */
.nq-round[data-nqn-fav].is-on,.nq-fav-toggle.is-on{color:#e84a8a}
.nq-round[data-nqn-fav].is-on:hover,.nq-round[data-nqn-fav].is-on:focus-visible{color:#c9356f}

/* 2026-10-24 NQNModal (reusable overlay + centred modal) */
.nqn-dlg-overlay{position:fixed;inset:0;z-index:1000;background:rgba(17,24,39,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.nqn-dlg-overlay[hidden]{display:none}
.nqn-dlg{background:#fff;border:7px solid var(--nqn-logo,#80B490);border-radius:16px;width:100%;max-width:720px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(0,0,0,.3);overflow:hidden}
.nqn-dlg-bar{display:flex;align-items:center;gap:8px;padding:10px 12px 10px 16px;border-bottom:1px solid #E5E7EB}
.nqn-dlg-title{flex:1;margin:0;font-size:1.1rem;font-weight:700;color:#1F2937}
.nqn-dlg-x,.nqn-dlg-back{border:0;background:transparent;font-size:1.6rem;line-height:1;cursor:pointer;color:#4B5563;width:36px;height:36px;border-radius:10px}
.nqn-dlg-back{font-size:1.2rem}
.nqn-dlg-x:hover,.nqn-dlg-back:hover,.nqn-dlg-x:focus-visible,.nqn-dlg-back:focus-visible{background:#5f9a72;color:#fff;outline:0}
.nqn-dlg-body{padding:16px;overflow:auto}
.nqn-dlg-body .nqn-login-form,.nqn-dlg-body .nqn-contact-form{max-width:none;margin:0}
.nq-create-grid{grid-template-columns:repeat(2,1fr);max-width:420px;margin:0 auto}
.nqn-dlg-loading{text-align:center;color:#6B7280;padding:24px}
body.nqn-dlg-open{overflow:hidden}
@media (max-width:600px){.nqn-dlg-overlay{padding:0}.nqn-dlg{width:90%;max-height:90vh}}

/* 2026-10-24 forms2: modal grows with content; overlay scrolls */
.nqn-dlg-overlay{align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;padding:32px 16px}
.nqn-dlg{max-height:none;overflow:visible;margin:auto}
.nqn-dlg-body{overflow:visible}
@media (max-width:600px){.nqn-dlg-overlay{padding:16px 0}.nqn-dlg{max-height:none}}
/* option tiles */
.nq-choice{border:0;padding:0;margin:0 0 1rem;min-width:0}
.nq-choice legend{font-weight:700;margin-bottom:.4rem;padding:0}
.nq-choice-grid{display:grid;grid-template-columns:repeat(var(--cols,3),1fr);gap:8px}
.nq-choice-tile{position:relative;cursor:pointer;border:1px solid #E5E7EB;text-align:center}
.nq-choice-tile input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.nq-choice-tile .nq-um-lbl{font-size:.8rem;line-height:1.2}
.nq-choice-tile:has(input:checked){background:#5f9a72;color:#fff;border-color:#5f9a72}
.nq-choice-tile:has(input:checked) .nq-um-ic{color:#fff}
.nq-choice-tile:has(input:focus-visible){outline:2px solid #5f9a72;outline-offset:2px}
.nq-choice-2 .nq-choice-grid{max-width:320px}
/* t814: .nqn-field{display:flex} overrides UA [hidden]; force pub rows off when Private */
.nqn-field[data-nqn-ad-pub-row][hidden],
[data-nqn-ad-pub-row][hidden]{display:none!important}
@media (max-width:600px){.nq-choice-cats .nq-choice-grid,.nq-choice-skins .nq-choice-grid{grid-template-columns:repeat(3,1fr)}.nq-choice-adfmt .nq-um-lbl{font-size:.72rem}}
/* skin preview icons */
.nq-skin-ic{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:44px;height:44px;border-radius:6px;border:1.5px solid currentColor;padding:3px}
.nq-skin-ic b{font-size:15px;line-height:1}
.nq-skin-ic i{display:block;width:80%;height:2px;background:currentColor;opacity:.6}
.nq-skin-classic b{font-family:Georgia,'Times New Roman',serif}
.nq-skin-fun-colourful{border-color:#E879A6}.nq-skin-fun-colourful b{font-family:'Comic Sans MS','Chalkboard SE',cursive;color:#F59E0B}.nq-skin-fun-colourful i:nth-of-type(1){background:#38BDF8;opacity:1}.nq-skin-fun-colourful i:nth-of-type(2){background:#A78BFA;opacity:1}
.nq-skin-1940s{background:#F3E9D2;color:#5B4636;border-style:double;border-width:3px}.nq-skin-1940s b{font-family:'Courier New',monospace}
.nq-skin-plain{border-width:1px}.nq-skin-plain b{font-family:system-ui,sans-serif;font-weight:400}
.nq-skin-modern{border-radius:12px}.nq-skin-modern b{font-family:'Helvetica Neue',Arial,sans-serif;font-weight:300;letter-spacing:.05em}
.nq-skin-elegant-serif b{font-family:'Didot','Bodoni MT',Georgia,serif;font-style:italic}.nq-skin-elegant-serif i{height:1px}
.nq-skin-bold-tabloid{background:#DC2626;color:#fff;border-color:#DC2626;border-radius:2px}.nq-skin-bold-tabloid b{font-family:Impact,'Arial Black',sans-serif;font-size:17px}
.nq-choice-tile:has(input:checked) .nq-skin-ic{box-shadow:0 0 0 2px #fff}
/* tag input */
.nq-tagin{position:relative}
.nq-tagin-box{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border:1px solid var(--line,#D1D5DB);border-radius:12px;padding:6px 8px;background:#fff}
.nq-tagin-chips{display:contents}
.nq-tag-chip{display:inline-flex;align-items:center;gap:2px;background:#E8F2EB;color:#2F5D3E;border-radius:999px;padding:2px 4px 2px 10px;font-size:.85rem}
.nq-tag-chip button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:1rem;line-height:1;width:20px;height:20px;border-radius:50%;padding:0}
.nq-tag-chip button:hover{background:#5f9a72;color:#fff}
.nqn-field .nq-tagin-input,.nq-tagin-input{flex:1;min-width:140px;border:0!important;outline:0;box-shadow:none!important;padding:6px 4px!important;background:transparent;margin:0}
.nq-tagin-list{position:absolute;left:0;right:0;z-index:5;list-style:none;margin:4px 0 0;padding:4px;background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.12);max-height:260px;overflow:auto}
.nq-tagin-list li{padding:8px 10px;border-radius:8px;cursor:pointer;display:flex;justify-content:space-between;gap:8px}
.nq-tagin-list li small{color:#6B7280}
.nq-tagin-list li.is-on,.nq-tagin-list li:hover{background:#5f9a72;color:#fff}.nq-tagin-list li.is-on small,.nq-tagin-list li:hover small{color:#E5F3E9}
/* ad image drop */
.nq-adimg{margin:0 0 1rem}
.nq-adimg-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;border:2px dotted color-mix(in srgb,#4B5563 28%,transparent);border-radius:10px;background:transparent;cursor:pointer;color:#6B7280;overflow:hidden;padding:0;position:relative}
.nq-adimg[data-format=masthead] .nq-adimg-drop,.nq-adimg[data-format=banner_ad] .nq-adimg-drop{aspect-ratio:5/1}
.nq-adimg[data-format=square] .nq-adimg-drop{aspect-ratio:1/1;max-width:260px;margin:0 auto}
.nq-adimg[data-format=tall] .nq-adimg-drop{aspect-ratio:1/2;max-width:200px;margin:0 auto}
.nq-adimg-drop:hover,.nq-adimg-drop:focus-visible{border-color:#5f9a72;color:#5f9a72;outline:0}
.nq-adimg-plus{display:grid;place-items:center;width:44px;height:44px;border:2px solid currentColor;border-radius:50%;font-size:28px;line-height:1}
.nq-adimg[data-format=masthead] .nq-adimg-drop,.nq-adimg[data-format=banner_ad] .nq-adimg-drop{flex-direction:row}
.nq-adimg-lbl{font-weight:600}
.nq-adimg-drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nq-adimg-status{margin:.4rem 0 0;font-size:.85rem;color:#6B7280;text-align:center}
.nq-adimg-status.is-err{color:#B91C1C}
.nq-adimg .nq-adimg-drop{border-radius:14px!important}.nq-adimg .nq-adimg-drop img{border-radius:12px}

/* 2026-10-24 forms3: round back button, full-width bottom buttons, standard drop area, autosave, body editor. */
.nqn-dlg-back{width:auto;height:auto;min-width:40px;padding:2px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:1rem;background:transparent!important;color:inherit!important}
.nqn-dlg-back-c{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--nqn-logo,#80B490);box-shadow:0 2px 0 rgba(95,154,114,.35);transition:transform .15s ease,background .15s ease}
.nqn-dlg-back-c svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.nqn-dlg-back-t{font-size:.66rem;font-weight:700;line-height:1;color:#5f9a72;letter-spacing:.03em}
.nqn-dlg-back:hover .nqn-dlg-back-c,.nqn-dlg-back:focus-visible .nqn-dlg-back-c{background:#5f9a72;transform:scale(1.07)}
.nqn-dlg-back:focus-visible{outline:2px solid #5f9a72;outline-offset:1px}
.nq-btn-full{display:block!important;width:100%!important;max-width:none!important;margin:1.25rem 0 0!important;border-radius:9px!important;padding:14px 16px!important;font-size:1rem;font-weight:700;background:#fff!important;color:#80B490!important;border:1px solid #80B490!important}
.nq-btn-full:hover,.nq-btn-full:active,.nq-btn-full:focus-visible{background:#5f9a72!important;color:#fff!important;border-color:#5f9a72!important}
.nqn-dlg-body form>.nq-btn-full:last-child{width:calc(100% - 6px)!important;max-width:calc(100% - 6px)!important;margin:1.25rem 3px 3px!important;border-radius:9px!important;padding:14px 16px!important;background:#fff!important;color:#80B490!important;border:1px solid #80B490!important}
.nqn-dlg-body form>.nq-btn-full:last-child:hover,
.nqn-dlg-body form>.nq-btn-full:last-child:active,
.nqn-dlg-body form>.nq-btn-full:last-child:focus-visible{background:#5f9a72!important;color:#fff!important;border-color:#5f9a72!important}
.nq-adimg-drop{background:#fff!important;border:2px dotted var(--nqn-logo,#80B490)!important;color:#5f9a72}
.nq-adimg-drop:hover,.nq-adimg-drop:focus-visible{border-color:#5f9a72!important;background:#fbfdfb!important}
.nq-adimg[data-format=hero] .nq-adimg-drop{aspect-ratio:16/9}
.nq-adimg[data-format=meme] .nq-adimg-drop{aspect-ratio:4/3;width:100%;max-width:none}
.nq-adimg[data-format=meme] .nq-adimg-drop img{object-fit:contain;background:#fff}
.nq-adimg.is-busy .nq-adimg-drop{opacity:.6;cursor:progress}
.nq-autosave{margin:0 0 .5rem;min-height:1.1em;font-size:.8rem;color:#6B7280;text-align:right}
.nq-autosave.is-err{color:#B45309}
.nq-joke-new,.nq-meme-new{display:block}
.nq-joke-new .nq-joke-compose,.nq-meme-new .nq-meme-compose{display:flex;gap:8px;align-items:flex-start}
.nq-joke-new .nq-joke-desc,.nq-meme-new .nq-meme-desc{flex:1}
.nq-rte-bar{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #D1D5DB;border-bottom:0;border-radius:10px 10px 0 0;background:#F9FAFB}
.nq-rte-bar button{width:34px;height:32px;border:0;border-radius:7px;background:transparent;color:#374151;font-size:.95rem;cursor:pointer;padding:0;line-height:1}
.nq-rte-bar button:hover,.nq-rte-bar button.is-on{background:#E3F0E7;color:#2f5f3f}
.nq-rte-ed{min-height:220px;padding:10px 12px;border:1px solid #D1D5DB;border-radius:0 0 10px 10px;background:#fff;line-height:1.55;overflow-wrap:anywhere;text-align:left;font-weight:400}
.nq-rte-ed:focus{outline:2px solid #80B490;outline-offset:-1px}
.nq-rte-ed:empty::before{content:'Write your article…';color:#9CA3AF}
.nq-rte-ed h2{font-size:1.25rem;margin:.6em 0 .3em}.nq-rte-ed p{margin:0 0 .6em}.nq-rte-ed ul{padding-left:1.3em}
.nq-rte-ed blockquote{margin:.5em 0;padding:.2em .8em;border-left:4px solid #80B490;color:#4B5563}
.nq-rte-src{display:none!important}

/* forms4: blank drop until hover/focus/active; keep dotted border */
.nq-adimg-plus,.nq-adimg-lbl{opacity:1;color:#5f9a72;transition:opacity .15s ease,color .15s ease}
.nq-adimg.is-hover .nq-adimg-plus,.nq-adimg.is-hover .nq-adimg-lbl,
.nq-adimg.is-active .nq-adimg-plus,.nq-adimg.is-active .nq-adimg-lbl,
.nq-adimg-drop:hover .nq-adimg-plus,.nq-adimg-drop:hover .nq-adimg-lbl,
.nq-adimg-drop:focus-visible .nq-adimg-plus,.nq-adimg-drop:focus-visible .nq-adimg-lbl{opacity:1}
.nq-adimg-drop:has(img) .nq-adimg-plus,
.nq-adimg-drop:has(img) .nq-adimg-lbl{display:none!important;opacity:0}

/* forms4: toolbar flush to editor with thin divider */
.nq-rte{display:flex;flex-direction:column;gap:0}
.nq-rte>.nq-rte-bar{margin:0;border-bottom:1px solid #D1D5DB}
.nq-rte>.nq-rte-ed{margin:0;border-top:0;border-radius:0 0 10px 10px}

/* forms4: wand matches caption textarea height (override account.css fixed 3.25rem) */
.nq-joke-new .nq-joke-compose,.nq-meme-new .nq-meme-compose{display:grid;grid-template-columns:1fr 3.25rem;grid-template-rows:auto 1fr;gap:8px;align-items:stretch}
.nq-joke-new .nq-joke-desc,.nq-meme-new .nq-meme-desc{display:contents}
.nq-joke-new .nq-joke-desc > span:first-child,.nq-meme-new .nq-meme-desc > span:first-child{grid-column:1;grid-row:1}
.nq-joke-new .nq-joke-box,.nq-meme-new .nq-meme-box{grid-column:1;grid-row:2;position:relative;display:flex;flex-direction:column;min-width:0}
.nq-joke-new .nq-joke-box textarea,.nq-meme-new .nq-meme-box textarea{flex:1;min-height:8.5rem;width:100%}
.nqn-login-form.nq-joke-new button.nq-joke-generate,.nqn-login-form.nq-meme-new button.nq-meme-generate{grid-column:2;grid-row:2;align-self:stretch!important;justify-self:stretch;width:100%!important;height:auto!important;min-height:0;flex:none!important;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px}

/* forms4: circular back only */
.nqn-dlg-back{display:inline-flex;flex-direction:column;align-items:center;gap:0;background:transparent;border:0;padding:0;cursor:pointer;color:#5f9a72}
.nqn-dlg-back[hidden]{display:none!important}
.nqn-dlg-back-c{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#80B490;color:#fff}
.nqn-dlg-back-c svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nqn-dlg-back-t{display:none!important}

/* forms4: unread badges on menu tiles + orb */
.nq-um-ic{position:relative}
.nq-um-badge,.nq-orb-badge{position:absolute;top:-2px;right:-2px;width:10px;height:10px;border-radius:50%;background:#DC2626;border:2px solid #fff;pointer-events:none;z-index:2}
.nq-account-orb{position:relative}
.nq-orb-badge{top:0;right:0;width:11px;height:11px}

/* forms5: orb badge fully visible; drop contrast; back no shadow; modal btn fill + 3px; mobile cards */
.nq-account-orb{overflow:visible!important;position:relative;z-index:2}
.nq-account-orb img{width:100%;height:100%;object-fit:cover;border-radius:999px;display:block}
.nq-orb-badge{top:-1px!important;right:-1px!important;z-index:5!important;width:11px;height:11px}
.nq-topbar-tools,.nq-menu{overflow:visible}

.nqn-login-form button.nq-adimg-drop,
.nqn-contact-form button.nq-adimg-drop,
button.nq-adimg-drop{
  background:#fff!important;color:#5f9a72!important;border:2px dotted var(--nqn-logo,#80B490)!important;
  border-radius:14px!important;font-weight:600!important;padding:0!important;align-self:stretch!important
}
.nqn-login-form button.nq-adimg-drop:hover,
.nqn-login-form button.nq-adimg-drop:focus,
.nqn-login-form button.nq-adimg-drop:focus-visible,
.nqn-login-form button.nq-adimg-drop:active,
.nqn-contact-form button.nq-adimg-drop:hover,
.nqn-contact-form button.nq-adimg-drop:focus,
.nqn-contact-form button.nq-adimg-drop:focus-visible,
.nqn-contact-form button.nq-adimg-drop:active,
button.nq-adimg-drop:hover,
button.nq-adimg-drop:focus,
button.nq-adimg-drop:focus-visible,
button.nq-adimg-drop:active{background:#fbfdfb!important;color:#5f9a72!important;border-color:#5f9a72!important}
.nq-adimg-plus,.nq-adimg-lbl{color:#5f9a72!important;opacity:1!important;transition:opacity .15s ease,color .15s ease}
.nq-adimg-plus{border-color:currentColor!important}
.nq-adimg.is-hover .nq-adimg-plus,.nq-adimg.is-hover .nq-adimg-lbl,
.nq-adimg.is-active .nq-adimg-plus,.nq-adimg.is-active .nq-adimg-lbl,
.nq-adimg-drop:hover .nq-adimg-plus,.nq-adimg-drop:hover .nq-adimg-lbl,
.nq-adimg-drop:focus .nq-adimg-plus,.nq-adimg-drop:focus .nq-adimg-lbl,
.nq-adimg-drop:focus-visible .nq-adimg-plus,.nq-adimg-drop:focus-visible .nq-adimg-lbl,
.nq-adimg-drop:active .nq-adimg-plus,.nq-adimg-drop:active .nq-adimg-lbl{opacity:1!important;color:#5f9a72!important}

.nqn-dlg-back-c{box-shadow:none!important}

/* 3px gap from modal inner border: body pad 3px; form fields get 13px extra inline */
.nqn-dlg-body{padding:16px 3px 3px!important}
.nqn-dlg-body form,.nqn-dlg-body .nqn-dlg-form form{padding-left:13px;padding-right:13px;box-sizing:border-box}
.nqn-dlg-body form>.nq-btn-full:last-child,
.nqn-dlg-body .nqn-dlg-form form>.nq-btn-full:last-child{
  width:calc(100% + 26px)!important;max-width:none!important;
  margin:1.25rem -13px 0!important;
  border-radius:9px!important;padding:14px 16px!important;
  background:#80B490!important;color:#fff!important;border:1px solid #80B490!important;
  box-sizing:border-box
}
.nqn-dlg-body form>.nq-btn-full:last-child:hover,
.nqn-dlg-body form>.nq-btn-full:last-child:active,
.nqn-dlg-body form>.nq-btn-full:last-child:focus-visible,
.nqn-dlg-body .nqn-dlg-form form>.nq-btn-full:last-child:hover,
.nqn-dlg-body .nqn-dlg-form form>.nq-btn-full:last-child:active,
.nqn-dlg-body .nqn-dlg-form form>.nq-btn-full:last-child:focus-visible{
  background:#5f9a72!important;color:#fff!important;border-color:#5f9a72!important
}
/* standalone page buttons keep prior invert unless in modal — leave .nq-btn-full global as-is for non-modal */

@media (max-width:600px){
  .nq-main{width:min(1180px,calc(100% - 1.25rem))}
  .nq-row,.nq-grid{gap:10px}
  .nq-card-body,.nqn-card-body{padding:0.65rem 0.5rem 0.3rem}
  .nq-card-foot{padding:0 0.4rem 0.4rem;gap:0.2rem}
  .nq-card-foot .nq-time{font-size:0.72rem;min-width:0}
  .nq-card-actions{right:4px;bottom:4px;gap:1px}
  .nq-card-foot .nq-card-actions{gap:1px;flex-shrink:0}
  .nq-round{width:24px;height:24px;flex:0 0 24px}
  .nq-round svg{width:14px;height:14px}
  .nq-fa-pluswrap{transform:scale(0.92)}
  .nq-card-compact .nq-cover,.nq-grid .nq-cover,.nq-cardx .nq-cover{height:118px}
}

/* 2026-10-24 login: split premium promo + BookBag-style OTP row */
.nq-login-shell{max-width:920px;margin:1.25rem auto 2.5rem;padding:0}
.nq-login-split{display:grid;grid-template-columns:1.05fr 0.95fr;gap:0;border:1px solid #80B490;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 12px 36px rgba(17,24,39,.06)}
.nq-login-promo{background:linear-gradient(165deg,#5f9a72 0%,#80B490 55%,#9cc9a8 100%);color:#fff;padding:1.75rem 1.5rem 1.6rem}
.nq-login-promo-kicker{margin:0 0 .35rem;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.9}
.nq-login-promo-title{margin:0 0 1rem;font-size:1.45rem;line-height:1.2;font-weight:900;color:#fff}
.nq-login-price{margin:0 0 1.1rem;display:flex;flex-direction:column;gap:.2rem}
.nq-login-price-main{display:flex;align-items:baseline;gap:.25rem}
.nq-login-price-num{font-size:2.35rem;font-weight:950;line-height:1}
.nq-login-price-unit{font-size:1.05rem;font-weight:700;opacity:.95}
.nq-login-price-note{font-size:.82rem;opacity:.9}
.nq-login-features{margin:0 0 1rem;padding:0 0 0 1.1rem;display:grid;gap:.55rem;font-size:.95rem;line-height:1.35}
.nq-login-features li{padding-left:.1rem}
.nq-login-promo-note{margin:0;font-size:.88rem;line-height:1.35;opacity:.95}
.nq-login-upgrade{display:inline-flex;align-items:center;justify-content:center;padding:.7rem 1.15rem;border-radius:999px;background:#fff;color:#51705A;font-weight:800;text-decoration:none;border:2px solid #fff;cursor:pointer;font:inherit}
.nq-login-upgrade:hover,.nq-login-upgrade:focus-visible{background:#f3faf5;color:#3d5644;outline:0}
button.nq-login-upgrade{appearance:none;-webkit-appearance:none}
/* 2026-10-24 premium page: login-promo feel, signed-in only */
.nq-premium-shell{max-width:720px;margin:1.25rem auto 2.5rem}
.nq-premium-card{border-radius:20px;overflow:hidden;border:1px solid #80B490;box-shadow:0 12px 36px rgba(17,24,39,.06);background:linear-gradient(165deg,#5f9a72 0%,#80B490 55%,#9cc9a8 100%);color:#fff;padding:1.85rem 1.6rem 1.7rem}
.nq-premium-card .nq-login-promo-kicker,.nq-premium-card .nq-login-promo-title,.nq-premium-card .nq-login-price,.nq-premium-card .nq-login-features,.nq-premium-card .nq-login-promo-note{color:#fff}
.nq-premium-card .nq-login-features{margin-bottom:1.15rem}
.nq-premium-extra{margin:0 0 1.15rem;font-size:.95rem;line-height:1.45;opacity:.95}
.nq-premium-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:.25rem}
.nq-premium-status{background:#fff;color:#1f2937;padding:1.85rem 1.6rem 1.7rem}
.nq-premium-status h1{margin:0 0 .5rem;font-size:1.55rem;font-weight:950;color:#1f2937}
.nq-premium-status p{margin:0 0 .65rem;color:#4b5563;line-height:1.45}
.nq-premium-status .nq-premium-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .75rem;border-radius:999px;background:#e8f5ec;color:#51705A;font-weight:800;font-size:.85rem;margin-bottom:.85rem}
.nq-premium-status a{color:#51705A;font-weight:700}
.nq-premium-checkout{margin:0}
.nq-premium-promo-wrap{display:flex;flex-direction:column;align-items:center;margin:0 auto;width:100%;max-width:420px;box-sizing:border-box}
.nq-premium-promo-label{display:block;width:100%;text-align:center;font-size:.82rem;font-weight:700;margin:0 0 .45rem;opacity:.95;color:#fff}
.nq-premium-promo-opt{font-weight:500;opacity:.85}
.nq-premium-promo-row{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;width:100%;max-width:420px;box-sizing:border-box;padding:3px;border-radius:999px;background:#fff;border:2px solid rgba(255,255,255,.95);position:relative;animation:nq-premium-glow 2.4s ease-in-out infinite}
.nq-premium-promo-row[data-state="valid"]{border-color:#c8f0d4;box-shadow:0 0 0 2px rgba(34,197,94,.35)}
.nq-premium-promo-row[data-state="invalid"]{border-color:#fecaca;animation:none;box-shadow:none;opacity:.95}
.nq-premium-promo-row[data-state="checking"]{opacity:.92}
.nq-premium-promo-tick{flex:0 0 auto;align-self:center;margin:0 0 0 .55rem;width:1.15rem;height:1.15rem;border-radius:999px;background:#22c55e;color:#fff;font-size:.72rem;font-weight:900;line-height:1.15rem;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.nq-premium-promo-tick[hidden]{display:none!important}
.nq-premium-promo-input{flex:1 1 auto;min-width:0;border:0;outline:none;background:transparent;border-radius:999px;padding:.65rem .75rem;font:inherit;font-weight:700;letter-spacing:.06em;color:#1f2937}
.nq-premium-promo-input::placeholder{font-weight:600;letter-spacing:normal;opacity:.55}
.nq-premium-upgrade{flex:0 0 auto;align-self:stretch;margin:0;padding:.45rem 1.05rem;border:0;border-radius:1px 999px 999px 1px;background:#fff;color:#51705A;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap;box-shadow:inset 0 0 0 2px #80B490;animation:nq-premium-btn-pulse 2.4s ease-in-out infinite}
.nq-premium-upgrade:hover:not(:disabled),.nq-premium-upgrade:focus-visible:not(:disabled){background:#f3faf5;color:#3d5644;outline:0}
.nq-premium-upgrade:disabled{cursor:not-allowed;opacity:.45;animation:none;box-shadow:inset 0 0 0 2px #cbd5e1;color:#6b7280;background:#f3f4f6}
.nq-premium-promo-hint{margin:.45rem 0 0;font-size:.82rem;line-height:1.3;text-align:center;color:#fff;opacity:.95;min-height:1.1em}
.nq-premium-promo-hint[hidden]{display:none!important}
.nq-premium-promo-hint.is-bad{color:#fff;opacity:1;text-shadow:0 1px 2px rgba(0,0,0,.15)}
@keyframes nq-premium-glow{
  0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.15),0 0 0 0 rgba(255,255,255,.1)}
  50%{box-shadow:0 0 0 4px rgba(255,255,255,.28),0 0 18px 2px rgba(255,255,255,.22)}
}
@keyframes nq-premium-btn-pulse{
  0%,100%{box-shadow:inset 0 0 0 2px #80B490,0 0 0 0 rgba(255,255,255,.2)}
  50%{box-shadow:inset 0 0 0 2px #5f9a72,0 0 0 3px rgba(255,255,255,.35)}
}
@media (max-width:600px){
  .nq-premium-promo-wrap{max-width:100%;padding:0 .15rem;box-sizing:border-box}
  .nq-premium-promo-row{max-width:100%}
  .nq-premium-upgrade{padding:.45rem .8rem;font-size:.92rem}
}
/* legacy actions (status page / notes) */
.nq-premium-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:.25rem}

.nq-login-panel{padding:1.75rem 1.5rem 1.6rem;background:#fff;display:flex;flex-direction:column;justify-content:center;min-width:0}
.nq-login-title{margin:0 0 .35rem;font-size:1.55rem;font-weight:950;color:#1f2937}
.nq-login-lead{margin:0 0 .85rem;color:#6B7280;font-size:.92rem}
.nq-login-panel .nqn-login-form{margin:0;max-width:none}
.nq-login-panel .nq-otp-row.nq-login-otp-row{flex-wrap:nowrap;gap:0;border:1px solid var(--line,#e5e7eb);border-radius:999px;background:#fff;padding:3px;align-items:stretch}
.nq-login-panel .nq-otp-row.nq-login-otp-row:focus-within{border-color:#51705A}
.nq-login-panel .nq-otp-row.nq-login-otp-row input{flex:1 1 auto;min-width:0;border:0;background:transparent;border-radius:999px;outline:none;padding:.65rem .85rem;font:inherit;color:var(--ink,#111827);letter-spacing:normal;font-family:inherit;background-image:none!important}
.nq-login-panel .nq-login-code-input{letter-spacing:.12em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
/* Outer end of trailing button matches pill; inner corners ~1px to maximise field space */
.nq-login-panel .nq-login-otp-btn{flex:0 0 auto;align-self:stretch;margin:0;padding:.45rem .8rem;border-radius:1px 999px 999px 1px;border:0;background:#80B490;color:#fff;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.nq-login-panel .nq-login-otp-btn:hover:not(:disabled),.nq-login-panel .nq-login-otp-btn:focus-visible:not(:disabled){background:#5f9a72;color:#fff;border-color:transparent}
.nq-login-panel .nq-login-otp-btn[data-nqn-login-send]::after{content:" \2192"}
.nq-login-panel .nq-login-resend{border-radius:1px;background:#5f9a72;margin-right:2px}
.nq-login-panel .nq-login-cancel{border-radius:1px 999px 999px 1px;background:transparent;color:#6B7280;box-shadow:none}
.nq-login-panel .nq-login-cancel:hover:not(:disabled),.nq-login-panel .nq-login-cancel:focus-visible:not(:disabled){background:#f3f4f6;color:#374151}
.nq-login-panel .nq-login-signin{align-self:stretch;width:100%;margin-top:.35rem;border-radius:999px;background:#80B490;border:2px solid #80B490;color:#fff;font-weight:800;padding:.7rem 1.2rem}
.nq-login-panel .nq-login-signin:hover:not(:disabled),.nq-login-panel .nq-login-signin:focus-visible:not(:disabled){background:#5f9a72;border-color:#5f9a72;color:#fff}
.nq-login-panel .nq-otp-row[hidden],.nq-login-panel .nq-login-signin[hidden]{display:none!important}
.nqn-code-field input,.nq-login-code-input{background-image:none!important}
@media (max-width:720px){
  .nq-login-split{grid-template-columns:1fr}
  .nq-login-promo{padding:1.35rem 1.2rem 1.25rem}
  .nq-login-promo-title{font-size:1.25rem}
  .nq-login-price-num{font-size:2rem}
  .nq-login-panel{padding:1.35rem 1.2rem 1.4rem}
  .nq-login-panel .nq-otp-row.nq-login-otp-row{flex-wrap:nowrap;border-radius:999px}
  .nq-login-panel .nq-otp-row.nq-login-otp-row input{flex:1 1 auto;border-radius:999px}
  .nq-login-panel .nq-login-otp-btn{flex:0 0 auto;min-height:40px;padding:.45rem .65rem;font-size:.88rem}
}


/* Premium upgrade success modal (user-menu style tiles + full-width Close) */
.nq-premium-success-msg{margin:0 0 14px;color:#374151;font-size:15px;line-height:1.45;text-align:center}
.nq-premium-success-tiles{margin:0 0 16px!important}
.nq-premium-success-tiles .nq-um-tile{
  border:0;background:transparent;cursor:pointer;font:inherit;color:#4B5563;width:100%;
}
.nq-premium-success-tiles .nq-um-tile:hover,
.nq-premium-success-tiles .nq-um-tile:focus-visible{
  background:var(--nqn-mark,#83B692)!important;color:#fff!important;outline:none;
}
.nq-premium-success-tiles .nq-um-tile:hover .nq-um-ic,
.nq-premium-success-tiles .nq-um-tile:focus-visible .nq-um-ic,
.nq-premium-success-tiles .nq-um-tile:hover .nq-um-lbl,
.nq-premium-success-tiles .nq-um-tile:focus-visible .nq-um-lbl{color:#fff!important}
.nq-premium-success-tiles .nq-um-ic{display:grid;place-items:center;width:40px;height:40px}
.nq-premium-success-tiles .nq-um-ic svg{width:24px;height:24px}
.nq-premium-success-tiles .nq-um-lbl{font-size:12px;font-weight:600}
.nq-premium-success-close{
  display:block;width:100%;margin:0;padding:12px 16px;border:0;border-radius:12px;
  background:var(--nqn-logo,#80B490);color:#fff;font:inherit;font-weight:700;cursor:pointer;
}
.nq-premium-success-close:hover,
.nq-premium-success-close:focus-visible{filter:brightness(.95);outline:none}

/* Phase 1b — tiny premium sash: diagonal across top-right (above icon centre). NQN greens.
   2026-10-24 post-cursor: nudge sash down so full label stays inside overflow:hidden tile
   (was top:1–4px → clipped under tile/panel edge). Still reads as top-right corner sash. */
.nq-um-tile.nq-um-locked,
.nq-um-bt.nq-um-locked,
.nqn-my-tile.nq-um-locked{
  position:relative;
  overflow:hidden;
}
.nq-um-ribbon{
  position:absolute;
  top:10px;right:-18px;z-index:3;
  width:68px;padding:2px 0;
  text-align:center;
  transform:rotate(45deg);
  transform-origin:center;
  background:linear-gradient(135deg,var(--nqn-mark-dark,#51705A),var(--nqn-logo,#80B490));
  color:#fff;font-size:7px;font-weight:800;letter-spacing:.05em;line-height:1.15;
  text-transform:lowercase;pointer-events:none;white-space:nowrap;
  box-shadow:0 1px 2px rgba(81,112,90,.35);
}
/* Slightly above pure corner-to-corner through icon centre; fully on-tile. */
.nq-um-tile .nq-um-ribbon{top:9px;right:-22px;width:76px;font-size:6px;letter-spacing:.02em}
.nq-um-bt .nq-um-ribbon{top:7px;right:-16px;width:52px;font-size:5.5px;padding:1px 0}
.nqn-my-tile .nq-um-ribbon{top:11px;right:-18px;width:68px;font-size:7px;padding:2px 0}
.nq-um-tile:hover .nq-um-ribbon,
.nq-um-tile:focus-visible .nq-um-ribbon,
.nq-um-bt:hover .nq-um-ribbon,
.nq-um-bt:focus-visible .nq-um-ribbon,
.nqn-my-tile:hover .nq-um-ribbon,
.nqn-my-tile:focus-visible .nq-um-ribbon{
  background:linear-gradient(135deg,#3f5946,#5f9a72);
  color:#fff;
}

/* Phase 5 — Publisher account (mastheads + API keys) */
.nq-plan-badge {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.nq-plan-upgrade {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.nq-publisher-shell .nq-publisher-section {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.nq-publisher-shell .nq-publisher-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.nq-publisher-create,
.nq-publisher-mh-edit {
  display: grid;
  gap: 0.4rem;
  max-width: 28rem;
  margin: 0.75rem 0 1rem;
}
.nq-publisher-create input[type="text"],
.nq-publisher-mh-edit input[type="text"] {
  width: 100%;
  max-width: 28rem;
  padding: 0.35rem 0.5rem;
}
.nq-publisher-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.nq-publisher-cap {
  color: #7a1f1f;
  font-weight: 600;
}
.nq-publisher-reveal {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.nq-publisher-secret {
  display: block;
  word-break: break-all;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.nq-publisher-key-actions {
  display: inline;
  margin-left: 0.35rem;
}
.nq-publisher-key-actions button,
.nq-publisher-create button,
.nq-publisher-mh-edit button {
  margin-top: 0.25rem;
}

/* API Keys (Settings accordion) — New button + active list */
.nq-api-keys-new{margin:0 0 .85rem;text-align:center}
.nq-api-key-new-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 18px;border-radius:9px;font-weight:700;font-size:.95rem;
  background:#fff;color:#80B490;border:1px solid #80B490;cursor:pointer
}
.nq-api-key-new-btn:hover,.nq-api-key-new-btn:focus-visible{background:#5f9a72;color:#fff;border-color:#5f9a72}
.nq-api-key-new-btn:disabled{opacity:.45;cursor:not-allowed}
.nq-api-keys-heading{margin:1.1rem 0 .55rem;font-size:1rem;font-weight:800;color:#2F5D3E}
.nq-publisher-key-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.nq-api-key-row{
  display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;
  padding:12px;border:1px solid #E5E7EB;border-radius:12px;background:#fff
}
.nq-api-key-mh{
  width:48px;height:48px;border-radius:10px;border:1px solid #E5E7EB;background:#F9FAFB;
  display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0
}
.nq-api-key-mh img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.nq-api-key-mh-mark{font-weight:800;color:#51705A;font-size:.85rem}
.nq-api-key-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.nq-api-key-mh-name{font-size:.92rem;color:#111827}
.nq-api-key-label{font-size:.88rem;color:#374151}
.nq-api-key-masked{font-size:.82rem;word-break:break-all}
.nq-api-key-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.nq-api-key-actions .nq-publisher-key-actions{display:inline;margin:0}
.nqn-dlg-body .nq-api-key-form .nqn-field{display:block;margin:0 0 .75rem}
.nqn-dlg-body .nq-api-key-form .nqn-field > span{display:block;font-weight:700;margin:0 0 .35rem}
.nqn-dlg-body .nq-api-key-form .nqn-field input[type=text]{
  width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #E5E7EB;border-radius:9px
}
@media (max-width:560px){
  .nq-api-key-row{grid-template-columns:40px 1fr;grid-template-rows:auto auto}
  .nq-api-key-actions{grid-column:1 / -1;justify-content:flex-start}
}



/* 2026-10-25 — /my/mastheads cards + settings accordion */
.nq-mh-shell{max-width:920px}
.nq-mh-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .75rem}
.nq-mh-top .nqn-static-title{margin:0}
.nq-mh-add{flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:999px;border:2px solid var(--nqn-logo,#80B490);background:#fff;color:var(--nqn-logo,#80B490);font-size:1.6rem;font-weight:700;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.nq-mh-add:hover,.nq-mh-add:focus-visible{background:#5f9a72;color:#fff;border-color:#5f9a72;outline:none}
.nq-mh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin:1rem 0 1.5rem}
.nq-mh-card{background:var(--card,#fff);border:1px solid var(--line,#E5E7EB);border-radius:16px;box-shadow:0 8px 22px rgba(17,24,39,.04);padding:1rem;cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease}
.nq-mh-card:hover,.nq-mh-card:focus-visible{border-color:var(--nqn-logo,#80B490);box-shadow:0 10px 28px rgba(81,112,90,.12);outline:none}
.nq-mh-card-face{display:flex;gap:.85rem;align-items:flex-start}
.nq-mh-card-logo,.nq-mh-card-swatch{flex:0 0 auto;width:3rem;height:3rem;border-radius:12px;object-fit:cover}
.nq-mh-card-swatch{display:grid;place-items:center;background:var(--mh,#51705A);color:#fff;font-weight:800;font-size:1.15rem}
.nq-mh-card-body{min-width:0;flex:1}
.nq-mh-card-title{display:block;font-size:1.05rem;margin:0 0 .25rem}
.nq-mh-card-desc{margin:0 0 .4rem;color:#6B7280;font-size:.9rem;line-height:1.35}
.nq-mh-card-slug{font-size:.85rem;color:var(--nqn-mark-dark,#51705A);text-decoration:none}
.nq-mh-card-slug:hover{text-decoration:underline}
.nq-mh-form input[type="color"]{height:2.5rem;padding:.2rem;max-width:6rem}

.nq-settings-acc{display:flex;flex-direction:column;gap:.55rem;margin:1rem 0}
.nq-settings-acc details{background:var(--card,#fff);border:1px solid var(--line,#E5E7EB);border-radius:14px;overflow:hidden}
.nq-settings-acc summary{list-style:none;cursor:pointer;padding:.9rem 1rem;font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;user-select:none}
.nq-settings-acc summary::-webkit-details-marker{display:none}
.nq-settings-acc summary::after{content:"+";font-weight:700;color:var(--nqn-logo,#80B490);font-size:1.25rem;line-height:1}
.nq-settings-acc details[open] summary::after{content:"–"}
.nq-settings-acc summary:hover,.nq-settings-acc summary:focus-visible{background:#F3F7F4;outline:none}
.nq-settings-acc .nq-acc-panel{padding:0 1rem 1.1rem;border-top:1px solid var(--line,#E5E7EB)}

.nq-settings-acc .nq-acc-panel > :first-child{margin-top:.85rem}
/* Settings 2026-10-25: plain email, Notifications toggle, inline devices */
.nqn-field-plain{display:flex;flex-direction:column;gap:.35rem;margin:0 0 .85rem}
.nqn-field-plain > span{font-weight:700;font-size:.9rem;color:#374151}
.nq-settings-email{margin:0;padding:.55rem .7rem;background:#F3F4F6;border:1px solid var(--line,#E5E7EB);border-radius:10px;font-size:.95rem;word-break:break-all;color:#111827}
.nq-notif-row{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;padding:.15rem 0 .25rem}
.nq-notif-label{font-weight:700;font-size:.95rem;color:#111827;flex:1;min-width:8rem}
.nq-notif-status{font-size:.8rem;color:#6B7280;min-width:4.5rem}
.nq-switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;flex:0 0 auto}
.nq-switch input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
.nq-switch-track{width:2.75rem;height:1.55rem;border-radius:999px;background:#D1D5DB;border:1px solid #C4C9D1;display:block;position:relative;transition:background .15s ease,border-color .15s ease}
.nq-switch-thumb{position:absolute;top:2px;left:2px;width:1.2rem;height:1.2rem;border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(17,24,39,.25);transition:transform .15s ease}
.nq-switch input:checked + .nq-switch-track{background:var(--nqn-logo,#80B490);border-color:var(--nqn-mark-dark,#51705A)}
.nq-switch input:checked + .nq-switch-track .nq-switch-thumb{transform:translateX(1.15rem)}
.nq-switch input:focus-visible + .nq-switch-track{outline:2px solid var(--nqn-mark-dark,#51705A);outline-offset:2px}
.nq-device-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem}
.nq-device-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.75rem .85rem;background:#F9FAFB;border:1px solid var(--line,#E5E7EB);border-radius:12px}
.nq-device-row.is-current{border-color:var(--nqn-logo,#80B490);background:#F3F7F4}
.nq-device-main{min-width:0;flex:1}
.nq-device-label{margin:0 0 .2rem;font-weight:700;font-size:.92rem;word-break:break-word}
.nq-device-badge{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:#fff;background:var(--nqn-mark-dark,#51705A);border-radius:999px;padding:.12rem .45rem}
.nq-device-revoke{margin:0;flex:0 0 auto}
.nq-device-revoke button,.nq-device-revoke-all button{font:inherit;font-size:.85rem;padding:.4rem .7rem;border-radius:999px;border:1px solid var(--line,#E5E7EB);background:#fff;cursor:pointer;color:#111827}
.nq-device-revoke button:hover,.nq-device-revoke-all button:hover{background:#F3F7F4;border-color:var(--nqn-logo,#80B490)}
.nq-device-revoke-all{margin-top:.85rem}

/* Papers cards 2026-10-25 */
.nq-mh-cards{list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:.85rem;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.nq-mh-card-head{display:flex;gap:.7rem;align-items:center}
.nq-mh-card .nq-mh-logo{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:0 0 auto}
.nq-mh-card .nq-mh-mark{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#51705A,#111827);color:#fff;font-weight:800}
.nq-mh-card .nq-mh-title{margin:0;font-weight:800}
a.nq-mh-add{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* Papers page cards — align with Fossick / home News Items (2026-10-25) */
.nq-paper-grid{margin:1rem 0 0}
.nq-paper-cardx{cursor:pointer}
.nq-paper-cardx .nq-paper-cover{
  display:flex;align-items:center;justify-content:center;
  background:#fff;height:140px;padding:12px 16px;box-sizing:border-box;
}
.nq-paper-cardx .nq-paper-cover img{
  width:auto;height:auto;max-width:78%;max-height:100%;
  object-fit:contain;display:block;margin:0 auto;
}
.nq-paper-cardx .nq-paper-mark{
  width:64px;height:64px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,var(--cat,#51705A),#111827);
  color:#fff;font-weight:800;font-size:1.25rem;
}
.nq-paper-cardx .nq-card-body{padding:0.75rem 0.85rem 2.6rem}
.nq-paper-cardx .nq-card-title{
  display:block;font-weight:800;font-size:.95rem;line-height:1.25;
  color:#111827;margin:0 0 .25rem;
}
.nq-paper-card-actions{
  /* t752: Publish bottom-left, trash bottom-right */
  left:10px;right:10px!important;bottom:10px;display:flex!important;justify-content:space-between;
  z-index:3;align-items:center;gap:6px;
  max-width:none;overflow:visible;flex-wrap:nowrap;
}
.nq-paper-pub{
  /* Escape .nq-round 28px/24px clamp — label must fit */
  width:auto!important;min-width:fit-content!important;max-width:none!important;
  height:auto!important;min-height:28px!important;
  flex:0 0 auto!important;
  padding:5px 12px!important;border-radius:999px!important;
  border:1px solid var(--line,#E5E7EB)!important;
  background:#fff!important;color:#111827!important;
  font:inherit;font-size:.68rem!important;font-weight:800;letter-spacing:0!important;
  line-height:1.15!important;text-transform:uppercase;cursor:pointer;
  white-space:nowrap!important;overflow:visible!important;
  box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
}
.nq-paper-pub:hover,.nq-paper-pub:focus-visible{
  border-color:var(--cat,var(--nqn-logo,#80B490))!important;
  color:var(--cat,var(--nqn-mark-dark,#51705A))!important;
  background:#F9FAFB!important;
}
.nq-paper-trash{
  color:#6B7280;flex:0 0 28px!important;width:28px!important;height:28px!important;
}
.nq-paper-trash:hover,.nq-paper-trash:focus-visible{color:#B91C1C}
.nq-paper-trash svg{width:16px;height:16px}

/* Publish confirm: full-width action row, 3px inset from modal edge */
.nq-paper-pub-dlg{padding:0 13px}
.nq-paper-pub-dlg .nq-paper-notify{display:flex;align-items:center;gap:.55rem;margin:.85rem 0 0;font-weight:600}
.nq-paper-dlg-actions{
  display:flex;gap:8px;margin:1.1rem -13px 0;
  padding:0 3px 3px;box-sizing:border-box;width:calc(100% + 26px);
}
.nq-paper-dlg-actions .nq-btn-full{
  flex:1 1 0;margin:0!important;width:auto!important;max-width:none!important;
}
.nq-paper-dlg-actions .nq-paper-cancel{
  background:#fff!important;color:#80B490!important;border:1px solid #80B490!important;
}
.nq-paper-dlg-actions .nq-paper-confirm,
.nq-paper-dlg-actions .nq-paper-close{
  background:#80B490!important;color:#fff!important;border:1px solid #80B490!important;
}
.nq-paper-dlg-actions .nq-btn-full:hover,
.nq-paper-dlg-actions .nq-btn-full:focus-visible{
  background:#5f9a72!important;color:#fff!important;border-color:#5f9a72!important;
}
@media (max-width:600px){
  .nq-paper-cardx .nq-paper-cover{height:118px;padding:10px}
  .nq-paper-pub{
    font-size:.62rem!important;padding:4px 9px!important;
    min-height:26px!important;letter-spacing:0!important;
  }
  .nq-paper-trash{flex:0 0 26px!important;width:26px!important;height:26px!important}
}

/* Settings Notifications intervals 2026-10-25 */
.nq-notif-block{display:flex;flex-direction:column;gap:.55rem}
.nq-notif-block .nq-notif-label{margin:0;font-weight:700;font-size:.95rem;color:#111827}
.nq-notif-block .nq-notif-status{margin:0;min-height:1.1em;font-size:.8rem;color:#6B7280}
.nq-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button.nq-linkish{border:0;background:none;padding:0;font:inherit;color:var(--nqn-mark-dark,#51705A);font-weight:700;cursor:pointer;text-decoration:underline}
button.nq-linkish:hover{color:#14532D}

/* NQN paper canvas — New Paper modal body (from A4 demo) */
.nq-paper-canvas {
--bg: #F6F7FB;
    --card: #FFFFFF;
    --ink: #111827;
    --muted: #6B7280;
    --line: rgba(17, 24, 39, 0.08);
    --mint: #83B692;
    --sage: #7EB595;
    --logo: #80B490;
    --forest: #14532D;
    --mark-dark: #51705A;
    --pill-hover: #E4EFE7;
    --pill-active-hover: #3F5A47;
    --paper: #fffdf8;
    --grid-line: #e9e4d8;
    --warn: #92400E;
    --warn-bg: #FEF3C7;
    --radius-pill: 999px;
    --sheet-w: 210mm;
    --sheet-h: 297mm;
    --mast-h: 22mm;
    --foot-h: 14mm;
    --row-h: 10mm;
    --cols: 4;
    --rows: 26;
  --canvas-scale: 0.52;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.nq-paper-canvas .ed-body{
    flex: 1; min-height: 0; overflow: auto;
    padding: 14px; display: flex; justify-content: center; align-items: flex-start;
    background:
      radial-gradient(circle at 20% 0%, rgba(131,182,146,.12), transparent 40%),
      var(--bg);
      position: relative; z-index: 1;
  }

  /* A4 sheet */
  .nq-paper-canvas .sheet-stage{
    position: relative; z-index: 1;
    width: var(--sheet-w);
    transform-origin: top center;
  }
  .nq-paper-canvas .frame.desk .sheet-stage{ transform: scale(0.78); margin-bottom: calc(var(--sheet-h) * -0.22); }
  .nq-paper-canvas .frame.mob .sheet-stage{
    width: 100%;
    transform: scale(1);
  }
  .nq-paper-canvas .frame.mob .sheet{
    width: 100%;
    height: auto;
    aspect-ratio: 210 / 297;
  }
  .nq-paper-canvas .frame.mob .sheet-grid{
    --row-h: calc((100% - 22% - 10%) / 26); /* approximate when scaled */
  }

  .nq-paper-canvas .sheet{
    width: var(--sheet-w);
    height: var(--sheet-h);
    background: var(--paper);
    border: 1px solid #D6D0C2;
    box-shadow: 0 10px 30px rgba(17,24,39,.12);
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .nq-paper-canvas .sheet.bleed-on::before{
    content: "";
    position: absolute; inset: -3mm;
    border: 0.4mm dashed rgba(185,28,28,.55);
    pointer-events: none; z-index: 5;
  }
  .nq-paper-canvas .sheet.bleed-on::after{
    content: "BLEED MARKS (SAMPLE · off by default)";
    position: absolute; top: -3mm; left: 50%; transform: translate(-50%, -110%);
    font-size: 8px; color: #B91C1C; font-weight: 800; letter-spacing: .04em;
    white-space: nowrap; z-index: 6;
  }

  .nq-paper-canvas .mast{
    flex: 0 0 var(--mast-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3mm; align-items: center;
    padding: 2mm 3.5mm;
    border-bottom: 1.2mm double #1f2937;
    background: linear-gradient(180deg, #f7fbf8, var(--paper));
  }
  .nq-paper-canvas .mast-mark{
    width: 14mm; height: 14mm; border-radius: 2mm;
    background: linear-gradient(145deg, #2d6a4f, #14532D);
    color: #fff; display: grid; place-items: center;
    font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 7mm;
  }
  .nq-paper-canvas .mast-titles{ min-width: 0; }
  .nq-paper-canvas .mast-titles h2{
    margin: 0; font-family: Georgia, "Times New Roman", serif;
    font-size: 7.2mm; line-height: 1; letter-spacing: -0.02em; color: #111;
  }
  .nq-paper-canvas .mast-titles p{
    margin: 1mm 0 0; font-size: 2.6mm; color: #555; text-transform: uppercase;
    letter-spacing: .08em;
  }
  .nq-paper-canvas .mast-date{
    text-align: right; font-size: 2.8mm; color: #333; line-height: 1.35;
  }
  .nq-paper-canvas .mast-date b{ display: block; font-size: 3.2mm; }

  .nq-paper-canvas .sheet-grid{
    flex: 1; min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(26, minmax(0, var(--row-h)));
    gap: 0;
    padding: 1.5mm 3mm;
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 25% 10mm, 25% 10mm;
    background-position: 0 0;
    position: relative;
  }
  .nq-paper-canvas .lane-guides{
    position: absolute; inset: 1.5mm 3mm; pointer-events: none; display: grid;
    grid-template-columns: repeat(4, 1fr); z-index: 0;
  }
  .nq-paper-canvas .lane-guides span{
    border-right: 0.5px dashed rgba(81,112,90,.35);
  }
  .nq-paper-canvas .lane-guides span:last-child{ border-right: 0; }

  .nq-paper-canvas .cell{
    position: relative; z-index: 1;
    margin: 0.6mm;
    border-radius: 1mm;
    overflow: hidden;
    background: #fff;
    border: 0.35mm solid #d6d0c2;
    display: flex; flex-direction: column;
    min-width: 0; min-height: 0;
  }
  .nq-paper-canvas .cell[data-type="empty"]{
    background: #F2F8F4;
    border: 0.5mm dashed var(--mint);
    align-items: center; justify-content: center;
  }
  .nq-paper-canvas .plus-btn{
    width: 9mm; height: 9mm; border-radius: 50%;
    border: 0; background: var(--mint); color: #fff;
    font-size: 5mm; font-weight: 700; line-height: 1;
    cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 1mm 2mm rgba(81,112,90,.25);
  }
  .nq-paper-canvas .plus-btn:hover{ background: var(--mark-dark); }

  /* grid placement helpers via style attrs */
  .nq-paper-canvas .c1{ grid-column: 1 / span 1; }
  .nq-paper-canvas .c2{ grid-column: 2 / span 1; }
  .nq-paper-canvas .c3{ grid-column: 3 / span 1; }
  .nq-paper-canvas .c4{ grid-column: 4 / span 1; }
  .nq-paper-canvas .c12{ grid-column: 1 / span 2; }
  .nq-paper-canvas .c13{ grid-column: 1 / span 3; }
  .nq-paper-canvas .c14{ grid-column: 1 / span 4; }
  .nq-paper-canvas .c23{ grid-column: 2 / span 2; }
  .nq-paper-canvas .c24{ grid-column: 2 / span 3; }
  .nq-paper-canvas .c34{ grid-column: 3 / span 2; }
  .nq-paper-canvas .r1{ grid-row: 1 / span 1; }
  .nq-paper-canvas .r2{ grid-row: 1 / span 2; }
  .nq-paper-canvas .r3{ grid-row: 1 / span 3; }
  .nq-paper-canvas .r4{ grid-row: 1 / span 4; }
  .nq-paper-canvas .r5{ grid-row: 1 / span 5; }
  .nq-paper-canvas .r6{ grid-row: 1 / span 6; }
  .nq-paper-canvas .r8{ grid-row: 1 / span 8; }
  .nq-paper-canvas .r10{ grid-row: 1 / span 10; }

  /* Article smart block */
  .nq-paper-canvas .art{ padding: 1.8mm 2mm 1.5mm; font-family: Georgia, "Times New Roman", serif; }
  .nq-paper-canvas .art-img{
    height: 28%; min-height: 12mm; background:
      linear-gradient(120deg, #c5d9cc, #8faf97 40%, #5a7d66);
    border-radius: 0.8mm; margin-bottom: 1.4mm;
    display: grid; place-items: center; color: rgba(255,255,255,.85);
    font-family: system-ui, sans-serif; font-size: 2.4mm; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
  }
  .nq-paper-canvas .art h3{
    margin: 0; font-size: 3.8mm; line-height: 1.15; color: #111;
  }
  .nq-paper-canvas .art .by{
    margin: 0.6mm 0 1.2mm; font-family: system-ui, sans-serif;
    font-size: 2.3mm; color: var(--muted); font-weight: 600;
  }
  .nq-paper-canvas .art .body{
    margin: 0; font-size: 2.7mm; line-height: 1.35; color: #222;
    column-count: 1; flex: 1; overflow: hidden;
  }
  .nq-paper-canvas .art.multi .body{ column-count: 2; column-gap: 2.5mm; }
  .nq-paper-canvas .art-foot{
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 2mm; margin-top: 1.5mm; padding-top: 1mm;
    border-top: 0.25mm solid #ddd;
  }
  .nq-paper-canvas .see-full{
    font-family: system-ui, sans-serif; font-size: 2.3mm; font-weight: 800;
    color: var(--forest); text-decoration: none;
  }
  .nq-paper-canvas .qr{
    width: 8mm; height: 8mm; flex: 0 0 auto;
    background:
      repeating-conic-gradient(#111 0% 25%, #fff 0% 50%) 0 0 / 2mm 2mm,
      #111;
    border: 0.3mm solid #111;
    border-radius: 0.4mm;
    position: relative;
  }
  .nq-paper-canvas .qr::after{
    content: "QR";
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: system-ui, sans-serif; font-size: 1.8mm; font-weight: 900;
    color: #fff; mix-blend-mode: difference;
  }

  /* Ads — fixed formats */
  .nq-paper-canvas .ad{
    padding: 0; background: #f8faf9;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  }
  .nq-paper-canvas .ad-label{
    position: absolute; top: 0.8mm; left: 0.8mm;
    font-family: system-ui, sans-serif; font-size: 1.8mm; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    background: var(--mark-dark); color: #fff; padding: 0.4mm 1mm; border-radius: 0.4mm;
    z-index: 2;
  }
  .nq-paper-canvas .ad-banner{
    background: linear-gradient(90deg, #14532D, #51705A 55%, #83B692);
    color: #fff; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 3mm; gap: 2mm;
  }
  .nq-paper-canvas .ad-banner b{ font-size: 3.2mm; font-family: system-ui, sans-serif; }
  .nq-paper-canvas .ad-banner span{ font-size: 2.4mm; opacity: .9; }
  .nq-paper-canvas .ad-square, .nq-paper-canvas .ad-tall{
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2mm; gap: 1.5mm;
    background: #EEF6F0; color: var(--forest);
  }
  .nq-paper-canvas .ad-square .logoish, .nq-paper-canvas .ad-tall .logoish{
    width: 12mm; height: 12mm; border-radius: 2mm;
    background: #fff; border: 0.4mm solid var(--mint);
    display: grid; place-items: center; font-weight: 900; font-size: 4mm;
  }
  .nq-paper-canvas .ad-tall .logoish{ width: 14mm; height: 14mm; }
  .nq-paper-canvas .ad-square b, .nq-paper-canvas .ad-tall b{ font-size: 2.8mm; }
  .nq-paper-canvas .ad-square small, .nq-paper-canvas .ad-tall small{ font-size: 2.2mm; color: var(--muted); }

  /* Meme */
  .nq-paper-canvas .meme{
    background: #FEF3C7; padding: 2mm;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 1.5mm;
  }
  .nq-paper-canvas .meme .meme-img{
    width: 85%; aspect-ratio: 1; background:
      linear-gradient(160deg, #fde68a, #f59e0b 60%, #b45309);
    border-radius: 1mm;
    display: grid; place-items: center;
    font-family: Impact, Haettenschweiler, system-ui, sans-serif;
    font-size: 3.5mm; color: #fff; text-shadow: 0 1px 2px #000;
    text-transform: uppercase;
  }
  .nq-paper-canvas .meme .cap{
    font-family: Impact, Haettenschweiler, system-ui, sans-serif;
    font-size: 3mm; color: #111; text-transform: uppercase; letter-spacing: .02em;
  }
  .nq-paper-canvas .type-chip{
    position: absolute; top: 0.8mm; right: 0.8mm;
    font-family: system-ui, sans-serif; font-size: 1.7mm; font-weight: 800;
    letter-spacing: .05em; text-transform: uppercase;
    background: rgba(17,24,39,.78); color: #fff; padding: 0.3mm 1mm; border-radius: 0.4mm;
  }

  .nq-paper-canvas .foot{
    flex: 0 0 var(--foot-h);
    border-top: 1.2mm double #1f2937;
    padding: 1.5mm 3.5mm;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3mm;
    font-size: 2.4mm; color: #444; background: #fafaf7;
  }
  .nq-paper-canvas .foot b{ display: block; color: #111; margin-bottom: 0.4mm; font-size: 2.5mm; }

  /* Push-aside hint (conceptual) */
  .nq-paper-canvas .push-hint{
    position: absolute; inset: auto 3mm 18mm auto;
    background: rgba(20,83,45,.92); color: #fff;
    font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
    z-index: 8; pointer-events: none; opacity: 0; transition: opacity .2s;
    max-width: 200px;
  }
  .nq-paper-canvas .push-hint.on{ opacity: 1; }

  
.nq-paper-canvas{width:100%;display:flex;justify-content:center;padding:0;background:transparent}
.nq-paper-canvas .sheet-stage{transform:scale(var(--canvas-scale));transform-origin:top center;margin-bottom:calc(var(--sheet-h) * (var(--canvas-scale) - 1));width:var(--sheet-w)}
.nq-paper-canvas .sheet.hidden-side{display:none}
.nq-paper-canvas .ed-body{flex:1;overflow:auto;padding:0;display:flex;justify-content:center}
.nqn-dlg:has(.nq-paper-canvas){max-width:min(820px,96vw)} /* t788 */
.nqn-dlg-body:has(.nq-paper-canvas){padding:10px 10px 14px;background:#F3F4F6}


/* New Paper modal: 2026-10-27t788 — desktop near-physical A4 (~794px); mobile keeps 7px side margins */
.nqn-dlg.nqn-dlg--paper{
  --nq-paper-chrome: 158px;
  --nq-paper-side: 8px;
  --nq-paper-a4: 794px; /* ~210mm at CSS px */
  height:calc(100vh - 16px);
  max-height:calc(100vh - 16px);
  /* Desktop: real A4 width (not height-hugged shrink) */
  width:min(var(--nq-paper-a4), calc(100% - 32px));
  max-width:min(900px, calc(100% - 32px));
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.nqn-dlg.nqn-dlg--paper .nqn-dlg-body{
  padding:0!important;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.nq-paper-ed-framewrap{width:100%;margin:0;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.nq-paper-ed-iframe{display:block;width:100%;flex:1 1 auto;min-height:0;height:100%;border:0;background:#F6F7FB}
.nq-paper-card{cursor:pointer}
.nq-paper-card:focus-visible{outline:2px solid var(--nqn-teal,#5A9A7A);outline-offset:2px}
@media (max-width:700px){
  .nqn-dlg.nqn-dlg--paper{
    width:100%;
    max-width:100%;
    min-width:0;
    height:calc(100vh - 8px);
    max-height:calc(100vh - 8px);
  }
  .nq-paper-ed-iframe{min-height:0;height:100%}
}

/* t752 2026-10-25n: Publish icon */
.nq-paper-pub{gap:5px!important}
.nq-paper-pub svg{width:12px;height:12px;flex:0 0 auto}
.nq-paper-trash{margin-left:auto}
@media (max-width:600px){.nq-paper-card-actions{left:4px;right:4px!important;bottom:4px}}

/* t769 2026-10-25u: mobile-only paper modal width, 7px side margin */
@media (max-width:700px){
  .nqn-dlg-overlay:has(.nqn-dlg--paper){padding-left:0!important;padding-right:0!important}
  .nqn-dlg.nqn-dlg--paper{width:calc(100% - 14px)!important;max-width:calc(100% - 14px)!important;margin-left:7px!important;margin-right:7px!important;box-sizing:border-box}
  .nqn-dlg--paper .nqn-dlg-body{padding-left:0;padding-right:0}
}


/* t771 mastheads Fossick cards — same grid as Papers (2/row mobile, denser desktop) */
.nq-mh-paper-grid{margin:1rem 0 0}
.nq-mh-cardx{cursor:pointer}
.nq-mh-cardx .nq-mh-cover{
  display:flex;align-items:center;justify-content:center;
  background:#fff;height:140px;padding:12px 16px;box-sizing:border-box;
}
.nq-mh-cardx .nq-mh-cover img{
  width:auto;height:auto;max-width:78%;max-height:100%;
  object-fit:contain;display:block;margin:0 auto;
}
.nq-mh-cardx .nq-card-body{padding:0.75rem 0.85rem 2.6rem}
.nq-mh-card-actions{
  left:10px;right:10px!important;bottom:10px;display:flex!important;justify-content:space-between;
  z-index:3;align-items:center;gap:6px;max-width:none;overflow:visible;flex-wrap:nowrap;
}
.nq-mh-cardx .nq-mh-suspend{z-index:4;position:relative}
.nq-mh-cardx[data-suspended="1"]{opacity:.78}
.nq-mh-cardx[data-suspended="1"] .nq-card-title{color:#6B7280}
.nq-mh-del-dlg .nqn-field{margin:.85rem 0 0}
@media (max-width:600px){
  .nq-mh-cardx .nq-mh-cover{height:118px;padding:10px}
}

/* t772 bots character cards + personality thumbs */
.nq-bots-shell .nq-mh-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nq-bots-shell .nq-mh-top .nqn-static-title{margin:0}
.nq-bots-grid{margin:1rem 0 0}
.nq-bot-cardx{cursor:pointer;text-align:center}
.nq-bot-cardx .nq-bot-cover{
  display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--bot,#51705A) 14%,#fff);
  height:140px;padding:12px 16px;box-sizing:border-box;
}
.nq-bot-face{
  display:grid;place-items:center;width:88px;height:88px;border-radius:50%;
  background:var(--bot,#51705A);color:#fff;font-size:2.4rem;font-weight:800;
  letter-spacing:-.02em;box-shadow:0 8px 20px color-mix(in srgb,var(--bot,#51705A) 35%,transparent);
}
.nq-bot-cardx .nq-bot-card-body{padding:.65rem .75rem 2.6rem;display:flex;flex-direction:column;align-items:center;gap:.2rem}
.nq-bot-cardx .nq-bot-name{display:block;width:100%;text-align:center;margin:0}
.nq-bot-cardx .nq-bot-role{display:block;width:100%;text-align:center;color:#6B7280;font-size:.85rem}
.nq-bot-trash-row{display:flex;justify-content:center;width:100%;margin-top:.45rem}
.nq-bot-cardx .nq-bot-trash{z-index:4;position:relative}
.nq-bot-cardx[data-status="disabled"]{opacity:.72}
.nq-bot-cardx[data-status="disabled"] .nq-bot-face{filter:grayscale(.35)}
.nq-bot-pers-ic{
  display:grid;place-items:center;width:44px;height:44px;border-radius:8px;
  background:var(--bot,#51705A);color:#fff;font-weight:800;font-size:1.05rem;
  box-shadow:inset 0 0 0 2px color-mix(in srgb,#fff 25%,transparent);
}
.nq-choice-bots-pers .nq-choice-tile{padding:8px 4px;border-radius:12px}
.nq-choice-bots-pers .nq-um-lbl{font-size:.72rem}
.nq-choice-bots-pers .nq-choice-tile:has(input:checked) .nq-bot-pers-ic{box-shadow:0 0 0 2px #fff}
.nq-bot-routine{border:1px solid #E5E7EB;border-radius:12px;padding:10px 12px;margin:0 0 1rem}
.nq-bot-routine legend{font-weight:700;padding:0 4px}
.nq-bot-form .nq-autosave{min-height:1.2em;margin:0 0 .6rem;font-size:.85rem;color:#6B7280}
.nq-bot-form .nq-autosave.is-err{color:#B91C1C}
@media (max-width:600px){
  .nq-bot-cardx .nq-bot-cover{height:118px}
  .nq-bot-face{width:72px;height:72px;font-size:2rem}
  .nq-choice-bots-pers .nq-choice-grid{grid-template-columns:repeat(3,1fr)}
}

/* t773 bot role tag cloud + status toggle on cards */
.nq-bot-role-cloud{
  display:flex;flex-wrap:wrap;gap:8px;margin:0 0 .25rem;
}
.nq-bot-role-chip{
  position:relative;cursor:pointer;margin:0;
}
.nq-bot-role-chip input{
  position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;
}
.nq-bot-role-chip span{
  display:inline-block;padding:.38rem .7rem;border-radius:999px;
  border:1px solid #E5E7EB;background:#fff;color:#374151;
  font-size:.82rem;font-weight:700;line-height:1.2;
  transition:background .12s ease,border-color .12s ease,color .12s ease;
}
.nq-bot-role-chip:has(input:checked) span,
.nq-bot-role-chip input:checked + span{
  background:#51705A;border-color:#51705A;color:#fff;
}
.nq-bot-role-chip:has(input:focus-visible) span,
.nq-bot-role-chip input:focus-visible + span{
  outline:2px solid #51705A;outline-offset:2px;
}
.nq-bot-card-actions{
  left:10px;right:10px!important;bottom:10px;display:flex!important;justify-content:space-between;
  z-index:3;align-items:center;gap:6px;max-width:none;overflow:visible;flex-wrap:nowrap;
}
.nq-bot-cardx .nq-bot-card-body{padding:.65rem .75rem 2.6rem;display:flex;flex-direction:column;align-items:center;gap:.2rem}
.nq-bot-cardx .nq-bot-status{z-index:4;position:relative}
.nq-bot-cardx[data-status="disabled"]{opacity:.72}
.nq-bot-cardx[data-status="disabled"] .nq-bot-face{filter:grayscale(.35)}


/* ===== t788 2026-10-27 NQN polish: masthead logo, bot mh icons, connections cards, billing ===== */

/* Masthead logo drop — square-ish contain; hover shows + / Update when logo present */
.nq-mh-logo{margin:0 0 1rem}
.nq-mh-logo > span{display:block;font-weight:700;margin:0 0 .4rem}
.nq-mh-logo .nq-adimg{margin:0}
.nq-mh-logo .nq-adimg-drop{
  aspect-ratio:16/9;max-width:320px;margin:0;background:#fff!important;
  border:2px dotted var(--nqn-logo,#80B490)!important;color:#5f9a72;
}
.nq-mh-logo .nq-adimg-drop img{object-fit:contain;background:#fff;padding:8px;box-sizing:border-box}
.nq-mh-logo .nq-adimg-drop .nq-adimg-plus,
.nq-mh-logo .nq-adimg-drop .nq-adimg-lbl{position:relative;z-index:2;transition:opacity .15s}
/* When logo present: hide +/label until hover */
.nq-mh-logo .nq-adimg-drop:has(img) .nq-adimg-plus,
.nq-mh-logo .nq-adimg-drop:has(img) .nq-adimg-lbl{opacity:0}
.nq-mh-logo .nq-adimg-drop:has(img):hover .nq-adimg-plus,
.nq-mh-logo .nq-adimg-drop:has(img):hover .nq-adimg-lbl,
.nq-mh-logo .nq-adimg-drop:has(img):focus-visible .nq-adimg-plus,
.nq-mh-logo .nq-adimg-drop:has(img):focus-visible .nq-adimg-lbl{
  opacity:1;
}
.nq-mh-logo .nq-adimg-drop:has(img):hover::after,
.nq-mh-logo .nq-adimg-drop:has(img):focus-visible::after{
  content:"";position:absolute;inset:0;background:rgba(255,255,255,.72);z-index:1;border-radius:12px;pointer-events:none;
}
.nq-mh-logo .nq-adimg-drop:has(img) .nq-adimg-lbl{font-weight:700}

/* Bot edit — masthead icon grid (multi-select) */
.nq-bot-mh{margin:0 0 1rem}
.nq-bot-mh > span{display:block;font-weight:700;margin:0 0 .4rem}
.nq-bot-mh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}
.nq-bot-mh-tile{position:relative;cursor:pointer;border:1.5px solid #E5E7EB;border-radius:12px;background:#fff;padding:0;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;min-height:0}
.nq-bot-mh-tile input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.nq-bot-mh-tile .nq-bot-mh-logo{
  width:100%;height:100%;border-radius:0;background:#F3F4F6;display:grid;place-items:center;overflow:hidden;
  border:0;
}
.nq-bot-mh-tile .nq-bot-mh-logo img{width:100%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box}
.nq-bot-mh-tile .nq-bot-mh-mark{font-weight:800;font-size:1.1rem;color:#5f9a72}
.nq-bot-mh-tile .nq-bot-mh-name{display:none}
.nq-bot-mh-tile:has(input:checked){border-color:#5f9a72;background:#E8F2EB;box-shadow:0 0 0 2px rgba(95,154,114,.25)}
.nq-bot-mh-tile:has(input:focus-visible){outline:2px solid #5f9a72;outline-offset:2px}
.nq-bot-mh-empty{margin:.25rem 0 0}

/* Connections — people cards */
.nq-people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:1rem 0 0;padding:0;list-style:none}
.nq-person-card{
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  background:#fff;border:1px solid #E5E7EB;border-radius:14px;padding:1rem .75rem .9rem;
  text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s;
}
a.nq-person-card:hover{border-color:#5f9a72;box-shadow:0 6px 16px rgba(95,154,114,.12)}
.nq-person-av{
  width:64px;height:64px;border-radius:50%;overflow:hidden;background:#E8F2EB;color:#2F5D3E;
  display:grid;place-items:center;font-weight:800;font-size:1.25rem;border:2px solid #fff;
  box-shadow:0 0 0 1.5px rgba(95,154,114,.35);
}
.nq-person-av img{width:100%;height:100%;object-fit:cover;display:block}
.nq-person-name{font-weight:700;font-size:.92rem;line-height:1.25;word-break:break-word}
.nq-person-user{font-weight:700;font-size:.88rem;color:var(--ink,#111827);word-break:break-word}

/* Empty state with centred icon (checkered / dashed site colours) */
.nq-empty.nq-empty--icon{
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.85rem;
  text-align:left;padding:1.5rem 1.25rem;min-height:auto;
  border:2px dashed color-mix(in srgb, var(--nqn-logo,#80B490) 55%, transparent);
  border-radius:18px;background:rgba(255,255,255,.65);color:var(--muted,#6B7280);
}
.nq-empty.nq-empty--icon svg{flex:0 0 auto;width:28px;height:28px;color:#5f9a72;stroke:#5f9a72}
.nq-empty.nq-empty--icon p{margin:0;max-width:28rem;line-height:1.4;flex:1 1 auto}

/* Billing / invoices */
/* t803: Due/Paid hugs content (same as .nq-account-pills) */
.nq-inv-pills{
  display:inline-flex;align-items:center;justify-content:flex-start;
  width:fit-content;max-width:100%;
  margin:0.85rem 0 1.1rem;align-self:flex-start;
}
/* Site rule: account-area viewpills always hug content */
.nq-account-main .nq-viewpill,
.nq-account-panel .nq-viewpill{
  width:fit-content;max-width:100%;
  display:inline-flex;
}

.nq-inv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.nq-inv-card{
  display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;
  background:#fff;border:1px solid #E5E7EB;border-radius:14px;padding:1rem 1rem .9rem;
  cursor:pointer;transition:border-color .15s,box-shadow .15s;width:100%;font:inherit;color:inherit;
}
.nq-inv-card:hover,.nq-inv-card:focus-visible{border-color:#5f9a72;box-shadow:0 6px 16px rgba(95,154,114,.12);outline:0}
.nq-inv-card .nq-inv-amt{font-size:1.25rem;font-weight:800;color:#111827}
.nq-inv-card .nq-inv-meta{font-size:.82rem;color:#6B7280}
.nq-inv-card .nq-inv-status{
  display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:.72rem;font-weight:700;
  background:#E8F2EB;color:#2F5D3E;
}
.nq-inv-card .nq-inv-status.is-due{background:#FEF3C7;color:#92400E}
.nq-inv-card .nq-inv-status.is-paid{background:#E8F2EB;color:#2F5D3E}
.nq-inv-modal{display:flex;flex-direction:column;gap:12px;min-height:220px;width:100%}
.nq-inv-modal-frame{
  flex:1 1 auto;min-height:min(70vh,640px);height:min(70vh,640px);border:1px solid #E5E7EB;border-radius:12px;background:#F9FAFB;
  display:block;overflow:hidden;position:relative;
}
.nq-inv-modal-frame object,
.nq-inv-modal-frame iframe,
.nq-inv-modal-frame embed{display:block;width:100%;height:100%;min-height:min(70vh,640px);border:0}
.nqn-dlg-body:has(.nq-inv-modal){max-height:calc(100vh - 120px);overflow:auto}
.nq-inv-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.nq-inv-dl{
  display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;
  border:1px solid #80B490;background:#fff;color:#5f9a72;cursor:pointer;text-decoration:none;
}
.nq-inv-dl:hover,.nq-inv-dl:focus-visible{background:#5f9a72;color:#fff;outline:0}
.nq-inv-dl[aria-disabled="true"],.nq-inv-dl.is-disabled{opacity:.45;pointer-events:none;cursor:not-allowed}
.nq-inv-placeholder{text-align:center;color:#6B7280;padding:1.5rem;max-width:22rem;margin:0 auto}

/* cleanup: legacy nq-joke* retained as aliases of nq-meme* (WP4) */


/* t802: Fossick centred in desktop topbar; second row on mobile */
.nq-topbar--fossick .nq-topbar-row{
  display:grid;
  grid-template-columns:auto minmax(12rem,28rem) auto;
  grid-template-areas:"brand fossick tools";
  align-items:center;
  gap:.75rem 1rem;
}
.nq-topbar--fossick .nq-brand{grid-area:brand;justify-self:start}
.nq-topbar--fossick .nq-topbar-fossick{grid-area:fossick;justify-self:center;width:100%;max-width:28rem;min-width:0}
.nq-topbar--fossick .nq-topbar-tools{grid-area:tools;justify-self:end}
.nq-topbar-fossick .nq-fossick{margin:0;width:100%}
.nq-topbar-fossick .nq-fossick-field{width:100%}

@media (max-width: 900px){
  .nq-topbar--fossick .nq-topbar-row{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "brand tools"
      "fossick fossick";
    row-gap:.55rem;
    padding-top:.55rem;
    padding-bottom:.65rem;
  }
  .nq-topbar--fossick .nq-topbar-fossick{max-width:none;justify-self:stretch}
  .nq-topbar--fossick{min-height:auto}
}


/* t837: invoice card download icon bottom-right (hug-content) */
.nq-inv-item{position:relative;display:flex;flex-direction:column;min-width:0}
.nq-inv-item .nq-inv-card{padding-bottom:2.65rem}
.nq-inv-card-dl{
  position:absolute;right:.65rem;bottom:.65rem;z-index:2;
  display:inline-flex;align-items:center;justify-content:center;
  width:2.05rem;height:2.05rem;padding:0;border-radius:10px;
  border:1px solid var(--nqn-logo,#80B490);background:#fff;color:#51705A;
  text-decoration:none;cursor:pointer;box-sizing:border-box;
  line-height:0;
}
.nq-inv-card-dl:hover,.nq-inv-card-dl:focus-visible{
  background:var(--nqn-logo,#80B490);color:#fff;outline:none;border-color:var(--nqn-logo,#80B490);
}
.nq-inv-card-dl.is-disabled{opacity:.4;pointer-events:none;border-color:#D1D5DB;color:#9CA3AF;background:#fff}
.nq-inv-card-dl-ico,.nq-inv-dl-ico{display:inline-flex;width:1.05rem;height:1.05rem}
.nq-inv-card-dl-ico svg,.nq-inv-dl-ico svg{width:100%;height:100%}
.nq-inv-dl.nq-inv-dl-full{
  display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;
  padding:.85rem 1rem;border-radius:12px;border:0;background:#5f9a72;color:#fff;
  font-weight:800;font-size:1rem;text-decoration:none;box-sizing:border-box;
}
.nq-inv-dl.nq-inv-dl-full:hover,.nq-inv-dl.nq-inv-dl-full:focus-visible{background:#4e8460;outline:none;color:#fff}
.nq-inv-dl.nq-inv-dl-full.is-disabled{opacity:.45;pointer-events:none;background:#9CA3AF}
.nq-inv-modal-actions{margin-top:.85rem}

/* ===== t809 ads shell cards 2026-10-27 ===== */
.nq-ads-grid,
.nq-market-grid,
.nq-market {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}
@media (min-width: 720px) {
  .nq-ads-grid,
  .nq-market-grid,
  .nq-market {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 0.85rem;
  }
}
@media (min-width: 1100px) {
  .nq-ads-grid,
  .nq-market-grid,
  .nq-market {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}
.nq-ad-cardx,
.nq-market-card.nq-ad-cardx {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}
.nq-ad-cardx .nq-ad-cover,
.nq-market-card .nq-ad-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 140px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #F3F4F6;
  overflow: hidden;
}
.nq-ad-cardx .nq-ad-cover img,
.nq-market-card .nq-ad-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.nq-ad-cardx .nq-card-body,
.nq-market-card .nq-card-body {
  flex: 1 1 auto;
  padding: 0.75rem 0.85rem 3.55rem;
  min-height: 5.5rem;
}
/* t810/t811: top = toggle + place + delete; below = views/clicks */
.nq-ad-card-actions,
.nq-market-card .nq-ad-card-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  max-width: none;
  flex-wrap: nowrap;
}
.nq-ad-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.nq-ad-actions-top > .nq-ad-vis,
.nq-ad-actions-top > .nq-iconbtn,
.nq-ad-actions-top > .nq-ad-place-spacer {
  flex: 0 0 auto;
}
.nq-ad-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B7280;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-ad-stat-sep { opacity: 0.6; }
.nq-ad-place-spacer {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-place,
.nq-ad-cardx .nq-iconbtn.nq-ad-del,
.nq-market-card .nq-iconbtn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #51705A;
  cursor: pointer;
  padding: 0;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-place:hover,
.nq-market-card .nq-iconbtn:hover {
  background: #E4EFE7;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-del {
  color: #8B4A4A;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-del:hover {
  background: #F5E8E8;
  color: #B23A3A;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-del:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nq-ad-cardx .nq-iconbtn.nq-ad-del:disabled:hover {
  background: transparent;
  color: #8B4A4A;
}
.nq-ad-cardx .nq-iconbtn svg,
.nq-market-card .nq-iconbtn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.nq-ad-edit-meta {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #6B7280;
}
.nq-account-main .nq-market-scope {
  margin: 0 auto 0.85rem;
}
.nq-account-main .nq-market-filters {
  margin: 0 0 1rem;
}
.nq-market-card .nq-market-card-actions:not(.nq-ad-card-actions) {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}
@media (max-width: 600px) {
  .nq-ad-cardx .nq-ad-cover,
  .nq-market-card .nq-ad-cover { height: 118px; }
  .nq-ad-stats { font-size: 0.65rem; gap: 0.15rem; }
}

/* t837: ad cards — default mark + colour bar = NQN logo green */
.nq-ad-cardx,
.nq-market-card.nq-ad-cardx {
  --cat: var(--nqn-logo, #80B490);
}
.nq-ad-cardx .nq-ad-mark,
.nq-market-card.nq-ad-cardx .nq-ad-mark {
  background: var(--nqn-logo, #80B490);
  color: #fff;
}
.nq-ad-cardx > .nq-catbar,
.nq-market-card.nq-ad-cardx > .nq-catbar {
  background: var(--nqn-logo, #80B490);
}


/* t839: invoice modal — wide dialog + reliable PDF iframe embed */
.nqn-dlg:has(.nq-inv-modal){max-width:min(960px,96vw);width:100%}
.nq-inv-modal-frame{
  flex:1 1 auto;min-height:min(75vh,720px);height:min(75vh,720px);border:1px solid #E5E7EB;border-radius:12px;background:#F3F4F6;
  display:block;overflow:hidden;position:relative;
}
.nq-inv-modal-frame iframe.nq-inv-pdf-embed,
.nq-inv-modal-frame iframe,
.nq-inv-modal-frame object,
.nq-inv-modal-frame embed{
  position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#fff;
}
.nq-inv-modal-frame .nq-inv-placeholder{position:relative;z-index:1}
.nq-inv-dl-full{width:100%;height:auto;min-height:42px;border-radius:12px;gap:8px;padding:10px 14px;font-weight:700}

/* t840: embed + iframe PDF fill */
.nq-inv-modal-frame embed.nq-inv-pdf-embed,
.nq-inv-modal-frame iframe.nq-inv-pdf-embed{
  position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:#fff;
}


/* t842: invoice modal page-1 PNG preview (A4 portrait, no stretch) */
.nq-inv-modal-frame img.nq-inv-pdf-preview{
  position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:top center;background:#fff;border:0;
}
.nq-inv-modal-frame .nq-inv-placeholder{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  margin:0;padding:24px;text-align:center;color:#6B7280;font-size:14px;line-height:1.45;background:#F9FAFB;
}

/* 2026-10-30 otp7: Resend + Cancel both theme green (#5f9a72), 2px white spacer, hover #51705A (matches library otp-input). */
.nq-login-panel .nq-login-resend,.nq-login-panel .nq-login-cancel{background:#5f9a72;color:#fff;box-shadow:none;font-variant-numeric:tabular-nums}
.nq-login-panel .nq-login-resend{border-radius:1px;margin-right:0;border-right:2px solid #fff}
.nq-login-panel .nq-login-cancel{border-radius:1px 999px 999px 1px}
.nq-login-panel .nq-login-resend:hover:not(:disabled),.nq-login-panel .nq-login-resend:focus-visible:not(:disabled),.nq-login-panel .nq-login-cancel:hover:not(:disabled),.nq-login-panel .nq-login-cancel:focus-visible:not(:disabled){background:#51705A;color:#fff;border-right-color:#fff}
.nq-login-panel .nq-login-resend:disabled{opacity:.75}

/* 20261106V1 polish: segmented/toggle pills match user-menu Sign in (#80B490 / hover #5f9a72, white, 700) */
html body .nq-viewpill{border:1px solid rgba(81,112,90,.18);background:#fff;padding:4px;gap:4px;box-shadow:0 1px 2px rgba(17,24,39,.05),0 4px 14px rgba(17,24,39,.06)}
html body .nq-viewpill button,html body .nq-viewpill a,html body .nq-viewpill a.nq-viewpill-link,
html body .nq-place .nq-viewpill button[aria-pressed="false"],html body .nq-editor .nq-viewpill button[aria-pressed="false"]{border:0!important;border-radius:999px;background:transparent!important;color:#4B6A55!important;font-weight:700;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
html body .nq-viewpill button:hover,html body .nq-viewpill a:hover,html body .nq-viewpill button:focus-visible,html body .nq-viewpill a:focus-visible{background:#EEF6F0!important;color:#3F5A47!important}
html body .nq-viewpill button[aria-pressed="true"],html body .nq-viewpill a[aria-pressed="true"],html body .nq-viewpill a[aria-current="page"]{background:#80B490!important;color:#fff!important;box-shadow:0 1px 2px rgba(17,24,39,.12),0 2px 8px rgba(95,154,114,.35);text-shadow:0 1px 1px rgba(0,0,0,.18)}
html body .nq-viewpill button[aria-pressed="true"]:hover,html body .nq-viewpill a[aria-pressed="true"]:hover,html body .nq-viewpill a[aria-current="page"]:hover,
html body .nq-viewpill button[aria-pressed="true"]:focus-visible,html body .nq-viewpill a[aria-current="page"]:focus-visible{background:#5f9a72!important;color:#fff!important}
html body .nq-viewpill button:focus-visible,html body .nq-viewpill a:focus-visible{outline:2px solid #5f9a72;outline-offset:2px}
html body .nq-viewpill button[aria-disabled="true"]{opacity:.6;cursor:pointer}
@media (prefers-reduced-motion:reduce){html body .nq-viewpill button,html body .nq-viewpill a{transition:none}}

/* 20261106V1 polish: hero clean edge (no 1px line border, no dark ink bleed at rounded corners) */
.nq-hero{border:0;background:transparent;isolation:isolate;-webkit-mask-image:-webkit-radial-gradient(white,black)}
.nq-slide-media{background-color:#E5E7EB}
/* hero white text readability */
.nq-hero-title{text-shadow:0 1px 2px rgba(0,0,0,.45),0 2px 12px rgba(0,0,0,.30)}
.nq-hero-dek,.nq-hero-meta{text-shadow:0 1px 2px rgba(0,0,0,.45)}
.nq-hero-meta .nq-tag{text-shadow:none}
/* desktop hero arrows auto-hide after 3s idle; focus keeps them visible */
@media (min-width:992px){
  .nq-hero .nq-hero-nav button{transition:opacity .35s ease}
  .nq-hero.is-arrows.is-nav-idle .nq-hero-nav button{opacity:0}
  .nq-hero.is-arrows.is-nav-idle .nq-hero-nav button:focus-visible,
  .nq-hero.is-arrows .nq-hero-nav:focus-within button{opacity:1;visibility:visible}
}
/* mobile: hero then Latest; sub-hero hidden */
@media (max-width:767px){.nq-subhero{display:none!important}}


/* P17 mobile overflow harden */
html, body { max-width: 100%; overflow-x: clip; }
img, video, canvas, svg { max-width: 100%; height: auto; }
.nq-paper-grid, .nq-content-grid, .nq-grid, .nqn-articles { max-width: 100%; min-width: 0; }
.nq-paper-cardx, .nq-card, .nq-paper-card { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.nq-paper-cardx .nq-card-title, .nq-card-title, .nq-card-body, .nq-card-foot { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.nq-paper-ed-framewrap, .nq-paper-ed-iframe { max-width: 100%; min-width: 0; }
@media (max-width: 820px) {
  .nq-paper-ed-framewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 09v: infinite scroll sentinel; article cards share the Ads action layout */
.nq-infinite-sentinel { width: 100%; min-height: 1px; grid-column: 1 / -1; }
.nq-infinite-sentinel[aria-busy="true"] { min-height: 2rem; }
.nq-article-cardx .nq-card-title { overflow-wrap: anywhere; }

/* pt1028u: modal action row — Save (left) + Publish/Unpublish (right). */
.nq-pubbar{display:flex;gap:12px;align-items:stretch;margin:1.25rem 3px 3px}
.nq-pubbar>.nq-btn-full,.nqn-dlg-body form .nq-pubbar>.nq-btn-full{flex:1 1 0;width:auto!important;max-width:none!important;margin:0!important}
.nq-pubbar>.nq-pubbar-pub.is-live{color:#6B7280!important;border-color:#9CA3AF!important}
.nq-pubbar>.nq-pubbar-pub.is-live:hover,.nq-pubbar>.nq-pubbar-pub.is-live:focus-visible{background:#6B7280!important;color:#fff!important;border-color:#6B7280!important}
.nq-pubbar>.nq-btn-full[disabled]{opacity:.55;cursor:not-allowed}
.nq-pubbar>.nq-btn-full[hidden]{display:none!important}
.nq-pubmsg{margin:.75rem 3px 0}
.nq-pubmsg.is-ok{color:#2F5D3E}

/* t1031u: single Save + Published toggle row, autosave status, Fossick list empty note */
.nq-pubrow{display:flex;align-items:center;gap:.6rem;margin:.75rem 0 .5rem}
.nq-pubrow-lbl{font-weight:600}
.nq-editsave{margin-left:auto;font-size:.85rem;opacity:.75}
.nq-editsave.is-err{color:#b3261e;opacity:1}
.nq-pubbar .nq-pubbar-save{width:100%}
.nq-list-none{padding:1rem;text-align:center;opacity:.75}

/* Login plan tabs (t1361u): active tab is white and flows into the panel. */
.nq-login-promo.nq-login-plans{
  background:linear-gradient(165deg,#5f9a72 0%,#80B490 55%,#9cc9a8 100%);
  color:#1f2937;
  padding:0;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.nq-login-tablist{
  display:flex;
  align-items:stretch;
  gap:0;
  padding:0.7rem 0.7rem 0;
}
.nq-login-tab{
  appearance:none;
  -webkit-appearance:none;
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.45rem;
  margin:0;
  border:0;
  border-radius:14px 14px 0 0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-weight:800;
  font-size:1.05rem;
  padding:0.85rem 0.6rem;
  cursor:pointer;
  min-height:3.1rem;
}
.nq-login-tab .nq-login-tab-ic{
  display:flex;
  width:1.35rem;
  height:1.35rem;
  flex:0 0 auto;
}
.nq-login-tab .nq-login-tab-ic svg{
  width:1.35rem;
  height:1.35rem;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nq-login-tab.is-on{
  background:#fff;
  color:#51705A;
}
.nq-login-tab:not(.is-on):hover,
.nq-login-tab:not(.is-on):focus-visible{
  background:rgba(255,255,255,.16);
  outline:0;
}
.nq-login-plan-body{
  background:#fff;
  color:#1f2937;
  flex:1 1 auto;
  padding:1.35rem 1.4rem 1.5rem;
  border-radius:0 0 0 0;
}
.nq-login-plans .nq-login-promo-title{color:#1f2937;margin:0 0 .65rem;font-size:1.4rem}
.nq-login-plans .nq-login-price{color:#1f2937}
.nq-login-plans .nq-login-price-note,
.nq-login-plans .nq-login-plan-lead,
.nq-login-plans .nq-login-features,
.nq-login-plans .nq-login-promo-note{color:#374151;opacity:1}
.nq-login-plan-lead{margin:0 0 .85rem;line-height:1.45}
.nq-login-plans .nq-login-features{margin-bottom:1rem}

@media (max-width: 719px){
  .nq-login-tab:not(.is-on) .nq-login-tab-lbl{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .nq-login-tab:not(.is-on){flex:0 0 3.2rem;padding:0.85rem 0.4rem}
  .nq-login-tab.is-on{flex:1 1 auto}
}

/* /my/plans */
.nq-plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem}
.nq-plan-card{background:#fff;border:1px solid #d7e4d9;border-radius:18px;padding:1.2rem 1.15rem 1.25rem;display:flex;flex-direction:column;min-width:0;height:100%}
.nq-plan-card.is-current{border-color:#80B490;box-shadow:0 0 0 2px rgba(128,180,144,.35)}
.nq-plan-card-ic{margin:0 0 .4rem;width:1.7rem;height:1.7rem;color:#51705A}
.nq-plan-card-ic svg{width:1.7rem;height:1.7rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nq-plan-card h2{margin:0 0 .35rem;font-size:1.3rem}
.nq-plan-badge{display:inline-block;margin:0 0 .5rem;padding:.15rem .55rem;border-radius:999px;background:#80B490;color:#fff;font-size:.75rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.nq-plan-price{margin:0 0 .15rem;font-size:1.35rem}
.nq-plan-price-note{margin:0 0 .6rem;color:#6B7280;font-size:.9rem}
.nq-plan-desc{margin:0 0 .7rem;color:#374151;line-height:1.45}
.nq-plan-bullets{margin:0 0 1rem;padding:0 0 0 1.1rem;flex:1 1 auto}
.nq-plan-bullets li{margin:0 0 .35rem}
.nq-plan-upgrade{appearance:none;margin-top:auto;border:0;border-radius:999px;background:#80B490;color:#fff;font:inherit;font-weight:800;padding:.7rem 1.1rem;cursor:pointer}
.nq-plan-upgrade:hover,.nq-plan-upgrade:focus-visible{background:#5f9a72;outline:0}
.nq-plan-upgrade:disabled{opacity:.55;cursor:not-allowed}
.nq-plan-pending,.nq-plan-success{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:12px;padding:.85rem 1rem;color:#14532D}
.nq-plan-agreement{white-space:pre-wrap;font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f8faf8;border:1px solid #e5e7eb;border-radius:10px;padding:.85rem;max-height:280px;overflow:auto;margin:0 0 .85rem}
.nq-plan-accept{display:flex;gap:.5rem;align-items:flex-start;margin:0 0 .85rem;line-height:1.4}
.nq-plan-period{display:flex;gap:1rem;margin:0 0 .7rem}
.nq-plan-confirm .nq-plan-upgrade{width:100%}
@media (max-width: 900px){
  .nq-plans-grid{grid-template-columns:1fr}
}


/* t1366: invoice viewer — page/overlay scroll, modal grows with scaled PDF, more space above/below */
.nqn-dlg-overlay:has(.nq-inv-modal){
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:56px 16px 72px;
}
.nqn-dlg:has(.nq-inv-modal){
  max-height:none;
  overflow:visible;
  margin:0 auto 24px;
  width:100%;
  max-width:min(960px,96vw);
}
.nqn-dlg-body:has(.nq-inv-modal){
  max-height:none !important;
  overflow:visible !important;
  padding:20px 20px 24px;
}
.nq-inv-modal{gap:16px;min-height:0;}
.nq-inv-modal-frame{
  flex:0 0 auto !important;
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
  position:relative;
  background:#fff;
}
.nq-inv-modal-frame img.nq-inv-pdf-preview{
  position:static !important;
  inset:auto !important;
  display:block;
  width:100%;
  height:auto !important;
  object-fit:contain;
  object-position:top center;
  background:#fff;
  border:0;
}

/* t1366: footer bug reporter */
.nq-footer{position:relative;}
.nq-footer-bug{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border:0;border-radius:50%;
  background:transparent;color:#5f9a72;cursor:pointer;padding:0;
}
.nq-footer-bug svg{width:20px;height:20px;display:block;}
.nq-footer-bug:hover,.nq-footer-bug:focus-visible{background:#E8F2EB;color:#2F5D3E;outline:0;}
.nq-bug-preview{text-align:center;margin:0 0 12px;border:1px dashed color-mix(in srgb, var(--nqn-logo,#80B490) 55%, transparent);border-radius:12px;background:#F9FAFB;min-height:120px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.nq-bug-preview img{display:block;max-width:100%;max-height:220px;margin:0 auto;}
.nq-bug-preview p{margin:0;color:#6B7280;font-size:.9rem;padding:1rem;}
.nq-bug-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;}
.nq-bug-ok{margin-top:12px;}

/* t1366: messages contact bubble (BookBag-style FAB) */
.nq-contact-fab{
  position:fixed;right:20px;bottom:24px;z-index:40;
  width:56px;height:56px;border:0;border-radius:50%;
  background:var(--nqn-logo,#80B490);color:#fff;cursor:pointer;
  box-shadow:0 8px 20px rgba(47,93,62,.28);
  display:inline-flex;align-items:center;justify-content:center;padding:0;
}
.nq-contact-fab svg{width:24px;height:24px;display:block;}
.nq-contact-fab:hover,.nq-contact-fab:focus-visible{background:#5f9a72;outline:2px solid #2F5D3E;outline-offset:2px;}
@media (max-width:600px){.nq-contact-fab{right:14px;bottom:16px;width:52px;height:52px;}}


/* New/Edit Bot — tabbed work-role briefs */
.nq-bot-work-roles{margin:0.85rem 0 1rem}
.nq-bot-work-roles .nqn-field-label{font-weight:700;margin:0 0 0.45rem}
.nq-bot-roles[data-nqn-bot-work-roles]{margin:0.85rem 0 1rem}
.nq-bot-roles .nq-bot-work-tabs{margin-top:0.15rem}
.nq-bot-work-tabs{display:flex;gap:0.3rem;flex-wrap:wrap;margin:0 0 0.7rem}
.nq-bot-work-tab{appearance:none;border:1px solid #D1D5DB;background:#F9FAFB;color:#14532D;border-radius:999px;padding:0.35rem 0.85rem;font-weight:700;font-size:0.9rem;cursor:pointer}
.nq-bot-work-tab.is-on,.nq-bot-work-tab[aria-selected="true"]{background:#14532D;color:#fff;border-color:#14532D}
.nq-bot-work-panel{border:1px solid #E5E7EB;border-radius:12px;padding:0.75rem 0.85rem;background:#fff}
.nq-bot-work-panel .nqn-meta{margin:0 0 0.6rem}
.nq-bot-work-panel .nq-bot-role-cloud{margin:0 0 0.65rem}
.nq-bot-work-panel .nqn-check{margin:0 0 0.65rem}

.nq-mh-cardx.is-held{opacity:.82}
.nq-mh-cardx.is-held .nq-mh-suspend{display:none}

/* t1373: bot Roles swipe (My|All viewpill + user-menu-style pages) */
.nq-bot-roles-swipe{margin:0.85rem 0 1rem}
.nq-bot-roles-swipe .nq-viewpill{margin:0 auto 0.75rem;display:inline-flex}
.nq-bot-roles-swipe .nq-bot-swipe-tools{text-align:center}
.nq-bot-swipe{overflow:hidden;touch-action:pan-y;cursor:grab;user-select:none}
.nq-bot-swipe-track{display:flex;transition:transform .32s ease}
.nq-bot-swipe-track.is-drag{transition:none}
.nq-bot-swipe-page{flex:0 0 100%;min-width:0;box-sizing:border-box;padding:0.1rem 0.1rem 0.4rem}
.nq-bot-tab-schedule{margin:0.75rem 0 0;padding:0.7rem 0 0;border-top:1px solid #E5E7EB}
.nq-bot-tab-schedule > .nqn-field-label{font-weight:700;margin:0 0 0.45rem}
.nq-bot-tab-sources{margin:0.65rem 0 0}
.nq-dlg-body .nq-bot-roles-swipe .nq-viewpill, .nqn-dlg-body .nq-bot-roles-swipe .nq-viewpill{margin-left:0}

.nq-eng-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 1.25rem;
}
.nq-eng-tile {
  background: #fff;
  border: 1px solid var(--line, #D1D5DB);
  border-radius: 14px;
  padding: 0.85rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.nq-eng-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4B6A55;
}
.nq-eng-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1F2A22;
  line-height: 1.15;
}
.nq-eng-sub {
  font-size: 0.78rem;
  color: #6B7280;
}
.nq-eng-chart {
  margin: 0 0 1.4rem;
  padding: 0.85rem 0.9rem 0.6rem;
  background: #fff;
  border: 1px solid var(--line, #D1D5DB);
  border-radius: 16px;
}
.nq-eng-chart figcaption {
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #1F2A22;
}
.nq-eng-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.nq-eng-grid { stroke: #E5E7EB; stroke-width: 1; }
.nq-eng-axis { font-size: 11px; fill: #6B7280; }
.nq-eng-legend { font-size: 12px; fill: #374151; font-weight: 600; }
.nq-eng-note {
  color: #6B7280;
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}
@media (max-width: 900px) {
  .nq-eng-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nq-eng-tile:last-child { grid-column: 1 / -1; }
}

.nq-meme-page{max-width:40rem;margin:0 auto;padding:0 0 2rem}
.nq-meme-page .nq-meme-photo{margin:1rem 0 0}
.nq-meme-page .nq-meme-photo img{display:block;width:100%;height:auto;border-radius:8px}
