:root {
  --bg: #ffffff;
  --bg-deep: #ead9b4;
  --surface: #fff8ea;
  --fg: #1c3a18;
  --muted: #4d6a45;
  --primary: #1e6b2a;
  --primary-fg: #fff8ea;
  --accent: #3aa0d8;
  --pinky: #e45a9a;
  --wood: #8b5a2b;
  --honey: #c47b1e;
  --sun: #e39b12;
  --berry: #c43c22;
  --leaf: #4d6a45;
  --sky: #2f90c6;
  --night: #0d2814;
  --ink: #111111;
  --red: #e10600;
  --youtube: #ff0000;
  --facebook: #1877f2;
  --border: #d7c49a;
  --danger: #b42318;
  --hover: #c43c22;
  --font: "Nunito", "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", sans-serif;
  --radius: 14px;
  --page-width: 1200px;
  --gutter: 12px;
  --header-img-width: var(--page-width);
  --header-max-height: 380px;
  --header-fit: cover;
  --header-mask: linear-gradient(to bottom, #000 92%, transparent);
  --header-fade-height: 1.75rem;
  --ph: var(--bg-deep);
  --ph-toon: var(--bg-deep);
  --ph-pic: var(--bg-deep);
}

@keyframes nest-spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  border: 2.5px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: nest-spin 0.7s linear infinite;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.spinner.lg { width: 2rem; height: 2rem; border-width: 3px; }
.loading-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  color: var(--muted);
}
.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 16px;
  font-weight: 800;
  color: var(--muted);
}
.like-btn[data-busy="1"],
.like-btn.is-loading {
  position: relative;
}
.like-btn[data-busy="1"] .heart,
.like-btn.is-loading .heart {
  visibility: hidden;
}
.like-btn[data-busy="1"]::after,
.like-btn.is-loading::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid color-mix(in srgb, var(--pinky) 25%, transparent);
  border-top-color: var(--pinky);
  border-radius: 50%;
  animation: nest-spin 0.7s linear infinite;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 6.5rem;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  min-width: 0;
}
body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--hover); }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(1.7rem, 4.6vw, 2.75rem); }
h2 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
p { line-height: 1.55; text-wrap: pretty; }

.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--bg);
}
.hero img {
  display: block;
  width: 100%;
  max-width: var(--header-img-width, var(--page-width));
  height: auto;
  max-height: var(--header-max-height, 380px);
  object-fit: var(--header-fit, cover);
  object-position: top;
  margin: 0 auto;
  -webkit-mask-image: var(--header-mask);
  mask-image: var(--header-mask);
}
.hero-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--header-fade-height, 1.75rem);
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero.no-fade img {
  -webkit-mask-image: none;
  mask-image: none;
}
.hero.no-fade .hero-fade {
  display: none;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.nav-inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  width: 100%;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}
.nav.is-center .nav-inner { justify-content: center; }
.nav.is-center .nav-links { justify-content: center; width: 100%; }
.nav.is-right .nav-inner { justify-content: flex-end; }
.nav.is-right .nav-links { justify-content: flex-end; width: 100%; }
.nav-pipe {
  color: var(--border);
  user-select: none;
  padding: 0;
  margin: 0;
  white-space: pre;
}
.nav-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-center {
  display: flex;
  width: 100%;
  justify-content: center;
}
.nav-count {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.nav-count.is-left { text-align: left; }
.nav-count.is-center { text-align: center; }
.nav-count.is-right { text-align: right; }
.nav-end .nav-count {
  width: 100%;
  justify-content: flex-end;
}
.nav-count {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.15em;
}
.nav-count-link {
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding: 2px 0;
  border-radius: 0;
  transition: color 0.15s ease;
}
.nav-count-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  pointer-events: none;
}
.nav-links a.nav-count-link {
  color: inherit;
  padding: 2px 0;
  transform: none;
  background: transparent;
}
.nav-links a.nav-count-link:hover,
.nav-links a.nav-count-link:focus-visible {
  transform: none;
  background: transparent;
  color: var(--hover);
}
.nav-count-link:hover,
.nav-count-link:focus-visible {
  color: var(--hover);
  text-decoration: none;
}
.nav-count-link:hover::after,
.nav-count-link:focus-visible::after {
  transform: scaleX(1);
}
.nav-links a[data-public-login] {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.gallery-head .nest-count { margin: 8px 0 0; font-weight: 800; }
.gallery-head .nest-count.is-right { text-align: right; }
.gallery-head .nest-count.is-center { text-align: center; }
.gallery-head .nest-count.is-left { text-align: left; }
img[src*="nestSide" i] { display: none !important; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px 6px 6px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent, #3aa0d8);
  outline-offset: 3px;
}
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}
.nav-burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav.is-open .nav-burger span:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}
.nav.is-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-burger span:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}
@media (max-width: 720px) {
  .nav-pipe { display: none; }
  .nav.has-js { touch-action: pan-y; }
  .nav.has-js .nav-toggle { display: inline-flex; }
  .nav.has-js .nav-inner { flex-wrap: wrap; gap: 0; }
  .nav.has-js .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    padding: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease, visibility 0s linear 0.18s;
  }
  .nav.has-js.is-open .nav-links {
    max-height: min(80vh, 32rem);
    opacity: 1;
    overflow: auto;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 4px 0 8px;
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease, visibility 0s;
  }
  .nav.has-js .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 4px;
    width: 100%;
  }
  .nav.has-js .nav-end,
  .nav.has-js .nav-center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    flex: none;
  }
  .nav.has-js .nav-count {
    white-space: normal;
    padding: 10px 4px;
  }
  .nav.has-js.nav-no-drawer { touch-action: auto; }
  .nav.has-js.nav-no-drawer .nav-toggle { display: none; }
  .nav.has-js.nav-no-drawer .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-height: none;
    opacity: 1;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 0;
  }
  .nav.has-js.nav-no-drawer .nav-links a {
    display: inline-block;
    min-height: 0;
    width: auto;
    padding: 2px 0;
  }
  .nav.has-js.nav-no-drawer .nav-pipe { display: inline; }
  .nav.has-js.nav-no-drawer .nav-end,
  .nav.has-js.nav-no-drawer .nav-center {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    flex: 1 1 auto;
  }
  .nav.has-js.nav-no-drawer .nav-count {
    white-space: nowrap;
    padding: 0;
  }
}
.nav-links.size-sm, .nav-links a.size-sm { font-size: 13px; }
.nav-links.size-md, .nav-links a.size-md { font-size: 16px; }
.nav-links.size-lg, .nav-links a.size-lg { font-size: 20px; }
.nav-links.weight-md, .nav-links a.weight-md { font-weight: 600; }
.nav-links.weight-lg, .nav-links a.weight-lg { font-weight: 700; }
.nav-links.weight-xl, .nav-links a.weight-xl { font-weight: 800; }
.nav-links.is-upper, .nav-links a.is-upper { text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links.color-fg a, .nav-links a.color-fg { color: var(--fg); }
.nav-links.color-primary a, .nav-links a.color-primary { color: var(--primary); }
.nav-links.color-leaf a, .nav-links a.color-leaf { color: var(--leaf); }
.nav-links.color-wood a, .nav-links a.color-wood { color: var(--wood); }
.nav-links.color-honey a, .nav-links a.color-honey { color: var(--honey); }
.nav-links.color-sun a, .nav-links a.color-sun { color: var(--sun); }
.nav-links.color-pinky a, .nav-links a.color-pinky { color: var(--pinky); }
.nav-links.color-berry a, .nav-links a.color-berry { color: var(--berry); }
.nav-links.color-accent a, .nav-links a.color-accent { color: var(--accent); }
.nav-links.color-sky a, .nav-links a.color-sky { color: var(--sky); }
.nav-links.color-night a, .nav-links a.color-night { color: var(--night); }
.nav-links.color-ink a, .nav-links a.color-ink { color: var(--ink); }
.nav-links.color-red a, .nav-links a.color-red { color: var(--red); }
.nav-links.color-fg a:hover, .nav-links a.color-fg:hover,
.nav-links.color-fg a:focus-visible, .nav-links a.color-fg:focus-visible { color: var(--fg); }
.nav-links.color-primary a:hover, .nav-links a.color-primary:hover,
.nav-links.color-primary a:focus-visible, .nav-links a.color-primary:focus-visible { color: var(--primary); }
.nav-links.color-leaf a:hover, .nav-links a.color-leaf:hover,
.nav-links.color-leaf a:focus-visible, .nav-links a.color-leaf:focus-visible { color: var(--leaf); }
.nav-links.color-wood a:hover, .nav-links a.color-wood:hover,
.nav-links.color-wood a:focus-visible, .nav-links a.color-wood:focus-visible { color: var(--wood); }
.nav-links.color-honey a:hover, .nav-links a.color-honey:hover,
.nav-links.color-honey a:focus-visible, .nav-links a.color-honey:focus-visible { color: var(--honey); }
.nav-links.color-sun a:hover, .nav-links a.color-sun:hover,
.nav-links.color-sun a:focus-visible, .nav-links a.color-sun:focus-visible { color: var(--sun); }
.nav-links.color-pinky a:hover, .nav-links a.color-pinky:hover,
.nav-links.color-pinky a:focus-visible, .nav-links a.color-pinky:focus-visible { color: var(--pinky); }
.nav-links.color-berry a:hover, .nav-links a.color-berry:hover,
.nav-links.color-berry a:focus-visible, .nav-links a.color-berry:focus-visible { color: var(--berry); }
.nav-links.color-accent a:hover, .nav-links a.color-accent:hover,
.nav-links.color-accent a:focus-visible, .nav-links a.color-accent:focus-visible { color: var(--accent); }
.nav-links.color-sky a:hover, .nav-links a.color-sky:hover,
.nav-links.color-sky a:focus-visible, .nav-links a.color-sky:focus-visible { color: var(--sky); }
.nav-links.color-night a:hover, .nav-links a.color-night:hover,
.nav-links.color-night a:focus-visible, .nav-links a.color-night:focus-visible { color: var(--night); }
.nav-links.color-ink a:hover, .nav-links a.color-ink:hover,
.nav-links.color-ink a:focus-visible, .nav-links a.color-ink:focus-visible { color: var(--ink); }
.nav-links.color-red a:hover, .nav-links a.color-red:hover,
.nav-links.color-red a:focus-visible, .nav-links a.color-red:focus-visible { color: var(--red); }
.nav-links.hover-color-fg a:hover, .nav-links a.hover-color-fg:hover,
.nav-links.hover-color-fg a:focus-visible, .nav-links a.hover-color-fg:focus-visible { color: var(--fg); }
.nav-links.hover-color-primary a:hover, .nav-links a.hover-color-primary:hover,
.nav-links.hover-color-primary a:focus-visible, .nav-links a.hover-color-primary:focus-visible { color: var(--primary); }
.nav-links.hover-color-leaf a:hover, .nav-links a.hover-color-leaf:hover,
.nav-links.hover-color-leaf a:focus-visible, .nav-links a.hover-color-leaf:focus-visible { color: var(--leaf); }
.nav-links.hover-color-wood a:hover, .nav-links a.hover-color-wood:hover,
.nav-links.hover-color-wood a:focus-visible, .nav-links a.hover-color-wood:focus-visible { color: var(--wood); }
.nav-links.hover-color-honey a:hover, .nav-links a.hover-color-honey:hover,
.nav-links.hover-color-honey a:focus-visible, .nav-links a.hover-color-honey:focus-visible { color: var(--honey); }
.nav-links.hover-color-sun a:hover, .nav-links a.hover-color-sun:hover,
.nav-links.hover-color-sun a:focus-visible, .nav-links a.hover-color-sun:focus-visible { color: var(--sun); }
.nav-links.hover-color-pinky a:hover, .nav-links a.hover-color-pinky:hover,
.nav-links.hover-color-pinky a:focus-visible, .nav-links a.hover-color-pinky:focus-visible { color: var(--pinky); }
.nav-links.hover-color-berry a:hover, .nav-links a.hover-color-berry:hover,
.nav-links.hover-color-berry a:focus-visible, .nav-links a.hover-color-berry:focus-visible { color: var(--berry); }
.nav-links.hover-color-accent a:hover, .nav-links a.hover-color-accent:hover,
.nav-links.hover-color-accent a:focus-visible, .nav-links a.hover-color-accent:focus-visible { color: var(--accent); }
.nav-links.hover-color-sky a:hover, .nav-links a.hover-color-sky:hover,
.nav-links.hover-color-sky a:focus-visible, .nav-links a.hover-color-sky:focus-visible { color: var(--sky); }
.nav-links.hover-color-night a:hover, .nav-links a.hover-color-night:hover,
.nav-links.hover-color-night a:focus-visible, .nav-links a.hover-color-night:focus-visible { color: var(--night); }
.nav-links.hover-color-ink a:hover, .nav-links a.hover-color-ink:hover,
.nav-links.hover-color-ink a:focus-visible, .nav-links a.hover-color-ink:focus-visible { color: var(--ink); }
.nav-links.hover-color-red a:hover, .nav-links a.hover-color-red:hover,
.nav-links.hover-color-red a:focus-visible, .nav-links a.hover-color-red:focus-visible { color: var(--red); }
.nav-links a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  padding: 2px 0;
  border-radius: 6px;
  transform-origin: 50% 80%;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.15s ease;
}
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-links.hover-underline a::after,
.nav-links a.hover-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  pointer-events: none;
}
.nav-links.hover-underline a:hover::after,
.nav-links.hover-underline a:focus-visible::after,
.nav-links.hover-underline a.is-current::after,
.nav-links a.hover-underline:hover::after,
.nav-links a.hover-underline:focus-visible::after,
.nav-links a.hover-underline.is-current::after {
  transform: scaleX(1);
}
.nav-links.hover-lift a:hover,
.nav-links.hover-lift a:focus-visible,
.nav-links a.hover-lift:hover,
.nav-links a.hover-lift:focus-visible {
  transform: translateY(-3px);
}
.nav-links.hover-pill a,
.nav-links a.hover-pill {
  padding: 4px 12px;
  border-radius: 999px;
}
.nav-links.hover-pill a:hover,
.nav-links.hover-pill a:focus-visible,
.nav-links.hover-pill a.is-current,
.nav-links a.hover-pill:hover,
.nav-links a.hover-pill:focus-visible,
.nav-links a.hover-pill.is-current {
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.nav-links.hover-grow a:hover,
.nav-links.hover-grow a:focus-visible,
.nav-links a.hover-grow:hover,
.nav-links a.hover-grow:focus-visible {
  transform: scale(1.06);
}
.nav-links.hover-glow a:hover,
.nav-links.hover-glow a:focus-visible,
.nav-links a.hover-glow:hover,
.nav-links a.hover-glow:focus-visible {
  transform: translateY(-1px);
  text-shadow: 0 0 10px color-mix(in srgb, currentColor 75%, white);
}
.nav-links.hover-fade a,
.nav-links a.hover-fade {
  opacity: 1;
}
.nav-links.hover-fade a:hover,
.nav-links.hover-fade a:focus-visible,
.nav-links a.hover-fade:hover,
.nav-links a.hover-fade:focus-visible {
  opacity: 0.62;
}
.nav-links.current-underline a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(1);
  pointer-events: none;
}
.nav-links.current-pill a.is-current {
  background: color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
}
.nav-links.current-bar a.is-current {
  background: color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  padding: 4px 10px;
}
.nav-links a.is-current.current-color-fg,
.nav-links a.is-current.current-color-fg:hover { color: var(--fg); }
.nav-links a.is-current.current-color-primary,
.nav-links a.is-current.current-color-primary:hover { color: var(--primary); }
.nav-links a.is-current.current-color-leaf,
.nav-links a.is-current.current-color-leaf:hover { color: var(--leaf); }
.nav-links a.is-current.current-color-wood,
.nav-links a.is-current.current-color-wood:hover { color: var(--wood); }
.nav-links a.is-current.current-color-honey,
.nav-links a.is-current.current-color-honey:hover { color: var(--honey); }
.nav-links a.is-current.current-color-sun,
.nav-links a.is-current.current-color-sun:hover { color: var(--sun); }
.nav-links a.is-current.current-color-pinky,
.nav-links a.is-current.current-color-pinky:hover { color: var(--pinky); }
.nav-links a.is-current.current-color-berry,
.nav-links a.is-current.current-color-berry:hover { color: var(--berry); }
.nav-links a.is-current.current-color-accent,
.nav-links a.is-current.current-color-accent:hover { color: var(--accent); }
.nav-links a.is-current.current-color-sky,
.nav-links a.is-current.current-color-sky:hover { color: var(--sky); }
.nav-links a.is-current.current-color-night,
.nav-links a.is-current.current-color-night:hover { color: var(--night); }
.nav-links a.is-current.current-color-ink,
.nav-links a.is-current.current-color-ink:hover { color: var(--ink); }
.nav-links a.is-current.current-color-red,
.nav-links a.is-current.current-color-red:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .nav-links a,
  .nav-links.hover-underline a::after,
  .nav-burger span,
  .nav.has-js .nav-links,
  .nav-count-link,
  .nav-count-link::after { transition: none; }
  .nav-links a:hover,
  .nav-links a:focus-visible { transform: none; }
}

.wrap {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
}
.lightbox-card.is-center { text-align: center; }
.lightbox-card.is-right { text-align: right; }
.lightbox-card.is-center .social-bar { justify-content: center; }
.lightbox-card.is-right .social-bar { justify-content: flex-end; }
.item-page > img,
.item-page > video,
.item-page > .item-still {
  display: block;
  width: min(100%, 900px);
  margin: 0 auto 16px;
  border-radius: 16px;
}
.item-still {
  position: relative;
  overflow: hidden;
  background: var(--ph-pic, var(--bg-deep, #ead9b4));
}
.item-still img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.comments { max-width: 40rem; }
.rich a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; pointer-events: auto; position: relative; z-index: 1; transition: color 0.15s ease; }
.rich a:hover, .rich a:focus-visible { color: var(--hover); }
.rich a.hashtag { color: var(--honey); }
.rich a.hashtag:hover { color: var(--hover); }
.rich { overflow-wrap: anywhere; word-break: break-word; }
.rich p, .rich ul, .rich ol { margin: 0 0 0.45em; }
.rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich-clamp,
.card .rich,
.card-copy .rich {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pinned-spot .card-copy .rich,
.pinned-hero-copy .rich {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.lightbox-card .rich,
.item-page .rich,
.lead.rich {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.gallery-head.is-center { text-align: center; }
.gallery-head.is-center .lead { margin-inline: auto; }
.gallery-head.is-right { text-align: right; }
.gallery-head.is-right .lead { margin-left: auto; }
.is-left { text-align: left; }
.is-center { text-align: center; }
.is-right { text-align: right; }
.is-center.lead,
.lead { color: var(--muted); max-width: 40rem; }
.lead.is-center { margin-inline: auto; }
.lead.is-right { margin-left: auto; margin-right: 0; }
.align-left { justify-content: flex-start; }
.align-center { justify-content: center; }
.align-right { justify-content: flex-end; }
.card-shell.is-center .body,
.card-shell.is-right .body { text-align: inherit; }
.foot.is-left { text-align: left; }
.foot.is-right { text-align: right; }
.comment-form.is-center,
.comments.is-center .comment-form { margin-inline: auto; }
.comments.is-right .comment-form { margin-left: auto; }
h1.gallery-title { margin: 0 0 0.4em; }
h1.gallery-title.size-sm { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h1.gallery-title.size-md { font-size: clamp(1.55rem, 3.8vw, 2.35rem); }
h1.gallery-title.size-lg { font-size: clamp(1.7rem, 4.6vw, 2.75rem); }
h1.gallery-title.color-fg { color: var(--fg); }
h1.gallery-title.color-primary { color: var(--primary); }
h1.gallery-title.color-leaf { color: var(--leaf); }
h1.gallery-title.color-wood { color: var(--wood); }
h1.gallery-title.color-honey { color: var(--honey); }
h1.gallery-title.color-sun { color: var(--sun); }
h1.gallery-title.color-pinky { color: var(--pinky); }
h1.gallery-title.color-berry { color: var(--berry); }
h1.gallery-title.color-accent { color: var(--accent); }
h1.gallery-title.color-sky { color: var(--sky); }
h1.gallery-title.color-night { color: var(--night); }
h1.gallery-title.color-ink { color: var(--ink); }
h1.gallery-title.color-red { color: var(--red); }
.kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wood); margin: 0;
}

.toolbar {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  align-items: stretch;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.search input, .search select { flex: 1 1 140px; min-width: 0; }
.search select { max-width: none; }
.search .btn { flex: 0 0 auto; }
.search.align-center input,
.search.align-right input { flex: 1 1 220px; max-width: 28rem; }

.btn, button.btn, input[type="submit"].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  font: 700 14px var(--font); cursor: pointer; color: var(--primary-fg); background: var(--primary);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn.secondary, a.btn.secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn.danger { background: var(--danger); }
.btn[aria-pressed="true"], .btn.is-on { background: var(--primary); color: var(--primary-fg); border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(:disabled), a.btn:hover { background: var(--fg); color: var(--primary-fg); }
.btn.secondary:hover:not(:disabled), a.btn.secondary:hover {
  background: #fff; color: var(--fg); border-color: var(--wood);
}
.btn.is-on:hover, a.btn.is-on:hover { background: var(--fg); color: var(--primary-fg); }
.btn.danger:hover:not(:disabled) { background: var(--hover); }
.btn:hover:not(:disabled), a.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgb(28 58 24 / 0.45); }

.follow-cta {
  margin: 1.15rem 0 1.4rem;
  padding: 1.15rem 1.2rem 1.2rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
}
.follow-cta-heading {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}
.follow-cta p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.follow-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.follow-cta-actions .btn {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.follow-cta-actions .btn.follow-btn {
  border-color: transparent;
  color: #fff;
}
.follow-cta-actions .btn.follow-btn.color-youtube { background: var(--youtube) !important; color: #fff !important; }
.follow-cta-actions .btn.follow-btn.color-facebook { background: var(--facebook) !important; color: #fff !important; }
.follow-cta-actions .btn.follow-btn.color-red { background: var(--red) !important; color: #fff !important; }
.follow-cta-actions .btn.follow-btn.color-primary { background: var(--primary) !important; }
.follow-cta-actions .btn.follow-btn.color-leaf { background: var(--leaf) !important; }
.follow-cta-actions .btn.follow-btn.color-wood { background: var(--wood) !important; }
.follow-cta-actions .btn.follow-btn.color-berry { background: var(--berry) !important; }
.follow-cta-actions .btn.follow-btn.color-pinky { background: var(--pinky) !important; }
.follow-cta-actions .btn.follow-btn.color-accent { background: var(--accent) !important; }
.follow-cta-actions .btn.follow-btn.color-sky { background: var(--sky) !important; }
.follow-cta-actions .btn.follow-btn.color-night { background: var(--night) !important; }
.follow-cta-actions .btn.follow-btn.color-ink { background: var(--ink) !important; }
.follow-cta-actions .btn.follow-btn.color-fg { background: var(--fg) !important; }
.follow-cta-actions .btn.follow-btn.color-honey { background: var(--honey) !important; color: var(--fg) !important; }
.follow-cta-actions .btn.follow-btn.color-sun { background: var(--sun) !important; color: var(--fg) !important; }
.follow-cta-actions .btn.follow-btn:hover,
.follow-cta-actions .btn.follow-btn:focus-visible {
  filter: brightness(0.92);
  color: #fff;
}
.follow-cta-actions .btn.follow-btn.color-youtube:hover,
.follow-cta-actions .btn.follow-btn.color-youtube:focus-visible { background: var(--youtube) !important; }
.follow-cta-actions .btn.follow-btn.color-facebook:hover,
.follow-cta-actions .btn.follow-btn.color-facebook:focus-visible { background: var(--facebook) !important; }
.follow-cta-actions .btn.follow-btn.color-honey:hover,
.follow-cta-actions .btn.follow-btn.color-sun:hover { color: var(--fg); }
.follow-cta-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 800;
}
.follow-cta.is-compact {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem 1rem;
}
.follow-cta.is-compact .follow-cta-heading { font-size: 1.15rem; }
.follow-cta.is-compact .btn { min-height: 44px; font-size: 15px; }

.page-blocks {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.copy-italic .site-prose,
.copy-italic .site-prose p,
.copy-italic .home-story,
.copy-italic .home-story p,
.copy-italic .bio,
.copy-italic .bio p,
.copy-italic .extra-body,
.copy-italic .about-story,
.copy-italic .origin,
.copy-italic .origin p,
.site-prose.copy-italic,
.site-prose.copy-italic p,
.home-story.copy-italic,
.home-story.copy-italic p,
.about-story.copy-italic,
.extra-body.copy-italic,
.origin.copy-italic {
  font-style: italic;
}
.say.is-normal { font-style: normal; }
.page-block-heading {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.page-block-heading.copy-center { text-align: center; }
.page-block-heading.copy-right { text-align: right; }
.page-block-button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-block-button.copy-center { justify-content: center; }
.page-block-button.copy-right { justify-content: flex-end; }
.follow-admin-preview {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.follow-admin-preview .follow-cta { margin: 0; }
.follow-insert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-jump button {
  min-height: 44px;
}
.page-items-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.featured-toon {
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem 0.35rem;
  background: color-mix(in srgb, var(--surface) 92%, white);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
}
.featured-toon.copy-center { text-align: center; }
.featured-toon.copy-right { text-align: right; }
.featured-toon-title {
  margin: 0 0 0.65rem;
}
.featured-toon-title a { color: inherit; }
.featured-toon-player,
.featured-toon-pic,
.toon-player-wrap.featured-toon-player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #111;
}
.featured-toon-pic { background: var(--surface); }
.toon-player-wrap {
  position: relative;
  max-width: 100%;
}
.toon-player-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: inherit;
  object-fit: contain;
  border-radius: inherit;
  background: #111;
}
.toon-sound-btn {
  position: absolute;
  left: 50%;
  top: 1.1rem;
  transform: translateX(-50%);
  z-index: 2;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #111 82%, transparent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}
.toon-sound-btn[hidden] { display: none; }
.featured-toon.is-size-sm .featured-toon-player,
.featured-toon.is-size-sm .featured-toon-pic { max-width: 280px; }
.featured-toon.is-size-md .featured-toon-player,
.featured-toon.is-size-md .featured-toon-pic { max-width: 420px; }
.featured-toon.is-size-lg .featured-toon-player,
.featured-toon.is-size-lg .featured-toon-pic { max-width: 560px; }
.featured-toon.is-size-xl .featured-toon-player,
.featured-toon.is-size-xl .featured-toon-pic { max-width: 720px; }
.featured-toon.copy-center .featured-toon-player,
.featured-toon.copy-center .featured-toon-pic { margin-inline: auto; }
.featured-toon.copy-right .featured-toon-player,
.featured-toon.copy-right .featured-toon-pic { margin-left: auto; }
.featured-toon .follow-cta {
  margin: 1rem -0.15rem 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.back-to-top {
  margin: 2.25rem 0 0;
  text-align: center;
}
.back-to-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 44px;
  padding: 0.25rem 0.4rem;
  font-weight: 800;
  color: var(--primary, #2f6f4e);
  text-decoration: none;
}
.back-to-top-link:hover { text-decoration: underline; }
.back-to-top-link::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(2px);
}
.lightbox-card .follow-cta {
  margin: 0.85rem 0 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
@media (max-width: 720px) {
  .follow-cta-actions { flex-direction: column; }
  .follow-cta-actions .btn { flex: 1 1 auto; width: 100%; }
}

input[type="text"], input[type="password"], input[type="number"], input[type="url"], input[type="file"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--fg); font: 16px var(--font);
}
input[type="text"]:hover, input[type="password"]:hover, input[type="number"]:hover, input[type="url"]:hover, select:hover, textarea:hover {
  border-color: var(--wood);
}
.password-field {
  position: relative;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 4.6rem;
}
.password-toggle {
  position: absolute;
  top: 0;
  right: 0.1rem;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: auto 0;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 800 0.72rem var(--font);
  cursor: pointer;
}
.password-toggle:hover { color: var(--fg); }
.password-toggle:focus-visible {
  outline: 2px solid var(--primary, #1e6b2a);
  outline-offset: 1px;
}
.view-site-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.view-site-fields h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

textarea.embed-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  min-height: 76px;
  resize: vertical;
  background: #fff;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }

.card-shell {
  display: flex; flex-direction: column;
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 24px -16px rgb(28 58 24 / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-shell:hover {
  transform: translateY(-4px);
  border-color: var(--wood);
  box-shadow: 0 18px 36px -16px rgb(28 58 24 / 0.5);
}
.card-shell .card {
  box-shadow: none; border: 0; border-radius: 0; background: transparent;
}
.card-shell .card:hover {
  transform: none; box-shadow: none; border-color: transparent;
}
.card-open-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}
.card-open-title h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  transition: color 0.15s ease;
}
.card-open-title:hover h2 { color: var(--primary); }
.card-shell:hover .thumb img {
  transform: scale(1.18);
  filter: brightness(1.1);
}
.card-shell:hover .thumb::after { opacity: 1; }

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.lb-social { padding: 10px 0 0; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font: 800 13px var(--font);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-btn:hover {
  border-color: var(--wood);
  background: var(--surface);
  transform: translateY(-1px);
}
a.social-btn,
a.social-btn:hover,
a.social-btn:focus-visible {
  color: var(--fg);
  text-decoration: none;
}
.social-btn .heart { color: var(--pinky); font-size: 1.05rem; line-height: 1; }
.social-btn .share-ico { display: inline-flex; }
.social-btn.is-liked {
  color: var(--pinky);
  border-color: var(--pinky);
  background: color-mix(in srgb, var(--pinky) 12%, #fff);
}
.share-menu {
  position: absolute;
  z-index: 80;
  min-width: 188px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 32px -18px rgb(28 58 24 / 0.45);
}
.share-menu[hidden] { display: none; }
.share-menu button,
.share-menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font: 700 14px var(--font);
  cursor: pointer;
  text-decoration: none;
}
.share-menu button:hover,
.share-menu a:hover {
  background: var(--bg-deep);
  color: var(--fg);
}

.comments {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.comments h2, .comments h3 { margin: 0 0 10px; }
.comment-list, .comment-list.admin-comments {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.comment-meta { margin: 0 0 4px; font-size: 13px; }
.comment-meta span { color: var(--muted); font-weight: 700; }
.comment p { margin: 0; }
.comment-empty { margin: 0 0 12px; }
.comment-form { display: grid; gap: 8px; max-width: 36rem; }
.comment-form textarea { min-height: 88px; resize: vertical; }
.comment-status { margin: 0; }
.admin-comment-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-comment {
  display: grid;
  grid-template-columns: auto 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.admin-comment.has-error { border-color: var(--danger); }
.admin-comment .comment-edit { margin: 0; max-width: none; }
.admin-comment .row-actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-comment .comment-delete { margin: 0; }
.admin-comment-thumb {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
  width: 80px;
}
.admin-comment-thumb img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-deep);
  display: block;
}
.admin-comment-thumb:hover img,
.admin-comment-thumb:focus-visible img {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.admin-comment .char-count {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.admin-comment-pending {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.admin-comment-pending li {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.admin-comment-pending li:first-child { border-top: 0; }
.empty-card {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}
.admin-tools form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.admin-tools input[name="q"] { min-width: 16rem; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; text-align: left; color: inherit;
  box-shadow: 0 10px 24px -16px rgb(28 58 24 / 0.35); cursor: pointer; width: 100%; padding: 0;
  font: inherit; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--wood);
  box-shadow: 0 18px 36px -16px rgb(28 58 24 / 0.5);
}
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); overflow: hidden; }
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease, filter 0.3s ease, opacity 0.22s ease;
}
.card .thumb.is-portrait img,
.card-shell.is-portrait .thumb img {
  object-fit: contain;
  background: #1c140c;
}
.thumb-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  background: #111;
}
.thumb.is-previewing img,
.toon-pick-thumb.is-previewing img {
  opacity: 0;
  transform: none;
  filter: none;
}
.thumb.is-previewing::after,
.thumb.is-previewing::before,
.thumb.is-previewing .play {
  opacity: 0 !important;
}
.card:hover .thumb img {
  transform: scale(1.18);
  filter: brightness(1.1);
}
.card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(28 58 24 / 0.65), rgb(28 58 24 / 0.08) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.card:hover .thumb::after { opacity: 1; }
.card[data-type="image"]:hover .thumb::after {
  background: linear-gradient(to top, rgb(228 90 154 / 0.5), rgb(28 58 24 / 0.12) 50%, transparent);
}
.card[data-type="video"]:hover .thumb::after {
  background: linear-gradient(to top, rgb(8 32 51 / 0.6), rgb(58 160 216 / 0.12) 50%, transparent);
}
.card[data-type="video"] .thumb::before,
.card[data-type="image"] .thumb::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 18px -8px rgb(8 32 51 / 0.7);
  opacity: 0;
  transform: scale(0.85);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.card[data-type="image"] .thumb::before { background: var(--pinky); }
.card[data-type="video"]:hover .thumb::before,
.card[data-type="image"]:hover .thumb::before {
  opacity: 1;
  transform: scale(1);
}
.card[data-type="video"] .play {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 0; height: 0;
  margin: -6px 0 0 -4px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff8ea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.card[data-type="video"]:hover .play { opacity: 1; }
.card[data-type="video"] .play-mini,
.preview-frame .play-mini,
.admin-list .thumb-edit .play-mini,
.activity-list .activity-thumb .play-mini,
.admin-comment-thumb .play-mini {
  position: absolute;
  right: 8px; bottom: 8px;
  z-index: 4;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px -4px rgb(8 32 51 / 0.6);
  pointer-events: none;
}
.card[data-type="video"] .play-mini,
.admin-list .thumb-edit .play-mini,
.activity-list .activity-thumb .play-mini {
  width: 28px; height: 28px;
}
.card[data-type="video"] .play-mini::after,
.preview-frame .play-mini::after,
.admin-list .thumb-edit .play-mini::after,
.activity-list .activity-thumb .play-mini::after,
.admin-comment-thumb .play-mini::after {
  content: "";
  position: absolute;
  left: 8px; top: 6px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff8ea;
}
.card[data-type="video"] .play-mini::after,
.admin-list .thumb-edit .play-mini::after,
.activity-list .activity-thumb .play-mini::after {
  left: 10px; top: 8px;
  border-width: 6px 0 6px 10px;
}
.card[data-type="image"] .zoom {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  width: 18px; height: 18px;
  margin: -14px 0 0 -14px;
  border: 3px solid #fff8ea;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.card[data-type="image"] .zoom::after {
  content: "";
  position: absolute;
  left: 14px; top: 14px;
  width: 9px; height: 3px;
  background: #fff8ea;
  transform: rotate(45deg);
  border-radius: 2px;
}
.card[data-type="image"]:hover .zoom { opacity: 1; }
.card .body { padding: 14px; }
.when {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--wood);
}
.lightbox-card .when { margin-top: 4px; }
.card h2 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); transition: color 0.15s ease; }
.card:hover h2 { color: var(--primary); }
.card p {
  margin: 0; color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.badge {
  position: absolute; top: 10px; left: 10px; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: #082033; z-index: 4;
}
.badge.image { background: var(--pinky); color: #fff8ea; }
.badge.pin {
  left: auto;
  right: 10px;
  background: var(--honey);
  color: #3a2410;
}
.badge.flock {
  left: auto;
  right: 10px;
  top: 10px;
  background: var(--sun);
  color: #3a2410;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb:has(.badge.pin) .badge.flock,
.card-shell.is-pinned .badge.flock {
  top: 38px;
}
.badge.blu {
  top: 38px;
  left: 10px;
  background: var(--accent);
  color: #082033;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heart-home-strips {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0 0;
  scroll-margin-top: 6.5rem;
}
.heart-strip-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.loved-nest-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 700px) {
  .loved-nest-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}
@media (min-width: 1024px) {
  .loved-nest-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.loved-nest-card,
.week-favorite-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px -18px rgb(28 58 24 / 0.55);
}
.loved-nest-card {
  flex: 0 0 min(72%, 16.5rem);
  scroll-snap-align: start;
}
@media (min-width: 700px) {
  .loved-nest-card { flex: none; }
}
.week-favorite-card { max-width: none; }
@media (min-width: 700px) {
  .week-favorite-card { max-width: 28rem; }
}
.loved-nest-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
}
.loved-nest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loved-nest-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1c140c;
  pointer-events: none;
}
.loved-nest-thumb .play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nest, #1e6b2a) 85%, transparent);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.loved-nest-thumb .play-mini::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff8e8;
  transform: translate(-35%, -50%);
}
.loved-nest-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem 0.85rem;
}
.loved-nest-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loved-nest-hearts {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pinky);
}
.watch-next {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: color-mix(in srgb, #0d2814 78%, transparent);
}
.watch-next-panel {
  width: min(100%, 22rem);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1rem;
}
.watch-next-title {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
}
.watch-next-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.watch-next-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  padding: 0.35rem;
  text-align: left;
  cursor: pointer;
}
.watch-next-item img {
  width: 4.5rem;
  height: 3rem;
  border-radius: 6px;
  object-fit: cover;
}
.watch-next-item strong { display: block; font-size: 0.92rem; }
.watch-next-item em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pinky);
}
.watch-next-skip {
  margin-top: 0.7rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
}
.card-shell {
  position: relative;
  container-type: inline-size;
}
.heart-hit {
  display: grid;
  position: absolute;
  z-index: 12;
  left: 0.5rem;
  bottom: 0.5rem;
  top: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--pinky);
  box-shadow: 0 8px 18px -12px rgb(28 58 24 / 0.7);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transform: translateZ(0);
  contain: layout style;
}
.heart-hit .heart { font-size: 1.2rem; line-height: 1; color: var(--pinky); }
.heart-hit.is-liked {
  background: var(--pinky);
  color: #fff8ea;
}
.heart-hit.is-liked .heart { color: #fff8ea; }
.heart-hit:active { transform: translateZ(0) scale(0.94); }
.heart-hit[data-busy="1"]::after,
.heart-hit.is-loading::after {
  left: 50%;
  top: 50%;
  margin: -7px 0 0 -7px;
}
.heart-pop {
  display: grid;
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 50%;
  width: 6rem;
  height: 6rem;
  margin: 0;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  contain: strict;
  content-visibility: hidden;
  transform: translate3d(-50%, -50%, 0);
}
.heart-pop > span {
  display: block;
  font-size: 3.4rem;
  line-height: 1;
  text-align: center;
  color: var(--pinky);
  opacity: 0;
  transform: translateZ(0) scale(0.4);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.heart-pop.is-on {
  visibility: visible;
  content-visibility: visible;
}
.heart-pop.is-on > span {
  animation: heart-burst 0.7s cubic-bezier(0.34, 1.36, 0.64, 1) both;
  will-change: transform, opacity;
}
.thumb-stage {
  position: relative;
  min-width: 0;
  isolation: isolate;
}
.thumb-stage .heart-hit {
  top: auto;
  bottom: 0.5rem;
  left: 0.5rem;
}
@keyframes heart-burst {
  0% { opacity: 0; transform: translateZ(0) scale(0.4); }
  35% { opacity: 1; transform: translateZ(0) scale(1.15); }
  100% { opacity: 0; transform: translateZ(0) scale(1.4); }
}

@media (max-width: 720px) {
  .social-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 10px;
  }
  .card-shell .social-bar {
    gap: 5px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-shell .social-btn {
    min-width: 2.5rem;
    padding: 0 8px;
  }
  .card-shell .social-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .heart-strip-title { font-size: 1.35rem; }
  .watch-next {
    padding: 0.6rem;
    align-items: end;
  }
  .watch-next-panel {
    width: 100%;
    max-height: min(70dvh, 28rem);
    overflow: auto;
    padding: 0.85rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  .watch-next-item { min-height: 44px; }
  .watch-next-skip { min-height: 44px; }
}
@media (min-width: 721px) {
  .heart-hit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .heart-pop.is-on > span {
    animation: none;
    opacity: 0;
    will-change: auto;
  }
  .heart-hit:active {
    transform: translateZ(0);
  }
}
.card-shell.is-pinned {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--honey) 70%, transparent);
}
.card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 4px;
  flex: 1;
}
.card-copy .when { margin-top: 4px; }
.pinned-spot {
  margin: 0 0 1.75rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--honey) 42%, var(--border));
  border-radius: 22px;
  background: color-mix(in srgb, var(--honey) 9%, var(--surface));
}
.pinned-spot-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey);
}
.pinned-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.grid.pinned-grid.is-single {
  grid-template-columns: 1fr;
}
.pinned-grid.is-single .card-shell.is-featured .thumb {
  min-height: 12rem;
}
.pinned-grid.is-single .card-shell.is-featured {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--honey) 80%, transparent), 0 18px 36px -16px rgb(28 58 24 / 0.45);
}
.pinned-hero {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--honey) 55%, var(--border));
  background: var(--surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--honey) 70%, transparent), 0 18px 36px -16px rgb(28 58 24 / 0.45);
}
.pinned-hero > .thumb-stage {
  min-width: 0;
  min-height: 0;
}
.pinned-hero-media {
  min-height: 12rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg-deep, #ead9b4);
  cursor: pointer;
  text-align: left;
}
.pinned-hero-media.card:hover {
  transform: none;
  box-shadow: none;
  border: 0;
}
.pinned-hero-media .thumb {
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  height: 100%;
}
.pinned-hero-copy {
  padding: 18px 20px 16px;
  gap: 8px;
}
.pinned-hero-copy h2 { margin: 0; }
.pinned-hero-title {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: none;
}
.pinned-hero-title:hover { color: var(--primary); }
.nest-rest-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display, Fredoka, sans-serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.desc-preview {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg, #fff);
}
.desc-preview[hidden] { display: none; }
.desc-preview a { pointer-events: none; }

.pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 8px; align-items: center; }
.pages .btn { min-width: 44px; }
.pages-status { width: 100%; text-align: center; margin: 0 0 4px; font-weight: 800; }
.pages.align-left { justify-content: flex-start; }
.pages.align-right { justify-content: flex-end; }
.pages.align-left .pages-status { text-align: left; }
.pages.align-right .pages-status { text-align: right; }
.comment-pages { justify-content: center; margin: 12px 0 16px; }
.infinite-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  min-height: 1.5em;
  margin: 16px 0 8px;
}
.infinite-status .btn { margin-left: 8px; }
.action-error { margin: 8px 0 0; }

.lightbox {
  position: fixed; inset: 0; background: rgb(28 58 24 / 0.72); z-index: 60;
  display: none; align-items: stretch; justify-content: center; padding: 0;
}
.lightbox.is-open { display: flex; }
.lightbox-card {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: 0;
  padding: 16px;
  max-height: 100%;
  overflow: auto;
}
.lightbox-card video, .lightbox-card img {
  width: auto; max-width: 100%; max-height: 78vh; background: #1c3a18; border-radius: 8px; object-fit: contain;
}
.lightbox-card img {
  background: var(--ph-pic, #ead9b4);
}
.lightbox-close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: var(--fg); background: var(--bg-deep); border-radius: 8px; }
.lightbox-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px;
  padding-right: 40px; margin-bottom: 8px;
}
.lightbox-head h2 { margin: 0; }
.lightbox-count { margin: 0; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; touch-action: none; overflow: hidden; }
[data-lb-media] { position: relative; }
.lightbox-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(255 248 234 / 0.92); color: var(--fg); font-size: 28px; line-height: 1;
  box-shadow: 0 8px 18px -10px rgb(28 58 24 / 0.55);
}
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
.lightbox-nav:hover { background: #fff; }
.lightbox-nav[hidden] { display: none; }
.lightbox-card img.lb-image,
.lightbox-card img.lb-image-preview {
  cursor: zoom-in;
  transform-origin: center center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.16s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-card img.lb-image,
  .lightbox-card img.lb-image-preview { transition: none; }
}
.lightbox-card img.lb-image.is-zoomed,
.lightbox-card .lb-blurup.is-zoomed img.lb-image {
  max-height: none;
  cursor: grab;
}
.lightbox-zoom-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.lightbox-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
}
.lightbox-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-deep);
  cursor: pointer;
  overflow: hidden;
}
.lightbox-thumb img { display: block; width: 72px; height: 48px; object-fit: cover; max-height: none; }
.lightbox-thumb.is-on { border-color: var(--primary); }
.lightbox-thumb:hover { border-color: var(--wood); }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px; display: grid; gap: 14px;
}
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
}
label { font-weight: 700; display: block; margin-bottom: 6px; }
.field-error { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--danger); }
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] { border-color: var(--danger); }
.alert { padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.alert.bad { background: rgb(180 35 24 / 0.12); color: var(--danger); }
.alert.ok { background: rgb(30 107 42 / 0.12); color: var(--primary); }
.note { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--muted); font-size: 14px; }
.hint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px 6px;
  margin: 16px 0 20px;
  max-width: 40rem;
}
.hint ol { margin: 0 0 12px; padding-left: 1.3rem; }
.hint li { margin: 6px 0; line-height: 1.45; }
.hint code, .lead code {
  font-size: 0.92em;
  background: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 6px;
}

.upload-pick { display: flex; flex-direction: row; gap: 12px; margin: 16px 0 32px; }
.upload-pick a {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px; background: var(--surface); color: inherit;
  box-shadow: 0 10px 24px -16px rgb(28 58 24 / 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.upload-pick a:hover {
  color: inherit;
  border-color: var(--wood);
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -16px rgb(28 58 24 / 0.45);
}
.upload-pick .pick-thumb {
  display: block;
  width: 160px;
  height: 90px;
  object-fit: cover;
  background: var(--bg-deep);
  margin: 16px 20px 8px;
  border-radius: 10px;
}
.upload-pick svg { display: block; width: 32px; height: 32px; margin: 0 20px 8px; }
.upload-pick .icon-picture { color: var(--pinky); }
.upload-pick .icon-video { color: var(--accent); }
.upload-pick h2 { margin: 0 20px; font-size: 22px; }
.upload-pick p { margin: 4px 20px 0; color: var(--muted); }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover, a.btn.ghost:hover { background: var(--bg-deep); color: var(--fg); border-color: transparent; }
.admin-page-head { margin: 0 0 20px; }
.admin-page-head h1 { margin: 0 0 4px; }
.admin-page-head .muted { margin: 0; }
.stat-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}
.stat-label {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.stat-number {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-card .muted { margin: 0; }
.activity-cols { display: grid; gap: 20px; margin: 0 0 28px; }
.activity-cols h2,
.activity-recent h2 { margin: 0; font-size: 1.4rem; }
.activity-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.activity-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.activity-sort label { margin: 0; font-size: 13px; }
.activity-sort select { min-width: 160px; }
.activity-cols .pages,
.activity-recent .pages { margin: 12px 0 0; }
.activity-list,
.activity-comments {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.activity-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.activity-list li:first-child { border-top: 0; }
.activity-list img {
  width: 72px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-deep);
}
.activity-list .activity-thumb {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 8px;
}
.activity-list .activity-thumb:hover img,
.activity-list .activity-thumb:focus-visible img {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.activity-list strong { display: block; }
.activity-list .muted { margin: 2px 0 0; font-size: 13px; }
.activity-comments li {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.activity-comments li:first-child { border-top: 0; }
.activity-comments p { margin: 0; }
.activity-comments p + p { margin-top: 4px; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.admin-toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.admin-toolbar select { min-width: 0; flex: 1 1 160px; }
.form.admin-narrow { max-width: 44rem; }
.form.admin-settings { max-width: 52rem; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px 20px;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.form-card h2 { margin: 0; }
.form-card > .muted { margin: 0; }
.settings-preview {
  margin: 4px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.settings-preview .preview-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-preview .kicker { margin: 0 0 4px; }
.settings-preview h2 { margin: 0; }
.settings-preview h1 { margin: 0; }
.settings-preview .lead { margin: 8px 0 0; }
.char-count {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  color: var(--fg);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--wood); }
.choice:has(input:checked),
.choice.is-on {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.choice svg { display: block; flex-shrink: 0; }
.choice-color .choice {
  padding: 7px;
  border-radius: 999px;
}
.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swatch, var(--fg));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}
.swatch-fg { --swatch: var(--fg); }
.swatch-primary { --swatch: var(--primary); }
.swatch-leaf { --swatch: var(--leaf); }
.swatch-wood { --swatch: var(--wood); }
.swatch-honey { --swatch: var(--honey); }
.swatch-sun { --swatch: var(--sun); }
.swatch-pinky { --swatch: var(--pinky); }
.swatch-berry { --swatch: var(--berry); }
.swatch-accent { --swatch: var(--accent); }
.swatch-sky { --swatch: var(--sky); }
.swatch-night { --swatch: var(--night); }
.swatch-ink { --swatch: var(--ink); }
.swatch-red { --swatch: var(--red); }
.size-demo { display: block; line-height: 1; color: var(--fg); }
.size-demo.size-sm { font-size: 13px; font-weight: 700; }
.size-demo.size-md { font-size: 18px; font-weight: 800; }
.size-demo.size-lg { font-size: 24px; font-weight: 800; }
.weight-demo { display: block; }
.weight-demo.weight-md { font-weight: 600; }
.weight-demo.weight-lg { font-weight: 700; }
.weight-demo.weight-xl { font-weight: 800; }
.choice-cards {
  display: grid;
  gap: 8px;
}
@media (min-width: 640px) {
  .choice-cards { grid-template-columns: 1fr 1fr; }
  .choice-cards.dates { grid-template-columns: 1fr 1fr; }
}
.choice-card {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:hover { border-color: var(--wood); }
.choice-card:has(input:checked),
.choice-card.is-on {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}
.choice-card strong { font-size: 15px; }
.choice-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.html-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}
.html-hints span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
}
.sort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sort-chips a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.sort-chips a:hover { border-color: var(--wood); }
.sort-chips a.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-fg);
}
.header-edit-preview {
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.header-edit-preview img {
  display: block;
  width: 100%;
  max-width: var(--header-img-width, 100%);
  margin: 0 auto;
  height: auto;
  max-height: var(--header-max-height, 180px);
  object-fit: var(--header-fit, cover);
  object-position: top;
  -webkit-mask-image: var(--header-mask, none);
  mask-image: var(--header-mask, none);
}
.header-edit-preview .hero-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--header-fade-height, 1.75rem);
  background: linear-gradient(to top, var(--bg), transparent);
}
.header-edit-preview.no-fade img {
  -webkit-mask-image: none;
  mask-image: none;
}
.header-edit-preview.no-fade .hero-fade {
  display: none;
}
.form.is-narrow { max-width: 28rem; margin-inline: auto; }
.form-section-title { margin: 4px 0 0; font-size: 1.15rem; }
.admin-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.admin-list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 12px;
  padding: 12px;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background-color 0.15s ease;
}
.admin-list li:hover { background: #fff; }
.admin-list li:first-child { border-top: 0; }
.admin-list .pick { display: flex; align-items: center; }
.admin-list .pick input { width: auto; min-height: 0; }
.admin-list .move { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.admin-list .move .btn { min-width: 40px; padding: 4px 8px; }
.drag-handle {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.drag-handle span,
.drag-handle span::after {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--muted);
  box-shadow: 0 4px 0 var(--muted), 0 8px 0 var(--muted);
}
.drag-handle span::after {
  content: "";
  margin-top: -10px;
  margin-left: 6px;
  box-shadow: 0 4px 0 var(--muted), 0 8px 0 var(--muted);
}
.drag-handle:active,
.is-dragging .drag-handle { cursor: grabbing; }
[data-sort-id].is-dragging {
  opacity: 0.55;
  background: var(--bg);
  pointer-events: none;
}
body.is-sorting {
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  cursor: grabbing;
}
body.is-sorting .hover-peek,
body.is-sorting .hover-peek-frame { display: none !important; }
@media (pointer: coarse) {
  .drag-handle { width: 48px; min-height: 48px; }
  .admin-list .move .btn { min-width: 44px; min-height: 44px; }
  .lightbox-nav { width: 48px; height: 48px; }
}
.nav-edit .drag-handle { width: 44px; }
.nav-edit {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.nav-edit .move {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-index {
  min-width: 1.5rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.nav-edit-fields { min-width: 0; }
.field-kicker {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-preview {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--bg);
}
.menu-preview .preview-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-preview .nav-links { width: 100%; }
.card-form {
  margin-bottom: 24px;
}
.empty-links {
  padding: 20px 16px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 20px;
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.check input { width: auto; }
.drop {
  border: 2px dashed var(--border); border-radius: 16px; padding: 18px 12px;
  text-align: center; background: var(--bg-deep);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop:hover { border-color: var(--wood); background: #fff; }
.drop p { margin: 0 0 8px; }
.drop input[type="file"] { max-width: 100%; }
details summary { cursor: pointer; font-weight: 700; }

.admin-list .thumb-edit {
  display: flex; flex-direction: column; gap: 10px; color: inherit; min-width: 0;
  background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit;
}
.admin-list .thumb-edit:hover { color: inherit; }
.admin-list .thumb-edit .admin-thumb {
  position: relative; display: block; width: 100%; max-width: 100%;
}
.admin-list .thumb-edit img {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9;
  object-fit: cover; border-radius: 8px; background: var(--bg-deep); flex-shrink: 0;
  transition: transform 0.25s ease, outline-color 0.15s ease;
}
.admin-list .thumb-edit:hover img { outline: 2px solid var(--primary); outline-offset: 2px; transform: scale(1.03); }
.admin-list .thumb-edit strong { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s ease, color 0.15s ease; }
.admin-list .thumb-edit:hover strong { color: var(--primary); text-decoration-color: var(--primary); }
.admin-actions { display: flex; gap: 8px; grid-column: 1 / -1; width: 100%; }
.admin-actions .btn { flex: 1; }
.admin-actions form { display: contents; }
.preview-frame {
  position: relative;
  width: 160px;
  margin: 0 auto 12px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}
.preview-desk {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 12px;
}
.preview-frame-wide {
  width: 100%;
  margin: 0;
}
.preview-frame-wide img,
.preview-frame-wide video {
  object-fit: contain;
}
.preview-desk.is-video .preview-frame-wide video.is-on ~ img {
  display: none;
}
.thumb-preview,
.preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  background: var(--bg-deep);
  border: 0;
  border-radius: 0;
}
.preview-frame video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-deep);
}
.preview-frame video.is-on {
  display: block;
}
.thumb-grab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.thumb-grab-still {
  position: relative;
  width: 7rem;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
}
.thumb-grab-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-grab-tools {
  flex: 1;
  min-width: 12rem;
}
.thumb-grab-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
}
.thumb-grab-scrub input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--primary);
}
.thumb-grab-time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.thumb-grab .btn {
  margin-top: 6px;
}
.thumb-grab .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.card video::-webkit-media-controls-start-playback-button,
.card video::-webkit-media-controls-overlay-play-button,
.thumb-stage video::-webkit-media-controls-start-playback-button,
.thumb-stage video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}
.preview-hint { margin: 8px 0 0; }
.upload-status {
  margin: 8px 0 0;
  font-weight: 800;
  color: var(--primary);
}
.save-status {
  display: block;
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
}
.save-status[hidden] { display: none !important; }

.foot { text-align: center; padding-bottom: 24px; color: var(--muted); width: 100%; }
.foot img { display: block; width: 100%; max-width: var(--page-width); margin: 24px auto 0; }
.foot a { font-weight: 800; color: var(--primary); text-decoration: none; }
.foot a:hover { color: var(--hover); text-decoration: underline; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--border); border-radius: 18px; background: var(--surface); }

@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  .wrap { padding: 16px 12px 28px; }
  .admin-comment {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .admin-comment-thumb { grid-column: 2; }
  .admin-comment .comment-delete { grid-column: 1 / -1; }
  fieldset.layout-fields select {
    width: 100%;
  }
  .layout-preview img,
  .layout-preview-ph {
    float: none;
    display: block;
    margin: 0 auto 8px;
  }
  .admin-jump {
    top: 0;
    gap: 6px;
  }
  .toolbar,
  .search {
    flex-direction: column;
    align-items: stretch;
  }
  .search select,
  .search input {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid.pinned-grid.is-single { grid-template-columns: 1fr; }
  .card { border-radius: 22px; }
  .lightbox {
    align-items: center;
    padding: 16px;
  }
  .lightbox-card {
    width: min(960px, 100%);
    border-radius: 22px;
    padding: 20px 48px 20px 20px;
    max-height: calc(100vh - 32px);
  }
  .lightbox-card video, .lightbox-card img { max-height: 70vh; }
  .admin-list li { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .admin-list .thumb-edit { flex-direction: row; align-items: center; }
  .admin-list .thumb-edit img { width: 128px; height: 80px; aspect-ratio: auto; }
  .admin-list .thumb-edit .admin-thumb { width: 128px; flex-shrink: 0; }
  .admin-actions { grid-column: auto; margin-left: 0; width: auto; }
  .admin-actions .btn { flex: 0 0 auto; }
  .admin-toolbar form { width: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .nav-inner { padding: 12px var(--gutter); }
  .nav-links { gap: 0; }
  .nav-links.size-sm, .nav-links a.size-sm { font-size: 15px; }
  .nav-links.size-md, .nav-links a.size-md { font-size: 18px; }
  .nav-links.size-lg, .nav-links a.size-lg { font-size: 22px; }
  .nav-pipe { padding: 0; white-space: pre; }
  .wrap { padding: 32px var(--gutter); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex: 1; flex-wrap: nowrap; min-width: 240px; }
  .search select { max-width: 200px; flex: 0 1 200px; }
  .form { padding: 20px; border-radius: 22px; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .form-row.admin-style-grid { grid-template-columns: 1fr 1fr; }
  .pinned-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .pinned-hero > .thumb-stage,
  .pinned-hero-media,
  .pinned-hero-media .thumb {
    min-height: 16rem;
    height: 100%;
  }
  .nav-edit {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }
  .nav-edit .move { flex-direction: column; }
  .upload-pick { gap: 16px; }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .nav-links {
    row-gap: 0.2rem;
  }
  .nav-end {
    flex: 1 0 auto;
    min-width: min(100%, 15rem);
    justify-content: flex-end;
  }
  .nav-count {
    white-space: nowrap;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid.pinned-grid.is-single {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 28px 20px 36px;
  }
  .pinned-hero-copy {
    min-height: 14rem;
  }
  .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .search {
    flex: 1 1 16rem;
    min-width: 0;
  }
}

@media (min-width: 980px) {
  .form-row.admin-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .activity-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid.pinned-grid.is-single { grid-template-columns: 1fr; }
  .grid-fill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .upload-pick a, .card .thumb img, .admin-list .thumb-edit img {
    transition: none;
  }
  .card:hover, .btn:hover, a.btn:hover, .upload-pick a:hover {
    transform: none;
    box-shadow: none;
  }
  .card:hover .thumb img, .admin-list .thumb-edit:hover img { transform: none; filter: none; }
  .card:hover .thumb::after { opacity: 0; }
  .card[data-type="video"]:hover .thumb::before,
  .card[data-type="image"]:hover .thumb::before { transform: none; }
}

@media print {
  .nav, .toolbar, .pages, .lightbox, .admin-head-actions { display: none !important; }
  .hero img, .foot img { max-height: none; }
}

.admin-tabs,
.tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  width: 100%;
  max-width: 48rem;
  margin: 0 0 16px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--wood) 28%, var(--border));
  border-radius: 22px;
  background: var(--bg-deep, #ead9b4);
  box-shadow: inset 0 1px 0 rgb(255 248 234 / 0.45), 0 1px 0 rgb(28 58 24 / 0.06);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar,
.admin-tabs::-webkit-scrollbar { display: none; }
.tabs.is-sticky {
  position: sticky;
  top: var(--tabs-sticky-top, 3.25rem);
  z-index: 30;
  box-shadow:
    inset 0 1px 0 rgb(255 248 234 / 0.45),
    0 10px 18px -12px #1c3a1859;
}
.tabs-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 18px;
  background: var(--primary);
  box-shadow: inset 0 1px 0 rgb(255 248 234 / 0.28);
  pointer-events: none;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), width 250ms cubic-bezier(0.22, 1, 0.36, 1), height 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs.is-measure .tabs-pill { transition: none; }
.tabs-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, transform 150ms ease-out;
}
.tabs-tab:hover { color: var(--night, #0d2814); }
.tabs-tab:active { transform: scale(0.96); }
.tabs-tab.is-on,
.tabs-tab[aria-selected="true"],
.tabs-tab[aria-current="page"] {
  color: var(--primary-fg, #fff8ea);
}
.tabs-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tabs-pill,
  .tabs-tab { transition: none; }
}
.admin-tab-groups {
  position: sticky;
  top: var(--tabs-sticky-top, 3.25rem);
  z-index: 30;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0 0.55rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.admin-tab-group + .admin-tab-group {
  margin-top: 0.55rem;
}
.admin-tab-label {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-tab-groups .tabs {
  max-width: none;
  margin: 0;
}
.admin-fold {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 1rem;
}
.admin-fold > summary,
.admin-fold-head {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}
.admin-fold > summary::-webkit-details-marker { display: none; }
.admin-fold > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
.admin-fold[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.admin-fold-copy {
  display: block;
  min-width: 0;
}
.admin-fold-title { display: block; }
.admin-fold-hint {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.admin-fold-body {
  padding: 0 1rem 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .admin-fold-chevron { transition: none; }
}
.admin-add-page {
  display: grid;
  gap: 10px;
  max-width: 52rem;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, #fff);
}
.admin-add-page .check { margin: 0; }
.admin-image {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.admin-image img {
  display: block;
  max-height: 160px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.admin-image-label {
  margin: 0;
  font-weight: 800;
}
.toon-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  max-height: 24rem;
  overflow: auto;
  margin: 8px 0 4px;
}
.toon-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.toon-pick.is-on,
.toon-pick:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.toon-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toon-pick-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  overflow: hidden;
}
.toon-pick-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.toon-pick-title {
  display: block;
  padding: 6px 8px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.admin-field-group {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}
.admin-field-group h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
fieldset.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  background: var(--surface);
}
fieldset.admin-card legend {
  font-family: var(--display);
  font-weight: 700;
  padding: 0 6px;
}
fieldset.layout-fields {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
  background: #fff;
}
fieldset.layout-fields legend {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 6px;
}
fieldset.layout-fields label {
  display: block;
  margin: 8px 0;
}
fieldset.layout-fields select {
  display: block;
  width: min(100%, 16rem);
  margin-top: 4px;
}
.admin-jump {
  position: sticky;
  top: 56px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 0;
  background: var(--bg);
}
.admin-jump a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
[data-settings-panel] {
  scroll-margin-top: 72px;
}
.admin-move {
  display: inline-flex;
  gap: 4px;
}
.admin-move .btn {
  min-width: 44px;
}
#about-top,
#about-pictures,
#about-artist,
#about-crew,
#about-pickles {
  scroll-margin-top: 112px;
}
.layout-preview {
  overflow: hidden;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.layout-preview.is-card {
  border-style: solid;
  background: var(--surface);
}
.layout-preview img,
.layout-preview-ph {
  max-width: 72px !important;
  max-height: 56px !important;
  width: auto;
}
.layout-preview-ph {
  display: grid;
  place-items: center;
  width: 72px;
  height: 52px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.layout-preview.side-left img,
.layout-preview.side-left .layout-preview-ph {
  float: left;
  margin: 0 10px 6px 0;
}
.layout-preview.side-right img,
.layout-preview.side-right .layout-preview-ph {
  float: right;
  margin: 0 0 6px 10px;
}
.layout-preview.side-center img,
.layout-preview.side-center .layout-preview-ph,
.layout-preview.no-wrap img,
.layout-preview.no-wrap .layout-preview-ph {
  float: none;
  display: block;
  margin: 0 0 8px;
}
.layout-preview.side-center img,
.layout-preview.side-center .layout-preview-ph {
  margin-left: auto;
  margin-right: auto;
}
.layout-preview.no-wrap.side-right img,
.layout-preview.no-wrap.side-right .layout-preview-ph {
  margin-left: auto;
  margin-right: 0;
}
.layout-preview.copy-center { text-align: center; }
.layout-preview.copy-right { text-align: right; }
.layout-preview p { margin: 0; }
.contact-preview-form {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 6.5rem;
}
.layout-preview.contact-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.layout-preview.contact-preview .layout-preview-ph {
  flex: 1 1 55%;
  min-height: 72px;
}
.layout-preview.contact-preview p {
  flex: 1 0 100%;
}
.admin-sticky-save {
  position: sticky;
  bottom: 8px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 0;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

body.admin-app {
  --admin-paper: var(--bg);
  --admin-sheet: #ffffff;
  --admin-line: color-mix(in srgb, var(--night) 12%, transparent);
  --admin-rail-fg: #e8f1e4;
  --admin-rail-muted: #a9c4a4;
  --admin-shadow: 0 0 0 1px color-mix(in srgb, var(--night) 8%, transparent),
    0 12px 28px -20px color-mix(in srgb, var(--night) 35%, transparent);
  --tabs-sticky-top: 0.5rem;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 15.25rem minmax(0, 1fr);
  background: var(--bg);
  color: var(--fg);
}
body.admin-app .admin-tab-groups {
  background: color-mix(in srgb, var(--admin-paper) 92%, transparent);
}
body.admin-app .admin-sticky-save {
  background: var(--admin-paper);
}
body.admin-app h1 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}
.admin-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-self: start;
  height: 100dvh;
  padding: 1.15rem 0.8rem 1rem;
  overflow: auto;
  color: var(--admin-rail-fg);
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, #1a4a24 55%, transparent), transparent 58%),
    var(--night);
}
.admin-ico {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.admin-brand {
  padding: 0.15rem 0.55rem 0.2rem;
}
.admin-brand-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
}
.admin-brand-title {
  margin: 0.1rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--admin-rail-fg);
}
.admin-view-site {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--admin-rail-fg) 22%, transparent);
  border-radius: 8px;
  color: var(--admin-rail-fg);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-view-site-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.25rem;
  margin: 0 0.15rem;
}
.admin-view-site-wrap .admin-view-site {
  flex: 1 1 auto;
}
.admin-view-site-edit {
  position: relative;
  flex: 0 0 auto;
}
.admin-view-site-edit-btn,
.admin-view-site-edit > summary {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--admin-rail-fg) 22%, transparent);
  border-radius: 8px;
  background: transparent;
  color: var(--admin-rail-fg);
  cursor: pointer;
  list-style: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-view-site-edit > summary::-webkit-details-marker,
.admin-view-site-edit > summary::marker {
  display: none;
  content: none;
}
.admin-view-site-edit-ico,
.admin-view-site-edit svg,
.admin-view-site-edit .admin-ico {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.admin-view-site-edit-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.admin-view-site-edit-btn:hover,
.admin-view-site-edit > summary:hover,
.admin-view-site:hover {
  background: color-mix(in srgb, var(--admin-rail-fg) 10%, transparent);
  border-color: color-mix(in srgb, var(--admin-rail-fg) 40%, transparent);
  color: var(--admin-rail-fg);
}
.admin-view-site-form {
  position: fixed;
  z-index: 80;
  top: 4.75rem;
  left: 16.1rem;
  width: min(18rem, calc(100vw - 1.5rem));
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-sheet);
  color: var(--fg);
  box-shadow: var(--admin-shadow);
}
@media (max-width: 56rem) {
  .admin-view-site-form {
    left: 0.7rem;
    right: 0.7rem;
    width: auto;
    top: 4.4rem;
  }
}
.admin-view-site-form label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fg);
}
.admin-view-site-form input {
  min-height: 44px;
  background: #fff;
  color: var(--fg);
}
.admin-view-site-form .muted {
  color: var(--muted);
  font-size: 0.75rem;
}
.admin-view-site-form .btn {
  min-height: 44px;
}
.admin-view-site:focus-visible,
.admin-view-site-edit > summary:focus-visible,
.admin-rail-link:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}
.admin-rail-nav,
.admin-rail-tools {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.admin-rail-nav {
  flex: 1 1 auto;
  margin-top: 0.35rem;
}
.admin-rail-tools {
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--admin-rail-fg) 12%, transparent);
}
.admin-rail-tools form {
  margin: 0;
  display: flex;
}
.admin-rail a,
.admin-rail button.admin-rail-link {
  color: inherit;
  text-decoration: none;
}
.admin-rail a:hover,
.admin-rail button.admin-rail-link:hover {
  color: inherit;
}
.admin-rail-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--admin-rail-fg);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.admin-rail-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-rail-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--admin-rail-muted);
}
.admin-rail-link:hover {
  background: color-mix(in srgb, var(--admin-rail-fg) 9%, transparent);
}
.admin-rail-link.is-on {
  background: var(--admin-paper);
  color: var(--night);
}
.admin-rail-link.is-on .admin-rail-count {
  color: var(--honey);
}
.admin-stage {
  min-width: 0;
  padding: 1.05rem 1.15rem 2rem;
  background: var(--admin-paper);
  color: var(--fg);
}
body.admin-app-gate {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  background: var(--night);
  color: var(--admin-rail-fg);
  padding: 1.5rem 1rem;
}
.admin-gate {
  width: min(100%, 26.5rem);
}
.admin-door {
  padding: 1.6rem 1.4rem 1.3rem;
  border-radius: 28px;
  background: var(--admin-paper, #f6efe0);
  color: var(--fg);
  box-shadow: var(--admin-shadow);
}
.admin-door .admin-brand-kicker {
  margin: 0 0 0.35rem;
}
.admin-door-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--night);
}
.admin-door-lead {
  margin: 0.4rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}
.admin-door-form {
  display: grid;
  gap: 0.85rem;
}
.admin-door-form .btn {
  width: 100%;
}
.admin-door-back {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
@media (max-width: 56rem) {
  body.admin-app:not(.admin-app-gate) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .admin-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand view tools"
      "nav nav nav";
    align-items: center;
    gap: 0.35rem 0.45rem;
    height: auto;
    padding: 0.55rem 0.7rem 0.5rem;
  }
  .admin-brand { grid-area: brand; padding: 0; }
  .admin-brand-kicker { display: none; }
  .admin-brand-title { font-size: 1.15rem; }
  .admin-view-site-wrap {
    grid-area: view;
    margin: 0;
    flex-wrap: nowrap;
  }
  .admin-view-site {
    min-width: 2.75rem;
    padding: 0 0.65rem;
  }
  .admin-rail-nav {
    grid-area: nav;
    flex-direction: row;
    flex: 1 1 100%;
    margin: 0;
    padding: 0.15rem 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-rail-tools {
    grid-area: tools;
    flex-direction: row;
    padding: 0;
    border: 0;
    gap: 0.2rem;
  }
  .admin-rail-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 2.75rem;
    padding: 0 0.65rem;
  }
  .admin-rail-count { margin-left: 0.15rem; }
  .admin-rail-tools .admin-rail-text,
  .admin-view-site-label,
  .admin-view-site-edit-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .admin-rail-tools .admin-rail-link,
  .admin-view-site,
  .admin-view-site-edit > summary { justify-content: center; }
  .admin-stage { padding: 1rem 0.85rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-rail-link,
  .admin-view-site { transition: none; }
}

body.admin-app :is(a, button):hover,
body.admin-app :is(a, button):active {
  transform: none;
}
body.admin-app .tabs {
  max-width: none;
  margin: 0;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--night) 12%, transparent);
  background: color-mix(in srgb, var(--night) 6%, var(--admin-paper));
  box-shadow: none;
}
body.admin-app .tabs-pill {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--night) 10%, transparent);
}
body.admin-app .tabs-tab {
  font-size: 0.8rem;
  color: var(--muted);
}
body.admin-app .tabs-tab[aria-selected="true"],
body.admin-app .tabs-tab.is-on,
body.admin-app .tabs-tab[aria-current="page"] {
  color: var(--night);
}
body.admin-app .admin-fold {
  border-radius: 12px;
}
body.admin-app .admin-fold > summary,
body.admin-app .admin-fold-head {
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 1.05rem;
}
body.admin-app h2 {
  font-size: 1.15rem;
  line-height: 1.25;
}
body.admin-app .admin-page-head { margin: 0 0 0.85rem; }
body.admin-app .admin-toolbar {
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
}
body.admin-app .sort-chips a.is-on {
  background: var(--night);
  border-color: var(--night);
  color: var(--primary-fg);
}
body.admin-app .admin-list { border-radius: 12px; }
body.admin-app .admin-list li { padding: 8px 10px; }
body.admin-app .admin-list .thumb-edit img,
body.admin-app .admin-list .thumb-edit .admin-thumb {
  width: 96px;
  height: 56px;
}
body.admin-app .admin-list .thumb-edit:hover img { transform: none; }
body.admin-app .upload-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
body.admin-app .upload-pick a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
}
body.admin-app .upload-pick a:hover {
  transform: none;
  box-shadow: none;
}
body.admin-app .upload-pick .pick-thumb { display: none; }
body.admin-app .upload-pick svg { margin: 0; width: 20px; height: 20px; flex-shrink: 0; }
body.admin-app .upload-pick h2 { margin: 0; font-size: 0.95rem; }
body.admin-app .upload-pick p { margin: 2px 0 0; font-size: 0.75rem; }
.admin-workbar,
.admin-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0 0 0.85rem;
}
.admin-work-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}
.admin-work-btn:hover {
  color: var(--fg);
  border-color: var(--night);
  background: color-mix(in srgb, var(--night) 5%, var(--surface));
}
.admin-work-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.admin-work-counts b {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--night);
}
.admin-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.admin-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.6rem 0.8rem;
}
.admin-stat-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-stat-num {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--night);
}
.admin-stat-hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 721px) {
  body.admin-app .admin-list .thumb-edit img,
  body.admin-app .admin-list .thumb-edit .admin-thumb {
    width: 96px;
    height: 56px;
  }
}
@media (max-width: 40rem) {
  .admin-work-counts {
    margin-left: 0;
    width: 100%;
  }
  body.admin-app .upload-pick { grid-template-columns: 1fr; }
}

body.admin-app .admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--admin-line, color-mix(in srgb, var(--night) 12%, transparent));
}
body.admin-app .admin-page-head h1 {
  display: inline;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.admin-app .admin-page-head .muted {
  display: inline;
  margin-left: 0.55rem;
  font-size: 0.8rem;
}
body.admin-app .admin-page-head-actions {
  margin-left: auto;
}
body.admin-app .admin-guest-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--wood, #8a5a2b) 35%, transparent);
  background: color-mix(in srgb, var(--honey, #f4d27a) 45%, var(--admin-paper, #fff8ea));
  color: var(--night, #1c3a18);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}
body.admin-app .admin-guest-banner.is-open {
  border-color: color-mix(in srgb, var(--leaf, #3f7a32) 40%, transparent);
  background: color-mix(in srgb, var(--leaf, #3f7a32) 16%, var(--admin-paper, #fff8ea));
}
body.admin-app.is-guest .admin-sticky-save,
body.admin-app.is-guest [data-write],
body.admin-app.is-guest input[type="file"],
body.admin-app.is-guest button[type="submit"]:not(.admin-rail-link),
body.admin-app.is-guest .admin-work-btn,
body.admin-app.is-guest .admin-media-actions,
body.admin-app.is-guest .admin-media-move,
body.admin-app.is-guest a.btn.danger,
body.admin-app.is-locked .admin-sticky-save,
body.admin-app.is-locked [data-write],
body.admin-app.is-locked input[type="file"],
body.admin-app.is-locked button[type="submit"]:not(.admin-rail-link),
body.admin-app.is-locked .admin-work-btn,
body.admin-app.is-locked .admin-media-actions,
body.admin-app.is-locked .admin-media-move,
body.admin-app.is-locked a.btn.danger {
  pointer-events: none;
  opacity: 0.45;
}
body.admin-app .admin-brand-user {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: color-mix(in srgb, #fff8ea 82%, transparent);
  line-height: 1.3;
}
body.admin-app .admin-brand-user span {
  font-weight: 700;
  opacity: 0.8;
}
body.admin-app .admin-role-legend {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  body.admin-app .admin-role-legend {
    grid-template-columns: 1fr 1fr;
  }
}
body.admin-app .admin-role-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--admin-line, #d7c49a);
  background: var(--admin-paper, #fff8ea);
}
body.admin-app .admin-role-card-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}
body.admin-app .admin-role-card-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
body.admin-app .admin-role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--admin-line, #d7c49a);
  font-size: 0.72rem;
  font-weight: 800;
}
body.admin-app .admin-role-badge.is-owner,
body.admin-app .admin-role-card.is-owner {
  border-color: color-mix(in srgb, var(--leaf, #3f7a32) 40%, transparent);
  background: color-mix(in srgb, var(--leaf, #3f7a32) 12%, white);
}
body.admin-app .admin-people-table {
  display: grid;
  border: 1px solid var(--admin-line, #d7c49a);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
body.admin-app .admin-people-row {
  display: grid;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--admin-line, #d7c49a);
}
body.admin-app .admin-people-row:first-child {
  border-top: 0;
}
body.admin-app .admin-people-row.is-head {
  display: none;
}
body.admin-app .admin-people-row.is-off {
  opacity: 0.62;
}
body.admin-app .admin-people-select select,
body.admin-app .admin-people-pass input {
  width: 100%;
  min-height: 2.5rem;
}
body.admin-app .admin-people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
body.admin-app .admin-people-empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
body.admin-app .admin-people-add {
  display: grid;
  gap: 0.75rem;
}
body.admin-app .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 900px) {
  body.admin-app .admin-people-row,
  body.admin-app .admin-people-row.is-head {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) 8rem 5.5rem auto;
  }
  body.admin-app .admin-people-add {
    grid-template-columns: 1fr 1fr;
  }
}
body.admin-app .admin-stage:has(.admin-tab-groups) {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  column-gap: 1.35rem;
  row-gap: 0.85rem;
  align-items: start;
}
body.admin-app .admin-stage:has(.admin-tab-groups) > * {
  grid-column: 2;
  min-width: 0;
}
body.admin-app .admin-stage:has(.admin-tab-groups) > .admin-page-head,
body.admin-app .admin-stage:has(.admin-tab-groups) > .alert {
  grid-column: 1 / -1;
}
body.admin-app .admin-stage:has(.admin-tab-groups) > .admin-tab-groups {
  grid-column: 1;
  grid-row: 2 / span 40;
  position: sticky;
  top: 0.75rem;
  margin: 0;
  padding: 0;
  background: transparent;
}
.admin-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-subnav-link {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  width: 100%;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}
.admin-subnav-link:hover { background: color-mix(in srgb, var(--night) 6%, transparent); color: var(--night); }
.admin-subnav-link.is-on,
.admin-subnav-link[aria-selected="true"] {
  background: var(--night);
  color: var(--primary-fg);
}
body.admin-app .admin-fold {
  max-width: none;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  border-radius: 0;
  box-shadow: none;
}
body.admin-app .admin-fold:last-child { border-bottom: 0; }
body.admin-app .admin-fold > summary,
body.admin-app .admin-fold-head {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
}
body.admin-app .form.admin-settings,
body.admin-app .admin-sheet {
  max-width: none;
  background: var(--admin-sheet);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  overflow: visible;
  padding: 0;
  margin: 0 0 1rem;
}
body.admin-app .form.admin-settings > .form-card,
body.admin-app .form.admin-settings > .layout-fields,
body.admin-app .form.admin-settings > fieldset.layout-fields {
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  border: 0;
  border-bottom: 1px solid var(--admin-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.admin-app .form.admin-settings .form-card:last-of-type,
body.admin-app .form.admin-settings .layout-fields:last-of-type {
  border-bottom: 0;
}
body.admin-app .form.admin-settings h2,
body.admin-app .form-card h2 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admin-sheet-pad { padding: 0.85rem 1rem 1rem; }
.admin-sheet-section {
  padding: 0.9rem 1rem 1.05rem;
  border-bottom: 1px solid var(--admin-line);
}
.admin-sheet-title {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
}
body.admin-app .admin-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-sheet);
}
body.admin-app .admin-stat {
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
}
.admin-media-list {
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-sheet);
  overflow: hidden;
}
.admin-media-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.6rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--admin-line);
}
.admin-media-row:first-child { border-top: 0; }
.admin-media-move { display: flex; flex-direction: row; align-items: center; gap: 0.15rem; }
body.admin-app .admin-list .move.admin-media-move { flex-direction: row; }
body.admin-app .admin-list li.admin-media-row {
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 0.4rem 0.6rem;
}
.admin-icon-btn {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-sheet);
  color: var(--fg);
  cursor: pointer;
}
.admin-media-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-media-thumb {
  position: relative;
  width: 4.5rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-deep);
  cursor: zoom-in;
}
.admin-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-copy strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-media-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.admin-chip {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  padding: 0 0.7rem;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: var(--admin-sheet);
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}
.admin-chip.is-on,
.admin-chip[data-on="true"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--primary-fg);
}
body.admin-app .admin-stat,
body.admin-app .admin-work-btn {
  background: var(--admin-sheet);
  border-color: var(--admin-line);
}
@media (min-width: 64rem) {
  .admin-media-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
}
@media (max-width: 56rem) {
  body.admin-app .admin-stage:has(.admin-tab-groups) { grid-template-columns: 1fr; }
  body.admin-app .admin-stage:has(.admin-tab-groups) > .admin-tab-groups {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    position: sticky;
    top: 0;
    background: var(--admin-paper);
  }
  body.admin-app .admin-tab-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
  }
  body.admin-app .admin-tab-group + .admin-tab-group { margin-top: 0; }
  .admin-subnav { flex-direction: row; }
  .admin-subnav-link { width: auto; white-space: nowrap; }
  .admin-media-actions { grid-column: 1 / -1; }
}

.hover-peek {
  display: none;
  position: fixed;
  z-index: 45;
  width: 22.5rem;
  max-width: calc(100vw - 1.5rem);
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgb(28 58 24 / 0.28));
}
.hover-peek.is-on {
  display: block;
  animation: hover-peek-in 140ms ease-out;
}
.hover-peek-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(14rem, 42vh);
  border-radius: 10px;
  background: var(--night);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--night) 16%, transparent);
}
.hover-peek-frame img,
.hover-peek-frame video,
.hover-peek-frame .thumb-preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--night);
}
.hover-peek-title {
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 var(--surface);
}
@keyframes hover-peek-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hover-peek.is-on { animation: none; }
}
@media (max-width: 40rem) {
  .hover-peek { width: min(18rem, calc(100vw - 1.5rem)); }
}

.section-order {
  margin: 0.15rem 0 0.85rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px dashed color-mix(in srgb, var(--color-leaf, #2f6a43) 35%, var(--admin-line, #d7c9ae));
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-leaf, #2f6a43) 6%, var(--admin-paper, #f3eee4));
}
.section-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.65rem;
}
.section-order-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-order-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-order-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--admin-line, #d7c9ae);
  border-radius: 9px;
  background: #fff;
}
.section-order-row.is-dragging { opacity: 0.55; }
.section-order-index {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-leaf, #2f6a43) 18%, #f3eee4);
  color: var(--color-leaf, #2f6a43);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.55rem;
  text-align: center;
}
.section-order-copy { display: grid; min-width: 0; }
.section-order-copy strong { font-size: 0.9rem; }
.section-order-copy span {
  color: var(--color-muted, #6b6258);
  font-size: 0.72rem;
  font-weight: 600;
}
.section-order-mock {
  display: block;
  height: 0.32rem;
  margin-top: 0.28rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--color-leaf, #2f6a43) 28%, #d7c9ae);
  width: 72%;
}
.section-order-row.is-featured .section-order-mock,
.section-order-row.is-form .section-order-mock,
.section-order-row.is-story .section-order-mock { width: 92%; }
.section-order-row.is-heading .section-order-mock,
.section-order-row.is-buttons .section-order-mock { width: 48%; }
.section-order-row.is-block .section-order-mock { width: 64%; }
.section-order-move { display: flex; gap: 0.25rem; }
.admin-sheet > .section-order { margin-left: 0.9rem; margin-right: 0.9rem; }
@media (max-width: 40rem) {
  .section-order-row { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .section-order-move { grid-column: 1 / -1; justify-content: flex-end; }
}


.guest-login-fields {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--admin-line, color-mix(in srgb, var(--night) 12%, transparent));
  padding-bottom: 4rem;
}

.dnd-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  pointer-events: none;
  border: 1px solid var(--color-leaf, #2f6a43);
  border-radius: 10px;
  background: var(--admin-sheet, #fff);
  box-shadow: 0 16px 28px rgb(28 58 24 / 0.28);
  color: var(--color-night, #1c1914);
  font-size: 0.9rem;
  font-weight: 800;
}
.dnd-ghost.is-on { display: flex; }
.dnd-ghost[data-count]:not([data-count="1"]) {
  box-shadow:
    0 16px 28px rgb(28 58 24 / 0.28),
    7px 7px 0 -1px var(--admin-sheet, #fff),
    7px 7px 0 0 var(--color-leaf, #2f6a43),
    13px 13px 0 -1px var(--admin-sheet, #fff),
    13px 13px 0 0 color-mix(in srgb, var(--color-leaf, #2f6a43) 50%, transparent);
}
.dnd-ghost-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnd-ghost-count {
  margin-left: auto;
  min-width: 1.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-leaf, #2f6a43);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4rem;
  text-align: center;
}
[data-sort-id][data-drop-edge="before"] { box-shadow: inset 0 3px 0 var(--color-leaf, #2f6a43); }
[data-sort-id][data-drop-edge="after"] { box-shadow: inset 0 -3px 0 var(--color-leaf, #2f6a43); }
body.admin-app.is-guest [data-drag-handle],
body.admin-app.is-locked [data-drag-handle] {
  pointer-events: none;
  opacity: 0.45;
}
.admin-notice-ok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--primary, #1e6b2a) 10%, transparent);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary, #1e6b2a);
}
.admin-notice-undo { margin: 0; }
.admin-notice-action {
  border: 1px solid var(--color-leaf, #2f6a43);
  border-radius: 8px;
  background: #fff;
  color: var(--color-night, #1c1914);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  min-height: 2rem;
}
.admin-dnd-hint { margin: 0 0 0.75rem; font-weight: 700; }
.dnd-tray {
  position: fixed;
  left: calc(15.25rem + 1rem);
  right: 1rem;
  bottom: 0.85rem;
  z-index: 45;
  display: none;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
  max-width: 56rem;
  margin-inline: auto;
  padding: 0.55rem;
  border: 1px solid var(--color-leaf, #2f6a43);
  border-radius: 12px;
  background: var(--admin-sheet, #fff);
  box-shadow: 0 10px 22px rgb(28 58 24 / 0.18);
}
body.is-sorting .dnd-tray { display: grid; }
.dnd-tray-lead {
  margin: 0;
  padding: 0 0.4rem;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dnd-tray-zone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--admin-paper, #f3eee4);
  color: var(--night, #1c1914);
  font-weight: 800;
  cursor: grabbing;
}
.dnd-tray-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.dnd-tray-copy em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.dnd-tray-zone.is-danger { border-color: color-mix(in srgb, var(--danger, #b42318) 45%, var(--border)); }
.dnd-tray-zone.is-over,
body.is-sorting [data-drop-zone].is-over {
  border-style: solid;
  border-color: var(--color-leaf, #2f6a43);
  background: color-mix(in srgb, var(--color-leaf, #2f6a43) 16%, #fff);
  box-shadow: inset 0 0 0 1px var(--color-leaf, #2f6a43);
}
.dnd-tray-zone.is-danger.is-over {
  border-color: var(--danger, #b42318);
  background: color-mix(in srgb, var(--danger, #b42318) 14%, #fff);
}
body.is-sorting .is-page-drop [data-drop-zone] {
  outline: 1px dashed var(--color-leaf, #2f6a43);
  outline-offset: 2px;
}
@media (max-width: 56rem) {
  .dnd-tray { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; grid-template-columns: 1fr; }
}
body.is-sorting .admin-media-list { padding-bottom: 6.5rem; }

.page-piece-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--leaf, #2f6a43) 40%, var(--admin-line, #d7c9ae));
  border-radius: 10px;
  background: color-mix(in srgb, var(--leaf, #2f6a43) 7%, #fff);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.page-live-desk {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0.15rem 0 0.85rem;
  padding: 0.8rem 0.85rem 0.95rem;
  border: 1px dashed color-mix(in srgb, var(--leaf, #2f6a43) 40%, var(--admin-line, #d7c9ae));
  border-radius: 12px;
  background: color-mix(in srgb, var(--leaf, #2f6a43) 6%, var(--admin-paper, #f3eee4));
}
.page-live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}
.page-live-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-live-hint {
  margin: 0.25rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.page-live-width {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.page-live-width-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0 0.7rem;
  border: 1px solid var(--admin-line, #d7c9ae);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.page-live-width-btn.is-on {
  border-color: var(--leaf, #2f6a43);
  background: color-mix(in srgb, var(--leaf, #2f6a43) 12%, #fff);
  color: var(--leaf, #2f6a43);
}
.page-live-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-live-stage {
  position: relative;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 12rem;
  max-height: min(52dvh, 34rem);
  padding: 0.65rem 0.65rem 1rem;
  border: 1px solid var(--admin-line, #d7c9ae);
  border-radius: 12px;
  background: var(--bg, #f6f1e8);
}
.page-live-stage.is-phone {
  width: min(390px, 100%);
  margin-inline: auto;
}
.page-live-bg {
  position: absolute;
  inset: 0;
  background: center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.page-live-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: color-mix(in srgb, #fff 80%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.page-live-page {
  position: relative;
  z-index: 1;
}
.page-piece {
  position: relative;
  margin: 0.35rem 0;
  padding: 0.35rem 0.4rem 0.55rem;
  border: 1px dashed transparent;
  border-radius: 10px;
}
.page-piece:hover,
.page-piece.is-on {
  border-color: color-mix(in srgb, var(--leaf, #2f6a43) 55%, transparent);
  background: color-mix(in srgb, #fff 70%, transparent);
}
.page-piece.is-dragging {
  opacity: 0.5;
}
.page-piece[data-drop-edge="before"] {
  box-shadow: inset 0 3px 0 0 var(--leaf, #2f6a43);
}
.page-piece[data-drop-edge="after"] {
  box-shadow: inset 0 -3px 0 0 var(--leaf, #2f6a43);
}
.page-piece-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.page-piece-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--leaf, #2f6a43);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.page-piece-handle:active,
.page-piece.is-dragging .page-piece-handle {
  cursor: grabbing;
}
.page-piece-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--leaf, #2f6a43);
}
.page-piece-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.page-piece-remove:hover {
  color: var(--danger, #b42318);
}
.page-piece-body {
  pointer-events: none;
}
.page-live-inspect {
  display: grid;
  gap: 0.75rem;
  flex-shrink: 0;
  min-height: 0;
  overflow: auto;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--admin-line, #d7c9ae);
  border-radius: 10px;
  background: #fff;
}
.page-live-inspect[hidden] {
  display: none !important;
}
.page-live-inspect-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.page-live-inspect-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.page-live-inspect label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.page-live-inspect input,
.page-live-inspect textarea {
  width: 100%;
}
.page-live-pic {
  display: block;
  max-height: 8rem;
  width: auto;
  border: 1px solid var(--admin-line, #d7c9ae);
  border-radius: 8px;
  background: var(--bg, #f6f1e8);
}
.page-live-empty-select {
  flex-shrink: 0;
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.page-live-empty-select[hidden] {
  display: none !important;
}
.admin-pages-lead {
  margin: 0 0 0.4rem;
}
@media (min-width: 1100px) {
  .admin-pages-work {
    display: grid;
    grid-template-columns: minmax(22rem, 1.12fr) minmax(19rem, 0.88fr);
    gap: 0.85rem 1.15rem;
    align-items: start;
  }
  .admin-pages-work > .admin-pages-lead,
  .admin-pages-work > p.admin-pages-lead {
    grid-column: 1 / -1;
  }
  .admin-pages-work > .page-live-desk {
    grid-column: 1;
    grid-row: 2 / span 80;
    position: sticky;
    top: 0.5rem;
    height: calc(100dvh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow: hidden;
    margin-bottom: 0;
  }
  .admin-pages-work > .page-live-desk .page-live-stage {
    max-height: none;
    min-height: 0;
  }
  .admin-pages-work > .admin-fold,
  .admin-pages-work > fieldset,
  .admin-pages-work > h2,
  .admin-pages-work > label,
  .admin-pages-work > .page-items {
    grid-column: 2;
  }
  .admin-pages-work > .admin-sticky-save {
    grid-column: 1 / -1;
  }
}

.page-live-bg {
  opacity: 0.5;
}
.page-live-page img,
.page-live-page video,
.page-live-page picture {
  max-width: 100%;
  height: auto;
}
.page-live-page img,
.page-live-page video {
  display: block;
}
.page-live-page .wrap-block img,
.page-live-page .home-panel img {
  width: auto;
  max-width: min(100%, 432px);
  height: auto;
  margin: 0 1rem 0.75rem 0;
}
.page-live-page .wrap-block.size-sm img { max-width: min(100%, 200px); }
.page-live-page .wrap-block.size-md img { max-width: min(100%, 288px); }
.page-live-page .wrap-block.size-lg img { max-width: min(100%, 432px); }
.page-live-page .wrap-block.size-xl img { max-width: min(100%, 560px); }
.page-live-page .wrap-block.size-full img { max-width: 100%; width: 100%; }
.page-live-page .wrap-block.is-portrait img { max-width: min(100%, 288px); }
.page-live-page .wrap-block.is-real img { max-width: min(100%, 255px); }
.page-live-page .contact-pic img {
  width: 100%;
  height: auto;
}
.page-live-page .featured-toon-pic,
.page-live-page .featured-toon-el,
.page-live-page .featured-toon-player,
.page-live-page .toon-player-wrap {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

img.lazy-pic {
  transition: opacity 0.22s ease;
}
img.lazy-pic:not(.is-in):not(.is-eager) {
  opacity: 0;
}
img.lazy-pic.is-in,
img.lazy-pic.is-eager {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  img.lazy-pic {
    opacity: 1;
    transition: none;
  }
}

@supports (color: color-mix(in lab, red, red)) {
  :root {
    --ph-toon: color-mix(in srgb, var(--sky) 22%, var(--bg-deep));
    --ph-pic: color-mix(in srgb, var(--pinky) 18%, var(--bg-deep));
  }
}

img.lazy-pic,
.thumb,
.loved-nest-thumb,
.pinned-hero-media,
.admin-media-thumb,
.home-art,
.page-hero-art,
.story-block img,
.feature-media img,
.featured-toon-pic,
.wrap-block img,
.wrap-block.is-card img,
.crew-card img,
.contact-pic img,
.watch-next-item img,
.lightbox-card img.lb-image {
  background-color: var(--ph);
}

.ph-toon,
.thumb.ph-toon,
.loved-nest-thumb.ph-toon,
.card[data-type="video"] .thumb,
.loved-nest-thumb[data-type="video"],
.featured-toon-pic {
  background-color: var(--ph-toon);
}

.ph-pic,
.thumb.ph-pic,
.loved-nest-thumb.ph-pic,
.card[data-type="image"] .thumb,
.loved-nest-thumb[data-type="image"],
.crew-card img,
.wrap-block img,
.contact-pic img {
  background-color: var(--ph-pic);
}

.skel {
  --skel-base: var(--bg-deep, #ead9b4);
  --skel-shine: #fff8ea;
  background-color: var(--skel-base);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
@supports (color: color-mix(in lab, red, red)) {
  .skel {
    --skel-shine: color-mix(in srgb, var(--surface, #fff8ea) 72%, white);
  }
}
.skel::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, var(--skel-shine) 50%, transparent 100%);
  animation: skel-shimmer 1.15s linear infinite;
}
@keyframes skel-shimmer {
  to { transform: translateX(100%); }
}
.skel-line {
  display: block;
  height: 0.85rem;
  width: 100%;
  margin: 0 0 0.45rem;
}
.skel-short { width: 62%; }
.skel-comment {
  border: 1px solid var(--border, #d7c49a);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.5rem;
}
.skel-card .thumb { aspect-ratio: 16/9; }
.skel-card .card-copy { padding: 1rem; }
.skel-card .card-shell { pointer-events: none; }
img.lazy-pic.skel:not(.is-in):not(.is-eager) { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; display: none; }
}

.lb-blurup-stage {
  position: relative;
}
.lb-blurup {
  display: grid;
  place-items: center;
  position: relative;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 0.16s ease, opacity 0.16s ease;
  cursor: zoom-in;
}
.lb-blurup.is-gesturing {
  transition: none;
}
.lb-blurup.is-zoomed {
  cursor: grab;
}
.lb-blurup.is-zoomed:active {
  cursor: grabbing;
}
.lb-blurup img {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}
.lb-image-preview {
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.lb-blurup.has-preview img.lb-image {
  opacity: 0;
  z-index: 1;
  transition: opacity 0.28s ease;
}
.lb-blurup.is-sharp img.lb-image,
.lb-blurup.has-preview.is-sharp img.lb-image {
  opacity: 1;
}
.lb-blurup.is-sharp.has-preview img.lb-image-preview {
  opacity: 0;
  visibility: hidden;
}
.item-still.lb-blurup {
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .lb-blurup,
  .lb-blurup.has-preview img.lb-image {
    transition: none;
  }
}

.heart-home-strips.is-center,
.week-favorite.is-center,
.loved-nest.is-center { text-align: center; }
.heart-home-strips.is-right,
.week-favorite.is-right,
.loved-nest.is-right { text-align: right; }
.heart-home-strips.is-center .week-favorite-card,
.week-favorite.is-center .week-favorite-card { margin-inline: auto; }
.heart-home-strips.is-right .week-favorite-card,
.week-favorite.is-right .week-favorite-card { margin-inline-start: auto; }
.loved-nest-list.align-center { justify-content: center; flex-wrap: wrap; overflow: visible; }
.loved-nest-list.align-right { justify-content: flex-end; flex-wrap: wrap; overflow: visible; }
@media (min-width: 700px) {
  .loved-nest-list.align-center,
  .loved-nest-list.align-right {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 16.5rem));
    justify-content: center;
    overflow: visible;
  }
  .loved-nest-list.align-right { justify-content: end; }
}
.site-page:has(.heart-home-strips) { max-width: none; }
.site-page:has(.heart-home-strips) > :not(.heart-home-strips) { max-width: 40rem; }
.site-page.copy-center:has(.heart-home-strips) > :not(.heart-home-strips) { margin-inline: auto; }
.site-page.copy-right:has(.heart-home-strips) > :not(.heart-home-strips) { margin-left: auto; }
.comment-lead {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 700px) {
  .comment-lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.comment-stat {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  min-height: 5.5rem;
}
.comment-stat:hover { border-color: var(--wood); color: inherit; }
.comment-stat .field-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.comment-stat-row { display: flex; align-items: center; gap: 0.75rem; }
.comment-media,
.comment-media:hover { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.comment-media-thumb,
.comment-stat-thumb {
  display: block;
  flex: none;
  width: 4.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-deep);
}
.comment-media-thumb img,
.comment-stat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.65rem 0.85rem;
}
.comment-card.is-reply { margin-left: 1.25rem; }
.comment-card.is-highlight { outline: 2px solid var(--primary); }
.comment-thread { list-style: none; margin: 0 0 0.75rem; }
.comment-replies { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.comment-card .social-btn,
.comment-actions .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
}
.comment-card .social-btn.is-liked { border-color: var(--pinky); color: var(--pinky); }
.comment-stars { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: auto; font-size: 0.8rem; font-weight: 800; }
.comment-stars .star-btn {
  min-width: 2rem;
  min-height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
}
.comment-stars .star-btn.is-on { color: var(--honey); }
.reply-tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wood); }
.comment-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.comment-sort select {
  min-height: 2.5rem;
  min-width: 10rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  padding: 0 0.6rem;
}
.text-btn { border: 0; background: none; color: var(--primary); font-weight: 800; text-decoration: underline; cursor: pointer; }
@media (min-width: 640px) {
  .comment-card.is-reply { margin-left: 2rem; }
}
.nest-door {
  width: min(100%, 26.5rem);
  margin: 0 auto;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 10px 24px -16px rgba(28, 58, 24, 0.35);
}
.nest-door h1 {
  margin: 0;
}
.nest-door .form {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.nest-door .form + .form {
  margin-top: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.nest-door .btn {
  width: 100%;
}
.nest-door .btn.secondary {
  width: auto;
}
body:has(.nest-door) .nav {
  position: relative;
  top: auto;
}
body:has(.nest-door) .hero {
  display: none;
}
body:has(.nest-door) main.wrap,
main.wrap.is-door {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}


