/* Backs website — shared design system.
   Every colour references the four palette variables. The dynamic Back
   (assets/js/back.js) rewrites them from the photo it fetches; the values
   below are the "Forest" stand-in palette used until the photo arrives. */

:root {
  --set1-color: #EAE6D3;            /* main: outlines and text on the photo or dark panels */
  --set2-color: #1F2D22;            /* contrast: dark panels, text on light panels */
  --set3-color: #D9A441;            /* accent: hover fills */
  --set4-color: #4E6350;            /* middle: 50/50 mix, the loading surface */
  --back-surface: var(--set4-color);
  --back-photo: none;
  --ui-radius: 24px;
  --ui-corner: squircle;            /* Chrome 139+; older browsers keep plain rounding */
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
html { background: var(--set2-color); }
body {
  margin: 0;
  background: var(--set2-color);
  color: var(--set1-color);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
a { color: inherit; font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: inherit; opacity: 0.55; }
:focus-visible { outline: 3px solid var(--set3-color); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--set1-color); color: var(--set2-color);
  border-radius: calc(var(--ui-radius) - 8px); corner-shape: var(--ui-corner);
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* Colour changes fade like the extension's body.transitions-active. */
body.transitions-active * {
  transition: background-color 0.24s ease-in-out, color 0.24s ease-in-out,
    border-color 0.24s ease-in-out, fill 0.24s ease-in-out, opacity 0.24s ease-in-out;
}

/* ---------- surfaces ---------- */
.panel-dark { background: var(--set2-color); color: var(--set1-color); }
.panel-light { background: var(--set1-color); color: var(--set2-color); }

/* A Back is a photo surface. Before the photo arrives the section shows the
   set4 surface with a breathing grid; the photo and its shade fade in over
   0.24s once the palette has been extracted. */
.back { position: relative; isolation: isolate; background-color: var(--back-surface); }
.back::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--back-photo); background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.24s ease-in-out;
}
.back--fixed::before { position: fixed; }
.back-ready .back::before { opacity: 1; }
.back__shade { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.24s ease-in-out; }
.back-ready .back__shade { opacity: 1; }
.back__shade--hero { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.55) 100%); }
.back__shade--cta { background: rgba(0, 0, 0, 0.5); }
.back__shade--page { position: fixed; background: rgba(0, 0, 0, 0.6); }
.back__grid {
  position: absolute; inset: 0; z-index: -1; display: none; pointer-events: none;
  background-image: linear-gradient(to right, var(--set1-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--set1-color) 1px, transparent 1px);
  background-size: 68px 68px; background-position: center;
  opacity: 0.18; animation: backsBreath 2.6s ease-in-out infinite;
}
.back__grid--fixed { position: fixed; }
.back-loading .back__grid { display: block; }
@keyframes backsBreath { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.26; } }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.wrap--wide { max-width: 1360px; }
.section { padding: 104px 32px; }
.stack { display: flex; flex-direction: column; }

/* ---------- type ---------- */
.kicker { font-size: 13px; font-weight: 700; }
.h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.h1--sub { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; }
.h2--cta { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 17px; }
.lead--hero { font-size: 18px; line-height: 1.55; max-width: 480px; }
.text-16 { font-size: 16px; }
.text-15 { font-size: 15px; }
.caption { font-size: 13px; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; border: 0; font-weight: 700; white-space: nowrap;
  text-decoration: none; background: transparent; color: inherit;
  border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
}
.btn:hover { text-decoration: none; }
.btn:disabled { cursor: default; opacity: 0.6; }
.btn-primary { height: 56px; padding: 0 28px; font-size: 16px; background: var(--set1-color); color: var(--set2-color); }
.btn-primary:hover:not(:disabled) { background: var(--set3-color); }
.btn-primary--small { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-secondary { height: 44px; padding: 0 20px; font-size: 14px; border: 3px solid var(--set1-color); color: var(--set1-color); }
.btn-secondary:hover:not(:disabled) { background: var(--set1-color); color: var(--set2-color); }
.btn-secondary--small { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-secondary--dark { border-color: var(--set2-color); color: var(--set2-color); }
.btn-secondary--dark:hover:not(:disabled) { background: var(--set2-color); color: var(--set1-color); }
.btn-link { padding: 0; height: auto; font-weight: 700; text-decoration: none; border: 0; background: none; color: inherit; }
.btn-link:hover { text-decoration: underline; }

/* Like toggles live on light surfaces: outline in the text colour, filled when active. */
.like {
  height: 36px; padding: 0 12px; font-size: 13px;
  border: 3px solid var(--set2-color); color: var(--set2-color);
  border-radius: calc(var(--ui-radius) - 6px); corner-shape: var(--ui-corner);
}
.like[aria-pressed="true"] { background: var(--set2-color); color: var(--set1-color); }
.like--large { height: 44px; padding: 0 16px; font-size: 14px; border-radius: calc(var(--ui-radius) - 4px); }
.like--small { height: 30px; padding: 0 10px; font-size: 12px; border-width: 2px; border-radius: calc(var(--ui-radius) - 10px); }

.segmented {
  display: inline-flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, 0.3);
  border: 3px solid var(--set1-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
}
.segmented__item {
  height: 36px; padding: 0 16px; border: 0; background: transparent; color: var(--set1-color);
  font-size: 13px; font-weight: 700; border-radius: calc(var(--ui-radius) - 6px); corner-shape: var(--ui-corner);
}
.segmented__item[aria-pressed="true"] { background: var(--set1-color); color: var(--set2-color); }

/* ---------- nav ---------- */
.site-nav {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 24px; max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 28px 32px; box-sizing: border-box;
}
.site-nav--wide { max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--set1-color); }
.brand:hover { text-decoration: none; }
.brand__mark { display: block; flex-shrink: 0; width: 28px; height: 28px; }
.brand__mark path, .brand__mark text { fill: var(--set1-color); }
.site-nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; font-size: 14px; font-weight: 700; }
.site-nav__links a { color: var(--set1-color); }
.site-nav__links a[aria-current="page"] { border-bottom: 2px solid var(--set1-color); padding-bottom: 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--set2-color); color: var(--set1-color); padding: 72px 32px 40px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand .brand { font-size: 18px; gap: 10px; }
.site-footer__brand .brand__mark { width: 24px; height: 24px; }
.site-footer__brand p { font-size: 14px; max-width: 260px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__heading { font-size: 12px; font-weight: 700; opacity: 0.7; }
.site-footer__col a { font-weight: 400; font-size: 14px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-top: 24px; border-top: 2px solid var(--set1-color); font-size: 13px;
}

/* ---------- home: hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; }
.hero__body {
  position: relative; flex: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 40px 32px 96px; box-sizing: border-box;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.demo {
  position: relative; border: 4px solid var(--set1-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  padding: 8px; box-sizing: border-box; background: rgba(0, 0, 0, 0.25); align-self: center; width: 100%;
}
.demo__screen {
  position: relative; aspect-ratio: var(--demo-ratio, 2 / 1);
  border-radius: calc(var(--ui-radius) - 10px); corner-shape: var(--ui-corner);
  background: var(--set2-color); overflow: hidden;
}
.demo__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 400; opacity: 0.7; }
.demo__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- home: backons ---------- */
.section__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.section__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 64px; align-items: end; }
.section__head .lead { max-width: 520px; }
.section__intro { display: flex; flex-direction: column; gap: 16px; }
.section__intro--narrow { max-width: 620px; }
.backon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.backon-card {
  border: 4px solid var(--set1-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.backon-card--soon { border-style: dashed; }
.backon-card p { font-size: 15px; }

/* ---------- home: how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__number {
  width: 58px; height: 58px; box-sizing: border-box; border: 4px solid var(--set2-color);
  border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  display: grid; place-items: center; font-weight: 700; font-size: 22px;
}
.step p { font-size: 15px; }

/* ---------- home: why / design ---------- */
.why { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 64px; }
.why__col { display: flex; flex-direction: column; gap: 24px; }
.why__col p { font-size: 16px; }
.design-list { display: flex; flex-direction: column; gap: 16px; }
.design-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-top: 2px solid var(--set1-color);
}
.design-row:last-child { border-bottom: 2px solid var(--set1-color); }
.design-row__mark {
  display: block; width: 20px; height: 20px; margin-top: 3px; box-sizing: border-box;
  border: 3px solid var(--set1-color); border-radius: 7px; corner-shape: var(--ui-corner);
}

/* ---------- home: cta ---------- */
.cta { padding: 120px 32px; }
.cta__card {
  border: 4px solid var(--set1-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 24px; background: rgba(0, 0, 0, 0.25);
}
.cta__card .lead { max-width: 560px; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }

/* ---------- home: faq ---------- */
.faq { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 64px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 2px solid var(--set2-color); }
.faq__item:last-child { border-bottom: 2px solid var(--set2-color); }
.faq__item h3 { font-size: 18px; font-weight: 700; }
.faq__item p { font-size: 15px; }

/* ---------- sub pages ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.page-header {
  max-width: 1200px; margin: 0 auto; padding: 40px 32px 48px; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 64px; align-items: start;
}
.page-header--wide { max-width: 1360px; }
.page-header__copy { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }

/* ---------- release notes ---------- */
.rn { max-width: 1200px; margin: 0 auto; padding: 8px 32px 96px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.rn-rail {
  flex: 1 1 170px; max-width: 210px; position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 2px; padding: 10px; box-sizing: border-box;
  background: var(--set2-color); color: var(--set1-color); border: 3px solid var(--set1-color);
  border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
}
.rn-rail__heading { padding: 8px 12px 10px; font-size: 13px; font-weight: 700; }
.rn-rail__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border: 0; background: transparent; color: var(--set1-color); text-align: left;
  border-radius: calc(var(--ui-radius) - 10px); corner-shape: var(--ui-corner); font-size: 13px; font-weight: 300;
}
.rn-rail__item, .rn-rail__item:hover { text-decoration: none; }
.rn-rail__item:hover { background: rgba(255, 255, 255, 0.1); }
.rn-rail__item b { font-weight: 700; }
.rn-rail__item span { opacity: 0.85; }
.rn-entries { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rn-entry {
  background: var(--set1-color); color: var(--set2-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  padding: 24px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; scroll-margin-top: 24px;
}
.rn-entry__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rn-pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  background: var(--set2-color); color: var(--set1-color);
  border-radius: calc(var(--ui-radius) - 12px); corner-shape: var(--ui-corner); font-size: 13px; font-weight: 700;
}
.rn-entry__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; flex: 1 1 auto; }
.rn-entry__date { font-size: 13px; }
.rn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rn-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.rn-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 10px; box-sizing: border-box;
  border: 2px solid var(--set2-color); border-radius: calc(var(--ui-radius) - 14px); corner-shape: var(--ui-corner);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.rn-list p { font-size: 15px; line-height: 1.5; padding-top: 1px; }
@media (max-width: 700px) {
  .rn-rail { position: static; max-width: none; }
}

/* ---------- roadmap ---------- */
.rm-form {
  border: 4px solid var(--set1-color); border-radius: var(--ui-radius); corner-shape: var(--ui-corner);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box;
  background: var(--set2-color); color: var(--set1-color);
}
.rm-form__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.field {
  width: 100%; height: 48px; padding: 0 16px; box-sizing: border-box; background: transparent;
  color: var(--set1-color); border: 3px solid var(--set1-color);
  border-radius: var(--ui-radius); corner-shape: var(--ui-corner); font-size: 15px; font-weight: 400; outline: none;
}
.field:focus-visible { outline: 3px solid var(--set3-color); outline-offset: 2px; }
.field[hidden] { display: none; }
textarea.field { height: auto; padding: 12px 16px; line-height: 1.45; resize: vertical; }
.field--light { color: var(--set2-color); border-color: var(--set2-color); }
.field--compact { height: 40px; font-size: 14px; padding: 0 12px; border-radius: calc(var(--ui-radius) - 4px); }
select.field--compact { width: auto; padding-right: 32px; }
.rm-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.rm-form__auth { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.status { font-size: 13px; min-height: 1.5em; }
.status--error { font-weight: 700; }
.rm-toolbar {
  max-width: 1360px; margin: 0 auto; padding: 0 32px 24px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
.rm-board {
  max-width: 1360px; margin: 0 auto; padding: 0 32px 64px; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: start;
}
.rm-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rm-col__head { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 12px; border-bottom: 2px solid var(--set1-color); }
.rm-col__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rm-col__title h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.rm-col__count { font-size: 13px; font-weight: 700; }
.rm-col__blurb { font-size: 13px; line-height: 1.45; min-height: calc(2 * 1.45em); }
.rm-empty { font-size: 13px; opacity: 0.75; padding: 4px; }
.rm-card {
  border-radius: var(--ui-radius); corner-shape: var(--ui-corner); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; box-sizing: border-box;
  background: var(--set1-color); color: var(--set2-color);
}
.rm-card:hover { background: var(--set3-color); }
.rm-card__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.rm-card__title :is(button, a) { all: unset; cursor: pointer; }
.rm-card__title :is(button, a):focus-visible { outline: 3px solid var(--set2-color); outline-offset: 3px; border-radius: 4px; }
.rm-card__desc { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rm-card__meta { font-size: 12px; text-align: right; }
.rm-declined { max-width: 1360px; margin: 0 auto; padding: 0 32px 96px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.rm-declined[hidden] { display: none; }
.rm-declined__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: start; }

/* detail panel */
.rm-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; border: 0; padding: 0; cursor: default; }
.rm-detail {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 41;
  background: var(--set1-color); color: var(--set2-color); box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px; padding: 28px 28px 40px; margin: 0; border: 0;
}
.rm-backdrop[hidden], .rm-detail[hidden] { display: none; }
body.rm-open { overflow: hidden; }
.rm-detail__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.stage-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; box-sizing: border-box;
  border: 3px solid var(--set2-color); border-radius: calc(var(--ui-radius) - 8px); corner-shape: var(--ui-corner);
  font-size: 12px; font-weight: 700;
}
.rm-detail__close {
  width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--set2-color);
  background: transparent; color: var(--set2-color); border-radius: calc(var(--ui-radius) - 4px); corner-shape: var(--ui-corner);
  font-size: 18px; font-weight: 700; line-height: 1;
}
.rm-detail__body { display: flex; flex-direction: column; gap: 12px; }
.rm-detail__title { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.rm-detail__desc { font-size: 15px; white-space: pre-line; }
.rm-detail__actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.rm-detail__by { font-size: 13px; }
.rm-section { display: flex; flex-direction: column; gap: 12px; }
.rm-section > h3 { font-size: 13px; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.timeline__dot {
  display: block; width: 12px; height: 12px; margin-top: 4px; box-sizing: border-box;
  border: 3px solid var(--set2-color); border-radius: 4px; corner-shape: var(--ui-corner); background: var(--set2-color);
}
.timeline__line { display: block; width: 2px; flex: 1; min-height: 14px; margin-top: 4px; background: var(--set2-color); }
.timeline li:last-child .timeline__line { opacity: 0; }
.timeline__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.timeline__label { font-size: 14px; font-weight: 700; }
.timeline__when, .timeline__note { font-size: 12px; }
.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 2px solid var(--set2-color); }
.comment__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.comment__author { font-weight: 700; }
.comment__text { font-size: 14px; white-space: pre-line; }
.comment__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-form { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px solid var(--set2-color); }
.comment-form textarea { padding: 12px 14px; border-radius: calc(var(--ui-radius) - 4px); font-size: 14px; }
.comment-form__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comment-form button[type="submit"] {
  align-self: flex-end; height: 40px; padding: 0 18px; border: 0; background: var(--set2-color); color: var(--set1-color);
  border-radius: calc(var(--ui-radius) - 4px); corner-shape: var(--ui-corner); font-size: 13px; font-weight: 700;
}
.rm-admin {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; box-sizing: border-box;
  border: 3px dashed var(--set2-color); border-radius: calc(var(--ui-radius) - 4px); corner-shape: var(--ui-corner);
}
.rm-admin[hidden] { display: none; }
.rm-admin__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rm-admin__row .field--compact { flex: 1 1 120px; width: auto; }
.btn-danger { height: 40px; padding: 0 16px; font-size: 13px; border: 3px solid var(--set2-color); color: var(--set2-color); border-radius: calc(var(--ui-radius) - 4px); }
.btn-danger:hover:not(:disabled) { background: var(--set2-color); color: var(--set1-color); }
.btn-danger--tiny { height: 30px; padding: 0 10px; font-size: 12px; border-width: 2px; border-radius: calc(var(--ui-radius) - 10px); }

/* ---------- team tick ---------- */
/* Only the server sets isTeam, so the tick cannot be imitated by a display name.
   Circle in the text colour, check in the surface colour. */
.team-badge { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }
.team-badge circle { fill: currentColor; }
.team-badge path { fill: none; stroke: var(--set1-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.on-dark .team-badge path { stroke: var(--set2-color); }
.rm-detail__admin-link { font-size: 13px; }
.rm-detail__admin-link[hidden] { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; box-sizing: border-box; }
.notfound__card { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 480px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .back__grid { animation: none; }
  body.transitions-active *, .back::before, .back__shade { transition: none; }
}
