:root {
  --bg: #ffffff;
  --surface: #f4f4f7;
  --surface-strong: #ececf1;
  --text: #3f4050;
  --muted: #7c7d8b;
  --soft: #b8bac8;
  --line: #dedfe8;
  --accent: rgb(250 190 0);
  --accent-dark: rgb(224 168 0);
  --accent-soft: rgb(255 242 196);
  --accent-text: #2c2400;
  --radius-card: 12px;
  --cover-aspect-ratio: 1.42 / 1;
  --radius-dialog: 28px;
  --radius-dialog-inner: 20px;
  --radius-pill: 999px;
  --zcool-font: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", Arial, "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", SimSun, sans-serif, HYWenHei-GEW;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--zcool-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes modalRiseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.972);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalRiseOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.976);
  }
}

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

.page-shell {
  width: min(100%, 2520px);
  margin: 0 auto;
  padding: 18px 70px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 0 12px;
  background:
    linear-gradient(180deg, #fff 0%, #fff 78%, rgb(255 255 255 / 0) 100%);
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px;
  min-height: 54px;
}

.brand {
  color: #12131d;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-image {
  display: flex;
  align-items: center;
  width: 138px;
  height: 44px;
  overflow: hidden;
}

.brand-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.compact-nav {
  grid-template-columns: auto 1fr auto auto;
}

.compact-account {
  grid-column: auto;
  transition:
    width 220ms ease,
    gap 180ms ease;
}

.search {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 0;
  transition: width 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search.is-expanded,
.search:focus-within {
  width: min(360px, 38vw);
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  border-radius: var(--radius-pill);
  background: #f1f1f5;
  color: #555664;
  opacity: 0;
  padding: 0 46px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition:
    opacity 160ms ease,
    padding 180ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.search.is-expanded input,
.search:focus-within input {
  opacity: 1;
  padding-left: 18px;
}

.search input::placeholder {
  color: #70717e;
}

.search input:focus {
  background: #f7f7fa;
  box-shadow:
    inset 0 0 0 1px #e7e7ef,
    0 10px 34px rgb(29 30 40 / 0.08);
}

.search-button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 18px rgb(236 76 137 / 0.2);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.search-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(1px) scale(0.98);
}

.search-button span,
.search-button span::after {
  position: absolute;
  display: block;
  content: "";
}

.search-button span {
  left: 12px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.search-button span::after {
  width: 8px;
  height: 2px;
  left: 10px;
  top: 12px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-type {
  position: absolute;
  top: 0;
  right: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #474855;
  font-size: 13px;
  font-weight: 800;
}

.search-type span,
.nav-links span,
.popular-button span {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.compact-nav .nav-links,
.compact-nav .upgrade-button,
.compact-nav .icon-only {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2d2e39;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.account-actions {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.upgrade-button,
.create-button,
.filters-button,
.popular-button,
.icon-only,
.profile-button,
.mobile-menu {
  border: 1px solid var(--line);
  background: #fff;
  color: #242531;
  font-weight: 800;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.upgrade-button {
  height: 42px;
  padding: 0 21px;
  border-color: var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
}

.create-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
}

.icon-only,
.profile-button,
.mobile-menu {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
}

.profile-button {
  overflow: visible;
}

.profile-button span {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fd3ff, #ff8c78);
  color: #fff;
}

.profile-button span::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #28c777;
  content: "";
}

.account-menu {
  position: fixed;
  z-index: 160;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgb(222 223 232 / 0.86);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 18px 42px rgb(20 21 30 / 0.16);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: accountMenuIn 140ms ease both;
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #24252f;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.account-menu button:hover,
.account-menu button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-text);
}

@keyframes accountMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-menu {
  display: none;
}

.mobile-menu span,
.mobile-menu span::before,
.mobile-menu span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #292a35;
  content: "";
}

.mobile-menu span::before {
  transform: translateY(-6px);
}

.mobile-menu span::after {
  transform: translateY(4px);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 0;
  gap: 24px;
}

.featured-section {
  margin: 20px 0 0;
}

.featured-section[hidden] {
  display: none;
}

.featured-head {
  display: none;
}

.featured-head h2 {
  margin: 0;
  color: #242531;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.featured-head span {
  color: #8c8d98;
  font-size: 13px;
  font-weight: 750;
}

.featured-carousel-wrap {
  position: relative;
  min-height: clamp(238px, 15.8vw, 318px);
}

.featured-carousel {
  position: relative;
  overflow: hidden;
  min-height: clamp(238px, 15.8vw, 318px);
  border-radius: 0;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  overflow: hidden;
  width: min(64vw, 1248px);
  height: 100%;
  border: 0;
  border-radius: 18px;
  background: #f2f2f5;
  color: #fff;
  opacity: 0;
  box-shadow: 0 18px 42px rgb(32 33 43 / 0.14);
  cursor: pointer;
  pointer-events: none;
  transform: translateX(-50%) scale(0.86);
  transition:
    left 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    right 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease;
}

.featured-card.is-active {
  left: 50%;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.featured-card.is-prev,
.featured-card.is-next {
  top: 14px;
  z-index: 1;
  width: min(22vw, 405px);
  height: calc(100% - 28px);
  opacity: 0.44;
  pointer-events: auto;
  box-shadow: none;
  filter: saturate(0.78);
}

.featured-card.is-prev {
  left: 0;
  transform: translateX(0) scale(1);
}

.featured-card.is-next {
  left: auto;
  right: 0;
  transform: translateX(0) scale(1);
}

.featured-card.is-hidden {
  left: 50%;
  opacity: 0;
  pointer-events: none;
}

.featured-card:hover,
.featured-card:focus-visible {
  box-shadow: 0 18px 40px rgb(32 33 43 / 0.13);
}

.featured-card.is-active:hover,
.featured-card.is-active:focus-visible {
  transform: translateX(-50%) scale(1.012);
}

.featured-card.is-prev:hover,
.featured-card.is-next:hover,
.featured-card.is-prev:focus-visible,
.featured-card.is-next:focus-visible {
  opacity: 0.62;
}

.featured-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.featured-card:hover img,
.featured-card:focus-visible img {
  transform: scale(1.045);
}

.featured-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.56));
  content: "";
  pointer-events: none;
}

.featured-chip {
  display: none;
}

.featured-copy {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 2;
  display: none;
  min-width: 260px;
  max-width: min(44%, 520px);
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 22px 22px 0 0;
  background: rgb(35 35 40 / 0.62);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

.featured-card.is-active .featured-copy {
  display: flex;
}

.featured-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-copy small {
  display: none;
}

.featured-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: #30313c;
  box-shadow: 0 12px 30px rgb(20 21 30 / 0.18);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
}

.featured-prev {
  left: 30px;
}

.featured-next {
  right: 30px;
}

.popular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.popular-button,
.filters-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  white-space: nowrap;
}

.filters-button {
  border-radius: var(--radius-pill);
}

.filters-button span {
  width: 13px;
  height: 13px;
  background: currentColor;
  clip-path: polygon(0 16%, 100% 16%, 74% 42%, 74% 80%, 48% 92%, 48% 42%);
}

.chip,
.follow-button {
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: #30313c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgb(30 31 40 / 0.03);
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.chip {
  padding: 0 24px;
  border: 1px solid #e9e9ee;
  background: #fff;
}

.chip:hover,
.chip.is-active {
  color: #242531;
  border-color: transparent;
  background: #f4f4f6;
}

.chip:active,
.follow-button:active {
  transform: translateY(1px);
}

.zcool-tabs.can-reorder-tabs .chip {
  cursor: grab;
}

.zcool-tabs.can-reorder-tabs .chip:active,
.chip.is-category-dragging {
  cursor: grabbing;
}

.chip.is-category-dragging {
  opacity: 0.58;
  transform: translateY(-1px) scale(0.98);
}

.follow-button {
  position: relative;
  min-width: 102px;
  padding: 0 35px 0 18px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.follow-button span,
.follow-button span::before {
  position: absolute;
  display: block;
  content: "";
}

.follow-button span {
  right: 16px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid #6d6e7b;
  border-bottom: 1.7px solid #6d6e7b;
  transform: rotate(45deg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(245px, 1fr));
  gap: 34px 34px;
  margin-top: 34px;
}

.shot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  animation: rise 420ms ease both;
}

.gallery.without-card-animation .shot {
  animation: none;
}

.thumb {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--cover-aspect-ratio);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.shot:hover .thumb {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgb(36 37 48 / 0.11);
}

.shot:hover .thumb img {
  transform: scale(1.055);
}

.shot-title {
  grid-column: 1;
  grid-row: 2;
  min-height: 40px;
  margin: 12px 10px 0 2px;
  overflow: hidden;
  color: #272832;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.week-badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  margin-top: 8px;
  min-width: 42px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgb(210 212 218 / 0.72);
  border-radius: 999px;
  background: #d3d5dc;
  color: #fff;
  box-shadow: 0 8px 18px rgb(80 82 92 / 0.12);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.14));
  transition: opacity 180ms ease;
  z-index: 2;
}

.shot:hover .thumb::before {
  opacity: 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.category-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  max-width: calc(100% - 20px);
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 18px rgb(250 190 0 / 0.22);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
}

.shot-admin-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.shot-admin-controls button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: #191a20;
  font-size: 12px;
  font-weight: 850;
}

.shot:hover .shot-admin-controls,
.shot-admin-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shot-admin-controls button:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.gallery.is-admin .shot {
  cursor: grab;
}

.gallery.is-admin .shot:active,
.shot.is-dragging {
  cursor: grabbing;
}

.shot.is-dragging {
  box-shadow: 0 14px 32px rgb(20 21 30 / 0.16);
}

.shot.is-drag-over .thumb {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.meta {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px 0;
}

.creator {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.creator:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

.avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45);
}

.name {
  min-width: 0;
  overflow: hidden;
  color: #4d4e5c;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #686978;
  font-size: 13px;
  font-weight: 650;
  flex: 0 0 auto;
}

.stat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

button.stat {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.stat:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.stat::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  opacity: 0.72;
  background: none;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  transform-origin: center;
}

.stat.likes::before {
  content: "♡";
}

.stat.likes.is-liked {
  color: #ef3f5f;
}

.stat.likes.is-liked::before {
  content: "♥";
  opacity: 1;
}

.stat.likes.like-burst::before {
  animation: likeHeartPop 420ms cubic-bezier(0.2, 1.7, 0.45, 1) both;
}

.stat.likes.like-burst::after {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ef3f5f;
  box-shadow:
    0 -14px 0 #ef3f5f,
    11px -8px 0 #ffbd00,
    12px 7px 0 #ef3f5f,
    -10px 8px 0 #ffbd00,
    -12px -7px 0 #ef3f5f;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: likeSpark 520ms ease-out both;
}

.stat.views::before {
  content: "";
  background: currentColor;
  opacity: 0.72;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-2.2a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6Z'/%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 24 24'%3E%3Cpath d='M12 5C7 5 2.7 8.1 1 12c1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7Zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0-2.2a1.8 1.8 0 1 0 0-3.6 1.8 1.8 0 0 0 0 3.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes likeHeartPop {
  0% {
    transform: scale(0.72);
  }

  55% {
    transform: scale(1.36);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes likeSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.empty-state {
  max-width: 460px;
  margin: 80px auto;
  text-align: center;
}

.empty-state h1 {
  margin: 0 0 10px;
  color: #31323e;
  font-size: 28px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.upload-view[hidden],
.auth-modal[hidden],
.profile-modal[hidden] {
  display: none;
}

.upload-view {
  min-height: 100dvh;
  background: #fff;
  color: #2f3038;
}

.zcool-upload-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid #ececf1;
  background: #fff;
}

.zcool-upload-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #191a20;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.zcool-upload-brand strong {
  letter-spacing: -0.02em;
}

.zcool-upload-brand span {
  font-size: 18px;
}

.upload-profile {
  transform: scale(.86);
}

.zcool-upload-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  min-height: calc(100dvh - 54px);
  padding-bottom: 76px;
  background: linear-gradient(90deg, #fff 0, #fff calc(100% - 386px), #f6f6f8 calc(100% - 386px));
}

.zcool-editor-main {
  position: relative;
  min-height: calc(100dvh - 130px);
  padding: 38px clamp(24px, 12vw, 720px) 140px clamp(24px, 28vw, 720px);
}

.zcool-title-input {
  width: min(720px, 100%);
  height: 54px;
  border: 0;
  border-bottom: 1px solid #ededf1;
  outline: 0;
  resize: none;
  overflow: hidden;
  display: block;
  color: #23242b;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  font-family: var(--zcool-font);
}

.zcool-title-input::placeholder,
.caption-block::placeholder,
.image-caption::placeholder {
  color: #b9bac2;
}

.zcool-title-count {
  width: min(720px, 100%);
  margin-top: -36px;
  text-align: right;
  color: #b0b1bb;
  font-size: 12px;
  pointer-events: none;
}

.layout-stage {
  margin-top: 42px;
}

.zcool-intro-copy {
  width: min(720px, 100%);
  margin: 38px 0 28px;
  color: #b0b1bb;
  line-height: 1.9;
  font-size: 15px;
  font-weight: 650;
}

.zcool-intro-copy p {
  margin: 0;
}

.zcool-image-block {
  position: relative;
  display: grid;
  place-items: center;
  width: min(720px, 100%);
  min-height: 420px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.zcool-image-block input,
.cover-uploader input {
  display: none;
}

.zcool-image-block img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.zcool-image-menu {
  position: absolute;
  left: -30px;
  top: 10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #aaaeb8;
  border-radius: 50%;
  color: #7d808c;
  font-size: 13px;
}

.zcool-upload-empty {
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed #dadbe2;
  border-radius: 4px;
  color: #9b9ca6;
  text-align: center;
}

.zcool-upload-empty b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d6d7dd;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
}

.zcool-upload-empty strong,
.zcool-upload-empty em {
  display: block;
  font-style: normal;
  font-weight: 650;
}

.image-caption {
  width: min(720px, 100%);
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: #777985;
  text-align: center;
  font-size: 14px;
}

.caption-block {
  width: min(720px, 100%);
  min-height: 120px;
  margin-top: 28px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid #f0f0f3;
  outline: 0;
  resize: vertical;
  color: #333441;
  line-height: 1.8;
  font-size: 15px;
}

.zcool-quick-tools {
  position: fixed;
  right: 408px;
  bottom: 132px;
  z-index: 50;
  display: grid;
  gap: 14px;
}

.zcool-quick-tools button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e3e8;
  border-radius: 50%;
  background: #fff;
  color: #555865;
  font-size: 11px;
  box-shadow: 0 8px 22px rgb(28 29 36 / .08);
}

.zcool-quick-tools span {
  display: block;
  font-weight: 900;
  font-size: 13px;
}

.zcool-settings-panel {
  position: sticky;
  top: 54px;
  height: calc(100dvh - 54px);
  overflow: auto;
  padding: 32px 28px 110px;
  border-left: 1px solid #eeeef2;
  background: #f7f7f9;
}

.cover-uploader {
  width: 100%;
  aspect-ratio: var(--cover-aspect-ratio);
  min-height: 0;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px dashed #d9dbe2;
  border-radius: 8px;
  background: #fff;
  color: #8f9099;
  cursor: pointer;
  overflow: hidden;
}

.cover-uploader.is-dragging-cover {
  border-color: var(--accent);
  background: #fff8d7;
  box-shadow: inset 0 0 0 1px rgb(250 190 0 / .35);
}

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

.cover-uploader img[hidden] {
  display: none;
}

.cover-uploader span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  padding: 16px;
}

.cover-uploader b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8d9df;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
}

.cover-uploader strong,
.cover-uploader em {
  display: block;
  font-style: normal;
}

.cover-uploader em {
  max-width: 220px;
  color: #aaaab3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.zcool-settings-panel label {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  color: #4f5059;
  font-weight: 800;
}

.zcool-settings-panel .required-field::before {
  content: "*";
  color: #ff5b43;
  margin-right: 2px;
}

.zcool-settings-panel small {
  justify-self: end;
  margin-top: -24px;
  color: #aaaab3;
  font-size: 12px;
  font-weight: 600;
}

.zcool-settings-panel input,
.zcool-settings-panel select {
  width: 100%;
  height: 42px;
  border: 1px solid #dedfe5;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #555661;
}

.field-hint {
  margin: -14px 0 24px;
  color: #aaaab3;
  font-size: 12px;
  line-height: 1.5;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 14px 0;
  color: #4f5059;
  font-weight: 800;
}

.switch-row em {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.switch-row .switch {
  margin: 0 0 0 auto;
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: block;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.switch span {
  width: 36px;
  height: 20px;
  display: block;
  border-radius: 999px;
  background: #dedfe5;
  position: relative;
  transition: background .18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / .18);
  transition: transform .18s ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.evidence-card {
  margin: 6px 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  color: #777985;
  font-size: 13px;
  line-height: 1.6;
}

.evidence-card strong {
  color: #4a4b54;
  font-size: 14px;
}

.evidence-card a {
  float: right;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.evidence-card p {
  margin: 6px 0 0;
}

.related-product-panel[hidden] {
  display: none;
}

.related-product-panel {
  margin: 0 0 18px;
}

.attachment-uploader {
  display: none !important;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: center;
}

.attachment-uploader input {
  display: none;
}

.attachment-uploader b {
  grid-column: 1 / -1;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.more-settings {
  margin-top: 18px;
  border-top: 1px solid #ebebef;
  padding-top: 18px;
}

.more-settings-toggle {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #4d4e58;
  font-weight: 850;
}

.more-settings-body {
  display: grid;
  gap: 18px;
  padding-top: 16px;
}

.more-settings-body.is-collapsed {
  display: none;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #4f5059;
  font-weight: 750;
}

.radio-row > span {
  margin-right: auto;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 650;
}

.radio-row input {
  width: auto;
  height: auto;
  accent-color: var(--accent);
}

.supabase-note {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: #777985;
  line-height: 1.5;
  font-size: 12px;
}

.zcool-publish-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid #ececf1;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgb(20 21 28 / .04);
}

.word-limit,
.draft-status {
  color: #9a9ba5;
  font-weight: 750;
}

.draft-status {
  color: #777985;
}

.bar-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dedfe5;
  border-radius: 10px;
  background: #fff;
  color: #555865;
}

.publish-orange {
  height: 42px;
  min-width: 126px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 900;
}

.publish-spinner {
  width: 16px;
  height: 16px;
  display: none;
  border: 2px solid rgb(44 36 0 / 0.22);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: publishSpin 800ms linear infinite;
}

.publish-orange.is-loading .publish-spinner {
  display: inline-block;
}

.publish-orange.is-loading {
  cursor: wait;
  opacity: 0.86;
}

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

.publish-orange:active,
.ghost-pill:active,
.bar-icon:active {
  transform: translateY(1px);
}

@media (max-width: 980px) {
  .zcool-upload-header {
    padding: 0 18px;
  }

  .zcool-upload-shell {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .zcool-editor-main {
    padding: 28px 18px 36px;
  }

  .zcool-title-input,
  .zcool-title-count,
  .zcool-intro-copy,
  .zcool-image-block,
  .image-caption,
  .caption-block {
    width: 100%;
  }

  .zcool-image-block {
    min-height: 300px;
  }

  .zcool-settings-panel {
    position: relative;
    top: auto;
    height: auto;
    padding: 24px 18px 104px;
    border-left: 0;
    border-top: 1px solid #eeeef2;
  }

  .zcool-quick-tools {
    position: fixed;
    right: 18px;
    bottom: 92px;
  }

  .zcool-publish-bar {
    height: auto;
    min-height: 72px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px;
    overflow-x: auto;
  }

  .word-limit,
  .draft-status {
    flex: 0 0 auto;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .zcool-upload-brand strong {
    font-size: 18px;
  }

  .zcool-upload-brand span {
    font-size: 15px;
  }

  .zcool-title-input {
    font-size: 21px;
  }

  .publish-orange {
    min-width: 88px;
  }
}

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

.upload-view {
  min-height: 100dvh;
  background: #fff;
}

.upload-promo {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 56px;
  background: #f2f3fa;
  color: #454653;
  font-size: 13px;
  font-weight: 650;
}

.upload-promo strong {
  padding: 3px 8px;
  border-radius: 4px;
  background: #222333;
  color: #fff;
  font-size: 11px;
}

.upload-promo button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 850;
}

.promo-close {
  position: absolute;
  right: 18px;
}

.upload-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
}

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

.ghost-pill,
.dark-pill {
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.ghost-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: #222331;
}

.dark-pill {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: calc(100dvh - 108px);
  border-top: 1px solid #eeeef3;
}

.editor-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 92px;
}

.editor-title {
  width: min(760px, 86vw);
  border: 0;
  outline: 0;
  color: #9c9daa;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 24px;
}

.upload-artboard {
  position: relative;
  display: grid;
  place-items: center;
  width: min(820px, 86vw);
  min-height: 460px;
  overflow: hidden;
  border: 1px dashed #e2e3ec;
  border-radius: 12px;
  background: #fafafd;
  cursor: pointer;
}

.upload-artboard input {
  display: none;
}

.upload-artboard img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-empty {
  max-width: 320px;
  color: #7c7d8b;
  text-align: center;
  line-height: 1.6;
}

.upload-empty strong {
  display: block;
  color: #333441;
  font-size: 18px;
}

.caption-block {
  width: min(630px, 76vw);
  min-height: 54px;
  margin-top: 64px;
  padding: 16px 18px;
  resize: vertical;
  border: 1.5px solid #f08bd3;
  border-radius: 9px;
  outline: 0;
  color: #333441;
}

.floating-tools {
  position: absolute;
  right: max(16px, calc(50% - 430px));
  bottom: 94px;
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 44px rgb(18 19 30 / 0.12);
}

.floating-tools button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b8c98;
}

.floating-tools .danger {
  color: #ef5c80;
}

.insert-block {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  height: 38px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: #5a5b67;
  font-weight: 800;
}

.editor-sidebar {
  padding: 24px 22px;
  border-left: 1px solid #eeeef3;
}

.close-editor-panel {
  border: 0;
  background: transparent;
  color: #6f707c;
  margin-bottom: 22px;
}

.editor-sidebar h2 {
  display: flex;
  gap: 10px;
  margin: 0 0 28px;
  color: #333441;
}

.editor-sidebar label {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
  color: #555663;
  font-weight: 750;
}

.editor-sidebar input,
.editor-sidebar select {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segmented button {
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented .is-selected {
  color: #6552ff;
  box-shadow: inset 0 0 0 2px #7765ff;
}

.alignment span {
  display: block;
  margin-bottom: 9px;
  color: #555663;
  font-weight: 750;
}

.supabase-note {
  padding: 14px;
  border-radius: 12px;
  background: #fff8dc;
  color: #725315;
  line-height: 1.5;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  animation: modalFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: 12dvh auto;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(20 21 30 / 0.26);
  animation: modalRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-modal.is-closing {
  animation: modalFadeOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.auth-modal.is-closing .auth-card {
  animation: modalRiseOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.auth-card img {
  width: 150px;
  display: block;
  margin-bottom: 22px;
}

.auth-card h2 {
  margin: 0 0 8px;
}

.auth-card p {
  margin: 0 0 22px;
  color: #70717d;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f3f6;
}

.auth-tabs button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f707c;
  font-weight: 850;
}

.auth-tabs button.is-active {
  background: #fff;
  color: #1f2028;
  box-shadow: 0 4px 14px rgb(20 21 28 / 0.08);
}

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

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 750;
}

.auth-card input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
}

.auth-card .primary-action {
  width: 100%;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.auth-actions .primary-action {
  width: 100%;
}

.auth-actions .secondary-action {
  height: 42px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 145;
  animation: modalFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-modal.is-closing {
  animation: modalFadeOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.profile-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(18 19 28 / 0.42);
}

.profile-panel {
  position: absolute;
  top: 58px;
  right: 26px;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 84px);
  overflow: auto;
  padding: 28px 24px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(20 21 30 / 0.25);
  animation: modalRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-modal.is-closing .profile-panel {
  animation: modalRiseOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 4px 0 10px;
  border: 0;
  background: transparent;
  color: #242531;
  text-align: left;
}

.profile-panel-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fd3ff, #ff8c78);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgb(20 21 30 / 0.1);
}

.profile-name-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-name-stack strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-name-stack small,
.settings-head p,
.profile-benefit-card p,
.profile-status {
  color: #777985;
  font-size: 13px;
}

.profile-chevron {
  color: #242531;
  font-size: 28px;
  line-height: 1;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 18px;
  text-align: center;
}

.profile-stats span {
  display: grid;
  gap: 4px;
}

.profile-stats strong {
  color: #242531;
  font-size: 17px;
  font-weight: 900;
}

.profile-stats small {
  color: #777985;
  font-size: 12px;
}

.profile-benefit-card {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf3ff, #fff7cf);
}

.profile-benefit-card strong {
  display: block;
  margin-bottom: 6px;
  color: #353746;
  font-size: 17px;
}

.profile-benefit-card p {
  margin: 0;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-action-grid button {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 72px;
  padding: 10px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #42444f;
  font-weight: 850;
}

.profile-action-grid button:hover,
.profile-action-grid button:focus-visible,
.profile-identity:hover,
.profile-identity:focus-visible {
  background: #f6f6f8;
}

.profile-action-grid span {
  font-size: 20px;
}

.settings-panel {
  right: 50%;
  width: min(460px, calc(100vw - 32px));
  transform: translateX(50%);
}

.settings-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.settings-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.settings-head p {
  margin: 0;
}

.profile-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: #353746;
  font-weight: 850;
}

.profile-form input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

.profile-status {
  display: block;
  min-height: 20px;
  margin-top: 14px;
}

.personnel-panel {
  left: 50% !important;
  right: auto !important;
  width: min(980px, calc(100vw - 40px));
  top: 50%;
  max-height: min(860px, calc(100dvh - 64px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

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

.personnel-head h2 {
  margin: 0 0 5px;
  font-size: 26px;
}

.personnel-head p,
.personnel-summary,
.personnel-row-main p,
.personnel-metrics small {
  margin: 0;
  color: #777985;
  font-size: 13px;
}

.personnel-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f6;
  color: #242531;
  font-size: 24px;
}

.personnel-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.personnel-tabs button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e5e6eb;
  border-radius: 999px;
  background: #fff;
  color: #42444f;
  font-weight: 850;
}

.personnel-tabs button.is-active {
  border-color: #ffc400;
  background: #ffc400;
  color: #15151a;
}

.personnel-summary {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f7f9;
  font-weight: 850;
}

.personnel-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.personnel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #fff;
}

.personnel-avatar {
  width: 42px;
  height: 42px;
}

.personnel-row-main {
  min-width: 0;
}

.personnel-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.personnel-row-title strong,
.personnel-row-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personnel-row-title em {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.personnel-row-title em.is-posted {
  background: #fff2bd;
  color: #7a5600;
}

.personnel-row-title em.is-empty {
  background: #f0f1f4;
  color: #777985;
}

.personnel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 8px;
  text-align: center;
}

.personnel-metrics span {
  display: grid;
  gap: 3px;
}

.personnel-metrics strong {
  color: #242531;
  font-size: 17px;
  font-weight: 950;
}

.personnel-empty {
  padding: 32px;
  border-radius: 14px;
  background: #f7f7f9;
  color: #777985;
  text-align: center;
}

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-code-row .secondary-action {
  min-width: 112px;
  height: 46px;
  border-radius: 10px;
}

.auth-status {
  display: block;
  margin-top: 14px;
  color: #6f707c;
}

.shot-modal[hidden] {
  display: none;
}

.shot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  animation: modalFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgb(16 17 24 / 0.52);
  backdrop-filter: blur(10px);
}

.shot-modal .modal-scrim {
  background: rgb(0 0 0 / 0.86);
  backdrop-filter: none;
}

.shot-dialog {
  position: relative;
  width: min(1420px, calc(100vw - 72px));
  max-height: calc(100dvh - 40px);
  margin: 20px auto;
  overflow: auto;
  scrollbar-width: none;
  border-radius: var(--radius-dialog);
  background: #fff;
  box-shadow: 0 28px 90px rgb(20 21 30 / 0.26);
  animation: modalRiseIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shot-modal.is-closing {
  animation: modalFadeOut 180ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.shot-modal.is-closing .shot-dialog {
  animation: modalRiseOut 180ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.shot-dialog::-webkit-scrollbar {
  display: none;
}

.modal-scrollbar {
  position: sticky;
  top: 22px;
  float: right;
  width: 10px;
  height: calc(100dvh - 84px);
  margin-right: 9px;
  margin-bottom: calc(-100dvh + 84px);
  border-radius: var(--radius-pill);
  background: rgb(31 32 43 / 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 25;
  cursor: pointer;
  touch-action: none;
}

.modal-scrollbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-scrollbar span {
  display: block;
  width: 100%;
  min-height: 36px;
  border-radius: inherit;
  background: rgb(31 32 43 / 0.44);
  transform: translateY(0);
  cursor: grab;
}

.modal-scrollbar.is-dragging span {
  cursor: grabbing;
  background: rgb(31 32 43 / 0.68);
}

.modal-close,
.modal-nav {
  position: fixed;
  z-index: 150;
  border: 0;
  background: #fff;
  color: #3e3f4b;
  box-shadow: 0 10px 30px rgb(20 21 30 / 0.16);
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.modal-close {
  top: 22px;
  right: max(24px, calc((100vw - min(1420px, calc(100vw - 72px))) / 2 + 20px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 38px;
}

.shot-modal > .modal-close {
  top: 43px;
  right: max(29px, calc((100vw - min(1420px, calc(100vw - 72px))) / 2 + 25px));
}

.modal-nav {
  top: 50%;
  width: 55px;
  height: 82px;
  border-radius: 999px;
  padding: 0;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.modal-prev {
  left: max(18px, calc((100vw - min(1420px, calc(100vw - 72px))) / 2 - 82px));
}

.modal-next {
  right: max(180px, calc((100vw - min(1420px, calc(100vw - 72px))) / 2 - 82px));
}

.modal-close:hover,
.modal-nav:hover {
  background: #f7f7fa;
}

.modal-close:active,
.modal-nav:active {
  transform: translateY(1px) scale(0.98);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 54px 12px;
}

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

.detail-copy h1 {
  margin: 0 0 10px;
  color: #20212c;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.detail-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #70717d;
  font-weight: 650;
}

.detail-avatar {
  width: 28px;
  height: 28px;
}

.detail-author-name,
.detail-team {
  color: #363744;
  font-weight: 780;
}

.detail-for {
  color: #8b8c98;
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: #238755;
  font-size: 13px;
  font-weight: 780;
}

.work-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cc46c;
}

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

.detail-side-actions {
  position: fixed;
  top: calc(50% - 203px);
  right: max(16px, calc((100vw - min(1420px, calc(100vw - 72px))) / 2 - 88px));
  transform: translateY(-50%);
  z-index: 130;
  display: grid;
  justify-items: center;
  gap: 24px;
  width: 74px;
  padding: 0 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.side-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.side-user-action,
.side-tool-action,
.side-like-action {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.side-user-action {
  position: relative;
  pointer-events: none;
}

.side-label {
  margin-top: 2px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-tool-action {
  cursor: pointer;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.side-tool-action:hover {
  color: #fff;
  transform: translateY(-1px);
}

.side-tool-action:active,
.side-like-action:active {
  transform: translateY(1px) scale(0.98);
}

.side-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e4e5eb;
  border-radius: 50%;
  background: #fff;
  color: #111219;
}

.side-icon::before,
.side-like-icon::before {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  content: "";
}

.side-icon-tools::before {
  border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4V4Zm2 2v12h12V6H6Zm2 2h8v2H8V8Zm0 4h8v2H8v-2Z'/%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 24 24'%3E%3Cpath d='M4 4h16v16H4V4Zm2 2v12h12V6H6Zm2 2h8v2H8V8Zm0 4h8v2H8v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.side-icon-save::before,
.side-icon-file::before,
.share-folder-icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4h4.2l2 2H19a2 2 0 0 1 2 2v9.5A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5v-11Z'/%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 24 24'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4h4.2l2 2H19a2 2 0 0 1 2 2v9.5A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5v-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.side-icon-file::before {
  width: 22px;
  height: 22px;
}

.side-like-action {
  color: #fff;
  cursor: pointer;
}

.side-like-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 12px 26px rgb(250 190 0 / 0.28);
}

.side-like-icon::before {
  width: 22px;
  height: 22px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12Zm19-10.5c0-1.1-.9-2-2-2h-5.3l1-4.7.1-.5c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6c-.4.4-.6.9-.6 1.4v10c0 1.1.9 2 2 2h8.7c.8 0 1.5-.5 1.8-1.2l3-7c.1-.2.2-.5.2-.8v-1.5Z'/%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 24 24'%3E%3Cpath d='M2 21h4V9H2v12Zm19-10.5c0-1.1-.9-2-2-2h-5.3l1-4.7.1-.5c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6c-.4.4-.6.9-.6 1.4v10c0 1.1.9 2 2 2h8.7c.8 0 1.5-.5 1.8-1.2l3-7c.1-.2.2-.5.2-.8v-1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-action,
.secondary-action,
.primary-action {
  height: 42px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.icon-action {
  width: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4a4b57;
  font-size: 20px;
}

.icon-action.is-liked {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: #343541;
  padding: 0 18px;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 20px;
}

.secondary-action:hover,
.icon-action:hover {
  background: #f7f7fa;
  border-color: #cfd1dc;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.icon-action:active,
.secondary-action:active,
.primary-action:active {
  transform: translateY(1px) scale(0.98);
}

.detail-layout {
  display: grid;
  gap: 22px;
  margin: 0 54px;
}

.detail-media {
  margin: 0 54px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.detail-layout .detail-media {
  margin: 0;
}

.detail-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-dialog-inner);
  object-fit: contain;
  cursor: zoom-in;
}

.detail-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-dialog-inner);
  background: #000;
}

.detail-media figcaption {
  margin: 12px 0 0;
  padding: 0;
  background: transparent;
  color: #9b9ca6;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.detail-text {
  margin: 0;
  color: #555663;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.detail-text.align-center {
  text-align: center;
}

.detail-text.align-right {
  text-align: right;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.image-viewer.is-closing {
  animation: modalFadeOut 160ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.image-viewer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(8 9 13 / 0.88);
  cursor: zoom-out;
}

.image-viewer img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.32);
}

.image-viewer-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: #252631;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.24);
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}

.file-share-modal[hidden] {
  display: none;
}

.file-share-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalFadeIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.file-share-modal.is-closing {
  animation: modalFadeOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.file-share-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 0.86);
}

.file-share-card {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100vw - 48px));
  padding: 42px 50px 50px;
  border-radius: 8px;
  background: #fff;
  color: #252630;
  text-align: center;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.32);
  animation: modalRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.file-share-modal.is-closing .file-share-card {
  animation: modalRiseOut 170ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.file-share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  color: #777984;
}

.file-share-card h2 {
  margin: 0 0 10px;
  color: #1c1d25;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.file-share-card > p {
  margin: 0 0 34px;
  color: #575862;
  font-size: 15px;
  line-height: 1.55;
}

.file-share-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 28px;
  border-radius: 7px;
  background: #ececf2;
}

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

.file-share-preview::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.64));
  content: "";
}

.file-share-preview-copy {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 13px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-align: left;
}

.file-share-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.file-share-preview-copy strong,
.file-share-preview-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-share-preview-copy strong {
  max-width: 310px;
  font-size: 16px;
  font-weight: 950;
}

.file-share-preview-copy small {
  max-width: 310px;
  margin-top: 2px;
  color: rgb(255 255 255 / 0.84);
  font-size: 12px;
  font-weight: 750;
}

.file-share-actions {
  display: grid;
  gap: 10px;
}

.file-share-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #e2e3e8;
  border-radius: 999px;
  background: #fff;
  color: #24252d;
  font-size: 14px;
  font-weight: 850;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.file-share-actions button:hover {
  border-color: #d1d3dc;
  background: #f7f7fa;
}

.file-share-actions button:active {
  transform: translateY(1px) scale(0.99);
}

.file-extension-help[hidden] {
  display: none;
}

.file-extension-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f7fa;
  color: #5c5d68;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.file-extension-help strong {
  color: #24252d;
  font-size: 13px;
}

.file-extension-help a {
  color: #1f5fff;
  font-weight: 850;
  text-decoration: none;
}

.file-extension-help .file-extension-install {
  width: 100%;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 10px 24px rgb(250 190 0 / 0.18);
}

.file-extension-help a:hover {
  text-decoration: underline;
}

.file-extension-help .file-extension-install:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.share-action-icon {
  width: 15px;
  height: 15px;
  background: currentColor;
}

.share-link-icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.1 17.6a5 5 0 0 1 0-7.1l2.1-2.1 1.4 1.4-2.1 2.1a3 3 0 0 0 4.2 4.2l2.1-2.1 1.4 1.4-2.1 2.1a5 5 0 0 1-7 .1Zm2.8-2.1-1.4-1.4 5.6-5.6 1.4 1.4-5.6 5.6Zm3.6-5.6L11.4 12l-1.4-1.4 2.1-2.1a3 3 0 0 1 4.2 4.2l-2.1 2.1 1.4 1.4 2.1-2.1a5 5 0 0 0-7.1-7.1L8.5 9.2l1.4 1.4Z'/%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 24 24'%3E%3Cpath d='M7.1 17.6a5 5 0 0 1 0-7.1l2.1-2.1 1.4 1.4-2.1 2.1a3 3 0 0 0 4.2 4.2l2.1-2.1 1.4 1.4-2.1 2.1a5 5 0 0 1-7 .1Zm2.8-2.1-1.4-1.4 5.6-5.6 1.4 1.4-5.6 5.6Zm3.6-5.6L11.4 12l-1.4-1.4 2.1-2.1a3 3 0 0 1 4.2 4.2l-2.1 2.1 1.4 1.4 2.1-2.1a5 5 0 0 0-7.1-7.1L8.5 9.2l1.4 1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-copy-icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h3Zm2 0h3a2 2 0 0 1 2 2v3h3V5h-8v3Zm-5 3v8h8v-8H5Z'/%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 24 24'%3E%3Cpath d='M8 8V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h3Zm2 0h3a2 2 0 0 1 2 2v3h3V5h-8v3Zm-5 3v8h8v-8H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file-share-status {
  display: block;
  min-height: 18px;
  margin-top: 14px;
  color: #8c6b00;
  font-size: 13px;
  font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
  .shot-modal,
  .shot-dialog,
  .auth-modal,
  .auth-card,
  .profile-modal,
  .profile-panel,
  .image-viewer,
  .file-share-modal,
  .file-share-card,
  .shot-modal.is-closing,
  .shot-modal.is-closing .shot-dialog,
  .auth-modal.is-closing,
  .auth-modal.is-closing .auth-card,
  .profile-modal.is-closing,
  .profile-modal.is-closing .profile-panel,
  .image-viewer.is-closing,
  .file-share-modal.is-closing,
  .file-share-modal.is-closing .file-share-card,
  .sort-modal,
  .sort-dialog,
  .sort-modal.is-closing,
  .sort-modal.is-closing .sort-dialog {
    animation-duration: 1ms;
    transition-duration: 1ms;
  }
}

.detail-description {
  max-width: 760px;
  margin: 28px 54px 0;
  color: #555663;
  font-size: 16px;
  line-height: 1.7;
}

.designer-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 36px 54px 0;
  padding: 24px;
  border: 1px solid #ececf3;
  border-radius: var(--radius-dialog-inner);
  background: #fafafd;
}

.image-pending,
.layout-image:not(.has-text) {
  display: none;
}

.designer-avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.designer-card h2 {
  margin: 0 0 5px;
  color: #242531;
  font-size: 18px;
}

.designer-card p {
  margin: 0;
  color: #737480;
  line-height: 1.5;
}

.more-section {
  padding: 42px 54px 54px;
}

.more-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.more-title-row h2 {
  margin: 0;
  color: #242531;
  font-size: 22px;
}

.compact {
  height: 36px;
  padding-inline: 15px;
}

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

.more-card {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-dialog-inner);
  background: #f0f0f4;
}

.more-card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--cover-aspect-ratio);
  object-fit: cover;
}

.author-modal {
  z-index: 112;
}

.author-modal > .modal-close {
  top: 74px;
  right: max(12px, calc((100vw - min(1740px, calc(100vw - 120px))) / 2 - 125px));
}

.author-dialog {
  width: min(1740px, calc(100vw - 120px));
  height: calc(100dvh - 96px);
  max-height: calc(100dvh - 96px);
  margin: 48px auto;
  background: #fff;
}

.author-cover {
  position: relative;
  height: clamp(210px, 30dvh, 340px);
  overflow: hidden;
  background: #ffc400;
}

.author-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.author-profile-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  padding: 0 48px 40px;
}

.author-profile-side {
  position: relative;
  padding-top: 0;
}

.author-profile-avatar {
  width: 96px;
  height: 96px;
  margin-top: -48px;
  border: 6px solid #fff;
  box-shadow: 0 16px 34px rgb(23 24 31 / .18);
  font-size: 34px;
}

.author-profile-side h2 {
  margin: 18px 0 8px;
  color: #171821;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
}

.author-profile-role {
  margin: 0 0 24px;
  color: #6f707b;
  font-size: 14px;
  font-weight: 650;
}

.author-profile-stats {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #ededf2;
}

.author-profile-stats span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: #777884;
}

.author-profile-stats strong {
  color: #171821;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.author-profile-stats small {
  font-size: 13px;
  font-weight: 800;
}

.author-profile-main {
  min-width: 0;
  padding-top: 46px;
}

.author-profile-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ededf2;
}

.author-profile-head h3 {
  margin: 0;
  color: #1c1d27;
  font-size: 22px;
}

.author-profile-head span {
  color: #898a95;
  font-size: 13px;
  font-weight: 800;
}

.author-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  padding-top: 24px;
}

.author-post-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.author-post-card img {
  width: 100%;
  aspect-ratio: var(--cover-aspect-ratio);
  border-radius: 8px;
  object-fit: cover;
  background: #f1f1f5;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.author-post-card .category-badge {
  position: absolute;
  top: 9px;
  bottom: auto;
  left: 9px;
}

.author-post-card strong {
  overflow: hidden;
  color: #20212b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-post-card > span:last-child {
  color: #92939e;
  font-size: 12px;
  font-weight: 750;
}

.author-post-card:hover img,
.author-post-card:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(31 32 42 / .14);
}

.author-post-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 10px;
}

.author-post-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #dedfe6;
  border-radius: 10px;
  color: #898a95;
  font-weight: 800;
  background: #fafafe;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1720px) {
  .page-shell {
    padding-inline: 44px;
  }

  .main-nav {
    grid-template-columns: auto 1fr auto auto;
    gap: 22px;
  }

  .nav-links {
    gap: 22px;
  }

  .gallery {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
  }
}

@media (max-width: 1360px) {
  .main-nav {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-links {
    display: none;
  }

  .account-actions {
    grid-column: auto;
  }

  .icon-only {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
  }
}

@media (max-width: 1020px) {
  .page-shell {
    padding-inline: 22px;
  }

  .topbar {
    padding-bottom: 26px;
  }

  .main-nav {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
  }

  .account-actions:not(.compact-account) {
    display: none;
  }

  .mobile-menu {
    display: grid;
  }

  .filter-row {
    align-items: center;
    margin-top: 22px;
  }

  .featured-carousel {
    min-height: clamp(190px, 24vw, 246px);
  }

  .featured-carousel-wrap {
    min-height: clamp(190px, 24vw, 246px);
  }

  .featured-card {
    width: min(70vw, 720px);
    border-radius: 14px;
  }

  .featured-card.is-prev,
  .featured-card.is-next {
    width: min(22vw, 220px);
  }

  .featured-nav {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 28px;
  }

  .shot-dialog {
    width: min(100vw - 32px, 920px);
  }

  .author-dialog {
    width: min(100vw - 48px, 1220px);
    height: calc(100dvh - 72px);
    max-height: calc(100dvh - 72px);
    margin: 36px auto;
  }

  .author-profile-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
    padding: 0 34px 46px;
  }

  .author-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-side-actions {
    top: calc(50% - 170px);
    right: max(12px, calc((100vw - min(920px, calc(100vw - 32px))) / 2 - 76px));
  }

  .modal-prev {
    left: max(10px, calc((100vw - min(920px, calc(100vw - 32px))) / 2 - 64px));
  }

  .modal-next {
    right: max(160px, calc((100vw - min(920px, calc(100vw - 32px))) / 2 - 62px));
  }

  .modal-close {
    right: max(18px, calc((100vw - min(920px, calc(100vw - 32px))) / 2 + 12px));
  }

  .detail-head {
    display: block;
  }

  .detail-actions {
    margin-top: 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px 14px 56px;
  }

  .topbar {
    padding-bottom: 24px;
  }

  .main-nav {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand {
    font-size: 25px;
  }

  .brand-image {
    width: 108px;
    height: 40px;
  }

  .search {
    width: 38px;
    height: 38px;
  }

  .search.is-expanded,
  .search:focus-within {
    position: absolute;
    right: 56px;
    width: min(280px, calc(100vw - 170px));
    z-index: 25;
  }

  .compact-account.is-search-expanded {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
  }

  .compact-account.is-search-expanded .search {
    position: relative;
    right: auto;
    flex: 1 1 auto;
    width: min(320px, calc(100vw - 112px));
    max-width: none;
    z-index: 25;
  }

  .compact-account.is-search-expanded .create-button,
  .compact-account.is-search-expanded .profile-button {
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: scale(0.9);
  }

  .search input {
    padding-right: 42px;
    font-size: 13px;
  }

  .search-type {
    display: none;
  }

  .search-button {
    width: 34px;
    height: 34px;
    top: 2px;
    right: 2px;
  }

  .search-button span {
    left: 10px;
    top: 9px;
  }

  .filter-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
  }

  .featured-section {
    margin-top: 18px;
  }

  .featured-head {
    margin-bottom: 10px;
  }

  .featured-head h2 {
    font-size: 16px;
  }

  .featured-head span {
    display: none;
  }

  .featured-carousel {
    min-height: clamp(142px, 42vw, 210px);
  }

  .featured-carousel-wrap {
    min-height: clamp(142px, 42vw, 210px);
  }

  .featured-card {
    width: 76vw;
    border-radius: 12px;
  }

  .featured-card.is-prev,
  .featured-card.is-next {
    top: 10px;
    width: 24vw;
    height: calc(100% - 20px);
  }

  .featured-copy {
    min-width: 190px;
    max-width: 72%;
    height: 32px;
  }

  .featured-copy strong {
    font-size: 12px;
  }

  .popular {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px;
  }

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

  .follow-button {
    display: none;
  }

  .popular-button,
  .filters-button {
    height: 36px;
    padding-inline: 13px;
    border-radius: var(--radius-pill);
    font-size: 13px;
  }

  .filters-button {
    flex: 0 0 auto;
  }

  .chip {
    height: 36px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    margin-top: 22px;
  }

  .name {
    font-size: 13px;
  }

  .meta {
    align-items: flex-start;
  }

  .stats {
    display: none;
  }

  .shot-dialog {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .author-dialog {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .author-cover {
    height: 190px;
  }

  .author-profile-shell {
    display: block;
    padding: 0 18px 44px;
  }

  .author-profile-side {
    padding-bottom: 22px;
  }

  .author-profile-avatar {
    width: 82px;
    height: 82px;
    margin-top: -41px;
    font-size: 28px;
  }

  .author-profile-side h2 {
    font-size: 24px;
  }

  .author-profile-main {
    padding-top: 0;
  }

  .author-profile-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .author-post-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .modal-scrollbar {
    top: 68px;
    height: calc(100dvh - 90px);
    margin-right: 5px;
    margin-bottom: calc(-100dvh + 90px);
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .author-modal > .modal-close {
    top: 12px;
    right: 12px;
  }

  .shot-modal > .modal-close {
    top: 16px;
    right: 16px;
  }

  .modal-nav {
    display: none;
  }

  .detail-side-actions {
    display: none;
  }

  .detail-head {
    display: block;
    padding: 60px 16px 10px;
  }

  .detail-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1;
  }

  .detail-actions {
    margin-top: 18px;
    flex-wrap: wrap;
  }

  .detail-media,
  .detail-description,
  .designer-card {
    margin-left: 16px;
    margin-right: 16px;
  }

  .detail-layout {
    gap: 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .detail-media {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    background: transparent;
  }

  .detail-media img {
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
  }

  .image-viewer {
    padding: 0;
  }

  .image-viewer img {
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .image-viewer-close {
    top: 12px;
    right: 12px;
  }

  .designer-card {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .designer-card .primary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .more-section {
    padding: 32px 16px 44px;
  }

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

@media (max-width: 460px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .page-shell {
    padding-inline: 12px;
  }

  .avatar {
    width: 20px;
    height: 20px;
  }

  .name {
    max-width: 88px;
  }

  .detail-author {
    align-items: flex-start;
  }

  .detail-actions > * {
    flex: 1 1 auto;
  }

  .icon-action {
    flex: 0 0 42px;
  }

  .primary-action {
    min-width: 128px;
  }
}

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

  .editor-sidebar {
    border-left: 0;
    border-top: 1px solid #eeeef3;
  }
}

@media (max-width: 760px) {
  .compact-account {
    display: flex;
  }

  .editor-title {
    font-size: 24px;
  }

  .upload-artboard {
    width: calc(100vw - 28px);
    min-height: 280px;
  }

  .caption-block {
    width: calc(100vw - 34px);
    margin-top: 38px;
  }

  .floating-tools {
    right: 18px;
    bottom: 74px;
  }
}

@media (max-width: 340px) {
  .gallery,
  .more-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ZCOOL-style free layout editor */
.legacy-field {
  display: none !important;
}

#post-preview {
  display: none !important;
}

.layout-stage {
  position: relative;
  width: min(720px, 100%);
  min-height: 540px;
}

.layout-blocks {
  display: grid;
  gap: 0;
  min-height: 540px;
  align-content: start;
}

.layout-blocks.is-dragging-image {
  outline: 1px dashed var(--accent);
  outline-offset: 18px;
  background: rgb(255 106 69 / 0.03);
}

.layout-block {
  position: relative;
  min-height: 34px;
  display: grid;
  justify-items: center;
}

.layout-image,
.layout-video {
  z-index: 5;
}

.layout-image::after,
.layout-video::after {
  position: absolute;
  left: -54px;
  top: 0;
  width: 54px;
  height: 44px;
  content: "";
  pointer-events: auto;
}

.next-line-insert {
  position: relative;
  width: min(720px, 100%);
  height: 34px;
  justify-self: center;
  pointer-events: auto;
  z-index: 8;
  cursor: text;
}

.next-line-insert button {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e626a;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    color 140ms ease;
}

.next-line-insert::before {
  position: absolute;
  left: -44px;
  right: 0;
  top: 0;
  bottom: 0;
  content: "";
  pointer-events: auto;
}

.next-line-insert button::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/editor-plus.svg") center / contain no-repeat;
  mask: url("./assets/editor-plus.svg") center / contain no-repeat;
}

.next-line-insert:hover button,
.next-line-insert:focus-within button,
.next-line-insert button:hover,
.next-line-insert button:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.next-line-insert button:hover,
.next-line-insert button:focus-visible {
  color: var(--accent);
}

.layout-block::before {
  position: absolute;
  inset: -8px 0 -8px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  content: "";
  pointer-events: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.layout-block:hover::before,
.layout-block.is-active::before {
  border-color: #ececf1;
  background: rgb(247 247 249 / 0.42);
}

.layout-text:hover::before,
.layout-text.is-active::before {
  border-color: transparent;
  background: transparent;
}

.layout-image:hover::before,
.layout-image.is-active::before,
.layout-video:hover::before,
.layout-video.is-active::before {
  border-color: transparent;
  background: transparent;
}

.layout-text .block-handle {
  left: -36px;
  top: 4px;
}

.layout-text .block-floating-tools {
  left: -36px;
}

.block-handle,
.block-floating-tools {
  position: absolute;
  left: -36px;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.block-handle {
  top: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5e626a;
  font-size: 0;
  font-weight: 600;
}

.block-handle::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask: url("./assets/editor-menu.svg") center / contain no-repeat;
  mask: url("./assets/editor-menu.svg") center / contain no-repeat;
}

.block-handle.is-plus-handle::before {
  -webkit-mask-image: url("./assets/editor-plus.svg");
  mask-image: url("./assets/editor-plus.svg");
}

.layout-block.tools-open .block-handle {
  color: var(--accent);
}

.block-floating-tools {
  top: 34px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #ececf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgb(20 21 28 / 0.12);
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 160ms;
}

.layout-text:hover > .block-handle,
.layout-block:focus-within > .block-handle,
.layout-image:hover > .block-handle,
.layout-image.tools-open > .block-handle,
.layout-video:hover > .block-handle,
.layout-video.tools-open > .block-handle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.layout-text.is-active .block-handle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.block-handle:hover,
.block-handle:focus-visible,
.next-line-insert button:hover,
.next-line-insert button:focus-visible {
  color: var(--accent);
}

.layout-block.tools-open .block-floating-tools {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.block-floating-tools button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #72737f;
  font-size: 12px;
  font-weight: 850;
}

.block-floating-tools button:hover {
  background: #f2f2f6;
  color: #20212c;
}

.block-floating-tools .danger {
  color: var(--accent);
}

.zcool-compose-panel {
  width: 250px;
  gap: 0;
  padding: 20px 24px 16px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgb(20 21 28 / 0.16);
  top: 35px;
  left: -34px;
}

.image-action-panel {
  width: 244px;
  min-height: 94px;
  padding: 14px 20px;
  top: 32px;
  left: -36px;
  display: grid;
  gap: 2px;
}

.zcool-compose-panel .insert-menu-row,
.zcool-compose-panel .format-row {
  width: 100%;
  border-radius: 4px;
}

.zcool-compose-panel .insert-menu-row {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.zcool-compose-panel .insert-menu-row b {
  min-width: 0;
  white-space: nowrap;
}

.text-format-panel {
  min-height: 246px;
}

.empty-compose-panel {
  min-height: 292px;
}

.insert-menu-list {
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.insert-menu-row {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #222;
  font-family: var(--zcool-font);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}

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

.insert-menu-row .tool-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #23242b;
  font-size: 15px;
  line-height: 1;
}

.insert-menu-row .pdf-ico {
  font-size: 8px;
  font-weight: 800;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.insert-menu-row b {
  font: inherit;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  gap: 16px 11px;
  align-items: center;
}

.text-format-panel button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #2f3038;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.text-format-panel button:hover,
.text-format-panel button.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.text-format-panel .format-grid button[data-block-action="list-bullet"],
.text-format-panel .format-grid button[data-block-action="list-ordered"] {
  font-size: 15px;
}

.text-format-panel .format-section-title {
  display: block;
  margin: 25px 0 10px;
  color: #555865;
  font-size: 13px;
  font-weight: 650;
}

.text-format-panel .format-row {
  width: 100%;
  height: 34px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  color: #30313c;
  font-size: 14px;
  font-weight: 650;
}

.text-format-panel .format-row:hover {
  background: transparent;
  color: var(--accent);
}

.text-format-panel .format-row span {
  width: 24px;
  color: #30313c;
  font-size: 21px;
}

.format-row .panel-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
}

.panel-sort::before,
.panel-sort::after,
.panel-trash::before,
.panel-trash::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}

.panel-sort::before {
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-left: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
}

.panel-sort::after {
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 0 42%, currentColor 43% 57%, transparent 58%) 1px 1px / 7px 7px no-repeat,
    linear-gradient(315deg, transparent 0 42%, currentColor 43% 57%, transparent 58%) 13px 14px / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 4px / 1.7px 14px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 4px / 1.7px 14px no-repeat;
}

.panel-trash::before {
  left: 6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.panel-trash::after {
  left: 5px;
  top: 5px;
  width: 13px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 4px -3px 0 -0.2px currentColor;
}

.compact-tools {
  width: auto;
}

.text-block {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  appearance: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: rgb(34 34 34);
  font-size: 16px;
  line-height: 28px;
  white-space: pre-wrap;
  font-family: "PingFang SC", var(--zcool-font);
  font-weight: 400;
}

.layout-block.is-active .text-block {
  background: transparent;
  border-radius: 3px;
}

.text-block:focus,
.text-block:focus-visible {
  outline: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.syl-editor {
  width: 100%;
  min-height: 28px;
  position: relative;
}

.syl-editor.has-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
}

.syl-editor .list-marker {
  min-width: 10px;
  color: #222;
  font-size: 16px;
  line-height: 28px;
  text-align: right;
  user-select: none;
}

.ProseMirror {
  display: block;
  min-height: 28px;
  font-size: 16px;
  line-height: 28px;
  font-family: "PingFang SC", var(--zcool-font);
  color: rgb(34 34 34);
}

.text-block::placeholder {
  color: rgb(186 186 186);
  opacity: 1;
  font-family: "PingFang SC", var(--zcool-font);
  font-size: 16px;
  line-height: 28px;
}

.insert-block,
.block-insert-popover,
.zcool-quick-tools,
.zcool-intro-copy {
  display: none !important;
}

.text-style-h1 {
  font-size: 30px;
  font-weight: 850;
  line-height: 1.35;
}

.text-style-h2 {
  font-size: 24px;
  font-weight: 820;
  line-height: 1.45;
}

.text-style-h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}

.text-block.is-bold {
  font-weight: 850;
}

.text-block.is-italic {
  font-style: italic;
}

.text-block.is-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-block.is-quote {
  padding-left: 18px;
  border-left: 4px solid #d9dbe2;
  color: #555865;
}

.text-block.has-link {
  color: #246bce;
}

.layout-block.align-left .text-block {
  text-align: left;
}

.layout-block.align-center .text-block {
  text-align: center;
}

.layout-block.align-right .text-block {
  text-align: right;
}

.image-block-shell {
  width: 100%;
  display: block;
  position: relative;
}

.image-upload-target {
  position: relative;
  width: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.image-upload-target img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.video-upload-target video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  margin-inline: auto;
  border: 0;
  border-radius: var(--radius-dialog-inner);
  background: #000;
}

.video-block-shell {
  width: 100%;
}

.image-delete-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.62);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.image-upload-target:hover .image-delete-button,
.image-upload-target:focus-within .image-delete-button,
.image-delete-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.layout-block.width-small .image-block-shell,
.layout-block.width-small .block-caption {
  width: min(420px, 100%);
}

.layout-block.width-medium .image-block-shell,
.layout-block.width-medium .block-caption {
  width: min(560px, 100%);
}

.layout-block.width-full .image-block-shell,
.layout-block.width-full .block-caption {
  width: 100%;
}

.layout-block.align-left {
  justify-items: start;
}

.layout-block.align-center {
  justify-items: center;
}

.layout-block.align-right {
  justify-items: end;
}

.layout-block.align-center .image-block-shell,
.layout-block.align-center .image-upload-target {
  justify-self: center;
  margin-inline: auto;
}

.layout-block.align-left .image-block-shell,
.layout-block.align-left .image-upload-target {
  justify-self: start;
}

.layout-block.align-right .image-block-shell,
.layout-block.align-right .image-upload-target {
  justify-self: end;
}

.image-layout-toolbar {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 10px 24px rgb(20 21 28 / 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.image-upload-target:hover .image-layout-toolbar,
.image-upload-target:focus-within .image-layout-toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.image-layout-toolbar button {
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3a3b44;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.image-layout-toolbar button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.block-caption {
  width: 100%;
  min-height: 38px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: #777985;
  text-align: center;
  font-size: 14px;
}

.video-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed #d8d9e0;
  border-radius: 8px;
  background: #fafafd;
  color: #8e8f99;
}

.video-placeholder strong {
  color: #333441;
  font-size: 18px;
}

.insert-block {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 38px;
  min-width: 210px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: #5a5b67;
  font-weight: 800;
}

.insert-block span {
  display: inline-block;
  margin-right: 8px;
  color: #20212c;
  font-size: 18px;
  line-height: 1;
}

.block-insert-popover {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 12;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e6ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgb(20 21 28 / 0.16);
  transform: translateX(-50%);
}

.block-insert-popover[hidden] {
  display: none;
}

.block-insert-popover button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f7;
  color: #333441;
  padding: 0 15px;
  font-weight: 850;
}

.block-insert-popover button:hover {
  background: var(--accent);
  color: #fff;
}

.sort-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sort-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sort-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.58);
}

.sort-dialog {
  position: relative;
  width: min(680px, calc(100vw - 36px));
  min-height: min(640px, calc(100dvh - 80px));
  margin: 9dvh auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(20 21 30 / 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.972);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sort-modal.is-open .sort-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sort-modal.is-closing {
  opacity: 0;
  transition-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
  transition-duration: 170ms;
}

.sort-modal.is-closing .sort-dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.976);
  transition-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
  transition-duration: 170ms;
}

.sort-dialog-head {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}

.sort-dialog-head h2 {
  margin: 0;
  color: #22232c;
  font-size: 20px;
  font-weight: 500;
}

.sort-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8b8d98;
  font-size: 30px;
  line-height: 1;
}

.sort-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0 38px 32px;
  overflow: auto;
}

.sort-item {
  min-height: 96px;
  display: grid;
  grid-template-columns: 26px 80px 56px 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f5f5f6;
  color: #33343e;
}

.sort-item.is-dragging {
  opacity: 0.45;
}

.sort-item.is-over {
  outline: 2px solid var(--accent);
}

.sort-grip {
  width: 24px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #a0a2ad;
  font-size: 19px;
}

.sort-thumb {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dedfe5;
  border-radius: 7px;
  background: #fff;
  color: #c9c9ce;
  font-size: 44px;
  font-weight: 850;
}

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

.sort-item b {
  font-size: 15px;
  font-weight: 600;
}

.sort-item p {
  margin: 0;
  color: #777985;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sort-actions {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid #f0f0f3;
}

.sort-actions button {
  width: 120px;
  height: 38px;
  border-radius: 7px;
  font-weight: 800;
}

.sort-cancel {
  border: 1px solid #c9cbd4;
  background: #fff;
  color: #555762;
}

.sort-confirm {
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
}

.search-button,
.switch-row em,
.attachment-uploader b,
.primary-action,
.publish-orange,
.sort-confirm,
.sort-thumb,
.upgrade-button {
  color: var(--accent-text);
}

.search-button span {
  border-color: var(--accent-text);
}

.search-button span::after {
  background: var(--accent-text);
}

@media (max-width: 980px) {
  .zcool-upload,
  .zcool-upload-shell,
  .zcool-editor-main,
  .zcool-settings-panel {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .zcool-upload-shell {
    display: block;
    min-width: 0;
  }

  .zcool-editor-main {
    min-width: 0;
    padding: 28px 18px 36px !important;
  }

  .layout-stage {
    width: 100%;
    max-width: 100%;
  }

  .block-handle,
  .block-floating-tools {
    left: auto;
    right: 6px;
  }

  .next-line-insert button {
    left: auto;
    right: 6px;
    width: 22px;
    height: 22px;
  }

  .zcool-compose-panel {
    left: auto;
    right: 0;
    width: min(244px, calc(100vw - 34px));
  }

  .block-handle {
    top: -16px;
  }

  .block-floating-tools {
    top: 16px;
  }

  .image-upload-target {
    min-height: 0;
  }

  .zcool-quick-tools {
    right: 16px;
    bottom: 88px;
  }

  .zcool-publish-bar {
    max-width: 100vw;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .zcool-publish-bar > * {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .layout-blocks {
    gap: 22px;
  }

  .layout-block::before {
    inset: -8px;
  }

  .block-floating-tools {
    grid-template-columns: repeat(3, 28px);
    border-radius: 18px;
  }

  .text-format-panel {
    right: 0;
    width: min(244px, calc(100vw - 34px));
    grid-template-columns: none;
    border-radius: 10px;
  }

  .format-grid {
    grid-template-columns: repeat(6, 24px);
  }

  .image-layout-toolbar {
    justify-content: flex-start;
    max-width: calc(100% - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .image-layout-toolbar::-webkit-scrollbar {
    display: none;
  }

  .image-upload-target {
    min-height: 0;
  }

  .insert-block {
    width: 100%;
  }

  .zcool-publish-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }

  .word-limit {
    display: none;
  }

  .draft-status {
    width: 100%;
    text-align: center;
  }

  .bar-icon {
    width: 34px;
    height: 34px;
  }

  .ghost-pill,
  .publish-orange {
    height: 34px;
    min-width: auto;
    padding: 0 12px;
  }
}

@media (max-width: 520px) {
  main.zcool-upload .zcool-publish-bar {
    height: auto;
    min-height: 92px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }

  main.zcool-upload .zcool-publish-bar > * {
    flex: 0 1 auto;
  }

  main.zcool-upload .word-limit {
    display: none;
  }

  main.zcool-upload .draft-status {
    flex-basis: 100%;
    text-align: center;
  }
}

/* Final ZCOOL editor panel overrides: keep menu rows readable even when generic tool-button rules apply. */
main.zcool-upload .zcool-compose-panel {
  display: block !important;
  width: 250px !important;
  min-width: 250px !important;
  max-width: min(250px, calc(100vw - 34px)) !important;
  padding: 20px 24px 16px !important;
}

main.zcool-upload .zcool-compose-panel .format-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 24px) !important;
  gap: 16px 11px !important;
}

main.zcool-upload .zcool-compose-panel .format-grid button {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
}

main.zcool-upload .zcool-compose-panel .insert-menu-list {
  display: grid !important;
  gap: 8px !important;
  margin-top: 22px !important;
}

main.zcool-upload .zcool-compose-panel .insert-menu-row,
main.zcool-upload .zcool-compose-panel .format-row {
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  border-radius: 4px !important;
  text-align: left !important;
  white-space: nowrap !important;
}

main.zcool-upload .zcool-compose-panel .insert-menu-row b,
main.zcool-upload .zcool-compose-panel .format-row {
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
}

main.zcool-upload .zcool-compose-panel .tool-ico,
main.zcool-upload .zcool-compose-panel .format-row span {
  flex: 0 0 22px !important;
}

main.zcool-upload .image-action-panel {
  width: 244px !important;
  min-width: 244px !important;
  min-height: 94px !important;
  padding: 14px 20px !important;
}

/* Yellow brand accent overrides. Keep layout stable, only shift key actions from black/pink to HJXH yellow. */
.search-button,
.upgrade-button,
.publish-orange,
.primary-action,
.sort-confirm,
.attachment-uploader b,
.switch-row em,
.block-insert-popover button:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-text) !important;
}

.search-button span {
  border-color: var(--accent-text) !important;
}

.search-button span::after {
  background: var(--accent-text) !important;
}

.icon-action.is-liked {
  border-color: rgb(255 226 128);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.side-like.is-liked,
#like-current.is-liked {
  color: var(--accent);
}

.side-like-action.is-liked .side-like-icon {
  background: #ef3f5f;
  color: #fff;
  box-shadow: 0 12px 26px rgb(239 63 95 / 0.24);
}

.side-like-action.is-liked > span:not(.side-like-icon) {
  color: var(--accent);
}

.side-like-action.like-burst .side-like-icon {
  animation: likeHeartPop 420ms cubic-bezier(0.2, 1.7, 0.45, 1) both;
}

/* Local review: Royal Tiger Design Center home shell */
#home-view {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0 0 80px;
  overflow-x: hidden;
  background: rgb(250 190 0);
}

#home-view .topbar {
  position: relative;
  top: auto;
  z-index: 36;
  height: 128px;
  padding: 0;
  background: #fff;
  backdrop-filter: none;
}

#home-view .main-nav {
  display: block;
  height: 100%;
}

#home-view .brand-image,
#home-view .mobile-menu {
  display: none;
}

.home-identity {
  position: absolute;
  left: 50px;
  top: 28px;
  z-index: 42;
  width: 820px;
  color: #050505;
  pointer-events: none;
}

.home-identity h1 {
  margin: 0;
  color: #000;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(176px, 12.2vw, 254px);
  font-weight: 1000;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.home-identity h1 span {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-identity h1 img {
  width: .78em;
  height: .78em;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-identity p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 0;
  color: #000;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.home-identity p::first-letter {
  font-size: 68px;
}

.home-year-mark {
  position: fixed;
  left: 58px;
  bottom: 96px;
  z-index: 43;
  display: block;
  width: auto;
  height: 106px;
  pointer-events: none;
  user-select: none;
}

.home-timeline {
  position: fixed;
  left: clamp(432px, 28.4vw, 540px);
  top: 300px;
  bottom: 72px;
  z-index: 35;
  display: grid;
  align-content: start;
  gap: 18px;
  width: 118px;
  padding: 54px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-14px) scale(0.985);
  transition:
    opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 260ms;
  will-change: opacity, transform;
}

#home-view.is-timeline-visible .home-timeline {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition:
    opacity 160ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

#home-view:not(.is-timeline-visible) .home-timeline {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-timeline[hidden] {
  display: none;
}

.home-timeline::before {
  position: absolute;
  top: -140px;
  bottom: 0;
  left: 13px;
  width: 1px;
  content: "";
  opacity: calc(var(--timeline-line-progress, 0) * 1);
  background:
    linear-gradient(
      180deg,
      rgb(250 190 0 / 0) 0%,
      rgb(250 190 0 / .16) 14%,
      rgb(42 43 50 / .18) 50%,
      rgb(250 190 0 / .16) 86%,
      rgb(250 190 0 / 0) 100%
    );
  transform: scaleY(var(--timeline-line-progress, 0));
  transform-origin: 50% 194px;
  transition:
    opacity 120ms linear,
    transform 80ms linear;
  will-change: transform, opacity;
}

#home-view.is-timeline-floating .home-timeline {
  transform: translateX(0) scale(1) !important;
}

#home-view.is-timeline-floating .home-timeline::before {
  opacity: 1;
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #878993;
  text-align: left;
}

.timeline-tooltip {
  position: absolute;
  top: 50%;
  left: 38px;
  z-index: 6;
  width: 190px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 15px 16px 14px;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 0%, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.18) 34%),
    linear-gradient(135deg, rgb(255 255 255 / 0.42), rgb(255 233 154 / 0.22)),
    rgb(255 255 255 / 0.38);
  box-shadow:
    0 22px 52px rgb(28 29 38 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.82),
    inset 0 -1px 0 rgb(255 255 255 / 0.28);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  color: #20212a;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%) scale(0.96);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.timeline-tooltip::before {
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  content: "";
  border-left: 1px solid rgb(255 255 255 / 0.62);
  border-bottom: 1px solid rgb(255 255 255 / 0.62);
  background: rgb(255 255 255 / 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%) rotate(45deg);
}

.timeline-tooltip::after {
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  content: "";
  border-radius: 13px 13px 24px 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.46), rgb(255 255 255 / 0));
  pointer-events: none;
}

.timeline-node:is(:hover, :focus-visible) .timeline-tooltip {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.timeline-tooltip__eyebrow {
  color: #8b6a00;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.timeline-tooltip__metric {
  display: grid;
  gap: 3px;
}

.timeline-tooltip__metric strong {
  color: #1f2028;
  font-size: 28px;
  font-weight: 950;
  line-height: 0.95;
}

.timeline-tooltip__metric small,
.timeline-tooltip__meta {
  color: #777985;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-left: 9px;
  border-radius: 50%;
  background: #cfd1d8;
  box-shadow:
    0 0 0 5px #fff,
    0 8px 20px rgb(0 0 0 / .08);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.timeline-copy {
  display: grid;
  gap: 3px;
  transform: translateX(0);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.timeline-copy strong {
  color: #292a31;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.timeline-copy small {
  color: #a2a4ae;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.timeline-node:hover .timeline-dot,
.timeline-node.is-active-week .timeline-dot {
  background: rgb(250 190 0);
  transform: scale(1.22);
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 11px rgb(250 190 0 / .14),
    0 12px 24px rgb(250 190 0 / .24);
}

.timeline-node:hover .timeline-copy,
.timeline-node.is-active-week .timeline-copy {
  transform: translateX(3px);
}

.timeline-node.is-active-week .timeline-copy strong {
  color: rgb(250 190 0);
}

#home-view .compact-account {
  position: absolute;
  top: 74px;
  right: 68px;
  z-index: 44;
  display: flex;
  align-items: center;
  gap: 24px;
}

#home-view .search {
  width: 36px;
  height: 42px;
  overflow: visible;
}

#home-view .search.is-expanded,
#home-view .search:focus-within {
  width: min(260px, 26vw);
}

#home-view .search input {
  height: 36px;
  margin-top: 3px;
  background: rgb(255 255 255 / 0.96);
  color: #17181f;
  opacity: 0;
  padding: 0 40px 0 14px;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.08);
  pointer-events: none;
}

#home-view .search.is-expanded input,
#home-view .search:focus-within input {
  opacity: 1;
  pointer-events: auto;
}

#home-view .search input::placeholder {
  color: #8a8b92;
  font-weight: 400;
}

#home-view .search-button {
  top: 3px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent !important;
  box-shadow: none;
}

#home-view .search-button::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: rgb(250 190 0);
}

#home-view .search-button span {
  left: 9px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-color: #08080a !important;
  border-width: 2.5px;
}

#home-view .search-button span::after {
  left: 12px;
  top: 13px;
  width: 9px;
  height: 2.5px;
  background: #08080a !important;
}

#home-view .create-button {
  width: 34px;
  height: 42px;
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  font-size: 0;
}

#home-view .create-button span {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

#home-view .profile-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  box-shadow: none;
}

#home-view .profile-button span {
  width: 36px;
  height: 36px;
  color: transparent;
  background: url("./assets/favicon.png") center / contain no-repeat !important;
}

#home-view .filter-row {
  position: absolute;
  top: 80px;
  right: 300px;
  z-index: 43;
  margin: 0;
  justify-content: flex-end;
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

#home-view.is-search-open .filter-row {
  transform: translateX(-184px);
}

#home-view .zcool-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#home-view .chip {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1c1c22;
  font-family: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none;
}

#home-view .chip:hover,
#home-view .chip.is-active {
  background: transparent;
  color: rgb(250 190 0);
}

#home-view .chip.is-active {
  font-weight: 700;
}

#home-view .featured-section {
  display: none !important;
}

#home-view .gallery {
  position: relative;
  z-index: 10;
  width: min(1530px, calc(100vw - 480px));
  min-height: calc(100vh - 190px);
  margin: 64px 116px 0 auto;
  padding: 48px 166px 118px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 28px;
  background: #fff;
}

#home-view .shot {
  align-self: start;
  min-width: 0;
}

#home-view .week-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin: 10px 0 -16px;
  color: #7b7d86;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

#home-view .week-divider:first-child {
  margin-top: 0;
}

#home-view .week-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgb(230 232 238 / .9), rgb(230 232 238 / 0));
}

#home-view .week-divider__dot {
  width: 10px;
  height: 10px;
  border: 3px solid #ffe28a;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(245 188 0 / .22);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#home-view .week-divider__label {
  color: #f0b800;
  font-size: 14px;
  font-weight: 950;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

#home-view .week-divider__meta {
  color: #a8aab3;
  font-size: 11px;
  font-weight: 850;
}

#home-view .week-divider.is-active-week .week-divider__dot {
  border-color: rgb(250 190 0);
  transform: scale(1.18);
  box-shadow:
    0 0 0 1px rgb(245 188 0 / .28),
    0 0 0 8px rgb(250 190 0 / .1);
}

#home-view .week-divider.is-active-week .week-divider__label {
  color: #17181f;
  transform: translateX(2px);
}

#home-view .thumb {
  border-radius: 8px;
  aspect-ratio: 1.44;
  box-shadow: none;
  background: #f3f3f3;
}

#home-view .shot:hover .thumb {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(36 37 48 / .12);
}

#home-view .shot-title {
  min-height: 30px;
  margin: 10px 8px 0 0;
  color: #1a1b22;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
}

#home-view .meta {
  margin-top: -8px;
  gap: 6px;
}

#home-view .creator {
  min-width: 0;
  gap: 7px;
}

#home-view .creator .name {
  max-width: 120px;
  color: #33343e;
  font-size: 11px;
  font-weight: 800;
}

#home-view .creator .tier {
  display: none;
}

#home-view .stats {
  gap: 8px;
  color: #b9bac4;
  font-size: 11px;
}

#home-view .week-badge {
  top: auto;
  right: 0;
  bottom: 38px;
  background: #d8dbe1;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

#home-view .category-badge {
  left: 8px;
  bottom: 8px;
}

#home-view .empty-state {
  position: relative;
  z-index: 10;
  width: min(1530px, calc(100vw - 480px));
  margin: 64px 116px 0 auto;
  background: #fff;
}

@media (max-width: 1480px) {
  .home-identity {
    left: 16px;
    top: 14px;
    width: 760px;
  }

  .home-identity h1 {
    font-size: clamp(158px, 13.5vw, 214px);
  }

  .home-identity p {
    margin-top: 34px;
    font-size: 31px;
  }

  .home-timeline {
    left: 346px;
    top: 268px;
    width: 104px;
  }

  #home-view .filter-row {
    right: 250px;
  }

  #home-view .zcool-tabs {
    gap: 18px;
  }

  #home-view .chip {
    font-size: 17px;
  }

  #home-view .gallery {
    width: calc(100vw - 410px);
    margin-right: 72px;
    padding-inline: 92px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .home-timeline {
    display: none !important;
  }

  #home-view {
    background: #fff;
  }

  #home-view .topbar {
    height: 0;
    min-height: 0;
    position: sticky;
    top: 0;
    overflow: visible;
  }

  #home-view .compact-account {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    width: 166px;
    min-height: 62px;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgb(255 255 255 / 0.42);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgb(255 255 255 / 0.74), rgb(255 255 255 / 0.36)),
      rgb(255 255 255 / 0.34);
    box-shadow:
      0 18px 50px rgb(0 0 0 / 0.18),
      inset 0 1px 0 rgb(255 255 255 / 0.76),
      inset 0 -1px 0 rgb(255 255 255 / 0.28);
    backdrop-filter: blur(22px) saturate(1.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.55);
    transform: translateX(-50%);
    transition:
      width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
      gap 180ms ease,
      background 180ms ease;
  }

  #home-view .compact-account.is-search-expanded {
    width: min(382px, calc(100vw - 28px));
    justify-content: flex-end;
    gap: 10px;
  }

  #home-view .filter-row {
    position: relative;
    top: auto;
    right: auto;
    padding: 0 18px 14px;
    overflow-x: auto;
    justify-content: flex-start;
    transform: none;
    scrollbar-width: none;
  }

  #home-view .filter-row::-webkit-scrollbar,
  #home-view .zcool-tabs::-webkit-scrollbar {
    display: none;
  }

  #home-view.is-search-open .filter-row {
    transform: none;
  }

  #home-view .zcool-tabs {
    gap: 16px;
    min-width: max-content;
    scrollbar-width: none;
  }

  #home-view .search {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 0;
    transition:
      flex-basis 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
      width 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  #home-view .search.is-expanded,
  #home-view .search:focus-within {
    flex: 1 1 0;
    width: auto;
  }

  #home-view .search input {
    opacity: 0;
    pointer-events: none;
    height: 42px;
    margin-top: 0;
    border: 1px solid rgb(255 255 255 / 0.5);
    background: rgb(255 255 255 / 0.56);
    padding: 0 44px 0 17px;
    color: #17181f;
    font-size: 14px;
    font-weight: 500;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.72),
      0 8px 22px rgb(0 0 0 / 0.08);
  }

  #home-view .search.is-expanded input,
  #home-view .search:focus-within input {
    opacity: 1;
    pointer-events: auto;
  }

  #home-view .search-button,
  #home-view .create-button,
  #home-view .profile-button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.58);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.52) !important;
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.82),
      0 8px 22px rgb(0 0 0 / 0.1);
  }

  #home-view .search-button {
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
  }

  #home-view .search-button::after {
    top: 9px;
    right: 9px;
    width: 4px;
    height: 4px;
  }

  #home-view .search-button span {
    left: 12px;
    top: 11px;
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  #home-view .search-button span::after {
    left: 11px;
    top: 12px;
    width: 8px;
    height: 2px;
  }

  #home-view .create-button {
    padding: 0;
    position: relative;
  }

  #home-view .create-button span {
    font-size: 0;
  }

  #home-view .create-button::before,
  #home-view .create-button::after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
  }

  #home-view .create-button::before {
    width: 18px;
    height: 18px;
    background: #111217;
    transform: translate(-50%, -50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 19h2v-8h4l-5-5-5 5h4v8ZM6 21h12v-2H6v2Z'/%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 24 24'%3E%3Cpath d='M11 19h2v-8h4l-5-5-5 5h4v8ZM6 21h12v-2H6v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  #home-view .create-button::after {
    display: none;
  }

  #home-view .profile-button span {
    width: 34px;
    height: 34px;
  }

  .home-identity {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: clamp(208px, 50vw, 266px);
    margin: 0 0 18px;
    padding: 0;
    display: block;
    background-image:
      url("./assets/royal-tiger-left-logo.png"),
      linear-gradient(#fff 0 31%, rgb(250 190 0) 31% 100%);
    background-position: 18px 14px, center;
    background-size: 82% auto, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    overflow: hidden;
  }

  .home-identity .home-year-mark {
    position: absolute;
    right: 16px;
    bottom: 18px;
    left: auto;
    z-index: 1;
    display: block;
    width: auto;
    height: clamp(66px, 18vw, 82px);
    pointer-events: none;
    user-select: none;
  }

  .home-identity h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .home-identity p {
    display: none;
  }

  #home-view .gallery,
  #home-view .empty-state {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 22px 18px 112px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
}

@media (max-width: 1080px) {
  #home-view .compact-account.is-search-expanded .create-button,
  #home-view .compact-account.is-search-expanded .profile-button {
    width: 42px;
    min-width: 42px;
    margin: 0;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    transform: none;
  }

  #home-view .compact-account.is-search-expanded .search {
    min-width: 0;
    max-width: none;
  }

  main.zcool-upload {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  main.zcool-upload .zcool-upload-header {
    height: 52px;
    padding: 0 16px;
  }

  main.zcool-upload .zcool-upload-brand {
    gap: 10px;
  }

  main.zcool-upload .zcool-upload-brand strong {
    font-size: 17px;
  }

  main.zcool-upload .zcool-upload-brand span {
    font-size: 14px;
  }

  main.zcool-upload .zcool-upload-shell {
    display: block;
    min-height: auto;
    padding-bottom: 112px;
    background: #fff;
  }

  main.zcool-upload .zcool-editor-main {
    width: 100%;
    min-height: auto;
    padding: 24px 16px 28px !important;
  }

  main.zcool-upload .zcool-title-input {
    height: auto;
    min-height: 48px;
    font-size: 21px;
    line-height: 1.35;
  }

  main.zcool-upload .zcool-title-count {
    margin-top: 6px;
  }

  main.zcool-upload .layout-stage {
    margin-top: 28px;
    width: 100%;
    min-height: 360px;
  }

  main.zcool-upload .layout-blocks {
    width: 100%;
    min-height: 360px;
    gap: 24px;
  }

  main.zcool-upload .layout-block::before {
    inset: -8px;
  }

  main.zcool-upload .text-style-h1 {
    font-size: 24px;
  }

  main.zcool-upload .text-style-h2 {
    font-size: 21px;
  }

  main.zcool-upload .text-style-h3 {
    font-size: 18px;
  }

  main.zcool-upload .zcool-settings-panel {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    padding: 22px 16px 128px;
    border-top: 1px solid #eeeef2;
    border-left: 0;
    background: #f7f7f9;
  }

  main.zcool-upload .cover-uploader {
    max-height: 260px;
  }

  main.zcool-upload .cover-uploader b {
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
    overflow: hidden;
  }

  main.zcool-upload .layout-image::after,
  main.zcool-upload .layout-video::after {
    display: none;
  }

  main.zcool-upload .next-line-insert {
    width: 100%;
    max-width: 100%;
  }

  main.zcool-upload .next-line-insert::before {
    left: 0;
  }

  main.zcool-upload .next-line-insert button,
  main.zcool-upload .block-handle,
  main.zcool-upload .layout-text .block-handle {
    left: auto !important;
    right: 2px !important;
  }

  main.zcool-upload .block-floating-tools,
  main.zcool-upload .layout-text .block-floating-tools {
    left: auto !important;
    right: 2px !important;
  }

  main.zcool-upload .zcool-compose-panel,
  main.zcool-upload .image-action-panel {
    left: auto !important;
    right: 0 !important;
  }

  main.zcool-upload .zcool-publish-bar {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 95;
    width: min(390px, calc(100vw - 24px));
    max-width: none;
    min-height: 58px;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgb(255 255 255 / 0.44);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.42)),
      rgb(255 255 255 / 0.34);
    box-shadow:
      0 18px 50px rgb(0 0 0 / 0.18),
      inset 0 1px 0 rgb(255 255 255 / 0.76);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    overflow: hidden;
    transform: translateX(-50%);
    margin-inline: 0;
  }

  main.zcool-upload .word-limit {
    display: none;
  }

  main.zcool-upload .draft-status {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: #686978;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main.zcool-upload .publish-orange,
  main.zcool-upload .ghost-pill {
    flex: 0 0 auto;
    height: 40px;
    min-width: 82px;
    padding: 0 16px;
    border-radius: 999px;
  }
}

@media (max-width: 560px) {
  .home-identity {
    height: clamp(188px, 49vw, 208px);
    margin-bottom: 18px;
  }

  #home-view .gallery,
  #home-view .empty-state {
    grid-template-columns: 1fr;
  }

  #home-view .create-button {
    width: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }

  #home-view .compact-account {
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .home-identity {
    height: clamp(176px, 49vw, 192px);
  }
}

/* Reference-lock pass: match supplied desktop composition exactly. */
@media (min-width: 1081px) {
  #home-view .topbar {
    height: 129px !important;
  }

  .home-identity {
    left: 18px !important;
    top: 10px !important;
    width: min(43vw, 930px) !important;
    height: min(32.6vw, 705px) !important;
    background: url("./assets/royal-tiger-left-logo.png") left top / contain no-repeat;
  }

  .home-identity h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }

  .home-identity p {
    display: none !important;
  }

  #home-view .filter-row {
    top: 83px !important;
    right: 358px !important;
  }

  #home-view .compact-account {
    right: 150px !important;
  }

  #home-view .compact-account.is-search-expanded {
    right: 114px !important;
  }

  #home-view .gallery {
    width: auto !important;
    min-height: calc(100vh - 193px) !important;
    margin: 64px 5.66vw 0 17.87vw !important;
    padding: 48px 3.3vw 118px 8.1vw !important;
    grid-template-columns: repeat(5, minmax(0, 12.06vw)) !important;
    gap: 48px 1.36vw !important;
  }

  #home-view .empty-state {
    width: auto !important;
    margin: 64px 5.66vw 0 17.87vw !important;
  }

  .home-timeline {
    top: var(--timeline-top, min(84vh, 1080px)) !important;
  }
}
