:root {
  --bg: #ececec;
  --panel: #ffffff;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --line: #e5e7eb;
  --text: #111827;
  --text-soft: #6b7280;
  --text-faint: #9ca3af;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --orange: #ff5a1f;
  --orange-soft: #fff7ed;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --safe-top: max(20px, env(safe-area-inset-top));
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 90, 31, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: default;
}

button[data-action]:not([data-action="noop"]):not([data-action="stay"]):not(:disabled) {
  cursor: pointer;
}

#app {
  min-height: 100vh;
  width: 100%;
}

.demo-shell {
  min-height: 100vh;
  position: relative;
  left: 50vw;
  transform: translateX(-50%);
  width: 422px;
  padding: 28px 16px;
  z-index: 1;
}

.phone {
  width: 390px;
  min-height: 844px;
  background: var(--surface);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.screen {
  --screen-bottom-gap: 24px;
  --screen-footer-space: 0px;
  --ios-topbar-offset: calc(var(--safe-top) + 58px);
  min-height: 844px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.screen.has-bottom-nav {
  --screen-footer-space: 86px;
}

.screen.has-cta-bar {
  --screen-footer-space: 110px;
}

.screen.has-primary-footer {
  --screen-footer-space: 124px;
}

.screen.has-primary-footer-double {
  --screen-footer-space: 184px;
}

.screen.home-screen {
  background: linear-gradient(180deg, #fcfcfd 0%, #f9fafb 26%, #f3f4f6 100%);
}

.screen.event-square-screen {
  background: linear-gradient(180deg, #fbfbfc 0%, #f5f7fb 100%);
}

.screen.dark-screen {
  background:
    radial-gradient(circle at top, rgba(16, 185, 129, 0.08), transparent 24%),
    linear-gradient(180deg, #08101b 0%, #111827 100%);
  color: #f8fafc;
}

.ios-topbar {
  position: sticky;
  top: 0;
  z-index: 32;
  padding: 0 12px 6px;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(22px) saturate(1.1);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
}

.ios-topbar.dark {
  background: rgba(8, 15, 27, 0.48);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.ios-statusline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 6px) 8px 4px;
}

.ios-time {
  justify-self: start;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
}

.ios-island {
  justify-self: center;
  width: 114px;
  height: 30px;
  border-radius: 999px;
  background: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ios-topbar.dark .ios-island {
  background: rgba(0, 0, 0, 0.84);
}

.ios-system-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.ios-navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.ios-navbar-side.left {
  justify-self: start;
}

.ios-navbar-side.right {
  justify-self: end;
}

.ios-navbar-title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.01em;
}

.ios-nav-btn,
.ios-nav-spacer {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.home-auth-entry {
  min-width: 126px;
  max-width: 176px;
  min-height: 34px;
  padding: 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.home-auth-profile {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 1px 0 0;
}

.home-auth-entry.success {
  border-color: rgba(134, 239, 172, 0.9);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(220, 252, 231, 0.92));
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.14);
}

.home-auth-entry.pending {
  border-color: rgba(253, 230, 138, 0.92);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.92));
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.14);
}

.home-auth-entry.failure,
.home-auth-entry.idle {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 239, 0.96));
}

.home-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

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

.home-auth-link {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.24);
  letter-spacing: -0.01em;
}

.home-auth-entry.success .home-auth-link {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22);
}

.home-auth-entry.pending .home-auth-link {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.22);
}

.ios-nav-btn {
  display: grid;
  place-items: center;
  color: #111827;
  background: transparent;
}

.ios-topbar.dark .ios-nav-btn {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.ios-nav-btn svg {
  display: block;
}

.ios-nav-btn:active {
  transform: scale(0.97);
}

.status-bar,
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
}

.status-bar {
  padding-top: var(--safe-top);
  font-size: 14px;
  line-height: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header {
  padding-top: 18px;
}

.header.sticky {
  position: sticky;
  top: calc(var(--safe-top) + 44px);
  z-index: 15;
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(18px);
}

.title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  margin: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.icon-btn svg {
  display: block;
}

.icon-btn.dark {
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
}

.screen-body {
  flex: 1;
  padding: 0 16px calc(var(--screen-bottom-gap) + var(--screen-footer-space) + var(--safe-bottom));
}

.hero-banner {
  margin-top: 8px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  height: 236px;
  box-shadow: var(--card-shadow);
  background: #ddd;
}

.hero-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0;
  border: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.hero-banner img,
.cover img,
.card-cover img,
.avatar img,
.profile-large img,
.preview-thumb img,
.gallery-slide img,
.lookbook-card img,
.sample-shot img,
.review-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 26px;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.72));
}

.hero-title {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.hero-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 240px;
}

.ghost-chip {
  align-self: flex-start;
  margin-top: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 16px;
  backdrop-filter: blur(6px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0;
  border: 0;
  flex: 0 0 auto;
}

.hero-dot.active {
  width: 16px;
  background: #fff;
}

.quick-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-card span {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.category-showcase {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(64px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-showcase::-webkit-scrollbar {
  display: none;
}

.chip {
  min-width: 64px;
  padding: 8px 4px 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.chip.active {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--chip-accent) 12%, #fff) 100%);
  color: #fff;
  border-color: color-mix(in srgb, var(--chip-accent) 30%, #fff);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--chip-accent) 22%, transparent);
}

.chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.chip.active .chip-icon {
  background: linear-gradient(180deg, color-mix(in srgb, var(--chip-accent) 18%, #fff) 0%, color-mix(in srgb, var(--chip-accent) 8%, #fff) 100%);
}

.chip-text {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #475569;
}

.chip.active .chip-text {
  color: color-mix(in srgb, var(--chip-accent) 78%, #7c2d12);
}

.subchip-wrap {
  margin-top: 12px;
  padding: 0 4px 2px;
}

.subchip-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.subchip-row::-webkit-scrollbar {
  display: none;
}

.subchip {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 0 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: baseline;
  text-align: left;
  position: relative;
  box-shadow: none;
  transition: color 180ms ease;
}

.subchip.active {
  color: #ef6c2f;
}

.subchip-label {
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.subchip.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}

@media (max-width: 420px) {
  .category-showcase {
    grid-template-columns: repeat(6, minmax(60px, 1fr));
    gap: 8px;
  }

  .chip-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .subchip-row {
    gap: 14px;
  }
}

.masonry {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  align-items: start;
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  width: 100%;
  text-align: left;
  padding: 0;
}

.card-cover {
  position: relative;
  line-height: 0;
}

.card-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #facc15;
  color: #111827;
  font-size: 10px;
  line-height: 15px;
  border-radius: 6px;
  padding: 2px 8px;
}

.card-content {
  padding: 12px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #1f2937;
  font-weight: 400;
}

.meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

.author-name,
.like-count,
.muted {
  font-size: 12px;
  line-height: 16px;
}

.author-name {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.like-meta {
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-icon {
  font-size: 12px;
}

.empty-tip {
  padding: 24px 0 0;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 16px;
}

.bottom-nav {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(72px, 20vw, 120px);
  padding: 14px 20px calc(16px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  z-index: 18;
}

.bottom-nav.dark {
  background: rgba(8, 16, 27, 0.92);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
}

.tab.active {
  color: var(--primary);
}

.tab.dark {
  color: rgba(226, 232, 240, 0.55);
}

.tab.dark.active {
  color: #22c55e;
}

.tab-icon {
  font-size: 16px;
}

.tab-label {
  font-size: 10px;
  line-height: 15px;
}

.floating-tool {
  position: absolute;
  right: 16px;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 18;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  font-size: 12px;
  line-height: 16px;
}

.detail-hero {
  position: relative;
  min-height: 488px;
  background: #e5e7eb;
}

.event-tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 20px 4px;
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: var(--ios-topbar-offset);
  z-index: 17;
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  scrollbar-width: none;
  white-space: nowrap;
}

.event-tabs::-webkit-scrollbar {
  display: none;
}

.event-tab {
  flex: 0 0 auto;
  position: relative;
  padding: 0 2px 14px;
  color: #98a2b3;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.event-tab.active {
  color: #5b5cf0;
}

.event-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #6c63ff;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 4px;
}

.event-detail-screen {
  background: linear-gradient(180deg, #f8f9fc 0%, #f3f5f9 100%);
}

.event-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.event-card-cover {
  position: relative;
  height: 184px;
  overflow: hidden;
  background: #e5e7eb;
  line-height: 0;
}

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

.event-status {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.14);
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.event-status i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.event-status.live i {
  background: #22c55e;
}

.event-status.warm i {
  background: #60a5fa;
}

.event-status.end i {
  background: #cbd5e1;
}

.event-card-body {
  padding: 14px 18px 16px;
}

.event-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #111827;
  font-weight: 400;
}

.event-card-date {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.event-card-date-icon {
  color: #9ca3af;
  line-height: 0;
  transform: translateY(3px);
}

.event-card-divider {
  margin-top: 12px;
  height: 1px;
  background: #eef2f7;
}

.event-card-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-avatars {
  display: flex;
  align-items: center;
}

.event-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #dbe2f0;
  flex: 0 0 auto;
}

.event-avatar:first-child {
  margin-left: 0;
}

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

.event-avatar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  background: #eef2f7;
}

.event-foot-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
}

.event-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
}

.event-views svg {
  flex: 0 0 auto;
}

.event-preheat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #9ca3af;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.event-detail-hero {
  position: relative;
  height: 264px;
  margin: 10px 16px 0;
  border-radius: 28px;
  overflow: hidden;
  background: #d1d5db;
}

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

.event-detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.22) 45%, rgba(17, 24, 39, 0.68) 100%);
}

.event-detail-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.event-detail-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.event-detail-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ff5a30;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.event-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 22px;
}

.event-detail-date svg {
  flex: 0 0 auto;
}

.event-detail-summary {
  margin: 12px 0 0;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04);
  padding: 16px 20px 0;
}

.event-rule-card {
  margin: 0 0 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(255, 90, 48, 0.08), rgba(79, 70, 229, 0.05));
  border: 1px solid #eef1f7;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
  padding: 18px 18px 16px;
}

.event-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-rule-head strong {
  color: #111827;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

.event-rule-head button {
  color: #ff5a30;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.event-rule-card p {
  margin: 12px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 28px;
}

.event-detail-tabs {
  display: flex;
  gap: 34px;
  padding: 10px 28px 0;
  background: #fff;
}

.event-detail-tab {
  position: relative;
  padding-bottom: 14px;
  color: #9ca3af;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.event-detail-tab.active {
  color: #111827;
}

.event-detail-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #ff5a30;
}

.event-empty-state {
  margin: 18px 0 0;
  min-height: 220px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.event-empty-icon {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  border: 1px solid #edf1f6;
  color: #9aa4b2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(15, 23, 42, 0.04);
}

.event-empty-copy {
  max-width: 260px;
  margin: 16px 0 0;
  color: #98a2b3;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.event-publish-footer {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  padding: 12px 16px calc(24px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #f3f4f6;
}

.event-publish-btn {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #ff6c3a 0%, #ff5a30 100%);
  color: #fff;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(255, 90, 48, 0.26);
}

.event-publish-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.event-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.event-work-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.event-work-cover {
  position: relative;
  height: 312px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.event-work-badge {
  position: absolute;
  right: 10px;
  top: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: #facc15;
  color: #111827;
  font-size: 14px;
  line-height: 30px;
  font-weight: 700;
}

.event-work-body {
  padding: 14px 16px 16px;
}

.event-work-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.event-work-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-work-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-rule-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.46);
  display: flex;
  align-items: flex-end;
}

.event-rule-modal {
  width: 100%;
  max-height: min(78vh, 680px);
  overflow-y: auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 22px 20px calc(24px + var(--safe-bottom));
  box-shadow: 0 -18px 36px rgba(15, 23, 42, 0.18);
  animation: slideUp 0.28s ease;
}

.event-rule-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.event-rule-modal-head h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 32px;
}

.event-rule-modal-head p {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 13px;
  line-height: 20px;
}

.event-rule-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 14px;
}

.event-rule-modal-body {
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-rule-block {
  padding: 0;
}

.event-rule-block strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 24px;
}

.event-rule-block p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 24px;
}

.event-rule-block + .event-rule-block {
  padding-top: 18px;
}

.gallery-slide {
  height: 488px;
}

.gallery-pager {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gallery-pager span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.gallery-pager span.active {
  background: #fff;
}

.detail-card {
  background: #fff;
  margin-top: -1px;
  padding: 20px 20px 24px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
}

.profile-large {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.name {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.level-tag {
  padding: 2px 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 10px;
  line-height: 10px;
  font-weight: 600;
}

.medal-mini {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.medal-mini.gold {
  background: #fef3c7;
}

.medal-mini.purple {
  background: #f3e8ff;
}

.detail-title {
  margin: 22px 0 8px;
  color: #111827;
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.detail-copy {
  margin-top: 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 24px;
}

.event-callout {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px 14px 11px;
  border-radius: 18px;
  border: 1px solid #e8ecf3;
  background:
    radial-gradient(circle at top right, rgba(255, 92, 53, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: #374151;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.event-callout-top,
.event-callout-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-callout-top {
  justify-content: space-between;
}

.event-callout-label {
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.event-callout-badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 92, 53, 0.12);
  color: #ff5c35;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.event-callout-main {
  gap: 12px;
}

.event-callout-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 92, 53, 0.12);
  color: #ff5c35;
  flex: 0 0 auto;
  font-size: 15px;
}

.event-callout-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.event-callout-copy strong {
  color: #111827;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.event-callout-arrow {
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.detail-publish-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.detail-publish-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

.detail-publish-time svg {
  flex: 0 0 auto;
}

.detail-work-link-row {
  margin-top: 12px;
  display: block;
}

.detail-work-link {
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid #dfe7f3;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.12);
}

.detail-work-copy {
  flex: 0 0 auto;
  color: #2f7cff;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-work-link-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  text-align: left;
}

.detail-work-link-platform {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2b93ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.detail-work-link-text {
  color: #475569;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.detail-work-link-icon {
  color: #2f7cff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.detail-work-link-main {
  order: 1;
}

.detail-work-copy {
  order: 3;
  padding-left: 2px;
}

.detail-work-link-icon svg,
.detail-work-link-platform svg {
  flex: 0 0 auto;
}

.cta-bar {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 16px;
  padding: 13px 16px calc(32px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.pill-btn {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.pill-btn.primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.pill-btn.secondary {
  background: var(--surface);
  color: #374151;
}

.section-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  padding: 16px;
  margin-top: 16px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #111827;
}

.section-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.form-row:last-child {
  border-bottom: 0;
}

.form-label {
  font-size: 16px;
  line-height: 24px;
  color: #1f2937;
}

.required {
  color: #ef4444;
  padding-right: 4px;
}

.form-placeholder,
.form-value {
  font-size: 16px;
  line-height: 24px;
  text-align: right;
}

.form-placeholder {
  color: #9ca3af;
}

.form-value {
  color: #374151;
}

.upload-row {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.upload-box,
.sample-shot {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
}

.upload-box {
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.sample-shot {
  position: relative;
  border: 1px solid #e5e7eb;
}

.sample-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}

.sample-mask span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.primary-footer {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 17px 16px calc(32px + var(--safe-bottom));
  background: #f5f5f5;
  border-top: 1px solid #e5e7eb;
}

.primary-btn {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  background: linear-gradient(135deg, #ff6a1f, #ff4d00);
  box-shadow: 0 16px 36px rgba(255, 90, 31, 0.24);
}

.plain-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-head {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.mine-screen {
  background: #f3f4f6;
}

.mine-screen .ios-topbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  margin-bottom: -44px;
  padding-bottom: 0;
}

.mine-screen .ios-navbar {
  display: none;
}

.mine-hero {
  margin: 0;
  padding: 18px 20px 26px;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.82), transparent 38%),
    radial-gradient(circle at top right, rgba(233, 213, 255, 0.9), transparent 38%),
    linear-gradient(180deg, #f6faff 0%, #f1ebff 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55);
}

.mine-page-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  color: #111827;
}

.mine-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mine-user-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: left;
  padding: 0;
}

.mine-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.18);
  flex: 0 0 auto;
}

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

.mine-name {
  margin: 0;
  font-size: 23px;
  line-height: 30px;
  font-weight: 500;
  color: #111827;
}

.mine-sub {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
}

.checkin-btn {
  flex: 0 0 auto;
  min-width: 114px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  color: #374151;
}

.checkin-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #facc15;
  color: #fff;
  font-size: 12px;
}

.mine-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mine-stat {
  text-align: center;
}

.mine-stat strong {
  display: block;
  font-size: 30px;
  line-height: 38px;
  font-weight: 400;
  color: #111827;
}

.mine-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: #6b7280;
}

.vip-banner {
  margin-top: 16px;
  border-radius: 18px;
  padding: 15px 18px;
  background: linear-gradient(90deg, #fff7b8 0%, #fff3a1 45%, #fde68a 100%);
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vip-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #7c4a11;
  color: #fff7d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
}

.vip-label {
  font-size: 17px;
  line-height: 24px;
  color: #7c4a11;
}

.vip-link {
  font-size: 14px;
  line-height: 20px;
  color: #a16207;
}

.mine-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  padding: 18px 16px 16px;
}

.mine-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mine-card-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 500;
  color: #1f2937;
}

.mine-more {
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.order-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 8px;
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  padding: 8px 2px 4px;
}

.mine-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #4b5563;
}

.mine-item-label {
  font-size: 13px;
  line-height: 18px;
}

.mine-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  color: #4b5563;
  font-size: 30px;
}

.mine-icon svg {
  display: block;
}

.mine-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
}

.creator-profile-screen {
  background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
}

.creator-profile-body {
  padding-bottom: calc(16px + var(--safe-bottom));
}

.creator-profile-card {
  margin-top: 12px;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 34%),
    #ffffff;
  border-radius: 28px;
  padding: 18px 18px 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.creator-profile-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.creator-profile-id {
  display: flex;
  gap: 16px;
  align-items: center;
}

.creator-avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

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

.creator-name {
  margin: 2px 0 12px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  color: #1f2937;
}

.creator-level-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffbf2f 0%, #f59e0b 100%);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.16);
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: rgba(99, 102, 241, 0.06);
}

.medal-row-head {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.medal-row-head strong {
  font-size: 16px;
  line-height: 24px;
  color: #374151;
}

.medal-more {
  color: #94a3b8;
  font-size: 12px;
  line-height: 16px;
}

.creator-medals {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.creator-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.creator-medal-disc {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 29px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.creator-medal span:last-child {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #475569;
}

.creator-progress {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid #eef2f7;
  background: #fbfdff;
  padding: 18px 18px 18px;
}

.creator-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.creator-progress-head strong {
  font-size: 16px;
  line-height: 24px;
  color: #f59e0b;
}

.creator-progress-head span {
  font-size: 14px;
  line-height: 22px;
  color: #94a3b8;
}

.creator-progress-bar {
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.creator-progress-bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.creator-stats-card {
  margin-top: 18px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0;
}

.creator-stat {
  text-align: center;
  position: relative;
}

.creator-stat + .creator-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #e5e7eb;
}

.creator-stat strong {
  display: block;
  font-size: 20px;
  line-height: 30px;
  color: #1f2937;
}

.creator-stat span {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: #64748b;
}

.works-head {
  margin: 22px 6px 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #111827;
}

.creator-switch-tabs {
  margin: 22px 6px 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.creator-switch-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 0 10px;
  margin-bottom: -1px;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  white-space: nowrap;
}

.creator-switch-tab.active {
  color: #111827;
}

.creator-switch-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.creator-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-event-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eef2f7;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.creator-event-cover {
  width: 100%;
  height: 132px;
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 12px;
}

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

.creator-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creator-event-top strong {
  font-size: 16px;
  line-height: 24px;
  color: #111827;
}

.creator-event-status {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.creator-event-status.live {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.creator-event-status.end {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

.creator-event-date {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #94a3b8;
}

.creator-event-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #64748b;
}
.profile-card {
  border-radius: 22px;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
  line-height: 24px;
}

.stat span {
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}

.vip-strip {
  margin-top: 14px;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-link {
  color: #f97316;
  font-size: 12px;
  line-height: 16px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  margin-top: 18px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--primary);
  font-size: 16px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.list-item + .list-item {
  margin-top: 0;
}

.subtle {
  color: #9ca3af;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
}

.badge.success {
  background: #dcfce7;
  color: #15803d;
}

.badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.badge.failed {
  background: #fee2e2;
  color: #dc2626;
}

.badge.info {
  background: #eff6ff;
  color: #2563eb;
}

.creator-hero {
  margin: 12px 16px 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #101828, #1f2937 60%, #334155);
  color: #fff;
  padding: 20px;
  position: relative;
}

.creator-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.creator-panel {
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.metric {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}

.metric-label {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
}

.publish-form-screen {
  background: #f4f4f5;
}

.publish-card {
  margin-top: 16px;
  padding: 16px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.publish-card-title {
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.publish-card-title .publish-required,
.publish-label span {
  color: #ff5c35;
}

.publish-card-note {
  color: #a1a1aa;
  font-size: 11px;
  line-height: 16px;
}

.publish-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.publish-activity-pill {
  margin-top: 12px;
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  background: #fafbfc;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
}

.publish-activity-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ff5c35;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.publish-platform-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platform-chip {
  position: relative;
  min-height: 52px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.platform-chip.selected {
  border-color: #ff5c35;
  color: #ff5c35;
  box-shadow: inset 0 0 0 1px #ff5c35;
}

.platform-chip.muted {
  justify-content: flex-start;
  align-items: center;
  padding: 8px 10px 8px 12px;
  background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fb 100%);
  border-color: #e3e6ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.platform-chip.muted:active {
  transform: scale(0.98);
}

.platform-logo {
  color: #111827;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform-logo svg {
  display: block;
}

.platform-logo.douyin {
  color: #111827;
}

.platform-logo.red {
  color: #f87171;
}

.platform-logo.blue {
  color: #60a5fa;
}

.platform-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.platform-copy strong {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.platform-copy em {
  margin-top: 2px;
  font-style: normal;
  color: #c0c4cc;
  font-size: 10px;
  line-height: 14px;
}

.platform-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff5c35;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(255, 92, 53, 0.24);
}

.publish-auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(4px);
}

.publish-auth-dialog {
  width: min(100%, 520px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.publish-auth-title {
  padding: 26px 24px 10px;
  text-align: center;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.publish-auth-copy {
  padding: 0 24px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.publish-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #eceff4;
}

.publish-auth-action {
  height: 56px;
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #6b7280;
}

.publish-auth-action + .publish-auth-action {
  border-left: 1px solid #eceff4;
}

.publish-auth-action.confirm {
  color: #ff5c35;
}

.publish-field + .publish-field {
  margin-top: 16px;
}

.publish-label {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}

.publish-input-box {
  min-height: 62px;
  border-radius: 8px;
  border: 1px solid #dfe4ea;
  background: #f8fafc;
  padding: 17px 16px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 22px;
}

.publish-input-control {
  width: 100%;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  resize: none;
  color: #111827;
}

.publish-input-control::placeholder {
  color: #9ca3af;
}

.publish-textarea {
  min-height: 82px;
}

.publish-input-box.with-icon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.publish-input-box.with-icon span:last-child {
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.publish-input-icon {
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  transform: translateY(2px);
}

.publish-helper {
  margin-top: 10px;
  color: #a1a1aa;
  font-size: 12px;
  line-height: 18px;
}

.publish-media-switch {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.publish-media-chip {
  min-width: 76px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f5f6fa;
  color: #8a8f99;
  font-size: 16px;
  font-weight: 600;
  transition: 0.18s ease;
}

.publish-media-chip.active {
  background: linear-gradient(135deg, #ff6a45, #ff4d3b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 102, 71, 0.22);
}

.publish-upload-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.publish-upload-thumb,
.publish-upload-add {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.publish-upload-thumb {
  background: #fde7c7;
}

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

.publish-upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.publish-upload-add {
  border: 2px dashed #d1d5db;
  background: #fbfcfd;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
}

.publish-upload-add-icon {
  font-size: 26px;
  line-height: 1;
}

.publish-video-note {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #f7f8fb;
  color: #8a8f99;
  font-size: 14px;
  line-height: 24px;
}

.publish-video-note p + p {
  margin-top: 6px;
}

.publish-tag-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.publish-tag {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #cfd4dc;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  line-height: 18px;
}

.publish-tag.active {
  border-color: #ff5c35;
  background: #ff5c35;
  color: #fff;
}

.publish-submit-btn {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: #ff5c35;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  box-shadow: 0 14px 26px rgba(255, 92, 53, 0.22);
}

.publish-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}

.preview-thumb.active::after {
  content: "封面";
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 10px;
  line-height: 15px;
  background: #facc15;
  color: #111827;
  border-radius: 6px;
  padding: 2px 8px;
}

.text-area,
.select-row {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px 16px;
}

.text-area textarea {
  width: 100%;
  min-height: 108px;
  border: 0;
  resize: none;
  outline: none;
  color: #1f2937;
  background: transparent;
}

.helper {
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}

.option-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.option-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 12px;
}

.option-pill.active {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: #fdba74;
}

.auth-form-screen {
  background: #f5f5f5;
}

.auth-form-body {
  padding-bottom: calc(18px + var(--safe-bottom));
}

.auth-form-card {
  margin-top: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 4px 16px 18px;
}

.auth-form-field {
  max-width: 170px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-upload-block {
  padding-top: 18px;
}

.auth-upload-sub {
  margin-top: 8px;
  margin-bottom: 14px;
}

.auth-upload-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-upload-box,
.auth-sample-shot {
  width: 126px;
  height: 126px;
  border-radius: 18px;
  overflow: hidden;
}

.auth-upload-box {
  border: 1px dashed #d6dbe3;
  background: #fafbfc;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-upload-icon {
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
}

.auth-sample-shot {
  position: relative;
  background: #d1d5db;
  border: 1px solid #dbe1ea;
}

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

.auth-sample-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.auth-sample-mask span {
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #ff6a1f, #ff5c00);
}

.auth-pending-screen {
  background: #f5f5f5;
}

.auth-pending-body {
  padding-bottom: calc(20px + var(--safe-bottom));
}

.auth-pending-tip {
  margin: 0 14px 16px;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  color: #2563eb;
  font-size: 15px;
  line-height: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-pending-tip-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 2px;
}

.auth-pending-card {
  margin: 0 14px;
  padding: 12px 16px 16px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.auth-pending-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.auth-pending-row:last-child {
  border-bottom: 0;
}

.auth-pending-label,
.auth-pending-value {
  font-size: 18px;
  line-height: 26px;
}

.auth-pending-label {
  color: #111827;
}

.auth-pending-value {
  color: #6b7280;
  font-weight: 400;
}

.auth-pending-shot-block {
  padding-top: 18px;
}

.auth-pending-sub {
  margin-top: 8px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 20px;
}

.auth-pending-shot {
  width: 124px;
  height: 124px;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe1ea;
  background: #fff;
}

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

.auth-pending-btn {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  background: #d1d5db;
  color: #6b7280;
  font-size: 18px;
  line-height: 26px;
}

.result-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.result-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.result-icon.pending {
  background: #eef2ff;
  color: var(--primary);
}

.result-icon.failed {
  background: #fee2e2;
  color: #ef4444;
}

.result-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.result-copy {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.review-card {
  margin-top: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.review-content {
  padding: 0 20px 20px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.review-row:last-child {
  border-bottom: 0;
}

.review-shot {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.auth-success-screen {
  background: #f5f5f5;
}

.auth-success-body {
  padding-bottom: calc(20px + var(--safe-bottom));
}

.auth-success-hero {
  padding: 16px 0 22px;
  text-align: center;
}

.auth-success-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: #d9fae5;
  color: #22c55e;
}

.auth-success-icon svg {
  width: 38px;
  height: 38px;
}

.auth-success-title {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: #111827;
}

.auth-success-copy {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 24px;
}

.auth-success-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-top: 6px;
  padding: 0 18px 20px;
}

.auth-success-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.auth-success-row:last-child {
  border-bottom: 0;
  align-items: flex-start;
  padding-top: 18px;
}

.auth-success-label {
  font-size: 18px;
  line-height: 26px;
  color: #111827;
}

.auth-success-value {
  font-size: 18px;
  line-height: 26px;
  color: #6b7280;
  font-weight: 400;
}

.auth-success-shot-row {
  padding-top: 18px;
}

.auth-success-shot {
  width: 124px;
  height: 124px;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

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

.auth-success-retry {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d6dee8;
  background: #fff;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
}

.settings-list .list-item {
  width: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid #f3f4f6;
  padding: 20px 0 20px 0;
  min-height: 64px;
}

.settings-list {
  padding: 0 18px;
  background: #fff;
}

.auth-hub-screen {
  background: #f4f5f7;
}

.auth-hub-body {
  padding-bottom: calc(18px + var(--safe-bottom));
}

.auth-hub-copy {
  margin: 4px 14px 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
}

.auth-hub-card {
  margin: 0 14px;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.auth-hub-row {
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  border-bottom: 1px solid #edf0f4;
}

.auth-hub-row:last-child {
  border-bottom: 0;
}

.auth-hub-name {
  font-size: 18px;
  line-height: 26px;
  color: #111827;
}

.auth-hub-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.auth-hub-status {
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  background: transparent;
}

.auth-hub-status.pending {
  color: #f97316;
  background: #fff7ed;
}

.auth-hub-status.processing {
  color: #f59e0b;
  background: #fffbeb;
}

.auth-hub-status.success {
  color: #22c55e;
  background: #f0fdf4;
}

.auth-hub-status.failed {
  color: #ef4444;
  background: #fef2f2;
}

.auth-hub-chevron {
  color: #cbd5e1;
  font-size: 26px;
  line-height: 1;
}

.settings-screen {
  background: #fff;
}

.settings-screen .ios-topbar {
  background: #fff;
}

.settings-title {
  display: block;
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: #111827;
}

.settings-list .chevron {
  font-size: 28px;
  line-height: 1;
  color: #cbd5e1;
  transform: translateY(-1px);
}

.badge-screen {
  background:
    radial-gradient(circle at 50% 18%, rgba(37, 99, 235, 0.15), transparent 24%),
    radial-gradient(circle at 50% 60%, rgba(14, 165, 233, 0.06), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #0e1829 100%);
  color: #e5edf8;
}

.badge-overview {
  margin: 12px 18px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #10263f 0%, #142b47 100%);
  border: 1px solid rgba(96, 165, 250, 0.08);
  padding: 28px 18px 22px;
  box-shadow: 0 18px 34px rgba(5, 10, 20, 0.24);
}

.badge-overview-head {
  text-align: center;
}

.badge-overview-title {
  color: #2f8cff;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-overview-sub {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 14px;
  line-height: 22px;
}

.badge-overview-progress {
  margin-top: 22px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  overflow: hidden;
}

.badge-overview-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d7ffc, #2f8cff);
}

.badge-grid {
  margin: 0 18px;
  display: grid;
}

.badge-grid-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 10px;
  padding: 22px 0 34px;
}

.medal-card {
  border-radius: 18px;
  padding: 2px 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.medal-card.wall {
  background: transparent;
  border: 0;
}

.medal-card.locked {
  opacity: 0.46;
}

.medal-card span:last-child {
  text-align: center;
  font-size: 13px;
  line-height: 18px;
}

.medal-disc {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 27px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px rgba(0, 0, 0, 0.26);
}

.medal-state {
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  min-width: 46px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.medal-state.acquired {
  background: rgba(250, 204, 21, 0.96);
  color: #422006;
}

.medal-state.missing {
  background: rgba(30, 41, 59, 0.92);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.tone-gold {
  background: radial-gradient(circle at 35% 30%, #fff7cc, #f6b81a 68%, #7c5200);
  color: #7c2d12;
}

.tone-blue {
  background: radial-gradient(circle at 35% 30%, #eff6ff, #5aa8ff 68%, #1d4ed8);
  color: #eff6ff;
}

.tone-violet {
  background: radial-gradient(circle at 35% 30%, #faf5ff, #b37dff 68%, #7c3aed);
  color: #f5f3ff;
}

.tone-rose {
  background: radial-gradient(circle at 35% 30%, #fff1f2, #ff7b9e 68%, #e11d48);
  color: #fff1f2;
}

.tone-amber {
  background: radial-gradient(circle at 35% 30%, #fff7ed, #ffb74f 68%, #ea580c);
  color: #fff7ed;
}

.tone-slate {
  background: radial-gradient(circle at 35% 30%, #64748b, #3a475a 68%, #1e293b);
  color: #cbd5e1;
}

.medal-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 32px 88px;
  text-align: center;
}

.medal-orbit {
  position: relative;
  width: 206px;
  height: 206px;
  margin-bottom: 34px;
}

.medal-orbit::before,
.medal-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.medal-orbit::before {
  inset: 18px;
  border: 1px solid rgba(29, 78, 216, 0.34);
  box-shadow: 0 0 28px rgba(29, 78, 216, 0.18);
}

.medal-orbit::after {
  inset: 0;
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.medal-core {
  position: absolute;
  inset: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff4c4, #f6bb2d 70%, #8a5200);
  color: #3f2b05;
  font-size: 50px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 34px rgba(59, 130, 246, 0.24),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.medal-meta {
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
  line-height: 21px;
  max-width: 292px;
}

.progress-note {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.85);
  font-size: 12px;
  line-height: 16px;
}

.success-toast {
  position: absolute;
  left: 50%;
  bottom: calc(108px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.publish-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 140px;
  text-align: center;
}

.publish-art {
  width: 178px;
  height: 178px;
  margin: 0 auto 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9), transparent 20%),
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.45), transparent 28%),
    linear-gradient(135deg, #ecfeff, #dcfce7 48%, #fff7ed);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.publish-art::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.publish-leaf {
  font-size: 56px;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 40;
  display: flex;
  align-items: flex-end;
}

.map-panel {
  width: 100%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 16px calc(24px + var(--safe-bottom));
  box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.12);
  animation: slideUp 0.28s ease;
}

.map-panel h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  line-height: 28px;
}

.map-panel p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}

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

.map-link {
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

.map-link strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #111827;
}

.map-link span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
}

.page-notes-trigger {
  position: absolute;
  top: 24px;
  left: calc(100% + 16px);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid rgba(255, 90, 48, 0.28);
  background: #fff;
  color: #ff5a30;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  z-index: 52;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-notes-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 48, 0.45);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.page-notes-trigger.active {
  border-color: rgba(255, 90, 48, 0.66);
}

.page-notes-panel {
  position: absolute;
  top: 84px;
  left: calc(100% + 16px);
  width: 360px;
  max-height: min(860px, calc(100vh - 48px));
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid #e8edf4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.98)),
    linear-gradient(140deg, rgba(255, 90, 48, 0.06), rgba(79, 70, 229, 0.04));
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
  z-index: 53;
  padding: 16px 16px 18px;
  animation: pageNoteIn 0.22s ease;
}

.page-notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #edf1f7;
}

.page-notes-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
}

.page-notes-close {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.page-notes-section {
  margin-top: 12px;
  padding: 11px 12px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.page-notes-section strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 18px;
}

.page-notes-section ul {
  margin: 8px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.page-notes-section li {
  color: #475467;
  font-size: 12px;
  line-height: 18px;
}

.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;
}

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

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

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

@media (max-width: 430px) {
  .demo-shell {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    min-height: 100vh;
  }

  .page-notes-trigger {
    position: fixed;
    left: auto;
    right: 12px;
    top: calc(10px + var(--safe-top));
    bottom: auto;
    min-height: 42px;
    padding: 0 14px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  }

  .page-notes-trigger:hover {
    transform: none;
  }

  .page-notes-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(58px + var(--safe-top));
    bottom: auto;
    max-height: min(66vh, 560px);
    border-radius: 16px;
    padding: 12px;
  }
}
