/* Like an app on phones: pages don't slide sideways, and nothing zooms by pinch, double tap or
   focusing a field (the viewport tag caps the scale; this covers browsers that ignore it). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }
html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }

/* Shared QÜBE nav: a single menu that grows out of its button.
   Top center on desktop; floating at the bottom on phones. */
.qn {
  --qn-ink: var(--ink, #111216);
  --qn-muted: var(--muted, #6b6f78);
  --qn-line: var(--line, #e4e6ea);
  --qn-faint: var(--faint, #f5f6f8);
  --qn-accent: var(--accent, #3a3df5);
  --qn-gutter: var(--gutter, clamp(16px, 5vw, 64px));
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--qn-gutter) 20px;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.qn-overlay { position: fixed; top: 0; left: 0; right: 0; max-width: none; }
.qn-mark {
  justify-self: start;
  font: 500 15px/1 "Unbounded", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--qn-ink);
}
.qn-u { position: relative; display: inline-block; }
.qn-u::before, .qn-u::after {
  content: ""; position: absolute; top: -0.08em;
  width: 0.1em; height: 0.1em; border-radius: 50%; background: var(--qn-accent);
}
.qn-u::before { left: 22%; }
.qn-u::after { right: 22%; }

/* ---------- the menu */
.qn-menu { position: relative; justify-self: center; }
.qn-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px 0 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px var(--qn-line), 0 6px 24px rgba(17, 18, 22, 0.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--qn-ink);
  font-family: inherit; font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1), box-shadow 0.25s;
}
.qn-open .qn-trigger { box-shadow: inset 0 0 0 1px var(--qn-line), 0 2px 8px rgba(17, 18, 22, 0.05); }
.qn-trigger:hover { box-shadow: inset 0 0 0 1px var(--qn-muted), 0 8px 28px rgba(17, 18, 22, 0.09); }
.qn-trigger:active { transform: scale(0.96); }
.qn-cur svg { width: 18px; height: 18px; display: block; }
.qn-chev {
  width: 7px; height: 7px; margin-left: 2px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.45s cubic-bezier(.2, 1.4, .4, 1), margin 0.45s;
}
.qn-open .qn-chev { transform: rotate(225deg); margin-top: 3px; }

.qn-panel {
  max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain;
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 272px; margin: 0 0 0 -136px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 2px; padding: 6px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--qn-line), 0 2px 6px rgba(17, 18, 22, 0.04), 0 24px 56px rgba(17, 18, 22, 0.10);
  text-align: left;
  will-change: clip-path, transform;
}
.qn-panel[hidden] { display: none; }
/* pApps: a button row that unfolds the Point Apps beneath it */
button.qn-item { font: inherit; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.qn-apps { margin-top: 6px; }
.qn-apps::before { opacity: 0.7 !important; top: -4px !important; }
.qn-item.qn-apps::after { content: none; }
.qn-fold {
  width: 7px; height: 7px; margin: -4px 4px 0 0;
  border-right: 1.5px solid var(--qn-muted); border-bottom: 1.5px solid var(--qn-muted);
  transform: rotate(45deg); transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1), margin 0.35s;
}
.qn-apps[aria-expanded="true"] .qn-fold { transform: rotate(225deg); margin-top: 4px; }
.qn-item.qn-apps[aria-expanded="true"] .qn-ic { background: var(--qn-ink); color: #fff; box-shadow: none; }
.qn-sub { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 2px 14px; margin-left: 25px; border-left: 1px solid var(--qn-line); }
.qn-sub[hidden] { display: none; }
.qn-sub .qn-item { padding-block: 6px; grid-template-columns: 32px minmax(0, 1fr) auto; }
.qn-sub .qn-item + .qn-item::before { display: none; }
.qn-sub .qn-ic { width: 32px; height: 32px; border-radius: 10px; }
.qn-sub .qn-ic svg { width: 18px; height: 18px; }
.qn-item {
  position: relative;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  text-decoration: none; color: var(--qn-ink);
  transition: background 0.18s;
}
.qn-item + .qn-item::before {
  content: ""; position: absolute; top: -1px; left: 58px; right: 14px;
  height: 1px; background: var(--qn-line); opacity: 0.7; transition: opacity 0.18s;
}
.qn-item:hover, .qn-item:focus-visible { background: var(--qn-faint); outline: none; }
.qn-item:hover::before, .qn-item:hover + .qn-item::before,
.qn-item[aria-current="page"]::before, .qn-item[aria-current="page"] + .qn-item::before { opacity: 0; }
.qn-item[aria-current="page"] { background: var(--qn-faint); }
.qn-item::after {
  content: "\2192"; font: 300 15px/1 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: var(--qn-muted);
  opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.25s cubic-bezier(.2, 1.4, .4, 1);
}
.qn-item:hover::after, .qn-item:focus-visible::after { opacity: 1; transform: none; }
.qn-item[aria-current="page"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qn-accent); opacity: 1; transform: none;
}
.qn-ic {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--qn-faint); color: var(--qn-ink);
  transition: background 0.18s, color 0.18s;
}
.qn-item:hover .qn-ic { background: #fff; box-shadow: inset 0 0 0 1px var(--qn-line); }
.qn-item[aria-current="page"] .qn-ic { background: var(--qn-ink); color: #fff; box-shadow: none; }
.qn-ic svg { width: 20px; height: 20px; overflow: visible; }
.qn-ic [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.qn-ic .qn-pop, .qn-cur .qn-pop { transform-box: fill-box; transform-origin: center; }
.qn-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.qn-tx b { font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; }
.qn-tx small { font: 400 13px/1.1 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: var(--qn-muted); }

.qn-scrim {
  position: fixed; inset: 0; z-index: 35; pointer-events: none;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background 0.35s, backdrop-filter 0.35s, -webkit-backdrop-filter 0.35s;
}
.qn-scrim.on { pointer-events: auto; background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

.qn-trigger:focus-visible, .qn-mark:focus-visible, .qn-me a:focus-visible { outline: 1px solid var(--qn-accent); outline-offset: 3px; }

/* ---------- me */
.qn-me { justify-self: end; display: flex; align-items: center; gap: 14px; }
.qn-join {
  font: 500 13px/1 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none; color: #fff; background: var(--qn-ink);
  padding: 10px 16px; border-radius: 999px; transition: background 0.2s;
}
.qn-join:hover { background: var(--qn-accent); }
.qn-avatar { display: block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--qn-line); }
.qn-avatar svg { display: block; width: 100%; height: 100%; }

/* ---------- phones: the menu floats at the bottom and opens upward */
/* ---------------------------------------------------------------- Sidequests */
.qn-me { position: relative; }
.qn-quest {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--qn-ink); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--qn-line);
  transition: box-shadow 0.2s, color 0.2s, transform 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.qn-quest[hidden] { display: none; }
.qn-quest svg { width: 18px; height: 18px; }
.qn-quest:hover { box-shadow: inset 0 0 0 1px var(--qn-muted); transform: rotate(-12deg) scale(1.06); }
.qn-quest:active { transform: scale(0.92); }
.qn-quest[aria-expanded="true"] { background: var(--qn-ink); color: #fff; box-shadow: none; }
.qn-quest.ready { color: var(--qn-accent); }
.qn-quest.ready svg { animation: qq-twinkle 2.6s ease-in-out infinite; }
@keyframes qq-twinkle { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(18deg) scale(1.15); } 90% { transform: rotate(-8deg) scale(1.05); } }
.qn-qdot {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--qn-accent); color: #fff; box-shadow: 0 0 0 2px #fff;
  font: 500 9px/1 "JetBrains Mono", ui-monospace, monospace;
}
.qn-qdot[hidden] { display: none; }
.qn-quest:focus-visible { outline: 1px solid var(--qn-accent); outline-offset: 3px; }

.qq {
  position: absolute; top: calc(100% - 6px); right: var(--qn-gutter); z-index: 50;
  width: min(380px, calc(100vw - 32px)); padding: 18px 14px 12px;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; color: var(--qn-ink); text-align: left;
  box-shadow: inset 0 0 0 1px var(--qn-line), 0 2px 6px rgba(17, 18, 22, 0.04), 0 24px 56px rgba(17, 18, 22, 0.12);
  transform-origin: top right;
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
.qq[hidden] { display: none; }
.qq-head { padding: 0 6px 14px; }
.qq-head h2 { margin: 0; font: 300 20px/1.1 "Unbounded", "Helvetica Neue", Arial, sans-serif; }
.qq-head p { margin: 6px 0 0; font: 400 11px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em; color: var(--qn-muted); }
.qq-head p b { font-weight: 400; color: var(--qn-ink); }
.qq-bar { display: block; height: 4px; margin-top: 12px; border-radius: 999px; background: var(--qn-faint); overflow: hidden; }
.qq-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--qn-accent), #8f92ff); }
.qq-list { display: flex; flex-direction: column; gap: 8px; }
.qq-card {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 10px; border-radius: 16px; background: var(--qn-faint);
  transition: background 0.3s, box-shadow 0.3s;
}
.qq-card.done { background: #f3f3ff; box-shadow: inset 0 0 0 1px rgba(58, 61, 245, 0.28); }
.qq-card.fresh { box-shadow: inset 0 0 0 1px var(--qn-line); }
.qq-body h3 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.25; }
.qq-body p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--qn-muted); }
.qq-ring svg { display: block; width: 36px; height: 36px; overflow: visible; }
.qq-ring circle { fill: none; stroke: var(--qn-line); stroke-width: 2; }
.qq-ring .qq-arc { stroke: var(--qn-accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 0.6s cubic-bezier(.2, .8, .2, 1); }
.qq-ring .qq-tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s 0.45s cubic-bezier(.2, .8, .2, 1); }
.qq-card.done .qq-arc { stroke-dashoffset: 0.25; animation: qq-spin 2.4s linear infinite; }
.qq-card.claimed .qq-arc { stroke-dashoffset: 0; animation: none; }
.qq-card.claimed .qq-ring circle:first-child { fill: var(--qn-accent); stroke: var(--qn-accent); transition: fill 0.25s 0.35s; }
.qq-card.claimed .qq-tick { stroke-dashoffset: 0; }
@keyframes qq-spin { to { transform: rotate(270deg); } }
.qq-go, .qq-claim {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-decoration: none;
}
.qq-go { color: var(--qn-muted); background: #fff; box-shadow: inset 0 0 0 1px var(--qn-line); transition: color 0.2s, box-shadow 0.2s; }
.qq-go b { font-weight: 500; color: var(--qn-ink); }
.qq-go span { transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1); }
.qq-go:hover { color: var(--qn-ink); box-shadow: inset 0 0 0 1px var(--qn-muted); }
.qq-go:hover span { transform: translateX(3px); }
.qq-claim {
  position: relative; overflow: hidden; border: 0; cursor: pointer; color: #fff; background: var(--qn-accent); text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(58, 61, 245, 0.35); transition: transform 0.3s cubic-bezier(.2, 1.4, .4, 1), box-shadow 0.2s;
  animation: qq-breathe 1.8s ease-in-out infinite;
}
.qq-claim b { font-weight: 500; }
.qq-claim::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: qq-shine 2.4s ease-in-out infinite;
}
.qq-claim:hover { transform: translateY(-1px) scale(1.04); }
.qq-claim:active { transform: scale(0.94); }
.qq-claim:disabled { cursor: default; animation: none; }
.qq-card.claimed .qq-claim { background: #2fbf71; box-shadow: 0 6px 18px rgba(47, 191, 113, 0.35); }
.qq-card.claimed .qq-claim::after { display: none; }
@keyframes qq-breathe { 0%, 100% { box-shadow: 0 6px 18px rgba(58, 61, 245, 0.30); } 50% { box-shadow: 0 6px 26px rgba(58, 61, 245, 0.55); } }
@keyframes qq-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.qq-empty { margin: 10px 6px 0; font-size: 13px; color: var(--qn-muted); }
.qq-note { margin: 12px 6px 0; font: 400 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qn-muted); }
.qq-coin {
  position: fixed; left: 0; top: 0; z-index: 1000; width: 14px; height: 14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff6c2 0 18%, #ffd23d 40%, #e0a800 100%);
  box-shadow: 0 0 0 1px rgba(160, 110, 0, 0.35), 0 2px 8px rgba(255, 190, 0, 0.5);
}
.qq-bit { position: fixed; left: 0; top: 0; z-index: 1000; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 2px; pointer-events: none; }
.qq-plus {
  position: absolute; top: calc(100% + 6px); right: 0; padding: 5px 9px; border-radius: 999px; pointer-events: none;
  background: var(--qn-ink); color: #fff; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .qn-quest.ready svg, .qq-claim, .qq-claim::after, .qq-card.done .qq-arc { animation: none; }
}

@media (max-width: 760px) {
  .qn { grid-template-columns: 1fr auto; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; }
  .qn-menu {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  }
  .qn-trigger { height: 48px; padding: 0 18px 0 16px; box-shadow: inset 0 0 0 1px var(--qn-line), 0 10px 30px rgba(17, 18, 22, 0.12); }
  .qn-panel { top: auto; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); margin-left: max(-150px, calc(-50vw + 16px)); }
  .qn-item { padding-block: 10px; }
  .qn-chev { transform: rotate(225deg); margin-top: 3px; }
  .qn-open .qn-chev { transform: rotate(45deg); margin-top: -3px; }
  body.has-qn { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .qn.qn-nomenu:not(.qn-member) .qn-menu { display: none; }
}
.qn-join { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .qn-trigger, .qn-chev, .qn-join, .qn-scrim { transition: none; }
}

/* ---------- members: the pill is a glass Home button (the homescreen replaces the menu) */
.qn-member .qn-chev { display: none; }
.qn-member .qn-trigger {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 250, 0.9) 50%, rgba(229, 232, 239, 0.92) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(17, 18, 22, 0.05), inset 0 0 0 1px rgba(17, 18, 22, 0.08), 0 10px 22px -10px rgba(17, 18, 22, 0.3);
  transition: transform 0.45s cubic-bezier(.2, 1.6, .4, 1), box-shadow 0.3s;
}
.qn-member .qn-trigger:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(17, 18, 22, 0.05), inset 0 0 0 1px rgba(17, 18, 22, 0.12), 0 14px 26px -10px rgba(17, 18, 22, 0.34); }
.qn-member .qn-trigger:active {
  transform: translateY(1px) scale(0.93); transition: transform 0.08s ease-out, box-shadow 0.08s;
  background: linear-gradient(165deg, rgba(236, 238, 243, 0.98), rgba(228, 231, 237, 0.96));
  box-shadow: inset 0 2px 6px rgba(17, 18, 22, 0.15), inset 0 0 0 1px rgba(17, 18, 22, 0.1);
}
body.is-home .qn-menu { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .qn-member .qn-trigger, .qn-member .qn-trigger:active { transition: none; transform: none; } }

/* ---------------------------------------------------------------- Notifications */
.qn-bell svg { width: 20px; height: 20px; }
.qn-bell:hover { transform: rotate(10deg) scale(1.06); }
.qb-list { list-style: none; margin: 0; padding: 0; max-height: min(420px, 60vh); overflow: auto; }
.qb-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 8px; border-radius: 14px; text-decoration: none; color: inherit; }
.qb-item:hover { background: #f5f5f7; }
.qb-item.new { background: #f0f0ff; }
.qb-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.qb-av svg { display: block; width: 100%; height: 100%; }
.qb-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.35; }
.qb-tx b { font-weight: 500; }
.qb-snip { color: var(--qn-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qb-item time { font: 400 10px/1.6 "JetBrains Mono", ui-monospace, monospace; color: var(--qn-muted); }
.qb-empty { padding: 6px 8px 10px; font-size: 13.5px; color: var(--qn-muted); }
a.mention { color: var(--accent, #3a3df5); text-decoration: none; font-weight: 500; }
a.mention:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Opinions */
.op { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 460px; }
.op-opt { text-align: left; padding: 11px 14px; min-height: 44px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--qn-line, #e4e6ea); cursor: pointer; font: 500 14.5px/1.3 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: var(--qn-ink, #111216); transition: box-shadow .2s, background .2s, transform .2s; }
.op-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--qn-accent, #3a3df5); background: #f7f7ff; }
.op-opt:active:not(:disabled) { transform: scale(.98); }
.op-opt.picking { background: var(--qn-accent, #3a3df5); color: #fff; box-shadow: none; }
.op-bar { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; overflow: hidden; background: #f5f5f7; font: 400 14.5px/1.3 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; }
.op-bar i { position: absolute; inset: 0 auto 0 0; background: #e4e4f5; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.op-bar.top i { background: #d9d9ff; }
.op-bar.mine { font-weight: 500; }
.op-bar span { position: relative; }
.op-p { font: 400 12px/1.6 "JetBrains Mono", ui-monospace, monospace; color: var(--qn-muted, #6b6f78); }
.op-meta { font: 400 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; color: var(--qn-muted, #6b6f78); }

/* ---------------------------------------------------------------- Proposals */
.prop { --pc: var(--qn-accent, #3a3df5); display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 520px; padding: 16px 16px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--qn-line, #e4e6ea); }
.prop[data-status="review"] { --pc: #c77700; }
.prop[data-status="passed"], .prop[data-status="shipped"] { --pc: #1f8a52; }
.prop[data-status="declined"], .prop[data-status="closed"] { --pc: #8a8f99; }
.prop-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.prop-kind { color: var(--qn-muted, #6b6f78); }
.prop-status { color: var(--pc); padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 12%, transparent); }
.prop-title { font: 300 20px/1.25 "Unbounded", "Helvetica Neue", Arial, sans-serif; color: var(--qn-ink, #111216); overflow-wrap: anywhere; }
.prop-body { margin: 0; font: 400 15px/1.5 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: var(--qn-ink, #111216); white-space: pre-wrap; overflow-wrap: anywhere; }
.prop-ticks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.prop-ticks i { height: 6px; border-radius: 3px; background: #ececf1; transition: background .4s; }
.prop-ticks i.on { background: var(--pc); }
.prop-meta, .prop-hint, .prop-msg { font: 400 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; color: var(--qn-muted, #6b6f78); }
.prop-msg:empty { display: none; }
.prop-note { font-size: 14px; line-height: 1.45; color: var(--qn-ink, #111216); padding: 10px 12px; border-radius: 12px; background: #f5f5f7; }
.prop-note span { font: 500 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; color: var(--pc); }
.prop-note a { color: var(--pc); text-decoration: none; font-weight: 500; }
.prop-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--qn-ink, #111216); color: #fff; font: 500 14px/1 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: transform .2s; }
.prop-back span { font: 400 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; color: #ffb38a; }
.prop-back:active:not(:disabled) { transform: scale(.97); }
.prop-seal { background: #fff; color: var(--qn-ink, #111216); box-shadow: inset 0 0 0 1.5px var(--qn-ink, #111216); }
.prop-seal span { color: var(--qn-muted, #6b6f78); }
.prop-back:disabled { background: #ececf1; color: var(--qn-muted, #6b6f78); cursor: default; }
.prop-decide { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--qn-line, #e4e6ea); }
.prop-decide input { min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--qn-line, #e4e6ea); font: inherit; font-size: 13px; }
.prop-decide div { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.prop-decide button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--qn-line, #e4e6ea); background: #fff; font: 500 13px/1 "Hanken Grotesk", sans-serif; cursor: pointer; }
.prop-decide .prop-d-passed, .prop-decide .prop-d-shipped { border-color: #1f8a52; color: #1f8a52; }
.prop-decide .prop-d-declined { border-color: #b8bbc2; color: #6b6f78; }

/* ---------------------------------------------------------------- Release posts */
.relcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 22px 22px 20px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.86) 0%, rgba(246,247,255,.72) 55%, rgba(255,255,255,.8) 100%), #eef0ff;
  color: #111216; text-decoration: none; isolation: isolate;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(17,18,22,.06), 0 1px 2px rgba(17,18,22,.04), 0 22px 44px -22px rgba(58,61,245,.32);
  transition: transform .4s cubic-bezier(.2,1.4,.4,1), box-shadow .3s;
}
.relcard:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(17,18,22,.08), 0 1px 2px rgba(17,18,22,.05), 0 30px 54px -22px rgba(58,61,245,.4); }
/* soft light moving under the glass */
.rel-glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.rel-glow::before, .rel-glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(34px); }
.rel-glow::before { width: 280px; height: 280px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(88, 92, 255, .42), transparent 68%); animation: rel-drift 8s ease-in-out infinite alternate; }
.rel-glow::after { width: 240px; height: 240px; left: -80px; bottom: -130px; background: radial-gradient(circle, rgba(255, 120, 170, .26), transparent 68%); animation: rel-drift 10s ease-in-out infinite alternate-reverse; }
/* a sheen across the top edge, like light on glass */
.relcard::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 46%; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
@keyframes rel-drift { to { transform: translate(-36px, 28px) scale(1.15); } }
.rel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rel-eye { display: inline-flex; align-items: center; gap: 8px; font: 400 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #3a3df5; }
.rel-eye::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a3df5; box-shadow: 0 0 0 0 rgba(58,61,245,.45); animation: rel-pulse 2.4s infinite; }
@keyframes rel-pulse { 70% { box-shadow: 0 0 0 7px rgba(58,61,245,0); } 100% { box-shadow: 0 0 0 0 rgba(58,61,245,0); } }
.rel-v { font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace; padding: 6px 10px; border-radius: 999px; color: #111216; background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(17,18,22,.08); }
.rel-title { font: 300 clamp(24px, 3.4vw, 32px)/1.08 "Unbounded", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; text-wrap: balance; }
.rel-lede { color: #555963; font-size: 15px; line-height: 1.45; }
.rel-items { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.rel-items li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; color: #2a2c33; }
.rel-chip { justify-self: start; font: 400 9.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: rgba(58,61,245,.1); color: #2d30c9; }
.rel-change { background: rgba(31, 138, 82, .12); color: #17693e; }
.rel-fix { background: rgba(199, 119, 0, .14); color: #8a5300; }
.rel-go { margin-top: 6px; font: 500 12px/1 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #111216; display: inline-flex; gap: 8px; }
.rel-go i { font-style: normal; transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.relcard:hover .rel-go i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .rel-glow::before, .rel-glow::after, .rel-eye::before { animation: none; } }

/* The Penta's pages: its numbers and the update log. */
.ptabs { display: inline-flex; padding: 3px; margin: 0 0 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, #e4e6ea); }
.ptabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6f78); transition: background .2s, color .2s; }
.ptabs a[aria-current="page"] { background: var(--ink, #111216); color: #fff; }
