/* Stacksy Lab. Tokens from stacksy.com.au (assets/css/styles.css). Text colours meet WCAG AA:
   #3a5fb5 is the AA-safe brand blue for text and buttons; #5b7dd9 is for accents only. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1f2b;
  --ink-2: #2d3340;
  --ink-3: #4a5160;
  --muted: #5b6270;
  --line: #d9dde4;
  --line-strong: #8a919e;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --brand: #5b7dd9;
  --brand-text: #3a5fb5;
  --brand-dark: #2c4a91;
  --good: #1f7a3a;
  --good-bg: #e8f5ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --focus: #1a1f2b;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-3); }
strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; color: #fff; }

.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;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; width: 120px; height: auto; }
.brand__lab {
  font-weight: 700; font-size: .95rem; color: var(--ink-2);
  border-left: 1px solid var(--line-strong); padding-left: 10px;
}
.nav { list-style: none; display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--brand-text); text-decoration: underline; }
.nav a.btn { color: #fff; }
.nav form { margin: 0; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2);
  font-weight: 500; cursor: pointer;
}
.linkish:hover { color: var(--brand-text); text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 0; font-size: .95rem; }
.site-footer p { margin: 0 0 12px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand-text); color: #fff; font-weight: 600;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--brand-text);
  text-decoration: none; font-size: 1.0625rem; line-height: 1.2; cursor: pointer; font-family: inherit;
  min-height: 48px;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--small { padding: 8px 16px; font-size: .95rem; min-height: 40px; }
.btn--ghost { background: #fff; color: var(--brand-text); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--brand-dark); }
.btn--quiet { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-3); }
.btn--danger { background: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Marketing page */
.hero { padding: 40px 0 48px; border-bottom: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } .hero { padding: 80px 0 88px; } }
.hero__sub { font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 700; color: var(--brand-text); margin-top: -.2em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.status-line { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); flex: 0 0 auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--stacksy { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--stacksy:hover { background: #fff; color: var(--ink); border-color: var(--ink-2); box-shadow: 0 2px 8px rgba(15,19,32,.08); }
.btn--stacksy img, .nav__signin img { border-radius: 5px; display: block; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 440px; margin: 0 auto; }
.tile { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 22%; box-shadow: 0 1px 2px rgba(15,19,32,.06), 0 8px 24px rgba(15,19,32,.08); border: 1px solid var(--line); }
.tile img { width: 78%; height: auto; border-radius: 20%; }
.tile--1 { transform: translateY(18px); }
.tile--3 { transform: translateY(18px); }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 520px; } .tile--1, .tile--3 { transform: none; } .tile:nth-child(n+7) { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: float 7s ease-in-out infinite; }
  .tile:nth-child(3n+2) { animation-delay: -2.3s; }
  .tile:nth-child(3n) { animation-delay: -4.6s; }
  @keyframes float { 50% { translate: 0 -6px; } }
}

.notice { background: #fff; border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 6px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.center { text-align: center; }
.section-intro { max-width: 620px; margin: 0 auto; font-size: 1.1rem; color: var(--ink-2); }

.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card--feature { padding: 24px; border-radius: 16px; box-shadow: 0 1px 2px rgba(15,19,32,.04); }
.card--feature h3 { margin-top: 14px; }
.card--feature p { margin: 0; }
.feature-icon, .perk-icon, .persona-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #eef2fc; color: var(--brand-text); }
.feature-icon { width: 48px; height: 48px; }
.feature-icon .icon { width: 26px; height: 26px; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.perk-icon { width: 40px; height: 40px; }
.perks li > span:last-child { padding-top: 7px; }

.products-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.products-panel__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 16px 4px; }
.products li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .76rem; white-space: nowrap; font-weight: 500; color: var(--ink-2); line-height: 1.25; }
.products img { width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 1px 3px rgba(15,19,32,.12); }
.products-panel__note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

.personas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.personas li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-weight: 600; color: var(--ink-2); font-size: .95rem; line-height: 1.35; display: flex; flex-direction: column; gap: 10px; }
.persona-icon { width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); }
.pull { margin: 40px 0 0; padding: 24px 24px 24px 72px; position: relative; border-radius: 16px; background: #eef2fc; }
.pull p { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.pull__icon { position: absolute; left: 24px; top: 24px; color: var(--brand-text); }
@media (max-width: 560px) { .pull { padding: 64px 20px 20px; } .pull__icon { left: 20px; top: 20px; } }

.spread { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.spread li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.spread .icon { color: var(--brand-text); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; color: var(--ink); position: relative;
  list-style: none; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--brand-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 8px; }

.cta-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .cta-grid { grid-template-columns: 1.3fr 1fr; gap: 20px; } }
.cta-card { border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.cta-card h2 { font-size: 1.6rem; }
.cta-card p:last-child { margin-bottom: 0; }
.cta-card--apply { background: var(--ink); border-color: var(--ink); }
.cta-card--apply h2 { color: #fff; }
.cta-card--apply p { color: #c3cad6; }
.cta-card--apply .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-card--apply .btn:hover { background: #eef2fc; border-color: #eef2fc; color: var(--ink); }
.cta-card--signin { background: var(--bg-soft); }

.nav__signin { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 520px) { .nav__long { display: none; } .nav { gap: 12px; } }
@media (max-width: 400px) { .nav__signin img { display: none; } .brand img { width: 104px; } .brand { gap: 8px; } .brand__lab { padding-left: 8px; } }
.icon { flex: 0 0 auto; }

/* Prose pages */
.prose { padding: 40px 0 64px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose li { color: var(--ink-3); margin-bottom: .4em; }
.prose .meta { color: var(--muted); font-size: .95rem; }

/* Forms */
.form-page { padding: 32px 0 64px; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.steps li { font-size: .9rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.steps li[aria-current="step"] { background: var(--brand-text); color: #fff; border-color: var(--brand-text); font-weight: 600; }
.steps li.done { color: var(--good); border-color: #b5dcc1; background: var(--good-bg); }
fieldset.step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
fieldset.step > legend { font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 700; padding: 0; margin-bottom: 12px; color: var(--ink); }
.js fieldset.step[hidden] { display: none; }
.purpose { background: var(--bg-soft); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 6px; font-size: .98rem; }
.field { margin: 0 0 22px; }
.field > label, .field > .label, fieldset.group > legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--bad); font-weight: 600; font-size: .9rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.hint { display: block; color: var(--muted); font-size: .95rem; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1f2b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 1px; border-color: var(--brand-text); }
fieldset.group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; min-height: 44px; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand-text); }
.choice label { color: var(--ink-2); }
.choices--inline { display: flex; flex-wrap: wrap; gap: 0 24px; }
.counter { display: block; text-align: right; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.field-error { display: block; color: var(--bad); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.error-summary { border: 2px solid var(--bad); background: var(--bad-bg); border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.error-summary h2 { font-size: 1.15rem; color: var(--bad); margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--bad); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.saved-note { color: var(--muted); font-size: .9rem; }
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; background: var(--good-bg); color: var(--good); font-weight: 600; }
.flash--warn { background: var(--warn-bg); color: var(--warn); }
.flash--bad { background: var(--bad-bg); color: var(--bad); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }

/* ---------- Admin ---------- */
.admin .site-header__inner, .admin .site-footer__inner { max-width: none; }
.admin-wrap { padding: 20px 16px 48px; }
@media (min-width: 640px) { .admin-wrap { padding: 24px 24px 64px; } }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-nav a { padding: 10px 0; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.admin-nav a[aria-current="page"] { border-bottom-color: var(--brand-text); color: var(--ink); font-weight: 700; }
.pill { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .8rem; text-align: center; }
.admin h1 { font-size: 1.6rem; }
.admin h2 { font-size: 1.15rem; }
.admin-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .admin-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .admin-side { position: sticky; top: 16px; } }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-head h1 { margin: 0; }
.admin-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); font-weight: 400; }
.empty { padding: 24px; background: var(--bg-soft); border-radius: var(--radius); }
.card + .card, .admin-main > .card { margin-top: 16px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 16px; }
.filters summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.filters__grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.filters .field { margin-bottom: 12px; }
.filters label { font-size: .9rem; }
.filters__form { padding-bottom: 16px; }
.admin input, .admin select { min-height: 40px; padding: 7px 10px; font-size: .95rem; }
.admin select { padding-right: 34px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.apps, table.targets { border-collapse: collapse; width: 100%; font-size: .9rem; }
.apps th, .apps td, .targets th, .targets td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.apps thead th { background: var(--bg-soft); white-space: nowrap; position: sticky; top: 0; }
.apps thead th a { color: var(--ink); text-decoration: none; }
.apps thead th a:hover { text-decoration: underline; }
.apps tbody th { font-weight: 600; min-width: 140px; }
.apps .sub { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.apps td { white-space: nowrap; color: var(--ink-2); }
.status { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.status--provisional { background: #eef2fc; border-color: #b9c7ee; color: var(--brand-dark); }
.status--accepted { background: var(--good-bg); border-color: #b5dcc1; color: var(--good); }
.status--waitlisted { background: var(--warn-bg); border-color: #ecd49a; color: var(--warn); }
.status--declined, .status--withdrawn { background: #f1f2f4; color: var(--muted); }
.propose { position: relative; display: flex; gap: 4px; flex-wrap: nowrap; margin: 0; }
.chip { font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 10px; min-height: 32px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"].chip--accepted { background: var(--good); border-color: var(--good); color: #fff; }
.chip[aria-pressed="true"].chip--waitlisted { background: var(--warn); border-color: var(--warn); color: #fff; }
.chip[aria-pressed="true"].chip--declined { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }
.chip--clear { border-style: dashed; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.pager [aria-disabled] { color: var(--muted); }

.scorecard { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.scorecard__title { margin-bottom: 4px; }
.scorecard__summary { font-size: .95rem; margin-bottom: 10px; }
table.sc { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sc th, .sc td { padding: 5px 4px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sc thead th { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sc .num { text-align: right; white-space: nowrap; }
.sc__dim th { padding-top: 12px; font-size: .8rem; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; border-bottom: 0; }
.sc__row th { font-weight: 500; color: var(--ink-2); }
.sc__rule { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.sc__note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.tag--good { background: var(--good-bg); color: var(--good); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--bad { background: var(--bad-bg); color: var(--bad); }

.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; color: var(--ink-3); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.answer { margin: 0 0 12px; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--bg-soft); white-space: pre-wrap; color: var(--ink-2); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.inline-form label { font-weight: 600; }
.inline-form select { width: auto; }
.history { padding-left: 18px; font-size: .9rem; color: var(--ink-3); }
.commit-list { columns: 2 260px; padding-left: 18px; }
.settings-form { max-width: 560px; }
.targets input, .targets select { min-width: 110px; }
.codes { margin-bottom: 12px; }
.codes summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--bg-soft); padding: 1px 4px; border-radius: 4px; }

/* ---------- Member area ---------- */
.member-wrap { padding-top: 20px; padding-bottom: 64px; }
.member-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.member-nav a { padding: 12px 0; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.member-nav a[aria-current="page"] { border-bottom-color: var(--brand-text); color: var(--ink); font-weight: 700; }
.member-nav a.member-nav__cta { margin-left: auto; padding: 8px 16px; border-bottom: 0; color: #fff; }
.member-nav a.member-nav__cta[aria-current="page"] { color: #fff; }
@media (max-width: 560px) { .member-nav a.member-nav__cta { margin: 0 0 10px; } }
.member-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.member-hero h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.member-hero .lead { margin: 0; }
.member-hero__actions { text-align: right; }
.member-hero__actions p { margin: 6px 0 0; }
@media (max-width: 560px) { .member-hero__actions { text-align: left; } }
.member-section { margin-top: 36px; }
.member-section h2 { font-size: 1.3rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.small { font-size: .88rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.form-narrow { max-width: 640px; }
.form-narrow .card + .card { margin-top: 16px; }

.product-cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink-2); height: 100%; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(15,19,32,.06); color: var(--ink); }
.product-card img { border-radius: 22%; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(15,19,32,.12); }
.product-card > span { display: flex; flex-direction: column; gap: 2px; }
.product-card strong { color: var(--ink); }
.product-card .muted { font-size: .9rem; line-height: 1.35; }
.product-cards--large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product-cards--admin { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.product-head { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.product-head img { border-radius: 22%; box-shadow: 0 2px 8px rgba(15,19,32,.12); }
.product-head h1 { margin: 0; }
.product-head .lead { margin: 4px 0 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 6px; }
.product-body { display: grid; gap: 24px; }
@media (min-width: 960px) { .product-body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.product-body aside .card + .card { margin-top: 16px; }
.product-body aside h2 { font-size: 1.1rem; }
.prose-text { color: var(--ink-3); }
.try-list { padding-left: 22px; }
.try-list li { margin-bottom: 8px; color: var(--ink-2); }
.video { margin: 0 0 20px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 8px; font-weight: 600; color: var(--ink-2); }
.video-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.video-row form { margin: 0; }

.news { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.news__item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.news__item--pinned { border-color: #b9c7ee; background: #f6f8fe; }
.news__item h3 { margin: 4px 0 6px; }
.news__meta { margin: 0; font-size: .85rem; color: var(--muted); }
.news__body { color: var(--ink-3); }

.fb-list { list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.fb-row + .fb-row { border-top: 1px solid var(--line); }
.fb-row a { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink-2); min-height: 56px; }
.fb-row a:hover { background: var(--bg-soft); }
.fb-row__icon { flex: 0 0 32px; color: var(--brand-text); display: grid; place-items: center; }
.fb-row__icon img { border-radius: 22%; }
.fb-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fb-row__title { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-row__meta { font-size: .85rem; color: var(--muted); }
.fb-status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.fb-status--looking { background: #eef2fc; color: var(--brand-dark); border-color: #b9c7ee; }
.fb-status--planned { background: var(--warn-bg); color: var(--warn); border-color: #ecd49a; }
.fb-status--shipped { background: var(--good-bg); color: var(--good); border-color: #b5dcc1; }
.fb-status--not_doing { background: #f1f2f4; color: var(--muted); }
.fb-title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-top: 8px; }
.progress { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: p; }
.progress li { font-size: .82rem; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.progress li.done { border-top-color: var(--brand-text); color: var(--ink-2); font-weight: 600; }
.thread { display: grid; gap: 12px; margin: 20px 0; }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.msg--staff { background: #f6f8fe; border-color: #b9c7ee; }
.msg__who { margin: 0 0 6px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.msg__body { white-space: pre-wrap; color: var(--ink-2); overflow-wrap: anywhere; }
.attachments { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.attachments a { display: flex; flex-direction: column; gap: 4px; width: 140px; font-size: .8rem; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.attachments img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.reply-form { max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters-row { margin-bottom: 16px; }
.filters-row select { width: auto; }
.end-form { display: grid; gap: 6px; max-width: 320px; white-space: normal; padding-top: 6px; }
.admin-side .card + .card { margin-top: 16px; }
.members .card h2 { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.members .card { margin-top: 16px; }
.linkish { white-space: nowrap; }
@media (max-width: 420px) { .nav { gap: 10px; font-size: .95rem; } .brand img { width: 92px; } .brand__lab { font-size: .85rem; } }

/* ---------- Feature requests ---------- */
.board-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; }
.board-controls .tabs { margin: 0; }
.board-controls select { width: auto; min-height: 40px; padding: 6px 34px 6px 10px; font-size: .95rem; }
.requests { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.request { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.requests .request + .request { border-top: 1px solid var(--line); }
.request__main { flex: 1; min-width: 0; }
.request__title { font-size: 1.05rem; margin: 0 0 4px; line-height: 1.3; }
.requests .request__title a, a.request__title { color: var(--ink); text-decoration: none; font-weight: 700; }
.requests .request__title a:hover, a.request__title:hover { text-decoration: underline; color: var(--brand-dark); }
.request__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; font-size: .86rem; color: var(--muted); }
.request__icon { border-radius: 22%; flex: 0 0 auto; }
.request--page { padding: 0; margin: 8px 0 16px; align-items: flex-start; }
.request--page .request__title { font-size: clamp(1.5rem, 4vw, 2rem); }
.request__body { font-size: 1.05rem; max-width: 70ch; }
.vote { margin: 0; flex: 0 0 auto; }
.vote__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 56px; min-height: 60px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.vote__btn:hover:not(:disabled) { border-color: var(--brand-text); color: var(--brand-text); }
.vote__btn[aria-pressed="true"] { background: var(--brand-text); border-color: var(--brand-text); color: #fff; }
.vote__btn:disabled { cursor: default; opacity: .75; }
.vote__count { font-size: 1.05rem; line-height: 1.1; }
.vote__static { flex: 0 0 auto; min-width: 52px; text-align: center; font-weight: 700; color: var(--brand-text); background: #eef2fc; border-radius: 10px; padding: 6px 8px; font-size: .9rem; }
.requests--compact .request { padding: 10px 14px; }
.rq-status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.rq-status--planned { background: var(--warn-bg); color: var(--warn); border-color: #ecd49a; }
.rq-status--in_progress { background: #eef2fc; color: var(--brand-dark); border-color: #b9c7ee; }
.rq-status--shipped { background: var(--good-bg); color: var(--good); border-color: #b5dcc1; }
.rq-status--not_doing { background: #f1f2f4; color: var(--muted); }
.msg__actions { margin: 8px 0 0; }
.msg--hidden { opacity: .6; }

/* ---------- Community ---------- */
.share-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 8px; }
.share-toggle .btn[aria-pressed="true"] { background: var(--brand-text); color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.screen-note { margin: 8px 0 0; }
.people { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink-2); height: 100%; }
a.person:hover { border-color: var(--brand); }
.person__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person__main strong { color: var(--ink); }
.person--page { border: 0; padding: 0; background: none; align-items: center; margin-bottom: 8px; }
.person--page h1 { margin: 0; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #eef2fc; color: var(--brand-dark); font-weight: 800; font-size: 1.1rem; }
.avatar--large { width: 72px; height: 72px; font-size: 1.8rem; }

/* ---------- Updates feed ---------- */
.feed { list-style: none; padding: 0; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.feed__item { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.feed__item + .feed__item { border-top: 1px solid var(--line); }
.feed__item--stacksy { background: #fbfcff; }
.feed__icon { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eef2fc; color: var(--brand-text); overflow: hidden; }
.feed__icon img { width: 36px; height: 36px; border-radius: 22%; }
.feed__main { flex: 1; min-width: 0; }
.feed__text { margin: 0; color: var(--ink); font-weight: 600; }
.feed__text a { color: var(--ink); text-decoration: none; }
.feed__text a:hover { text-decoration: underline; color: var(--brand-dark); }
.feed__body { margin: 4px 0 0; color: var(--ink-3); font-size: .95rem; overflow-wrap: anywhere; }
.feed__meta { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.feed--compact .feed__item { padding: 10px 14px; }
.news__title { font-size: 1.15rem; margin: 4px 0 6px; }
