:root {
  --paper: #f4f1e9;
  --paper-2: #fbf8f2;
  --card: #fffdf7;
  --ink: #1d1b17;
  --muted: #5f5a50;
  --faint: #8c8577;
  --body: #332f28;
  --line: #d9d2c2;
  --line-soft: #e7e1d3;
  /* Fixed ribbons: they stay dark in both themes, so they need their own tokens
     rather than borrowing --ink, which flips to near-white in dark mode. */
  --strip-bg: #1d1b17;
  --strip-ink: #cfc8b9;
  --strip-ink-strong: #fffdf7;
  --foot-bg: #efeade;
  --foot-faint: #8d8577;
  --accent: #b8451c;
  --accent-soft: #f2e5da;
  --green: #45654c;
  --gold: #a8761f;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}

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

/* ---------------------------------------------------------------- header */

.strip {
  background: var(--strip-bg);
  color: var(--strip-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.strip-in {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 26px;
}

.strip strong {
  color: var(--strip-ink-strong);
  font-weight: 600;
}

.strip-right a {
  text-decoration: none;
  margin-left: 20px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.25);
}

.strip-right a:hover {
  color: var(--strip-ink-strong);
}

.head-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 6px 4px;
  letter-spacing: -0.06em;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tld {
  color: var(--accent);
  font-weight: 600;
}

.head-search {
  display: flex;
  flex: 0 1 430px;
  max-width: 430px;
  min-width: 0;
  margin-right: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.head-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 12.5px;
}

.head-search input::placeholder {
  color: #9a9385;
}

.head-search input:focus {
  outline: none;
  background: var(--card);
}

.head-search select {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 5px;
  max-width: 126px;
}

.head-search button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 13px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.head-search button:hover {
  background: #000;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  flex-shrink: 0;
}

.head-nav a {
  text-decoration: none;
  color: var(--muted);
}

.head-nav a:hover {
  color: var(--ink);
}

.nav-sell {
  border-bottom: 1px solid var(--accent);
  color: var(--accent) !important;
  padding-bottom: 1px;
  font-weight: 600;
}

.cart-count {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--line);
  padding: 1px 4px;
  margin-left: 2px;
}

.catbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catbar-in {
  display: flex;
  gap: 22px;
  padding: 9px 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catbar-in::-webkit-scrollbar {
  display: none;
}

.catbar-in a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.catbar-in a:hover,
.catbar-in a.is-on {
  color: var(--accent);
}

/* Blog sits after the categories, at the end of the strip. */
.catbar-in a.cat-blog {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  color: var(--ink);
  font-weight: 600;
}

.subcatbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 26px 9px;
  border-top: 1px dashed var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.subcatbar::-webkit-scrollbar {
  display: none;
}

.subcatbar span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.subcatbar a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.subcatbar a:hover,
.subcatbar a.is-on {
  color: var(--accent);
}

.cat-list .cat-child {
  padding-left: 14px;
}

.cat-list .cat-child a span {
  font-size: 13px;
}

.item-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.item-demo .mono {
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 46px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: start;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 55px);
  line-height: 0.99;
  letter-spacing: -0.038em;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--body);
}

.lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 47ch;
  margin: 0 0 24px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 24px;
}

.hero-stats strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-stats span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: #000;
}

.btn-line {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn-wide {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.spotlight {
  border: 1px solid var(--line);
  background: var(--card);
}

.spot-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.spot-art {
  display: block;
  border-bottom: 1px solid var(--line);
  line-height: 0;
}

.spot-body {
  padding: 14px 16px 12px;
}

.spot-body h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.3;
}

.spot-kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.spot-body p {
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.spot-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.spot-foot .mono {
  font-size: 10.5px;
  color: var(--faint);
}

.spot-price {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
}

/* ------------------------------------------------------- category index */

.catindex {
  background: var(--foot-bg);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}

.catindex-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}

.catindex h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

.link-quiet {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}

.link-quiet:hover {
  color: var(--accent);
}

.catindex-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 26px;
}

.catindex-grid li {
  border-top: 1px solid #d6cfbe;
}

.catindex-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 2px 9px 0;
  font-size: 13.5px;
  text-decoration: none;
}

.catindex-grid a:hover {
  color: var(--accent);
}

.catindex-grid em {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
}

/* -------------------------------------------------------------- sections */

.section {
  padding: 42px 0 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 650;
}

.section-sub {
  font-size: 11px;
  color: var(--faint);
  margin: 0;
}

/* --------------------------------------------------------------- browse */

.browse {
  display: grid;
  grid-template-columns: 208px 1fr;
  gap: 34px;
  padding-top: 20px;
}

.filters {
  align-self: start;
}

.side-title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 20px 0 8px;
}

.side-title:first-child {
  margin-top: 0;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cat-list button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 0;
  font-size: 13.2px;
  text-align: left;
}

.cat-list button:hover {
  color: var(--accent);
}

.cat-list em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
}

.cat-list button.is-on {
  color: var(--accent);
  font-weight: 600;
}

.cat-list button.is-on em {
  color: var(--accent);
}

.side-note {
  margin-top: 22px;
  border-top: 1px solid var(--ink);
  padding-top: 11px;
  font-size: 12px;
  color: var(--muted);
}

.side-note strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.side-note ul {
  margin: 0;
  padding-left: 15px;
}

.side-note li {
  margin: 4px 0;
  line-height: 1.45;
}

.results-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.results-count {
  font-size: 11.5px;
  color: var(--faint);
  margin: 0;
}

.results-controls {
  display: flex;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field > span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.field select,
.field input {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 6px 8px;
  font-size: 12.5px;
}

.field input {
  width: 168px;
}

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

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

.row {
  display: grid;
  grid-template-columns: 166px 1fr 122px;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
  align-items: start;
}

.row-art {
  width: 166px;
  aspect-ratio: 640 / 420;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}

.row-body h3 {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  line-height: 1.3;
}

.row-body h3 span {
  display: block;
  font-size: 12.8px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0;
}

.row-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-meta {
  font-size: 10.8px;
  color: #8b8375;
  margin: 0 0 6px;
}

.row-seller {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.row-seller strong {
  color: var(--ink);
  font-weight: 600;
}

.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid #c9d3c6;
  padding: 1px 5px;
  margin-left: 7px;
}

.row-buy {
  text-align: right;
}

.row-price {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.row-ext {
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 1px;
}

.row-rating {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
}

.row-rating span {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 10.5px;
}

.row-rating em {
  font-style: normal;
  color: var(--faint);
  margin-left: 3px;
}

.row:hover h3 {
  color: var(--accent);
}

.empty {
  border: 1px dashed var(--line);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  margin-top: 24px;
}

.empty p {
  margin: 0 0 6px;
}

.empty button {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--ink);
  padding: 7px 14px;
  font-size: 12.5px;
}

/* ----------------------------------------------------------------- pitch */

.pitch {
  background: var(--ink);
  color: #e6dfd0;
  padding: 52px 0 54px;
  margin-top: 56px;
}

.pitch-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.pitch .eyebrow {
  color: #c99b7e;
}

.pitch h2 {
  font-size: clamp(26px, 2.9vw, 33px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fbf8f2;
  font-weight: 650;
}

.pitch h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #d9b79c;
}

.pitch-right p {
  font-size: 14px;
  line-height: 1.65;
  color: #bdb6a8;
  margin: 0 0 14px;
  max-width: 48ch;
}

.pitch-right p:first-child {
  margin-top: 4px;
}

.link-arrow {
  font-size: 13px;
  color: #e0b795;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 183, 149, 0.4);
  padding-bottom: 1px;
}

.link-arrow:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--foot-bg);
  margin-top: 56px;
}

@media (max-width: 720px) {
  .site-foot { margin-top: 36px; }
}

/* Menu builder: the grip turns a row into a drag handle. */
.menu-row .menu-grip {
  cursor: grab;
}
.menu-row .menu-grip:active {
  cursor: grabbing;
}
.menu-row.is-dragging {
  opacity: .45;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr 0.8fr 1.25fr;
  gap: 34px;
  padding: 38px 26px;
}

.brand-foot {
  margin-bottom: 12px;
}

.foot-brand p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 32ch;
}

.foot-small {
  font-family: var(--mono);
  font-size: 10px !important;
  line-height: 1.6 !important;
  color: var(--foot-faint) !important;
  margin-top: 14px !important;
}

.site-foot h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin: 6px 0;
}

.site-foot li a {
  font-size: 12.8px;
  text-decoration: none;
}

.site-foot li a:hover {
  color: var(--accent);
}

.foot-note p {
  font-size: 11.5px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #8d8577;
}

.foot-legal a {
  margin-left: 16px;
  text-decoration: none;
  color: inherit;
}

.foot-legal a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------- item page */

.item {
  padding: 20px 0 60px;
}

.crumbs {
  font-size: 11px;
  color: var(--faint);
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-bottom: 16px;
}

.crumbs a {
  text-decoration: none;
  color: var(--faint);
}

.crumbs a:hover {
  color: var(--accent);
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.item-head h1 {
  font-size: 33px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

.item-kicker {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0 0;
}

.item-headmeta {
  text-align: right;
  flex-shrink: 0;
}

.stars {
  font-size: 12px;
  letter-spacing: 2px;
  color: #cfc7b4;
}

.stars .on {
  color: var(--gold);
}

.item-headmeta .mono {
  display: block;
  font-size: 10.8px;
  color: var(--faint);
  margin-top: 3px;
  letter-spacing: 0;
}

.item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 42px;
  align-items: start;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--card);
  line-height: 0;
}

.shot figcaption {
  font-size: 10.5px;
  color: var(--faint);
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

.item-jump {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  flex-wrap: wrap;
}

.item-jump a {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.item-jump a:hover {
  color: var(--accent);
}

.prose {
  scroll-margin-top: 20px;
}

.prose h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
  font-weight: 650;
}

.prose h3 {
  font-size: 13.5px;
  margin: 20px 0 6px;
  font-weight: 650;
}

.prose p {
  font-size: 14.2px;
  line-height: 1.68;
  color: var(--body);
  margin: 0 0 14px;
  max-width: 68ch;
}

.ticks {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  columns: 1;
}

.ticks li {
  position: relative;
  padding-left: 17px;
  font-size: 13.4px;
  line-height: 1.6;
  color: var(--body);
  margin: 5px 0;
}

.ticks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--card);
  margin-top: 16px;
}

.files div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.files div:last-child {
  border-right: 0;
}

.files span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}

.files strong {
  font-size: 12.3px;
  font-weight: 500;
}

.log {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.log li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding: 9px 0;
  font-size: 13.2px;
  color: var(--body);
}

.log-ver {
  font-size: 11.5px;
  color: var(--ink);
}

.log-ver em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
}

.small {
  font-size: 11.3px !important;
  color: var(--faint) !important;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reviews-score strong {
  font-family: var(--mono);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.reviews-score span {
  font-size: 10.5px;
  color: var(--faint);
}

.reviews {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.reviews li {
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-top strong {
  font-size: 12.8px;
}

.review-top .stars {
  font-size: 10.5px;
}

.review-top .mono {
  margin-left: auto;
  font-size: 10.3px;
  color: var(--faint);
}

.reviews p {
  font-size: 13.2px;
  line-height: 1.6;
  color: var(--body);
  margin: 6px 0 4px;
  max-width: 66ch;
}

.review-verified {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.item-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.buybox {
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 14px;
}

.license {
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.lic {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  align-items: start;
}

.lic:last-child {
  border-bottom: 0;
}

.lic input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.lic strong {
  display: block;
  font-size: 12.6px;
}

.lic em {
  display: block;
  font-style: normal;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
}

.lic b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.lic.is-on {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* The free tier has no radio, so it must not keep the 15px column reserved for
   one: without this the words were squeezed into that sliver and printed one
   per line. */
.lic-free {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: default;
}

.buy-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 10px 0 12px;
}

.buy-total span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.buy-total strong {
  font-family: var(--mono);
  font-size: 23px;
  letter-spacing: -0.02em;
}

.buy-notes {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.buy-notes li {
  position: relative;
  padding-left: 11px;
  font-size: 11.4px;
  line-height: 1.5;
  color: var(--muted);
  margin: 4px 0;
}

.buy-notes li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.seller-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 13px 14px;
}

.seller-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.seller-top strong {
  display: block;
  font-size: 12.6px;
}

.seller-top .handle {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.seller-stats dt {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.seller-stats dd {
  margin: 1px 0 0;
  font-size: 12px;
}

.item-meta {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 4px;
}

.item-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dotted var(--line);
  padding: 6px 0;
  font-size: 11.8px;
}

.item-meta dt {
  color: var(--faint);
}

.item-meta dd {
  margin: 0;
  text-align: right;
}

.related {
  margin-top: 54px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .spotlight {
    max-width: 460px;
  }
  .browse {
    grid-template-columns: 1fr;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .side-note {
    grid-column: 1 / -1;
  }
  .item-grid {
    grid-template-columns: 1fr;
  }
  .item-side {
    position: static;
    max-width: 420px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pitch-in {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .head-main {
    flex-wrap: wrap;
    gap: 14px;
  }
  .head-search {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    max-width: none;
    margin-right: 0;
  }
  .head-search select {
    display: none;
  }
  .head-nav {
    margin-left: auto;
    gap: 14px;
  }
  .catindex-grid {
    grid-template-columns: 1fr 1fr;
  }
  .row {
    grid-template-columns: 118px 1fr;
    gap: 14px;
  }
  .row-art {
    width: 118px;
  }
  .row-buy {
    grid-column: 2;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: baseline;
  }
  .row-price {
    font-size: 16px;
  }
  .row-rating {
    margin-top: 0;
  }
  .results-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .item-headmeta {
    text-align: left;
  }
  .files {
    grid-template-columns: 1fr;
  }
  .files div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .foot-base {
    flex-direction: column;
    gap: 8px;
  }
  .log li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .item-head h1 {
    font-size: 27px;
  }
  .strip-in {
    flex-direction: column;
    gap: 4px;
  }
  .strip-right a {
    margin-left: 0;
    margin-right: 14px;
  }
}

/* ------------------------------------------------ PHP build additions */

.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 0;
  font-size: 13.2px;
  text-decoration: none;
}

.cat-list a:hover {
  color: var(--accent);
}

.cat-list a.is-on {
  color: var(--accent);
  font-weight: 600;
}

.cat-list a em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
}

.field-submit {
  align-self: flex-end;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 6px 14px;
  font-size: 12.5px;
}

.field-submit:hover {
  border-color: var(--ink);
}

.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 12px;
}

.pager a,
.pager span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
}

.pager a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.pager a.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.pager-step.is-off {
  opacity: 0.45;
}

.foot-version {
  margin-left: 16px;
  opacity: 0.7;
}

.results-controls {
  align-items: flex-end;
}

/* ============================================================ 1.1.0 panels
   Accounts, the author dashboard and the admin panel. Same rules as the
   storefront: hairlines, paper, mono for numbers, no shadows. */

.flash-wrap { padding-top: 14px; }
.alert {
  margin: 0 0 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: var(--card);
  font-size: 14px;
}
.alert-warn { border-left-color: var(--accent); background: #fbeee7; }
.alert-ok { border-left-color: #45654c; }

.eyebrow {
  font: 11px/1.4 ui-monospace, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.panel-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 0 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head .page-h1 { margin-bottom: 6px; }
.panel-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn-primary, .btn-quiet {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}
.btn-primary:hover, .btn-quiet:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.btn-primary:hover { background: var(--card); }

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button.danger { color: var(--accent); }
.link-button[disabled] { opacity: .45; cursor: not-allowed; }

.nav-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}
.nav-signout { display: inline; margin: 0; }
.inline-form { display: inline; margin: 0; }

.panel-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 26px;
}
.panel-nav a {
  font-size: 13px;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.panel-nav a:hover { color: var(--ink); }
.panel-nav a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 30px;
}
.stat-strip > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: 0; }
.stat-num {
  display: block;
  font: 24px/1.1 ui-monospace, Menlo, monospace;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-h {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 500;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.box {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.box-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 500;
  margin: 0 0 12px;
}
.box-h-spaced { margin-top: 22px; }
.box-note { background: #f7f3e8; }
.box-note p { font-size: 14px; color: #403b33; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.two-col-wide { grid-template-columns: 1.6fr 1fr; }

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  padding: 26px 0 10px;
}
.auth-side { border-left: 1px solid var(--line); padding-left: 28px; }
.side-h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 12px;
}

.stack-form { display: block; margin: 18px 0 0; max-width: 44rem; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.field > span em { font-style: normal; opacity: .75; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  border-radius: 0;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}
.form-actions-spacer { flex: 1; }
.form-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }
.item-form .box { margin-bottom: 16px; }
.mini-select {
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.data-table th {
  text-align: left;
  font: 11px/1.4 ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 500;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f3e8;
}
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table.compact td, .data-table.compact th { padding: 8px 10px; font-size: 13px; }
.data-table .num { text-align: right; white-space: nowrap; }
.row-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.row-title:hover { color: var(--accent); }
/* 1.48.0: in a table the name stays on the same line as its open-in-the-shop arrow. */
.data-table .row-title { display: inline; }
.row-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-note {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
}
.row-actions { white-space: nowrap; text-align: right; font-size: 13px; }
.row-actions > * + * { margin-left: 10px; }
.row-actions form { display: inline; }
.row-dim { opacity: .6; }

.pill {
  display: inline-block;
  font: 10.5px/1.6 ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill-published { border-color: #45654c; color: #45654c; }
.pill-pending { border-color: var(--accent); color: var(--accent); }
.pill-rejected { border-color: var(--accent); color: var(--accent); background: #fbeee7; }
.pill-draft, .pill-hidden { border-color: var(--line); color: var(--muted); }

.filter-tabs {
  display: flex;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 13px;
  flex-wrap: wrap;
}
.filter-tabs a { color: var(--muted); text-decoration: none; }
.filter-tabs a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.empty {
  border: 1px dashed var(--line);
  padding: 26px;
  background: var(--card);
  max-width: 46rem;
}
.empty p { margin-top: 0; color: #403b33; }

.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 6px; font-size: 14px; }

.meta-table { margin: 0; font-size: 13.5px; }
.meta-table > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
.meta-table > div:last-child { border-bottom: 0; }
.meta-table dt { color: var(--muted); }
.meta-table dd { margin: 0; text-align: right; }

.review-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; align-items: start; }
.review-body { max-width: 34ch; }
.art-badge {
  border: 1px solid var(--line);
  padding: 22px;
  text-align: center;
  font: 12px/1.4 ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  background: #f7f3e8;
}

@media (max-width: 820px) {
  .two-col, .two-col-wide, .auth-grid, .review-grid, .field-row { grid-template-columns: 1fr; }
  .auth-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .row-actions { white-space: normal; }
}

/* ============================================================ 1.2.0 theme
   Light is the default (paper). Dark keeps the same hairlines and the single
   burnt-orange accent, inverted rather than resaturated, so the design does
   not turn into a different site at night. */

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13130f;
  --paper-2: #1a1a15;
  --card: #1c1c16;
  --ink: #f1ede2;
  --muted: #9d978a;
  --faint: #8f8a7c;
  --body: #ded8ca;
  --line: #37352c;
  --line-soft: #2a2822;
  --accent: #e06a3c;
  --accent-soft: #35211a;
  --gold: #d3ab63;
  --green: #83ad8e;
  --strip-bg: #23231b;
  --strip-ink: #bab4a6;
  --strip-ink-strong: #f4f0e6;
  --foot-bg: #191915;
  --foot-faint: #8b8578;
}
:root { color-scheme: light; }

[data-theme="dark"] .data-table th,
[data-theme="dark"] .box-note,
[data-theme="dark"] .art-badge { background: #23231b; }
[data-theme="dark"] .box-note p,
[data-theme="dark"] .empty p { color: #cfc9bb; }
[data-theme="dark"] .alert-warn { background: #2b1d15; }
[data-theme="dark"] .pill-rejected { background: #2b1d15; }
[data-theme="dark"] code,
[data-theme="dark"] .badge { background: #2a2822; }
[data-theme="dark"] .sale-flag { color: #14140f; }
[data-theme="dark"] .row-art,
[data-theme="dark"] .card-art { background: #23231b; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); }
.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50% 100%);
}

/* ============================================================= 1.2.0 home */

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 52px 0 38px;
}
.masthead-in {
  /* Was max-width 60rem on a .wrap element, so the copy sat centred and its left
     edge did not match the sections below. Two columns now, both on the grid. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21.5rem;
  gap: 56px;
  align-items: end;
}
.masthead-aside {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 20px 22px 18px;
}
.masthead-aside .eyebrow {
  color: var(--muted);
  margin: 0 0 12px;
}
.masthead-aside .ticks {
  margin-bottom: 16px;
}
.masthead-aside .ticks li {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 7px 0 7px 24px;
}
.masthead-aside-link {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.masthead-aside-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.masthead h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 10px 0 14px;
  font-weight: 700;
}
.masthead h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
.masthead-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 22px;
}
.masthead-search {
  display: flex;
  max-width: 40rem;
  border: 1px solid var(--ink);
  background: var(--card);
}
.masthead-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
  min-width: 0;
}
.masthead-search input:focus { outline: none; }
.masthead-search button {
  border: 0;
  background: var(--ink);
  color: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
}

.sec {
  /* padding-block, not `padding: 44px 0` — the shorthand was overriding .wrap's
     26px side padding, so sections sat 26px left of the header and masthead. */
  padding-block: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(21px, 2.5vw, 29px);
  letter-spacing: -.025em;
  margin: 0;
  line-height: 1.15;
}
.sec-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 64ch;
  margin: 8px 0 0;
}
.sec-more { font-size: 13px; white-space: nowrap; }
.sec-cta { text-align: center; margin: 26px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .12s ease;
}
.card:hover { border-color: var(--muted); }
.card-art {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  line-height: 0;
  background: #ece7d9;
}
[data-theme="dark"] .card-art { background: #23231b; }
.card-art svg { display: block; width: 100%; height: auto; }
.sale-flag, .feature-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--accent);
  color: #fffdf7;
}
.feature-flag { background: var(--ink); color: var(--card); }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding: 12px 14px 14px;
}
.card-name { font-size: 15px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.card-name a { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--accent); }
.card-by { margin: 0; font-size: 12px; color: var(--muted); }
.card-by strong { color: var(--ink); font-weight: 600; }
.card-kicker {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.price-now { font-family: var(--mono); font-size: 16px; }
/* A free item is marked FREE rather than shown as $0, and the word carries the
   accent so it reads as an offer rather than a missing price. */
.price-free { color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.row-price.price-free { font-size: 15px; }

/* Free of the week: the claim is a normal form; the share is an ordinary link
   to Facebook's share window. Neither depends on script. */
.share-gate { display: block; }
.share-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.share-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.share-note a:hover { color: var(--ink); }
.price-was { font-size: 12px; color: var(--muted); margin-left: 6px; }
.card-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.card-acts form { margin: 0; display: flex; }
.card-act {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.card-act svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.card-act:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.card-act.is-on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.card-act.is-on svg { fill: currentColor; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.card-btn {
  border: 1px solid var(--line);
  padding: 7px 11px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.card-btn:hover { border-color: var(--accent); color: var(--accent); }

.creators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.creator {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
}
.creator-top { display: flex; gap: 12px; align-items: center; }
.creator-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.creator-photo {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.creator h3 { font-size: 14.5px; margin: 0 0 3px; }
.creator h3 a { color: inherit; text-decoration: none; }
.creator h3 a:hover { color: var(--accent); }
.creator p { margin: 0; font-size: 11.5px; color: var(--muted); }
.creator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}
.creator-stats dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 9.5px;
}
.creator-stats dd { margin: 3px 0 0; font-size: 14px; }
.creator-link { font-size: 12.5px; margin-top: auto; }

/* 1.86.0: the Hire Me button sits in the card foot beside the card's own link,
   and under the profile link in the author box on an item. */
.creator-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.creator-acts .creator-link { margin-top: 0; }
.seller-hire { margin-top: 10px; }
.profile-hire { margin: 12px 0 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 22px;
}
.chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { border-color: var(--ink); font-weight: 600; }

/* The newsletter bar and the author band are the white panels. The free demo
   hosting offer between them keeps the page tone, so it reads as the page
   itself rather than as another card. */
.cta-band {
  background: #fff;
  border-top: 1px solid var(--line);
}
/* The free demo hosting offer. It sits above the author band and uses the same
   shape, so it closes with a rule of its own instead of merging into it. */
.cta-band-demo {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cta-band-demo .cta-in { padding: 42px 0; }
.cta-band-demo .eyebrow { color: var(--accent); }
.cta-in {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  padding: 50px 0;
}
.cta-in h2 {
  font-size: clamp(23px, 2.9vw, 33px);
  letter-spacing: -.025em;
  margin: 6px 0 10px;
  line-height: 1.12;
}
.cta-copy { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 52ch; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-note { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.catalog-back { margin: 26px 0 0; font-size: 13px; }

@media (max-width: 1000px) {
  .cards, .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-in { grid-template-columns: 1fr; gap: 22px; }
  .masthead-in { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .masthead-aside { max-width: 30rem; }
}
@media (max-width: 560px) {
  .cards, .creators { grid-template-columns: 1fr; }
  .masthead { padding: 34px 0 28px; }
  .sec { padding: 32px 0; }
}

.sale-line {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ------------------------------------------- 1.5.0: saved, creator, reviews */
.card-by a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.card-by a:hover { color: var(--accent); border-color: var(--accent); }

.sec-flat { border-bottom: 0; padding-bottom: 10px; }
.sec-flat:last-of-type { padding-bottom: 52px; }
.sec-head .mono.small { color: var(--muted); white-space: nowrap; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 22px 0 14px;
}
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--accent); border-color: var(--accent); }

.item-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.item-acts form { margin: 0; display: flex; }
.item-act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  line-height: 1;
}
.item-act svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.item-act b { font-family: var(--mono); font-weight: 600; font-size: 11.5px; }
.item-act:hover { border-color: var(--ink); color: var(--ink); }
.item-act.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.item-act.is-on svg { fill: currentColor; }
.count-line { margin: 9px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .01em; }

.creator-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 22px 24px;
  margin-bottom: 4px;
}
.creator-hero .eyebrow { margin-bottom: 4px; }
.creator-id { display: flex; align-items: center; gap: 16px; }
.creator-avatar {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--card);
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: .02em;
}
.creator-id h1 {
  font-size: clamp(22px, 2.7vw, 30px);
  letter-spacing: -.025em;
  margin: 0 0 3px;
  line-height: 1.1;
}
.creator-id p { margin: 0; color: var(--muted); font-size: 12px; }
.creator-facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 0; }
.creator-facts dt {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
.creator-facts dd { margin: 3px 0 0; font-family: var(--mono); font-size: 17px; }
.creator-facts dd .small { font-size: 11.5px; color: var(--muted); }

.review-form {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 18px;
  margin: 18px 0 20px;
}
.review-form h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.review-form .note { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); max-width: 62ch; }
.review-form .field textarea { min-height: 104px; }
.star-field { display: flex; flex-wrap: wrap; gap: 14px; border: 0; padding: 0; margin: 0 0 14px; }
.star-field legend { font-size: 11.5px; color: var(--muted); padding: 0 0 7px; }
.star-field label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; }
.star-field input { accent-color: var(--accent); margin: 0; }
.review-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  margin: 16px 0 20px;
}
.review-note a { color: var(--accent); }

.recent-strip { border-top: 1px solid var(--line-soft); margin-top: 34px; padding: 26px 0 0; }
.recent-strip .recent-h { font-size: 18px; letter-spacing: -.02em; margin: 0; }
.recent-strip .sec-sub { margin-top: 4px; }
.recent-strip .sec-head { margin-bottom: 16px; }

@media (max-width: 900px) {
  /* Signed-in nav grew with Dashboard, Saved and Admin: let it wrap instead of
     squeezing the search box on tablets. */
  .head-main { flex-wrap: wrap; }
  .head-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; margin-left: auto; }
}

@media (max-width: 700px) {
  .creator-hero { padding: 18px; gap: 18px; }
  .creator-facts { gap: 18px; }
}

/* ========================================================= 1.7.0 branding */

.brand-logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: 28px;
  object-fit: contain;
}
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
[data-theme="dark"] .brand-logo-light { display: none; }

.foot-image {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 16px;
}

/* ------------------------------------------------------------- commerce */
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 18px 0 10px; flex-wrap: wrap; }
.cart-table .cart-total-row td { border-top: 2px solid var(--line, #e2ddd3); font-weight: 600; }
.checkout-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; margin-top: 22px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-summary { border: 1px solid var(--line, #e2ddd3); border-radius: 10px; padding: 18px; }
.summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-list em { display: block; font-style: normal; opacity: .65; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.summary-total { border-top: 1px solid var(--line, #e2ddd3); padding-top: 12px; font-weight: 600; }
.empty-box { border: 1px dashed var(--line, #ddd6c9); border-radius: 10px; padding: 26px; text-align: center; }
.section-h2 { margin: 34px 0 12px; font-size: 18px; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.checkline { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }

/* Admin → Accounts: the awarded-badge checkboxes. */
.award-picks {
  border: 1px solid var(--line);
  padding: 12px 16px 14px;
  margin: 0 0 18px;
}
.award-picks legend {
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* The buy box keeps its layout while the license radios and both buttons submit together. */
.buy-form { display: contents; }

/* ------------------------------------------------------ payment methods */
.method-block { border-top: 1px solid var(--line, #e2ddd3); padding: 16px 0 6px; }
.method-block:first-of-type { border-top: 0; padding-top: 4px; }
.method-head { font-size: 15px; margin-bottom: 8px; }
.method-head em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.pay-choose { border: 0; padding: 0; margin: 4px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.pay-choose legend { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin-bottom: 6px; }
.pay-option { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line, #e2ddd3); border-radius: 8px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.pay-option em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.pay-option:has(input:checked) { border-color: currentColor; }

/* -------------------------------------------------------- avatars + menu */
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto; background: var(--line-soft);
  color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-lg { width: 76px; height: 76px; font-size: 26px; }
.avatar-fallback { border: 1px solid var(--line); }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.avatar-row .note { margin: 4px 0 0; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover,
.user-menu[open] > summary { border-color: var(--line); }
.user-chip-name { font-size: 14px; max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-caret { font-size: 10px; color: var(--faint); }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column;
  gap: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); z-index: 80; }
.user-menu-head { margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.user-menu-head .mono { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.user-menu-panel a, .user-menu-out { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; background: none; border: 0;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.user-menu-panel a:hover, .user-menu-out:hover { background: var(--line-soft); }
.user-menu-signout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .user-chip-name { display: none; } }

/* --------------------------------------------- 1.67.0: message bell */
.bell-menu { position: relative; }
.bell-chip { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 7px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); }
.bell-chip::-webkit-details-marker { display: none; }
.bell-chip:hover, .bell-menu[open] .bell-chip { border-color: var(--line); color: var(--ink); }
.bell-icon { width: 19px; height: 19px; display: block; }
.bell-count { font-family: var(--mono); font-size: 10px; line-height: 1; background: var(--accent);
  color: #fffdf7; border-radius: 999px; padding: 3px 5px; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 304px;
  max-width: calc(100vw - 28px); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); z-index: 80; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.bell-head a { color: var(--accent); text-decoration: none; }
.bell-empty { margin: 0; padding: 14px 10px 16px; color: var(--faint); font-size: 12.5px; }
.bell-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.bell-item:hover { background: var(--line-soft); }
.bell-subject { font-size: 13px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-unread .bell-subject { font-weight: 600; }
.bell-meta { display: flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.bell-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------- license keys and API docs */
.license-key {
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  display: inline-block;
  margin: 0 0 4px;
  word-break: break-all;
}
.code-panel {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 18px;
  color: var(--body);
}
.bullets { margin: 0 0 22px; padding-left: 20px; color: var(--body); }
.bullets li { margin: 6px 0; }
.license-search { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.license-search input[type="search"] {
  flex: 1 1 260px;
  max-width: 420px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}

/* ---------------------------------------------- screenshots, coupons, invoices */
.shot-real img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot-real a { display: block; }

/* A tall cover, an ebook for instance, used to be printed at the full width of
   the column, so a portrait picture ran off the bottom of the screen. Cap its
   height and centre it in the card; a wide screenshot still fills the column. */
.shot-real { background: var(--paper-2); }
.shot-real img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
}

@media (max-width: 620px) {
  .shot-real img { max-height: 64vh; }
}
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: -6px 0 22px; }
.shot-thumb img { display: block; width: 100%; height: 100px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.shot-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 14px; }
.shot-manage-item img { display: block; width: 100%; height: 110px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.coupon-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.coupon-field { margin: 0; min-width: 220px; }
.invoice-page { max-width: 900px; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.invoice-actions { display: flex; gap: 8px; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 24px; }
.invoice-parties h2 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.invoice-parties p { margin: 0; font-size: 14px; color: var(--body); }
.invoice-totals { margin: 18px 0 0 auto; max-width: 340px; }
.invoice-totals p { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; }
.invoice-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 16px !important; }
.invoice-note { margin-top: 26px; color: var(--faint); }
.review-verified { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
@media print {
  .site-head, .site-foot, .announce, .catbar, .invoice-actions, .crumbs, .imp-bar { display: none !important; }
  body { background: #fff; }
  .invoice-page { max-width: none; }
}

/* ---------------------------------------------- 1.13.0 tabs, video, comments */

.item-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.item-tabs a {
  padding: 11px 15px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.item-tabs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.item-video h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 28px 0 10px;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid var(--line);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-file {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
}

.comment-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.comment-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}

.comment-top .mono {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.comment p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.empty-line {
  color: var(--muted);
  font-size: 14px;
}

.comment-form {
  margin-top: 20px;
}

.support-facts {
  list-style: none;
  margin: 4px 0 22px;
  padding: 0;
  border: 1px solid var(--line);
}

.support-facts li {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.support-facts li:last-child {
  border-bottom: 0;
}

.support-facts strong {
  display: inline-block;
  min-width: 108px;
}

/* Dark mode: ink buttons were white-on-white on hover. Pin a readable pair. */
[data-theme="dark"] .btn-ink {
  color: #14140f;
}

[data-theme="dark"] .btn-ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14140f;
}

[data-theme="dark"] .btn-primary {
  color: #14140f;
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14140f;
}

/* ===========================================================================
   1.14.0 — analytics, charts and the verification banner
   =========================================================================== */

/* Anchor links from the admin reviews page land on the right panel. */
#reviews,
#comments,
#support {
  scroll-margin-top: 90px;
}

.stat-trend {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--accent); }
.stat-trend.flat { color: var(--faint); }

.stat-strip-quiet {
  margin-top: 18px;
}

.stat-strip-quiet .stat-num {
  font-size: 20px;
}

.analytics-box {
  margin-top: 18px;
}

.box-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.box-head-row .box-h {
  margin-bottom: 0;
}

.chart {
  margin-top: 10px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
}

.chart-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
}

.chart-bar {
  display: block;
  width: 100%;
  max-width: 22px;
  background: var(--line);
  border-radius: 2px 2px 0 0;
}

.chart-bar.has {
  background: var(--accent);
  opacity: 0.85;
}

.chart-col:hover .chart-bar.has {
  opacity: 1;
}

.chart-x {
  position: absolute;
  bottom: -20px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  white-space: nowrap;
}

.chart-foot {
  margin: 26px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 6px;
}

.cta-link {
  flex: 1 1 320px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
}

.cta-samples {
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
  padding-top: 10px;
}

.cta-samples p {
  margin: 0 0 6px;
}

/* ============================================================ 1.15.0
   Public profiles, downloads and the account inbox. Same tokens as the
   rest of the storefront, so dark mode comes along for free. */

.profile-page .crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--faint); margin: 0 0 18px; }
.profile-page .crumbs a { color: var(--muted); text-decoration: none; }
.profile-page .crumbs a:hover { color: var(--accent); }

.profile-hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.profile-hero-wash {
  position: absolute; inset: 0 0 auto; height: 132px;
  background:
    radial-gradient(700px 200px at 12% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--paper-2)), var(--card));
  opacity: 0.9;
}
.profile-hero-in {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 22px; align-items: end; padding: 34px 28px 24px;
}
.profile-avatar-xl img,
.profile-avatar-xl .profile-monogram {
  display: grid; place-items: center; width: 104px; height: 104px;
  border-radius: 26px; border: 1px solid var(--line);
  background: var(--paper-2); object-fit: cover;
  box-shadow: 0 10px 30px rgba(20, 16, 10, 0.12);
}
.profile-monogram { font-family: var(--serif); font-size: 44px; color: var(--accent); }
.profile-ident .eyebrow { margin: 0 0 4px; }
.profile-ident h1 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.profile-line { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.profile-line > span + span::before { content: "·"; margin-right: 14px; color: var(--faint); }

.profile-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.profile-badge {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}
.profile-badge strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.badge-gold { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--gold); }
.badge-green { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); color: var(--green); }
.badge-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.badge-ink { color: var(--ink); }
.profile-badge.badge-gold { background: color-mix(in srgb, var(--gold) 9%, var(--card)); }
.profile-badge.badge-green { background: color-mix(in srgb, var(--green) 8%, var(--card)); }
.profile-badge.badge-accent { background: color-mix(in srgb, var(--accent) 7%, var(--card)); }

.profile-stats { display: flex; gap: 26px; margin: 0; padding: 0 0 4px; text-align: right; }
.profile-stats > div { min-width: 92px; }
.profile-stats dt { margin: 0 0 4px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.profile-stats dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.profile-stat-num { font-family: var(--serif); font-size: 26px; line-height: 1; }

.profile-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  margin: 20px 0 24px; border-bottom: 1px solid var(--line);
}
.profile-tabs a {
  position: relative; padding: 10px 14px 12px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--muted); border-radius: 8px 8px 0 0;
}
.profile-tabs a:hover { color: var(--ink); background: var(--paper-2); }
.profile-tabs a.on { color: var(--ink); }
.profile-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }
.profile-tabs-edit { margin-left: auto; font-weight: 500; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.profile-section { display: grid; gap: 18px; }
.profile-section-head h2,
.profile-section-head h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.profile-section-head p { margin: 0; }
.profile-section-head .sec-more { font-size: 12.5px; color: var(--accent); }
.profile-highlights { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.profile-bio p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; max-width: 68ch; }

.profile-side { display: grid; gap: 16px; position: sticky; top: 18px; }
.profile-side .box { padding: 18px; }
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.badge-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.badge-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--faint); }
.badge-dot.badge-gold { background: var(--gold); }
.badge-dot.badge-green { background: var(--green); }
.badge-dot.badge-accent { background: var(--accent); }
.badge-dot.badge-ink { background: var(--ink); }
.badge-list strong { display: block; font-size: 13.5px; }
.badge-list .small { display: block; line-height: 1.45; }
.box-contact .btn-primary { margin-top: 12px; }

/* ------------------------------------------------------- downloads page */
.dl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; padding: 0; font-size: 12px; }
.dl-facts li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); }
.dl-facts li.warn { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.dl-facts strong { color: var(--ink); }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dl-row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 210px; gap: 20px;
  padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.dl-row-gone { background: var(--paper-2); }
.dl-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper-2); }
.dl-thumb svg, .dl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-thumb.is-grey { filter: grayscale(1); opacity: 0.62; }
.dl-name { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.dl-name a { text-decoration: none; }
.dl-name a:hover { color: var(--accent); }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: 11.5px; color: var(--muted); }
.dl-meta a { color: var(--muted); }
.dl-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 12px; }
.dl-code-label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.dl-code-value { padding: 3px 8px; border: 1px dashed var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); letter-spacing: 0.04em; }
.dl-code-sites { color: var(--faint); }
.dl-notice {
  display: grid; gap: 2px; margin: 0 0 10px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 12%, var(--card)); font-size: 12.5px;
}
.dl-notice strong { color: var(--gold); font-size: 13px; }
.dl-notice span { color: var(--muted); }
.dl-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; font-size: 11.5px; }
.dl-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.dl-links a:hover { color: var(--accent); }
.dl-actions { display: grid; gap: 8px; align-content: start; }
.dl-hint { font-size: 11.5px; color: var(--faint); }
.downloads-foot { margin-top: 22px; color: var(--faint); max-width: 70ch; }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-disabled {
  display: block; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--line);
  color: var(--faint); font-size: 13px; text-align: center; background: var(--paper-2);
}

/* ------------------------------------------------------- account inbox */
.msg-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.msg { padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper-2); }
.msg-new { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--card); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.msg-head a { font-weight: 600; }
.msg-body { margin: 8px 0 10px; font-size: 13.5px; }
.msg-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ------------------------------------------- 1.67.0: reading a message */
.message-crumb { margin: 0 0 14px; font-size: 12.5px; }
.message-crumb a { color: var(--muted); text-decoration: none; }
.message-crumb a:hover { color: var(--accent); }
.message-read { max-width: 760px; }
.message-read-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 18px; }
.message-read-head .page-h1 { margin-bottom: 0; }
.message-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.message-body { font-size: 15px; line-height: 1.72; color: var(--body); }
.message-reply, .message-reply-sent { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.message-reply .field textarea { width: 100%; }
.message-reply-sent .message-body { color: var(--muted); }
.message-closed { margin: 24px 0 0; padding: 12px 14px; border: 1px dashed var(--line);
  border-radius: 8px; color: var(--faint); font-size: 13px; }
.message-list .msg-body { color: var(--muted); }

@media (max-width: 980px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-side { position: static; }
  .profile-hero-in { grid-template-columns: 84px minmax(0, 1fr); align-items: start; padding: 26px 20px 20px; }
  .profile-avatar-xl img, .profile-avatar-xl .profile-monogram { width: 84px; height: 84px; border-radius: 20px; }
  .profile-stats { grid-column: 1 / -1; justify-content: flex-start; text-align: left; padding-top: 4px; }
  .profile-stats dd { align-items: flex-start; }
  .dl-row { grid-template-columns: 64px minmax(0, 1fr); }
  .dl-thumb { width: 64px; height: 64px; }
  .dl-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

[data-theme="dark"] .profile-hero-wash {
  background:
    radial-gradient(700px 200px at 12% 0%, #33231a, transparent 70%),
    linear-gradient(180deg, #24211b, var(--card));
}
[data-theme="dark"] .profile-avatar-xl img,
[data-theme="dark"] .profile-avatar-xl .profile-monogram { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .dl-thumb { background: #23231b; }

.dl-thumb .art,
.dl-thumb .art svg { display: block; width: 100%; height: 100%; }
.dl-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--serif); font-size: 28px; color: var(--faint); }

/* ============================================================ 1.16.0
   Rich description editor, and the rendered result on item pages. */

.field .rte { margin-top: 2px; }

.rte {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  /* Not hidden: a clipping box would stop the toolbar sticking. */
  overflow: visible;
}
.rte:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.rte-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.rte-group { display: flex; align-items: center; gap: 2px; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--body);
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
}
.rte-btn:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.rte-btn:active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rte-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rte-btn.rte-text { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }
.rte-btn b, .rte-btn i, .rte-btn u, .rte-btn s { font-size: 13px; }

.rte-area {
  min-height: 320px;
  max-height: 70vh;
  overflow: auto;
  padding: 16px 18px;
  outline: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.rte-area:empty::before {
  content: "Write the description here — what it does, what it does not do, what a buyer has to wire up.";
  color: var(--faint);
}
.rte-area p { margin: 0 0 12px; }
.rte-area p:last-child { margin-bottom: 0; }
.rte-area h2 { margin: 20px 0 8px; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.rte-area h3 { margin: 18px 0 6px; font-size: 17px; line-height: 1.25; }
.rte-area h2:first-child, .rte-area h3:first-child { margin-top: 0; }
.rte-area ul, .rte-area ol { margin: 0 0 12px; padding-left: 22px; }
.rte-area li { margin-bottom: 4px; }
.rte-area blockquote {
  margin: 14px 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.rte-area pre,
.prose-rich pre {
  margin: 14px 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.rte-area code,
.prose-rich code {
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.92em;
}
.rte-area pre code,
.prose-rich pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.rte-area a, .prose-rich a { color: var(--accent); text-underline-offset: 2px; }
.rte-area hr, .prose-rich hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.rte-hint { margin: 8px 2px 0; font-size: 12px; color: var(--faint); line-height: 1.5; }
.rte-hint kbd {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
}

/* Visual and HTML source are two views of one value. The class rules below
   would otherwise beat the browser's own [hidden] rule. */
.rte-tabs[hidden],
.rte-bar[hidden],
.rte-visual[hidden],
.rte-area[hidden],
.rte-source-panel[hidden] { display: none !important; }

.rte-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px 10px 0 0;
}
.rte-tab {
  appearance: none;
  margin-bottom: -1px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.rte-tab:hover { color: var(--ink); background: var(--card); }
.rte-tab[aria-selected="true"],
.rte-tab.is-on {
  padding-bottom: 8px;
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.rte-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.rte-source-panel { border-radius: 0 0 10px 10px; }
.rte-source-label {
  display: block;
  padding: 9px 16px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.rte-source-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.rte-source-note { font-size: 11.5px; color: var(--faint); }
.rte-source {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 70vh;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 10px 10px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}
.rte-source:focus { outline: none; }
.rte-source-hint { margin: 0; padding: 8px 16px 12px; font-size: 12px; color: var(--faint); line-height: 1.5; }

.prose-rich { margin: 0 0 8px; }
.prose-rich p { margin: 0 0 14px; }
.prose-rich h2 { margin: 24px 0 10px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.prose-rich h3 { margin: 20px 0 8px; font-size: 17px; }
.prose-rich ul, .prose-rich ol { margin: 0 0 14px; padding-left: 22px; }
.prose-rich li { margin-bottom: 6px; }
.prose-rich blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose-rich > :first-child { margin-top: 0; }

.rte-area div, .prose-rich div { margin: 0 0 12px; }
.rte-area div:last-child, .prose-rich div:last-child { margin-bottom: 0; }

/* ============================================================ 1.17.0
   Cookie bar, support terms, rating filter. */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 -8px 24px rgba(20, 16, 10, 0.08);
}
.cookie-bar-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.cookie-bar p { margin: 0; font-size: 13px; color: var(--body); max-width: 70ch; }
.cookie-bar strong { color: var(--ink); }
.cookie-bar a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 8px 14px; font-size: 12.5px; }

.support-terms {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--paper-2);
  font-size: 14px;
  color: var(--body);
  max-width: 70ch;
}

.rating-list a { gap: 8px; }
.rating-stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 12px;
  min-width: 58px;
}
.side-note-small { margin: 6px 0 18px; font-size: 11.5px; }
.side-note-small a { color: var(--accent); }

.legal-page .legal-head { max-width: 70ch; margin-bottom: 8px; }
.legal-body { max-width: 72ch; }
.legal-body h3 { margin: 26px 0 8px; }
.legal-body table { margin: 18px 0; }
.legal-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); }

[data-theme="dark"] .cookie-bar { box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .support-terms { background: #23231b; }

/* ============================================================ 1.17.0
   Dark-mode button contrast. These three hover states used to end up as dark
   text on a black (or dark card) background, so the label disappeared. */

.head-search button:hover { background: #000; color: #fff; }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }

[data-theme="dark"] .head-search button:hover {
  background: var(--accent);
  color: #14140f;
}
[data-theme="dark"] .btn-ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14140f;
}

.legal-page .crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--faint); margin: 0 0 18px; }
.legal-page .crumbs a { color: var(--muted); text-decoration: none; }
.legal-page .crumbs a:hover { color: var(--accent); }

/* ============================================================ 1.18.0
   On-screen notifications. Fixed where the eye already is, one per flash,
   tone-coloured, gone after six seconds (sooner if dismissed). */

.toast-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(20, 16, 10, 0.16);
  animation: toast-in 0.18s ease-out;
}
.toast-ok { border-left-color: var(--green); }
.toast-warn { border-left-color: var(--gold); }
.toast-bad { border-left-color: var(--accent); }
.toast-mark {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--card);
  background: var(--green);
}
.toast-warn .toast-mark { background: var(--gold); }
.toast-bad .toast-mark { background: var(--accent); }
.toast-msg {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.toast-x {
  flex: none;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.toast-x:hover { color: var(--ink); }
.is-leaving { opacity: 0; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

body.admin-body .toast-stack-admin { top: 76px; right: 20px; }

@media (max-width: 640px) {
  .toast-stack {
    top: auto;
    bottom: 16px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  body.admin-body .toast-stack-admin { top: auto; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .is-leaving { transition: none; }
}

[data-theme="dark"] .toast { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); }

/* ============================================================ 1.18.0
   Newsletter sign-up bar on the front page. */

.newsletter-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.newsletter-in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: 38px 0;
}
.newsletter-in h2 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.newsletter-copy { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 54ch; }
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.newsletter-form .btn { padding: 11px 20px; }
.newsletter-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11px; color: var(--faint); }

@media (max-width: 900px) {
  .newsletter-in { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
}
@media (max-width: 480px) {
  .newsletter-form { grid-template-columns: 1fr; }
}

/* ============================================================ 1.19.0
   Pages run the full width of the column instead of a 72ch strip: text keeps a
   readable measure, tables and lists use the whole container. The author
   sign-up page and the page/homepage editors share the same blocks.
   ------------------------------------------------------------------- */

.legal-page .legal-head { max-width: 78ch; }
.legal-body { max-width: none; }
.legal-body > p,
.legal-body > ul,
.legal-body > ol,
.legal-body > blockquote,
.legal-body > h2,
.legal-body > h3,
.legal-body > h4 { max-width: 88ch; }
.legal-body > table,
.legal-body > .rte-table { width: 100%; }
.legal-body > table th:first-child,
.legal-body > table td:first-child { width: 34%; }

/* ---- sell your code */
.sell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 46px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.sell-hero .page-h1 { margin-bottom: 12px; }
.sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0 12px;
}
.sell-note { margin: 0; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.sell-stats { margin: 0; display: grid; gap: 18px; }
.sell-stats > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.sell-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.sell-stats dd { margin: 4px 0 6px; font-family: var(--serif); font-size: 30px; line-height: 1; }
.sell-stats p { margin: 0; font-size: 13px; color: var(--muted); }

.sell-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.sell-block > h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 18px; }
.sell-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sell-steps li { border-top: 2px solid var(--ink); padding-top: 12px; }
.sell-step-n { display: block; font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.sell-steps h3 { font-size: 16px; margin: 0 0 6px; }
.sell-steps p { margin: 0; font-size: 13.5px; color: var(--muted); }

.sell-table { width: 100%; }
.sell-fine { max-width: 88ch; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.sell-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.sell-faq-grid h3 { font-size: 15px; margin: 0 0 6px; }
.sell-faq-grid p { margin: 0; font-size: 13.5px; color: var(--muted); }

.sell-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.sell-cta h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.sell-cta p { margin: 0; color: var(--muted); font-size: 14px; }
.sell-cta .inline-form { margin: 0; }

/* ---- admin: pages list and homepage copy */
.pages-col { align-items: start; }
.pages-table td { vertical-align: top; }
.pages-lede { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pages-table .pages-url code { display: block; max-width: 36ch; font-size: 11.5px; word-break: break-all; }
.copy-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.mini-copy {
  font: inherit; font-size: 11px; letter-spacing: .02em; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer;
}
.mini-copy:hover { border-color: var(--accent); color: var(--accent); }
.copy-note { font-size: 11px; color: var(--accent); }
.page-address { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.page-address code {
  font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper); word-break: break-all;
}
.pages-default { font-size: 12px; color: var(--faint); }
.pill-warn { border-color: var(--accent); color: var(--accent); }
.home-box { margin-bottom: 18px; }
.home-box-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.home-toggle { font-size: 13px; margin: 0; }
.home-default { margin: -6px 0 14px; font-size: 11.5px; color: var(--faint); }

@media (max-width: 900px) {
  .sell-hero { grid-template-columns: 1fr; gap: 26px; }
  .sell-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sell-steps { grid-template-columns: 1fr; }
  .sell-cta { flex-direction: column; align-items: flex-start; }
}

/* Tables written in the page editor arrive without classes (the sanitizer keeps
   structure only), so style them from the surrounding prose block. */
.legal-body > table {
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
}
.legal-body > table th,
.legal-body > table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-body > table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--ink);
}

/* ---- 1.20.0: support tickets and the author sign-up form */
.support-head { max-width: 64rem; }
.support-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 22px;
}
.support-form .field { margin-bottom: 14px; }
.support-form .field-row { margin-bottom: 14px; }
.support-form .btn-primary { margin-top: 6px; }
.support-side p { margin: 0 0 10px; font-size: 14px; }
.support-side p:last-child { margin-bottom: 0; }
.support-side .plain-list { margin: 0 0 10px; }
.sell-signup { max-width: 720px; }
.sell-signup h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.signup-form { margin-top: 14px; }
.signup-form .field-row { margin-bottom: 14px; }
.signup-form .btn { margin-top: 4px; }

@media (max-width: 900px) {
  .support-cols { grid-template-columns: 1fr; }
}

/* ---- 1.21.0: images and attachments from the editor toolbar */
.rte-status:empty { display: none; }
.rte-status {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--muted);
}
.rte-status.ok { color: var(--green, #2f6b3a); }
.rte-status.bad { color: var(--danger, #a2352b); }
.rte-area img,
.prose-rich img,
.legal-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--card);
}
.rte-area a[href$=".pdf"],
.rte-area a[href$=".zip"],
.prose-rich a[href$=".pdf"],
.prose-rich a[href$=".zip"],
.legal-body a[href$=".pdf"],
.legal-body a[href$=".zip"] {
  font-weight: 600;
}

/* ---- 1.22.0: Cloudflare Turnstile on the public forms */
.turnstile-box {
  margin: 14px 0 4px;
  min-height: 0;
}
.turnstile-box .cf-turnstile { min-height: 65px; }
.turnstile-note {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}
/* Inside the newsletter bar the box sits under both columns. */
.newsletter-form .turnstile-box { grid-column: 1 / -1; margin-top: 2px; }
.auth-form .turnstile-box { margin-bottom: 12px; }

/* ---- 1.23.0: menu builder and the menu-driven header/footer */
.strip-heading {
  margin-left: 20px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--strip-ink);
  opacity: .65;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px 34px;
}
.foot-grid > .foot-brand { flex: 1.7 1 260px; }
.foot-grid > div:not(.foot-brand):not(.foot-note) { flex: .85 1 150px; }
.foot-grid > .foot-note { flex: 1.2 1 230px; }

.menu-builder .menu-form .box { margin-bottom: 18px; }
.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.menu-head .box-h { margin-bottom: 4px; }
.menu-rows { display: grid; gap: 8px; }
.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--card);
}
.menu-grip { color: var(--faint); font-size: 9px; letter-spacing: -1px; user-select: none; }
.menu-row input[type="text"],
.menu-row input:not([type]),
.menu-row input[type="url"],
.menu-row select {
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  min-width: 0;
}
.menu-row .menu-label { flex: 1 1 170px; }
.menu-row .menu-url { flex: 1 1 210px; font-family: var(--mono); font-size: 12px; }
.menu-type { flex: 0 0 88px; font-size: 12px; }
.menu-audience { flex: 0 0 150px; font-size: 12px; }
.menu-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.menu-check input { accent-color: var(--accent); }
.menu-actions { margin-left: auto; display: flex; gap: 4px; }
.menu-mini {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.menu-mini:hover { border-color: var(--ink); }
.menu-mini.danger { color: var(--danger); }
.menu-mini.danger:hover { border-color: var(--danger); }
.menu-section {
  border: 1px dashed var(--line);
  padding: 12px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}
.menu-row-section { background: var(--paper-2); }
.menu-row-section .menu-label { font-weight: 600; }
.menu-links { display: grid; gap: 8px; margin: 10px 0 8px 22px; }
.menu-add-link,
.menu-add-row .btn-quiet { font-size: 12px; }
.menu-add-link {
  margin-left: 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.menu-add-link:hover { border-color: var(--accent); color: var(--accent); }
.menu-add-row { display: flex; gap: 8px; margin-top: 10px; }
.menu-save {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.menu-save .field-note { margin: 0; flex: 1 1 260px; }

@media (max-width: 760px) {
  .menu-row .menu-label,
  .menu-row .menu-url,
  .menu-audience,
  .menu-type { flex: 1 1 100%; }
  .menu-links { margin-left: 0; }
  .menu-add-link { margin-left: 0; }
}

/* ---- 1.25.0: achievements */
.ach-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ach-total { text-align: right; }
.ach-total strong {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}
.ach-total span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.ach-track {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ach-track-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.ach-track h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.ach-blurb { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 72ch; }

.ach-progress {
  height: 4px;
  margin: 14px 0 16px;
  background: var(--line-soft);
  overflow: hidden;
}
.ach-progress span { display: block; height: 100%; background: var(--accent); }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ach-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.ach-card.is-locked { background: transparent; border-style: dashed; }
.ach-card.is-locked strong { color: var(--muted); }
.ach-card strong { display: block; font-size: 13.5px; }
.ach-desc { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ach-state {
  display: inline-block;
  margin-top: 7px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.ach-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--faint);
  background: transparent;
}
.ach-icon svg { width: 23px; height: 23px; }
.ach-icon.off { opacity: .7; }
.ach-icon.on { color: #fffdf7; border-color: transparent; }
.ach-icon.on.tier-bronze { background: #96653b; }
.ach-icon.on.tier-silver { background: #767f8b; }
.ach-icon.on.tier-gold { background: #b0862f; }
.ach-icon.on.tier-jade { background: #3c7259; }

.ach-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ach-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  background: var(--card);
}
.ach-year.is-locked { background: transparent; border-style: dashed; }
.ach-year .ach-icon { width: 32px; height: 32px; }
.ach-year .ach-icon svg { width: 20px; height: 20px; }
.ach-year .mono { font-size: 10px; color: var(--muted); }
.ach-year.is-on .mono { color: var(--ink); }

.ach-link { margin: 12px 0 0; font-size: 13px; }
.ach-foot { margin-top: 26px; font-size: 13px; }

/* ---- 1.26.0: blog */
.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.blog-lead {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 22px;
}
.blog-lead.has-image { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.blog-lead-media { display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-lead.has-image .blog-lead-media { border-bottom: 0; border-right: 1px solid var(--line); }
.blog-lead-media img,
.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform .4s ease;
}
.blog-lead-media:hover img,
.blog-card-media:hover img { transform: scale(1.02); }
.blog-lead-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.blog-lead-body h2 { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.blog-lead-body h2 a { color: var(--ink); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  padding-bottom: 18px;
}
.blog-card-media { display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-card > :not(.blog-card-media) { padding: 0 18px; }
.blog-card h3 { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.blog-card h3 a { color: var(--ink); }
.blog-card .blog-summary { flex: 1; }
.blog-summary { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.blog-by { margin: 0; color: var(--faint); }

.post-page .crumbs { margin-bottom: 26px; }
.blog-post { max-width: 760px; }
.blog-post-head { margin-bottom: 26px; }
.blog-post-head h1 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
}
.blog-standfirst { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.blog-cover { margin: 0 0 30px; border: 1px solid var(--line); overflow: hidden; }
.blog-cover img { display: block; width: 100%; height: auto; }
.blog-body { font-size: 16px; }
.blog-post-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Admin editor */
.blog-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}
.blog-editor-main,
.blog-editor-side { display: flex; flex-direction: column; gap: 18px; }
.blog-editor-side { position: sticky; top: 18px; }
.blog-editor .field { margin-bottom: 0; }
.blog-editor .box { display: flex; flex-direction: column; gap: 14px; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row input { flex: 1; }
.blog-featured-preview { margin: 0; border: 1px solid var(--line); overflow: hidden; }
.blog-featured-preview img { display: block; width: 100%; height: auto; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.check-row input { accent-color: var(--accent); }

@media (max-width: 1000px) {
  .blog-editor { grid-template-columns: 1fr; }
  .blog-editor-side { position: static; }
  .blog-lead.has-image { grid-template-columns: 1fr; }
  .blog-lead.has-image .blog-lead-media { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- 1.27.0: latest blog posts on the front page
   The front page is full width, so it keeps three across: at two the cards
   came out 555px wide each and the third post sat alone on its own row.
   The blog index, which shares a column with a sidebar, is the page that
   wanted two. 1.62.3 restores these three columns.
   1.62.2: both classes are named, so this rule outranks the plain .blog-grid
   columns whatever order the blocks are in. */
.blog-grid.blog-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-grid-home .blog-card h3 { font-size: 18px; }
.blog-grid-home .blog-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .blog-grid.blog-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .blog-grid.blog-grid-home { grid-template-columns: 1fr; }
}

/* ---- 1.29.0: quiet links, images that fit, tags, the blog sidebar, ads */

/* Links were left on the browser's default underline, which drew a thick rule
   through serif post titles and every "All posts". The site now decides: no
   underline by default, a colour change on hover, and a real underline only
   inside written prose where a link has to be distinguishable from text. */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.prose-rich a,
.rte-area a,
.legal-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.blog-lead-body h2 a:hover,
.blog-card h3 a:hover,
.widget-posts a:hover,
.sec-more:hover {
  color: var(--accent);
}

.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf7;
}

.quiet-link {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.quiet-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Images are shown whole. Cover-cropping cut the first words off the left of
   every screenshot; containing them in the same frame keeps the words. */
.blog-lead-media img,
.blog-card-media img {
  object-fit: contain;
  object-position: center;
  background: var(--paper-2);
}

.blog-lead-media:hover img,
.blog-card-media:hover img {
  transform: none;
}

/* 1.61.2 — the index is two cards across, not three: at three the cards in a
   column that already gives 296px to the sidebar came out about 250px wide and
   the titles read as a strip. Two across gives every card the width of a real
   article card, and the twelve to a page are six rows and then the pager. */
.blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Every thumbnail fills the same 16:10 frame, so no card looks smaller than
   the one beside it. The full picture is still shown on the post itself. */
.blog-grid .blog-card-media img {
  object-fit: cover;
}

@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Only reserve the second column when a widget will actually sit in it: with
   every widget switched off the blog goes back to one wide column. */
.blog-layout.has-side {
  grid-template-columns: minmax(0, 1fr) 296px;
}

.blog-main {
  min-width: 0;
}

.blog-side {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 17px 15px;
}

.widget-h {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.widget-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.widget-posts a {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.widget-meta {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 3px;
}

.widget-archive {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-archive li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line-soft);
}

.widget-archive li:last-child {
  border-bottom: 0;
}

p.widget-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.widget-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

/* Scoped to the form. These names used to match the <section> as well, which
   turned the whole widget into a flex row and squeezed "Find a post" into one
   word per line beside the input. */
form.widget-search {
  display: flex;
  gap: 7px;
}

form.widget-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

form.widget-search .btn {
  padding: 8px 12px;
  white-space: nowrap;
}

form.widget-news {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form.widget-news input[type="email"] {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.tag-cloud,
.tag-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row {
  margin-top: 10px;
}

.tag-row-post {
  margin-top: 14px;
}

.tag-row-foot {
  margin: 0 0 16px;
}

.tag-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.4;
}

.tag-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tag-pill.is-big {
  color: var(--ink);
  border-color: var(--muted);
}

.tag-pill.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag-count {
  font-family: var(--mono);
  font-size: 9.5px;
  opacity: 0.65;
}

.tag-row-foot .tag-pill,
.blog-lead .tag-pill {
  background: transparent;
}

.blog-clear {
  margin: 22px 0 0;
}

@media (max-width: 980px) {
  .blog-layout,
  .blog-layout.has-side {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-side {
    position: static;
  }
}

/* Tag chips in the post editor: type, Enter, next one. */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px;
}

.tag-input:focus-within {
  border-color: var(--ink);
}

.tag-chips {
  display: contents;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 3px 4px 3px 9px;
  font-size: 12.5px;
}

.tag-chip-x {
  border: 0;
  background: none;
  padding: 0 3px;
  font-size: 15px;
  line-height: 1;
  color: var(--faint);
}

.tag-chip-x:hover {
  color: var(--accent);
}

.tag-limit,
.field-note.tag-limit {
  display: block;
  margin-top: 6px;
  color: var(--accent);
}

.tag-limit[hidden],
.field-note.tag-limit[hidden] {
  display: none;
}

.tag-input .tag-entry {
  flex: 1;
  min-width: 170px;
  width: auto;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-size: 13px;
}

.tag-input .tag-entry:focus {
  outline: none;
  border-color: transparent;
}

/* ---------------------------------------------------------------- ads */

.offer-slot {
  width: 100%;
  max-width: 1128px;
  margin: 28px auto;
}

.wrap .offer-slot,
.item-side .offer-slot,
.widget .offer-slot {
  max-width: none;
  margin: 0;
}

.item-side .offer-slot {
  margin-bottom: 16px;
}

.offer-label {
  margin: 0 0 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.offer-body {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

/* Native size, never stretched: a 728x90 banner stays 728x90 instead of
   being blown up to the width of a wide slot, and a 300x250 keeps its
   proportions in a narrow one. */
.offer-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.offer-link {
  display: block;
}

/* A spot with several ads: every one is in the page, only one shows, and the
   script moves to the next. */
.offer-rotator {
  position: relative;
}

.offer-frame[hidden] {
  display: none;
}

.ad-rotate-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ad-rotate-seconds {
  width: 5rem;
  text-align: center;
}

.results .offer-slot {
  margin: 0 0 16px;
}

/* -------------------------------------------------- ads in the admin panel */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 13px 15px;
}

.stat-label {
  margin: 0 0 5px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
}

.ad-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ad-form .field {
  margin-bottom: 0;
}

.ad-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ad-kind-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.ad-kind-panel.is-on {
  display: flex;
}

.offer-preview {
  margin: 0;
  border: 1px solid var(--line);
  max-width: 420px;
  background: var(--paper-2);
}

.offer-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-active-line {
  align-self: end;
  margin-bottom: 6px;
}

.ad-delete-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.data-table tr.is-editing td {
  box-shadow: inset 2px 0 0 var(--accent);
}

.adbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  border-bottom: 1px solid var(--line);
}

.adbar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.adbar-fill {
  width: 100%;
  max-width: 34px;
  background: var(--line);
  display: flex;
  align-items: flex-end;
  min-height: 2px;
}

.adbar-clicks {
  width: 100%;
  background: var(--accent);
}

.adbar-day {
  font-size: 9px;
  color: var(--faint);
}

/* The placement map: a wireframe of the page with every ad spot outlined. */
.place-map-dialog {
  width: min(700px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 20px 22px 22px;
}

.place-map-dialog::backdrop {
  background: rgba(12, 10, 8, 0.62);
}

.place-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.place-map-head h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 22px;
}

.place-map-close {
  border: 1px solid var(--line);
  background: transparent;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}

.place-map-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.admap-page {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 9px;
}

.admap-chrome,
.admap-hero,
.admap-content {
  border: 1px dashed var(--line);
  background: var(--card);
  color: var(--faint);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

.admap-hero {
  padding: 16px 8px;
}

.admap-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 186px;
  gap: 7px;
}

.admap-main,
.admap-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admap-content.tall {
  flex: 1;
  min-height: 86px;
}

.admap-hot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px dashed var(--accent);
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.admap-hot:hover {
  border-style: solid;
  background: var(--accent);
  color: #fffdf7;
}

.admap-hot:hover .admap-hot-meta {
  color: #fffdf7;
}

.admap-hot-name {
  font-weight: 600;
}

.admap-hot-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .admap-cols {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------- blog sidebar in admin */

.widget-add-form {
  display: grid;
  /* max-content, not auto: an auto column soaks up the free width and stretched
     "Add to the sidebar" across the whole panel. */
  grid-template-columns: minmax(0, 200px) minmax(0, 240px) max-content;
  justify-content: start;
  gap: 12px;
  align-items: end;
}

.widget-add-form .btn {
  justify-self: start;
  white-space: nowrap;
}

.widget-add-form .field {
  margin-bottom: 0;
}

.widget-add-form .field-note {
  grid-column: 1 / -1;
  margin: 0;
}

.widget-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-admin-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 14px 16px;
}

.widget-admin-item.is-off {
  border-style: dashed;
  opacity: 0.66;
}

.widget-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.widget-admin-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.widget-admin-tools {
  display: flex;
  gap: 4px;
}

.widget-admin-item .field {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .widget-add-form {
    grid-template-columns: 1fr;
  }
}

/* ---- 1.30.0: dashboard shortcuts and the attention list */

.quick-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.quick-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.quick-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-arrow {
  color: var(--faint);
}

.quick-tile:hover .quick-arrow {
  color: var(--accent);
}

.quick-count {
  min-width: 22px;
  text-align: center;
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
}

.attention {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 18px 18px;
  margin: 0 0 24px;
}

.attention-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 13px;
}

.attention-h {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

.attention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--paper-2);
  padding: 13px 15px 14px;
}

.attention-item.tone-urgent {
  border-left-color: var(--accent);
}

.attention-count {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.attention-item.tone-urgent .attention-count {
  color: var(--accent);
}

.attention-copy {
  min-width: 0;
}

.attention-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.attention-detail {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.attention-link {
  grid-column: 2;
  justify-self: start;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.attention-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.attention-clear {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.attention-tick {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
}

@media (max-width: 620px) {
  .attention-item {
    grid-template-columns: 1fr;
  }

  .attention-link {
    grid-column: 1;
  }
}

/* ---- 1.32.0: reactions and comments under a blog post */

.blog-engage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-engage form {
  margin: 0;
  display: flex;
}

.blog-engage .item-act {
  background: var(--card);
}

.blog-jump {
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.blog-jump:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.blog-comments {
  margin-top: 28px;
}

.blog-comments h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.blog-comments h2 .mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.blog-comments-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.blog-comments .comment-list {
  margin-top: 12px;
}

.blog-comments .comment-form {
  margin-top: 20px;
}

/* ---- 1.34.0: the verification box sits above the submit button */

/* It was at the top of the form, before the first field. Putting it just above
   the button keeps the reading order and means a theme switch, which redraws
   the box and drops its token, happens after the fields are already filled. */
.stack-form .turnstile-box,
.support-form .turnstile-box {
  margin: 18px 0 14px;
}

.stack-form .turnstile-box .cf-turnstile,
.support-form .turnstile-box .cf-turnstile {
  min-height: 65px;
}

/* ---------------------------------------------------------------- 1.36.0 */

/* The editable header menu. It has its own bar under the search row: links
   added in Admin → Menus used to render inside the commission strip at the very
   top of the page, which read as stray text rather than navigation. */
.head-menu {
  border-bottom: 1px solid var(--line);
  background: var(--panel, transparent);
}

.head-menu-in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.head-menu-in::-webkit-scrollbar {
  display: none;
}

.head-menu-in a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.head-menu-in a:hover,
.head-menu-in a:focus-visible {
  border-bottom-color: currentColor;
}

.head-menu-heading {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* The review-queue box on an author's item form. */
.box-fast-track .fast-track-line {
  margin: 0 0 10px;
}

.box-fast-track .fast-track-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.box-fast-track .inline-form {
  margin-top: 10px;
}

/* Follow an author, under their name on the profile page. */
.profile-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

.profile-follow .field-note {
  margin: 0;
}

@media (max-width: 640px) {
  .head-menu-in {
    gap: 16px;
    padding: 9px 16px;
  }
}

/* ---------------------------------------------------------------- 1.37.0 */

/* A placement picker on each row of the Advertising list, so an ad can be
   moved without opening the form below. */
.ad-move {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.ad-move .mini-select {
  max-width: 200px;
  font-size: 12px;
  padding: 4px 6px;
}

/* A category switched off stays in the admin list but reads as inactive. */
.cat-table .row-hidden > td {
  opacity: 0.55;
}

.cat-table .row-hidden .pill {
  opacity: 1;
}

.cat-table .row-actions {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-table .row-actions form {
  margin: 0;
}

/* ============================================================ 1.38.0
   The search bar sits between the logo and the icons rather than hugging the
   logo; the ad placement is a grid of tiles you cannot miss; the item form
   uploads its files with a progress bar each, then names them in dropdowns. */

.head-main .head-search {
  flex: 1 1 320px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.ad-place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.ad-place-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 10px 12px;
  cursor: pointer;
}

.ad-place-tile input {
  grid-row: 1 / span 2;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.ad-place-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ad-place-where {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.ad-place-tile.is-picked,
.ad-place-tile:has(input:checked) {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Why an ad cannot draw, printed under its name in the list. */
.offer-warn {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #b8451c;
  max-width: 34ch;
}

/* Pasted ad code, drawn in its own frame so it cannot touch the panel. */
.offer-code-preview {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

/* A real preview image in a card or a row: fill the box, never stretch it. */
.thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- uploads on the item form */
.dropzone {
  border: 1px dashed var(--line);
  background: var(--paper-2);
  padding: 22px 18px;
  text-align: center;
  margin: 0 0 12px;
}

.dropzone.is-over {
  border-color: var(--accent);
  background: var(--card);
}

.dropzone-h {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.dropzone-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.upload-list:empty {
  display: none;
  margin: 0;
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 100px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 10px;
}

.upload-name {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-bar {
  display: block;
  height: 6px;
  background: var(--line);
}

.upload-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.15s linear;
}

.upload-state {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.upload-row.is-ok .upload-fill {
  background: #4f7a54;
}

.upload-row.is-bad {
  border-color: #b8451c;
}

.upload-row.is-bad .upload-state {
  color: #b8451c;
}

/* The red bin beside Done in the upload list: a file that will not be used can
   leave the site now, instead of waiting in storage/stage for a day and turning
   up in the upload list of every item form opened from this browser. */
.upload-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.upload-trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--danger, #b3341f);
  cursor: pointer;
}

.upload-trash:hover {
  border-color: currentColor;
  background: rgba(179, 52, 31, 0.08);
}

.upload-trash:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.upload-trash svg {
  display: block;
  width: 14px;
  height: 14px;
}

.upload-trash[hidden] {
  display: none;
}

.upload-trash[disabled] {
  opacity: 0.5;
  cursor: default;
}

[data-theme="dark"] .upload-trash {
  color: #ff8f7d;
}

[data-theme="dark"] .upload-trash:hover {
  background: rgba(255, 143, 125, 0.12);
}

/* ---- the technology checkboxes */
.tech-field {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}

.tech-h {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.tech-h em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.tech-group {
  border: 1px solid var(--line);
  padding: 8px 12px 12px;
  margin: 0 0 10px;
  min-width: 0;
}

.tech-group legend {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 6px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 14px;
}

.tech-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  cursor: pointer;
}

.tech-check input {
  margin: 0;
}

.item-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 2px 6px;
  color: var(--muted);
}

/* ---- add a widget: three equal fields, then only the fields the chosen kind
   can use. A grid rather than a wrapping flex row, so the three pickers are the
   same width and the button never lands half-way across a broken line. */
.widget-add-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  /* start, not end: a field with a note under it is taller, and bottom-aligning
     the three of them lifted its picker a few pixels above the other two. */
  align-items: start;
}

.widget-add-form .field {
  margin-bottom: 0;
}

.widget-add-form .widget-add-panel {
  display: none;
  grid-column: 1 / -1;
}

/* A panel is a .field: stacked label, control and note, like every other field
   in the panel. It used to be flexed into one line, which is what made the ad
   panel a tall uneven row. */
.widget-add-form .widget-add-panel.is-on {
  display: block;
}

.widget-add-form .widget-add-panel.widget-add-pair.is-on {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.widget-add-form textarea {
  width: 100%;
  min-height: 68px;
}

.widget-add-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.widget-add-form .field-note {
  grid-column: 1 / -1;
  margin: 0;
}

.widget-add-form .widget-add-panel .field-note {
  margin: 8px 0 0;
}

@media (max-width: 760px) {
  .upload-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
  .upload-bar {
    grid-column: 1 / -1;
  }
  .widget-add-form {
    grid-template-columns: 1fr;
  }
  .widget-add-form .widget-add-panel.widget-add-pair.is-on {
    grid-template-columns: 1fr;
  }
}

/* ---- 1.39.0: Free Files and Flash Sale, beside Browse all in the category
   bar. The badge carries the colour, so the words stay readable in both
   themes and the red does not depend on a background change. */

.catbar-deal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deal-badge {
  display: inline-block;
  font: 700 8.5px/1.55 ui-monospace, Menlo, monospace;
  letter-spacing: 0.05em;
  padding: 0 4.5px;
  border-radius: 2.5px;
  color: #ffffff;
}

.deal-free {
  background: #17724c;
}

.deal-sale {
  background: #c0341d;
}

/* ---------------------------------------------- 1.42.0 item sections as tabs */

/* The four sections are already in the page; a tab swaps them in place, so a
   click costs no request and the reader never scrolls down to a heading and
   back up again. The bar stays at the top of the window while reading. */
.item-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  margin-bottom: 2px;
}

.item-tabs a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.item-tabs a.is-active:hover { color: var(--ink); }

.item-tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* A tab still has to hide its neighbours even where a display rule exists. */
[data-panel][hidden] { display: none !important; }

/* ---------------------------------------------- 1.42.1 card thumbnails
   A portrait ebook cover in an item card used to stretch that one card three
   times the height of its neighbours, because the picture kept its own shape.
   The picture box now has one landscape shape for every card and the picture
   fills it, so a tall cover is trimmed to the box instead of running down the
   page. The item page picture keeps its own 520px cap and is not touched here. */
.card-art {
  aspect-ratio: 3 / 2;
  max-height: 220px;
}

.card-art .thumb-img,
.card-art > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------- 1.43.0 image lightbox
   The preview image and the screenshots open over the page: one picture, a
   counter, previous and next arrows and a close X. No new tab per picture. */
.shot-open { cursor: zoom-in; }

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: rgba(12, 16, 24, .9);
}

.lightbox[hidden] { display: none !important; }

.lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.lb-count {
  color: #f4f1e9;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lb-stage {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 6px;
  background: var(--paper-2);
}

.lb-close,
.lb-prev,
.lb-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(244, 241, 233, .35);
  border-radius: 999px;
  background: rgba(16, 24, 38, .78);
  color: #f4f1e9;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf7;
}

.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { display: none; }

@media (max-width: 620px) {
  .lb-img { max-height: calc(100vh - 160px); }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
}

/* ---------------------------------------------- 1.45.0 screenshot picks
   The ticked pictures from the staged uploads in the item form. */
.shot-picks {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.shot-picks .checkline {
  margin: 0;
  align-items: flex-start;
}

.shot-picks .checkline span {
  word-break: break-word;
}

/* ---------------------------------------------- 1.47.0 open in the shop
   The arrow beside an item name in the admin and author lists. */
.row-open {
  display: inline-block;
  margin-left: 6px;
  padding: 0 3px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  vertical-align: 2px;
}

.row-open:hover,
.row-open:focus-visible {
  color: var(--accent);
}

/* ---------------------------------------------- 1.49.0 covers and the feed
   A profile cover is one wide picture with a focal point. The same file is
   drawn in three places at very different heights, so object-content plus the
   stored object-position does the cropping. */
.cover-preview {
  position: relative;
  height: 190px;
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  cursor: grab;
  touch-action: none;
}
.cover-preview.is-dragging { cursor: grabbing; }
.cover-preview.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  cursor: default;
  background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, var(--card) 10px, var(--card) 20px);
}
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cover-field input[type="range"] { width: 100%; max-width: 360px; }

.profile-hero-cover {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 132px;
  object-fit: cover;
  z-index: 0;
}
.profile-hero.has-cover .profile-hero-wash {
  opacity: 1;
  background: linear-gradient(180deg, rgba(12, 10, 7, 0.05) 0%, rgba(12, 10, 7, 0.28) 46%, var(--card) 132px);
}
.profile-hero.has-cover .profile-hero-in { z-index: 1; }

.creator-cover {
  margin: -16px -16px 0;
  height: 92px;
  overflow: hidden;
  background: var(--paper-2);
}
.creator-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A card with a cover on top puts the picture across the band and the avatar
   half over its lower edge, the way an author card reads on a marketplace. */
.creator-cover + .creator-top { align-items: flex-start; }
.creator-cover + .creator-top .creator-photo,
.creator-cover + .creator-top .creator-mark {
  width: 48px;
  height: 48px;
  margin-top: -26px;
  border-radius: 50%;
  border: 3px solid var(--card);
  background: var(--card);
  box-shadow: 0 6px 16px rgba(20, 16, 10, 0.2);
}
.creator-cover + .creator-top > div { padding-top: 5px; }

.seller-cover {
  margin: -13px -14px 0;
  height: 80px;
  overflow: hidden;
  background: var(--paper-2);
}
.seller-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seller-cover + .seller-top { align-items: flex-start; margin-top: 4px; }
.seller-cover + .seller-top .avatar {
  width: 48px;
  height: 48px;
  margin-top: -26px;
  border-radius: 50%;
  border: 3px solid var(--card);
  background: var(--card);
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(20, 16, 10, 0.2);
}
.seller-cover + .seller-top > div { padding-top: 7px; }

/* ------------------------------------------------------------------ feed */
.feed-compose {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.feed-compose-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.feed-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.feed-file input[type="file"] { max-width: 230px; font-size: 12px; }

.feed-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feed-post {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 15px 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.feed-by { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.feed-by strong { display: block; font-size: 13.5px; }
.feed-by span { color: var(--muted); }
.feed-body { font-size: 14.5px; line-height: 1.65; min-width: 0; }
.feed-media {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  margin: 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0c0a;
  overflow: hidden;
}
/* A picture posted to the feed is scaled down to the column, never printed at
   its own pixel width. The whole picture stays visible: a 1920x1024 shot fits
   the card's width, and a tall one is capped by the height without cropping. */
.feed-media img,
img.feed-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.feed-posts,
.profile-main { min-width: 0; }
.feed-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.feed-like {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  padding: 4px 11px;
  cursor: pointer;
}
.feed-like b { font-weight: 600; color: var(--muted); }
.feed-like.is-on { border-color: var(--accent); color: var(--accent); }
.feed-like.is-on b { color: var(--accent); }
.feed-like.is-static { background: transparent; border-color: transparent; padding-left: 0; cursor: default; }
.feed-del { margin-left: auto; font-size: 12.5px; }
.feed-replies { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.feed-replies li { display: flex; gap: 9px; align-items: flex-start; }
.feed-replies p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.feed-replies p:first-child { font-size: 12.5px; }
.feed-reply-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.feed-reply-form .field { flex: 1 1 auto; margin: 0; }
.feed-reply-form input { width: 100%; }
.profile-follow-count { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 640px) {
  .cover-preview { height: 140px; }
  .profile-hero-cover { height: 104px; }
  .profile-hero.has-cover .profile-hero-wash { background: linear-gradient(180deg, rgba(12, 10, 7, 0.05) 0%, rgba(12, 10, 7, 0.3) 44%, var(--card) 104px); }
  .feed-reply-form { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ skills
   The languages and tools an author ticks on the account page, as colored
   pills on the author cards and the top of their profile. The color is picked
   from the skill itself (skill_tone() in app/helpers.php), so one card carries
   several colors and a skill keeps its color everywhere. */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.creator .skill-pills { margin: 0; }
.seller-card .skill-pills { margin: 9px 0 0; }
.profile-skills { margin: 9px 0 0; }
.skill-pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.skill-t1 { background: #e8efe0; border-color: #cfdcc2; color: #3a4a29; }
.skill-t2 { background: #e5ecf6; border-color: #c9d8ec; color: #27456b; }
.skill-t3 { background: #f8edd9; border-color: #e7d3b2; color: #6d4a17; }
.skill-t4 { background: #f8e5e3; border-color: #e8c8c4; color: #6f2e26; }
.skill-t5 { background: #efe8f4; border-color: #dacbe7; color: #48325a; }
.skill-t6 { background: #e1f0ed; border-color: #c1e0da; color: #1d4b45; }
[data-theme="dark"] .skill-t1 { background: #232a1c; border-color: #3a4630; color: #c4d3ad; }
[data-theme="dark"] .skill-t2 { background: #1e2833; border-color: #33455d; color: #b2c9e7; }
[data-theme="dark"] .skill-t3 { background: #2d2416; border-color: #4b3c25; color: #e0c294; }
[data-theme="dark"] .skill-t4 { background: #2e201f; border-color: #4e3431; color: #e4b4ad; }
[data-theme="dark"] .skill-t5 { background: #262132; border-color: #423756; color: #c6b7df; }
[data-theme="dark"] .skill-t6 { background: #1a2b29; border-color: #2d4744; color: #a9d5ce; }

/* ------------------------------------------------------------------ the star
   One click follows the author from their card. It sits in the card's top row
   so it never covers the name, and it is a plain POST form: no script. */
.follow-star-form {
  margin: 0 0 0 auto;
  flex: none;
  align-self: flex-start;
}
.follow-star {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.follow-star svg { display: block; width: 15px; height: 15px; }
.follow-star:hover,
.follow-star:focus-visible { border-color: var(--accent); color: var(--accent); }
.follow-star.is-on { border-color: var(--gold); color: var(--gold); }

/* -------------------------------------------------- signed in as (support view)
   One bar across the top while an admin is signed in as a member. It uses the
   fixed ribbon tokens so it reads the same in both themes, and it sticks to the
   top so the way back is always one click away, wherever the page is scrolled. */
.imp-bar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: var(--strip-bg);
  color: var(--strip-ink);
  border-bottom: 2px solid var(--accent);
}
.imp-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 9px 26px;
}
.imp-bar-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.imp-bar-who {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
}
.imp-bar-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 69, 28, 0.28);
}
.imp-bar-text strong { color: var(--strip-ink-strong); font-weight: 600; }
.imp-bar-email {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--strip-ink);
  opacity: 0.75;
}
.imp-bar-hint { color: var(--strip-ink); opacity: 0.72; }
.imp-bar-form { margin: 0; flex: none; }
.imp-bar-btn {
  padding: 5px 13px;
  border: 1px solid rgba(255, 253, 247, 0.38);
  border-radius: 6px;
  background: transparent;
  color: var(--strip-ink-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.imp-bar-btn:hover,
.imp-bar-btn:focus-visible {
  background: var(--strip-ink-strong);
  border-color: var(--strip-ink-strong);
  color: var(--strip-bg);
}
@media (max-width: 640px) {
  .imp-bar-in { padding: 8px 16px; }
  .imp-bar-hint { display: none; }
  .imp-bar-form { width: 100%; }
  .imp-bar-btn { width: 100%; }
}

/* 1.59.0 — the sidebar clouds are word clouds: plain words with no chips or
   tinted backgrounds, a wide size step from the busiest tag down, and a quiet
   print palette. A tag's colour still comes from the tag itself, so it keeps
   its look between loads and in both themes. */
.tag-cloud-random {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  line-height: 1.12;
  padding: 2px 0 1px;
}

.tag-cloud-random .tag-pill {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.tag-cloud-random .tag-pill:hover {
  color: var(--tag-fg, var(--ink));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tag-cloud-random .tag-pill.is-on {
  color: var(--tag-fg, var(--ink));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tag-cloud-color .tag-pill {
  color: var(--tag-fg, var(--ink));
}

.tag-cloud-more {
  margin: 9px 0 0;
}

.tag-cloud-more a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.tag-cloud-more a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* 1.60.0 — eight colours a reader can tell apart. The 1.59 palette was all
   warm brown and gray, so a column of tags came out one tone however many
   tones were assigned. These keep the print feel but separate: rust, teal,
   indigo, olive, plum, brick, steel and ochre. */
.tag-tone-1 { --tag-fg: #b1551e; --tag-bg: #f7e8e3; }
.tag-tone-2 { --tag-fg: #2c6e63; --tag-bg: #e2efec; }
.tag-tone-3 { --tag-fg: #4b4f9e; --tag-bg: #e8e8f6; }
.tag-tone-4 { --tag-fg: #6b6b23; --tag-bg: #f1f1df; }
.tag-tone-5 { --tag-fg: #7c3f72; --tag-bg: #f5e8f1; }
.tag-tone-6 { --tag-fg: #a63d2f; --tag-bg: #f9e6e2; }
.tag-tone-7 { --tag-fg: #33648f; --tag-bg: #e3edf6; }
.tag-tone-8 { --tag-fg: #8a5a12; --tag-bg: #f7eede; }

[data-theme="dark"] .tag-tone-1 { --tag-fg: #e0975c; --tag-bg: #2c201a; }
[data-theme="dark"] .tag-tone-2 { --tag-fg: #66c2b0; --tag-bg: #122420; }
[data-theme="dark"] .tag-tone-3 { --tag-fg: #9ea6f0; --tag-bg: #1b1c30; }
[data-theme="dark"] .tag-tone-4 { --tag-fg: #c9c86a; --tag-bg: #23230f; }
[data-theme="dark"] .tag-tone-5 { --tag-fg: #d58fca; --tag-bg: #2a1826; }
[data-theme="dark"] .tag-tone-6 { --tag-fg: #e08674; --tag-bg: #2c1a17; }
[data-theme="dark"] .tag-tone-7 { --tag-fg: #8fb8dd; --tag-bg: #12212e; }
[data-theme="dark"] .tag-tone-8 { --tag-fg: #d9b25f; --tag-bg: #2a2213; }

.tag-size-1 { font-size: 9px; }
.tag-size-2 { font-size: 9.5px; }
.tag-size-3 { font-size: 10.5px; }
.tag-size-4 { font-size: 11.5px; }
.tag-size-5 { font-size: 12.5px; }
.tag-size-6 { font-size: 14px; }

/* The tags at the end of an item page. */
.item-tag-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.item-tag-foot h2 {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-tag-foot .tag-row-foot {
  margin: 0;
}

/* The label beside the tags at the end of a post. */
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 14px;
}

.blog-post-tags > .mono {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-post-tags .tag-row-foot {
  margin: 0;
}

/* ---- 1.61.0: the page that lists every tag ---- */

.tag-page-head {
  margin: 0 0 26px;
}

.tag-page-head .lede {
  max-width: 62ch;
}

/*
 * The tag index is one grid of outlined boxes, four across on a laptop as on
 * the forum the owner pointed at. There are no letter headings: the previous
 * pass drew a dot, a letter and a count over every group, which read as "A 1"
 * and pushed the tags into tall single-column bands.
 */
.tag-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/*
 * A box wears its tag's colour twice: the outline is drawn in the tag's full
 * tone and the name is set in that same tone inside a light wash of it. The
 * count stays quiet on the right.
 */
.tag-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--tag-fg, var(--line));
  border-radius: 3px;
  background: var(--card);
  color: var(--tag-fg, var(--ink));
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.tag-box:hover,
.tag-box:focus-visible {
  background: var(--tag-bg, var(--paper-2));
  box-shadow: inset 0 0 0 1px var(--tag-fg, var(--ink));
}

.tag-box-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tag-bg, var(--paper-2));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tag-fg, var(--ink));
}

.tag-box-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* 1.63.0: the page covers the shop as well as the blog, so it is two groups. */
.tag-page-group {
  margin: 0 0 30px;
}

.tag-page-group .empty {
  margin: 0;
}

.tag-page-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tag-page-sub span {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- 1.64.0: every creator, three across with a sidebar on the right ---- */
.creators-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 28px;
  align-items: start;
}

.creators-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* The card markup is the front page's; only the heading level changes. */
.creators-page-grid .creator-name {
  font-size: 14.5px;
  margin: 0 0 3px;
}

.creators-page-grid .creator-name a {
  color: inherit;
  text-decoration: none;
}

.creators-page-grid .creator-name a:hover {
  color: var(--accent);
}

.creators-result {
  margin: 0 0 14px;
  color: var(--muted);
}

.creators-aside {
  display: grid;
  gap: 24px;
  align-content: start;
}

.creators-side-block .side-title {
  margin-top: 0;
}

.creators-side-block .widget-search {
  display: flex;
  gap: 8px;
}

.creators-side-block .widget-search input {
  min-width: 0;
  flex: 1;
}

.creators-top {
  list-style: none;
  margin: 0;
  padding: 0;
}

.creators-top li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.creators-top li:last-child {
  border-bottom: 0;
}

.creators-top li a {
  color: inherit;
  text-decoration: none;
}

.creators-top li a:hover {
  color: var(--accent);
}

.creators-top li span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.creators-side-cta p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .creators-page {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .creators-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .creators-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .creators-page-grid {
    grid-template-columns: 1fr;
  }
}

.tag-page-foot {
  display: flex;
  gap: 10px;
  margin: 30px 0 0;
}

@media (max-width: 1023px) {
  .tag-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tag-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .tag-page-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------- 1.62.0 one list of pictures
   Both item forms used to draw every uploaded picture three times: once in
   the Preview image dropdown, again in the Screenshots dropdown and once more
   as a tick box. The same file name in three controls is how a screenshot
   came to be saved as the preview. Each upload is now one row with its own
   Preview and Screenshot choice, and nothing is chosen for you. */
.image-picks {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.image-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.image-pick-name {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 13px;
  word-break: break-word;
}

.image-pick-name em {
  color: var(--faint);
  font-style: normal;
  font-size: 12px;
}

.image-pick .checkline {
  margin: 0;
  flex: 0 0 auto;
}

.image-pick .checkline span {
  white-space: nowrap;
}

.image-pick-keep {
  border-style: dashed;
}

.image-pick-keep .image-pick-name {
  color: var(--faint);
}

/* 1.65.0 a saved screenshot joins the same list, so the preview can be moved
   to a picture that is already on the listing, without removing it first. */
.image-pick-saved .image-pick-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-pick-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 39px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ============================================================ 1.68.0
   Reactions that stay on the page, a header that stays at the top, a toolbar
   that stays above the editor, and the people and download lists on a profile. */

/* The header row (logo, search, account) is pinned by app.js once the strip
   has scrolled away. The spacer keeps the page from jumping when it leaves the
   flow, and --head-h is how far down the editor toolbar sits. */
.head-fixed-spacer { display: none; height: 0; }
.head-fixed-spacer.is-on { display: block; }

.head-main.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding-left: max(26px, calc((100% - 1128px) / 2));
  padding-right: max(26px, calc((100% - 1128px) / 2));
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

/* A pressed reaction waits for its answer; the second press is ignored. */
.item-act.is-busy,
.card-act.is-busy,
.feed-like.is-busy,
.btn.is-busy { opacity: 0.55; pointer-events: none; }

/* The description toolbar follows the scroll, under the pinned header. */
.rte-bar {
  position: sticky;
  top: calc(var(--head-h, 0px) + 6px);
  z-index: 12;
  border-radius: 9px 9px 0 0;
}

/* ---------------------------------------------- followers / following */
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper-2);
}
.people-ident { display: grid; gap: 2px; min-width: 0; }
.people-name { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.people-name:hover { color: var(--accent); }
.people-sub { font-size: 11.5px; color: var(--faint); }
.people-open { margin-left: auto; flex: 0 0 auto; }

/* ---------------------------------------------- downloads tab */
.dl-mini { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.dl-mini li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper-2);
}
.dl-mini-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.dl-mini .mono { font-size: 11.5px; color: var(--faint); }
.dl-mini-btn { margin-left: auto; flex: 0 0 auto; }

@media (max-width: 760px) {
  .head-main.is-fixed { position: static; padding-left: 26px; padding-right: 26px; box-shadow: none; }
  .head-fixed-spacer { display: none !important; }
  .rte-bar { top: 0; }
}

/* ============================================================ 1.69.0
   Notification settings, the unsubscribe page, and the profile header text
   that used to sit on top of the cover picture. */

/* ------------------------------------------- profile header on a cover */
/* In light mode the name was drawn over the latest cover picture, whose colour
   nobody controls, so dark text could land on a dark photo. With a cover the
   identity block now begins below the band: the band is a picture, the text is
   on the card. */
.profile-hero.has-cover .profile-hero-in { padding-top: 150px; }
.profile-hero.has-cover .profile-hero-wash {
  background: linear-gradient(180deg, rgba(12, 10, 7, 0.04) 0%, rgba(12, 10, 7, 0.3) 55%, var(--card) 132px);
}

@media (max-width: 640px) {
  .profile-hero.has-cover .profile-hero-in { padding-top: 122px; }
  .profile-hero.has-cover .profile-hero-wash {
    background: linear-gradient(180deg, rgba(12, 10, 7, 0.04) 0%, rgba(12, 10, 7, 0.32) 52%, var(--card) 104px);
  }
}

/* ------------------------------------------- notification settings table */
.notify-form { margin-top: 14px; }
.notify-table { width: 100%; border-collapse: collapse; }
.notify-table thead th {
  text-align: left;
  padding: 0 10px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.notify-table thead th:nth-child(2),
.notify-table thead th:nth-child(3) { width: 74px; text-align: center; }
.notify-table tbody td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.notify-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.notify-note { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.notify-cell { text-align: center; vertical-align: middle !important; }
.notify-check { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 4px; }
.notify-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.notify-foot { margin: 14px 0 0; }
.notify-foot a { color: var(--accent); }

/* ------------------------------------------- bell footer link */
.bell-settings {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.bell-settings:hover { color: var(--accent); }

/* ------------------------------------------- unsubscribe page */
.unsubscribe-page .unsubscribe-box { max-width: 620px; }
.unsubscribe-msg { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--body); }
.unsubscribe-msg.is-warn { color: var(--accent); }
.unsubscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* ============================================================ 1.71.0
   The whole header stays put, screenshots ride one row, and the item sidebar
   says whether a listing is — or was — featured. */

/* The pinned block: search row, owner menu and category bar together. */
.head-pin.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}
.head-pin.is-fixed .head-menu { background: var(--paper); }
.head-pin.is-fixed .catbar { border-top-color: transparent; }

/* ------------------------------------------------- screenshots, one row */
.shot-slider { position: relative; margin: -4px 0 6px; }
.shot-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px;
  /* The arrows are the control: no native scrollbar under the row. It is still
     scrollable with a finger, a trackpad or the arrow keys. */
  scrollbar-width: none;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot-slide { flex: 0 0 188px; scroll-snap-align: start; }
.shot-slide img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}
.shot-slide[aria-current="true"] img { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.shot-slide:hover img { border-color: var(--faint); }
.shot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}
.shot-nav:hover { border-color: var(--accent); color: var(--accent); }
.shot-nav[hidden] { display: none; }
.shot-nav[disabled] {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}
.shot-nav[disabled]:hover { border-color: var(--line); color: var(--ink); }
.shot-prev { left: -11px; }
.shot-next { right: -11px; }
.shot-count { margin: 0 0 20px; color: var(--faint); }

/* ------------------------------------------------- featured sidebar note */
.side-flag {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--paper-2);
}
.side-flag-key {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.side-flag-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.side-flag-was { border-left-color: var(--line); }
.side-flag-was .side-flag-key { color: var(--muted); }

@media (max-width: 760px) {
  .head-pin.is-fixed { position: static; box-shadow: none; border-bottom: 0; }
  .shot-slide { flex-basis: 150px; }
  .shot-slide img { height: 92px; }
  /* The arrows stay on a phone as well: with no scrollbar there is nothing
     else on screen saying the row can move. */
  .shot-nav { width: 26px; height: 26px; }
  .shot-prev { left: -4px; }
  .shot-next { right: -4px; }
}

/* The screenshot row is a scroll container: it must never widen the column it
   sits in, on a desktop or a phone. */
.item-main, .shot-slider { min-width: 0; }
.shot-track { max-width: 100%; }

/* ============================================================ 1.72.0
   Account columns, a lighter wash on the cover, compact badges, invoices. */

/* The account page used to let a short box sit beside a tall one, so one column
   looked empty. Two columns, each stacked, the wide one holding the profile. */
.account-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.account-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (max-width: 900px) {
  .account-cols { grid-template-columns: 1fr; }
}

/* The cover is a picture the member chose; the wash exists to keep a name
   readable, not to hide three quarters of it. Only the bottom edge fades. */
.profile-hero.has-cover .profile-hero-wash {
  background: linear-gradient(180deg, rgba(12, 10, 7, 0) 0 62%, rgba(12, 10, 7, 0.2) 88%, var(--card) 100%) top left / 100% 132px no-repeat;
}
@media (max-width: 640px) {
  .profile-hero.has-cover .profile-hero-wash {
    background: linear-gradient(180deg, rgba(12, 10, 7, 0) 0 58%, rgba(12, 10, 7, 0.22) 86%, var(--card) 100%) top left / 100% 104px no-repeat;
  }
}

/* Earned badges get an orange edge on the achievements page. */
.ach-card.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ach-card.is-on strong { color: var(--ink); }

/* The profile shows the badge icons only; the words are in the tooltip and the
   screen-reader label. */
.badge-icon-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.badge-icon { display: inline-flex; cursor: help; }
.badge-icon .ach-icon { width: 34px; height: 34px; border-radius: 8px; }
.badge-icon .ach-icon svg { width: 18px; height: 18px; }

/* Invoices tab tables. */
.data-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inv-date { white-space: nowrap; }
.inv-group + .inv-group { margin-top: 22px; }
.inv-group h3 { margin: 0 0 8px; font-size: 13.5px; }
.inv-note { margin: 0 0 12px; }

/* ============================================================ 1.73.0
   Who handles the license, printed on the listing. */
.license-by { margin: 10px 0 0; line-height: 1.5; }
.license-handled { margin-top: 12px; }

/* ============================================================ 1.74.0
   The three licensing steps, in plain words. */
.license-steps { margin-top: 12px; }
.license-steps h3 { margin: 0 0 8px; font-size: 14.5px; display: flex; gap: 8px; align-items: baseline; }
.license-steps h3 .mono { color: var(--accent); font-size: 12px; }
.license-steps p { margin: 0 0 8px; line-height: 1.6; }
.license-steps p:last-child { margin-bottom: 0; }

/* ============================================================ 1.75.0
   Author requirements, the signup agreement and the self-licensing checklist. */
.author-reqs { margin: 12px 0 14px; padding-left: 20px; }
.author-reqs li { margin-bottom: 10px; line-height: 1.6; }
.author-agree { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 18px 0; background: var(--panel); }
.author-agree-h { font-size: 15px; margin: 0 0 4px; }
.author-agree .author-reqs { font-size: 13.5px; }
.sell-requirements .author-reqs { font-size: 14px; }
.sell-apply { display: grid; gap: 10px; justify-items: start; }
.license-agree-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; background: var(--panel); }
.license-agree-h { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.license-agree-box .checkline { margin-bottom: 4px; font-size: 13px; line-height: 1.5; align-items: flex-start; }
.license-agree-box .field-note { margin: 8px 0 0; }

/* ============================================================ 1.76.0
   The cover picture is the point of a cover: give it a real band. The old
   132px strip read as a border and the profile card covered the rest. */
.profile-hero { --cover-h: 320px; }
.profile-hero-cover { height: var(--cover-h); }
.profile-hero.has-cover .profile-hero-in { padding-top: calc(var(--cover-h) + 22px); }
.profile-hero.has-cover .profile-hero-wash {
  height: var(--cover-h);
  background: linear-gradient(180deg, rgba(12, 10, 7, 0) 0 66%, rgba(12, 10, 7, 0.3) 100%);
}
@media (max-width: 900px) {
  .profile-hero { --cover-h: 230px; }
}
@media (max-width: 640px) {
  .profile-hero { --cover-h: 165px; }
  .profile-hero.has-cover .profile-hero-in { padding-top: calc(var(--cover-h) + 18px); }
}

/* ============================================================ 1.77.0
   Mobile: a side menu instead of a wall of links, scaled banners, and no
   picture or table wider than the phone that is reading it. */

/* Nothing on the page may be wider than its column. */
img { max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* The burger and the drawer exist at every width; only a phone shows them. */
.nav-burger {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0 2px 0 -4px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
}
.nav-burger:hover { border-color: var(--ink); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer.is-open { pointer-events: auto; visibility: visible; }
.nav-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 10, 0.46);
  opacity: 0;
  transition: opacity 180ms ease;
}
.nav-drawer.is-open .nav-drawer-scrim { opacity: 1; }
.nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 40px rgba(20, 16, 10, 0.16);
  transform: translateX(-102%);
  transition: transform 220ms ease;
}
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-title { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 16px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.nav-drawer-body::-webkit-scrollbar { width: 8px; }
.nav-drawer-body::-webkit-scrollbar-track { background: transparent; }
.nav-drawer-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.nav-drawer-label {
  margin: 18px 0 6px;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav-drawer-body a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.nav-drawer-body a:hover { color: var(--accent); }
.nav-drawer-deal { display: flex !important; align-items: center; gap: 8px; }
.nav-drawer-cat.is-child { padding-left: 16px; font-size: 13px; color: var(--muted); }
.nav-drawer-heading {
  display: block;
  padding: 10px 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
body.nav-drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .head-main { padding: 12px 18px; gap: 10px; }
  .nav-burger { display: flex; }
  .head-menu, .catbar { display: none; }
  .head-search {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    margin-right: 0;
  }
  .head-search select { display: none; }
  .head-nav { margin-left: auto; gap: 12px; }
  .head-nav .nav-guest-link { display: none; }
  .brand-word { font-size: 19px; }
  .strip { font-size: 10.5px; }
  .strip-in { padding-top: 6px; padding-bottom: 6px; }

  /* Banners and graphics shrink to the phone instead of hanging off it. */
  .offer-slot { width: auto; margin: 18px 16px; }
  .wrap .offer-slot { margin: 0; }
  .offer-body img { width: 100%; height: auto; object-fit: contain; }
  .offer-body iframe { display: block; width: 100% !important; max-width: 100%; }
}

@media (max-width: 560px) {
  /* Three short rows on a narrow phone: menu and brand, then the account
     chips, then the search box. A signed-in header has too many chips for one
     line at this width. */
  .head-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    row-gap: 10px;
    column-gap: 10px;
  }
  .nav-burger { grid-column: 1; grid-row: 1; }
  .brand { grid-column: 2; grid-row: 1; }
  .head-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; margin-left: 0; gap: 12px; }
  .head-search { grid-column: 1 / -1; grid-row: 3; }
  .brand-word { font-size: 18px; }
}

@media (max-width: 640px) {
  .upload-row { grid-template-columns: 1fr; }
  .widget-add-form, .widget-add-form .widget-add-panel.widget-add-pair.is-on { grid-template-columns: 1fr; }
  .page-h1, .legal-head .page-h1 { font-size: clamp(26px, 8vw, 34px); }
  .lede { font-size: 14.5px; }
  .box { padding: 16px 15px; }
  .data-table { display: block; width: 100%; overflow-x: auto; font-size: 12px; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 7px 8px; }
  .hero h1, .masthead h1 { font-size: clamp(30px, 9vw, 40px); }
  .sell-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .foot-grid { gap: 20px; }
  .site-foot { padding-bottom: 18px; }
}

/* ============================================================ 1.78.0
   The installable app: a quarter-page offer at the bottom, never a wall. */
.pwa-install {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 95;
  width: clamp(320px, 25vw, 420px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(20, 16, 10, 0.18);
}
.pwa-install[hidden] { display: none; }
.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--paper-2);
}
.pwa-install-copy strong { display: block; font-size: 13.5px; line-height: 1.3; }
.pwa-install-copy p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.pwa-install-hint { color: var(--ink) !important; }
.pwa-install-actions { display: flex; align-items: center; gap: 4px; }
.pwa-install-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.pwa-install-close:hover { color: var(--ink); }
@media (max-width: 560px) {
  .pwa-install {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 10px;
  }
  .pwa-install-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.brand-form input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

/* --------------------------------------------------------- maintenance mode */
/* The shop stays readable while sign-in, checkout and new listings pause. The
   bar sits above the header so a visitor knows why a button led to a paused
   page, and it borrows the accent wash rather than an alarm colour: nothing
   is wrong with the site. */
.maint-bar {
  background: var(--accent-soft);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.maint-bar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.maint-bar strong { font-weight: 600; letter-spacing: -.005em; }
.maint-bar span { color: var(--body); }
[data-theme="dark"] .maint-bar { background: #2b1d15; border-bottom-color: #3d2c22; }
[data-theme="dark"] .maint-bar span { color: #d7cfc2; }

.maint-page { padding-top: 58px; padding-bottom: 96px; }
.maint-card { max-width: 660px; }
.maint-card .page-h1 {
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 6px 0 12px;
}
.maint-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 54ch;
  margin: 0 0 26px;
}
.maint-groups {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 12px;
}
.maint-groups li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.maint-groups b { font-weight: 600; }
.maint-groups span { color: var(--muted); }
.maint-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.maint-foot {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.maint-foot a { color: var(--muted); }
.maint-inline {
  margin: 14px 0 0;
  padding: 10px 0 10px 12px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 620px) {
  .maint-page { padding-top: 40px; padding-bottom: 72px; }
  .maint-groups li { grid-template-columns: 1fr; gap: 2px; }
}

/* ============================================================ 1.80.0
   Front-end moderation. The controls sit under the thing they act on, in the
   same quiet voice as a date line: they are tools for staff, not part of the
   page's design. */
.mod-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 0;
}
.mod-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}
.mod-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.mod-form { display: inline; margin: 0; }
.mod-link {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.1;
  cursor: pointer;
}
.mod-link:hover { border-color: var(--ink); color: var(--ink); }
.mod-danger:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .mod-link { background: var(--paper-2); }

/* Hidden content stays on the page for staff only, so it can be put back. It
   reads as set aside rather than deleted. */
.comment-hidden {
  padding-left: 10px;
  border-left: 2px solid var(--line);
  background: var(--paper-2);
}
.comment-hidden .comment-top,
.comment-hidden > p { opacity: 0.72; }

/* ------------------------------------------------------- email gate */
/* Shown when an unconfirmed account reaches a purchase or a download. It is a
   stopping page, so it explains the one step and offers the resend right here
   rather than sending the person hunting through settings. */
.verify-gate { padding-top: 58px; padding-bottom: 96px; }
.verify-gate .page-h1 { margin: 6px 0 10px; }
.verify-gate .lede { max-width: 60ch; }
.verify-card {
  max-width: 620px;
  margin: 22px 0 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--card);
}
.verify-card p { margin: 0 0 16px; color: var(--body); line-height: 1.6; }
.verify-card p:last-child { margin-bottom: 0; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.verify-back { margin: 0; }
.verify-back a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.verify-back a:hover { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 620px) {
  .verify-gate { padding-top: 40px; padding-bottom: 72px; }
  .verify-card { padding: 16px 16px; }
}

/* ============================================================ 1.81.0
   A free item's pro version. The upgrade is a second price in the same
   sidebar, not a second product: same border as the featured flag, one
   accent edge, the upgrade price large and the pro item's own price struck
   through beside it. */
.pro-upgrade {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--paper-2);
}
.pro-upgrade-key {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.pro-upgrade-h { margin: 0; font-size: 16px; line-height: 1.3; color: var(--ink); }
.pro-upgrade-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--body); }
.pro-upgrade-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0;
  flex-wrap: wrap;
}
.pro-upgrade-price strong { font-size: 20px; line-height: 1; color: var(--ink); }
.pro-upgrade-price s { font-size: 13px; color: var(--muted); }
.pro-upgrade-price span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pro-upgrade .buy-form { display: grid; gap: 6px; }
.pro-upgrade-link { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.pro-upgrade-link:hover { text-decoration: underline; }

/* The same offer, from the author's side: a labelled box inside Prices. */
.pro-upgrade-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pro-upgrade-form-h { margin: 0 0 6px; font-size: 15px; color: var(--ink); }

/* ------------------------------------------------ 1.82.0 weekly freebies */
/* A paid listing that spends one week at zero: gold corner ribbon on the
   picture, $0 in gold and the price it goes back to struck through beside it.
   The ribbon is decorative, so it never takes a click away from the card. */
.weekly-strip {
  margin: 0 0 22px;
  padding: 16px 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid #d9a62a;
}
.weekly-strip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.weekly-strip-title { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.weekly-strip-sub { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.weekly-strip-mark {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #1d1b17;
  background: linear-gradient(180deg, #f6d572, #d9a62a);
  border: 1px solid #b98316;
  padding: 4px 8px;
}
.weekly-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 118px;
  height: 118px;
  overflow: hidden;
  pointer-events: none;
}
.weekly-ribbon b {
  position: absolute;
  top: 27px;
  left: -35px;
  width: 172px;
  transform: rotate(-45deg);
  text-align: center;
  padding: 5px 0;
  background: linear-gradient(180deg, #f6d572, #d9a62a);
  color: #1d1b17;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-top: 1px solid #b98316;
  border-bottom: 1px solid #b98316;
  box-shadow: 0 1px 2px rgba(29, 27, 23, .22);
}
/* The catalog row's picture is 166px wide, so the band shrinks with it. */
.row-art { position: relative; }
.row-art .weekly-ribbon { width: 96px; height: 96px; }
.row-art .weekly-ribbon b {
  top: 21px;
  left: -30px;
  width: 140px;
  font-size: 7.8px;
  letter-spacing: .06em;
  padding: 4px 0;
}
.price-weekly { color: var(--gold); font-weight: 700; }
.row-was { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.row-was s { color: var(--faint); }

/* ---------------------------------------------------- 1.82.0 freelancers */
.deal-hire { background: #a8761f; }
.fl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: 28px;
  align-items: end;
  margin: 10px 0 8px;
}
.fl-hero-side {
  border-left: 3px solid #d9a62a;
  padding: 2px 0 2px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.fl-hero-side p { margin: 0 0 8px; }
.fl-hero-side strong { color: var(--ink); }
.fl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fl-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.fl-filter {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 9px;
  text-decoration: none;
  background: var(--card);
  color: var(--ink);
}
.fl-filter:hover { border-color: var(--muted); }
.fl-filter.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.fl-search { display: flex; gap: 7px; }
.fl-search input {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 6px 9px;
  font-size: 13px;
  width: 190px;
}
.fl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
}
.fl-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}
.fl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.fl-name { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.fl-name a { color: inherit; text-decoration: none; }
.fl-name a:hover { color: var(--accent); }
.fl-place { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.fl-rate { margin: 7px 0 0; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.fl-featured {
  flex: none;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f6e6bd;
  color: #6b4d0d;
  border: 1px solid #d9b45c;
  padding: 2px 5px;
}
[data-theme="dark"] .fl-featured { background: #3a2e12; color: #f0d68f; border-color: #7a6226; }
.fl-skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; padding: 0; list-style: none; }
.fl-skills li {
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.fl-bio {
  margin: 12px 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fl-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-card-foot .mono { font-size: 10.5px; color: var(--faint); }
.fl-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  margin: 18px 0 0;
}
.fl-profile-main .fl-bio-full {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
  white-space: pre-wrap;
}
.fl-facts { margin: 18px 0 0; border-top: 1px solid var(--line); }
.fl-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fl-facts dt { font-size: 11.5px; color: var(--muted); }
.fl-facts dd { margin: 0; font-size: 13px; text-align: right; }
.fl-contact {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px;
}
.fl-contact h2 { margin: 0 0 4px; font-size: 17px; }
.fl-contact p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.fl-contact .field span { font-size: 12px; }
.fl-contact textarea, .fl-apply textarea {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 9px 10px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.6;
}
.fl-apply { max-width: 820px; }
.fl-apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.fl-apply-grid .field input { width: 100%; }
.fl-skill-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 0;
}
.fl-skill-col h3 {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.fl-skill-col label { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; padding: 2px 0; }
.fl-status-box {
  border: 1px solid var(--line);
  border-left: 3px solid #d9a62a;
  background: var(--paper-2);
  padding: 13px 16px;
  margin: 16px 0 20px;
  font-size: 13px;
}
.fl-status-box p { margin: 0; }
.fl-status-box .mono { font-size: 10.5px; color: var(--muted); }
@media (max-width: 980px) {
  .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-profile { grid-template-columns: 1fr; }
  .fl-hero { grid-template-columns: 1fr; }
  .fl-skill-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fl-grid { grid-template-columns: 1fr; }
  .fl-apply-grid { grid-template-columns: 1fr; }
  .weekly-strip-mark { display: none; }
}

/* ---------------------------------------------- 1.83.0 freelance escrow */
.fl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fl-card-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fl-card-id .avatar-lg { width: 52px; height: 52px; font-size: 18px; flex: none; }
.fl-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fl-card-stats dt { margin: 0; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fl-card-stats dd { margin: 3px 0 0; font-size: 12.5px; color: var(--ink); }
.fl-card-stats .stars { display: inline-flex; gap: 1px; font-size: 10px; }
.fl-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 10px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.fl-profile-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.fl-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.fl-profile-stats dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fl-profile-stats dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.fl-profile-stats .stars { display: inline-flex; gap: 1px; font-size: 11px; }
.fl-done-list { list-style: none; margin: 4px 0 0; padding: 0; }
.fl-done-list li { border-top: 1px solid var(--line); padding: 12px 0; }
.fl-done-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-done-top .stars { font-size: 12px; }
.fl-done-review { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.fl-project-list { display: grid; gap: 16px; margin-top: 4px; }
.fl-project { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; }
.fl-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.fl-project-meta { margin: 0; font-size: 10px; color: var(--faint); letter-spacing: .04em; }
.fl-project-title { margin: 2px 0 0; font-size: 16px; line-height: 1.35; }
.fl-project-with { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.fl-project-with a { color: var(--ink); }
.fl-project-brief { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--body); }
.fl-project-facts { margin-top: 12px; }
.fl-project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.fl-project-wait { margin: 0; font-size: 12.5px; color: var(--muted); }
.fl-quote-note {
  margin-top: 12px;
  padding: 10px 13px;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
}
.fl-quote-note strong { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fl-quote-note p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.fl-quote-form { margin-top: 14px; }
.fl-quote-grid { display: grid; grid-template-columns: 170px 150px; gap: 0 14px; }
.fl-review-form {
  flex-basis: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.fl-review-form .field { margin-bottom: 8px; }
.fl-review-form textarea { min-height: 90px; }
.fl-review-shown { flex-basis: 100%; margin-top: 6px; }
.fl-review-shown .stars { font-size: 13px; }
.fl-review-shown p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.fl-hire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.fl-hire-grid .field input { width: 100%; }
.fl-method-list { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.fl-method-list legend { padding: 0; }
@media (max-width: 980px) {
  .fl-profile-head { grid-template-columns: 1fr; }
  .fl-hire-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .fl-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fl-profile-stats { grid-template-columns: 1fr 1fr; }
  .fl-quote-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ 1.89.0
   Affiliate creatives: the banners, text links and popup previews an
   affiliate copies from their dashboard. Same tokens as the rest of the
   storefront, so dark mode comes along for free. */

.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}

.creative-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.creative-card-head h3 {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.3;
}

.creative-kind {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.creative-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 12px;
  border: 1px dashed var(--line-soft);
  border-radius: 8px;
  background: var(--paper-2);
  overflow: hidden;
}

.creative-preview img {
  display: block;
  max-width: 100%;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
}

.creative-text-preview {
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
}

.creative-popup-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-align: left;
}

.creative-popup-preview img {
  width: 100%;
  border-radius: 5px;
}

.creative-popup-preview strong {
  font-size: 14px;
  line-height: 1.3;
}

.creative-popup-preview span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.creative-popup-button {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
}

.creative-code-hint {
  color: var(--muted);
  text-align: center;
}

.creative-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.creative-snippet {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
  resize: vertical;
}

.creative-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.creative-copy {
  font-size: 12.5px;
}

.creative-copied {
  color: var(--green, #2f7d4f);
}

@media (max-width: 560px) {
  .creative-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------- 1.89.6 share an item */

/* Below the tags, where the listing's own details end: one row of small
   network buttons, each named in its tooltip. */
.item-share {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.item-share h2 {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.share-btn svg {
  display: block;
  width: 17px;
  height: 17px;
}

.share-btn:hover,
.share-btn:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--paper);
}

.share-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.share-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--accent);
}

/* ---------------------------------------------- 1.89.13 changelog notes */

/* A release note keeps the line breaks the author typed or pasted, so a whole
   changelog reads as a list instead of one run-on paragraph. */
.log-note {
  white-space: pre-line;
}

.change-note {
  white-space: pre-line;
}

/* A history note is editable now, so the cell holds the whole note in a box the
   editor can pull taller instead of printing a wall of text in the table. */
.change-note textarea {
  width: 100%;
  min-height: 76px;
  max-height: 320px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

/* ============================================================ 1.89.10
   Admin → Categories is reordered by dragging a row's handle. The grip column
   is narrow, the dragged rows fade, and the Save order bar sits above the list
   so the numbers and the button stay in view together. */

.cat-table .cat-grip-col {
  width: 26px;
}

.cat-table .cat-grip-cell {
  width: 26px;
  padding-right: 0;
}

.cat-table .cat-grip {
  display: inline-block;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -2px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.cat-table .cat-grip:active {
  cursor: grabbing;
}

.cat-table tr[draggable="true"] {
  cursor: grabbing;
}

.cat-table tr.is-dragging > td {
  opacity: 0.4;
}

.cat-order-form {
  margin: 0 0 12px;
}

.cat-order-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-order-bar .field-note {
  margin: 0;
  max-width: 62ch;
}

.cat-order-form.is-dirty .cat-order-bar .btn-quiet {
  border-color: var(--accent, #c2410c);
  color: var(--accent, #c2410c);
}

@media (max-width: 640px) {
  .cat-order-bar { align-items: flex-start; }
  .cat-order-bar .field-note { font-size: 12px; }
}

/* ============================================================ 1.89.18
   Dark-mode fix for the two white panels on the front page.

   The newsletter bar and the author band were painted a fixed #fff so they
   stand off the cream page in the light theme. In dark mode the text inside
   them is --ink, which flips to cream, so the headings turned unreadable and
   the "Browse the Catalog" button disappeared into the panel.

   Give the panels a dark surface of their own instead of repainting the text:
   the page tone is #13130f, so the panels sit one step up at --paper-2 and the
   ink, muted and line tokens keep working unchanged. The free demo hosting
   band between them keeps the page tone, so it still reads as a divider.
   Light mode is untouched: .cta-band and .newsletter-band stay #fff. */

[data-theme="dark"] .newsletter-band,
[data-theme="dark"] .cta-band:not(.cta-band-demo) {
  background: var(--paper-2);
}
