/* =====================================================================
   Barney Bed — "Come and meet Moose" open house
   One stylesheet for every page. Edit the tokens below to restyle.
   ===================================================================== */

/* ---------- 1. Fonts (self-hosted, latin subset, variable weight) ---- */
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ------------------------------------------------ */
:root {
  /* brand */
  --brown: #6a4a3d;
  --brown-dark: #543a30;
  --brown-tint: #f3ece7;
  --tick-bg: #f2eae4;

  /* ink */
  --ink: #454546;
  --ink-strong: #2e2a27;
  --ink-muted: #6f6f6f;
  --ink-faint: #a9a49c;

  /* surfaces */
  --page: #f6f2ee;
  --page-warm: #f7f3ef;
  --page-tint: #f1e8e0; /* the RSVP page, so white fields read as fields */
  --surface: #ffffff;
  --line: #e4dcd4;
  --line-soft: #e7dfd7;
  --field-line: #e2d7cc;
  --field-disabled: #e6dcd2;

  /* type */
  --sans: "Montserrat", "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode",
    "Lucida Sans", Tahoma, sans-serif;
  --serif: "Romana TL Regular", "RomanaTL-Regular", "Romana TL", "Romana BT",
    Romana, "Playfair Display", Georgia, serif;

  /* geometry */
  --frame: 1200px;
  --radius-pill: 34px;
  --radius-field: 25px;

  color-scheme: light;
}

/* ---------- 3. Reset ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: var(--brown); }
a:hover { color: var(--brown-dark); }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 4. Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 30px;
  max-width: 100%;
  border: 2px solid var(--brown);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}
.btn--primary { background: var(--brown); color: #fff; }
.btn--primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--brown); }
.btn--ghost:hover { background: var(--brown-tint); border-color: var(--brown-dark); color: var(--brown-dark); }
.btn--wide { min-width: min(335px, 100%); }
.btn--fixed { width: 220px; min-height: 48px; font-size: 15px; letter-spacing: 0.04em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Sheen + wiggle on the primary CTA. Purely decorative. */
.btn--sheen {
  position: relative;
  overflow: hidden;
  animation: btn-wiggle 6s ease-in-out infinite;
}
.btn--sheen::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(100deg, rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.4) 50%, rgb(255 255 255 / 0) 100%);
  transform: translateX(-140%) skewX(-14deg);
  animation: btn-sheen 3.4s ease-in-out infinite;
}

@keyframes btn-wiggle {
  0%, 88%, 100% { transform: rotate(0deg) scale(1); }
  91% { transform: rotate(-1.6deg) scale(1.04); }
  94% { transform: rotate(1.6deg) scale(1.04); }
  97% { transform: rotate(-0.8deg) scale(1.02); }
}
@keyframes btn-sheen {
  0% { transform: translateX(-140%) skewX(-14deg); }
  45%, 100% { transform: translateX(330%) skewX(-14deg); }
}

/* ---------- 5. Shared bits ------------------------------------------- */
.brandmark {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.brandmark img { width: clamp(110px, 11vw, 150px); }

.eyebrow {
  font-size: clamp(13px, 1.05cqw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;
  line-height: 115%;
  color: var(--ink);
  text-wrap: balance;
}

.event-line {
  text-transform: uppercase;
  font-size: clamp(14px, 1.05cqw, 16px);
  line-height: 145%;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-align: center;
  color: var(--ink-strong);
}
.event-line span { display: block; }
.nowrap { white-space: nowrap; }

/* ===================================================================== */
/*  INVITATION                                                           */
/* ===================================================================== */
.invite-page {
  background: var(--page);
  padding: clamp(0px, 3vw, 40px) clamp(0px, 2vw, 28px);
}
@media (max-width: 780px) {
  .invite-page { padding: 0; }
}

.frame {
  container-type: inline-size;
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 780px) {
  .frame { border: 0; }
}

.section { max-width: 1200px; margin-inline: auto; }

/* --- hero --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5cqw, 72px);
  align-items: stretch;
}
.hero__art {
  flex: 3 1 360px;
  min-width: 0;
  overflow: hidden;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
  /* Padding, not margin: a margin here would push the flex item past the
     viewport once the hero wraps to one column. */
  .hero__art { padding: 18px 18px 0; }
}

.hero__panel {
  flex: 2 1 300px;
  min-width: 0;
  align-self: center;
  padding-inline: clamp(18px, 5cqw, 40px);
}
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: clamp(26px, 3cqw, 40px) 0 clamp(22px, 3cqw, 34px);
}

/* --- perks grid ---
   Default is the finalised desktop look: one column, icons zig-zagging
   between the left and right edge. A wide panel mirrors them into the middle
   gutter; a phone stacks icon over text in two columns. */
.perks {
  container-type: inline-size;
  container-name: perks;
}
.perks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 320px));
  gap: 6px 24px;
  justify-content: center;
  max-width: 720px;
  margin-inline: auto;
}
.perk {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* in row-reverse this packs to the right */
  min-width: 0;
}
.perk__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 96px;
}
.perk__icon img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 50% 60%;
  animation: perk-wiggle 6s infinite both;
}
.perk p {
  max-width: 19ch;
  min-height: 2.7em;
  text-align: left;
  font-size: clamp(15px, 1.2cqw, 17px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Icon-right rows. */
.perk--pastry,
.perk--treat { flex-direction: row-reverse; }
.perk--pastry p,
.perk--treat p { text-align: right; }

/* Per-icon optical sizing, spacing and staggered wiggle. */
.perk--off    { gap: 0; }
.perk--prize  { gap: 28px; }
.perk--pastry,
.perk--treat  { gap: 12px; }
.perk--off    img { max-width: 106px; animation-delay: 0s; }
.perk--pastry img { max-width: 112px; animation-delay: 1.5s; }
.perk--prize  img { max-width: 98px;  animation-delay: 3s; }
.perk--treat  img { max-width: 80px;  animation-delay: 4.5s; }

@keyframes perk-wiggle {
  0%, 16.7%, 100% { transform: scale(1) rotate(0deg); }
  5%  { transform: scale(1.25) rotate(3deg); }
  10% { transform: scale(1.25) rotate(-3deg); }
  14% { transform: scale(1.25) rotate(2deg); }
}

/* Wide panel: two columns with the icons facing the middle. */
@container perks (min-width: 620px) {
  .perk--off,
  .perk--prize { flex-direction: row-reverse; }
  .perk--off p,
  .perk--prize p { text-align: right; }
  .perk--pastry,
  .perk--treat { flex-direction: row; }
  .perk--pastry p,
  .perk--treat p { text-align: left; }
}

/* Phones: two columns, icon above the label. */
@media (max-width: 640px) {
  .perks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    max-width: 100%;
  }
  .perk--off,
  .perk--pastry,
  .perk--prize,
  .perk--treat {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .perk--off p,
  .perk--pastry p,
  .perk--prize p,
  .perk--treat p { text-align: center; font-size: 14px; }
  .perk__icon { height: 82px; align-items: flex-end; }
  .perk--off    img { max-width: 82px; }
  .perk--pastry img { max-width: 132px; }
  .perk--prize  img { max-width: 86px; }
  .perk--treat  img { max-width: 64px; }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.5cqw, 30px);
  margin-top: clamp(28px, 4cqw, 48px);
  text-align: center;
}
.lede {
  font-size: clamp(15px, 1.2cqw, 18px);
  line-height: 150%;
  max-width: 34ch;
  text-wrap: pretty;
}

/* --- "Make a morning of it" --- */
.morning { padding: clamp(56px, 7cqw, 104px) clamp(20px, 5cqw, 64px) 0; }
.morning > .display {
  font-size: clamp(28px, 3.2cqw, 40px);
  line-height: 120%;
  text-align: center;
  margin-bottom: clamp(32px, 4cqw, 56px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 3.5cqw, 48px);
}
.card { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card figure { overflow: hidden; aspect-ratio: 1 / 1; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card__zoom img { animation: slow-zoom 6s ease-in-out infinite; }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card h3 {
  font-size: clamp(14px, 1.05cqw, 16px);
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card p {
  font-size: clamp(14px, 1.05cqw, 16px);
  line-height: 150%;
  text-wrap: pretty;
}
@keyframes slow-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* --- storefront footer --- */
.storefront { padding: clamp(32px, 4cqw, 56px) 0 clamp(64px, 8cqw, 120px); }
.storefront > img { width: 100%; }
.storefront .event-line {
  margin: clamp(22px, 4cqw, 32px) 0 0;
  padding: 0 clamp(20px, 5cqw, 64px);
}
.storefront .btn-row { margin-top: clamp(22px, 3cqw, 34px); }
.storefront .btn { min-width: min(258px, 100%); }
@media (max-width: 640px) {
  .storefront > img { aspect-ratio: 1.29 / 1; object-fit: cover; object-position: 47% 50%; }
}

/* ===================================================================== */
/*  RSVP FORM                                                            */
/* ===================================================================== */
.form-page {
  min-height: 100vh;
  background: var(--page-tint);
  padding: clamp(14px, 2vw, 26px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 72px);
}
.form-shell { max-width: 560px; margin-inline: auto; }
.form-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 18px);
  padding-top: clamp(14px, 2vw, 24px);
}
.form-stack > .display {
  font-size: clamp(27px, 3.05vw, 40px);
  text-align: center;
}

.checklist {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2.6vw, 14px);
  font-size: clamp(11.5px, 3.45vw, 17px);
  line-height: 1.4;
}
.checklist svg {
  flex: none;
  width: clamp(20px, 6vw, 26px);
  height: clamp(20px, 6vw, 26px);
  padding: 6px;
  border-radius: 50%;
  background: var(--surface);
}

.field-row { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 16px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row .field { flex: 1 1 180px; min-width: 0; }
.field label,
.field__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 19px;
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--field-line);
  border-radius: var(--radius-field);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--brown); }

/* --- dog counter --- */
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 5px;
  background: var(--surface);
  border: 2px solid var(--field-line);
  border-radius: var(--radius-field);
}
.stepper input {
  width: 3ch;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
}
.stepper input:focus { outline: none; }
/* The − and + buttons replace the browser's own tiny spinners. */
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.stepper__btn {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tick-bg);
  color: var(--brown);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.stepper__btn:hover:not(:disabled) { background: var(--brown); color: #fff; }
.stepper__btn:disabled { opacity: 0.4; cursor: default; }

.form-submit {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-field);
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: normal;
}
/* Pure-CSS equivalent of the design's disabled state: while any required
   field is empty or invalid the button reads as inactive. The browser still
   blocks the submit and shows its own validation message. */
form:has(:invalid) .form-submit {
  background: var(--field-disabled);
  border-color: #d9ccc0;
  color: #8c8177;
  cursor: not-allowed;
  /* Nothing moves or shines until the form is actually ready to send. */
  animation: none;
}
form:has(:invalid) .form-submit::before { content: none; }

.form-footnote {
  margin-top: 4px;
  font-size: clamp(9px, 3.2vw, 13px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brown);
}
.form-footnote span { display: block; white-space: nowrap; }

.form-error {
  padding: 12px 18px;
  border: 2px solid #d8b7ab;
  border-radius: var(--radius-field);
  background: #fdf4f1;
  font-size: 14px;
  line-height: 1.45;
  color: #8a3b23;
}

/* ===================================================================== */
/*  CONFIRMATION                                                         */
/* ===================================================================== */
.thanks-page {
  min-height: 100vh;
  background: var(--page-warm);
  padding: clamp(0px, 4vw, 48px) clamp(0px, 3vw, 32px);
}
.thanks-card {
  max-width: 800px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.thanks-card > header { padding: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 64px) 0; }
.thanks-body {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 5vw, 64px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  text-align: center;
}
.thanks-body > .display { font-size: clamp(26px, 3.4vw, 44px); }
.thanks-lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 150%;
  max-width: 40ch;
  text-wrap: balance;
}
.thanks-lede--tight { max-width: 30ch; }
.thanks-where {
  text-transform: uppercase;
  margin-top: clamp(14px, 2vw, 26px);
  font-size: clamp(11px, 3.6vw, 21.5px);
  line-height: 155%;
  letter-spacing: 0.03em;
}
.thanks-where span { display: block; }
.thanks-where .strong { font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.thanks-body .btn-row { margin-top: clamp(14px, 2vw, 26px); gap: 12px; }
.thanks-outro {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px);
  display: flex;
  justify-content: center;
}
.thanks-outro .btn { min-width: 220px; min-height: 48px; font-size: clamp(12px, 3.6vw, 15px); letter-spacing: 0.04em; }

/* ===================================================================== */
/*  ADMIN                                                                */
/* ===================================================================== */
.admin {
  min-height: 100vh;
  background: var(--page-warm);
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 44px) 72px;
  font-size: 14px;
}
.admin__inner { max-width: 1100px; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }
.admin__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin__head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); }
.admin__head p { color: var(--ink-muted); font-size: 13px; margin-top: 4px; }
.admin__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin__actions .btn { min-height: 40px; padding: 0 18px; font-size: 13px; letter-spacing: 0.04em; border-radius: 20px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px);
}
.panel > h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
}
.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.stat__value {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
}
.stat__note { margin-top: 6px; font-size: 12px; color: var(--ink-muted); }
.stat--accent { background: var(--brown); border-color: var(--brown); }
.stat--accent .stat__label,
.stat--accent .stat__note { color: rgb(255 255 255 / 0.72); }
.stat--accent .stat__value { color: #fff; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel__row { display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 14px; }
.funnel__label { font-size: 13px; }
.funnel__track { height: 26px; background: var(--page); border-radius: 6px; overflow: hidden; }
.funnel__bar { display: block; height: 100%; background: var(--brown); border-radius: 6px; }
.funnel__value { font-variant-numeric: tabular-nums; font-weight: 500; min-width: 4ch; text-align: right; }
@media (max-width: 560px) {
  .funnel__row { grid-template-columns: 1fr auto; }
  .funnel__track { grid-column: 1 / -1; }
}

/* daily chart — grid rows give the bars a definite height to size against */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.chart__col { display: grid; grid-template-rows: 140px auto; gap: 6px; justify-items: center; min-width: 0; }
.chart__stack { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.chart__views { background: var(--line); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart__rsvps { background: var(--brown); border-radius: 0 0 3px 3px; }
.chart__day { font-size: 10px; color: var(--ink-muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ink-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* 14 date labels don't fit on a phone — show every second one. */
@media (max-width: 560px) {
  .chart__col:nth-child(even) .chart__day { visibility: hidden; }
}
.swatch--views { background: var(--line); }
.swatch--rsvps { background: var(--brown); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--tick-bg);
  color: var(--brown);
}
.empty { padding: 24px 0; text-align: center; color: var(--ink-muted); }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* ---------- Motion preferences --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Print ---------------------------------------------------- */
@media print {
  .btn-row, .admin__actions { display: none; }
  body { background: #fff; }
}
