:root {
  color-scheme: dark;
  --ink: #f4efe1;
  --muted: #b7b0a0;
  --line: rgba(244, 239, 225, 0.16);
  --panel: rgba(34, 36, 39, 0.74);
  --panel-strong: rgba(28, 30, 33, 0.86);
  --glass-line: rgba(244, 239, 225, 0.16);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --moss: #789262;
  --gold: #dfb65f;
  --brick: #b85b4d;
  --water: #5797a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

body.theme-light {
  color-scheme: light;
  --ink: #1b1a16;
  --muted: #5f5b52;
  --line: rgba(35, 31, 24, 0.13);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --glass-line: rgba(35, 31, 24, 0.13);
  --glass-shadow: 0 18px 50px rgba(30, 26, 20, 0.18);
  --shadow: 0 20px 58px rgba(30, 26, 20, 0.2);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #080806;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}

body.page-ready {
  animation: page-enter 260ms ease-out;
}

body.page-leaving {
  animation: page-leave 180ms ease-out;
}

body.theme-light {
  background: #f5f0e6;
}

.not-found-page {
  min-height: 100vh;
}

.not-found-shell {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 112px 20px 56px;
}

.not-found-panel {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(34, 36, 39, 0.88), rgba(20, 22, 24, 0.72));
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

body.theme-light .not-found-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 240, 228, 0.76));
}

.not-found-mark {
  position: relative;
  width: clamp(120px, 22vw, 180px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.not-found-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.32));
}

.not-found-mark span {
  position: absolute;
  right: -8px;
  bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(223, 182, 95, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.78);
  color: var(--gold);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

body.theme-light .not-found-mark span {
  background: rgba(255, 255, 255, 0.82);
}

.not-found-panel h1 {
  max-width: 14em;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.not-found-panel .lead {
  max-width: 46em;
  margin: 0;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 850ms ease;
  will-change: opacity, transform;
}

body::before {
  z-index: -2;
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(26px) saturate(1.05) brightness(0.42);
  transform: scale(1.08);
  transform-origin: center;
}

body::after {
  z-index: -1;
  background-image: linear-gradient(rgba(5, 6, 5, 0.26), rgba(5, 6, 5, 0.42)), var(--site-bg-image);
  background-size: 100% 100%, auto 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  filter: saturate(0.96) brightness(0.82);
}

body.background-ready::before,
body.background-ready::after {
  opacity: 1;
}

body.background-instant::before,
body.background-instant::after {
  transition: none;
}

body.background-fill::before {
  display: none;
}

body.background-fill::after {
  background-image: linear-gradient(rgba(5, 6, 5, 0.18), rgba(5, 6, 5, 0.34)), var(--site-bg-image);
  background-size: cover;
  background-position: center;
}

body.background-disabled::before,
body.background-disabled::after {
  display: none;
}

body.background-disabled.theme-dark {
  background: #050505;
}

body.background-disabled.theme-light {
  background: #fff;
}

body.theme-light::before {
  display: none;
}

body.theme-light::after {
  background-image: var(--site-bg-image);
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
}

body.theme-light.background-fill::after {
  background-image: var(--site-bg-image);
  background-size: cover;
  background-position: center;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(223, 182, 95, 0.16), transparent 32%),
    rgba(7, 10, 14, 0.72);
  opacity: 1;
  transition: opacity 420ms ease, visibility 420ms ease;
}

body.theme-light .site-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(223, 182, 95, 0.2), transparent 32%),
    rgba(255, 255, 255, 0.58);
}

.site-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-bubble {
  position: relative;
  min-width: 180px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: loader-pop 980ms cubic-bezier(0.2, 1.6, 0.34, 1) infinite alternate;
}

.loader-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: url("./logo.png") center / contain no-repeat;
  animation: loader-squish 760ms ease-in-out infinite;
}

.loader-bubble strong {
  font-size: 1.08rem;
}

.loader-bubble em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.loader-bubble i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin: 2px 3px 0;
  border-radius: 50%;
  background: var(--gold);
  animation: loader-dot 720ms ease-in-out infinite;
}

.loader-bubble i:nth-of-type(2) {
  animation-delay: 120ms;
}

.loader-bubble i:nth-of-type(3) {
  animation-delay: 240ms;
}

@keyframes loader-pop {
  from {
    transform: translateY(0) scale(0.985, 1.015);
  }

  to {
    transform: translateY(-8px) scale(1.02, 0.985);
  }
}

@keyframes loader-squish {

  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08, 0.92);
  }

  65% {
    transform: scale(0.96, 1.06);
  }
}

@keyframes loader-dot {

  0%,
  100% {
    transform: translateY(0) scale(0.78);
    opacity: 0.55;
  }

  45% {
    transform: translateY(-8px) scale(1.1);
    opacity: 1;
  }
}

@keyframes logo-jelly {
  0% {
    transform: scale(1);
  }

  34% {
    transform: scale(1.08, 0.94) translateY(-1px);
  }

  58% {
    transform: scale(0.97, 1.05) translateY(1px);
  }

  78% {
    transform: scale(1.03, 0.98);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
  }
}

.topbar {
  position: relative;
  z-index: 80;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 11, 0.78);
}

body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 34px rgba(30, 26, 20, 0.16);
}

.brand,
.nav-tabs a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: 0;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: url("./logo.png") center / contain no-repeat;
  image-rendering: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  animation: logo-jelly 520ms cubic-bezier(0.2, 1.35, 0.35, 1);
}

.topbar-spacer {
  flex: 1;
  min-width: 0;
}

.nav-tabs {
  position: static;
  left: auto;
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  transform: none;
  margin-right: auto;
  overflow: visible;
}

.nav-tabs a,
.segmented button,
.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

body.theme-light .nav-tabs a,
body.theme-light .segmented button,
body.theme-light .ghost-button,
body.theme-light .secondary-button {
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
}

.nav-tabs a {
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-tabs a.active,
.segmented button.active {
  background: var(--gold);
  color: #19150b;
  border-color: transparent;
}

.background-button,
.theme-toggle {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(223, 182, 95, 0.45);
  border-radius: 6px;
  background: rgba(12, 13, 11, 0.58);
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-light .background-button,
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(30, 26, 20, 0.14);
}

.background-button:hover,
.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(223, 182, 95, 0.12);
  transform: translateY(-1px);
}

.ghost-button,
.primary-button,
.secondary-button,
.segmented button {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 15px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ghost-button,
.primary-button,
.secondary-button,
.background-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  border: 0;
  background: var(--brick);
  color: #fff8ef;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(184, 91, 77, 0.25);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(184, 91, 77, 0.32);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.segmented button:hover,
.segmented button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(223, 182, 95, 0.68);
  background: rgba(223, 182, 95, 0.12);
}

.inline-compress-button {
  margin-left: 8px;
  min-height: 30px;
  padding: 0 12px;
  vertical-align: middle;
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
}

.captcha-question {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-weight: 800;
}

.admin-badge {
  cursor: default;
}

.account-area {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: end;
}

.global-search {
  flex: 0 1 92px;
  width: 92px;
  min-width: 92px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  overflow: hidden;
  transition: flex-basis 220ms cubic-bezier(0.2, 0.8, 0.2, 1), width 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
}

.global-search.open,
.global-search:focus-within {
  flex-basis: min(260px, 24vw);
  width: min(260px, 24vw);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.global-search input {
  width: 0;
  min-width: 0;
  opacity: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 8px 10px;
  transform: translateX(-8px);
  transition: width 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.global-search.open input,
.global-search:focus-within input {
  width: 100%;
  opacity: 1;
  transform: translateX(0);
}

.global-search button {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #20160a;
  font-weight: 900;
  padding: 8px 13px;
  cursor: pointer;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

.global-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  white-space: nowrap;
}

.global-search-icon {
  line-height: 1;
}

.global-search-label {
  display: inline-block;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  transition: max-width 180ms ease, opacity 140ms ease, margin 180ms ease;
}

.global-search.open .global-search-trigger,
.global-search:focus-within .global-search-trigger {
  min-width: 34px;
  width: 34px;
  padding-inline: 0;
}

.global-search.open .global-search-label,
.global-search:focus-within .global-search-label {
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
}

.global-search-submit {
  display: none;
  opacity: 0;
  transform: translateX(8px);
  min-width: 58px;
  justify-content: center;
}

.global-search.open .global-search-submit,
.global-search:focus-within .global-search-submit {
  display: inline-flex;
  opacity: 1;
  transform: translateX(0);
}

body.embed-page .topbar,
body.embed-page .site-loader,
body.embed-page .thanks-button {
  display: none !important;
}

body.embed-page main {
  width: 100%;
}

.post-hub {
  display: grid;
  gap: 16px;
}

.post-hub-control {
  display: grid;
  gap: 8px;
}

.post-hub-frame {
  width: 100%;
  min-height: 980px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.lolicity-shell {
  width: 100%;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  gap: 0;
}

.lolicity-side {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.lolicity-side h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.lolicity-side p {
  color: var(--muted);
  line-height: 1.6;
}

.lolicity-content {
  min-width: 0;
  padding: clamp(20px, 4vw, 48px);
}

.lolicity-panel {
  display: none;
}

.lolicity-panel.active {
  display: block;
  animation: page-enter 180ms ease both;
}

.user-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.avatar-link {
  min-width: 56px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold);
  color: #19150b;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.avatar-caret {
  width: 0;
  height: 0;
  display: inline-block;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.82;
  transition: transform 160ms ease;
}

.avatar-link:hover .avatar-caret,
.avatar-link:focus-visible .avatar-caret {
  transform: translateY(1px);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  display: none;
  padding: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.profile-menu.open {
  display: block;
}

.profile-head {
  display: grid;
  gap: 5px;
  padding: 2px 16px 16px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7edf4;
  color: #7390a8;
  font-size: 1.4rem;
  font-weight: 900;
}

img.profile-avatar {
  object-fit: cover;
}

.image-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 120px));
  gap: 10px;
}

.profile-head strong {
  margin-top: 6px;
}

.profile-head em,
.profile-label {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.level-pill {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid rgba(223, 182, 95, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-menu a,
.profile-menu button,
.profile-toggle,
.profile-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: var(--line);
}

.profile-label {
  margin-top: 10px;
  font-weight: 900;
}

.profile-toggle input {
  width: auto;
  accent-color: #1696e8;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.spa-main {
  width: 100%;
}

.spa-layout {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(270px, 318px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.spa-content {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 38px) 64px;
}

.home-main {
  width: min(1240px, calc(100% - 32px));
  position: relative;
  min-height: calc(100vh - 150px);
  display: grid;
  align-items: start;
  padding-top: clamp(40px, 5vh, 72px);
}

.spa-content .home-main {
  width: 100%;
}

.home-canvas {
  position: absolute;
  inset: 0;
  min-height: 0;
  pointer-events: none;
}

.home-update-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, 0.48fr) minmax(720px, 1.52fr);
  gap: clamp(16px, 1.7vw, 26px);
  width: min(1120px, 82vw);
  margin: 0 auto 0;
  align-items: stretch;
}

.home-announcement,
.home-update-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.home-announcement {
  min-height: clamp(430px, 58vh, 650px);
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  cursor: pointer;
}

.home-announcement h2 {
  max-width: 100%;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-announcement p:not(.eyebrow) {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  color: var(--muted);
  line-height: 1.75;
}

.home-announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.home-announcement-actions .secondary-button {
  flex: 1 1 140px;
}

.home-update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.7vw, 24px);
  align-content: stretch;
}

.home-pinned-rp {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: clamp(120px, 13vh, 168px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.home-pinned-rp span {
  color: var(--gold);
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-weight: 900;
}

.home-pinned-rp strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.home-pinned-rp p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-pinned-rp em {
  min-width: 0;
  max-width: min(34vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  font-style: normal;
}

.home-update-card {
  min-width: 0;
  min-height: clamp(190px, 26vh, 310px);
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  text-decoration: none;
  cursor: pointer;
}

.home-update-card:hover,
.home-update-card:focus-visible,
.home-pinned-rp:hover,
.home-pinned-rp:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(225, 186, 88, 0.72);
}

.home-update-card div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-update-card span {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
}

.home-update-card strong {
  font-size: 2rem;
  line-height: 1;
}

.home-update-card p {
  min-width: 0;
  margin: 0;
}

.home-update-list {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-update-list li {
  min-width: 0;
  overflow: hidden;
}

.home-update-card a,
.home-update-card p>span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-update-card a:hover {
  color: var(--gold);
}

.home-update-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.spa-content .page-head {
  margin-top: 0;
}

.kernel-menu {
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--glass-line);
  border-left: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.kernel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kernel-brand h1 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  font-size: 1.42rem;
  line-height: 1.2;
}

.kernel-brand .eyebrow {
  margin-bottom: 4px;
}

.kernel-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: url("./logo.png") center / contain no-repeat;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.kernel-slogan {
  margin: 0;
  padding: 12px 13px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.kernel-home-button,
.kernel-zone-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.theme-light .kernel-home-button,
body.theme-light .kernel-zone-button {
  background: rgba(255, 255, 255, 0.52);
}

.kernel-home-button:hover,
.kernel-home-button:focus-visible,
.kernel-zone-button:hover,
.kernel-zone-button:focus-visible {
  transform: translateX(7px);
  border-color: rgba(223, 182, 95, 0.72);
  background: rgba(223, 182, 95, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.kernel-home-button.active,
.kernel-zone-button.active {
  border-color: transparent;
  background: var(--gold);
  color: #19150b;
}

.kernel-sections {
  display: grid;
  gap: 12px;
}

.kernel-credit {
  display: grid;
  gap: 4px;
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.kernel-credit span {
  display: block;
  text-align: center;
}

.kernel-credit a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.kernel-credit a:hover {
  text-decoration: underline;
}

.kernel-section {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.kernel-section h2 {
  margin: 0;
  font-size: 0.98rem;
  text-shadow: none;
}

.forum-link {
  justify-content: start;
  gap: 10px;
  border-radius: 10px;
}

.forum-link::before {
  content: none;
}

.zone-head {
  margin-bottom: 18px;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.zone-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.zone-tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.zone-tab-button:hover,
.zone-tab-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(223, 182, 95, 0.72);
}

.zone-tab-button.active {
  border-color: transparent;
  background: var(--gold);
  color: #19150b;
}

.zone-tab-panel {
  display: none;
}

.zone-tab-panel.active {
  display: block;
  animation: page-enter 180ms ease both;
}

.zone-card {
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease;
}

.zone-card:hover,
.zone-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(223, 182, 95, 0.72);
}

.zone-card-static {
  cursor: default;
}

.zone-card-static:hover {
  transform: none;
}

.zone-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.zone-card strong {
  font-size: 1.35rem;
}

.zone-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 76px) 0;
}

.page-head {
  padding: clamp(30px, 5vw, 56px) 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
  transform: rotate(-1.5deg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-art img:first-child {
  grid-row: span 2;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto 180px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 17, 14, 0.88);
  border-radius: 8px;
}

body.theme-light .controls,
body.theme-light .work-card,
body.theme-light .section-band,
body.theme-light .creator-center,
body.theme-light .upload-layout,
body.theme-light .admin-grid,
body.theme-light .shop-grid article,
body.theme-light .shop-grid a,
body.theme-light .creator-panel,
body.theme-light .upload-card,
body.theme-light .review-board,
body.theme-light .auth-modal,
body.theme-light .comment-panel,
body.theme-light .background-mode-panel,
body.theme-light .background-upload-panel,
body.theme-light .kernel-menu,
body.theme-light .single-panel {
  border-color: var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

body.theme-light .kernel-menu {
  border-radius: 0;
}

body.theme-dark .controls,
body.theme-dark .work-card,
body.theme-dark .section-band,
body.theme-dark .creator-center,
body.theme-dark .upload-layout,
body.theme-dark .admin-grid,
body.theme-dark .shop-grid article,
body.theme-dark .shop-grid a,
body.theme-dark .creator-panel,
body.theme-dark .upload-card,
body.theme-dark .review-board,
body.theme-dark .auth-modal,
body.theme-dark .comment-panel,
body.theme-dark .background-mode-panel,
body.theme-dark .background-upload-panel,
body.theme-dark .kernel-menu,
body.theme-dark .single-panel {
  border-color: var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

body.theme-dark .kernel-menu {
  border-radius: 0;
}

.search-box,
.upload-card label,
.auth-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e100d;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: rgba(95, 91, 82, 0.74);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.segmented {
  display: flex;
  gap: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
  padding: 28px 0 64px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  margin: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  text-decoration: none;
}

.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(223, 182, 95, 0.92);
  color: #17130b;
  font-size: 0.75rem;
  font-weight: 900;
}

.status-badge.approved {
  background: rgba(120, 146, 98, 0.94);
  color: #f5ffe9;
}

.status-badge.rejected {
  background: rgba(184, 91, 77, 0.94);
  color: #fff8ef;
}

.clickable-work {
  cursor: pointer;
}

.clickable-work:hover,
.clickable-work:focus-visible {
  border-color: rgba(223, 182, 95, 0.7);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #222;
}

.work-meta {
  min-width: 0;
  padding: 13px;
}

.work-meta h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-meta p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.rating {
  color: #16130b;
  background: var(--gold);
  border-color: transparent;
  font-weight: 900;
}

.section-band,
.creator-center,
.upload-layout,
.admin-grid {
  margin: 0 0 56px;
  padding: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading.compact {
  display: block;
}

.shops-page-head {
  padding-top: clamp(22px, 4vw, 40px);
  padding-bottom: clamp(14px, 2.5vw, 24px);
}

.shops-page-head .hero-actions {
  margin-top: 10px;
}

.shop-member-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.shop-member-panel input {
  min-height: 38px;
  min-width: 220px;
  flex: 1;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.slim-band {
  margin-bottom: 24px;
}

.shop-grid article,
.shop-grid a,
.creator-panel,
.upload-card,
.review-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.shop-grid article,
.shop-grid a {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.shop-grid a:hover {
  border-color: rgba(223, 182, 95, 0.7);
  transform: translateY(-1px);
}

.shop-grid strong {
  font-size: 1.2rem;
}

.shop-grid span,
.creator-center p,
.queue-item em,
.modal-note,
.policy-list {
  color: var(--muted);
  line-height: 1.65;
}

.shop-grid b {
  color: var(--gold);
}

.site-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2400;
  width: min(560px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px 12px;
  align-items: center;
  transform: translateX(-50%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 17, 15, 0.88);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-notice strong {
  grid-column: 1 / -1;
}

body.theme-light .site-notice {
  background: rgba(255, 255, 255, 0.88);
}

.creator-center,
.upload-layout,
.admin-grid,
.trade-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.creator-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.metric {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold);
}

.metric span {
  color: var(--muted);
}

.queue-list.wide {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.queue-list.wide h2 {
  margin: 0;
  font-size: 1rem;
}

.upload-card,
.review-board {
  padding: 20px;
}

.admin-console {
  display: grid;
  gap: 18px;
}

.admin-tabs,
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.admin-tabs button.active {
  background: var(--gold);
  color: #15110a;
  border-color: transparent;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: grid;
  gap: 16px;
}

.admin-search {
  max-width: 320px;
}

.user-table {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(100px, 0.55fr) minmax(130px, 0.65fr) minmax(140px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.user-row div {
  display: grid;
  gap: 4px;
}

.user-row span,
.user-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.user-row select {
  min-height: 38px;
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.82rem;
}

.permission-toggle input {
  width: auto;
}

.permission-toggle em {
  color: var(--gold);
  font-size: 0.72rem;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-split.single {
  grid-template-columns: 1fr;
}

.admin-split section,
.background-test-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-table p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.mini-table p em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.visitor-table p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.visitor-table p em {
  grid-column: 1 / -1;
}

.mini-table span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.background-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.background-mode-panel,
.background-upload-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.background-upload-panel .file-input {
  min-height: 38px;
  color: var(--text);
}

.background-mode-panel .active {
  background: var(--gold);
  color: #15110a;
}

.background-test-card {
  display: grid;
  gap: 10px;
}

.background-test-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #050505;
}

.background-test-card span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.danger-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(184, 91, 77, 0.7);
  border-radius: 6px;
  background: rgba(184, 91, 77, 0.16);
  color: #ffd6cf;
  font-weight: 800;
  cursor: pointer;
}

body.theme-light .danger-button {
  border-color: rgba(158, 45, 33, 0.86);
  background: #b63f31;
  color: #fff8f5;
  box-shadow: 0 8px 18px rgba(148, 42, 31, 0.22);
}

body.theme-light .danger-button:hover,
body.theme-light .danger-button:focus-visible {
  background: #982f24;
  color: #ffffff;
}

.trade-form {
  position: sticky;
  top: 92px;
}

.single-panel {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.single-panel .trade-form {
  position: static;
}

.trade-board {
  min-height: 360px;
}

.trade-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trade-post {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.trade-post-link {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.trade-post-link:hover .trade-post-head strong {
  color: var(--gold);
}

.trade-post-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-post-head strong {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.trade-details div {
  display: grid;
  gap: 3px;
}

.trade-details dt,
.trade-post footer {
  color: var(--muted);
  font-size: 0.82rem;
}

.trade-details dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-post p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.info-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.info-card>img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #050505;
}

.info-card strong {
  min-width: 0;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-card span,
.info-card em,
.info-card p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-style: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.singer-card {
  min-width: 0;
  align-content: start;
}

.singer-card .trade-post-link {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.singer-card .review-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.singer-card>button {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trade-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trade-detail-head h1 {
  margin: 0;
}

.upload-card {
  display: grid;
  gap: 13px;
}

.upload-dropzone {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(223, 182, 95, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-dropzone.drag-over {
  border-color: rgba(223, 182, 95, 0.86);
  background: rgba(223, 182, 95, 0.14);
  transform: translateY(-2px);
}

.upload-dropzone input {
  display: none;
}

.upload-dropzone span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 42px;
  border-radius: 999px;
  background: #1696e8;
  color: white;
  font-weight: 900;
}

.upload-dropzone em {
  max-width: 320px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.upload-preview {
  width: min(100%, 460px);
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.preview-grid img,
.preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.preview-item {
  position: relative;
}

.preview-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.single-upload {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.radio-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.radio-panel strong {
  color: var(--brick);
}

.radio-panel label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.9rem;
}

.radio-panel input {
  width: auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.queue-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 5px 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.queue-item span {
  grid-row: span 2;
  border-radius: 999px;
  padding: 5px 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.approved span {
  background: rgba(120, 146, 98, 0.22);
  color: #bfe0a3;
}

.pending span {
  background: rgba(223, 182, 95, 0.2);
  color: #f4d28b;
}

.rejected span {
  background: rgba(184, 91, 77, 0.22);
  color: #ffb4aa;
}

.queue-item em {
  font-style: normal;
}

.queue-item>.shop-extra-line {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.my-shop-detail-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
}

.my-shop-detail-card>span {
  min-width: 58px;
}

.my-shop-detail-card>p {
  grid-column: 1 / -1;
  max-width: 860px;
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.my-shop-detail-card>p:last-of-type {
  margin-top: 10px;
  color: var(--muted);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-type-tabs,
.review-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.review-type-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.review-type-tab b {
  min-width: 24px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(223, 182, 95, 0.18);
  color: var(--gold);
}

.review-type-tab.active {
  border-color: rgba(223, 182, 95, 0.58);
  box-shadow: 0 0 0 3px rgba(223, 182, 95, 0.12);
}

.review-expand-card {
  display: block;
  padding: 0;
}

.review-expand-card>summary {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.review-expand-card>summary::-webkit-details-marker {
  display: none;
}

.review-expand-card>summary::after {
  content: "打开";
  justify-self: end;
  color: var(--gold);
  font-weight: 900;
}

.review-expand-card[open]>summary::after {
  content: "收起";
}

.review-expand-card .review-thumb {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
}

.review-detail-body {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.review-detail-body pre {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
}

.policy-list {
  margin: 0;
  padding-left: 20px;
}

.access-guard {
  width: min(720px, calc(100% - 32px));
  margin: clamp(54px, 12vw, 120px) auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.access-guard p {
  color: var(--muted);
  line-height: 1.7;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.auth-modal {
  width: min(440px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.work-modal {
  width: min(980px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.work-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.work-submit-dialog {
  padding: 24px;
}

.work-submit-dialog.success {
  border-color: rgba(120, 146, 98, 0.75);
}

.work-submit-dialog.error {
  border-color: rgba(184, 91, 77, 0.75);
}

.work-submit-dialog h2 {
  margin: 4px 0 8px;
}

.submit-join-panel {
  margin: 16px 0 14px;
  padding: 14px;
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 8px;
  background: rgba(224, 173, 63, 0.12);
}

.submit-join-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.submit-join-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.submit-join-panel .auth-row {
  margin-top: 12px;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.mini-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.rp-owner-dialog {
  width: min(520px, calc(100% - 28px));
}

.owner-select-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin: 12px 0;
  overflow: auto;
}

.owner-select-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.owner-select-option input {
  width: auto;
}

.owner-select-option span {
  display: grid;
  gap: 2px;
}

.owner-select-option em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}

.work-submit-dialog .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.work-submit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.work-detail-image {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #050505;
  border-radius: 6px;
}

.work-detail-body {
  padding: 20px 4px 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-page {
  width: min(1160px, calc(100% - 32px));
}

.work-reader {
  display: block;
  padding: 0 0 clamp(42px, 7vw, 80px);
}

.section-band.work-reader {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto 56px;
  padding: clamp(28px, 4vw, 52px);
  box-sizing: border-box;
}

body.theme-light .section-band.work-reader {
  background: rgba(255, 255, 255, 0.88);
}

body.theme-light .work-reader .eyebrow,
body.theme-light .work-reader h1,
body.theme-light .work-reader h2,
body.theme-light .work-reader p,
body.theme-light .work-reader strong,
body.theme-light .work-reader span,
body.theme-light .work-reader a,
body.theme-light .work-reader time {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72);
}

.work-main-column {
  display: grid;
  gap: 18px;
}

.work-reader-image {
  min-height: 520px;
  display: grid;
  place-items: center;
  margin-inline: 0;
  background: transparent;
}

.work-reader-image img {
  width: min(760px, 100%);
  max-height: 78vh;
  object-fit: contain;
}

.work-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.icon-action {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.45rem;
  cursor: pointer;
}

.icon-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.work-info-block {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(244, 239, 225, 0.14);
  border-radius: 8px;
  background: rgba(33, 35, 39, 0.82);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(244, 239, 225, 0.14);
  border-radius: 8px;
  background: rgba(33, 35, 39, 0.82);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.author-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.author-link:hover {
  color: var(--gold);
}

.detail-grid span {
  color: var(--muted);
}

.detail-grid strong {
  font-weight: 700;
}

.work-intro {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.comment-panel {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(244, 239, 225, 0.14);
  border-radius: 8px;
  background: rgba(33, 35, 39, 0.82);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body.theme-light .work-info-block,
body.theme-light .author-strip,
body.theme-light .comment-panel {
  border-color: rgba(35, 31, 24, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(30, 26, 20, 0.16);
}

body.theme-light .work-info-block *,
body.theme-light .author-strip *,
body.theme-light .comment-panel * {
  text-shadow: none;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comment-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.comment-meta strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.comment-meta time {
  color: var(--muted);
  font-size: 0.78rem;
}

.comment-delete {
  border: 0;
  background: transparent;
  color: #ff8a8a;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 0;
}

.comment-delete:hover {
  color: #ffd0d0;
}

.comment-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
}

.auth-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.auth-modal form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 12px;
}

.auth-step {
  display: none;
  gap: 14px;
}

.auth-step.active {
  display: grid;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--gold);
  color: #19150b;
  font-weight: 900;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(100%, 460px);
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.captcha-image {
  width: 132px;
  height: 44px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f2e8;
}

.auth-card .auth-agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.auth-agreement input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--gold);
}

.auth-agreement a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.auth-agreement a:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: start center;
  padding: 36px 16px;
}

.legal-card {
  width: min(100%, 860px);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.legal-document {
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.85;
  word-break: break-word;
}

.thanks-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.avatar-link {
  position: relative;
}

.review-bubble,
.menu-review-bubble,
.review-hub-card b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e04848;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.review-bubble {
  position: absolute;
  right: -3px;
  top: -3px;
}

.rejected-review-bubble {
  right: -7px;
  top: 22px;
  background: #e0ad3f;
  color: #17130b;
}

.menu-review-bubble {
  margin-left: 8px;
}

.review-reject-reason {
  grid-column: 2 / -1;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(224, 173, 63, 0.45);
  border-radius: 8px;
  background: rgba(224, 173, 63, 0.12);
  color: var(--ink);
  line-height: 1.7;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.review-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.review-hub-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--glass-shadow);
}

.review-hub-card span {
  color: var(--muted);
  font-weight: 800;
}

.review-hub-card strong {
  font-size: 2rem;
}

.review-hub-card em {
  color: var(--muted);
  font-style: normal;
}

.review-hub-card b {
  position: absolute;
  right: 12px;
  top: 12px;
}

.thanks-dialog {
  width: min(520px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  padding: 24px;
}

.thanks-dialog[open] {
  animation: thanks-pop 220ms cubic-bezier(0.2, 1.25, 0.3, 1) both;
}

.thanks-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
  animation: thanks-fade 180ms ease both;
}

@keyframes thanks-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thanks-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.thanks-list {
  display: grid;
  gap: 10px;
}

.thanks-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.thanks-list article div {
  display: grid;
  gap: 3px;
}

.thanks-list article em {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

.thanks-list img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.review-thumb {
  width: 110px;
  max-height: 110px;
  display: block;
  margin: 10px 0;
  border-radius: 8px;
  object-fit: cover;
}

.queue-item>.review-thumb {
  grid-column: 2 / -1;
}

.review-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-detail {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
}

.review-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.review-title-link {
  color: inherit;
  text-decoration: none;
}

.review-title-link:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.review-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.review-detail img {
  max-width: min(420px, 100%);
  max-height: 520px;
  display: block;
  margin: 12px 0;
  border-radius: 10px;
  object-fit: contain;
}

.rp-list {
  display: grid;
  gap: 12px;
}

.rp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--glass-shadow);
}

.rp-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.rp-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rp-row em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.rp-detail-card {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.rp-detail-card h1 {
  margin: 0 0 8px;
}

.rp-detail-card>em {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-style: normal;
}

.auction-panel,
.auction-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.auction-lot-form label:has(textarea),
.auction-lot-form .upload-dropzone,
.auction-lot-form .preview-grid,
.auction-lot-form button {
  grid-column: 1 / -1;
}

.auction-lot-list,
.auction-lot-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.auction-lot-display.compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.auction-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.auction-category-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  text-decoration: none;
}

body.theme-light .auction-category-card {
  background: rgba(255, 255, 255, 0.72);
}

.auction-category-card:hover,
.auction-category-card:focus-visible,
.auction-category-card.active {
  border-color: rgba(225, 186, 88, 0.72);
  transform: translateY(-2px);
}

.auction-category-card span {
  color: var(--gold);
  font-weight: 900;
}

.auction-category-card strong {
  font-size: 1.8rem;
}

.auction-lot-card {
  min-width: 0;
  position: relative;
  height: 316px;
  display: grid;
  grid-template-rows: 92px auto auto auto auto auto 1fr;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 0.84rem;
  cursor: default;
  overflow: hidden;
}

.auction-lot-card.clickable {
  cursor: pointer;
}

.auction-lot-card.clickable:hover,
.auction-lot-card.clickable:focus-visible {
  border-color: rgba(225, 186, 88, 0.72);
  transform: translateY(-1px);
}

body.theme-light .auction-lot-card {
  background: var(--panel);
}

.auction-lot-display.compact .auction-lot-card {
  height: 270px;
  padding: 8px;
  font-size: 0.78rem;
}

.auction-lot-order {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 24px;
  height: 24px;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #18150f;
  font-weight: 900;
}

.auction-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.auction-lot-card>.auction-status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 56px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.auction-status-display {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.92);
  color: #241505;
}

.auction-status-live {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
}

.auction-status-upcoming {
  border-color: rgba(34, 197, 94, 0.72);
  background: rgba(34, 197, 94, 0.92);
  color: #052e16;
}

.auction-status-ended {
  border-color: rgba(127, 29, 29, 0.78);
  background: rgba(127, 29, 29, 0.95);
  color: #fff;
}

.auction-status-failed {
  border-color: rgba(107, 114, 128, 0.72);
  background: rgba(107, 114, 128, 0.92);
  color: #fff;
}

.auction-lot-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.auction-result-info {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(225, 186, 88, 0.08);
}

.auction-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.auction-result-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.58);
}

.auction-lot-card .auction-result-overlay strong,
.auction-lot-card .auction-result-overlay span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.auction-lot-card .auction-result-overlay strong {
  font-size: 1.08rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.auction-lot-card .auction-result-overlay span {
  font-size: 0.9rem;
  font-weight: 800;
}

.auction-result-overlay-sold::before {
  background: rgba(127, 29, 29, 0.68);
}

.auction-result-overlay-failed::before {
  background: rgba(75, 85, 99, 0.68);
}

.auction-lot-card strong,
.auction-lot-card em,
.auction-lot-card p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auction-lot-card strong {
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auction-lot-card em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.auction-lot-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  word-break: break-all;
}

.auction-lot-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 4px;
}

.auction-lot-images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.auction-lot-cover {
  width: 100%;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.auction-lot-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
}

.auction-lot-cover.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.auction-lot-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.auction-lot-detail-images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.image-zoom-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.auction-image-dialog {
  width: min(960px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
}

.auction-image-dialog img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.auction-image-dialog p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.auction-lot-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auction-page-search {
  display: grid;
  gap: 8px;
}

.rp-detail-card img {
  width: 100%;
  max-height: 680px;
  margin: 18px 0;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.detail-carousel {
  position: relative;
  margin: 18px 0;
}

.detail-carousel img {
  display: none;
  margin: 0;
}

.detail-carousel img.active {
  display: block;
}

.detail-carousel-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.detail-fields {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.detail-field {
  margin: 0;
  line-height: 1.7;
}

.detail-field strong {
  font-weight: 900;
}

.detail-field span {
  font-weight: 400;
}

.search-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.search-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.search-panel h1 {
  margin: 0 0 18px;
}

.search-main-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.search-main-form input,
.advanced-search-form input,
.advanced-search-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 12px 13px;
}

.advanced-search-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.advanced-search-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.advanced-search-form .auth-row {
  grid-column: 1 / -1;
}

.search-summary {
  margin: 18px 0 12px;
  color: var(--muted);
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
}

.search-result-item a {
  color: var(--ink);
  text-decoration: none;
}

.search-result-item span {
  color: var(--gold);
  font-weight: 900;
}

.search-result-item h2 {
  margin: 5px 0 8px;
  font-size: 1.16rem;
}

.search-result-item p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.search-meta em {
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 720px) {
  .rp-row {
    grid-template-columns: 1fr;
  }

  .rp-row em {
    white-space: normal;
  }

  .global-search {
    order: 5;
    width: 100%;
    min-width: 0;
  }

  .search-main-form,
  .advanced-search-form {
    grid-template-columns: 1fr;
  }
}

.close-button {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-sidebar-toggle,
.mobile-sidebar-backdrop {
  display: none;
}

@media (max-width: 940px) {
  .spa-layout {
    grid-template-columns: 1fr;
  }

  .kernel-menu {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .kernel-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }

  .home-update-board {
    grid-template-columns: 1fr;
  }

  .home-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-spacer {
    display: none;
  }

  .topbar,
  .controls,
  .hero,
  .creator-center,
  .upload-layout,
  .admin-grid,
  .trade-layout {
    grid-template-columns: 1fr;
  }

  .trade-form {
    position: static;
  }

  .nav-tabs {
    position: static;
    left: auto;
    flex: 1;
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: start;
    transform: none;
  }

  .hero {
    min-height: auto;
  }

  .work-reader {
    grid-template-columns: 1fr;
  }

  .work-reader-info {
    position: static;
  }

  .hero-art {
    grid-template-rows: 140px 140px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .user-row {
    grid-template-columns: 1fr 1fr;
  }

  .trade-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .trade-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    margin-right: auto;
  }

  .nav-tabs {
    order: 2;
    flex: 1 1 auto;
    margin-right: 0;
  }

  .global-search {
    order: 3;
  }

  .background-button,
  .theme-toggle,
  .account-area {
    order: 4;
  }

  .global-search.open,
  .global-search:focus-within {
    flex-basis: min(260px, 42vw);
    width: min(260px, 42vw);
  }
}

@media (max-width: 620px) {

  main,
  .home-main {
    width: min(100% - 20px, 1180px);
  }

  .home-main {
    min-height: auto;
    padding: 12px 0 22px;
  }

  .home-update-board {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-announcement {
    min-height: 210px;
  }

  .home-update-grid {
    grid-template-columns: 1fr;
  }

  .home-update-card {
    min-height: 118px;
  }

  .topbar {
    gap: 12px;
  }

  .kernel-sections {
    grid-template-columns: 1fr;
  }

  .ghost-button {
    padding-inline: 10px;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .creator-panel {
    grid-template-columns: 1fr;
  }

  .hero-art img:first-child {
    grid-row: auto;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .user-row {
    grid-template-columns: 1fr;
  }

  .trade-details {
    grid-template-columns: 1fr;
  }

  .trade-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    background-attachment: scroll;
  }

  body::before,
  body::after {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    background-attachment: scroll;
    transform: translate3d(0, 0, 0);
  }

  body::before {
    transform: translate3d(0, 0, 0) scale(1.08);
  }

  .home-pinned-rp {
    grid-template-columns: 1fr;
  }

  .home-pinned-rp em {
    max-width: 100%;
  }

  .topbar {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
  }

  .mobile-sidebar-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-sidebar-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 88;
    border: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand span:last-child {
    max-width: 32vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .nav-tabs {
    display: none;
    grid-column: auto;
    order: initial;
    width: auto;
    margin: 0;
    padding-bottom: 0;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .global-search {
    order: initial;
    width: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    margin-left: auto;
    padding: 3px;
  }

  .global-search.open,
  .global-search:focus-within {
    width: min(210px, 52vw);
    flex-basis: min(210px, 52vw);
  }

  .global-search-trigger {
    min-width: 30px;
    width: 30px;
    padding-inline: 0;
  }

  .global-search-label {
    display: none;
  }

  .global-search input {
    padding: 7px 6px;
  }

  .global-search-submit {
    min-width: 44px;
    padding-inline: 9px;
  }

  .background-button,
  .theme-toggle,
  .ghost-button,
  .secondary-button,
  .primary-button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .account-area {
    flex: 0 0 auto;
    justify-self: end;
  }

  .user-menu {
    gap: 5px;
  }

  .user-menu [data-post-link] {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .avatar-link {
    min-width: 42px;
    height: 34px;
  }

  .profile-menu {
    position: fixed;
    top: 50px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }

  main,
  .home-main,
  .search-shell {
    width: min(100% - 20px, 1180px);
  }

  .page-head,
  .zone-head,
  .shops-page-head {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .page-head h1,
  .search-panel h1,
  .rp-detail-card h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .lead,
  .page-head p,
  .section-heading {
    overflow-wrap: anywhere;
  }

  .section-band,
  .creator-center,
  .upload-layout,
  .admin-grid,
  .search-panel {
    margin-bottom: 22px;
    padding: 16px;
  }

  .section-heading {
    display: grid;
    gap: 10px;
    align-items: start;
  }

  .section-heading .hero-actions,
  .hero-actions,
  .auth-row,
  .queue-actions,
  .user-actions,
  .zone-tab-bar,
  .admin-tabs,
  .pagination {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-actions>*,
  .auth-row>*,
  .queue-actions>*,
  .user-actions>*,
  .pagination>button {
    flex: 1 1 140px;
  }

  .spa-layout,
  .lolicity-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .kernel-menu,
  .lolicity-side {
    position: fixed;
    top: 50px;
    left: 0;
    z-index: 95;
    width: min(82vw, 304px);
    max-height: calc(100vh - 58px);
    min-height: 0;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.32);
  }

  body.mobile-sidebar-open .kernel-menu,
  body.mobile-sidebar-open .lolicity-side {
    transform: translateX(0);
  }

  .kernel-credit {
    margin-top: 10px;
  }

  .spa-content,
  .lolicity-content {
    padding: 16px 10px 42px;
  }

  .kernel-brand h1,
  .lolicity-side h1 {
    font-size: 1.18rem;
  }

  .kernel-slogan {
    padding: 10px;
  }

  .kernel-home-button,
  .kernel-zone-button,
  .zone-tab-button {
    justify-content: center;
    min-height: 40px;
    text-align: center;
  }

  .zone-grid,
  .shop-grid,
  .content-grid,
  .admin-metrics,
  .admin-split,
  .trade-details,
  .creator-panel,
  .field-grid,
  .detail-grid,
  .search-main-form,
  .advanced-search-form {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .work-card,
  .info-card,
  .shop-grid article,
  .shop-grid a,
  .queue-item,
  .rp-row {
    width: 100%;
  }

  .work-card img {
    max-height: 72vh;
  }

  .controls {
    position: static;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented button {
    min-width: 0;
    padding-inline: 8px;
  }

  .upload-card,
  .review-board,
  .comment-panel,
  .rp-detail-card,
  .single-panel {
    width: 100%;
    padding: 16px;
  }

  .upload-card label,
  .search-box,
  .auth-modal label {
    min-width: 0;
  }

  input,
  select,
  textarea {
    min-width: 0;
    font-size: 16px;
  }

  textarea {
    min-height: 120px;
  }

  .preview-grid,
  .image-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-reader,
  .section-band.work-reader,
  .reader-shell {
    width: 100%;
    min-width: 0;
  }

  .work-reader-image img,
  .rp-detail-card img,
  .detail-carousel img {
    max-height: 78vh;
  }

  .detail-grid {
    gap: 8px;
  }

  .detail-grid span {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .comment-form {
    gap: 10px;
  }

  .admin-console {
    gap: 12px;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tabs button {
    flex: 0 0 auto;
  }

  .admin-search {
    max-width: none;
  }

  .user-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-toggle {
    justify-content: flex-start;
    min-width: 0;
  }

  .mini-table p,
  .traffic-row,
  .background-test-card,
  .review-log-row {
    overflow-wrap: anywhere;
  }

  .background-test-grid,
  .review-hub-grid {
    grid-template-columns: 1fr;
  }

  .modal,
  dialog,
  .auth-modal {
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 430px) {
  .topbar {
    padding: 6px 7px;
  }

  .brand span:last-child {
    max-width: 26vw;
    font-size: 0.82rem;
  }

  .background-button,
  .theme-toggle {
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  .avatar-link {
    min-width: 38px;
    height: 32px;
  }

  .mobile-sidebar-toggle,
  .global-search {
    width: 34px;
    min-width: 34px;
    flex-basis: 34px;
  }

  .global-search.open,
  .global-search:focus-within {
    width: min(188px, 56vw);
    flex-basis: min(188px, 56vw);
  }

  .global-search-submit {
    min-width: 38px;
    font-size: 0.76rem;
  }

  .section-band,
  .creator-center,
  .upload-layout,
  .admin-grid,
  .search-panel,
  .upload-card,
  .review-board,
  .comment-panel,
  .rp-detail-card {
    padding: 12px;
  }

  .preview-grid,
  .image-preview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions>*,
  .auth-row>*,
  .queue-actions>*,
  .user-actions>*,
  .pagination>button {
    flex-basis: 100%;
  }
}
