:root {
  color-scheme: light;
  --ink: #171717;
  --soft-ink: #5d5d58;
  --paper: #f8f8f3;
  --paper-deep: #ecebe2;
  --line: #20201d;
  --leaf: #6d7e4d;
  --leaf-pale: #9faf8b;
  --accent: #60704a;
  --shadow: 0 18px 45px rgba(33, 32, 27, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family:
    ui-serif, Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  background: #dedbd2;
  overflow-x: hidden;
}

button {
  color: inherit;
  font: inherit;
}

.back-button,
.primary-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-credit {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 26px;
  color: #5f5c53;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    visibility 180ms ease;
}

body.submission-open .top-credit,
body.guest-modal-open .top-credit {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-6px);
}

.auth-notice {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 640;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(520px, calc(100vw - 36px));
  min-height: 32px;
  padding: 0 15px;
  color: #f8f8f3;
  background: rgba(24, 24, 19, 0.86);
  border: 1px solid rgba(255, 255, 250, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(33, 32, 27, 0.18);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.auth-notice[hidden] {
  display: none;
}

.auth-notice::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #cfe09a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(207, 224, 154, 0.16);
}

.auth-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #5f5c53;
  font: inherit;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: #171610;
  transform: translateY(-1px);
}

.creator-credit {
  color: #68645c;
  white-space: nowrap;
}

.language-toggle i {
  color: #a7a39a;
  font-style: normal;
  font-weight: 300;
}

.language-toggle [data-lang-option] {
  position: relative;
  color: #7d7a72;
  font-weight: 400;
  line-height: 1;
  transition:
    color 180ms ease;
}

.language-toggle [data-lang-option]::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -4px;
  z-index: -1;
  height: 5px;
  background: #dfe6c5;
  border-radius: 999px 38% 999px 46%;
  transform: rotate(-1.8deg) scaleX(0.76);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.language-toggle[data-lang="zh"] [data-lang-option="zh"],
.language-toggle[data-lang="en"] [data-lang-option="en"] {
  color: #171610;
}

.language-toggle[data-lang="zh"] [data-lang-option="zh"]::after,
.language-toggle[data-lang="en"] [data-lang-option="en"]::after,
.language-toggle [data-lang-option]:hover::after {
  opacity: 1;
  transform: rotate(-1.8deg) scaleX(1);
}

.auth-entry {
  position: relative;
  display: inline-flex;
}

/* Account chip trigger */
.auth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 3px 12px 3px 4px;
  color: #5f5c53;
  background: rgba(248, 248, 243, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font: 600 11px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.auth-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  color: #f6f6f0;
  background: #3a3a33;
  border-radius: 50%;
  overflow: hidden;
}

.auth-avatar-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.auth-avatar-initial {
  display: none;
  font: 800 11px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

.auth-toggle.has-initial .auth-avatar-icon {
  display: none;
}

.auth-toggle.has-initial .auth-avatar-initial {
  display: block;
}

.auth-toggle-label {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.auth-toggle:hover,
.auth-toggle:focus-visible,
.auth-toggle[aria-expanded="true"] {
  color: #171610;
  background: rgba(255, 255, 250, 0.92);
  border-color: rgba(23, 23, 23, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(33, 32, 27, 0.1);
}

.auth-toggle.is-signed-in {
  color: #171610;
  background: rgba(255, 255, 250, 0.86);
  border-color: rgba(23, 23, 23, 0.2);
}

.auth-toggle.is-signed-in .auth-avatar {
  background: #5c6a44;
  color: #f3f6e6;
}

/* Account card menu */
.auth-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 288px;
  padding: 0;
  background: rgba(249, 246, 239, 0.97);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(33, 32, 27, 0.2);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  overflow: hidden;
  transform-origin: top right;
}

.auth-menu:not([hidden]) {
  animation: authMenuPop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes authMenuPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(150deg, rgba(223, 230, 197, 0.4), rgba(255, 255, 250, 0.2));
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.auth-head-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: #f6f6f0;
  background: #3a3a33;
  border-radius: 50%;
}

.auth-menu[data-state="signed-in"] .auth-head-avatar {
  background: #5c6a44;
}

.auth-head-avatar .auth-avatar-icon {
  width: 20px;
  height: 20px;
}

.auth-head-avatar .auth-avatar-initial {
  font-size: 17px;
}

.auth-menu[data-state="signed-in"] .auth-head-avatar .auth-avatar-icon {
  display: none;
}

.auth-menu[data-state="signed-in"] .auth-head-avatar .auth-avatar-initial {
  display: block;
}

.auth-head-copy {
  min-width: 0;
  flex: 1;
}

.auth-head-name {
  margin: 0;
  color: #171717;
  font: 700 14px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status {
  margin: 3px 0 0;
  color: rgba(25, 25, 22, 0.5);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-tier {
  flex: none;
  align-self: flex-start;
  padding: 3px 9px;
  color: rgba(25, 25, 22, 0.6);
  font: 800 9.5px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 250, 0.7);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
}

.auth-tier.is-premium {
  color: #2f3a1d;
  background: #cfe09a;
  border-color: transparent;
}

.auth-signin {
  display: grid;
  gap: 12px;
  padding: 14px 18px 16px;
}

.auth-menu[data-state="signed-in"] .auth-signin {
  display: none;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  background: rgba(23, 23, 23, 0.05);
  border-radius: 10px;
}

.auth-mode-tabs button {
  min-height: 30px;
  padding: 0 10px;
  color: rgba(25, 25, 22, 0.6);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: 700 11px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-mode-tabs button:hover {
  color: #171610;
}

.auth-menu[data-mode="user"] [data-auth-target="user"],
.auth-menu[data-mode="admin"] [data-auth-target="admin"] {
  color: #171610;
  background: #fffefa;
  box-shadow: 0 1px 3px rgba(33, 32, 27, 0.14);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: rgba(25, 25, 22, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: #171717;
  font-size: 13px;
  background: rgba(255, 255, 250, 0.85);
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-form input:focus {
  border-color: rgba(96, 112, 74, 0.7);
  background: #fffefa;
  box-shadow: 0 0 0 3px rgba(96, 112, 74, 0.16);
}

.auth-form button {
  min-height: 40px;
  margin-top: 2px;
  color: #f8f8f3;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 10px;
  cursor: pointer;
  font: 700 12px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  transition: background 160ms ease, transform 160ms ease;
}

.auth-form button:hover,
.auth-form button:focus-visible {
  background: #2c2c25;
  transform: translateY(-1px);
}

.auth-error {
  margin: -2px 0 0;
  color: #b0402f;
  font-size: 11px;
  line-height: 1.4;
}

.auth-error[hidden] {
  display: none;
}

.auth-form input[list] {
  cursor: pointer;
}

.auth-actions {
  display: grid;
  gap: 6px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.auth-menu[data-state="signed-out"] .auth-actions {
  display: none;
}

.auth-console,
.auth-sign-out {
  min-height: 38px;
  padding: 0 12px;
  color: rgba(25, 25, 22, 0.82);
  background: rgba(255, 255, 250, 0.6);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 10px;
  cursor: pointer;
  font: 700 12px -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  transition: background 160ms ease, border-color 160ms ease;
}

.auth-console:hover,
.auth-console:focus-visible {
  background: rgba(223, 230, 197, 0.55);
  border-color: rgba(96, 112, 74, 0.4);
}

.auth-sign-out {
  color: rgba(176, 64, 47, 0.92);
  background: transparent;
  border-color: rgba(176, 64, 47, 0.26);
}

.auth-sign-out:hover,
.auth-sign-out:focus-visible {
  background: rgba(176, 64, 47, 0.08);
  border-color: rgba(176, 64, 47, 0.42);
}

body[data-screen="tree"] .top-credit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

.home-screen {
  position: relative;
  min-height: 100vh;
  color: #11100d;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #fbfaf4 0%, #f3efe5 54%, #e8e0d2 100%);
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: none;
}

.home-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 50% 50%, rgba(20, 19, 16, 0.026) 0 1px, transparent 1px 7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: 0.36;
}

.home-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 46vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(32, 28, 20, 0.08) 100%);
}

.home-mark {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 12;
  width: min(980px, calc(100vw - 40px));
  transform: translate(-50%, -48%);
  text-align: center;
  pointer-events: none;
}

.home-mark h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  color: #050505;
  font-size: clamp(64px, 9vw, 142px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 24px 58px rgba(34, 30, 22, 0.1);
}

.home-mark h1 img {
  width: min(340px, 31vw);
  padding-right: 16px;
  margin-right: -10px;
  box-sizing: content-box;
  opacity: 0.98;
}

.home-mark h1 span {
  transform: translateY(-0.06em);
}

.home-mark p {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 36px auto 0;
  color: rgba(22, 21, 18, 0.58);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-mark p::before,
.home-mark p::after {
  content: "";
  width: clamp(24px, 5vw, 68px);
  height: 1px;
  background: rgba(22, 21, 18, 0.2);
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  pointer-events: auto;
}

.home-entry {
  position: relative;
  min-width: 164px;
  min-height: 50px;
  padding: 0 24px 2px;
  color: rgba(18, 18, 16, 0.82);
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: 56% 44% 47% 53% / 48% 55% 45% 52%;
  box-shadow: none;
  cursor: pointer;
  isolation: isolate;
  transition:
    color 220ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-entry::before {
  content: "";
  position: absolute;
  inset: 3px 2px 4px;
  z-index: -1;
  border: 1.25px solid rgba(18, 18, 16, 0.34);
  border-radius: 54% 46% 51% 49% / 52% 54% 46% 48%;
  transform: rotate(-1.4deg) scale(1);
  animation: liquidLoop 7.4s ease-in-out infinite alternate;
  transition: border-color 260ms ease;
}

.home-entry:nth-child(2)::before {
  animation-name: liquidLoopAlt;
  animation-duration: 8.6s;
  animation-delay: -2.7s;
  animation-direction: alternate-reverse;
}

.home-entry::after {
  content: "";
  position: absolute;
  left: 27px;
  right: 27px;
  bottom: 12px;
  z-index: -1;
  height: 5px;
  background: rgba(153, 170, 118, 0.2);
  border-radius: 999px 38% 999px 46%;
  transform: rotate(-1.8deg) scaleX(0.76);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.home-entry:hover,
.home-entry:focus-visible {
  color: #111;
  transform: translateY(-2px);
}

.home-entry:hover::before,
.home-entry:focus-visible::before {
  border-color: rgba(18, 18, 16, 0.56);
  animation-duration: 4.8s;
}

.home-entry:hover::after,
.home-entry:focus-visible::after {
  opacity: 1;
  transform: rotate(-1.8deg) scaleX(1);
}

.portrait-field {
  position: absolute;
  inset: 0;
  z-index: 9;
  perspective: 900px;
}

.portrait-token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 8;
  width: var(--size);
  --push-x: 0px;
  --push-y: 0px;
  --token-scale: 1;
  --image-scale: 1;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform: translate(-50%, -50%) translate3d(var(--push-x), var(--push-y), 0) scale(var(--token-scale));
  transition:
    filter 560ms ease,
    opacity 560ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 18px 28px rgba(33, 30, 23, 0.12));
  will-change: transform, opacity;
}

.portrait-token::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.portrait-token::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.64),
    inset 0 -20px 32px rgba(17, 16, 13, 0.12);
  opacity: 0.82;
  transition: opacity 260ms ease;
}

.portrait-token img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(43, 38, 32, 0.1);
  filter: saturate(0.86) contrast(1.03) sepia(0.05);
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms ease,
    filter 520ms ease;
}

.portrait-token:hover img,
.portrait-token:focus-visible img,
.portrait-token.is-near img {
  filter: saturate(1.03) contrast(1.05) sepia(0);
  transform: scale(var(--image-scale));
  box-shadow: 0 26px 62px rgba(43, 38, 32, 0.18);
}

.portrait-token:hover::after,
.portrait-token:focus-visible::after,
.portrait-token.is-near::after {
  opacity: 0;
}

.portrait-token.is-near::before,
.portrait-token:hover::before,
.portrait-token:focus-visible::before {
  opacity: 0;
  animation: none;
}

.portrait-token.featured {
  z-index: 9;
}

.portrait-token.featured::before {
  opacity: 0.92;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 220, 132, 0.68), transparent 54%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72), transparent 72%);
  filter: blur(18px);
  animation: featuredPulse 4.6s ease-in-out infinite alternate;
}

.portrait-token:hover,
.portrait-token:focus-visible,
.portrait-token.is-near,
.portrait-token.is-speaking {
  z-index: 36;
}

.portrait-token.is-displaced {
  z-index: 6;
  opacity: 0.58;
}

.portrait-token.is-profile-source {
  opacity: 0;
  transition: opacity 120ms ease;
}

.portrait-token.featured img {
  box-shadow:
    0 22px 54px rgba(92, 76, 28, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 64px rgba(239, 214, 128, 0.46);
}

.portrait-ripple,
.portrait-ripple::before,
.portrait-ripple::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 1;
  border: 1px solid rgba(93, 110, 66, 0.46);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}

.portrait-token.is-speaking .portrait-ripple,
.portrait-token.is-speaking .portrait-ripple::before,
.portrait-token.is-speaking .portrait-ripple::after {
  animation: speakingRipple 2.45s cubic-bezier(0.18, 0.82, 0.25, 1) infinite;
}

.portrait-token.is-speaking .portrait-ripple::before {
  animation-delay: 0.56s;
}

.portrait-token.is-speaking .portrait-ripple::after {
  animation-delay: 1.12s;
}

.portrait-label {
  position: absolute;
  left: calc(100% + 28px);
  top: 48%;
  z-index: 4;
  display: grid;
  gap: 7px;
  width: min(220px, 22vw);
  min-width: 178px;
  padding: 0;
  color: rgba(19, 18, 15, 0.86);
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 255, 252, 0.82),
    0 10px 28px rgba(44, 39, 30, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%) rotate(-1.2deg);
  transform-origin: left center;
  transition: opacity 220ms ease;
}

.portrait-label::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 23, 20, 0.36));
  transform: rotate(-5deg);
}

.portrait-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22%;
  top: 33px;
  height: 8px;
  background: rgba(128, 146, 96, 0.16);
  border-radius: 999px 44% 999px 36%;
  transform: rotate(-1.5deg);
}

.portrait-label strong {
  position: relative;
  z-index: 1;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 23px;
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.portrait-label em {
  max-width: 210px;
  color: rgba(20, 19, 16, 0.62);
  font-family: "Bradley Hand", "Segoe Print", "Kaiti SC", cursive;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.22;
}

.portrait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portrait-tags span {
  color: rgba(20, 19, 16, 0.66);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portrait-tags span::before {
  content: "#";
  color: rgba(86, 99, 58, 0.68);
}

.portrait-token.label-left .portrait-label {
  right: calc(100% + 28px);
  left: auto;
  text-align: right;
  justify-items: end;
  transform: translate(0, -50%) rotate(1.2deg);
  transform-origin: right center;
}

.portrait-token.label-left .portrait-label::before {
  right: -26px;
  left: auto;
  background: linear-gradient(90deg, rgba(24, 23, 20, 0.36), transparent);
}

.portrait-token.label-left .portrait-label::after {
  right: 0;
  left: auto;
  width: 78%;
}

.portrait-token:hover .portrait-label,
.portrait-token:focus-visible .portrait-label,
.portrait-token.is-near .portrait-label {
  opacity: 1;
}

.portrait-token.label-left:hover .portrait-label,
.portrait-token.label-left:focus-visible .portrait-label,
.portrait-token.label-left.is-near .portrait-label {
  opacity: 1;
}

.portrait-quote {
  position: absolute;
  left: calc(100% + 28px);
  top: 48%;
  z-index: 6;
  display: grid;
  gap: 7px;
  width: min(220px, 22vw);
  min-width: 178px;
  padding: 0;
  color: rgba(19, 18, 15, 0.86);
  text-align: left;
  text-shadow:
    0 1px 0 rgba(255, 255, 252, 0.82),
    0 10px 28px rgba(44, 39, 30, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%) rotate(-1.2deg);
  transform-origin: left center;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-token.label-left .portrait-quote {
  right: calc(100% + 28px);
  left: auto;
  text-align: right;
  justify-items: end;
  transform: translate(0, -50%) rotate(1.2deg);
  transform-origin: right center;
}

.portrait-quote-body {
  display: grid;
  gap: 5px;
}

.portrait-quote-author {
  color: rgba(17, 16, 13, 0.88);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 23px;
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.portrait-quote-text {
  display: block;
  position: relative;
  max-width: 210px;
  color: rgba(20, 19, 16, 0.62);
  font-family: "Bradley Hand", "Segoe Print", "Kaiti SC", cursive;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.22;
}

.portrait-quote-text::before,
.portrait-quote-text::after {
  display: inline;
  color: rgba(86, 99, 58, 0.74);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 2.05em;
  font-weight: 400;
  line-height: 0;
  vertical-align: -0.22em;
}

.portrait-quote-text::before {
  content: "“";
  margin-right: 1px;
}

.portrait-quote-text::after {
  content: "”";
  margin-left: 1px;
}

.portrait-token.is-speaking .portrait-quote {
  opacity: 1;
  transform: translate(0, -50%) rotate(-1.2deg);
  clip-path: inset(0 0 0 0);
}

.portrait-token.label-left.is-speaking .portrait-quote {
  transform: translate(0, -50%) rotate(1.2deg);
}


.landing-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 136px;
  height: 136px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.landing-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.landing-cursor.over-ui {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.cursor-ring {
  position: absolute;
  inset: 0;
  transform: rotate(var(--cursor-rotation, 0deg));
  transition:
    opacity 180ms ease;
  will-change: transform;
}

.cursor-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 68px;
  color: rgba(17, 17, 17, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translate(-50%, -100%) rotate(var(--rotate));
  transform-origin: 50% 100%;
}

.cursor-ring i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-style: normal;
  transform: translate(-50%, -50%) rotate(var(--cursor-counter-rotation, 0deg));
  will-change: transform;
}

.cursor-ring i::before {
  content: "💡";
  font-size: 25px;
  line-height: 1;
  filter: grayscale(1) contrast(1.2);
}

.cursor-card {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 190px;
  padding: 14px 16px;
  color: rgba(248, 248, 243, 0.92);
  background: rgba(16, 16, 15, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(20, 18, 14, 0.22);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-8%, -50%) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.cursor-card strong {
  display: block;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 500;
}

.cursor-card span {
  display: block;
  margin-top: 5px;
  color: rgba(248, 248, 243, 0.62);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-cursor.on-thinker .cursor-ring {
  opacity: 0;
  transform: scale(0.72);
}

.landing-cursor.on-thinker .cursor-card {
  opacity: 0;
  transform: translate(16px, -50%) scale(0.92);
}

.home-note {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 20;
  display: grid;
  gap: 7px;
  width: min(310px, calc(100vw - 48px));
  padding: 18px 20px;
  color: rgba(31, 31, 28, 0.74);
  background: rgba(250, 250, 245, 0.76);
  border: 1px dashed rgba(31, 31, 28, 0.22);
  box-shadow: 0 14px 38px rgba(33, 32, 27, 0.1);
}

.home-note strong {
  color: var(--ink);
}

.home-screen .home-note {
  display: none;
}

.publication-screen {
  position: relative;
  min-height: 100vh;
  padding: 48px 38px 44px;
  color: #171717;
  background: linear-gradient(180deg, #f6f2ea 0%, #e9e5da 58%, #ddd7c8 100%);
  overflow-x: hidden;
}

.publication-screen::before {
  content: none;
}

.content-shell {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 18px auto 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.88;
  font-weight: 400;
  font-style: italic;
}

.section-head p {
  margin: 0;
  color: rgba(25, 25, 22, 0.66);
  font-size: 17px;
  line-height: 1.62;
}

.scene-screen .section-head {
  max-width: none;
}

.scene-screen .section-head > p:last-child {
  white-space: nowrap;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.issue-card,
.event-card {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.issue-card:hover,
.issue-card:focus-within,
.issue-card:focus-visible,
.event-card:hover,
.event-card:focus-within,
.event-card:focus-visible {
  background: rgba(255, 255, 250, 0.7);
  border-color: rgba(23, 23, 23, 0.08);
  box-shadow: 0 18px 46px rgba(33, 32, 27, 0.1);
  transform: translateY(-8px);
}

.issue-card:focus-visible,
.event-card:focus-visible {
  outline: 1px solid rgba(23, 23, 23, 0.16);
  outline-offset: 2px;
}

.issue-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
  padding: 12px;
}

.featured-issue {
  transform: none;
}

.issue-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 304px;
  padding: 18px;
  color: #f8f8f3;
  background: #171717;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}

.issue-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.issue-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.2), rgba(3, 6, 12, 0.1) 38%, rgba(3, 6, 12, 0.52) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 45%);
}

.issue-cover span,
.issue-cover strong,
.issue-cover em {
  position: relative;
  z-index: 2;
}

.issue-cover span,
.issue-cover em,
.event-kicker {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.issue-cover strong {
  max-width: 100%;
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  overflow-wrap: break-word;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.issue-cover em {
  color: rgba(248, 248, 243, 0.64);
}

.cover-green {
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(255,255,255,.12) 48% 50%, transparent 50%),
    #31412b;
}

.cover-ink {
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,.2), transparent 28%),
    #171717;
}

.cover-warm {
  background:
    linear-gradient(160deg, #8e5d34 0 28%, #201813 28% 72%, #ded3bd 72%);
}

.cover-blue {
  background:
    linear-gradient(135deg, #20333a 0 40%, #121313 40% 72%, #86a0a0 72%);
}

.issue-card h3,
.event-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 400;
  font-style: italic;
}

.issue-card p,
.event-card p {
  margin: 0;
  color: rgba(25, 25, 22, 0.64);
  line-height: 1.58;
}

body.review-issue-open,
body.review-access-open {
  overflow: hidden;
}

.review-issue-layer {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: grid;
  place-items: center;
  padding: 28px;
}

.review-issue-layer[hidden] {
  display: none;
}

.review-issue-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 20, 0.34);
  border: 0;
  cursor: pointer;
}

.review-issue-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 34px;
  color: #171717;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(153, 170, 118, 0.14), transparent 42%),
    #f8f5ed;
  border: 1px solid rgba(23, 23, 23, 0.1);
  box-shadow: 0 30px 90px rgba(33, 32, 27, 0.2);
}

.review-issue-panel .submission-close {
  justify-self: end;
}

.review-issue-panel h3 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 72px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
}

.review-issue-deck {
  margin: 0;
  color: rgba(96, 112, 74, 0.86);
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.review-issue-panel > p:not(.eyebrow):not(.review-issue-deck) {
  max-width: 610px;
  margin: 0;
  color: rgba(25, 25, 22, 0.64);
  font-size: 17px;
  line-height: 1.72;
}

.review-issue-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.review-issue-meta div {
  padding: 14px;
  background: rgba(255, 255, 250, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.review-issue-meta dt {
  margin-bottom: 8px;
  color: rgba(25, 25, 22, 0.48);
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.review-issue-meta dd {
  margin: 0;
  font: 700 14px ui-sans-serif, system-ui, sans-serif;
}

.review-issue-actions {
  display: flex;
  justify-content: flex-end;
}

.review-issue-actions button {
  min-height: 46px;
  padding: 0 18px;
  color: #f8f8f3;
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  background: #171717;
  border: 1px solid #171717;
  cursor: pointer;
}

.review-access-layer {
  z-index: 320;
}

.review-access-panel {
  width: min(620px, calc(100vw - 40px));
  gap: 20px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(248, 248, 243, 0.96), rgba(239, 234, 221, 0.96)),
    #f8f5ed;
}

.review-access-panel h3 {
  max-width: 520px;
  font-size: clamp(36px, 5vw, 58px);
}

.review-access-panel > p:not(.eyebrow) {
  max-width: 520px;
  font-size: 16px;
}

.review-access-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.review-access-actions button {
  min-width: 148px;
}

.review-access-actions .secondary-action {
  color: rgba(25, 25, 22, 0.76);
  background: rgba(255, 255, 250, 0.58);
  border-color: rgba(23, 23, 23, 0.12);
}

.review-access-actions .secondary-action:hover,
.review-access-actions .secondary-action:focus-visible {
  color: #171717;
  background: rgba(223, 230, 197, 0.52);
}

/* Paywall plan options */
.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}

.plan-option {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px 20px;
  text-align: left;
  color: #171717;
  background: rgba(255, 255, 250, 0.66);
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.plan-option:hover,
.plan-option:focus-visible {
  background: #fffefa;
  border-color: rgba(23, 23, 23, 0.5);
  transform: translateY(-2px);
}

.plan-option-feature {
  background: linear-gradient(150deg, rgba(223, 230, 197, 0.6), rgba(255, 255, 250, 0.7));
  border-color: rgba(96, 112, 74, 0.42);
}

.plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan-name {
  font: 800 14px ui-sans-serif, system-ui, sans-serif;
}

.plan-price-group {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.plan-price {
  font: 800 22px ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
}

.plan-list {
  color: rgba(25, 25, 22, 0.4);
  font: 600 13px ui-sans-serif, system-ui, sans-serif;
  text-decoration: line-through;
}

.plan-unit {
  color: rgba(25, 25, 22, 0.55);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
}

.plan-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.plan-save {
  padding: 2px 8px;
  color: #fff;
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  background: #c2410c;
  border-radius: 999px;
}

.plan-per {
  color: rgba(25, 25, 22, 0.55);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
}

.checkout-list {
  margin-right: 6px;
  color: rgba(25, 25, 22, 0.4);
  font-weight: 600;
  font-size: 13px;
  text-decoration: line-through;
}

/* Ownership badge — refined frosted chip */
.ownership-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  color: #f6f7f2;
  font: 600 11px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  background: rgba(20, 22, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.ownership-badge::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.4 3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ownership-badge.is-member {
  color: #e9f0cf;
  border-color: rgba(207, 224, 154, 0.5);
}

.issue-cover .ownership-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

/* Issue detail page */
.review-issue-screen .detail-shell,
.review-article-screen .article-shell {
  padding-top: 12px;
}

.issue-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: center;
}

.issue-hero-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(40px, 5.4vw, 76px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  color: #171717;
}

.issue-hero-deck {
  margin: 16px 0 0;
  color: rgba(96, 112, 74, 0.9);
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issue-hero-lead {
  margin: 18px 0 0;
  max-width: 30em;
  color: rgba(25, 25, 22, 0.66);
  font-size: 18px;
  line-height: 1.7;
}

.issue-hero-meta {
  display: flex;
  gap: 36px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.issue-hero-meta dt {
  margin-bottom: 6px;
  color: rgba(25, 25, 22, 0.45);
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.issue-hero-meta dd {
  margin: 0;
  font: 700 15px ui-sans-serif, system-ui, sans-serif;
}

.issue-hero-cover {
  position: relative;
  margin: 0;
}

.issue-hero-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #171717;
  box-shadow: 0 30px 80px rgba(33, 32, 27, 0.26);
}

.issue-hero-cover .ownership-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.issue-contents {
  margin-top: 60px;
}

.issue-contents-head h3 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.issue-toc {
  margin-top: 26px;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
}

.toc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 24px 6px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  cursor: pointer;
  transition: background 0.22s ease, padding 0.22s ease;
}

.toc-item:hover,
.toc-item:focus-visible {
  background: rgba(223, 230, 197, 0.34);
  padding-left: 18px;
  padding-right: 14px;
  outline: none;
}

.toc-no {
  font: 800 13px ui-sans-serif, system-ui, sans-serif;
  color: rgba(96, 112, 74, 0.85);
}

.toc-copy {
  display: grid;
  gap: 6px;
}

.toc-kicker {
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(25, 25, 22, 0.42);
}

.toc-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.22;
  color: #171717;
}

.toc-byline {
  color: rgba(25, 25, 22, 0.5);
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
}

.toc-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(25, 25, 22, 0.4);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s ease, stroke 0.22s ease;
}

.toc-item:hover .toc-chevron svg {
  transform: translateX(4px);
  stroke: #5c6a44;
}

/* Article reading page */
.article-shell {
  max-width: 740px;
  margin: 0 auto;
}

.article-head h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.6vw, 62px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  color: #171717;
}

.article-byline {
  margin: 20px 0 0;
  color: rgba(25, 25, 22, 0.5);
  font: 700 13px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.article-body {
  margin-top: 34px;
  display: grid;
  gap: 24px;
}

.article-body p {
  margin: 0;
  color: rgba(25, 25, 22, 0.82);
  font-size: 19px;
  line-height: 1.78;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 64px;
  line-height: 0.8;
  font-style: italic;
  color: #5c6a44;
}

.article-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
}

.article-nav {
  display: grid;
  gap: 7px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 250, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.12);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.article-nav:hover,
.article-nav:focus-visible {
  border-color: #171717;
  background: #fffefa;
  transform: translateY(-2px);
  outline: none;
}

.article-nav[hidden] {
  display: none;
}

.article-nav-next {
  text-align: right;
}

.article-nav-prev {
  grid-column: 1;
}

.article-nav-next {
  grid-column: 2;
}

.article-nav-label {
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(96, 112, 74, 0.85);
}

.article-nav-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #171717;
}

@media (max-width: 860px) {
  .issue-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .issue-hero-cover {
    order: -1;
    max-width: 280px;
  }
}

.plan-desc {
  color: rgba(25, 25, 22, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 3px 9px;
  color: #f8f8f3;
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #5c6a44;
  border-radius: 999px;
}

.plan-restore {
  margin: 2px 0 0 !important;
  color: rgba(25, 25, 22, 0.5) !important;
  font-size: 13px !important;
}

/* Guest vs signed-in paywall states */
.review-signin-cta {
  display: none;
  margin-top: 2px;
}

.plan-signin {
  width: 100%;
  min-height: 46px;
  color: #f8f8f3;
  font: 800 13px ui-sans-serif, system-ui, sans-serif;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.plan-signin:hover,
.plan-signin:focus-visible {
  background: #2c2c25;
  transform: translateY(-1px);
}

#reviewAccessLayer[data-state="guest"] .plan-options,
#reviewAccessLayer[data-state="guest"] .plan-restore {
  display: none;
}

#reviewAccessLayer[data-state="guest"] .review-signin-cta {
  display: block;
}

/* Checkout panel */
.review-checkout-layer {
  z-index: 330;
}

.review-checkout-panel {
  width: min(520px, calc(100vw - 40px));
  gap: 18px;
  padding: 32px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(248, 248, 243, 0.97), rgba(239, 234, 221, 0.97)),
    #f8f5ed;
}

.review-checkout-panel h3 {
  max-width: 460px;
  font-size: clamp(30px, 4vw, 46px);
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  margin: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 250, 0.6);
  border: 1px solid rgba(23, 23, 23, 0.1);
}

.checkout-summary div {
  display: contents;
}

.checkout-summary dt {
  color: rgba(25, 25, 22, 0.5);
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.checkout-summary dd {
  margin: 0;
  font: 700 14px ui-sans-serif, system-ui, sans-serif;
  text-align: right;
}

.checkout-summary .checkout-amount {
  font-size: 18px;
}

.pay-methods {
  display: flex;
  gap: 10px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  color: rgba(25, 25, 22, 0.66);
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.12);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.pay-method.is-active {
  color: #171717;
  background: #fffefa;
  border-color: #171717;
}

.pay-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}

.pay-wechat {
  background: #1aad19;
}

.pay-alipay {
  background: #1677ff;
}

.checkout-qr-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fffefa;
  border: 1px solid rgba(23, 23, 23, 0.12);
}

.checkout-qr {
  width: 188px;
  height: 188px;
}

.checkout-qr svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #171717;
}

.checkout-success {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffefa;
  text-align: center;
}

.checkout-success svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: #5c6a44;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-success strong {
  font: 800 16px ui-sans-serif, system-ui, sans-serif;
}

.checkout-success span {
  color: rgba(25, 25, 22, 0.6);
  font-size: 13px;
}

.review-checkout-panel.is-paid .checkout-success {
  display: flex;
}

.checkout-hint {
  margin: 0 !important;
  color: rgba(25, 25, 22, 0.58) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.review-checkout-actions {
  justify-content: space-between;
  gap: 10px;
}

.review-checkout-actions .secondary-action {
  color: rgba(25, 25, 22, 0.76);
  background: rgba(255, 255, 250, 0.58);
  border-color: rgba(23, 23, 23, 0.12);
}

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

.review-flyer {
  position: fixed;
  z-index: 220;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 18px 46px rgba(20, 18, 14, 0.18);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 980ms cubic-bezier(0.72, 0, 0.16, 1),
    opacity 980ms ease,
    filter 980ms ease;
  transition-delay: var(--delay);
}

.review-flyer.is-flying {
  opacity: 0;
  filter: blur(1.8px) saturate(1.25);
  transform: translate3d(var(--tx), var(--ty), 0) scale(0.08) rotate(var(--rot));
}

.return-flyer {
  opacity: 0;
  filter: blur(1.2px) saturate(1.14);
  transform: scale(0.08) rotate(var(--rot));
  transform-origin: center;
  transition:
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 760ms ease,
    filter 760ms ease;
  transition-delay: var(--delay);
}

.return-flyer.is-flying {
  opacity: 1;
  filter: blur(0) saturate(1.02);
  transform: translate3d(var(--tx), var(--ty), 0) scale(1) rotate(0deg);
}

.review-warping .portrait-token.is-review-source {
  opacity: 0;
  transition: opacity 80ms ease;
}

.review-returning .portrait-token {
  opacity: 0;
  transition: none;
}

.review-returning .portrait-token.is-return-arrived {
  opacity: 1;
  transition: none;
}

.home-entry.is-absorbing::before {
  border-color: rgba(20, 19, 16, 0.78);
  animation-duration: 1.2s;
}

.profile-flyer {
  position: fixed;
  z-index: 260;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  opacity: 1;
  box-shadow: 0 30px 76px rgba(33, 30, 23, 0.2);
  filter: saturate(1.02) contrast(1.04);
  transition:
    left 920ms cubic-bezier(0.16, 1, 0.3, 1),
    top 920ms cubic-bezier(0.16, 1, 0.3, 1),
    width 920ms cubic-bezier(0.16, 1, 0.3, 1),
    height 920ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    filter 220ms ease,
    box-shadow 920ms ease;
}

.profile-flyer.is-landing {
  filter: saturate(0.96) contrast(1.04) brightness(1.05);
  box-shadow:
    0 34px 86px rgba(33, 32, 27, 0.18),
    0 0 0 1px rgba(255, 255, 250, 0.62);
}

.profile-flyer.is-dissolving {
  opacity: 0;
  filter: blur(18px) saturate(1.05) brightness(1.16);
}

.profile-warping .home-mark,
.profile-warping .portrait-token:not(.is-profile-source) {
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 460ms cubic-bezier(0.72, 0, 0.16, 1);
  opacity: 0.18;
  filter: blur(5px);
}

.profile-warping .home-mark {
  transform: translate(-50%, -46%) scale(0.985);
}

.review-warping .home-mark h1,
.review-warping .home-mark p,
.scene-warping .home-mark h1,
.scene-warping .home-mark p,
.scene-warping .home-actions,
.scene-warping .portrait-token {
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.72, 0, 0.16, 1);
  opacity: 0.24;
  transform: translateY(-8px) scale(0.985);
}

.review-entering .section-head,
.review-entering .issue-card,
.scene-entering .section-head,
.scene-entering .event-card,
.detail-entering .event-detail-hero,
.detail-entering .works-heading,
.detail-entering .works-empty,
.detail-entering .work-card {
  animation: reviewFlyIn 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.review-entering .issue-card:nth-child(1) {
  animation-delay: 90ms;
}

.review-entering .issue-card:nth-child(2) {
  animation-delay: 150ms;
}

.review-entering .issue-card:nth-child(3) {
  animation-delay: 210ms;
}

.review-entering .issue-card:nth-child(4) {
  animation-delay: 270ms;
}

.scene-warping .portrait-token {
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(var(--push-x), calc(var(--push-y) + 10px), 0) scale(0.96);
}

.scene-entering .event-card:nth-child(1) {
  animation-delay: 90ms;
}

.scene-entering .event-card:nth-child(2) {
  animation-delay: 150ms;
}

.scene-entering .event-card:nth-child(3) {
  animation-delay: 210ms;
}

.detail-entering .works-heading {
  animation-delay: 100ms;
}

.detail-entering .work-card:nth-child(1) {
  animation-delay: 150ms;
}

.detail-entering .work-card:nth-child(2),
.detail-entering .work-card:nth-child(3) {
  animation-delay: 210ms;
}

.detail-entering .work-card:nth-child(n + 4) {
  animation-delay: 270ms;
}

.review-leaving .section-head,
.review-leaving .issue-card,
.scene-leaving .section-head,
.scene-leaving .event-card,
.detail-leaving .event-detail-hero,
.detail-leaving .works-heading,
.detail-leaving .works-empty,
.detail-leaving .work-card,
.profile-leaving .portrait-frame,
.profile-leaving .signal-orbit,
.profile-leaving .profile-card > * {
  animation: contentLeave 520ms cubic-bezier(0.72, 0, 0.16, 1) both;
}

.review-leaving .issue-card:nth-child(1),
.scene-leaving .event-card:nth-child(1) {
  animation-delay: 60ms;
}

.review-leaving .issue-card:nth-child(2),
.scene-leaving .event-card:nth-child(2) {
  animation-delay: 30ms;
}

.review-leaving .issue-card:nth-child(3),
.scene-leaving .event-card:nth-child(3) {
  animation-delay: 0ms;
}

.review-leaving .issue-card:nth-child(4) {
  animation-delay: 0ms;
}

.scene-returning .home-mark {
  animation: homeFadeBack 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scene-returning .portrait-token {
  animation: portraitFadeBack 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.soft-home-leaving > .back-button,
.soft-home-leaving > .admin-topbar,
.soft-home-leaving > .content-shell,
.soft-home-leaving > .forest-frame {
  animation: softPageLeave 360ms cubic-bezier(0.72, 0, 0.16, 1) both;
}

.soft-home-returning .home-mark {
  animation: homeFadeBack 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.soft-home-returning .portrait-token {
  animation: portraitFadeBack 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.event-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.scene-admin-inline {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 30px;
}

.scene-admin-inline[hidden] {
  display: none;
}

.scene-create-entry {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.scene-create-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 22px;
  color: #f8f8f3;
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 16px;
  font-style: italic;
  background: #171717;
  border: 1px solid #171717;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.scene-create-event-button svg {
  width: 32px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 180ms ease;
}

.scene-create-event-button:hover,
.scene-create-event-button:focus-visible {
  background: #60704a;
  border-color: #60704a;
  transform: translateY(-2px);
}

.scene-create-event-button:hover svg,
.scene-create-event-button:focus-visible svg {
  transform: translateX(4px);
}

.scene-admin-cards {
  margin-top: 0;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 12px;
  overflow: hidden;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}

.event-visual {
  grid-column: 1 / -1;
  min-height: 270px;
  margin: 0;
  background: #151515;
  overflow: hidden;
  position: relative;
}

.event-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-visual::before {
  content: none;
}

.event-visual::after {
  content: none;
}

.primary-event {
  grid-row: auto;
  align-content: start;
  min-height: 0;
  background: transparent;
}

.event-date {
  display: grid;
  place-items: center;
  align-content: start;
  min-height: 92px;
  padding-top: 14px;
  color: #f8f8f3;
  background: #171717;
}

.event-date span {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.event-date strong {
  font-size: 42px;
  line-height: 0.9;
  font-weight: 400;
}

.event-kicker {
  margin-bottom: 10px;
  color: rgba(96, 112, 74, 0.86) !important;
}

.event-state-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 15px;
  color: rgba(25, 25, 22, 0.58);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-state-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.event-state-row span:not(.event-status-badge)::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(96, 112, 74, 0.5);
}

.event-state-row.is-compact {
  margin: 8px 0 12px;
}

.event-status-badge {
  padding: 4px 8px 3px;
  color: rgba(25, 25, 22, 0.78);
  background: rgba(255, 255, 250, 0.58);
  border: 1px solid rgba(23, 23, 23, 0.12);
}

.event-status-badge.status-live {
  color: #3f4e2f;
  background: rgba(229, 196, 88, 0.2);
  border-color: rgba(196, 150, 37, 0.38);
  box-shadow: 0 0 16px rgba(229, 196, 88, 0.18);
}

.event-status-badge.status-upcoming {
  color: #4e5f3b;
  background: rgba(96, 112, 74, 0.12);
  border-color: rgba(96, 112, 74, 0.24);
}

.event-status-badge.status-ended {
  color: rgba(25, 25, 22, 0.54);
  background: rgba(23, 23, 23, 0.05);
}

.speaker-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 18px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.speaker-row span {
  min-width: 0;
  padding: 0;
  color: rgba(25, 25, 22, 0.62);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  text-transform: uppercase;
}

.speaker-row span::before {
  content: "#";
  color: rgba(96, 112, 74, 0.8);
}

.speaker-row span:nth-child(n + 4) {
  display: none;
}

.detail-shell {
  max-width: 1240px;
}

.event-detail-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(360px, 1.06fr);
  gap: 42px;
  align-items: end;
  margin: 16px 0 62px;
}

.event-detail-screen.is-creation-mode .event-detail-hero {
  grid-template-columns: minmax(0, 760px);
  align-items: start;
  margin-bottom: 28px;
}

.event-detail-screen.is-creation-mode .event-detail-copy h2 {
  max-width: 760px;
}

.event-detail-screen.is-creation-mode .event-detail-intro,
.event-detail-screen.is-creation-mode .event-meta {
  display: none;
}

.event-detail-copy h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(48px, 5.7vw, 78px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.96;
}

.event-detail-intro {
  max-width: 580px;
  margin: 25px 0 0;
  color: rgba(25, 25, 22, 0.64);
  font-size: 17px;
  line-height: 1.68;
}

.event-meta {
  display: flex;
  gap: 34px;
  margin: 38px 0 0;
}

.event-meta div {
  min-width: 88px;
}

.event-meta dt {
  margin-bottom: 10px;
  color: rgba(25, 25, 22, 0.44);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-meta dd {
  margin: 0;
  color: rgba(25, 25, 22, 0.84);
  font-size: 19px;
  font-style: italic;
}

.event-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 580px);
  margin-top: 24px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
}

.event-action-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(25, 25, 22, 0.56);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-action-copy strong {
  color: rgba(25, 25, 22, 0.75);
  font-size: inherit;
}

.event-primary-action {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  color: rgba(25, 25, 22, 0.82);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(23, 23, 23, 0.2);
  background: rgba(255, 255, 250, 0.46);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.event-primary-action:hover,
.event-primary-action:focus-visible {
  background: rgba(229, 196, 88, 0.16);
  border-color: rgba(196, 150, 37, 0.38);
  transform: translateY(-1px);
}

.event-detail-cover {
  position: relative;
  margin: 0;
  min-height: 472px;
  overflow: hidden;
  background: #171717;
}

.event-detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 7, 5, 0.62), transparent 36%);
}

.event-detail-cover figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  color: rgba(248, 248, 243, 0.78);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.works-section {
  padding: 42px 0 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
}

.event-archive-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: rgba(25, 25, 22, 0.54);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.event-archive-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.event-archive-metrics span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(96, 112, 74, 0.76);
}

.activity-archive-section {
  padding-bottom: 50px;
}

.activity-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.activity-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(255, 255, 250, 0.42);
}

.photos-panel {
  grid-column: auto;
  grid-row: auto;
}

.guests-panel {
  grid-column: auto;
}

.articles-panel {
  grid-column: auto;
}

.activity-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  padding-bottom: 12px;
}

.activity-panel-head h4 {
  margin: 0;
  color: rgba(25, 25, 22, 0.86);
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.activity-panel-head span {
  flex: 0 0 auto;
  color: rgba(96, 112, 74, 0.86);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.guest-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.guest-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.74) brightness(1.05);
  box-shadow: 0 10px 24px rgba(33, 32, 27, 0.12);
}

.guest-card h5 {
  margin: 0 0 4px;
  color: rgba(25, 25, 22, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.guest-card p {
  margin: 0;
  color: rgba(25, 25, 22, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.photo-wall {
  display: block;
}

.scene-detail-admin {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(255, 255, 250, 0.44);
}

.scene-detail-admin[hidden] {
  display: none;
}

.detail-admin-head,
.detail-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-admin-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.detail-admin-head .eyebrow,
.detail-admin-head h3,
.detail-admin-card h4 {
  margin: 0;
}

.detail-admin-head h3 {
  color: rgba(25, 25, 22, 0.88);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.detail-admin-actions,
.detail-admin-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-admin-actions button,
.detail-admin-card-head button,
.detail-admin-item button,
.detail-file-upload {
  min-height: 34px;
  padding: 0 12px;
  color: rgba(25, 25, 22, 0.76);
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.64);
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  cursor: pointer;
}

.detail-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.detail-cover-field {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(112px, 160px) 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 250, 0.38);
}

.detail-cover-field figure,
.guest-avatar-preview {
  margin: 0;
  overflow: hidden;
  background: #171717;
}

.detail-cover-field figure {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.detail-cover-field img,
.guest-avatar-preview img,
.photo-set-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-admin-actions .primary {
  color: #f8f8f3;
  background: #171717;
  border-color: #171717;
}

.detail-admin-actions .danger,
.detail-admin-item button {
  color: #9a4232;
  background: rgba(255, 255, 250, 0.44);
  border-color: rgba(154, 66, 50, 0.26);
}

.detail-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.detail-admin-footer > button {
  min-height: 34px;
  padding: 0 12px;
  color: #9a4232;
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.44);
  border: 1px solid rgba(154, 66, 50, 0.26);
  border-radius: 999px;
  cursor: pointer;
}

.detail-admin-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(255, 255, 250, 0.5);
}

.detail-admin-card.span-two {
  grid-column: 1 / -1;
}

.detail-admin-fields,
.detail-admin-list,
.detail-admin-item {
  display: grid;
  gap: 9px;
}

.detail-admin-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.detail-admin-fields .span-two {
  grid-column: 1 / -1;
}

.detail-admin-list {
  margin-top: 12px;
}

.detail-admin-list.photo-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-admin-item {
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  background: rgba(255, 255, 250, 0.48);
}

.guest-editor-item {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
}

.guest-editor-item > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.76) brightness(1.04);
}

.guest-editor-copy {
  min-width: 0;
}

.guest-editor-copy strong,
.guest-editor-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-editor-copy strong {
  color: rgba(25, 25, 22, 0.86);
  font: 800 13px ui-sans-serif, system-ui, sans-serif;
}

.guest-editor-copy span {
  margin-top: 4px;
  color: rgba(25, 25, 22, 0.54);
  font: 600 11px/1.35 ui-sans-serif, system-ui, sans-serif;
}

.guest-editor-actions {
  display: flex;
  gap: 7px;
}

.guest-editor-actions button:first-child {
  color: rgba(25, 25, 22, 0.76);
  border-color: rgba(23, 23, 23, 0.14);
}

.photo-set-item {
  gap: 10px;
}

.photo-set-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: rgba(248, 248, 243, 0.72);
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  background: #171717;
  border-radius: 6px;
}

.photo-set-empty {
  margin: 4px 0;
  color: rgba(25, 25, 22, 0.42);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
}

.detail-admin-fields input,
.detail-admin-fields select,
.detail-admin-fields textarea,
.detail-admin-item input,
.detail-admin-item textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #171717;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
}

.detail-admin-fields textarea,
.detail-admin-item textarea {
  resize: vertical;
}

.detail-admin-fields input:focus,
.detail-admin-fields select:focus,
.detail-admin-fields textarea:focus,
.detail-admin-item input:focus,
.detail-admin-item textarea:focus {
  outline: none;
  background: #fffefa;
  border-color: rgba(96, 112, 74, 0.62);
  box-shadow: 0 0 0 3px rgba(96, 112, 74, 0.13);
}

.guest-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 710;
  display: grid;
  place-items: center;
  padding: 22px;
}

.guest-modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(12, 12, 10, 0.42);
  border: 0;
  cursor: pointer;
}

.guest-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  padding: 22px;
  overflow: auto;
  background: #f8f7ef;
  border: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: 0 28px 80px rgba(12, 12, 10, 0.22);
}

.guest-modal-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.guest-avatar-field {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.guest-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.guest-modal-fields {
  display: grid;
  gap: 10px;
}

.guest-modal-fields input,
.guest-modal-fields textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #171717;
  font: 650 13px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.68);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
}

.guest-modal-fields textarea {
  resize: vertical;
}

.guest-modal-fields input:focus,
.guest-modal-fields textarea:focus {
  outline: none;
  background: #fffefa;
  border-color: rgba(96, 112, 74, 0.62);
  box-shadow: 0 0 0 3px rgba(96, 112, 74, 0.13);
}

.coverflow-wall {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: rgba(255, 255, 250, 0.42);
  isolation: isolate;
  outline: none;
  touch-action: pan-y;
  user-select: none;
}

.coverflow-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--cf-z);
  width: var(--cf-w);
  height: var(--cf-h);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: var(--cf-opacity);
  background: #24241f;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 250, 0.08);
  cursor: pointer;
  transform: translate(calc(-50% + var(--cf-x)), -50%);
  transition:
    opacity 180ms ease,
    box-shadow 260ms ease;
}

.coverflow-card.is-active {
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 250, 0.12);
}

.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: saturate(0.86) contrast(0.98);
}

.coverflow-arrow {
  position: absolute;
  top: 50%;
  z-index: 2000;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: rgba(25, 25, 22, 0.78);
  background: rgba(255, 255, 250, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(33, 32, 27, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.coverflow-arrow:hover,
.coverflow-arrow:focus-visible {
  color: #171717;
  background: #fffefa;
  transform: translateY(-50%) scale(1.04);
}

.coverflow-prev {
  left: 16px;
}

.coverflow-next {
  right: 16px;
}

.coverflow-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coverflow-meta {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: rgba(25, 25, 22, 0.72);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.coverflow-meta span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coverflow-meta strong {
  max-width: 62%;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-article {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.09);
  color: inherit;
  text-decoration: none;
}

.related-article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related-article span {
  display: block;
  margin-bottom: 6px;
  color: rgba(96, 112, 74, 0.86);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-article h5 {
  margin: 0 0 6px;
  color: rgba(25, 25, 22, 0.88);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.14;
}

.related-article p {
  margin: 0;
  color: rgba(25, 25, 22, 0.56);
  font-size: 12px;
  line-height: 1.52;
}

.admin-screen {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 16% 8%, rgba(255, 255, 250, 0.72), transparent 34%),
    linear-gradient(180deg, #f6f2e8 0%, #e7dfcf 100%);
}

.admin-shell {
  max-width: 1280px;
  margin-top: 14px;
}

.admin-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.admin-topbar h2 {
  margin: 0;
  color: #171717;
  font: 800 17px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.admin-head {
  max-width: 1280px;
}

.admin-screen .admin-review-section {
  margin-top: 26px;
}

.admin-screen .admin-console {
  gap: 26px;
}

.admin-screen .admin-editor {
  padding: 0;
}

.admin-screen .admin-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-screen .admin-editor-grid .span-two {
  grid-column: 1 / -1;
}

.admin-screen .admin-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-works-section,
.admin-review-section {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.role-layer {
  position: fixed;
  inset: 0;
  z-index: 292;
  display: flex;
  justify-content: flex-end;
}

.role-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 20, 0.28);
  border: 0;
}

.role-panel {
  position: relative;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 34px 34px 28px;
  overflow-y: auto;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(248, 245, 237, 0.94), rgba(238, 232, 219, 0.96)),
    #f8f5ed;
  box-shadow: -30px 0 72px rgba(33, 32, 27, 0.16);
  animation: submissionSlideIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.role-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.11);
}

.role-head .eyebrow {
  margin-bottom: 12px;
}

.role-head h3 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 48px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.role-state {
  margin: 14px 0 0;
  color: rgba(25, 25, 22, 0.5);
  font: 600 12px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.role-layer[data-mode="admin"] .role-state,
.role-layer[data-mode="admin"] [data-sign-out] {
  display: none !important;
}

.role-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.workspace-heading {
  margin-bottom: 19px;
}

.workspace-heading .eyebrow {
  margin-bottom: 11px;
}

.workspace-heading h4 {
  margin: 0;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

.workspace-heading p:not(.eyebrow) {
  margin: 11px 0 0;
  color: rgba(25, 25, 22, 0.56);
  font-size: 14px;
  line-height: 1.6;
}

.admin-console {
  display: grid;
  gap: 20px;
}

.admin-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-head-row h2 {
  margin: 0;
  font: 800 14px ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 30px;
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
}

.admin-tabs[hidden] {
  display: none;
}

.admin-tabs button {
  min-height: 30px;
  padding: 0 14px;
  color: rgba(25, 25, 22, 0.7);
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  background: transparent;
  border: 1px solid rgba(23, 23, 23, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.admin-tabs button:hover {
  border-color: rgba(23, 23, 23, 0.5);
  color: #171717;
}

.admin-shell[data-tab="events"] [data-admin-tab="events"],
.admin-shell[data-tab="works"] [data-admin-tab="works"],
.admin-shell[data-tab="issues"] [data-admin-tab="issues"] {
  color: #f8f8f3;
  background: #171717;
  border-color: #171717;
}

.admin-pane {
  display: grid;
  gap: 18px;
}

.admin-editor {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  padding: 16px;
  background: transparent;
  border: 0;
}

.admin-preview-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 250, 0.58);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 22px 58px rgba(33, 32, 27, 0.09);
}

.admin-preview-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #171717;
}

.admin-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-preview-media span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: #171717;
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  background: rgba(248, 248, 243, 0.82);
}

.admin-preview-body {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  padding: 22px;
}

.admin-preview-body h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.admin-preview-body > p:not(.work-meta) {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  font-size: 14px;
  line-height: 1.64;
}

.admin-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.admin-preview-tags span {
  padding: 7px 10px;
  color: rgba(25, 25, 22, 0.68);
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  background: rgba(223, 230, 197, 0.42);
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding: 0;
  background: transparent;
  border: 0;
}

.admin-editor-grid .span-two {
  grid-column: 1 / -1;
}

.admin-editor label {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 78px;
  padding: 14px;
  color: rgba(25, 25, 22, 0.66);
  font: 700 11px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.5);
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.admin-editor label:focus-within {
  background: rgba(255, 255, 250, 0.76);
  border-color: rgba(23, 23, 23, 0.24);
}

.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-height: 24px;
  padding: 0;
  color: #171717;
  font: 500 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.admin-editor textarea {
  min-height: 78px;
  resize: vertical;
}

.admin-editor-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 2px;
}

.admin-editor-actions button,
.admin-list-item .status-actions button {
  min-height: 36px;
  padding: 0 12px;
  color: rgba(25, 25, 22, 0.72);
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 250, 0.54);
  border: 1px solid rgba(23, 23, 23, 0.11);
  cursor: pointer;
}

.admin-editor-actions button[type="submit"],
.admin-list-item .status-actions button[data-review-action="published"] {
  color: #f8f8f3;
  background: #171717;
  border-color: #171717;
}

.admin-list-item .status-actions button.is-confirming,
.status-actions button.is-confirming {
  color: #f8f8f3;
  background: #8b4333;
  border-color: #8b4333;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 210px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 250, 0.58), rgba(248, 245, 237, 0.74)),
    rgba(248, 245, 237, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 16px 42px rgba(33, 32, 27, 0.07);
}

.admin-list-item h5 {
  margin: 0 0 8px;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.admin-list-item p {
  margin: 0;
  color: rgba(25, 25, 22, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.admin-list-item .status-actions {
  align-self: end;
  justify-content: flex-start;
}

.outline-action,
.admin-login button,
.status-actions button,
.status-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: rgba(25, 25, 22, 0.78);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  background: rgba(255, 255, 250, 0.62);
  border: 1px solid rgba(23, 23, 23, 0.13);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.outline-action:hover,
.outline-action:focus-visible,
.admin-login button:hover,
.admin-login button:focus-visible,
.status-actions button:hover,
.status-actions button:focus-visible,
.status-actions a:hover,
.status-actions a:focus-visible {
  color: #171717;
  background: rgba(255, 255, 250, 0.96);
  border-color: rgba(23, 23, 23, 0.3);
}

.outline-action.muted {
  color: rgba(25, 25, 22, 0.48);
}

.compact-heading {
  align-items: start;
  margin-bottom: 18px;
}

.compact-heading h3 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 18px 16px;
  background: rgba(248, 245, 237, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.status-item.status-published {
  border-color: rgba(96, 112, 74, 0.34);
}

.status-item.status-needs_changes,
.status-item.status-rejected {
  border-color: rgba(139, 67, 51, 0.2);
}

.status-copy h4 {
  margin: 0 0 8px;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.status-copy > p {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  line-height: 1.55;
}

.status-detail {
  margin-top: 10px !important;
  color: rgba(25, 25, 22, 0.42) !important;
  font: 600 11px ui-sans-serif, system-ui, sans-serif;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-login {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-login label {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
  color: rgba(25, 25, 22, 0.7);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
}

.admin-login input {
  height: 44px;
  padding: 0 13px;
  color: #171717;
  background: rgba(255, 255, 251, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.13);
}

.admin-login p,
.admin-empty {
  margin: 0;
  color: #8b4333;
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
}

.works-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.works-heading .eyebrow {
  margin-bottom: 12px;
}

.works-heading h3 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.works-heading > p {
  max-width: 456px;
  margin: 0 0 4px;
  color: rgba(25, 25, 22, 0.62);
  line-height: 1.64;
}

.works-callout {
  max-width: 456px;
  display: grid;
  justify-items: start;
  gap: 20px;
}

.works-callout p {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  line-height: 1.64;
}

.submit-work-button,
.empty-submit-button,
.submission-cancel,
.submission-publish {
  border: 0;
  cursor: pointer;
}

.submit-work-button {
  min-height: 46px;
  padding: 0 22px;
  color: #f8f8f3;
  font-size: 16px;
  font-style: italic;
  background: #171717;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.submit-work-button:hover,
.submit-work-button:focus-visible {
  background: #60704a;
  transform: translateY(-2px);
}

.submit-work-button:disabled,
.empty-submit-button:disabled {
  color: rgba(25, 25, 22, 0.42);
  background: rgba(255, 255, 250, 0.52);
  border: 1px solid rgba(23, 23, 23, 0.1);
  cursor: not-allowed;
  transform: none;
}

.works-empty {
  display: grid;
  justify-items: center;
  min-height: 398px;
  padding: 58px 24px 52px;
  text-align: center;
  border: 1px dashed rgba(23, 23, 23, 0.16);
  background:
    radial-gradient(circle at 50% 12%, rgba(153, 170, 118, 0.16), transparent 42%),
    rgba(255, 255, 250, 0.33);
}

.works-empty[hidden],
.works-grid[hidden],
.submission-layer[hidden] {
  display: none;
}

.empty-kicker {
  margin: 0 0 20px;
  color: rgba(96, 112, 74, 0.9);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.works-empty h4 {
  max-width: 610px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 60px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.04;
}

.works-empty > p:not(.empty-kicker) {
  max-width: 510px;
  margin: 0 0 32px;
  color: rgba(25, 25, 22, 0.62);
  font-size: 16px;
  line-height: 1.7;
}

.empty-submit-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 0 28px;
  color: #f8f8f3;
  font-size: 18px;
  font-style: italic;
  background: #171717;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.empty-submit-button svg {
  width: 32px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 180ms ease;
}

.empty-submit-button:hover,
.empty-submit-button:focus-visible {
  background: #60704a;
  transform: translateY(-2px);
}

.empty-submit-button:hover svg,
.empty-submit-button:focus-visible svg {
  transform: translateX(4px);
}

.empty-note {
  margin-top: 25px;
  color: rgba(25, 25, 22, 0.42);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

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

.works-grid.single-work {
  grid-template-columns: minmax(280px, 414px);
}

.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 250, 0.46);
  border: 1px solid rgba(23, 23, 23, 0.07);
  transition:
    box-shadow 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover {
  box-shadow: 0 18px 46px rgba(33, 32, 27, 0.1);
  transform: translateY(-5px);
}

.work-card > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #171717;
}

.featured-work {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(245px, 1.08fr) minmax(250px, 0.92fr);
  grid-row: span 2;
}

.featured-work > img {
  height: 100%;
  min-height: 412px;
}

.work-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.work-meta {
  margin: 0 0 13px;
  color: rgba(96, 112, 74, 0.86);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-copy h4 {
  margin: 0 0 12px;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.08;
}

.featured-work .work-copy h4 {
  font-size: clamp(34px, 3.4vw, 46px);
}

.work-copy > p:last-of-type {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  font-size: 14px;
  line-height: 1.62;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: auto;
  padding-top: 29px;
  color: rgba(18, 18, 16, 0.86);
  font-size: 17px;
  font-style: italic;
  text-decoration: none;
  transition: color 180ms ease;
}

.work-link svg {
  width: 32px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  transition: transform 180ms ease;
}

.work-link:hover,
.work-link:focus-visible {
  color: #60704a;
}

.work-link:hover svg,
.work-link:focus-visible svg {
  transform: translateX(4px);
}

.work-actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
}

.work-actions .work-link {
  margin-top: 0;
}

.work-delete {
  padding: 29px 0 2px;
  color: rgba(25, 25, 22, 0.45);
  font: 500 12px ui-sans-serif, system-ui, sans-serif;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}

.work-delete:hover,
.work-delete:focus-visible {
  color: rgba(25, 25, 22, 0.76);
}

.work-delete.is-confirming {
  color: #8b4333;
}

body.submission-open,
body.guest-modal-open {
  overflow: hidden;
}

body.role-open {
  overflow: hidden;
}

.submission-layer {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  justify-content: flex-end;
}

.submission-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 20, 0.33);
  border: 0;
}

.submission-panel {
  position: relative;
  width: min(610px, 100vw);
  height: 100vh;
  padding: 34px 38px 30px;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 80% 4%, rgba(153, 170, 118, 0.17), transparent 35%),
    #f8f5ed;
  box-shadow: -28px 0 64px rgba(33, 32, 27, 0.16);
  animation: submissionSlideIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.submission-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.submission-head .eyebrow {
  margin-bottom: 13px;
}

.submission-head h3 {
  margin: 0;
  font-size: clamp(39px, 5vw, 50px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.submission-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: rgba(25, 25, 22, 0.58);
  background: transparent;
  border: 1px solid rgba(25, 25, 22, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.submission-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.submission-close:hover,
.submission-close:focus-visible {
  color: #171717;
  border-color: rgba(25, 25, 22, 0.26);
}

.submission-intro {
  margin: 20px 0 30px;
  padding-bottom: 25px;
  color: rgba(25, 25, 22, 0.58);
  line-height: 1.66;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.submission-form fieldset,
.identity-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.submission-form legend,
.identity-form legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin-bottom: 19px;
  color: rgba(25, 25, 22, 0.86);
  font-size: 20px;
  font-style: italic;
}

.submission-form legend span:first-child,
.identity-form legend span:first-child {
  color: rgba(96, 112, 74, 0.76);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.submission-fields {
  display: grid;
  gap: 17px;
}

.login-required-copy {
  padding: 18px 18px 16px;
  background: rgba(255, 255, 250, 0.46);
  border: 1px solid rgba(23, 23, 23, 0.1);
}

.login-required-copy p {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  font-size: 14px;
  line-height: 1.62;
}

.submission-fields.paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submission-fields label {
  display: grid;
  gap: 9px;
  color: rgba(25, 25, 22, 0.7);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.submission-fields .span-two {
  grid-column: 1 / -1;
}

.submission-fields input:not([type="checkbox"]):not([type="file"]),
.submission-fields select,
.submission-fields textarea {
  width: 100%;
  padding: 13px 14px;
  color: #171717;
  font: 400 14px/1.45 ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 251, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.13);
  border-radius: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

.submission-fields input:not([type="checkbox"]):not([type="file"]),
.submission-fields select {
  height: 50px;
}

.submission-fields textarea {
  resize: vertical;
  min-height: 92px;
}

.submission-fields input:focus,
.submission-fields select:focus,
.submission-fields textarea:focus {
  outline: none;
  border-color: #60704a;
  background: #fffefa;
}

.cover-upload input {
  padding: 12px 0 0;
  color: rgba(25, 25, 22, 0.58);
  font: 400 12px ui-sans-serif, system-ui, sans-serif;
}

.file-help {
  color: rgba(25, 25, 22, 0.43);
  font-size: 11px;
  font-weight: 400;
}

.cover-preview {
  position: relative;
  margin: 0;
  height: 130px;
  overflow: hidden;
  background: #171717;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview figcaption {
  position: absolute;
  bottom: 9px;
  left: 10px;
  color: rgba(248, 248, 243, 0.86);
  font: 700 9px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.consent-field {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 11px !important;
  color: rgba(25, 25, 22, 0.58) !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.consent-field input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #60704a;
}

.submission-feedback {
  min-height: 22px;
  margin: -6px 0 14px;
  color: #8b4333;
  font: 500 12px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.submission-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}

.submission-cancel,
.submission-publish {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-style: italic;
}

.submission-cancel {
  color: rgba(25, 25, 22, 0.72);
  background: transparent;
  border: 1px solid rgba(23, 23, 23, 0.14);
}

.submission-publish {
  color: #f8f8f3;
  background: #171717;
}

.submission-publish:hover,
.submission-publish:focus-visible {
  background: #60704a;
}

.submission-toast {
  position: fixed;
  right: 34px;
  bottom: 28px;
  z-index: 720;
  margin: 0;
  padding: 14px 19px;
  color: rgba(248, 248, 243, 0.96);
  font: 500 13px ui-sans-serif, system-ui, sans-serif;
  background: #3e4c33;
  box-shadow: 0 18px 45px rgba(33, 32, 27, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.submission-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes submissionSlideIn {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-screen {
  position: relative;
  min-height: 100vh;
  padding: 58px 48px 52px;
  color: #171717;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(255, 255, 255, 0.86), transparent 38%),
    radial-gradient(ellipse at 88% 82%, rgba(96, 112, 74, 0.18), transparent 42%),
    linear-gradient(180deg, #f7f3eb 0%, #e8e2d5 58%, #dcd4c4 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.profile-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 44%, rgba(20, 20, 18, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(20, 20, 18, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 20, 18, 0.026) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  opacity: 0.8;
}

.profile-screen::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 13%;
  width: min(430px, 36vw);
  height: min(430px, 36vw);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 28px, rgba(23, 23, 23, 0.035) 29px 30px),
    radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 68%);
  filter: blur(0.2px);
  opacity: 0.8;
  pointer-events: none;
}

.profile-preparing .portrait-frame,
.profile-preparing .signal-orbit,
.profile-preparing .profile-card > * {
  opacity: 0;
}

.profile-preparing.profile-portrait-reveal .portrait-frame,
.profile-preparing.profile-portrait-reveal .signal-orbit {
  opacity: 1;
  transition:
    opacity 260ms ease,
    filter 260ms ease;
}

.profile-entering .portrait-frame,
.profile-entering .signal-orbit {
  animation: profilePortraitSettle 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-entering .profile-tags,
.profile-entering .eyebrow,
.profile-entering .profile-card h2,
.profile-entering .profile-role,
.profile-entering .profile-copy,
.profile-entering .profile-tree-entry {
  animation: profileWipeIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-entering .profile-tags {
  animation-delay: 120ms;
}

.profile-entering .eyebrow {
  animation-delay: 190ms;
}

.profile-entering .profile-card h2 {
  animation-delay: 260ms;
}

.profile-entering .profile-role {
  animation-delay: 360ms;
}

.profile-entering .profile-copy {
  animation-delay: 460ms;
}

.profile-entering .profile-copy.secondary {
  animation-delay: 560ms;
}

.profile-entering .profile-tree-entry {
  animation-delay: 680ms;
}

.back-button {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: rgba(28, 28, 24, 0.76);
  background: transparent;
  border: 0;
  box-shadow: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.back-button svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button:hover,
.back-button:focus-visible {
  color: rgba(18, 18, 16, 0.96);
  transform: translateX(-2px);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 40px 64px;
  max-width: 1220px;
  min-height: calc(100vh - 118px);
  margin: 10px auto 0;
  position: relative;
  z-index: 2;
}

.profile-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 500px;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(410px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 250, 0.28);
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 34px 86px rgba(33, 32, 27, 0.18),
    0 0 0 1px rgba(255, 255, 250, 0.62);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 250, 0.54);
  border-radius: 52% 48% 49% 51% / 48% 54% 46% 52%;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 30%;
  filter: saturate(0.92) contrast(1.04) brightness(1.05);
}

.signal-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.orbit-a {
  inset: 8% 0 9% 0;
}

.orbit-b {
  inset: 18% -4% 7% 10%;
  border-color: rgba(101, 120, 78, 0.22);
  transform: rotate(12deg);
}

.profile-coordinates {
  position: absolute;
  left: 22px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  gap: 7px;
  color: rgba(28, 28, 24, 0.64);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.profile-coordinates span {
  width: max-content;
  padding: 7px 10px;
  background: rgba(255, 255, 250, 0.66);
  border: 1px solid rgba(23, 23, 23, 0.1);
}

.eyebrow {
  margin: 0 0 14px;
  color: #60704a;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[lang="zh"] .scene-screen .section-head .eyebrow {
  text-transform: none;
}

.profile-card {
  align-self: center;
  padding: 10px 0 10px 0;
}

.profile-card h2 {
  margin: 0;
  max-width: 720px;
  color: #11110f;
  font-size: 82px;
  line-height: 0.92;
  font-weight: 400;
  font-style: italic;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.profile-tags span {
  position: relative;
  padding: 0 2px 3px;
  color: rgba(28, 28, 24, 0.7);
  font-family: "Bradley Hand", "Segoe Print", "Kaiti SC", cursive;
  font-size: 17px;
  font-weight: 500;
  background: transparent;
  border: 0;
  transform: rotate(-1deg);
}

.profile-tags span:nth-child(2) {
  transform: rotate(1.1deg);
}

.profile-tags span::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -7px;
  bottom: 0;
  height: 7px;
  z-index: -1;
  background: rgba(153, 170, 118, 0.24);
  border-radius: 999px 42% 999px 38%;
  transform: rotate(-1.6deg);
}

.profile-role {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(70, 92, 62, 0.82);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.profile-copy {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(25, 25, 22, 0.72);
  font-size: 18px;
  line-height: 1.58;
}

.profile-copy.secondary {
  color: rgba(25, 25, 22, 0.58);
  font-size: 15px;
  line-height: 1.74;
}

.primary-button {
  min-height: 58px;
  padding: 0 24px;
  color: #f8f8f3;
  background: #171717;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(33, 32, 27, 0.16);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #3f4d34;
}

.profile-tree-entry {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 32px;
}

.tree-stats {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  color: rgba(25, 25, 22, 0.68);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tree-stat-item {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.tree-stats i {
  color: rgba(25, 25, 22, 0.26);
  font-style: normal;
}

.tree-stats strong {
  display: inline-block;
  color: rgba(17, 17, 15, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  line-height: 0.9;
}

.inspiration-stat strong {
  min-width: 2ch;
}

.tree-stats strong.is-ticking {
  animation: numberTick 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tree-gate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px 2px;
  color: rgba(18, 18, 16, 0.86);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition:
    color 220ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tree-gate::before {
  content: "";
  position: absolute;
  inset: 2px 0 4px;
  z-index: -1;
  border: 1.25px solid rgba(18, 18, 16, 0.34);
  border-radius: 54% 46% 51% 49% / 52% 54% 46% 48%;
  transform: rotate(-1deg);
  animation: liquidLoopAlt 8.2s ease-in-out infinite alternate;
}

.tree-gate::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 8px;
  z-index: -1;
  height: 5px;
  background: rgba(153, 170, 118, 0.2);
  border-radius: 999px 38% 999px 46%;
  transform: rotate(-1.8deg) scaleX(0.76);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.tree-gate svg {
  width: 38px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(1px);
  transition: transform 220ms ease;
}

.tree-gate:hover,
.tree-gate:focus-visible {
  color: #111;
  transform: translateY(-2px);
}

.tree-gate:hover::before,
.tree-gate:focus-visible::before {
  border-color: rgba(18, 18, 16, 0.56);
  animation-duration: 4.9s;
}

.tree-gate:hover::after,
.tree-gate:focus-visible::after {
  opacity: 1;
  transform: rotate(-1.8deg) scaleX(1);
}

.tree-gate:hover svg,
.tree-gate:focus-visible svg {
  transform: translate(4px, 1px);
}

.tree-reactions {
  position: absolute;
  left: 28px;
  top: -5px;
  z-index: 3;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tree-reactions span {
  position: absolute;
  left: 0;
  top: 0;
  color: #ffd7d7;
  font-size: var(--size);
  line-height: 1;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  animation: reactionBurst 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

.profile-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 133px));
  gap: 14px;
  width: min(100%, 434px);
  margin-top: 26px;
}

.mini-book {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  min-height: 0;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.44) 100%),
    var(--book-bg) center / cover no-repeat;
  border: 1px solid rgba(255, 255, 250, 0.32);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(33, 32, 27, 0.18);
  transform: translateY(var(--lift, 0));
  isolation: isolate;
}

.mini-book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 48%),
    rgba(0, 0, 0, 0.04);
}

.mini-book::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.mini-book span,
.mini-book strong,
.mini-book em {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.mini-book span {
  margin-bottom: 8px;
  color: rgba(255, 255, 250, 0.76);
  font: 700 10px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-book strong {
  max-width: 12ch;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 500;
  line-height: 1.02;
}

.mini-book em {
  margin-top: 9px;
  color: rgba(255, 255, 250, 0.78);
  font: 650 10px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-book:nth-child(2) {
  --lift: -10px;
}

.mini-book:nth-child(3) {
  --lift: -6px;
}

.tree-screen {
  position: relative;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #eeeae2;
}

.forest-frame {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
  background: #eeeae2;
  opacity: 0;
  transition: opacity 220ms ease;
}

.tree-screen.is-forest-ready .forest-frame {
  opacity: 1;
}

@keyframes portraitFloat {
  from {
    transform: translate(-50%, -50%)
      translate3d(calc(var(--push-x) + (var(--drift-x) * -1)), calc(var(--push-y) + (var(--drift-y) * -1)), 0)
      scale(var(--token-scale));
  }
  to {
    transform: translate(-50%, -50%)
      translate3d(calc(var(--push-x) + var(--drift-x)), calc(var(--push-y) + var(--drift-y)), 0)
      scale(var(--token-scale));
  }
}

@keyframes featuredPulse {
  from {
    transform: scale(0.94);
    opacity: 0.58;
  }
  to {
    transform: scale(1.08);
    opacity: 0.96;
  }
}

@keyframes speakingRipple {
  0% {
    opacity: 0;
    transform: scale(0.88);
    border-color: rgba(93, 110, 66, 0.5);
  }
  18% {
    opacity: 0.56;
  }
  78% {
    opacity: 0;
    transform: scale(1.58);
    border-color: rgba(93, 110, 66, 0.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.58);
    border-color: rgba(93, 110, 66, 0);
  }
}

@keyframes cursorSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursorCenterStill {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes liquidLoop {
  0% {
    border-radius: 60% 40% 48% 52% / 45% 58% 42% 55%;
    transform: rotate(-2.8deg) scale(1.02, 0.96);
  }
  28% {
    border-radius: 45% 55% 62% 38% / 58% 43% 57% 42%;
    transform: rotate(1.9deg) scale(0.965, 1.055);
  }
  62% {
    border-radius: 64% 36% 43% 57% / 51% 62% 38% 49%;
    transform: rotate(-1.2deg) scale(1.055, 0.97);
  }
  100% {
    border-radius: 42% 58% 54% 46% / 60% 44% 56% 40%;
    transform: rotate(2.6deg) scale(0.98, 1.045);
  }
}

@keyframes liquidLoopAlt {
  0% {
    border-radius: 43% 57% 61% 39% / 56% 42% 58% 44%;
    transform: rotate(2.4deg) scale(0.97, 1.055);
  }
  34% {
    border-radius: 62% 38% 44% 56% / 43% 60% 40% 57%;
    transform: rotate(-2.1deg) scale(1.055, 0.965);
  }
  68% {
    border-radius: 49% 51% 57% 43% / 62% 46% 54% 38%;
    transform: rotate(1.3deg) scale(0.96, 1.04);
  }
  100% {
    border-radius: 59% 41% 46% 54% / 48% 57% 43% 52%;
    transform: rotate(-2.7deg) scale(1.045, 0.975);
  }
}

@keyframes reviewFlyIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(56px) scale(0.94);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes contentLeave {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(42px) scale(0.96);
  }
}

@keyframes softPageLeave {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px) scale(0.975);
  }
}

@keyframes homeFadeBack {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -44%) scale(0.98);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -48%) scale(1);
  }
}

@keyframes portraitFadeBack {
  from {
    opacity: 0;
    filter: blur(8px) drop-shadow(0 18px 28px rgba(33, 30, 23, 0.12));
    transform: translate(-50%, -50%) translate3d(var(--push-x), calc(var(--push-y) + 12px), 0) scale(0.92);
  }
  to {
    opacity: 1;
    filter: blur(0) drop-shadow(0 18px 28px rgba(33, 30, 23, 0.12));
    transform: translate(-50%, -50%) translate3d(var(--push-x), var(--push-y), 0) scale(var(--token-scale));
  }
}

@keyframes profilePortraitSettle {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes profileWipeIn {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(8px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes numberTick {
  0% {
    transform: translateY(8px) scale(0.82);
    opacity: 0.2;
  }
  60% {
    transform: translateY(-3px) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes reactionBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4) rotate(-12deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--rx), var(--ry), 0) scale(1.18) rotate(16deg);
  }
}

@media (max-width: 880px) {
  .home-note {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .profile-screen {
    padding: 28px 20px 34px;
    overflow-y: auto;
  }

  .publication-screen {
    padding: 28px 20px 38px;
  }

  .scene-screen .section-head > p:last-child {
    white-space: normal;
  }

  .home-mark {
    top: 50%;
    width: min(350px, calc(100vw - 34px));
  }

  .home-mark h1 img {
    width: min(240px, 64vw);
  }

  .home-mark h1 {
    gap: 10px;
    font-size: clamp(58px, 18vw, 94px);
  }

  .home-mark p {
    margin-top: 28px;
  }

  .home-mark p::before,
  .home-mark p::after {
    width: 28px;
  }

  .home-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .home-entry {
    width: min(260px, 80vw);
  }

  .portrait-token {
    width: calc(var(--size) * 0.74);
  }

  .landing-cursor {
    display: none;
  }

  .magazine-grid,
  .event-board {
    grid-template-columns: 1fr;
  }

  .featured-issue {
    transform: none;
  }

  .issue-cover {
    min-height: 340px;
  }

  .event-card {
    grid-template-columns: 70px 1fr;
    padding: 18px;
  }

  .event-detail-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 12px 0 40px;
  }

  .event-detail-copy h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .event-meta {
    gap: 22px;
    justify-content: space-between;
  }

  .event-meta div {
    min-width: 0;
  }

  .event-action-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-primary-action {
    width: 100%;
  }

  .event-detail-cover {
    min-height: clamp(280px, 70vw, 410px);
  }

  .works-section {
    padding-top: 30px;
  }

  .activity-archive-grid {
    grid-template-columns: 1fr;
  }

  .guest-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  .photos-panel {
    grid-row: auto;
  }

  .coverflow-wall {
    min-height: clamp(280px, 76vw, 380px);
  }

  .coverflow-arrow {
    width: 40px;
    height: 40px;
  }

  .coverflow-prev {
    left: 10px;
  }

  .coverflow-next {
    right: 10px;
  }

  .coverflow-meta {
    right: 14px;
    bottom: 13px;
    left: 14px;
  }

  .role-head,
  .status-item {
    display: block;
  }

  .role-head-actions,
  .status-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .works-heading {
    display: block;
  }

  .works-callout {
    max-width: none;
    margin-top: 18px;
  }

  .works-empty {
    min-height: 352px;
    padding: 42px 20px 38px;
  }

  .works-empty h4 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-grid.single-work {
    grid-template-columns: 1fr;
  }

  .detail-admin-head,
  .detail-admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-admin-grid,
  .detail-admin-fields,
  .detail-admin-list.photo-list {
    grid-template-columns: 1fr;
  }

  .detail-admin-card.span-two,
  .detail-admin-fields .span-two {
    grid-column: auto;
  }

  .detail-cover-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .detail-admin-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .detail-admin-actions {
    width: 100%;
  }

  .detail-admin-actions button {
    flex: 1;
  }

  .guest-editor-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .guest-editor-item > img {
    width: 44px;
    height: 44px;
  }

  .guest-editor-actions {
    grid-column: 1 / -1;
  }

  .guest-modal-panel {
    padding: 20px;
  }

  .guest-avatar-field {
    grid-template-columns: 74px 1fr;
  }

  .guest-avatar-preview {
    width: 74px;
    height: 74px;
  }

  .featured-work {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .featured-work > img {
    min-height: 260px;
    height: 260px;
  }

  .work-card > img {
    height: 220px;
  }

  .submission-panel {
    padding: 25px 20px 22px;
  }

  .role-panel {
    padding: 25px 20px 22px;
  }

  .admin-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    grid-template-columns: 1fr;
  }

  .admin-screen .admin-editor-grid,
  .admin-screen .admin-list {
    grid-template-columns: 1fr;
  }

  .submission-fields.paired {
    grid-template-columns: 1fr;
  }

  .cover-preview {
    height: 178px;
  }

  .submission-actions {
    flex-direction: column-reverse;
  }

  .submission-cancel,
  .submission-publish {
    width: 100%;
  }

  .submission-toast {
    right: 20px;
    bottom: 20px;
    left: 20px;
    text-align: center;
  }

  .primary-event {
    grid-row: auto;
    min-height: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: 28px;
    margin-top: 24px;
  }

  .profile-visual {
    min-height: 360px;
  }

  .portrait-frame {
    width: min(300px, 82vw);
    margin: 0 auto;
  }

  .profile-card {
    padding: 0;
  }

  .profile-card h2 {
    font-size: 56px;
  }

  .profile-copy {
    font-size: 16px;
  }

  .profile-copy.secondary {
    font-size: 14px;
  }

  .profile-books {
    grid-template-columns: repeat(3, minmax(71px, 1fr));
    gap: 10px;
    width: min(100%, 366px);
    margin-top: 22px;
  }

  .mini-book {
    padding: 14px;
    transform: none;
  }

  .mini-book span {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .mini-book strong {
    max-width: 10ch;
    font-size: clamp(13px, 3.9vw, 20px);
  }

  .mini-book em {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .forest-frame {
    height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ============ My Works page ============ */
.my-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.my-works-grid[hidden] {
  display: none;
}

.my-work-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 250, 0.66);
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.my-work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 23, 23, 0.22);
  box-shadow: 0 20px 44px rgba(33, 32, 27, 0.14);
}

.my-work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #171717;
  overflow: hidden;
}

.my-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-work-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  color: #f6f7f2;
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(20, 22, 18, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.my-work-card.status-published .my-work-status {
  background: rgba(76, 92, 52, 0.92);
  border-color: transparent;
}

.my-work-card.status-rejected .my-work-status {
  background: rgba(150, 58, 45, 0.9);
  border-color: transparent;
}

.my-work-card.status-needs_changes .my-work-status {
  background: rgba(168, 120, 36, 0.92);
  border-color: transparent;
}

.my-work-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 18px 16px;
}

.my-work-meta {
  margin: 0;
  color: rgba(96, 112, 74, 0.92);
  font: 800 11px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.my-work-body h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #171717;
}

.my-work-summary {
  margin: 0;
  color: rgba(25, 25, 22, 0.64);
  font-size: 14px;
  line-height: 1.6;
}

.my-work-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.my-work-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171717;
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.my-work-open svg {
  width: 26px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.my-work-open:hover svg {
  transform: translateX(4px);
}

.my-work-delete {
  padding: 7px 12px;
  color: rgba(176, 64, 47, 0.92);
  font: 700 11px ui-sans-serif, system-ui, sans-serif;
  background: transparent;
  border: 1px solid rgba(176, 64, 47, 0.26);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.my-work-delete:hover,
.my-work-delete.is-confirming {
  background: rgba(176, 64, 47, 0.1);
  border-color: rgba(176, 64, 47, 0.5);
}

.my-works-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 460px;
  margin-top: 36px;
  padding: 32px;
  background: rgba(255, 255, 250, 0.5);
  border: 1px dashed rgba(23, 23, 23, 0.2);
  border-radius: 6px;
}

.my-works-empty .empty-kicker {
  margin: 0;
  font: 800 13px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #171717;
}

.my-works-empty p:not(.empty-kicker) {
  margin: 0;
  color: rgba(25, 25, 22, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ Admin inline-edit cards ============ */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.admin-edit-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 250, 0.72);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-edit-card:focus-within {
  border-color: rgba(23, 23, 23, 0.4);
  box-shadow: 0 16px 40px rgba(33, 32, 27, 0.14);
}

.admin-edit-card.is-new {
  border-style: dashed;
  background: rgba(255, 255, 250, 0.45);
}

.issue-edit-card .card-intro {
  min-height: 84px;
}

.admin-edit-media {
  position: relative;
  height: 240px;
  background: #171717;
}

.admin-edit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Editable cover zone (upload / generate) */
.cover-zone.is-empty {
  background: rgba(96, 112, 74, 0.05);
  border: 2px dashed rgba(96, 112, 74, 0.4);
  border-radius: 10px;
}

.cover-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 12px;
}

.cover-zone.is-empty .cover-placeholder {
  display: flex;
  color: rgba(40, 46, 28, 0.7);
}

.cover-zone:not(.is-empty) .cover-placeholder {
  display: flex;
  opacity: 0;
  color: #f6f7f2;
  background: rgba(15, 16, 11, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}

.cover-zone:not(.is-empty):hover .cover-placeholder,
.cover-zone:not(.is-empty):focus-within .cover-placeholder {
  opacity: 1;
}

.cover-ic {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.cover-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cover-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  color: inherit;
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.cover-zone.is-empty .cover-act {
  background: rgba(96, 112, 74, 0.12);
  border-color: rgba(96, 112, 74, 0.55);
}

.cover-act:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.26);
}

.cover-zone.is-empty .cover-act:hover {
  background: rgba(96, 112, 74, 0.22);
}

.cover-sep {
  opacity: 0.5;
  font-weight: 700;
}

.cover-hint {
  font: 600 11px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  opacity: 0.75;
}

.cover-zone.is-empty .status-select {
  color: #2a311b;
  background-color: rgba(255, 255, 250, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: rgba(23, 23, 23, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-new-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  color: #1b2410;
  font: 800 10px ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #cfe09a;
  border-radius: 999px;
}

.admin-edit-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.admin-edit-body input,
.admin-edit-body textarea {
  width: 100%;
  padding: 6px 9px;
  color: #171717;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-edit-body input:hover,
.admin-edit-body textarea:hover {
  background: rgba(23, 23, 23, 0.04);
}

.admin-edit-body input:focus,
.admin-edit-body textarea:focus,
.admin-edit-body select:focus {
  outline: none;
  background: #fffefa;
  border-color: rgba(96, 112, 74, 0.62);
  box-shadow: 0 0 0 3px rgba(96, 112, 74, 0.15);
}

.card-title {
  font: 400 italic 24px ui-sans-serif, system-ui, sans-serif !important;
  line-height: 1.1;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Kicker row (place · date) mirrors the public card kicker */
.card-kicker-row .card-line {
  font: 900 11px ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(25, 25, 22, 0.62);
}

.card-date[type="date"],
.card-time[type="time"] {
  font: 700 12px ui-sans-serif, system-ui, sans-serif !important;
  text-transform: none;
  color: rgba(25, 25, 22, 0.72);
}

.card-date[type="date"]::-webkit-calendar-picker-indicator,
.card-time[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

.card-time-row {
  grid-template-columns: 1fr 1fr;
}

.card-line {
  font: 600 13px ui-sans-serif, system-ui, sans-serif;
  color: rgba(25, 25, 22, 0.74);
}

.card-tag {
  font: 800 11px ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(96, 112, 74, 0.95);
}

.card-intro {
  min-height: 66px;
  font: 400 14px/1.6 ui-sans-serif, system-ui, sans-serif;
  color: rgba(25, 25, 22, 0.72);
  resize: vertical;
}

.card-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 11px;
  color: #171717;
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
  background-color: rgba(255, 255, 250, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 13px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.card-event {
  width: 100%;
  font-weight: 800;
}

.card-tags-row .card-select {
  justify-self: end;
  width: 100%;
}

select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
}

.admin-edit-media .status-select {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #f6f7f2;
  background-color: rgba(20, 22, 18, 0.52);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23f6f7f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-edit-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 16px;
}

.card-save {
  flex: 1;
  min-height: 40px;
  color: #f8f8f3;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 10px;
  font: 800 12px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.card-save:hover,
.card-save:focus-visible {
  background: #2c2c25;
  transform: translateY(-1px);
}

.card-del {
  min-height: 40px;
  padding: 0 14px;
  color: rgba(176, 64, 47, 0.92);
  background: transparent;
  border: 1px solid rgba(176, 64, 47, 0.28);
  border-radius: 10px;
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.card-del:hover,
.card-del.is-confirming {
  background: rgba(176, 64, 47, 0.1);
  border-color: rgba(176, 64, 47, 0.5);
}
