/* 我的 · 子页面共用 */

/**
 * 设计 token：首页 hub 仅加载 hub.css + my.css，须在此自洽（勿依赖 style.css :root）
 */
.my-overlay,
.my-page {
  /* 色彩 token 由 themes.css :root / html[data-theme] 提供，勿在此写死 */
  --radius: 16px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-display: 'Ma Shan Zheng', cursive;
  color: var(--text);
  font-family: var(--font-serif);
}

.my-overlay .btn,
.my-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.my-overlay .btn:active,
.my-page .btn:active {
  transform: scale(0.98);
}

.my-overlay .btn-primary,
.my-page .btn-primary {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose) 40%, var(--gold-dim) 100%);
  color: #fff8f5;
  box-shadow: 0 6px 24px rgba(196, 56, 88, 0.4);
}

.my-overlay .btn-ghost,
.my-page .btn-ghost {
  background: rgba(42, 16, 32, 0.5);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

.my-overlay .btn-block,
.my-page .btn-block {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.my-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 48px;
}

.my-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(26, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.my-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.my-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0;
}

.my-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.my-hero-card {
  text-align: center;
  padding: 24px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(196, 56, 88, 0.28), rgba(42, 16, 32, 0.88));
  border: 1px solid rgba(240, 184, 200, 0.4);
  box-shadow:
    0 12px 36px rgba(8, 2, 6, 0.45),
    inset 0 1px 0 rgba(255, 220, 235, 0.08);
}

.my-hero-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--blush);
  margin-bottom: 8px;
}

.my-hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 400;
}

.my-hero-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.my-affection-card-wrap {
  margin-top: 14px;
}

.my-affection-card-wrap .affection-card {
  width: 100%;
}

/* 情缘分卡片（与 game-arena.css 同系，我的面板内嵌） */
.my-affection-card-wrap .affection-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 120, 152, 0.35);
  background: linear-gradient(120deg, rgba(42, 16, 32, 0.95), rgba(24, 10, 18, 0.92));
}

.my-affection-card-wrap .affection-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.2rem;
  line-height: 1.1;
}

.my-affection-card-wrap .affection-card__heart {
  font-size: 0.85rem;
  color: #ff7aa8;
}

.my-affection-card-wrap .affection-card__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff5f8;
}

.my-affection-card-wrap .affection-card__label {
  font-size: 0.62rem;
  color: var(--text-soft, #b8a0a8);
}

.my-affection-card-wrap .affection-card__divider {
  width: 1px;
  align-self: stretch;
  min-height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 220, 0.25), transparent);
}

.my-affection-card-wrap .affection-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.my-affection-card-wrap .affection-card__tier {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

.my-affection-card-wrap .affection-card__checkin {
  font-size: 0.72rem;
  color: #8fd4a8;
}

.my-affection-card-wrap .affection-card__checkin-btn {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 106, 0.5);
  background: rgba(196, 30, 58, 0.25);
  color: var(--gold);
  font-size: 0.72rem;
  cursor: pointer;
  font: inherit;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.affection-ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.affection-ledger-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.affection-ledger-item .pos {
  color: #6fcf97;
}

.affection-ledger-item .neg {
  color: #ff8a8a;
}

.my-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.my-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(135deg, rgba(52, 20, 38, 0.92), rgba(30, 12, 22, 0.88));
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 200, 220, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.my-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--rose), var(--gold-dim));
  opacity: 0.55;
}

button.my-menu-item {
  appearance: none;
  -webkit-appearance: none;
}

.my-menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 221, 184, 0.48);
  box-shadow:
    0 10px 32px rgba(196, 56, 88, 0.28),
    0 0 0 1px rgba(232, 120, 152, 0.12);
}

.my-menu-item:hover::before {
  opacity: 1;
}

.my-menu-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(196, 56, 88, 0.35), rgba(212, 168, 106, 0.25));
}

.my-menu-item .text strong {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.my-menu-item .text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-menu-item.is-highlight {
  border-color: rgba(242, 221, 184, 0.55);
  background: linear-gradient(135deg, rgba(196, 56, 88, 0.25), rgba(42, 16, 32, 0.8));
}

.my-menu-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.my-menu-item .badge-win {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
}

.my-menu-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.my-menu-badge--live {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: #fff;
  box-shadow: 0 2px 12px rgba(196, 56, 88, 0.45);
}

.my-menu-badge--muted {
  background: rgba(42, 16, 32, 0.85);
  color: var(--gold-dim);
  border: 1px solid rgba(242, 221, 184, 0.28);
}

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

.my-menu-section {
  margin: 4px 4px 2px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: none;
}

.my-menu-section:not(:first-child) {
  margin-top: 16px;
}

/* 本期 / 往期活动 */
.activities-page-head {
  text-align: center;
  margin-bottom: 14px;
}

.activities-intro {
  font-size: 0.78rem;
  color: var(--blush);
  letter-spacing: 0.2em;
  margin: 0 0 6px;
}

.activities-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
}

.activities-empty {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(240, 184, 200, 0.35);
  background: rgba(42, 16, 32, 0.45);
}

.activities-empty p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.activities-empty__sub {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 14px !important;
}

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

.activity-card {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(242, 221, 184, 0.38);
  background: linear-gradient(165deg, rgba(42, 16, 32, 0.92), rgba(12, 6, 10, 0.95));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.activity-card--feature {
  border-color: rgba(242, 221, 184, 0.52);
  box-shadow:
    0 0 0 1px rgba(196, 56, 88, 0.12),
    0 18px 52px rgba(196, 56, 88, 0.18);
}

.activity-card--archived {
  border-color: rgba(240, 184, 200, 0.22);
}

.activity-card__cover {
  position: relative;
  line-height: 0;
  background: linear-gradient(180deg, #1a0a12, #0f0c18);
}

.activity-card__cover img {
  width: 100%;
  max-height: min(38vh, 240px);
  object-fit: contain;
  display: block;
}

.activity-card--compact .activity-card__cover img {
  max-height: 128px;
}

.activity-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  font-size: 0.62rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(232, 196, 154, 0.4);
  color: var(--gold);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-card__status--is-live {
  border-color: rgba(232, 120, 160, 0.55);
  color: #ffe8f0;
  background: rgba(196, 56, 88, 0.65);
}

.activity-card__status--is-wait {
  border-color: rgba(242, 221, 184, 0.5);
  color: var(--champagne);
}

.activity-card__status--is-done {
  color: var(--blush);
}

.activity-card__body {
  padding: 16px 18px 18px;
}

.activity-card__tag {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--blush);
}

.activity-card__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.25;
}

.activity-card--compact .activity-card__title {
  font-size: 1.15rem;
}

.activity-card__couple {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--pink);
}

.activity-card__slogan {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.activity-card__prize {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(196, 56, 88, 0.12);
  border: 1px solid rgba(240, 184, 200, 0.2);
}

.activity-card__prize-label {
  font-size: 0.72rem;
  color: var(--blush);
  letter-spacing: 0.08em;
}

.activity-card__prize-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--champagne);
}

.activity-card__prize-value small {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  margin-left: 2px;
  color: var(--gold-dim);
}

.activity-card__prize-note {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.activity-card__chips {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-card__chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(240, 184, 200, 0.18);
}

.activity-card__chips .k {
  color: var(--text-muted);
}

.activity-card__chips .v {
  color: var(--text-soft);
}

.activity-card__cta {
  margin-top: 14px;
}

/* 情怀 */
.heritage-section {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.heritage-section h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 400;
}

.heritage-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.heritage-quote {
  text-align: center;
  padding: 20px 16px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink);
  border-top: 1px dashed var(--glass-border);
}

.heritage-sign {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gold-dim);
  margin-top: 8px;
}

/* 情缘档案 */
.profile-preview {
  margin: 0 auto 20px;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #0c060a;
}

.profile-preview img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.profile-preview .cap {
  padding: 12px 14px;
  text-align: center;
  background: linear-gradient(180deg, #fff8f5, #fceef2);
}

.profile-preview .cap .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rose-deep);
  margin: 0 0 4px;
}

.profile-preview .cap .motto {
  margin: 0;
  font-size: 0.85rem;
  color: #6b4048;
}

.profile-form {
  background: linear-gradient(165deg, #fff9f6, #fceef2);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(240, 184, 200, 0.4);
}

.profile-form .form-row label {
  color: #6b4048;
}

/* 情缘档案 · 工作室 */
.profile-view-root {
  animation: guildFadeIn 0.35s ease;
}

.profile-studio__banner {
  text-align: center;
  padding: 18px 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--rose-deep) 16%, transparent),
    color-mix(in srgb, var(--bg-plum) 88%, transparent)
  );
  border: 1px solid var(--glass-border);
}

.profile-studio__eyebrow {
  margin: 0 0 4px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--blush);
}

.profile-studio__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 8px;
}

.profile-studio__hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.profile-identity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

@media (min-width: 480px) {
  .profile-identity-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.profile-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.profile-status--info {
  background: rgba(212, 168, 106, 0.12);
  color: var(--text-soft);
  border: 1px solid rgba(212, 168, 106, 0.25);
}

.profile-status--warn {
  background: rgba(232, 144, 168, 0.15);
  color: #f4d4e0;
  border: 1px dashed rgba(232, 120, 152, 0.45);
}

.profile-status--ok {
  background: rgba(80, 160, 120, 0.15);
  color: #c8f0d8;
  border: 1px solid rgba(80, 160, 120, 0.35);
}

.profile-status--error {
  background: rgba(180, 40, 60, 0.2);
  color: #ffd0d8;
  border: 1px solid rgba(196, 56, 88, 0.45);
}

.profile-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  overflow: visible;
}

.profile-avatar-wrap > .profile-avatar-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.profile-pick-btn {
  max-width: 140px;
  font-size: 0.78rem;
}

.profile-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  cursor: pointer;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
}

.profile-avatar--needs-upload {
  animation: profileAvatarPulse 2.2s ease-in-out infinite;
}

@keyframes profileAvatarPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 12%, transparent);
  }
}

.profile-avatar__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rose-deep) 35%, #0c060a);
  border: 3px dashed color-mix(in srgb, var(--gold) 50%, transparent);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  pointer-events: none;
}

.profile-avatar__ring {
  position: absolute;
  inset: -4px;
  z-index: 0;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  animation: myRingSpin 20s linear infinite;
  pointer-events: none;
}

.profile-avatar__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 36px color-mix(in srgb, var(--rose-deep) 35%, transparent);
  background: color-mix(in srgb, var(--rose-deep) 18%, var(--ink));
  pointer-events: none;
}

.profile-avatar__img[hidden],
.profile-avatar__img.is-broken {
  display: none !important;
}

.profile-avatar__img:not([hidden]) + .profile-avatar__placeholder {
  display: none !important;
}

.profile-avatar__badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.profile-identity-card__form {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.profile-field {
  display: block;
  margin-bottom: 12px;
}

.profile-field__label {
  display: block;
  font-size: 0.72rem;
  color: var(--blush);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.profile-server-select {
  cursor: pointer;
}

.profile-avatar-pending {
  margin: 0;
  font-size: 0.68rem;
  color: var(--blush);
  text-align: center;
}

.profile-field select,
.profile-field input[type='text'],
.profile-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-night) 65%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.profile-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.55;
}

.profile-gallery-panel {
  padding: 18px 14px 20px;
  border-radius: var(--radius);
  background: linear-gradient(
    168deg,
    color-mix(in srgb, var(--glass) 95%, transparent),
    color-mix(in srgb, var(--bg-plum) 75%, transparent)
  );
  border: 1px solid var(--glass-border);
}

.profile-gallery-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.profile-gallery-panel__head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0;
}

.profile-gallery-panel__count {
  font-size: 0.75rem;
  color: var(--gold-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}

.profile-gallery-panel__sub {
  margin: 0 0 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.profile-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-gallery-empty {
  text-align: center;
  padding: 20px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.profile-photo-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffaf7, #fceef2);
  border: 1px solid color-mix(in srgb, var(--rose) 22%, transparent);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.35s ease;
}

.profile-photo-card--saved {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 65%, transparent);
}

@media (max-width: 400px) {
  .profile-photo-card {
    grid-template-columns: 1fr;
  }
}

.profile-photo-card__visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: #0c060a;
}

.profile-photo-card__visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.profile-photo-card__idx {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold);
}

.profile-photo-card__fields .profile-field {
  margin-bottom: 8px;
}

.profile-photo-card__fields .profile-field:last-of-type {
  margin-bottom: 10px;
}

.profile-photo-card__fields .profile-field__label {
  color: #9a5a6a;
}

.profile-photo-card__fields input,
.profile-photo-card__fields textarea {
  background: #fff;
  border-color: color-mix(in srgb, var(--rose-deep) 18%, transparent);
  color: var(--ink);
}

.profile-photo-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  min-height: auto;
}

.profile-photo-delete {
  color: var(--rose-deep) !important;
  border-color: color-mix(in srgb, var(--rose-deep) 35%, transparent) !important;
}

.profile-add-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.profile-add-photo-wrap .profile-add-photo-input,
.profile-add-photo-wrap .profile-cloud-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.profile-add-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px dashed color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font: inherit;
  box-sizing: border-box;
}

button.profile-add-photo {
  appearance: none;
  -webkit-appearance: none;
}

.profile-add-photo--ghost {
  flex: 1;
  min-width: 120px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--rose-deep) 40%, transparent);
  background: transparent;
}

.profile-add-photo-wrap .profile-add-photo {
  flex: 1;
  min-width: 140px;
}

.profile-add-photo:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.profile-add-photo--cloud {
  border-color: color-mix(in srgb, var(--sky, #6eb5ff) 45%, transparent);
  background: color-mix(in srgb, var(--sky, #6eb5ff) 8%, transparent);
}

.profile-cloud-library {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--glass-border);
}

.profile-cloud-library__hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.45;
}

.profile-cloud-library__hint strong {
  color: #ffd6d6;
}

.profile-cloud-library__grid .meixier-media-card {
  min-width: 0;
  border-radius: 10px;
}

.profile-cloud-library__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  --meixier-media-bg: var(--glass);
  --meixier-media-title: var(--text);
  --meixier-media-sub: var(--text-soft);
  --meixier-media-file: var(--text-soft);
  --meixier-media-pick: var(--gold);
}

.profile-cloud-library__grid .meixier-media-thumb {
  border-radius: 10px;
}

.profile-cloud-library__grid .meixier-media-thumb__media img,
.profile-cloud-library__grid .meixier-media-thumb__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cloud-library__grid .meixier-media-thumb.is-picked {
  border-color: var(--gold);
}

.profile-cloud-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 6px 0;
}

.profile-add-photo__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.profile-add-photo__text {
  font-size: 0.88rem;
  color: var(--gold);
}

.profile-gallery-limit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* 帮派 */
.guild-founder {
  margin-bottom: 28px;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(242, 221, 184, 0.12), rgba(42, 16, 32, 0.9));
  border: 1px solid var(--glass-border);
}

.guild-founder-head {
  text-align: center;
  margin-bottom: 16px;
}

.guild-founder-portrait {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(196, 56, 88, 0.35);
}

.guild-founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-founder-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin: 0 0 4px;
  font-weight: 400;
}

.guild-founder-head .sub {
  font-size: 0.8rem;
  color: var(--blush);
  margin: 0 0 8px;
}

.guild-founder-head .motto {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

.guild-gallery-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 0.1em;
}

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

@media (min-width: 480px) {
  .guild-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guild-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #0c060a;
  border: 1px solid rgba(242, 221, 184, 0.2);
}

.guild-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.guild-gallery-item figcaption {
  padding: 6px 8px;
  font-size: 0.68rem;
  text-align: center;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
}

.guild-members-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 400;
}

.guild-member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guild-member-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf7, #fceef2);
  border: 1px solid rgba(240, 184, 200, 0.35);
  text-align: center;
}

.guild-member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.guild-member-card .info {
  padding: 10px 8px 12px;
}

.guild-member-card .info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--rose-deep);
  margin-bottom: 4px;
}

.guild-member-card .info span {
  font-size: 0.72rem;
  color: #9a5a6a;
}

.guild-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 帮派 · 名录 + 时间轴详情 */
.guild-view-root {
  animation: guildFadeIn 0.35s ease;
}

/* 帮派消息房间 */
.guild-room {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guild-room__hero {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(80, 40, 60, 0.45), rgba(20, 12, 18, 0.9));
}

.guild-room__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  color: var(--rose);
  letter-spacing: 0.12em;
}

.guild-room__title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.guild-room__sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.guild-room__prefs,
.guild-room__admin,
.guild-room__feed,
.guild-room__members {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.guild-room__prefs h3,
.guild-room__admin h3,
.guild-room__feed h3,
.guild-room__members h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--gold);
}

.guild-room__prefs-hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guild-room__prefs-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.8rem;
}

.guild-room__post-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.guild-room__post-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guild-room__post-form input,
.guild-room__post-form textarea,
.guild-room__post-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.guild-room-post {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.guild-room-post--event {
  border-color: rgba(212, 168, 106, 0.35);
}

.guild-room-post__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.guild-room-post__type {
  color: var(--gold);
  font-weight: 600;
}

.guild-room-post__title {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.guild-room-post__body {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.guild-room-post__event {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--rose);
}

.guild-room-member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.guild-room-member-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.guild-room-gate {
  padding: 20px 16px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--glass-border);
}

.guild-room__empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.guild-hub__banner {
  text-align: center;
  padding: 20px 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--rose-deep) 18%, transparent),
    color-mix(in srgb, var(--bg-plum) 85%, transparent)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--rose-deep) 12%, transparent);
}

.guild-hub__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--blush);
}

.guild-hub__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 10px;
}

.guild-hub__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.guild-roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guild-roster__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--glass) 90%, transparent),
    color-mix(in srgb, var(--bg-plum) 70%, transparent)
  );
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.guild-roster__item:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--rose-deep) 18%, transparent);
}

.guild-roster__item.is-founder {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--gold) 12%, transparent),
    color-mix(in srgb, var(--rose-deep) 15%, transparent)
  );
}

.guild-roster__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 320) 45% 42%),
    hsl(var(--hue, 320) 55% 28%)
  );
  border: 2px solid color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.guild-roster__initial {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--champagne);
  line-height: 1;
}

.guild-roster__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guild-roster__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.guild-roster__excerpt {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-roster__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.guild-roster__tag {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.guild-roster__tag.is-founder {
  color: var(--ink);
  background: var(--gold);
  border-color: transparent;
}

.guild-roster__tag.is-blessed {
  color: var(--blush);
  border-color: color-mix(in srgb, var(--rose) 40%, transparent);
}

.guild-roster__tag.is-count {
  color: var(--gold-dim);
}

.guild-roster__chevron {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--gold-dim);
  opacity: 0.7;
}

.guild-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--gold);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.guild-detail__hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.guild-detail__hero.is-founder {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gold) 14%, transparent),
    color-mix(in srgb, var(--rose-deep) 12%, transparent)
  );
}

.guild-detail__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 320) 48% 45%),
    hsl(var(--hue, 320) 58% 30%)
  );
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--champagne);
}

.guild-detail__meta h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 4px;
}

.guild-detail__role {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--blush);
}

.guild-detail__motto {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.guild-timeline-intro {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  letter-spacing: 0.12em;
}

.guild-timeline {
  list-style: none;
  margin: 0;
  padding: 0 4px 24px;
  position: relative;
}

.guild-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--glass-border) 8%,
    var(--gold-dim) 50%,
    var(--glass-border) 92%,
    transparent
  );
  opacity: 0.65;
}

.guild-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 0 10px;
  margin-bottom: 28px;
  align-items: start;
}

.guild-timeline__item.is-left .guild-timeline__card {
  grid-column: 1;
}

.guild-timeline__item.is-left .guild-timeline__axis {
  grid-column: 2;
}

.guild-timeline__item.is-right .guild-timeline__card {
  grid-column: 3;
}

.guild-timeline__item.is-right .guild-timeline__axis {
  grid-column: 2;
}

.guild-timeline__axis {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.guild-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-wine);
  box-shadow: 0 0 0 2px var(--gold-dim), 0 0 16px var(--gold-glow);
  z-index: 1;
}

.guild-timeline__card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #fffaf7 0%, #fceef2 100%);
  border: 1px solid color-mix(in srgb, var(--rose) 25%, transparent);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  color: var(--ink);
}

.guild-timeline__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px 8px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--rose-deep) 8%, #fff9f6),
    #fff9f6
  );
  border-bottom: 1px dashed color-mix(in srgb, var(--rose) 20%, transparent);
}

.guild-timeline__kind {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--rose-deep) 12%, transparent);
  color: var(--rose-deep);
  letter-spacing: 0.08em;
}

.guild-timeline__heading {
  flex: 1;
  font-size: 0.88rem;
  color: var(--rose-deep);
  font-weight: 600;
}

.guild-timeline__time {
  font-size: 0.68rem;
  color: #9a5a6a;
}

.guild-timeline__media {
  line-height: 0;
  cursor: zoom-in;
}

.guild-timeline__media img {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
  background: #0c060a;
}

.guild-timeline__media.is-broken {
  min-height: 80px;
  background: rgba(42, 16, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guild-timeline__media.is-broken img {
  display: none;
}

.guild-timeline__media.is-broken::after {
  content: '图片暂不可用';
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-avatar__img.is-broken,
.profile-photo-card__visual img.is-broken,
.sub-item img.is-broken {
  opacity: 0.35;
}

.guild-timeline__declaration {
  position: relative;
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #5a3040;
}

.guild-timeline__declaration p {
  margin: 0;
  padding: 0 8px;
  font-style: italic;
}

.guild-timeline__quote-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: color-mix(in srgb, var(--rose-deep) 35%, transparent);
  line-height: 1;
  vertical-align: top;
}

.guild-timeline__quote-mark--end {
  float: right;
}

@media (max-width: 400px) {
  .guild-timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guild-timeline::before {
    left: 11px;
    transform: none;
  }

  .guild-timeline__item.is-left .guild-timeline__card,
  .guild-timeline__item.is-right .guild-timeline__card {
    grid-column: 1;
    margin-left: 28px;
  }

  .guild-timeline__item.is-left .guild-timeline__axis,
  .guild-timeline__item.is-right .guild-timeline__axis {
    grid-column: 1;
    position: absolute;
    left: 4px;
    top: 12px;
  }
}

/* 领奖 */
.prize-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #fff9f6, #f5e6d8);
  color: var(--ink);
  border: 2px solid var(--gold-dim);
  box-shadow: 0 12px 40px rgba(196, 56, 88, 0.2);
}

.prize-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rose-deep);
  margin: 0 0 12px;
}

.prize-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.prize-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-soft);
}

.prize-empty p {
  margin: 0 0 12px;
  line-height: 1.7;
}

/* .btn-my 主样式见 style.css（首页与子页共用） */

/* 首页全屏「我的」浮层 */
.my-overlay {
  position: fixed;
  inset: 0;
  /* 须高于首页 lightbox(1200)，否则预览未关时「我的」内按钮点不到 */
  z-index: 1600;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, var(--bg-night) 0%, var(--bg-wine) 38%, var(--bg-plum) 100%);
  animation: myOverlayIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.my-overlay.hidden {
  display: none !important;
}

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

body.my-overlay-open {
  overflow: hidden;
}

.my-overlay__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.my-overlay__bg .scene-bg__aurora,
.my-overlay__bg .scene-bg__silk,
.my-overlay__bg .scene-bg__heart,
.my-overlay__bg .scene-bg__vignette {
  position: absolute;
}

.my-overlay__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.my-overlay .my-topbar {
  flex-shrink: 0;
}

.my-overlay__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 32px;
  box-sizing: border-box;
}

.my-overlay__close-x {
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(42, 16, 32, 0.85);
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.my-overlay-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wall-style-banner {
  text-align: center;
  font-size: 0.78rem;
  color: var(--blush);
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(212, 168, 106, 0.12);
  border: 1px dashed rgba(242, 221, 184, 0.35);
}

/* 设置 · 主题切换 */
.settings-intro {
  text-align: center;
  padding: 18px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.settings-intro h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 400;
}

.settings-intro p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.settings-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold);
  background: color-mix(in srgb, var(--rose-deep) 22%, transparent);
  border: 1px solid var(--glass-border);
}

.settings-current-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
}

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

@media (min-width: 400px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--glass);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--rose-deep) 28%, transparent);
}

.theme-card.is-active {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold-glow),
    0 12px 36px color-mix(in srgb, var(--rose-deep) 35%, transparent);
}

.theme-card__preview {
  height: 72px;
  display: flex;
  overflow: hidden;
}

.theme-card__swatch,
.theme-card__chip {
  flex: 1;
  min-width: 0;
  min-height: 72px;
}

.settings-current-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.settings-current-label strong {
  color: var(--gold);
  font-weight: 600;
}

.settings-hero {
  margin-bottom: 12px;
}

.theme-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.theme-card--pulse {
  animation: themeCardPulse 0.52s ease;
}

@keyframes themeCardPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.theme-card__body {
  padding: 10px 12px 12px;
}

.theme-card__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 3px;
}

.theme-card__desc {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.theme-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.theme-card.is-active .theme-card__check {
  display: flex;
}

.theme-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold);
  background: color-mix(in srgb, var(--bg-plum) 92%, transparent);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.theme-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 设置 · 同袍账号 */
.settings-account {
  margin-bottom: 20px;
}

.settings-account__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 8px;
  padding: 0 4px;
}

.settings-account__meta strong {
  color: var(--gold);
}

.settings-account__meta--muted {
  opacity: 0.85;
}

.settings-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-form__label,
.settings-form__section {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.settings-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
}

.settings-form-hint {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

.settings-form--password {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.settings-account__logout {
  margin-top: 16px;
  opacity: 0.88;
}

.settings-theme-hint {
  margin-bottom: 22px;
}

/* 设置页底部 · 同袍登录 */
.settings-auth-portal {
  position: relative;
  margin-top: 28px;
  padding: 2px;
  border-radius: 20px;
  overflow: hidden;
}

.settings-auth-portal__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 120deg,
    rgba(212, 168, 106, 0.55),
    rgba(232, 120, 152, 0.45),
    rgba(196, 56, 88, 0.35),
    rgba(212, 168, 106, 0.55)
  );
  opacity: 0.85;
  animation: settingsAuthShimmer 6s linear infinite;
}

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

.settings-auth-portal__card {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--rose-deep) 38%, rgba(18, 8, 14, 0.92)) 0%,
    rgba(28, 12, 22, 0.96) 55%,
    rgba(20, 10, 18, 0.98) 100%
  );
  border: 1px solid rgba(212, 168, 106, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 220, 200, 0.08);
}

.settings-auth-portal__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--rose-deep) 40%, transparent);
}

.settings-auth-portal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--text-soft);
}

.settings-auth-portal__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}

.settings-auth-portal__desc {
  margin: 0 0 16px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.settings-auth-portal__tips {
  list-style: none;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(212, 168, 106, 0.28);
  text-align: left;
}

.settings-auth-portal__tips li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 5px 0;
}

.settings-auth-portal__tips li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  padding-top: 8px;
}

.settings-auth-portal__tips li span:first-child {
  color: rgba(244, 212, 224, 0.55);
  flex-shrink: 0;
}

.settings-auth-portal__tips strong {
  color: var(--gold);
  font-weight: 600;
}

.settings-auth-portal__cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rose) 85%, #fff) 0%,
    color-mix(in srgb, var(--rose-deep) 90%, #3a1020) 100%
  );
  color: #fff8f5;
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--rose-deep) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.settings-auth-portal__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px color-mix(in srgb, var(--rose-deep) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.settings-auth-portal__cta:active {
  transform: translateY(0);
}

.settings-auth-portal__cta-main {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.settings-auth-portal__cta-sub {
  font-size: 0.72rem;
  opacity: 0.88;
  letter-spacing: 0.04em;
}

.settings-auth-portal__foot {
  margin: 14px 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.settings-auth-portal__link {
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--gold);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— 我的印记 —— */
.badge-imprint {
  background: linear-gradient(135deg, #ff6a9a, #ffb347);
  color: #1a0810;
  font-weight: 700;
}

.imprints-intro {
  padding: 18px 16px 20px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 92, 138, 0.18), rgba(255, 216, 120, 0.12));
  border: 1px solid rgba(255, 180, 200, 0.35);
  box-shadow: 0 8px 32px rgba(255, 80, 120, 0.12);
}

.imprints-intro__tag {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #ffb8d0;
}

.imprints-intro__title {
  margin: 0 0 14px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.65rem;
  font-weight: 400;
  color: #ffe8f0;
  text-shadow: 0 0 20px rgba(255, 120, 160, 0.45);
}

.imprints-intro__block {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 8, 16, 0.35);
  border-left: 3px solid #ff5c8a;
}

.imprints-intro__block--value {
  border-left-color: #ffd878;
}

.imprints-intro__block h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #ffd878;
  letter-spacing: 0.08em;
}

.imprints-intro__block p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.imprints-intro__note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #f4a4b8;
}

.imprints-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 16px 0 12px;
}

.imprints-summary__count {
  font-size: 0.9rem;
  color: #ffe0ec;
}

.imprints-summary__count strong {
  font-size: 1.15rem;
  color: #ff8cb8;
  text-shadow: 0 0 12px rgba(255, 100, 150, 0.5);
}

.imprints-summary__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.imprints-pending {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ffe8b0;
  background: rgba(255, 180, 80, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(255, 216, 120, 0.35);
}

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

.imprint-card {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--imprint-color, #ff5c8a),
    var(--imprint-glow, #ffd878)
  );
  box-shadow:
    0 0 24px color-mix(in srgb, var(--imprint-color) 45%, transparent),
    0 8px 28px rgba(0, 0, 0, 0.25);
}

.imprint-card__glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: radial-gradient(
    ellipse at 50% 0%,
    color-mix(in srgb, var(--imprint-glow) 35%, transparent),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.9;
}

.imprint-card__inner {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #2a1020 0%, #3a1830 50%, #1e0c18 100%);
}

.imprint-card__rarity {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--imprint-glow, #ffd878);
}

.imprint-card__name {
  margin: 0 0 6px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--imprint-color, #ff7aaa);
  text-shadow: 0 0 16px color-mix(in srgb, var(--imprint-color) 55%, transparent);
}

.imprint-card__campaign {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #e8c4d0;
}

.imprint-card__desc {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.imprint-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.imprint-card__tags span {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.2);
  color: #ffb8d0;
  border: 1px solid rgba(255, 140, 180, 0.35);
}

.imprint-card__meta {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.imprint-card__cta {
  margin-top: 4px;
}

.imprints-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 160, 190, 0.35);
  background: rgba(30, 12, 24, 0.4);
}

.imprints-empty__icon {
  font-size: 1.6rem;
  color: #ff8cb8;
  margin: 0 0 8px;
}

.imprints-empty p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.imprints-empty__sub,
.imprints-empty__hint {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.prize-card--imprint h2 {
  color: #ff9ec4;
  text-shadow: 0 0 14px rgba(255, 100, 150, 0.35);
}

/* 档案 v2 · 四层 + 时间线 + 联创条 */
.profile-layer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.profile-layer-chip {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 106, 0.25);
  color: var(--text-muted);
}

.profile-layer-chip.is-on {
  border-color: rgba(212, 168, 106, 0.55);
  color: var(--gold);
  background: rgba(212, 168, 106, 0.12);
}

.profile-cocreate-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(20, 10, 18, 0.45);
}

.profile-cocreate-strip__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.profile-cocreate-strip__item strong {
  font-size: 1.2rem;
  color: var(--gold);
}

.profile-cocreate-strip__label {
  color: var(--text-muted);
}

.profile-cocreate-strip__link {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--blush);
  text-decoration: none;
  padding-top: 4px;
}

.profile-youth-oath-input {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: inherit;
}

.profile-complete-badge {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #9fd4b0;
}

.profile-complete-hint {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.profile-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--champagne);
}

.profile-section-head__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(232, 164, 160, 0.15);
  border: 1px solid rgba(232, 164, 160, 0.35);
}

.profile-snippet-toggle {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--blush);
  font-size: 0.68rem;
  cursor: pointer;
}

.profile-snippet-panel {
  margin: 6px 0 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(232, 164, 160, 0.35);
  background: rgba(0, 0, 0, 0.15);
}

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

.profile-snippet-panel__title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.profile-snippet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow: auto;
}

.profile-snippet-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.45;
  cursor: pointer;
}

.profile-snippet-btn span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  color: var(--blush);
  background: rgba(232, 164, 160, 0.12);
}

.profile-partner-panel {
  margin: 14px 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(155, 123, 184, 0.35);
  background: rgba(155, 123, 184, 0.08);
}

.profile-partner-panel h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.profile-partner-panel p {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mx-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.mx-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.mx-badge--verified {
  color: #8fd4a8;
  background: rgba(80, 160, 120, 0.2);
  border: 1px solid rgba(80, 160, 120, 0.35);
}

.mx-badge--cocreate {
  color: #c9b0e8;
  background: rgba(155, 123, 184, 0.2);
  border: 1px solid rgba(155, 123, 184, 0.4);
}

.mx-badge--pending {
  color: var(--blush);
  background: rgba(232, 164, 160, 0.12);
}

.mx-badge--profile {
  color: var(--gold);
  background: rgba(212, 168, 106, 0.12);
}

.mx-name-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.mx-name-line__name {
  font-weight: 600;
}

/* 头像环饰 · 仅点亮标识（认证 / 身份 / 影像 / 荣誉 / 联创） */
.mx-avatar-orbit {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
}

.mx-avatar-orbit__core {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
}

.mx-avatar-orbit__marks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.mx-orbit-mark {
  --orbit-r: 28px;
  --orbit-mark-size: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-mark-size);
  height: var(--orbit-mark-size);
  margin: calc(var(--orbit-mark-size) / -2);
  transform: rotate(var(--orbit-angle))
    translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * var(--orbit-angle)));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 6, 8, 0.92);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark__glyph {
  font-size: calc(var(--orbit-mark-size) * 0.52);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.mx-orbit-mark--verify {
  border-color: rgba(110, 200, 150, 0.85);
  background: linear-gradient(145deg, rgba(80, 170, 120, 0.55), rgba(20, 50, 35, 0.95));
  box-shadow: 0 0 12px rgba(90, 190, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mx-orbit-mark--verify .mx-orbit-mark__glyph {
  color: #b8f0d0;
}

.mx-orbit-mark--identity {
  border-color: rgba(212, 168, 106, 0.9);
  background: linear-gradient(145deg, rgba(212, 168, 106, 0.42), rgba(50, 28, 40, 0.95));
  box-shadow: 0 0 12px rgba(212, 168, 106, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--identity .mx-orbit-mark__glyph {
  color: var(--gold);
}

.mx-orbit-mark--gallery {
  border-color: rgba(120, 180, 230, 0.85);
  background: linear-gradient(145deg, rgba(90, 150, 210, 0.45), rgba(25, 40, 60, 0.95));
  box-shadow: 0 0 12px rgba(100, 170, 230, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--gallery .mx-orbit-mark__glyph {
  color: #b8daf8;
}

.mx-orbit-mark--honors {
  border-color: rgba(255, 190, 90, 0.88);
  background: linear-gradient(145deg, rgba(230, 160, 70, 0.48), rgba(60, 35, 15, 0.95));
  box-shadow: 0 0 12px rgba(230, 170, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--honors .mx-orbit-mark__glyph {
  color: #ffe4b0;
}

.mx-orbit-mark--cocreate {
  border-color: rgba(180, 140, 220, 0.9);
  background: linear-gradient(145deg, rgba(155, 123, 184, 0.5), rgba(45, 30, 65, 0.96));
  box-shadow: 0 0 12px rgba(180, 140, 220, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mx-orbit-mark--cocreate .mx-orbit-mark__glyph {
  color: #e8d4ff;
}

.mx-avatar-orbit--sm {
  width: 32px;
  height: 32px;
  --orbit-r: 18px;
  --orbit-mark-size: 12px;
}

.mx-avatar-orbit--sm .tea-avatar {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--md {
  width: 44px;
  height: 44px;
  --orbit-r: 26px;
  --orbit-mark-size: 14px;
}

.mx-avatar-orbit--md .tea-avatar {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--fc {
  width: 44px;
  height: 44px;
  --orbit-r: 21px;
  --orbit-mark-size: 13px;
  border-radius: 50%;
}

.mx-avatar-orbit--fc .fc-tl__ava {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--hub {
  width: 64px;
  height: 64px;
  --orbit-r: 36px;
  --orbit-mark-size: 17px;
}

.mx-avatar-orbit--hub .my-hub-v2__avatar {
  width: 100%;
  height: 100%;
}

.mx-avatar-orbit--profile {
  width: 112px;
  height: 112px;
  --orbit-r: 58px;
  --orbit-mark-size: 22px;
}

.mx-avatar-orbit--profile .profile-avatar {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.mx-avatar-orbit--profile .profile-avatar__img,
.mx-avatar-orbit--profile .profile-avatar__placeholder {
  border-radius: 50%;
}

/* 联创同袍 · 头像环饰（仅描边光晕，不遮挡头像） */
.mx-cocreate-halo {
  position: absolute;
  inset: -5px;
  z-index: 1;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(201, 162, 232, 0.82);
  box-shadow:
    0 0 0 1px rgba(232, 168, 106, 0.35),
    0 0 18px rgba(201, 162, 232, 0.48),
    0 0 28px rgba(232, 168, 106, 0.22);
  animation: mxCocreateHaloPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mxCocreateHaloPulse {
  0%,
  100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.mx-cocreate-badge {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  transform: translate(-50%, -42%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(232, 200, 140, 0.85);
  background: linear-gradient(135deg, #6b4a9a 0%, #3d2858 45%, #1a1028 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(201, 162, 232, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.mx-cocreate-badge__star {
  font-size: 0.72em;
  color: #ffe8a8;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255, 220, 120, 0.8));
}

.mx-cocreate-badge__text {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f5e6ff;
  line-height: 1;
}

.mx-avatar-orbit--sm .mx-cocreate-badge {
  padding: 2px 6px 2px 5px;
  transform: translate(-50%, -48%);
}

.mx-avatar-orbit--sm .mx-cocreate-badge__text {
  font-size: 0.5rem;
}

.mx-avatar-orbit--sm .mx-cocreate-halo {
  inset: -3px;
}

.mx-avatar-orbit--fc .mx-cocreate-badge {
  transform: translate(-50%, -46%);
}

.mx-avatar-orbit--hub .mx-cocreate-badge {
  transform: translate(-50%, -40%);
}

.mx-avatar-orbit--profile .mx-cocreate-badge {
  transform: translate(-50%, -36%);
  padding: 4px 12px 4px 9px;
}

.mx-avatar-orbit--profile .mx-cocreate-badge__text {
  font-size: 0.7rem;
}

/* 名片详情 · 证/身/影/荣 */
.mx-detail-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  max-width: 200px;
}

.mx-detail-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 8, 14, 0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mx-detail-mark__glyph {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.mx-detail-mark__label {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.mx-detail-mark--verify {
  border-color: rgba(110, 200, 150, 0.65);
  background: linear-gradient(135deg, rgba(80, 170, 120, 0.35), rgba(20, 50, 35, 0.92));
}

.mx-detail-mark--verify .mx-detail-mark__glyph {
  color: #b8f0d0;
}

.mx-detail-mark--identity {
  border-color: rgba(212, 168, 106, 0.7);
  background: linear-gradient(135deg, rgba(212, 168, 106, 0.28), rgba(50, 28, 40, 0.92));
}

.mx-detail-mark--identity .mx-detail-mark__glyph {
  color: var(--gold);
}

.mx-detail-mark--gallery {
  border-color: rgba(120, 180, 230, 0.65);
  background: linear-gradient(135deg, rgba(90, 150, 210, 0.32), rgba(25, 40, 60, 0.92));
}

.mx-detail-mark--gallery .mx-detail-mark__glyph {
  color: #b8daf8;
}

.mx-detail-mark--honors {
  border-color: rgba(255, 190, 90, 0.7);
  background: linear-gradient(135deg, rgba(230, 160, 70, 0.35), rgba(60, 35, 15, 0.92));
}

.mx-detail-mark--honors .mx-detail-mark__glyph {
  color: #ffe4b0;
}

.player-card__portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mx-avatar-orbit--player {
  --orbit-r: 44px;
  --orbit-mark-size: 19px;
}

.profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.my-hub-v2__avatar-col {
  flex-shrink: 0;
}

.my-hub-v2__avatar-img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.fc-tl__ava-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.tea-card__foot-text .mx-badges,
.tea-card__reply-author .mx-badges {
  margin-left: 4px;
}

.profile-timeline-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.profile-timeline-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--gold);
}

.profile-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-timeline-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-timeline-item:last-child {
  border-bottom: none;
}

.profile-timeline-item__chapter {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  margin-bottom: 4px;
}

.profile-timeline-item__title {
  display: block;
  font-size: 0.88rem;
}

.profile-timeline-item__sum {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.profile-timeline-item__time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.profile-timeline-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 400px) {
  .profile-cocreate-strip {
    grid-template-columns: 1fr;
  }
}

/* 个人中心 v2 · 卡片网格 */
.my-hub-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.my-hub-v2__hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(74, 28, 44, 0.55) 0%, rgba(26, 10, 18, 0.95) 60%, rgba(12, 6, 10, 0.98) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--gold-glow);
}

.my-hub-v2__avatar {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.my-hub-v2__avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 20px var(--gold-glow);
}

.my-hub-v2__avatar-letter {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  background: rgba(42, 16, 32, 0.9);
}

.my-hub-v2__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--rose);
}

.my-hub-v2__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--champagne);
}

.my-hub-v2__hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.my-hub-v2__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-hub-v2__pill {
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.my-hub-v2__pill--ok {
  color: var(--gold);
  border-color: var(--gold-dim);
}

.my-hub-v2__pill--win {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  border-color: transparent;
}

.my-hub-v2__pill--tier {
  color: var(--blush);
}

.my-hub-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.my-hub-v2__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.my-hub-v2__stat-icon {
  font-size: 0.85rem;
  color: var(--gold-dim);
}

.my-hub-v2__stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}

.my-hub-v2__stat em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
}

.my-hub-v2__checkin-row {
  text-align: center;
}

.my-hub-v2__checkin-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.my-hub-v2__checkin.is-done {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.my-hub-v2__quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 380px) {
  .my-hub-v2__quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.my-hub-v2__quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(42, 16, 32, 0.55);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.my-hub-v2__quick-btn span:first-child {
  font-size: 1.2rem;
}

.my-hub-v2__quick-btn strong {
  font-size: 0.72rem;
  color: var(--champagne);
  font-weight: 600;
}

.my-hub-v2__quick-meta {
  font-size: 0.58rem;
  color: var(--ink-muted, rgba(255, 255, 255, 0.45));
  font-style: normal;
  font-weight: 400;
}

.my-hub-v2__quick-btn--profile {
  border-color: rgba(232, 144, 168, 0.4);
  background: rgba(232, 144, 168, 0.08);
}

.my-hub-v2__panel {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(26, 10, 18, 0.5);
  overflow: hidden;
}

.my-hub-v2__panel--cocreate {
  border-color: rgba(201, 162, 39, 0.35);
}

.my-hub-v2__section-title {
  margin: 0;
  padding: 12px 14px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
}

.my-hub-v2__section-title span {
  color: var(--rose);
}

.my-hub-v2__cocreate-banner {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.my-hub-v2__cocreate-banner strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
}

.my-hub-v2__cocreate-banner a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
}

.my-hub-v2__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.my-hub-v2__row.is-highlight {
  background: rgba(232, 144, 168, 0.06);
}

.my-hub-v2__row-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 16, 32, 0.8);
  border: 1px solid var(--glass-border);
  font-size: 1rem;
}

.my-hub-v2__row-text {
  flex: 1;
  min-width: 0;
}

.my-hub-v2__row-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--champagne);
}

.my-hub-v2__row-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.my-hub-v2__row-badge {
  font-size: 0.78rem;
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}

.my-hub-v2__row-badge--alert {
  background: #ff3b4a;
  border-color: #ff3b4a;
  color: #fff;
  font-weight: 700;
}

.my-hub-v2__quick-btn {
  position: relative;
}

.my-hub-v2__dot {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  border: 2px solid #1a0a12;
}

/* 情缘积分 · 规则说明页 */
.aff-guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.aff-guide__hero {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(74, 28, 44, 0.5) 0%, rgba(26, 10, 18, 0.95) 100%);
}

.aff-guide__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--rose);
}

.aff-guide__hero h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--champagne);
}

.aff-guide__balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.aff-guide__balance strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.aff-guide__balance span {
  font-size: 0.82rem;
  color: var(--blush);
}

.aff-guide__cap,
.aff-guide__intro,
.aff-guide__sub,
.aff-guide__note {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.aff-guide__rate {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--rose);
  letter-spacing: 0.04em;
}

.aff-guide__card {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(26, 10, 18, 0.55);
}

.aff-guide__card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--gold);
}

.aff-guide__card--profile {
  border-color: rgba(232, 144, 168, 0.45);
  background: linear-gradient(160deg, rgba(74, 28, 44, 0.35) 0%, rgba(26, 10, 18, 0.9) 100%);
}

.aff-guide__card--verify {
  border-color: rgba(212, 175, 90, 0.45);
  background: linear-gradient(160deg, rgba(80, 56, 24, 0.25) 0%, rgba(26, 10, 18, 0.92) 100%);
}

.aff-guide__card--verify h3 {
  color: var(--gold);
}

.aff-verify-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 90, 0.1);
  border: 1px solid rgba(212, 175, 90, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aff-verify-banner p {
  margin: 0;
  flex: 1 1 200px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.wallet-notice--warn {
  color: #e8a060;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(232, 160, 96, 0.08);
  border: 1px dashed rgba(232, 160, 96, 0.35);
}

.aff-guide__card--mall {
  padding: 0;
  overflow: hidden;
  border-color: rgba(212, 175, 95, 0.35);
}

.aff-mall-banner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(120, 48, 72, 0.55) 0%, rgba(40, 16, 28, 0.95) 55%, rgba(80, 56, 24, 0.4) 100%);
}

.aff-mall-banner__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.aff-mall-banner h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--champagne);
}

.aff-mall-banner__list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.76rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.aff-mall-banner__cta {
  align-self: flex-start;
  white-space: nowrap;
}

.aff-guide__req,
.aff-guide__steps {
  margin: 0 0 10px;
  padding-left: 1.2em;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.aff-guide__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.aff-guide__cta-row .btn {
  flex: 1 1 140px;
  width: auto;
}

.aff-plan-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .aff-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .aff-plan-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .aff-plan-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aff-plan--c {
  border-color: rgba(212, 175, 90, 0.35);
  background: linear-gradient(145deg, rgba(40, 32, 18, 0.5), rgba(20, 18, 14, 0.6));
}

.aff-guide__card--wallet {
  border-color: rgba(212, 175, 90, 0.4);
  background: linear-gradient(160deg, rgba(36, 28, 16, 0.55), rgba(18, 16, 14, 0.75));
}

.wallet-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .wallet-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.wallet-head__eyebrow {
  font-size: 0.68rem;
  color: var(--gold-dim);
  margin: 0 0 4px;
}

.wallet-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.wallet-head__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.wallet-dual-balance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: min(100%, 280px);
}

.wallet-dual-balance__col {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-dual-balance__col--gold {
  border-color: rgba(212, 175, 90, 0.35);
}

.wallet-dual-balance__label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.wallet-dual-balance__col strong {
  display: block;
  font-size: 1.35rem;
  color: var(--rose);
  line-height: 1.2;
}

.wallet-dual-balance__col--gold strong {
  color: var(--gold);
}

.wallet-dual-balance__col em {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-style: normal;
}

.wallet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.wallet-tabs__btn {
  flex: 1 1 auto;
  min-width: 4.5rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.wallet-tabs__btn.is-active {
  border-color: rgba(212, 175, 90, 0.5);
  color: var(--gold);
  background: rgba(212, 175, 90, 0.12);
}

.wallet-tab-panel[hidden] {
  display: none !important;
}

.wallet-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.wallet-notice--soon {
  color: var(--gold-dim);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 90, 0.08);
  border: 1px dashed rgba(212, 175, 90, 0.35);
}

.wallet-pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .wallet-pkg-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wallet-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 90, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
}

.wallet-pkg.is-disabled,
.wallet-pkg:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.wallet-pkg strong {
  font-size: 0.85rem;
  color: var(--gold);
}

.wallet-pkg em {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: normal;
}

.wallet-pkg span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.wallet-pkg__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.55rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--rose);
  color: #fff;
}

.wallet-form label {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.wallet-form input {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}

.wallet-form__hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: -4px 0 10px;
}

.wallet-footnote,
.wallet-subhead {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.wallet-subhead {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin: 14px 0 8px;
}

.wallet-ledger-list,
.wallet-wd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wallet-ledger-item,
.wallet-wd-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.wallet-ledger-item .pos {
  color: var(--rose);
  font-weight: 600;
}

.wallet-ledger-item .neg {
  color: var(--text-muted);
}

.wallet-wd-item__st--pending {
  color: var(--gold);
}

.wallet-wd-item__st--paid {
  color: #6bc96b;
}

.wallet-wd-item__st--rejected {
  color: var(--text-muted);
}

.aff-plan {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(12, 6, 10, 0.45);
}

.aff-plan--b {
  border-color: rgba(201, 162, 39, 0.35);
}

.aff-plan h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--champagne);
}

.aff-plan p {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.aff-plan ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.aff-plan__pool {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.aff-plan__pool strong {
  color: var(--gold);
}

.aff-rules-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.aff-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.aff-rules-table th,
.aff-rules-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.aff-rules-table th {
  color: var(--gold-dim);
  font-weight: 600;
}

.aff-rules__delta {
  color: var(--rose);
  font-weight: 600;
  white-space: nowrap;
}

.aff-rules__delta.neg {
  color: var(--text-muted);
}

.aff-rules__row--hi {
  background: rgba(232, 144, 168, 0.08);
}

.aff-level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aff-level-chip {
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
}

.aff-level-chip em {
  font-style: normal;
  color: var(--gold);
  margin-right: 4px;
}

.aff-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
}

.aff-faq__item summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--champagne);
  list-style: none;
}

.aff-faq__item summary::-webkit-details-marker {
  display: none;
}

.aff-faq__item p {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* 好友 · CP · 故事征集（移动优先） */
.fr-page,
.cp-page,
.story-camp {
  padding: 4px 0 24px;
}

.cp-intro {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.fr-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.fr-tab {
  position: relative;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 55%, transparent);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.fr-tab.is-active {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--champagne);
}

.fr-tab em {
  font-style: normal;
  opacity: 0.7;
  margin-left: 2px;
}

.fr-tab__dot {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
}

.fr-panel[hidden] {
  display: none !important;
}

.fr-add-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.fr-add-bar input {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 58%, transparent);
  color: var(--text);
  font-size: 0.9rem;
}

.fr-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.fr-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  cursor: pointer;
}

.fr-chip.is-active {
  border-color: var(--fr-chip, var(--gold-dim));
  color: var(--champagne);
  background: var(--glass-light);
}

.fr-chip--add {
  border-style: dashed;
}

.fr-ava {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(242, 221, 184, 0.35);
  background: linear-gradient(135deg, rgba(232, 144, 168, 0.35), rgba(201, 162, 39, 0.25));
}

.fr-ava--md {
  width: 48px;
  height: 48px;
}

.fr-ava--lg {
  width: 56px;
  height: 56px;
}

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

.fr-ava--letter,
.fr-ava__fb {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

.fr-friend-card {
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 48%, transparent);
  overflow: hidden;
}

.fr-friend-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.fr-friend-card__info {
  flex: 1;
  min-width: 0;
}

.fr-friend-card__info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--champagne);
}

.fr-friend-card__group {
  font-size: 0.68rem;
}

.fr-friend-card__chev {
  color: var(--gold-dim);
  font-size: 1.2rem;
}

.fr-friend-card__edit {
  padding: 0 14px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fr-friend-card__edit summary {
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}

.fr-friend-card__edit select,
.fr-friend-card__edit input {
  width: 100%;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 58%, transparent);
  color: var(--text);
}

.fr-req-card {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 59, 74, 0.35);
  background: rgba(255, 59, 74, 0.08);
}

.fr-req-card__open {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.fr-req-card__meta strong {
  display: block;
  color: var(--champagne);
}

.fr-req-card__meta span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.fr-req-card__acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fr-act-btn {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-light);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.fr-act-btn--primary {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gold) 30%, transparent),
    color-mix(in srgb, var(--gold-dim) 15%, transparent)
  );
  color: var(--champagne);
  font-weight: 600;
}

.fr-empty {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 24px 12px;
}

.fr-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.fr-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold-dim);
}

.fr-tag--muted {
  opacity: 0.6;
}

.fr-pending {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin: 0 0 10px;
}

.fr-todo-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.fr-todo-add input,
.fr-todo-add select,
.cp-form input,
.cp-form select,
.story-camp__form input,
.story-camp__form select,
.story-camp__form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(12, 6, 10, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.fr-todo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.fr-todo__who {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--gold-dim);
  font-size: 0.72rem;
  cursor: pointer;
}

.fr-todo.is-done .fr-todo__text {
  text-decoration: line-through;
  opacity: 0.55;
}

.fr-todo time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 好友 v2 · 统计 / 朋友圈 / 设置 */
.fr-tabs--3 {
  grid-template-columns: repeat(3, 1fr);
}

.fr-tabs--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 同袍好友 · 列表优先 + 遮罩抽屉 */
.fr-page--list-first {
  display: flex;
  flex-direction: column;
  min-height: min(68vh, calc(100dvh - 140px));
  padding-bottom: 8px;
}

.fr-list-head {
  margin-bottom: 10px;
}

.fr-list-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fr-list-head__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fr-list-head__title strong {
  font-size: 1rem;
  color: var(--champagne);
}

.fr-list-head__title span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-list-head__link {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  color: var(--text-soft);
  text-decoration: none;
}

.fr-list-head__actions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.fr-head-btn {
  position: relative;
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 55%, transparent);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.fr-head-btn--primary {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--champagne);
}

.fr-head-btn--alert {
  border-color: color-mix(in srgb, #ff6b7a 40%, transparent);
  color: #ffb3bc;
}

.fr-head-btn__badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 15px;
}

.fr-bind-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #ffb347 35%, transparent);
  background: color-mix(in srgb, #ffb347 10%, transparent);
}

.fr-bind-banner p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--champagne);
}

.fr-pending-strip {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 30%, transparent);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.fr-req-strip {
  width: 100%;
  margin: 0 0 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #ff6b7a 35%, transparent);
  background: color-mix(in srgb, #ff6b7a 12%, transparent);
  color: var(--champagne);
  font-family: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.fr-chips--list {
  margin-bottom: 8px;
}

.fr-friends--primary {
  flex: 1;
  min-height: 180px;
}

.fr-empty-card--list {
  padding: 36px 16px;
}

.fr-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fr-sheet-root.hidden {
  display: none !important;
}

.fr-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(8, 4, 12, 0.62);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.fr-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: min(88vh, 640px);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;
  background: color-mix(in srgb, var(--bg-night) 92%, #1a1020);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: fr-sheet-up 0.24s ease-out;
}

@keyframes fr-sheet-up {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fr-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--glass-border);
}

.fr-sheet__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--champagne);
}

.fr-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.fr-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.fr-sheet-panel[hidden] {
  display: none !important;
}

.fr-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1400;
  max-width: min(92vw, 360px);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(22, 10, 28, 0.96);
  color: var(--champagne);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.fr-toast.is-show {
  opacity: 1;
}

.fr-toast--ok {
  border-color: color-mix(in srgb, #6fcf97 45%, transparent);
  background: color-mix(in srgb, #1a3028 92%, #000);
}

.fr-toast--err {
  border-color: color-mix(in srgb, #ff6b7a 45%, transparent);
  background: color-mix(in srgb, #301820 92%, #000);
}

.fr-send-banner {
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fr-send-banner--ok {
  border: 1px solid color-mix(in srgb, #6fcf97 40%, transparent);
  background: color-mix(in srgb, #6fcf97 12%, transparent);
  color: #b8f0d0;
}

.fr-add-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--glass) 28%, transparent);
}

.fr-add-hint strong {
  color: var(--champagne);
}

.fr-add-hint--warn {
  border: 1px solid color-mix(in srgb, #ffb347 35%, transparent);
  color: var(--champagne);
}

.fr-send-banner--err {
  border: 1px solid color-mix(in srgb, #ff6b7a 40%, transparent);
  background: color-mix(in srgb, #ff6b7a 12%, transparent);
  color: #ffb3bc;
}

.fr-sheet-panel .fr-add-card,
.fr-sheet-panel .fr-discover-card,
.fr-page--manage .fr-add-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 38%, transparent);
}

.fr-settings-todos {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.fr-settings-todos__title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--champagne);
}

.fr-settings-todos__title em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 4px;
}

.fr-page--manage .fr-add-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 38%, transparent);
}

.fr-add-card__title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--champagne);
  font-weight: 600;
}

.fr-add-bar--stack {
  grid-template-columns: 1fr;
}

.fr-stats--manage .fr-stats__card--alert strong {
  color: #ff8a9a;
}

.fr-stats__card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.fr-stats__card--link:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

.fr-tab--alert {
  border-color: color-mix(in srgb, #ff6b7a 40%, transparent);
}

.fr-req-banner {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, #ff6b7a 12%, transparent);
  border: 1px solid color-mix(in srgb, #ff6b7a 28%, transparent);
  font-size: 0.82rem;
  color: var(--champagne);
}

.fr-empty-card {
  padding: 28px 16px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--glass-border);
  color: var(--text-muted);
}

.fr-empty-card p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.fr-empty-card span {
  font-size: 0.75rem;
}

.fr-empty-card--warn {
  margin-bottom: 12px;
  border-color: color-mix(in srgb, var(--rose-gold) 35%, transparent);
  background: color-mix(in srgb, var(--rose-gold) 8%, transparent);
}

.fr-add-card.is-disabled,
.fr-discover-card.is-disabled {
  opacity: 0.72;
}

.fr-discover-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 35%, transparent);
}

.fr-lookup__input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--bg-night);
  color: var(--text-soft);
}

.fr-lookup__results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.fr-lookup__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 55%, transparent);
}

.fr-lookup__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 0;
}

.fr-lookup__ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--rose-gold) 18%, transparent);
  flex-shrink: 0;
}

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

.fr-lookup__meta {
  min-width: 0;
}

.fr-lookup__meta strong {
  display: block;
  font-size: 0.88rem;
}

.fr-lookup__meta em {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

.fr-lookup__status {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.fr-lookup__empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fr-pending-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.fr-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rose-gold) 10%, transparent);
  font-size: 0.82rem;
}

.fr-act-btn--sm {
  padding: 6px 10px;
  font-size: 0.75rem;
}

.fr-friend-card--v2 {
  box-shadow: 0 4px 18px color-mix(in srgb, var(--bg-night) 25%, transparent);
}

.fr-friend-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  flex-wrap: wrap;
}

.fr-friend-card__actions .fr-act-btn--ghost {
  flex: 1;
  min-width: 0;
}

.fr-req-card--v2 {
  margin-bottom: 10px;
}

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

.fr-stats__card {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 40%, transparent);
  text-align: center;
}

.fr-stats__card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--champagne);
  line-height: 1.2;
}

.fr-stats__card span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.fr-stats__card--hint strong {
  color: var(--gold);
}

.fr-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.fr-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.fr-badge {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--gold-dim);
}

.fr-badge--ok {
  background: color-mix(in srgb, #6fcf97 18%, transparent);
  color: #9ee6b8;
}

.fr-more-todos {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.fr-more-todos summary {
  cursor: pointer;
  padding: 8px 0;
  color: var(--champagne);
}

.fr-more-todos summary em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 4px;
}

.fr-compose {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--bg-night) 50%, transparent);
}

.fr-compose textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-night) 65%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.fr-compose__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.fr-compose__pick span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-soft);
  cursor: pointer;
}

.fr-compose__preview {
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-compose__thumb {
  margin-right: 6px;
}

.fr-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fr-moment {
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 80%, transparent);
}

.fr-moment__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fr-moment__ava {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.fr-moment__who {
  flex: 1;
  min-width: 0;
}

.fr-moment__name {
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--champagne);
  cursor: pointer;
  font-family: inherit;
}

.fr-moment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.fr-moment__type {
  font-style: normal;
  color: var(--gold-dim);
}

.fr-moment__content {
  margin: 10px 0 0 58px;
}

.fr-moment__title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--champagne);
  font-weight: 600;
}

.fr-moment__body {
  margin: 0 0 8px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.fr-moment__grid {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  max-width: 280px;
}

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

.fr-moment__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.fr-moment__grid--multi {
  grid-template-columns: repeat(3, 1fr);
}

.fr-moment__img {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-night) 70%, transparent);
}

.fr-moment__grid--1 .fr-moment__img {
  aspect-ratio: 4/3;
  max-height: 200px;
}

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

.fr-moment__link {
  font-size: 0.78rem;
  color: var(--gold-dim);
  text-decoration: none;
}

.fr-act-btn--ghost {
  width: 100%;
  margin-top: 10px;
  background: transparent;
}

.fr-settings {
  padding: 4px 0 20px;
}

.fr-settings__lead {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}

.fr-set__toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 35%, transparent);
  cursor: pointer;
}

.fr-set__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fr-set__toggle-ui {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-night) 80%, transparent);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: background 0.2s;
}

.fr-set__toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}

.fr-set__toggle input:checked + .fr-set__toggle-ui {
  background: color-mix(in srgb, var(--gold) 35%, transparent);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
}

.fr-set__toggle input:checked + .fr-set__toggle-ui::after {
  transform: translateX(18px);
  background: var(--champagne);
}

.fr-set__toggle-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--champagne);
}

.fr-set__toggle-text em {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: normal;
}

.fr-set__types {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px 14px;
  margin: 0 0 14px;
}

.fr-set__types legend {
  font-size: 0.82rem;
  color: var(--champagne);
  padding: 0 6px;
}

.fr-set__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.fr-set__check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.fr-settings__hint {
  font-size: 0.78rem;
  color: var(--gold-dim);
  margin-top: 8px;
}

.fr-settings__hint.is-err {
  color: #ff8a8a;
}

@media (max-width: 420px) {
  .fr-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .fr-tabs--4,
  .fr-tabs--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .fr-moment__content {
    margin-left: 0;
    padding-left: 58px;
  }
}

/* 好友圈 · 微信朋友圈式时间轴 */
.fc-page {
  min-height: 100dvh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-night) 92%, #0a0608);
}

.fc-page.fc-compose-open {
  overflow: hidden;
}

.fc-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.fc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  margin-bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 18%, transparent);
  background: color-mix(in srgb, var(--bg-night) 75%, transparent);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.fc-header .hub-menu-btn {
  flex-shrink: 0;
}

.fc-header__brand {
  flex: 1;
  min-width: 0;
}

.fc-header__mark {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--champagne);
  line-height: 1.25;
}

.fc-header__sub {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.fc-header__friends {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--champagne);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.fc-header__friends:hover,
.fc-header__friends:active {
  background: color-mix(in srgb, var(--gold) 24%, transparent);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
}

.fc-header__friends-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.fc-header__friends-text {
  letter-spacing: 0.04em;
}

.fc-header__friends-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b4a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  border: 2px solid color-mix(in srgb, var(--bg-night) 90%, transparent);
  pointer-events: none;
}

.fc-header__friends-badge[hidden] {
  display: none;
}

.fc-header__link {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  color: var(--text-soft);
  text-decoration: none;
  background: transparent;
}

.fc-header__post {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--champagne);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--gold) 15%, transparent);
}

.fc-header__post:hover {
  background: color-mix(in srgb, var(--gold) 32%, transparent);
}

.fc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: color-mix(in srgb, var(--bg-night) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 16%, transparent);
  position: sticky;
  top: 52px;
  z-index: 4;
  backdrop-filter: blur(8px);
}

.fc-toolbar__settings {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--glass-border) 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-night) 75%, transparent);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}

.fc-toolbar__settings:hover {
  color: var(--champagne);
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}

.fc-toolbar__hint {
  flex: 1 1 100%;
  margin: 0;
  padding: 0 2px 2px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.fc-scope {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-night) 80%, transparent);
  border: 1px solid var(--glass-border);
}

.fc-scope__btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fc-scope__btn.is-active {
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  color: var(--champagne);
  font-weight: 600;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--bg-night) 40%, transparent);
}

.fc-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 18%, var(--glass-border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--glass) 30%, transparent),
    color-mix(in srgb, var(--bg-night) 65%, transparent)
  );
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--champagne) 6%, transparent);
}

.fc-search__icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--gold-dim);
  opacity: 0.85;
}

.fc-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.fc-search__input::placeholder {
  color: var(--text-muted);
}

.fc-search__clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-muted) 25%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* 时间轴列表 · 微信朋友圈式 */
.fc-timeline {
  background: color-mix(in srgb, var(--bg-night) 42%, transparent);
}

.fc-timeline__loading,
.fc-timeline__empty {
  padding: 48px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.fc-tl__item {
  display: flex;
  gap: 12px;
  padding: 16px 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 14%, transparent);
}

.fc-tl__item:last-child {
  border-bottom: none;
}

.fc-tl__aside {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.fc-tl__ava {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  cursor: pointer;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--bg-night) 35%, transparent);
}

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

.fc-tl__ava-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

.fc-tl__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.fc-tl__badge {
  display: block;
  max-width: 100%;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.5rem;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.fc-tl__badge--verified {
  color: #b8f0d8;
  background: color-mix(in srgb, #3ecf8e 18%, transparent);
}

.fc-tl__badge--pending {
  color: #f2d9a8;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
}

.fc-tl__badge--server {
  color: #b8d8f0;
  background: color-mix(in srgb, #6a9fd4 14%, transparent);
}

.fc-tl__badge--cocreate {
  color: #c9b0e8;
  border-color: rgba(155, 123, 184, 0.4);
  background: rgba(155, 123, 184, 0.12);
}

.fc-tl__badge--year {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--glass) 30%, transparent);
}

.fc-tl__main {
  flex: 1;
  min-width: 0;
}

.fc-tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0 0 4px;
}

.fc-tl__kind {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--glass) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) 40%, transparent);
}

.fc-tl__name {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6eb5d4;
  cursor: pointer;
  line-height: 1.35;
}

.fc-tl__name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fc-tl__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--champagne);
  line-height: 1.45;
}

.fc-tl__text {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.fc-tl__grid {
  display: grid;
  gap: 3px;
  margin: 6px 0 8px;
  max-width: min(100%, 280px);
}

.fc-tl__grid--1 {
  grid-template-columns: 1fr;
  max-width: min(72vw, 220px);
}

.fc-tl__grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: min(72vw, 240px);
}

.fc-tl__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.fc-tl__grid--4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: min(72vw, 240px);
}

.fc-tl__img {
  display: block;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-night) 70%, transparent);
  cursor: zoom-in;
}

.fc-tl__grid--1 .fc-tl__img {
  aspect-ratio: 4/3;
  max-height: 220px;
}

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

.fc-tl__video {
  margin: 6px 0 8px;
  max-width: min(100%, 280px);
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-night) 80%, transparent);
}

.fc-tl__video-el {
  display: block;
  width: 100%;
  max-height: 240px;
  background: #000;
}

.fc-tl__video--story {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px dashed color-mix(in srgb, var(--glass-border) 40%, transparent);
}

.fc-tl__video-play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--champagne);
  font-size: 0.75rem;
}

.fc-tl__video-label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.fc-tl__link {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #6a9fb8;
  text-decoration: none;
}

.fc-tl__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.fc-tl__del {
  margin-left: auto;
  padding: 2px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.fc-tl__del:hover:not(:disabled) {
  color: #e8a0a0;
  background: color-mix(in srgb, #c44 12%, transparent);
}

.fc-tl__del:disabled {
  opacity: 0.5;
  cursor: wait;
}

.fc-tl__time {
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text-muted) 82%, transparent);
}

.fc-more {
  display: block;
  width: calc(100% - 28px);
  margin: 12px 14px 0;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--glass) 35%, transparent);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

/* 发布弹层 */
.fc-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.my-overlay-open .fc-compose-modal {
  z-index: 1850;
}

.fc-compose-modal.hidden {
  display: none;
}

.fc-compose-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.fc-compose-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85dvh;
  padding: 0 16px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--bg-night) 96%, transparent);
  border-top: 1px solid var(--glass-border);
  animation: fc-slide-up 0.28s ease;
}

@keyframes fc-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.fc-compose-modal__head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 50%, transparent);
}

.fc-compose-modal__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--champagne);
  text-align: center;
}

.fc-compose-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.fc-compose-modal__send {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 35%, transparent);
  color: var(--champagne);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.fc-compose-modal__panel textarea {
  width: 100%;
  min-height: 120px;
  margin: 12px 0;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-night) 70%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
}

.fc-compose-modal__media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-compose-modal__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-compose-modal__pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--glass-border) 55%, transparent);
  font-size: 0.78rem;
  color: var(--text-soft);
  cursor: pointer;
}

.fc-compose-modal__pick--btn {
  font-family: inherit;
  background: color-mix(in srgb, var(--bg-night) 55%, transparent);
}

.fc-compose-modal__pick--btn:hover {
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
  color: var(--champagne);
}

.fc-compose-modal__pick-icon {
  font-size: 1.1rem;
}

.fc-compose-modal__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.fc-compose-modal__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-night) 70%, transparent);
}

.fc-compose-modal__thumb img,
.fc-compose-modal__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fc-compose-modal__thumb--video {
  width: 120px;
}

.fc-compose-modal__thumb-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 20px;
}

body.my-overlay-open .fc-lightbox {
  z-index: 1950;
}

.fc-lightbox.hidden {
  display: none;
}

.fc-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.fc-lightbox__img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 4px;
}

.fc-compose-modal__hint {
  margin: 12px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fc-empty-card {
  margin: 24px 14px;
  padding: 36px 20px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--glass-border);
}

.fc-empty-card p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.fc-loading {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 24px;
}

.fc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 210;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-night) 92%, transparent);
  border: 1px solid var(--glass-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.fc-toast.is-show {
  opacity: 1;
}

@media (max-width: 380px) {
  .fc-toolbar {
    flex-wrap: wrap;
  }

  .fc-search {
    width: 100%;
    flex: 1 1 100%;
  }
}

.story-camp h3,
.cp-page h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--champagne);
}

@media (max-width: 420px) {
  .fr-add-bar {
    grid-template-columns: 1fr;
  }
}

.cp-scroll {
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: linear-gradient(135deg, rgba(42, 28, 12, 0.6), rgba(26, 16, 10, 0.5));
  text-align: center;
}

.cp-scroll__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--champagne);
  margin: 12px 0;
}

.cp-scroll__pair em {
  color: var(--rose);
  font-style: normal;
}

.cp-scroll__vow {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--blush);
}

.cp-features {
  margin: 0 0 16px;
  padding-left: 1.2em;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.cp-invite-in {
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(232, 120, 152, 0.1);
  border: 1px solid rgba(232, 144, 168, 0.3);
}

.cp-invite-in__acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.story-camp__hero {
  height: 140px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.story-camp__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--champagne);
}

.story-camp__sub,
.story-camp__intro {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.story-camp__deadline {
  font-size: 0.78rem;
  color: var(--gold-dim);
  margin: 10px 0;
}

.story-camp__rewards {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 0.8rem;
}

.story-camp__form {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.story-camp__count {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
}

.story-camp__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 12px 0;
}

.story-camp__rules {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.story-camp__err {
  color: var(--rose);
  font-size: 0.82rem;
  min-height: 1.2em;
}

@media (min-width: 520px) {
  .fr-add,
  .fr-todo-add {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .fr-add input:first-child,
  .fr-todo-add input:first-child {
    flex: 1;
    min-width: 140px;
  }
}

/* 茶肆 · 收藏与跟帖 */
.my-hub-v2__panel--forum {
  border-color: rgba(255, 200, 120, 0.12);
}

.my-hub-v2__forum-note {
  margin: 0 14px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.my-hub-v2__row--link {
  text-decoration: none;
  color: inherit;
}

.my-forum-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px 20px;
}

.my-forum-page__lead {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.my-forum-page__lead strong {
  color: var(--gold);
  font-weight: 600;
}

.my-co-notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-co-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-co-notif {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

.my-co-notif--unread {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.06);
}

.my-co-notif strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.my-co-notif p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.45;
}

.my-co-notif time {
  font-size: 0.75rem;
  opacity: 0.55;
}

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

.my-forum-card--mine {
  border-left: 3px solid rgba(126, 224, 184, 0.45);
  padding-bottom: 10px;
}

.my-forum-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.my-forum-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 4px;
}

.my-forum-card__del {
  color: #f0a0a8;
  border-color: rgba(240, 160, 168, 0.35);
}

.my-forum-card {
  display: block;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(42, 16, 32, 0.88), rgba(18, 8, 14, 0.95));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.my-forum-card:hover,
.my-forum-card:active {
  border-color: rgba(242, 221, 184, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.my-forum-card--fav {
  border-left: 3px solid rgba(255, 200, 80, 0.65);
}

.my-forum-card--cmt {
  border-left: 3px solid rgba(232, 120, 152, 0.55);
}

.my-forum-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.my-forum-card__zone {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
}

.my-forum-card__star {
  color: #ffc85a;
  font-size: 0.95rem;
}

.my-forum-card__time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.my-forum-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.my-forum-card__excerpt {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-forum-card__quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 249, 246, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-forum-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.my-forum-card__foot em {
  margin-left: auto;
  font-style: normal;
  color: var(--gold-dim);
}

.my-forum-card__tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(232, 120, 152, 0.14);
  color: var(--blush);
  font-size: 0.65rem;
}

.my-forum-card__thread {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-forum-card__thread strong {
  color: var(--gold);
  font-weight: 600;
}

.my-forum-card__thread-label {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(242, 221, 184, 0.1);
  color: var(--gold-dim);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.my-forum-empty {
  text-align: center;
  padding: 36px 20px 28px;
}

.my-forum-empty__icon {
  font-size: 2.2rem;
  margin: 0 0 12px;
  line-height: 1;
}

.my-forum-empty h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--gold);
}

.my-forum-empty p {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.my-forum-empty__cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.86rem;
}

/* 身份认证 */
.my-hub-v2__pill--verified {
  color: #7ee0b8;
  border-color: rgba(126, 224, 184, 0.45);
  background: rgba(126, 224, 184, 0.08);
}

.my-hub-v2__pill--wait {
  color: #f0c878;
  border-color: rgba(240, 200, 120, 0.45);
}

.my-hub-v2__pill--guest {
  color: var(--blush);
  border-color: rgba(232, 144, 168, 0.35);
}

.my-hub-v2__identity-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(232, 120, 152, 0.08);
}

.my-hub-v2__identity-callout p {
  margin: 0;
  flex: 1 1 180px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.my-hub-v2__identity-callout--wait {
  border-color: rgba(240, 200, 120, 0.35);
  background: rgba(240, 200, 120, 0.06);
}

.my-hub-v2__identity-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.my-hub-v2__checkin-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
}

.identity-hub__skip-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.my-hub-v2__quick-btn--identity {
  border-color: rgba(126, 224, 184, 0.35);
  background: rgba(126, 224, 184, 0.06);
}

.settings-account__identity-btn {
  margin: 8px 0 12px;
}

.identity-hub__hero {
  margin-bottom: 16px;
}

.identity-hub__badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.identity-hub__badge--ok {
  color: #7ee0b8;
  border: 1px solid rgba(126, 224, 184, 0.45);
}

.identity-hub__badge--wait {
  color: #f0c878;
  border: 1px solid rgba(240, 200, 120, 0.45);
}

.identity-hub__badge--err {
  color: #f09090;
  border: 1px solid rgba(240, 144, 144, 0.45);
}

.identity-hub__badge--guest {
  color: var(--blush);
  border: 1px solid rgba(232, 144, 168, 0.35);
}

.identity-hub__hero h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.identity-hub__hero p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.identity-hub__player {
  margin-top: 8px;
  font-size: 0.82rem;
}

.identity-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.identity-previews figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.identity-previews img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.identity-previews figcaption {
  padding: 6px 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.identity-section__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.identity-section__sub {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.identity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 16px;
}

.identity-form-grid--contacts {
  margin-bottom: 12px;
}

.identity-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identity-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.identity-field__name {
  font-weight: 600;
  color: var(--text);
}

.identity-field__tag {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.identity-field__tag--req {
  color: #f0c878;
  border-color: rgba(240, 200, 120, 0.45);
}

.identity-field__control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 6, 12, 0.45);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.identity-field__control::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.identity-field__control:focus {
  outline: none;
  border-color: rgba(232, 144, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 144, 168, 0.12);
}

.identity-field__select-wrap {
  position: relative;
}

.identity-field__control--select {
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.identity-field__select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.identity-field__hint {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.identity-field--optional .identity-field__control {
  border-color: rgba(255, 255, 255, 0.08);
}

.identity-form-uploads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.identity-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.identity-file__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.identity-field--focus {
  border-radius: 12px;
  outline: 2px solid rgba(232, 144, 168, 0.55);
  outline-offset: 2px;
  animation: identity-field-pulse 0.75s ease 3;
}

@keyframes identity-field-pulse {
  0%,
  100% {
    outline-color: rgba(232, 144, 168, 0.35);
  }
  50% {
    outline-color: rgba(232, 144, 168, 0.85);
  }
}

.identity-file__btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(232, 144, 168, 0.18);
  color: var(--blush);
  font-size: 0.75rem;
  font-weight: 600;
}

.identity-file__name {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-file__name.is-chosen {
  color: var(--text-soft);
}

.identity-file-preview {
  margin-top: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.identity-file-preview__img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.identity-file-preview__hint {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.identity-field--file .identity-file {
  flex-wrap: wrap;
}

.identity-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-form-actions .btn-primary {
  flex: 1 1 180px;
}

.identity-skipped {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.identity-skipped p {
  margin: 0 0 12px;
}

.identity-profile-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px 12px;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.identity-profile-summary div {
  min-width: 0;
}

.identity-profile-summary dt {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.identity-profile-summary dd {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
}

@media (max-width: 640px) {
  .identity-form-grid,
  .identity-form-uploads {
    grid-template-columns: 1fr;
  }
}

.identity-verify-form,
.identity-contacts {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(26, 10, 18, 0.45);
}

.identity-verify-form__title,
.identity-contacts__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.identity-verify-form__steps {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.identity-verify-form__body label,
.identity-contacts__form label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.identity-verify-form__body input[type='text'],
.identity-verify-form__body input[type='file'],
.identity-contacts__form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.identity-verify-form__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.identity-contacts__sub {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.identity-contacts__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.72rem;
}

.identity-gate {
  text-align: center;
  padding: 24px 12px;
}

.identity-gate__icon {
  font-size: 2rem;
  margin: 0 0 8px;
}

/* 登录后一次性身份引导条 */
.identity-nudge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 10px 12px calc(10px + env(safe-area-inset-top));
  background: linear-gradient(135deg, rgba(42, 16, 32, 0.97), rgba(26, 10, 18, 0.98));
  border-bottom: 1px solid rgba(232, 144, 168, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.identity-nudge__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.identity-nudge__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.identity-nudge__text {
  flex: 1 1 200px;
  min-width: 0;
}

.identity-nudge__text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--champagne);
}

.identity-nudge__text p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.identity-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.identity-nudge__cta {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: #fff;
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.identity-nudge__dismiss {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
}

body.has-identity-nudge {
  padding-top: 58px;
}

body.has-identity-nudge.my-overlay-open {
  padding-top: 0;
}

/* 情缘档案 · 未认证头像拦截 */
.profile-identity-gate--optional {
  border-style: dashed;
  opacity: 0.92;
}

.profile-identity-gate {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(232, 120, 152, 0.08);
}

.profile-identity-gate__title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--champagne);
}

.profile-identity-gate__desc {
  margin: 0 0 10px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.profile-identity-card--locked .profile-avatar--locked {
  opacity: 0.72;
  cursor: pointer;
}

.profile-identity-card--locked .profile-avatar--locked:focus-visible {
  outline: 2px solid rgba(232, 144, 168, 0.55);
  outline-offset: 3px;
}

/* 好友 · 关系射线图谱（玩家端） */
.fr-graph__intro {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.fr-graph__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.fr-graph__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-graph__field select {
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
}

.fr-graph__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-graph__stats strong {
  color: var(--blush);
}

.fr-graph__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .fr-graph__layout {
    grid-template-columns: 1fr 220px;
  }
}

.fr-graph__canvas,
.fg-canvas-wrap {
  position: relative;
  height: min(62vh, 520px);
  min-height: 380px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 164, 160, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.2);
  overflow: hidden;
  touch-action: none;
}

.fr-graph__canvas.is-panning,
.fg-canvas-wrap.is-panning {
  cursor: grabbing;
}

.fr-graph__canvas.fg-canvas--fullscreen,
.fg-canvas-wrap.fg-canvas--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 12000;
  width: 100vw;
  height: 100vh;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: #0c0a10;
}

.fr-graph__svg,
.fg-svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.fr-graph__svg:active,
.fg-svg:active,
.is-panning .fr-graph__svg,
.is-panning .fg-svg {
  cursor: grabbing;
}

.fg-viewport-ui {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: auto;
}

.fg-viewport-ui__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(12, 10, 16, 0.82);
  color: var(--champagne, #f4e8dc);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.fg-viewport-ui__btn:hover {
  border-color: rgba(232, 164, 160, 0.45);
  color: var(--blush, #e890a8);
}

.fg-viewport-ui__btn--wide {
  font-size: 0.72rem;
  padding: 0 12px;
}

.fg-viewport-ui__hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 4;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(12, 10, 16, 0.65);
  font-size: 0.65rem;
  color: var(--text-muted, #9a8f88);
  pointer-events: none;
}

.fr-graph__tooltip {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 10, 16, 0.92);
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  line-height: 1.35;
  pointer-events: none;
  max-width: 200px;
}

.fr-graph__tooltip strong {
  display: block;
  color: var(--blush);
}

.fr-graph__detail {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--glass) 40%, transparent);
  font-size: 0.8rem;
}

.fr-graph__detail-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.fr-graph__detail-head h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--champagne);
}

.fr-graph__detail-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-graph__detail-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 144, 168, 0.35);
}

.fr-graph__detail-ava--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 144, 168, 0.2);
  color: var(--blush);
  font-weight: 600;
}

.fr-graph__detail-meta {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.fr-graph__detail-meta li {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.fr-graph__detail-meta span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.fr-graph__hint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--champagne);
  line-height: 1.45;
}

.fr-graph__detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fr-graph__mutual-wrap {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.fr-graph__mutual-head {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fr-graph__mutual-list {
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.fr-graph__mutual-list em {
  color: var(--champagne);
  font-style: normal;
}

.fr-graph__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fr-graph__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.fr-graph__dot--c {
  background: #e8a4a0;
}

.fr-graph__dot--l1 {
  background: #d4a86a;
}

.fr-graph__dot--l2 {
  background: #3a3548;
  border: 1px solid #6a6578;
}

.fr-graph__dot--bridge {
  background: #9b7bb8;
}

.fr-stats__card--link[data-fr-tab-jump] {
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
}

.fg-node {
  cursor: pointer;
}

.fg-node.is-selected .fg-node__ring {
  stroke-opacity: 0.85;
  stroke-width: 2;
}

.fg-node__label {
  pointer-events: none;
  font-family: var(--font-ui, serif);
  paint-order: stroke fill;
  stroke: rgba(12, 10, 16, 0.8);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.fr-graph__pan-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  color: rgba(248, 244, 238, 0.75);
  background: rgba(12, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.fr-rel-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fr-rel-mode {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.fr-rel-mode.is-active {
  border-color: rgba(232, 164, 160, 0.55);
  background: rgba(232, 164, 160, 0.12);
  color: var(--blush);
  font-weight: 600;
}

.fr-rel-view {
  margin-top: 4px;
}

.fr-rel-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.fr-rel-summary strong {
  color: var(--blush);
}

.fr-rel-summary__warn {
  color: #e8a4a0;
}

.fr-rel-section {
  margin-bottom: 14px;
}

.fr-rel-section__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.fr-rel-section__title span {
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.fr-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.fr-rel-card {
  display: flex;
  align-items: stretch;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.fr-rel-card__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fr-rel-card__body {
  min-width: 0;
}

.fr-rel-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.fr-rel-card__meta {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.fr-rel-card__bridge {
  margin: 4px 0 0;
  font-size: 0.66rem;
  color: #9b7bb8;
}

.fr-rel-card__reframe {
  flex-shrink: 0;
  padding: 0 8px;
  border: none;
  border-left: 1px solid var(--glass-border);
  background: rgba(232, 164, 160, 0.08);
  color: var(--blush);
  font-size: 0.68rem;
  cursor: pointer;
}

.fr-rel-ava {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.fr-rel-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fr-rel-ava--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blush);
}

.fr-rel-badge {
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 6px;
}

.fr-rel-badge--ok {
  background: rgba(120, 180, 140, 0.2);
  color: #8fd4a8;
}

.fr-rel-badge--wait {
  background: rgba(232, 164, 160, 0.15);
  color: var(--blush);
}

.fr-rel-group {
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.fr-rel-group summary {
  padding: 8px 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
}

.fr-rel-group summary em {
  margin-left: 6px;
  font-style: normal;
  color: var(--blush);
}

.fr-rel-group .fr-rel-grid {
  padding: 0 8px 8px;
}

.fr-rel-bridge-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.fr-rel-bridge-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fr-rel-bridge-list li:last-child {
  border-bottom: none;
}

.fr-rel-via-hint {
  margin: -4px 0 6px;
  padding-left: 10px;
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* —— 江湖档案 · 展卷 —— */
.profile-edit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-edit-bar__title {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-save-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

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

/* 江湖档案 · 联创 + 情缘 双列入口 */
.dossier-hub-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dossier-hub-row--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .dossier-hub-row--triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dossier-hub-row--triple .dossier-hub-row__cell:last-child {
    grid-column: 1 / -1;
  }
}

.dossier-hub-card--star .dossier-hub-card__main--link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 88px;
  padding: 9px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(155, 123, 255, 0.28);
  background: linear-gradient(145deg, rgba(40, 20, 60, 0.55), rgba(0, 0, 0, 0.28));
  color: inherit;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dossier-hub-card--star .dossier-hub-card__main--link:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 123, 255, 0.5);
  box-shadow: 0 4px 20px rgba(155, 123, 255, 0.15);
}

.dossier-hub-card__icon--star {
  background: rgba(155, 123, 255, 0.2);
  color: #c8b4ff;
}

.dossier-hub-card__metric--star {
  color: #c8b4ff;
}

.dossier-hub-card__metric--star small {
  color: rgba(200, 180, 255, 0.65);
}

.dossier-hub-card--star .dossier-hub-card__name {
  color: #e8dcff;
}

.dossier-hub-card--star .dossier-hub-card__go {
  color: #b89cff;
}

.dossier-hub-row--solo {
  grid-template-columns: minmax(0, 1fr);
}

.dossier-hub-row__cell {
  min-width: 0;
}

.dossier-hub-card {
  position: relative;
  height: 100%;
  min-height: 88px;
}

.dossier-hub-card__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  height: 100%;
  min-height: 88px;
  padding: 9px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dossier-hub-card__main:hover {
  transform: translateY(-1px);
}

.dossier-hub-card__main:active {
  transform: translateY(0);
}

.dossier-hub-card--cocreate .dossier-hub-card__main {
  border-color: rgba(201, 162, 39, 0.32);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.14) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.dossier-hub-card--cocreate .dossier-hub-card__main:hover {
  border-color: rgba(201, 162, 39, 0.52);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.12);
}

.dossier-hub-card--cocreate.is-active .dossier-hub-card__main {
  border-color: rgba(201, 162, 39, 0.62);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.18);
}

.dossier-hub-card--affection .dossier-hub-card__main {
  border-color: rgba(232, 144, 168, 0.38);
  background: linear-gradient(145deg, rgba(232, 144, 168, 0.16) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.dossier-hub-card--affection .dossier-hub-card__main:hover {
  border-color: rgba(232, 144, 168, 0.58);
  box-shadow: 0 8px 20px rgba(232, 144, 168, 0.14);
}

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

.dossier-hub-card__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.28);
}

.dossier-hub-card--cocreate .dossier-hub-card__icon {
  background: rgba(201, 162, 39, 0.18);
}

.dossier-hub-card__icon--heart {
  color: #ff9ec0;
  text-shadow: 0 0 10px rgba(255, 120, 160, 0.45);
  background: rgba(232, 144, 168, 0.18);
}

.dossier-hub-card__name {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-hub-card--cocreate .dossier-hub-card__name {
  color: #f0d890;
}

.dossier-hub-card--affection .dossier-hub-card__name {
  color: rgba(232, 144, 168, 0.95);
}

.dossier-hub-card__metric {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.dossier-hub-card__metric small {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.82;
}

.dossier-hub-card__metric--aff {
  color: #ffe8f0;
}

.dossier-hub-card__metric--aff small {
  color: rgba(232, 144, 168, 0.95);
  opacity: 1;
}

.dossier-hub-card--cocreate .dossier-hub-card__metric strong {
  color: #f0d890;
}

.dossier-hub-card__metric-empty {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240, 216, 144, 0.85);
}

.dossier-hub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 16px;
}

.dossier-hub-card__foot-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.dossier-hub-card__hint {
  font-size: 0.56rem;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-hub-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.54rem;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(240, 220, 228, 0.88);
  white-space: nowrap;
}

.dossier-hub-card__chip--warn {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.14);
  color: #ffc107;
}

.dossier-hub-card__go {
  flex-shrink: 0;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dossier-hub-card--cocreate.is-active .dossier-hub-card__go {
  color: #f0d890;
}

.dossier-hub-card--affection .dossier-hub-card__go {
  color: rgba(232, 144, 168, 0.9);
}

.dossier-hub-card__action {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.2);
  color: #f0d890;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dossier-hub-card__action:hover {
  background: rgba(201, 162, 39, 0.32);
  border-color: rgba(201, 162, 39, 0.62);
}

.dossier-hub-card--cocreate .dossier-hub-card__main {
  padding-right: 28px;
}

html[data-tone='light'] .dossier-hub-card__main {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-tone='light'] .dossier-hub-card--cocreate .dossier-hub-card__main {
  background: linear-gradient(145deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(180, 140, 40, 0.28);
}

html[data-tone='light'] .dossier-hub-card--affection .dossier-hub-card__main {
  background: linear-gradient(145deg, rgba(255, 232, 240, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border-color: rgba(200, 100, 130, 0.28);
}

html[data-tone='light'] .dossier-hub-card__metric {
  color: #3a2030;
}

html[data-tone='light'] .dossier-hub-card__metric--aff {
  color: #6a2840;
}

@media (max-width: 360px) {
  .dossier-hub-card__main {
    min-height: 82px;
    padding: 8px 9px 7px;
  }

  .dossier-hub-card__metric {
    font-size: 1rem;
  }

  .dossier-hub-card__name {
    font-size: 0.6rem;
  }
}

/* 联创空间 · 旧通栏入口（保留类名供 Tab 内引用） */
.dossier-cocreate-entry {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.dossier-cocreate-entry__open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(0, 0, 0, 0.22));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.dossier-cocreate-entry__open:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.16), rgba(0, 0, 0, 0.28));
}

.dossier-cocreate-entry.is-active .dossier-cocreate-entry__open {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.dossier-cocreate-entry__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(0, 0, 0, 0.25);
}

.dossier-cocreate-entry__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dossier-cocreate-entry__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0d890;
}

.dossier-cocreate-entry__sub {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.dossier-cocreate-entry__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dossier-cocreate-entry__stats strong {
  color: #f0d890;
  font-weight: 600;
}

.dossier-cocreate-entry__badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
}

.dossier-cocreate-entry__previews {
  display: none;
  gap: 4px;
  flex-shrink: 0;
}

@media (min-width: 520px) {
  .dossier-cocreate-entry__previews {
    display: flex;
  }
}

.dossier-cocreate-entry__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  flex-shrink: 0;
}

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

.dossier-cocreate-entry__thumb .dossier-cocreate-card__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
}

.dossier-cocreate-entry__thumb .dossier-cocreate-card__play {
  width: 18px;
  height: 18px;
  right: 3px;
  bottom: 3px;
  font-size: 8px;
}

.dossier-cocreate-entry__go {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.dossier-cocreate-entry.is-active .dossier-cocreate-entry__go {
  border-color: rgba(201, 162, 39, 0.45);
  color: #f0d890;
  background: rgba(201, 162, 39, 0.12);
}

.dossier-cocreate-entry__submit {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.14);
  color: #f0d890;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.dossier-cocreate-entry__submit:hover {
  background: rgba(201, 162, 39, 0.24);
}

.dossier-hero__action--cocreate {
  border-color: rgba(201, 162, 39, 0.35);
  color: #f0d890;
}

.dossier-hero__action--cocreate.is-active {
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(201, 162, 39, 0.14);
  color: #fff3c4;
}

.dossier-stat--cocreate strong {
  color: #f0d890;
}

.dossier-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-top: 2px;
  flex: 1;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.dossier-sticky-head {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 6px 0 8px;
  margin: 0 0 4px;
  background: linear-gradient(180deg, rgba(12, 6, 10, 0.98) 85%, transparent);
  backdrop-filter: blur(8px);
}

.dossier-sticky-head__refresh {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-sticky-cocreate {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  color: #f0d890;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dossier-sticky-cocreate__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ffc107;
  color: #1a1208;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.dossier-sticky-head__refresh.is-spinning {
  animation: dossier-refresh-spin 0.7s linear infinite;
  color: var(--gold);
}

@keyframes dossier-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.dossier-cp-avatar {
  cursor: pointer;
}

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

.dossier-tabs__btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  padding: 8px 6px;
  position: relative;
  scroll-snap-align: start;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 22%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.62rem;
  cursor: pointer;
}

.dossier-tabs__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 0.55rem;
  line-height: 14px;
  text-align: center;
  background: var(--rose-deep);
  color: #fff;
}

.dossier-tabs__count--cp {
  background: linear-gradient(135deg, #c94a72, var(--gold));
}

.dossier-tabs__count--wait {
  background: rgba(255, 193, 7, 0.25);
  color: #b8860b;
}

.dossier-tabs__dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blush);
}

.dossier-tabs__dot--cp {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 175, 95, 0.6);
}

.dossier-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(12, 6, 10, 0.96);
  backdrop-filter: blur(8px);
}

.dossier-toolbar__hint {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dossier-toolbar__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dossier-toolbar__quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dossier-toolbar__chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 144, 168, 0.25);
  background: rgba(232, 144, 168, 0.08);
  color: var(--blush);
  font-size: 0.65rem;
  cursor: pointer;
}

.dossier-hero__portrait--click {
  padding: 0;
  border: none;
  cursor: zoom-in;
  background: transparent;
}

.dossier-latest {
  margin: 14px 0;
}

.dossier-latest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dossier-latest__head h3 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--champagne);
}

.dossier-link-btn {
  border: none;
  background: none;
  color: var(--gold);
  font-size: 0.72rem;
  cursor: pointer;
}

.dossier-latest__item .dtl-card {
  transform: none;
}

.dossier-gallery-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.dossier-gallery-filters--actions {
  margin-bottom: 10px;
}

.dossier-gallery-head__meta {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.dossier-gallery-filters__sep {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 200, 0.35), transparent);
  flex-shrink: 0;
}


.dossier-gallery-filters__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.dossier-gallery-filters__btn .dossier-delete-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.dossier-gallery-filters__btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 95, 0.1);
}

.dossier-story-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-story-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(232, 144, 168, 0.06);
  border: 1px solid rgba(232, 144, 168, 0.15);
}

.dossier-story-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.dossier-story-card__excerpt {
  margin: 6px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dossier-feed-video-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 8px 0;
}

.dossier-feed-video-btn video {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.dossier-feed-video-btn span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.82rem;
}

.dtl-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dtl-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.my-hub-v3__mosaic-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.my-hub-v3__pill--verified {
  border: 1px solid rgba(126, 224, 184, 0.35);
  color: #7ee0b8;
}

.my-hub-v3__pill--wait {
  color: var(--blush);
}

.my-hub-v3__pill--win {
  color: var(--gold);
}

.my-hub-v3__pill--guest {
  color: var(--text-muted);
}

.my-hub-v3__checkin-btn,
.my-hub-v3__checkin {
  font-size: 0.68rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  background: rgba(212, 175, 95, 0.08);
  color: var(--gold);
  cursor: pointer;
}

.my-hub-v3__checkin.is-done {
  cursor: default;
  border-color: rgba(126, 224, 184, 0.3);
  color: #7ee0b8;
}

.my-hub-v3__grid-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: #fff;
  font-size: 0.6rem;
  line-height: 16px;
  text-align: center;
}

.my-hub-v3__more {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 12%, transparent);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.my-hub-v3__more summary {
  padding: 12px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
}

.my-hub-v3__more summary::-webkit-details-marker {
  display: none;
}

.my-hub-v3__more-body .my-hub-v3__row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 420px) {
  .my-hub-v3__hero {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .my-hub-v3__hero-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

.dossier-tabs__btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.dossier-tabs__icon {
  font-size: 1rem;
  line-height: 1;
}

.dossier-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(80, 20, 40, 0.35), rgba(20, 10, 20, 0.5));
  border: 1px solid color-mix(in srgb, var(--rose-deep) 25%, transparent);
  overflow: hidden;
}

.dossier-hero--cover {
  padding-top: 52px;
}

.dossier-hero__cover {
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.dossier-hero__cover-tile {
  overflow: hidden;
  background: #1a0a10;
}

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

.dossier-hero__main {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-areas:
    'portrait body'
    'stats stats';
  gap: 10px 14px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.dossier-hero__portrait-col {
  grid-area: portrait;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
}

.dossier-hero__portrait-col .dossier-hero__portrait {
  width: 88px;
  height: 88px;
}

.dossier-hero__orbit {
  width: 100%;
}

.dossier-hero__badges--cell {
  grid-area: badges;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-hero__portrait--cell {
  grid-area: portrait;
}

.dossier-hero__body--cell {
  grid-area: body;
  min-width: 0;
}

.dossier-hero__badges--cell {
  grid-area: badges;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-hero__stats--cell {
  grid-area: stats;
  display: flex;
  gap: 8px;
  width: 100%;
}

.dossier-hero__badges .dossier-id-badges--icons,
.dossier-hero__badges .dossier-id-badges--readable {
  margin: 0;
}

.dossier-hero__badges .dossier-id-badges__row--icons,
.dossier-hero__badges .dossier-id-badges__row--chips {
  flex-wrap: wrap;
  overflow-x: visible;
  justify-content: flex-start;
  gap: 8px;
}

.dossier-hero__portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #1a0a10;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dossier-hero__placeholder {
  font-size: 2rem;
}

.dossier-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.dossier-hero__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.dossier-hero__name {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  flex: 1 1 auto;
  min-width: 0;
}

.dossier-hero__edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 95, 0.42);
  background: linear-gradient(145deg, rgba(212, 175, 95, 0.18), rgba(60, 30, 18, 0.32));
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dossier-hero__edit:hover {
  border-color: rgba(212, 175, 95, 0.62);
  background: linear-gradient(145deg, rgba(212, 175, 95, 0.28), rgba(60, 30, 18, 0.42));
}

.dossier-hero__edit:active {
  transform: scale(0.97);
}

.dossier-hero__edit-icon {
  font-size: 0.78rem;
  line-height: 1;
}

.dossier-hero__edit-label {
  line-height: 1;
}

@media (max-width: 360px) {
  .dossier-hero__edit-label {
    display: none;
  }

  .dossier-hero__edit {
    width: 28px;
    padding: 0;
    justify-content: center;
  }
}

.dossier-hero__motto {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--blush);
  line-height: 1.4;
}

.dossier-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dossier-hero__meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.dossier-hero__stats {
  display: flex;
  gap: 8px;
}

.dossier-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
}

.dossier-stat--static {
  cursor: default;
}

.dossier-stat strong {
  font-size: 0.95rem;
  color: var(--gold);
}

.dossier-stat span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.dossier-stat--cp.is-active strong {
  color: var(--blush);
}

.dossier-stat--cp strong {
  font-size: 0.85rem;
}

.dossier-hero__meta-chip {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(232, 144, 168, 0.12);
  color: var(--blush);
  font-size: 0.62rem;
  cursor: pointer;
}

.dossier-hero__meta-chip--cp {
  border-color: rgba(212, 175, 95, 0.4);
  color: var(--gold);
}

.dossier-hero__meta-chip--wait {
  animation: dossier-cp-pulse 2s ease-in-out infinite;
}

.dossier-hero__meta-chip--empty {
  border-color: rgba(212, 175, 95, 0.28);
  color: var(--gold);
  background: rgba(212, 175, 95, 0.08);
}

.dossier-hero__meta-chip--warn {
  border-color: rgba(255, 180, 100, 0.35);
  color: #ffc896;
}

.dossier-quick-card--cp {
  border-color: rgba(232, 144, 168, 0.35);
  background: linear-gradient(160deg, rgba(60, 18, 36, 0.35), rgba(10, 6, 12, 0.5));
}

.dossier-overview-cp--empty,
.dossier-overview-cp--load_error,
.dossier-overview-cp--sent,
.dossier-overview-cp--pending_in {
  border-color: rgba(232, 144, 168, 0.35);
}

.dossier-overview-cp--draft {
  border-style: dashed;
}

.dossier-hero__action--cp {
  border-color: rgba(212, 175, 95, 0.35);
  color: var(--gold);
}

.dossier-quick-card--highlight {
  border-color: rgba(212, 175, 95, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.15);
}

.dossier-pane--cp {
  min-height: 200px;
}

.dossier-cp-bond > *:not(.dossier-cp-bond__glow):not(.dossier-cp-bond__ribbon) {
  position: relative;
  z-index: 1;
}

.dossier-cp-bond--warn {
  border-color: rgba(255, 180, 100, 0.35);
  background: rgba(80, 40, 10, 0.35);
}

.dossier-cp-bond--pending,
.dossier-cp-bond--sent {
  border-color: rgba(232, 144, 168, 0.35);
}

.dossier-cp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.dossier-cp-sent {
  margin: 12px 0;
}

.dossier-cp-sent h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--champagne);
}

.dossier-cp-sent__item {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-cp-sent__item p {
  margin: 4px 0;
  font-size: 0.75rem;
  color: var(--blush);
}

.dossier-tag--wait {
  background: rgba(232, 144, 168, 0.15);
  color: var(--blush);
}

.dossier-complete {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-complete__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 4px;
}

.dossier-complete__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-deep), var(--gold));
  transition: width 0.35s ease;
}

.dossier-complete__hint {
  margin: 0;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dossier-complete--done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--gold);
}

.dossier-complete--done strong {
  font-size: 0.82rem;
}

.dossier-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.dossier-hero__action {
  flex: 1;
  min-width: calc(33% - 8px);
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(232, 144, 168, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: var(--blush);
  font-size: 0.68rem;
  cursor: pointer;
}

.dossier-empty-card {
  margin: 12px 0;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  background: rgba(232, 144, 168, 0.06);
  border: 1px dashed rgba(232, 144, 168, 0.2);
}

.dossier-empty-card p {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dossier-empty-card__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.dossier-timeline-filters,
.dossier-month-jump {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dossier-timeline-filters::-webkit-scrollbar,
.dossier-month-jump::-webkit-scrollbar {
  display: none;
}

.dossier-timeline-filters__btn,
.dossier-month-jump__btn {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-size: 0.68rem;
  cursor: pointer;
}

.dossier-timeline-filters__btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 95, 0.1);
}

.dossier-month-jump__btn {
  border-color: rgba(232, 144, 168, 0.2);
  color: var(--blush);
}

.dossier-skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: dossier-shimmer 1.2s infinite;
}

.dossier-skeleton--pane {
  height: 180px;
}

.dossier-skeleton--timeline {
  height: 240px;
}

.dossier-skeleton--gallery {
  height: 200px;
}

@keyframes dossier-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.dossier-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dtl-zigzag__item[hidden],
[data-timeline-month][hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .dossier-hero__main {
    grid-template-columns: 72px 1fr;
    gap: 8px 10px;
  }

  .dossier-hero__portrait-col {
    width: 72px;
  }

  .dossier-hero__portrait-col .dossier-hero__portrait {
    width: 72px;
    height: 72px;
  }

  .dossier-hero__portrait {
    width: 72px;
    height: 72px;
  }

  .dossier-id-badge--labeled {
    min-width: 38px;
    max-width: 44px;
  }

  .dossier-aff-pill {
    min-width: 36px;
  }

  .dossier-hero__action {
    min-width: calc(50% - 4px);
    font-size: 0.64rem;
  }
}

.dossier-pane {
  padding: 4px 0 12px;
}

.dossier-pane__hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dossier-empty,
.dossier-loading {
  margin: 12px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.dossier-pane--gallery-empty {
  padding: 8px 0 16px;
}

.dossier-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.dossier-oath {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  color: var(--blush);
  line-height: 1.5;
}

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

.dossier-quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 20%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dossier-quick-card__icon {
  font-size: 1.2rem;
}

.dossier-quick-card strong {
  font-size: 0.82rem;
  color: #fff;
}

.dossier-quick-card span:last-child {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dossier-preview-strip h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dossier-preview-strip__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.dossier-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

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

.dossier-vtimeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dossier-vtimeline__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.dossier-vtimeline__axis {
  display: flex;
  justify-content: center;
  position: relative;
}

.dossier-vtimeline__axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -16px;
  width: 2px;
  background: color-mix(in srgb, var(--rose-deep) 30%, transparent);
}

.dossier-vtimeline__item:last-child .dossier-vtimeline__axis::before {
  display: none;
}

.dossier-vtimeline__dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}

.dossier-vtimeline__card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid color-mix(in srgb, var(--rose-deep) 18%, transparent);
}

.dossier-vtimeline__visual {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}

.dossier-vtimeline__visual img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.dossier-vtimeline__visual--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.dossier-thumb--video {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
  padding: 0;
  border: none;
  cursor: pointer;
}

.dossier-thumb--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dossier-vtimeline__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.dossier-vtimeline__kind {
  margin: 0 0 4px;
  font-size: 0.62rem;
  color: var(--gold);
}

.dossier-vtimeline__card h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.dossier-vtimeline__body {
  margin: 0 0 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dossier-vtimeline__card time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dossier-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dossier-gallery-item-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.dossier-gallery-item-wrap--deletable {
  outline: none;
}

.is-gallery-select-mode .dossier-gallery-item-wrap--deletable {
  outline: 2px solid rgba(198, 40, 40, 0.35);
  outline-offset: 0;
}

.dossier-gallery-item-wrap__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.dossier-gallery-item-wrap__media > .dossier-gallery-item,
.dossier-gallery-item-wrap__media > .dossier-gallery-item--video,
.dossier-gallery-item-wrap__media > .dossier-gallery-item--pending {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 10px;
}

.dossier-delete-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.dossier-delete-icon--title {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
}

.dossier-delete-icon--mode,
.dossier-delete-icon--confirm {
  width: 1.15em;
  height: 1.15em;
}

.dossier-delete-icon--lightbox {
  width: 1.15em;
  height: 1.15em;
}

.dossier-gallery-select {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 12;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
}

.dossier-gallery-select__input {
  position: absolute;
  opacity: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  inset: 0 auto auto 0;
  cursor: pointer;
  pointer-events: auto;
}

.dossier-gallery-select__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.52);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  pointer-events: none;
}

.dossier-gallery-select__box::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.12s ease;
}

.dossier-gallery-select__input:checked + .dossier-gallery-select__box {
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%);
  border-color: #fff;
}

.dossier-gallery-select__input:checked + .dossier-gallery-select__box::after {
  transform: rotate(45deg) scale(1);
}

.dossier-gallery-item-wrap.is-selected {
  outline: 2px solid rgba(255, 138, 128, 0.95);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.35);
}

.is-gallery-select-mode .dossier-gallery-select {
  display: flex;
}

.is-gallery-select-mode .dossier-gallery-item-wrap:not([data-gallery-deletable='1']) {
  opacity: 0.38;
  pointer-events: none;
}

.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] .dossier-gallery-item,
.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] .dossier-gallery-item--video,
.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] .dossier-gallery-item--pending {
  pointer-events: none;
  cursor: pointer;
}

.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(198, 40, 40, 0.15);
  position: relative;
}

.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 11;
  cursor: pointer;
  pointer-events: auto;
}

.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] img,
.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1'] video {
  pointer-events: none;
}

.is-gallery-select-mode .dossier-gallery-item-wrap[data-gallery-deletable='1']:active {
  transform: scale(0.985);
}

.dossier-gallery-select-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(72, 14, 22, 0.55);
  border: 1px solid rgba(255, 160, 160, 0.22);
  color: #ffe8e8;
  font-size: 0.72rem;
  line-height: 1.4;
}

.dossier-gallery-select-banner strong {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(198, 40, 40, 0.55);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dossier-pane--gallery.is-gallery-select-mode,
.dossier-pane--portraits.is-gallery-select-mode {
  outline: 1px solid rgba(255, 160, 160, 0.28);
  outline-offset: 2px;
  border-radius: 12px;
  padding: 8px;
  background: rgba(72, 14, 22, 0.12);
}

.dossier-gallery-filters__btn--delete {
  border-color: rgba(255, 138, 128, 0.38);
  background: rgba(120, 24, 36, 0.35);
  color: #ffcdd2;
}

.dossier-gallery-filters__btn--delete:hover,
.dossier-gallery-filters__btn--delete.is-active {
  border-color: rgba(255, 180, 180, 0.55);
  background: rgba(183, 28, 28, 0.45);
  color: #fff;
}

.dossier-gallery-filters__btn--upload {
  border-color: rgba(212, 175, 95, 0.35);
  background: rgba(212, 175, 95, 0.12);
  color: var(--gold, #d4af5f);
}

.dossier-gallery-filters__btn--upload:hover {
  border-color: rgba(212, 175, 95, 0.55);
  background: rgba(212, 175, 95, 0.18);
  color: #f0dfa8;
}

.dossier-gallery-filters__btn--confirm {
  border-color: rgba(255, 138, 128, 0.45);
  background: linear-gradient(135deg, rgba(239, 83, 80, 0.95) 0%, rgba(183, 28, 28, 0.95) 100%);
  color: #fff;
}

.dossier-gallery-filters__btn--confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dossier-gallery-filters__btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 230, 230, 0.88);
}

.dossier-gallery-filters__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dossier-gallery-filters__chip--mode {
  border: 1px solid rgba(255, 160, 160, 0.28);
  background: rgba(120, 24, 36, 0.4);
  color: #ffcdd2;
}

.is-dossier-gallery-select-mode [data-gallery-select-toggle] {
  display: none;
}

.dossier-gallery-select-tools {
  display: none;
  align-items: center;
  gap: 6px;
}

.is-dossier-gallery-select-mode .dossier-gallery-select-tools:not([hidden]) {
  display: inline-flex !important;
}

.dossier-gallery-select-tools__count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--champagne, #e8d5a3);
  white-space: nowrap;
}

.dossier-gallery-select-tools[hidden] {
  display: none !important;
}

.dossier-gallery-item-wrap {
  position: relative;
}

.is-gallery-tip-select {
  display: none;
}

.is-gallery-select-mode .is-gallery-tip-select {
  display: block;
}

.dossier-gallery-item__deletable-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.dossier-gallery-filters__btn[data-gallery-filter='mine'].is-active {
  background: rgba(198, 40, 40, 0.35);
  border-color: rgba(255, 120, 120, 0.55);
  color: #ffd6d6;
}

.dossier-gallery-manage {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(120, 24, 36, 0.22);
  border: 2px solid rgba(255, 120, 120, 0.45);
}

.dossier-gallery-manage__head {
  margin-bottom: 10px;
}

.dossier-gallery-manage__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #ffd6d6;
}

.dossier-gallery-manage__hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 220, 220, 0.88);
}

.dossier-gallery-manage__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-gallery-manage__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.dossier-gallery-manage__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
}

.dossier-gallery-manage__thumb img,
.dossier-gallery-manage__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dossier-gallery-manage__pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.62rem;
  color: #ffd6d6;
}

.dossier-gallery-manage__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-gallery-manage__meta strong {
  font-size: 0.82rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-gallery-manage__meta span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

.dossier-gallery-manage__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.95) 0%, rgba(183, 28, 28, 0.98) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.dossier-gallery-manage__delete:hover {
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%);
}

.dossier-gallery-filter-empty {
  margin: 0 0 12px;
  padding: 14px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ffd6d6;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 120, 120, 0.35);
}

.dossier-gallery-filter-empty p {
  margin: 0 0 8px;
}

.dossier-gallery-filter-empty .btn {
  margin-top: 4px;
}

.profile-go-gallery-delete {
  margin-top: 8px;
  border-color: rgba(255, 120, 120, 0.45) !important;
  color: #ffd6d6 !important;
}

.dossier-gallery-tip {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--champagne, #e8d5a3);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-gallery-tip--delete {
  background: rgba(120, 24, 36, 0.28);
  border-color: rgba(255, 120, 120, 0.35);
  color: #ffd6d6;
}

.dossier-gallery-tip strong {
  color: #fff;
  font-weight: 600;
}

.dossier-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dossier-pane__hint--inline {
  margin: 0;
  flex: 1 1 12rem;
}

.dossier-portrait-grid .dossier-gallery-item-wrap__media {
  aspect-ratio: 3 / 4;
}

.dossier-gallery-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.dossier-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-gallery-item__cap {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold);
}

.dossier-gallery-item--video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
}

.dossier-gallery-item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-gallery-item__play,
.dossier-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.dossier-gallery-item--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.dossier-gallery-item__pending {
  font-size: 0.75rem;
  color: var(--gold, #c9a962);
  opacity: 0.85;
}

.dtl-card__visual--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #1a1a1a;
  color: var(--gold, #c9a962);
  font-size: 0.85rem;
}

.dossier-feed-block {
  margin-bottom: 18px;
}

.dossier-feed-block h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--gold);
}

.dossier-feed-list,
.dossier-story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dossier-feed-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-feed-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dossier-tag {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 164, 160, 0.15);
  color: var(--blush);
}

.dossier-feed-item h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.dossier-feed-item p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dossier-feed-item__imgs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dossier-feed-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

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

.dossier-link {
  font-size: 0.72rem;
  color: var(--gold);
}

.dossier-cp-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(80, 20, 50, 0.25);
  border: 1px solid color-mix(in srgb, var(--rose-deep) 30%, transparent);
  margin-bottom: 12px;
  text-align: center;
}

.dossier-cp-card__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  margin: 10px 0;
}

.dossier-cp-card__pair em {
  color: var(--blush);
  font-style: normal;
}

.dossier-guild-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.dossier-guild-head p {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dossier-guild-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dossier-guild-member {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 18%, transparent);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dossier-guild-member.is-self {
  border-color: var(--gold);
}

.dossier-guild-member__chevron {
  grid-row: 1 / span 2;
  grid-column: 4;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.dossier-guild-member__avatar {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--hue, 320), 40%, 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold);
}

.dossier-guild-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-guild-member__name {
  font-size: 0.85rem;
  font-weight: 600;
}

.dossier-guild-member__sub {
  grid-column: 2;
  font-size: 0.68rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-guild-member__count {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 0.62rem;
  color: var(--gold);
}

.dossier-forum-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dossier-forum-stats strong {
  color: var(--gold);
  margin-left: 4px;
}

.dossier-forum-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.dossier-forum-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-forum-item__link {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.dossier-forum-item__del {
  flex-shrink: 0;
  align-self: center;
  border: 1px solid rgba(240, 160, 168, 0.35);
  background: transparent;
  color: #f0a0a8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.68rem;
  cursor: pointer;
}

.dossier-forum-item__del:hover,
.dossier-forum-item__del:active {
  color: #ffb8be;
  border-color: rgba(255, 184, 190, 0.5);
}

.dossier-forum-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
}

.dossier-forum-list strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.dossier-forum-list span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dossier-forum-list time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dossier-forum-list__media {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

.dossier-forum-list__media img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.dossier-feed-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dossier-feed-block__head h3 {
  margin: 0;
}

.dossier-forum-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dossier-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12350;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 48px 16px 24px;
}

body.dossier-lightbox-open {
  overflow: hidden;
}

.dossier-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(100vh - 120px);
}

.dossier-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.dossier-lightbox video {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  background: #000;
}

.dossier-lightbox__caption {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--champagne);
  text-align: center;
  max-width: 90vw;
}

.dossier-lightbox__index {
  margin: 4px 0 0;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.dossier-lightbox__delete {
  margin-top: 14px;
  padding: 14px 28px;
  min-width: min(92vw, 280px);
  border: 2px solid rgba(255, 120, 120, 0.75);
  border-radius: 12px;
  background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dossier-lightbox__delete:hover {
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
}

.dossier-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dossier-lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.dossier-lightbox__nav--prev {
  left: 8px;
}

.dossier-lightbox__nav--next {
  right: 8px;
}

.dossier-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.dossier-lightbox.is-open {
  display: flex;
}

@media (min-width: 520px) {
  .dossier-gallery-grid,
  .dossier-gallery-masonry {
    column-count: 4;
  }
}

/* ── 我的 · Hub v3 ── */
.my-hub-v3 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}

.my-hub-v3__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(60, 16, 32, 0.45), rgba(12, 8, 16, 0.6));
  border: 1px solid color-mix(in srgb, var(--rose-deep) 22%, transparent);
}

.my-hub-v3__eyebrow {
  margin: 0 0 4px;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.my-hub-v3__name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #fff;
}

.my-hub-v3__hint {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.my-hub-v3__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-hub-v3__pill {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--champagne);
}

.my-hub-v3__pill--tier {
  border: 1px solid rgba(212, 175, 95, 0.35);
}

.my-hub-v3__hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.my-hub-v3__aff-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(232, 144, 168, 0.08);
  color: inherit;
  cursor: pointer;
}

.my-hub-v3__aff-chip strong {
  font-size: 1.1rem;
  color: var(--gold);
}

.my-hub-v3__aff-chip span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.my-hub-v3__aff-cash {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  font-style: normal;
  color: #c9a227;
  opacity: 0.95;
}

.my-hub-v3__featured {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 144, 168, 0.12), rgba(20, 10, 24, 0.55));
  border: 1px solid rgba(232, 144, 168, 0.28);
}

.my-hub-v3__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
}

.my-hub-v3__mosaic-cell {
  background-size: cover;
  background-position: center;
  background-color: #1a0a10;
}

.my-hub-v3__mosaic-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.25);
}

.my-hub-v3__featured-eyebrow {
  margin: 0 0 4px;
  font-size: 0.62rem;
  color: var(--gold);
}

.my-hub-v3__featured-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--blush);
  line-height: 1.35;
  font-weight: 500;
}

.my-hub-v3__featured-meta {
  margin: 0 0 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.my-hub-v3__featured-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.my-hub-v3__cp-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(70, 20, 40, 0.55), rgba(10, 6, 12, 0.85));
  border: 1px solid rgba(232, 144, 168, 0.35);
  box-shadow: 0 8px 28px rgba(40, 8, 24, 0.28);
}

.my-hub-v3__cp-card--prominent {
  border-color: rgba(212, 175, 95, 0.35);
}

.my-hub-v3__cp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--champagne);
}

.my-hub-v3__cp-link {
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold);
  font-size: 0.68rem;
  cursor: pointer;
}

.my-hub-v3__cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.my-hub-v3__cp-alert {
  margin: 0 0 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--blush);
  background: rgba(232, 144, 168, 0.12);
  border: 1px solid rgba(232, 144, 168, 0.2);
  text-align: center;
}

.my-hub-v3__cp-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 6px;
}

.my-hub-v3__cp-pair em {
  color: var(--rose-deep);
  font-style: normal;
}

.my-hub-v3__cp-vow,
.my-hub-v3__cp-draft {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

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

.my-hub-v3__grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 18%, transparent);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.my-hub-v3__grid-item span:first-child {
  font-size: 1.25rem;
}

.my-hub-v3__grid-item strong {
  font-size: 0.78rem;
  color: var(--champagne);
}

.my-hub-v3__grid-item em {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-style: normal;
}

.my-hub-v3__section {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rose-deep) 12%, transparent);
  background: rgba(0, 0, 0, 0.18);
}

.my-hub-v3__section-title {
  margin: 0;
  padding: 10px 14px 6px;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.my-hub-v3__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.my-hub-v3__row--link {
  display: flex;
}

.my-hub-v3__row-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.my-hub-v3__row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-hub-v3__row-text strong {
  font-size: 0.82rem;
  color: var(--champagne);
}

.my-hub-v3__row-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.my-hub-v3__badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.15);
  color: var(--gold);
}

.my-hub-v3__badge--wait {
  background: rgba(232, 144, 168, 0.15);
  color: var(--blush);
}

/* ── 江湖档案 · 时光轴 v2 ── */
.dtl-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dtl-month__label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-left: 8px;
  border-left: 3px solid var(--rose-deep);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dtl-month__label span {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

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

.dtl-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(40, 12, 24, 0.5), rgba(8, 4, 12, 0.65));
  border: 1px solid color-mix(in srgb, var(--rose-deep) 20%, transparent);
}

.dtl-card__visual {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  position: relative;
  cursor: pointer;
  background: #111;
}

.dtl-card__visual img,
.dtl-card__visual video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.dtl-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.15);
}

.dtl-card__body {
  padding: 10px 12px 12px;
}

.dtl-card--text {
  padding: 12px 14px;
}

.dtl-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.dtl-tag {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.12);
  color: var(--gold);
}

.dtl-tag--mood {
  background: rgba(232, 144, 168, 0.15);
  color: var(--blush);
}

.dtl-card__head time {
  margin-left: auto;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.dtl-card__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: #fff;
}

.dtl-card__desc,
.dtl-card__quote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dtl-card__quote {
  padding-left: 10px;
  border-left: 2px solid var(--rose-deep);
  font-style: normal;
}

.dossier-gallery-masonry {
  column-count: 2;
  column-gap: 8px;
}

.dossier-gallery-masonry .dossier-gallery-item-wrap {
  break-inside: avoid;
  margin-bottom: 8px;
  width: 100%;
}

.dossier-gallery-masonry .dossier-gallery-item {
  break-inside: avoid;
  margin-bottom: 0;
  width: 100%;
}

.dossier-cp-draft {
  padding: 12px;
  border-radius: 12px;
  background: rgba(232, 144, 168, 0.08);
  border: 1px solid rgba(232, 144, 168, 0.2);
  margin-bottom: 12px;
}

.dossier-cp-draft h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--champagne);
}

.dossier-cp-draft__story {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-cp-panel {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(126, 224, 184, 0.05);
  border: 1px solid rgba(126, 224, 184, 0.18);
}

.profile-cp-panel__hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cp-form__prefill {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--gold);
}

/* ── 时光轴 · 左右交错 ── */
.dtl-zigzag {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.dtl-zigzag__item {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 18px;
}

.dtl-zigzag__axis {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 24px;
  position: relative;
}

.dtl-zigzag__axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose-deep), rgba(212, 175, 95, 0.35));
  opacity: 0.55;
}

.dtl-zigzag__item:last-child .dtl-zigzag__axis::before {
  bottom: 0;
}

.dtl-zigzag__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(12, 6, 10, 0.9);
  z-index: 1;
  flex-shrink: 0;
  margin-top: 8px;
}

.dtl-zigzag__item.is-left .dtl-zigzag__card-wrap {
  grid-column: 1;
  grid-row: 1;
}

.dtl-zigzag__item.is-right .dtl-zigzag__card-wrap {
  grid-column: 3;
  grid-row: 1;
}

.dtl-zigzag--compact .dtl-zigzag__item {
  grid-template-columns: 14px 1fr;
  margin-bottom: 12px;
}

.dtl-zigzag--compact .dtl-zigzag__axis {
  grid-column: 1;
}

.dtl-zigzag--compact .dtl-zigzag__card-wrap {
  grid-column: 2 !important;
}

.dtl-zigzag--compact .dtl-card__visual img,
.dtl-zigzag--compact .dtl-card__visual video {
  max-height: 160px;
}

@media (max-width: 480px) {
  .dtl-zigzag__item {
    grid-template-columns: 14px 1fr;
    gap: 8px;
  }

  .dtl-zigzag__item.is-left .dtl-zigzag__card-wrap,
  .dtl-zigzag__item.is-right .dtl-zigzag__card-wrap {
    grid-column: 2;
  }

  .dtl-zigzag__axis {
    grid-column: 1;
  }
}

/* ── 影像馆 · 按日分组 ── */
.dossier-gallery-days {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-gallery-day__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.dossier-gallery-day__label span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.dossier-gallery-day .dossier-gallery-masonry {
  column-count: 2;
}

@media (min-width: 520px) {
  .dossier-gallery-day .dossier-gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 520px) {
  .dossier-gallery-day .dossier-gallery-masonry {
    column-count: 3;
  }
}

/* ── 肖像取样 Tab ── */
.dossier-portrait-intro {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--my-muted, rgba(255, 255, 255, 0.62));
}
.dossier-portrait-toolbar {
  margin-bottom: 0.75rem;
}
.dossier-portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.65rem;
}
.dossier-portrait-item {
  aspect-ratio: 3 / 4;
}
.dossier-portrait-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.dossier-pane--portraits-empty .dossier-portrait-intro {
  max-width: 36rem;
}

/* ── 印记轻量弹窗 ── */
body.my-overlay-open .stamp-sheet {
  z-index: 1700;
}

/* 同袍名片须盖在「我的」浮层之上，否则好友页点头像看不见弹窗 */
body.my-overlay-open .player-card-sheet {
  z-index: 1750;
}

.stamp-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stamp-sheet.hidden {
  display: none;
}

body.stamp-sheet-open {
  overflow: hidden;
}

.stamp-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.stamp-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow: auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0));
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #2a1420, #120a10);
  border: 1px solid rgba(232, 144, 168, 0.25);
  border-bottom: none;
}

.stamp-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.stamp-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.stamp-sheet__head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.stamp-sheet__eyebrow {
  margin: 0 0 2px;
  font-size: 0.62rem;
  color: var(--gold);
}

.stamp-sheet__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.stamp-sheet__hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stamp-sheet__pick-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.stamp-sheet__pick {
  flex: 1;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
}

.stamp-sheet__pick:disabled {
  opacity: 0.55;
  cursor: wait;
}

.stamp-sheet__type-label {
  min-height: 1.1em;
  margin: 0 0 8px;
  font-size: 0.7rem;
  color: var(--gold);
}

.stamp-sheet__preview-label {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
}

.stamp-sheet__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 14px;
  border: 1px dashed rgba(232, 144, 168, 0.35);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.stamp-sheet__preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.stamp-sheet__preview video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: #111;
}

.stamp-sheet__preview-empty {
  font-size: 0.82rem;
  color: var(--blush);
}

.stamp-sheet__error {
  min-height: 1.2em;
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: #ff8a8a;
}

.stamp-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 帮派同袍 · 档案弹窗 ── */
.guild-member-sheet {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.guild-member-sheet.hidden {
  display: none;
}

body.guild-member-sheet-open {
  overflow: hidden;
}

.guild-member-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.guild-member-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0));
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #241018, #0e080c);
  border: 1px solid rgba(212, 175, 95, 0.22);
  border-bottom: none;
}

.guild-member-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.guild-member-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.guild-member-sheet__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-right: 28px;
}

.guild-member-sheet__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: hsl(var(--hue, 320), 40%, 22%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
}

.guild-member-sheet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-member-sheet__eyebrow {
  margin: 0 0 2px;
  font-size: 0.62rem;
  color: var(--gold);
}

.guild-member-sheet__head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #fff;
}

.guild-member-sheet__motto {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--blush);
  line-height: 1.4;
}

.guild-member-sheet__meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.guild-member-sheet__stamps h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--champagne);
}

.guild-member-sheet__stamp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.guild-member-sheet__thumb {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: #111;
}

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

.guild-member-sheet__thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
  font-size: 0.58rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.guild-member-sheet__empty {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.guild-member-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 缘定 CP · 视觉卡片 ── */
.dossier-cp-bond {
  position: relative;
  padding: 20px 16px 16px;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(232, 144, 168, 0.28);
  background: linear-gradient(160deg, rgba(80, 24, 48, 0.55), rgba(16, 8, 14, 0.85));
}

.dossier-cp-bond__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(232, 144, 168, 0.22), transparent 70%);
  pointer-events: none;
}

.dossier-cp-bond__ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  transform: rotate(35deg);
  padding: 4px 36px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(90deg, var(--rose-deep), #c94a72);
}

.dossier-cp-bond--active {
  border-color: rgba(212, 175, 95, 0.45);
  box-shadow: 0 12px 40px rgba(80, 20, 40, 0.35);
}

.dossier-cp-bond--active[data-cp-theme='jianghu'] {
  background: linear-gradient(160deg, rgba(60, 20, 36, 0.7), rgba(12, 6, 10, 0.9));
}

.dossier-cp-bond--draft {
  border-style: dashed;
}

.dossier-cp-bond--empty {
  padding: 24px 16px;
}

.dossier-cp-bond--invite {
  margin-bottom: 10px;
  text-align: center;
}

.dossier-cp-bond__eyebrow {
  position: relative;
  margin: 0 0 12px;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.dossier-cp-bond__pair {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 14px;
}

.dossier-cp-bond__pair--solo {
  justify-content: center;
}

.dossier-cp-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}

.dossier-cp-avatar__img {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: visible;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-cp-avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 95, 0.5);
  box-shadow: 0 0 16px rgba(232, 144, 168, 0.25);
  pointer-events: none;
}

.dossier-cp-avatar__img img,
.dossier-cp-avatar__initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
}

.dossier-cp-avatar__img img {
  object-fit: cover;
  display: block;
}

.dossier-cp-avatar__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
}

.dossier-cp-avatar em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--champagne);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-cp-bond__heart {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 144, 168, 0.15);
  border: 1px solid rgba(232, 144, 168, 0.35);
}

.dossier-cp-bond__heart span {
  font-size: 1rem;
  color: var(--blush);
  animation: dossier-cp-pulse 2s ease-in-out infinite;
}

.dossier-cp-bond__heart--wait span {
  color: var(--text-muted);
  animation: none;
}

@keyframes dossier-cp-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.dossier-cp-bond__vow {
  position: relative;
  margin: 0 0 10px;
  padding: 0 8px;
  border: none;
  font-size: 0.88rem;
  color: var(--blush);
  line-height: 1.55;
  font-style: normal;
}

.dossier-cp-bond__story {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dossier-cp-bond__hint {
  position: relative;
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dossier-cp-invites h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--champagne);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dossier-cp-invites h3 span {
  font-size: 0.62rem;
  color: var(--blush);
  font-weight: 400;
}

/* ── 时光轴 · 布局切换 / 瀑布 / 大图 ── */
.dossier-timeline-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dossier-timeline-toolbar .dossier-pane__hint {
  margin: 0;
  flex: 1;
}

.dossier-timeline-layout {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.dossier-timeline-layout__btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-size: 0.64rem;
  cursor: pointer;
  white-space: nowrap;
}

.dossier-timeline-layout__btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 95, 0.12);
}

.dtl-waterfall {
  column-count: 2;
  column-gap: 10px;
}

.dtl-waterfall__item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.dtl-waterfall__item--text {
  column-span: all;
}

.dtl-waterfall__item[hidden] {
  display: none !important;
}

.dtl-card--large .dtl-card__visual img,
.dtl-card--large .dtl-card__visual video {
  max-height: none;
  min-height: 160px;
}

.dossier-pane--timeline-waterfall .dtl-card--large .dtl-card__visual img,
.dossier-pane--timeline-waterfall .dtl-card--large .dtl-card__visual video {
  max-height: 420px;
}

.dossier-pane--timeline-zigzag .dtl-card--large .dtl-card__visual img,
.dossier-pane--timeline-zigzag .dtl-card--large .dtl-card__visual video {
  max-height: 320px;
}

@media (min-width: 520px) {
  .dtl-waterfall {
    column-count: 3;
  }

  .guild-member-sheet__stamp-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── 展卷 · CP 预览条 ── */
.dossier-overview-cp {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: linear-gradient(145deg, rgba(70, 20, 40, 0.55), rgba(10, 6, 12, 0.85));
  box-shadow: 0 8px 28px rgba(40, 8, 24, 0.35);
}

.dossier-overview-cp--active {
  border-color: rgba(212, 175, 95, 0.45);
}

.dossier-overview-cp__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dossier-overview-cp__head h3 {
  margin: 0 0 2px;
  font-size: 0.88rem;
  color: #fff;
}

.dossier-overview-cp__status {
  display: inline-block;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 95, 0.15);
  color: var(--gold);
}

.dossier-overview-cp__alert {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--blush);
  background: rgba(232, 144, 168, 0.12);
  border: 1px solid rgba(232, 144, 168, 0.2);
}

.dossier-overview-cp__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dossier-overview-cp .dossier-cp-bond {
  margin-bottom: 0;
}

.dossier-overview-cp__pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dossier-overview-cp__pair .dossier-cp-avatar__img {
  width: 56px;
  height: 56px;
}

.dossier-overview-cp__pair .dossier-cp-avatar__img img,
.dossier-overview-cp__pair .dossier-cp-avatar__initial {
  width: 56px;
  height: 56px;
}

.dossier-overview-cp__heart {
  color: var(--blush);
  font-size: 1.1rem;
}

.dossier-overview-cp__vow {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--blush);
  line-height: 1.45;
}

.dossier-overview-cp__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dossier-overview-cp--draft {
  border-style: dashed;
}

/* ── 帮派弹窗 · 时间轴列表 ── */
.guild-member-sheet__timeline h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--champagne);
}

.guild-member-sheet__timeline h3 span {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 400;
}

.guild-member-sheet__tl-scroll {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.guild-member-sheet__tl-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-member-sheet__tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.guild-member-sheet__tl-head time {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.guild-member-sheet__tl-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: #fff;
}

.guild-member-sheet__tl-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
  cursor: pointer;
  max-height: 180px;
}

.guild-member-sheet__tl-thumb img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.guild-member-sheet__tl-decl {
  margin: 0;
  font-size: 0.72rem;
  color: var(--blush);
  line-height: 1.45;
}

/* 江湖档案 · 新用户引导 */
.profile-onboard {
  margin: 0 0 16px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(196, 56, 88, 0.14), rgba(42, 16, 32, 0.55));
  border: 1px solid rgba(212, 168, 106, 0.32);
}

.profile-onboard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-onboard__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim, #c9a060);
}

.profile-onboard__title {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Ma Shan Zheng', cursive);
  font-size: 1.35rem;
  font-weight: 400;
  color: #f4d4e0;
}

.profile-onboard__lead {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(245, 230, 235, 0.75);
}

.profile-onboard__dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(196, 168, 176, 0.85);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.profile-onboard__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.profile-onboarding__grid--solo {
  grid-template-columns: 1fr;
}

@media (max-width: 720px) {
  .profile-onboard__grid {
    grid-template-columns: 1fr;
  }
}

.profile-onboard__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-onboard__step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-onboard__step.is-current {
  border-color: rgba(232, 120, 152, 0.45);
  background: rgba(196, 56, 88, 0.12);
}

.profile-onboard__step.is-done {
  opacity: 0.72;
}

.profile-onboard__step.is-todo:not(.is-done) {
  border-color: rgba(255, 107, 74, 0.28);
  background: rgba(255, 107, 74, 0.06);
}

.profile-onboard__step-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 107, 74, 0.22);
  color: #ffb89a;
  font-size: 0.58rem;
  font-weight: 600;
  vertical-align: middle;
}

.profile-onboard__step-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
}

.profile-onboard__step.is-done .profile-onboard__step-ico {
  background: rgba(7, 193, 96, 0.2);
  color: #9ef0c4;
  font-size: 0.8rem;
}

.profile-onboard__step-body strong {
  display: block;
  font-size: 0.82rem;
  color: #f4d4e0;
}

.profile-onboard__step-body strong em {
  font-style: normal;
  font-size: 0.65rem;
  color: rgba(196, 168, 176, 0.8);
  margin-left: 4px;
}

.profile-onboard__step-body p {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: rgba(196, 168, 176, 0.85);
  line-height: 1.4;
}

.profile-onboard__foot {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: rgba(196, 168, 176, 0.85);
}

.profile-onboard__sample-tag {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  text-align: center;
}

.profile-onboard__sample-card {
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 250, 246, 0.08), rgba(20, 8, 14, 0.5));
  border: 1px solid rgba(212, 168, 106, 0.28);
  text-align: center;
}

.profile-onboard__sample-portrait {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(196, 56, 88, 0.35), rgba(212, 168, 106, 0.25));
}

.profile-onboard__sample-name {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #f4d4e0;
  font-weight: 600;
}

.profile-onboard__sample-motto {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: rgba(245, 230, 235, 0.8);
}

.profile-onboard__sample-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.profile-onboard__sample-meta span {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(196, 168, 176, 0.9);
}

.profile-onboard__sample-oath {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 2px solid rgba(212, 168, 106, 0.45);
  font-size: 0.72rem;
  color: rgba(245, 230, 235, 0.78);
  text-align: left;
}

.profile-onboard__sample-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.68rem;
  color: rgba(196, 168, 176, 0.85);
}

.profile-onboard__sample-stats strong {
  display: block;
  font-size: 0.95rem;
  color: #f4d4e0;
}

.profile-onboard__sample-hint {
  margin: 8px 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(196, 168, 176, 0.8);
  text-align: center;
}

/* 建档指引 · 紧凑角标（不占用展卷主布局） */
.dossier-hero__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.dossier-hero__eyebrow-row .dossier-hero__eyebrow {
  margin: 0;
}

.dossier-guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(240, 180, 100, 0.5);
  background: linear-gradient(135deg, rgba(240, 176, 96, 0.22), rgba(232, 144, 168, 0.14));
  color: #ffe8c8;
  font-size: 0.64rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.dossier-guide-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(240, 176, 96, 0.2);
}

.dossier-guide-chip__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0b060;
  box-shadow: 0 0 8px rgba(240, 176, 96, 0.8);
  animation: dossier-guide-pulse 1.8s ease-in-out infinite;
}

@keyframes dossier-guide-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.dossier-guide-chip__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(240, 176, 96, 0.25);
  color: #ffe8c8;
  font-weight: 700;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
}

.dossier-complete--mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.dossier-complete--mini .dossier-complete__bar {
  flex: 1;
  margin: 0;
}

.dossier-complete__pct {
  font-size: 0.62rem;
  color: var(--gold);
  flex-shrink: 0;
}

body.profile-guide-sheet-open {
  overflow: hidden;
}

.profile-guide-sheet {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-guide-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 12, 0.78);
  backdrop-filter: blur(6px);
}

.profile-guide-sheet__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 780px);
  overflow: auto;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(232, 144, 168, 0.28);
  background: linear-gradient(180deg, #2a1828 0%, #140a14 100%);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
  animation: profile-guide-sheet-up 0.32s ease;
}

@keyframes profile-guide-sheet-up {
  from {
    transform: translateY(100%);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-guide-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e8c8d4;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
}

.profile-guide-sheet__head {
  margin-bottom: 12px;
  padding-right: 36px;
}

.profile-guide-sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--blush);
}

.profile-guide-sheet__title {
  margin: 0;
  font-size: 1.15rem;
  color: #f4d4e0;
}

.profile-guide-sheet__title em {
  font-style: normal;
  color: var(--gold);
}

.profile-guide-sheet__lead {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(196, 168, 176, 0.85);
  line-height: 1.45;
}

.profile-guide-sheet__grid {
  margin-bottom: 12px;
}

.profile-guide-sheet__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-guide-sheet__foot .btn {
  min-width: 96px;
}

@media (min-width: 640px) {
  .profile-guide-sheet {
    align-items: center;
    padding: 20px;
  }

  .profile-guide-sheet__panel {
    border-radius: 20px;
    max-height: 85vh;
  }
}

/* ── 同袍标识 · 单行全宽（v596） ── */
.dossier-hero__badges-row {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.dossier-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.dossier-id-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(212, 175, 95, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.dossier-id-row__main:hover {
  border-color: rgba(232, 144, 168, 0.4);
  background: rgba(232, 144, 168, 0.08);
}

.dossier-id-row__label {
  flex-shrink: 0;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 95, 0.9);
  font-weight: 600;
  white-space: nowrap;
}

.dossier-id-row__icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dossier-id-row__slot {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dossier-id-row__slot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.dossier-id-row__slot-icon {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  line-height: 1;
  filter: grayscale(0.8) brightness(0.6);
  opacity: 0.5;
}

.dossier-id-row__slot--lit .dossier-id-row__slot-ring {
  border-color: rgba(212, 175, 95, 0.55);
  background: rgba(212, 175, 95, 0.15);
  box-shadow: 0 0 6px rgba(212, 175, 95, 0.2);
}

.dossier-id-row__slot--lit .dossier-id-row__slot-icon {
  filter: none;
  opacity: 1;
}

.dossier-id-row__slot--lit.dossier-id-row__slot--cp .dossier-id-row__slot-ring {
  border-color: rgba(232, 144, 168, 0.55);
  background: rgba(232, 144, 168, 0.15);
}

.dossier-id-row__slot--progress .dossier-id-row__slot-ring {
  border-color: rgba(255, 180, 100, 0.5);
}

.dossier-id-row__slot--progress .dossier-id-row__slot-icon {
  filter: grayscale(0.2);
  opacity: 0.85;
}

.dossier-id-row__slot--need .dossier-id-row__slot-ring {
  border-color: rgba(255, 107, 74, 0.45);
}

.dossier-id-row__slot-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b4a;
  border: 1px solid #1a0c10;
}

.dossier-id-row__sep {
  flex: 1;
  min-width: 4px;
}

.dossier-id-row__lit {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.dossier-id-row__lit small {
  font-size: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.dossier-id-row__pending {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.52rem;
  color: #ffc8b0;
  background: rgba(255, 107, 74, 0.14);
  border: 1px solid rgba(255, 107, 74, 0.28);
  white-space: nowrap;
}

.dossier-id-row__pending em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.dossier-id-row__all {
  flex-shrink: 0;
  font-size: 0.52rem;
  color: rgba(212, 175, 95, 0.85);
  white-space: nowrap;
}

.dossier-id-row__chev {
  flex-shrink: 0;
  color: rgba(212, 175, 95, 0.6);
  font-size: 0.9rem;
  line-height: 1;
}

.dossier-id-row__aff {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 144, 168, 0.28);
  background: rgba(232, 144, 168, 0.1);
  color: #f4c8d8;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.dossier-id-row__aff span {
  color: #ff8cb0;
}

.dossier-id-row__aff small {
  font-size: inherit;
  font-weight: 600;
  opacity: 0.8;
}

@media (max-width: 420px) {
  .dossier-id-row__label {
    display: none;
  }

  .dossier-id-row__main {
    gap: 4px;
    padding: 5px 6px;
  }

  .dossier-id-row__icons {
    gap: 3px;
  }

  .dossier-id-row__slot {
    width: 20px;
    height: 20px;
  }

  .dossier-id-row__slot-icon {
    font-size: 0.62rem;
  }
}

/* ── 同袍标识 · 头像下标识条（v595 旧版，保留兼容） ── */
.dossier-id-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.dossier-id-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 2px;
}

.dossier-id-strip__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 95, 0.88);
  font-weight: 600;
}

.dossier-id-strip__ring-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.dossier-id-strip__ring-text {
  fill: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  font-family: inherit;
}

.dossier-id-strip__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 8px 6px 6px;
  border: 1px solid rgba(212, 175, 95, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 144, 168, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(22, 10, 18, 0.92), rgba(14, 6, 12, 0.88));
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dossier-id-strip__main:hover {
  border-color: rgba(232, 144, 168, 0.42);
  box-shadow: 0 4px 18px rgba(232, 144, 168, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.dossier-id-strip__slots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  padding: 0 1px;
}

.dossier-id-slot {
  position: relative;
  flex: 1;
  max-width: 34px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-id-slot__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.dossier-id-slot__icon {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  line-height: 1;
  filter: grayscale(0.85) brightness(0.65);
  opacity: 0.55;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.dossier-id-slot--lit .dossier-id-slot__ring {
  border-color: rgba(212, 175, 95, 0.65);
  background: radial-gradient(circle at 35% 30%, rgba(212, 175, 95, 0.28), rgba(212, 175, 95, 0.06));
  box-shadow: 0 0 10px rgba(212, 175, 95, 0.25), inset 0 0 6px rgba(212, 175, 95, 0.12);
}

.dossier-id-slot--lit .dossier-id-slot__icon {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.dossier-id-slot--lit.dossier-id-slot--cp .dossier-id-slot__ring {
  border-color: rgba(232, 144, 168, 0.7);
  background: radial-gradient(circle at 35% 30%, rgba(232, 144, 168, 0.32), rgba(232, 144, 168, 0.08));
  box-shadow: 0 0 10px rgba(232, 144, 168, 0.28);
}

.dossier-id-slot--progress .dossier-id-slot__ring {
  border-color: rgba(255, 180, 100, 0.55);
  background: rgba(255, 140, 60, 0.1);
}

.dossier-id-slot--progress .dossier-id-slot__icon {
  filter: grayscale(0.3) brightness(0.9);
  opacity: 0.85;
}

.dossier-id-slot--need .dossier-id-slot__ring {
  border-color: rgba(255, 107, 74, 0.5);
  background: rgba(255, 107, 74, 0.1);
}

.dossier-id-slot--need .dossier-id-slot__icon {
  filter: grayscale(0.2) brightness(0.95);
  opacity: 0.9;
}

.dossier-id-slot__dot {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b4a;
  border: 1.5px solid #1a0c10;
  box-shadow: 0 0 6px rgba(255, 107, 74, 0.6);
  animation: idSlotPulse 1.8s ease-in-out infinite;
}

.dossier-id-slot__pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 180, 100, 0.45);
  animation: idSlotRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes idSlotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

@keyframes idSlotRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.dossier-id-strip__foot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-id-strip__stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.55rem;
  line-height: 1.2;
}

.dossier-id-strip__stat--pending {
  background: rgba(255, 107, 74, 0.14);
  border: 1px solid rgba(255, 107, 74, 0.32);
  color: #ffc8b0;
}

.dossier-id-strip__stat--pending em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
  min-width: 1ch;
}

.dossier-id-strip__stat--done {
  background: rgba(212, 175, 95, 0.12);
  border: 1px solid rgba(212, 175, 95, 0.28);
  color: rgba(212, 175, 95, 0.95);
  letter-spacing: 0.04em;
}

.dossier-id-strip__lit {
  margin-left: auto;
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.dossier-id-strip__lit small {
  font-size: inherit;
  opacity: 0.7;
}

.dossier-id-strip__chev {
  color: rgba(212, 175, 95, 0.65);
  font-size: 0.85rem;
  line-height: 1;
  margin-left: 2px;
}

.dossier-id-strip__aff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 5px 0;
  border: 1px solid rgba(232, 144, 168, 0.25);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 144, 168, 0.08), rgba(212, 175, 95, 0.06));
  color: #f4c8d8;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.dossier-id-strip__aff:hover {
  border-color: rgba(232, 144, 168, 0.45);
  background: linear-gradient(90deg, rgba(232, 144, 168, 0.14), rgba(212, 175, 95, 0.1));
}

.dossier-id-strip__aff-heart {
  color: #ff8cb0;
  font-size: 0.72rem;
}

.dossier-id-strip__aff-num {
  color: #fff;
  font-weight: 800;
}

.dossier-id-strip__aff-unit {
  opacity: 0.75;
  font-weight: 600;
}

/* ── 同袍标识 · 头像下紧凑轨道（旧版，保留兼容） ── */
.dossier-id-orbit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.dossier-id-orbit__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 6px 4px;
  border: 1px solid rgba(212, 175, 95, 0.28);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 10, 18, 0.85), rgba(40, 18, 32, 0.65));
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.dossier-id-orbit__btn:hover {
  border-color: rgba(232, 144, 168, 0.45);
  transform: translateY(-1px);
}

.dossier-id-orbit__earned {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  min-height: 22px;
}

.dossier-id-orbit__gem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
  background: rgba(212, 175, 95, 0.15);
  border: 1px solid rgba(212, 175, 95, 0.35);
  box-shadow: 0 0 8px rgba(212, 175, 95, 0.15);
}

.dossier-id-orbit__gem--cp {
  background: rgba(232, 144, 168, 0.18);
  border-color: rgba(232, 144, 168, 0.4);
}

.dossier-id-orbit__empty-gem {
  font-size: 0.65rem;
  color: rgba(212, 175, 95, 0.55);
}

.dossier-id-orbit__pending {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.16);
  border: 1px solid rgba(255, 107, 74, 0.35);
  font-size: 0.58rem;
  color: #ffc8b0;
  line-height: 1.2;
}

.dossier-id-orbit__pending em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
  min-width: 1ch;
  text-align: center;
}

.dossier-id-orbit__all-done {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 95, 0.85);
}

.dossier-id-orbit__aff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 4px 0;
  border: 1px solid rgba(232, 144, 168, 0.28);
  border-radius: 999px;
  background: rgba(232, 144, 168, 0.1);
  color: #f4c8d8;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.dossier-id-orbit__aff span {
  color: #ff8cb0;
  font-size: 0.72rem;
}

/* 同袍标识 · 详情弹窗（精美版 v595） */
body.dossier-badges-modal-open {
  overflow: hidden;
}

.dossier-badges-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: badgesModalFade 0.28s ease;
}

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

.dossier-badges-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.78);
  backdrop-filter: blur(8px);
}

.dossier-badges-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(90vh, 680px);
  overflow: auto;
  padding: 18px 16px 22px;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(232, 144, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(212, 175, 95, 0.1), transparent 50%),
    linear-gradient(168deg, #1c0e16 0%, #100810 55%, #0a060c 100%);
  border: 1px solid rgba(232, 144, 168, 0.28);
  border-bottom: none;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: badgesPanelSlide 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes badgesPanelSlide {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.dossier-badges-modal__ornament {
  position: absolute;
  font-size: 0.65rem;
  color: rgba(212, 175, 95, 0.35);
  pointer-events: none;
  user-select: none;
}

.dossier-badges-modal__ornament--tl { top: 14px; left: 14px; }
.dossier-badges-modal__ornament--br { bottom: 14px; right: 14px; opacity: 0.5; }

.dossier-badges-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dossier-badges-modal__close:hover {
  background: rgba(232, 144, 168, 0.15);
  border-color: rgba(232, 144, 168, 0.35);
}

.dossier-badges-modal__head {
  margin-bottom: 16px;
  padding-right: 40px;
}

.dossier-badges-modal__hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dossier-badges-modal__progress {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #d4af5f 0deg,
    #e890a8 calc(var(--pct, 0) * 3.6deg),
    rgba(255, 255, 255, 0.08) calc(var(--pct, 0) * 3.6deg)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 95, 0.15);
}

.dossier-badges-modal__progress-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(165deg, #1a0c14, #120810);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.dossier-badges-modal__progress-num {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dossier-badges-modal__progress-num small {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.dossier-badges-modal__progress-label {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 95, 0.85);
}

.dossier-badges-modal__titles {
  min-width: 0;
  flex: 1;
}

.dossier-badges-modal__eyebrow {
  margin: 0 0 3px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.dossier-badges-modal__head h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.dossier-badges-modal__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.dossier-badges-modal__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.dossier-badges-modal__tag--pending {
  background: rgba(255, 107, 74, 0.12);
  border-color: rgba(255, 107, 74, 0.3);
  color: #ffc8b0;
}

.dossier-badges-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.dossier-badge-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.dossier-badge-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.dossier-badge-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.dossier-badge-card--lit .dossier-badge-card__glow {
  opacity: 1;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(212, 175, 95, 0.1), transparent 70%);
}

.dossier-badge-card--lit {
  border-color: rgba(212, 175, 95, 0.32);
  background: linear-gradient(105deg, rgba(212, 175, 95, 0.08), rgba(0, 0, 0, 0.22));
}

.dossier-badge-card--progress {
  border-color: rgba(255, 180, 100, 0.28);
  background: linear-gradient(105deg, rgba(255, 140, 60, 0.06), rgba(0, 0, 0, 0.22));
}

.dossier-badge-card.is-need {
  border-color: rgba(255, 107, 74, 0.35);
  background: linear-gradient(105deg, rgba(255, 107, 74, 0.08), rgba(0, 0, 0, 0.22));
}

.dossier-badge-card__icon-wrap {
  position: relative;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-badge-card--lit .dossier-badge-card__icon-wrap {
  background: rgba(212, 175, 95, 0.12);
  border-color: rgba(212, 175, 95, 0.3);
  box-shadow: 0 0 12px rgba(212, 175, 95, 0.15);
}

.dossier-badge-card--cp.dossier-badge-card--lit .dossier-badge-card__icon-wrap {
  background: rgba(232, 144, 168, 0.14);
  border-color: rgba(232, 144, 168, 0.35);
}

.dossier-badge-card__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.dossier-badge-card--dim .dossier-badge-card__icon {
  filter: grayscale(0.7) brightness(0.7);
  opacity: 0.65;
}

.dossier-badge-card__check {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af5f, #c9983a);
  color: #1a0c10;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #1a0c10;
}

.dossier-badge-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dossier-badge-card__body strong {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
}

.dossier-badge-card__body em {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
}

.dossier-badge-card__hint {
  font-size: 0.6rem;
  color: #ffb090;
  margin-top: 2px;
}

.dossier-badge-card__pill {
  grid-column: 3;
  grid-row: 1;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dossier-badge-card__pill--lit {
  background: rgba(212, 175, 95, 0.15);
  border: 1px solid rgba(212, 175, 95, 0.35);
  color: rgba(212, 175, 95, 0.95);
}

.dossier-badge-card__pill--progress {
  background: rgba(255, 180, 100, 0.12);
  border: 1px solid rgba(255, 180, 100, 0.3);
  color: #ffd0a0;
}

.dossier-badge-card__pill--need,
.dossier-badge-card__pill--dim {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.dossier-badge-card__btn {
  grid-column: 2 / span 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dossier-badge-card__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dossier-badge-card__btn--primary {
  background: linear-gradient(135deg, rgba(232, 144, 168, 0.35), rgba(212, 175, 95, 0.25));
  border-color: rgba(232, 144, 168, 0.45);
  color: #fff;
  font-weight: 600;
}

.dossier-badge-card__btn--primary:hover {
  background: linear-gradient(135deg, rgba(232, 144, 168, 0.5), rgba(212, 175, 95, 0.35));
}

.dossier-badges-modal__all-done {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(212, 175, 95, 0.95);
  background: rgba(212, 175, 95, 0.08);
  border: 1px solid rgba(212, 175, 95, 0.22);
}

.dossier-badges-modal__tip {
  margin: 0 0 12px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

.dossier-badges-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-badges-modal__chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

/* 旧弹窗列表样式保留兼容 */
.dossier-badges-modal__section {
  margin-bottom: 14px;
}

.dossier-badges-modal__section h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(212, 175, 95, 0.9);
}

.dossier-badges-modal__section--pending h4 {
  color: #ffb090;
}

.dossier-badges-modal__section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-badges-modal__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.dossier-badges-modal__item.is-done {
  border-color: rgba(212, 175, 95, 0.28);
  background: rgba(212, 175, 95, 0.06);
}

.dossier-badges-modal__item.is-pending.is-need {
  border-color: rgba(255, 107, 74, 0.35);
  background: rgba(255, 107, 74, 0.08);
}

.dossier-badges-modal__ico {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
  width: 36px;
  text-align: center;
}

.dossier-badges-modal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-badges-modal__body strong {
  font-size: 0.82rem;
  color: #fff;
}

.dossier-badges-modal__body em {
  font-size: 0.72rem;
  font-style: normal;
  color: var(--text-muted);
}

.dossier-badges-modal__hint {
  font-size: 0.65rem;
  color: #ffb090;
}

.dossier-badges-modal__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(120, 200, 140, 0.2);
  color: #90e0a8;
  font-size: 0.75rem;
  line-height: 24px;
  text-align: center;
}

.dossier-badges-modal__all-done-msg {
  margin: 8px 0 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gold);
}

.dossier-badges-modal__summary strong {
  color: var(--gold);
}

.stamp-sheet__category-select {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(232, 144, 168, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
}

.stamp-sheet__cat-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (min-width: 640px) {
  .dossier-badges-modal {
    align-items: center;
    padding: 20px;
  }

  .dossier-badges-modal__panel {
    border-radius: 22px;
    border-bottom: 1px solid rgba(232, 144, 168, 0.28);
    max-height: min(85vh, 680px);
  }
}

/* 江湖证 · 同袍标识条（旧版大卡片，保留兼容） */
.dossier-id-badges--readable {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 18, 32, 0.88), rgba(40, 22, 38, 0.72));
  border: 1px solid rgba(232, 144, 168, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dossier-id-badges--readable .dossier-id-badges__pending-hint {
  font-size: 0.68rem;
}

.dossier-id-badges--readable .dossier-id-badges__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dossier-id-badges--readable .dossier-id-badges__title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}

.dossier-id-badges__row--chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 560px) {
  .dossier-id-badges__row--chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .dossier-id-badges__row--chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dossier-id-badge--chip {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.32);
  color: #e8dce0;
}

.dossier-id-badges--readable .dossier-id-badge--chip .dossier-id-badge__icon {
  font-size: 1.45rem;
  line-height: 1;
  filter: none;
  opacity: 1;
}

.dossier-id-badges--readable .dossier-id-badge--chip.is-empty .dossier-id-badge__icon {
  opacity: 0.88;
}

.dossier-id-badges--readable .dossier-id-badge__text strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f5eef2;
  letter-spacing: 0.02em;
}

.dossier-id-badges--readable .dossier-id-badge__text em {
  font-size: 0.65rem;
  font-style: normal;
  color: rgba(210, 190, 200, 0.92);
  opacity: 1;
}

.dossier-id-badge__icon-wrap--chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.dossier-id-badge--chip.is-need {
  border-color: rgba(255, 107, 74, 0.55);
  background: rgba(255, 107, 74, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.18);
}

.dossier-id-badge--chip.is-cp-active {
  border-color: rgba(232, 144, 168, 0.5);
  background: rgba(232, 144, 168, 0.14);
}

.dossier-id-badge--chip.is-cp-active .dossier-id-badge__text strong {
  color: #ffd0e0;
}

.dossier-id-badge--chip.is-cp-wait {
  border-color: rgba(240, 176, 96, 0.4);
}

.dossier-aff-pill--inline {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  height: 28px;
  padding: 0 10px;
  margin-left: 0;
  border-radius: 999px;
}

.dossier-aff-pill--inline .dossier-aff-pill__heart {
  font-size: 0.78rem;
}

.dossier-aff-pill--inline .dossier-aff-pill__num {
  font-size: 0.78rem;
}

.dossier-aff-pill--inline .dossier-aff-pill__unit {
  font-size: 0.62rem;
}

.dossier-id-badges--icons {
  margin: 4px 0 2px;
  padding: 0;
  border: none;
  background: none;
}

.dossier-id-badges__pending-hint {
  margin: 0 0 6px;
  font-size: 0.62rem;
  color: rgba(255, 200, 140, 0.92);
  line-height: 1.35;
}

.dossier-id-badges__pending-hint strong {
  color: #ffe0b0;
  font-weight: 700;
}

.dossier-id-badges__pending-hint em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin: 0 1px;
  border-radius: 50%;
  background: #ff6b4a;
  color: #fff;
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 800;
  vertical-align: middle;
}

.dossier-id-badges__pending-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #ff6b4a;
  box-shadow: 0 0 6px rgba(255, 107, 74, 0.8);
  vertical-align: middle;
}

.dossier-id-badges__row--icons {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0 4px;
}

.dossier-id-badges__row--icons::-webkit-scrollbar {
  display: none;
}

.dossier-id-badge--labeled {
  width: auto;
  min-width: 44px;
  max-width: 52px;
  height: auto;
  min-height: 50px;
  padding: 5px 4px 4px;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.dossier-id-badge__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.dossier-id-badge__need {
  position: absolute;
  top: -4px;
  right: -5px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8060, #ff5040);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(255, 80, 64, 0.45);
  animation: dossier-badge-need-pulse 1.6s ease-in-out infinite;
}

@keyframes dossier-badge-need-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.dossier-id-badge--icon.is-need {
  border-color: rgba(255, 107, 74, 0.65);
  background: rgba(255, 107, 74, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.22);
}

.dossier-id-badge__micro {
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: rgba(228, 210, 218, 0.95);
  line-height: 1.15;
  text-align: center;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.dossier-id-badge__micro--cp {
  color: rgba(255, 180, 200, 0.98);
  font-weight: 700;
}

.dossier-id-badge__micro-sub {
  font-size: 0.52rem;
  color: rgba(200, 178, 188, 0.88);
  line-height: 1.1;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-id-badge--cp.dossier-id-badge--labeled {
  min-height: 50px;
}

.dossier-aff-pill {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 40px;
  min-height: 46px;
  margin-left: 2px;
  padding: 4px 6px 3px;
  border-radius: 10px;
  border: 1px solid rgba(232, 144, 168, 0.35);
  background: linear-gradient(160deg, rgba(232, 144, 168, 0.16), rgba(120, 40, 70, 0.22));
  color: #f4c8d8;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, border-color 0.2s;
}

.dossier-aff-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 144, 168, 0.55);
}

.dossier-aff-pill__heart {
  font-size: 0.85rem;
  line-height: 1;
  color: #ff8cb0;
}

.dossier-aff-pill__num {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffe0ec;
}

.dossier-aff-pill__unit {
  font-size: 0.46rem;
  letter-spacing: 0.04em;
  color: rgba(232, 144, 168, 0.85);
}

.dossier-id-badges__row-label {
  flex-shrink: 0;
  align-self: center;
  margin-right: 2px;
  padding: 4px 0;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 95, 0.88);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
}

@media (max-width: 360px) {
  .dossier-id-badges__row-label {
    display: none;
  }
}

.dossier-id-badge--icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dossier-id-badge--icon .dossier-id-badge__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.dossier-id-badge--icon.is-dim .dossier-id-badge__icon {
  filter: grayscale(0.35) opacity(0.72);
}

.dossier-id-badge--icon.is-dim .dossier-id-badge__micro,
.dossier-id-badge--icon.is-dim .dossier-id-badge__micro-sub {
  opacity: 0.82;
}

.dossier-id-badge--icon:not(.is-dim) .dossier-id-badge__icon {
  filter: none;
}

.dossier-id-badge--icon.is-complete,
.dossier-id-badge--icon.is-verified,
.dossier-id-badge--icon.is-partner,
.dossier-id-badge--icon.is-imprint {
  border-color: rgba(212, 175, 95, 0.42);
  background: rgba(212, 175, 95, 0.1);
}

.dossier-id-badge--icon.is-pending {
  border-color: rgba(240, 176, 96, 0.35);
}

.dossier-id-badge--icon.is-cp-active {
  border-color: rgba(232, 144, 168, 0.45);
  background: rgba(232, 144, 168, 0.12);
}

.dossier-id-badge--labeled .dossier-id-badge__cp-gem {
  width: 24px;
  height: 24px;
}

.dossier-id-badge--icon .dossier-id-badge__cp-gem {
  width: 22px;
  height: 22px;
}

.dossier-id-badge--icon .dossier-id-badge__cp-heart {
  width: 11px;
  height: 11px;
}

.dossier-id-badge--icon .dossier-id-badge__cp-heart::before,
.dossier-id-badge--icon .dossier-id-badge__cp-heart::after {
  width: 6px;
  height: 9px;
}

.dossier-id-badges {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 18, 32, 0.72), rgba(40, 22, 38, 0.55));
  border: 1px solid rgba(232, 144, 168, 0.18);
}

.dossier-id-badges__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dossier-id-badges__title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--champagne);
  opacity: 0.85;
}

.dossier-id-badges__hint {
  font-size: 0.62rem;
  color: var(--gold);
}

.dossier-id-badges__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.dossier-id-badges__row--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .dossier-id-badges__row--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dossier-id-badges__row--five .dossier-id-badge:nth-child(4),
  .dossier-id-badges__row--five .dossier-id-badge:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 380px) {
  .dossier-id-badges__row,
  .dossier-id-badges__row--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dossier-id-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(196, 168, 176, 0.75);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.dossier-id-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 144, 168, 0.35);
}

.dossier-id-badge__icon {
  font-size: 1.25rem;
  filter: grayscale(1) opacity(0.55);
}

.dossier-id-badge__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.dossier-id-badge__text strong {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(220, 200, 210, 0.9);
}

.dossier-id-badge__text em {
  font-size: 0.58rem;
  font-style: normal;
  opacity: 0.75;
}

.dossier-id-badge.is-partial .dossier-id-badge__icon {
  filter: grayscale(0.4) opacity(0.85);
}

.dossier-id-badge.is-complete .dossier-id-badge__icon,
.dossier-id-badge.is-verified .dossier-id-badge__icon,
.dossier-id-badge.is-partner .dossier-id-badge__icon,
.dossier-id-badge.is-imprint .dossier-id-badge__icon {
  filter: none;
}

.dossier-id-badge.is-complete {
  border-color: rgba(212, 175, 95, 0.45);
  background: rgba(212, 175, 95, 0.08);
  color: var(--gold);
}

.dossier-id-badge.is-verified {
  border-color: rgba(120, 200, 150, 0.45);
  background: rgba(80, 180, 120, 0.1);
}

.dossier-id-badge.is-pending {
  border-color: rgba(240, 180, 80, 0.4);
}

.dossier-id-badge.is-partner {
  border-color: rgba(180, 140, 255, 0.45);
  background: rgba(140, 100, 220, 0.12);
}

.dossier-id-badge.is-rising,
.dossier-id-badge.is-active,
.dossier-id-badge.is-seed {
  border-color: rgba(120, 170, 240, 0.35);
}

.dossier-id-badge.is-imprint,
.dossier-id-badge.is-badge {
  border-color: rgba(212, 175, 95, 0.35);
}

.dossier-id-empty {
  color: rgba(196, 168, 176, 0.45);
  font-style: normal;
}

/* 江湖证 · 基本信息卡 */
body.dossier-id-sheet-open {
  overflow: hidden;
}

.dossier-id-sheet {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.dossier-id-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 12, 0.72);
  backdrop-filter: blur(4px);
}

.dossier-id-sheet__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 20px 18px 28px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #2a1828 0%, #1a1018 100%);
  border: 1px solid rgba(232, 144, 168, 0.22);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.dossier-id-sheet__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e8c8d4;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.dossier-id-sheet__hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.dossier-id-sheet__portrait {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(196, 168, 176, 0.25);
}

.dossier-id-sheet__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-id-sheet__portrait--complete {
  border-color: rgba(212, 175, 95, 0.55);
}

.dossier-id-sheet__portrait--partial {
  border-color: rgba(240, 180, 80, 0.4);
}

.dossier-id-sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--blush);
}

.dossier-id-sheet__name {
  margin: 0;
  font-size: 1.15rem;
  color: #f4d4e0;
}

.dossier-id-sheet__motto {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: rgba(196, 168, 176, 0.85);
  line-height: 1.45;
}

.dossier-id-sheet__fields {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-id-sheet__fields > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-id-sheet__fields > div:last-child {
  border-bottom: none;
}

.dossier-id-sheet__field--wide {
  grid-template-columns: 1fr;
}

.dossier-id-sheet__field--wide dt {
  margin-bottom: 4px;
}

.dossier-id-sheet__fields dt {
  margin: 0;
  font-size: 0.65rem;
  color: rgba(196, 168, 176, 0.65);
}

.dossier-id-sheet__fields dd {
  margin: 0;
  font-size: 0.78rem;
  color: #ead8de;
  line-height: 1.45;
}

.dossier-id-sheet__steps h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--champagne);
}

.dossier-id-sheet__steps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-id-sheet__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dossier-id-sheet__step.is-done {
  border-color: rgba(120, 200, 150, 0.25);
  opacity: 0.85;
}

.dossier-id-sheet__step.is-pending {
  border-color: rgba(240, 180, 80, 0.3);
}

.dossier-id-sheet__step-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.dossier-id-sheet__step-body {
  flex: 1;
  min-width: 0;
}

.dossier-id-sheet__step-body strong {
  display: block;
  font-size: 0.74rem;
  color: #f0d8e0;
}

.dossier-id-sheet__step-body strong em {
  font-size: 0.62rem;
  font-weight: normal;
  color: rgba(196, 168, 176, 0.7);
}

.dossier-id-sheet__step-body p {
  margin: 2px 0 0;
  font-size: 0.65rem;
  color: rgba(196, 168, 176, 0.75);
}

.dossier-id-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.dossier-id-sheet__chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(196, 168, 176, 0.85);
}

.dossier-id-sheet__chip--approved,
.dossier-id-sheet__chip--partner,
.dossier-id-sheet__chip--imprint,
.dossier-id-sheet__chip--active {
  border-color: rgba(212, 175, 95, 0.35);
  color: var(--gold);
}

/* 缘定 CP · 精美心形徽章 */
.dossier-id-badge--cp {
  position: relative;
  overflow: visible;
}

.dossier-id-badge--cp.is-cp-active {
  border-color: rgba(255, 120, 160, 0.55);
  background: linear-gradient(160deg, rgba(255, 105, 150, 0.18), rgba(120, 40, 80, 0.28));
  box-shadow: 0 0 18px rgba(255, 100, 150, 0.22), inset 0 1px 0 rgba(255, 200, 220, 0.15);
}

.dossier-id-badge--cp.is-cp-active .dossier-id-badge__text strong {
  color: #ffc8dc;
}

.dossier-id-badge--cp.is-cp-active .dossier-id-badge__text em {
  color: #ff9ec8;
}

.dossier-id-badge--cp.is-cp-wait {
  border-color: rgba(255, 190, 120, 0.45);
  background: rgba(255, 160, 80, 0.1);
}

.dossier-id-badge--cp.is-cp-draft {
  border-color: rgba(232, 144, 168, 0.35);
  background: rgba(232, 144, 168, 0.08);
}

.dossier-id-badge--cp.is-empty .dossier-id-badge__cp-gem {
  opacity: 0.55;
}

.dossier-id-badge__cp-gem {
  position: relative;
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier-id-badge__cp-aura {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.dossier-id-badge--cp.is-cp-active .dossier-id-badge__cp-aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 120, 170, 0.35) 0%, transparent 70%);
  animation: dossier-cp-pulse 2.4s ease-in-out infinite;
}

@keyframes dossier-cp-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.dossier-id-badge__cp-hearts {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 26px;
  height: 22px;
}

.dossier-id-badge__cp-heart {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  transform: rotate(-45deg);
  background: currentColor;
  color: rgba(180, 150, 165, 0.55);
  margin: 0;
}

.dossier-id-badge__cp-heart::before,
.dossier-id-badge__cp-heart::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.dossier-id-badge__cp-heart::before {
  top: -5.5px;
  left: 0;
}

.dossier-id-badge__cp-heart::after {
  left: 5.5px;
  top: 0;
}

.dossier-id-badge__cp-hearts.is-bonded {
  gap: 1px;
}

.dossier-id-badge__cp-hearts.is-bonded .dossier-id-badge__cp-heart {
  color: #ff6b9d;
  filter: drop-shadow(0 0 4px rgba(255, 100, 150, 0.65));
}

.dossier-id-badge__cp-heart--a {
  transform: rotate(-45deg) translate(2px, 1px);
}

.dossier-id-badge__cp-heart--b {
  transform: rotate(-45deg) translate(-2px, -1px) scale(0.88);
  color: #ff9ec8;
  opacity: 0.92;
}

.dossier-id-badge__cp-hearts.is-wait .dossier-id-badge__cp-heart {
  color: #f0b060;
  animation: dossier-cp-heart-wait 1.6s ease-in-out infinite;
}

@keyframes dossier-cp-heart-wait {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.dossier-id-badge__cp-dot {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0b060;
  box-shadow: 0 0 6px rgba(240, 176, 96, 0.8);
  animation: dossier-cp-dot-blink 1.2s ease-in-out infinite;
}

@keyframes dossier-cp-dot-blink {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.dossier-id-badge__cp-gem--draft .dossier-id-badge__cp-heart {
  color: rgba(232, 144, 168, 0.75);
}

.dossier-id-badge__cp-pen {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 0.55rem;
  color: var(--blush);
  font-style: normal;
}

.dossier-id-sheet__chip--pending_in,
.dossier-id-sheet__chip--sent,
.dossier-id-sheet__chip--draft {
  border-color: rgba(255, 180, 120, 0.35);
  color: #f0c090;
}

/* 档案 · 联创 Tab */
.dossier-pane--cocreate {
  padding: 12px 0;
}

.dossier-cocreate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dossier-cocreate-head__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--hub-muted, rgba(255, 255, 255, 0.55));
}

.dossier-cocreate-auth {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 80, 0.35);
  background: rgba(255, 180, 80, 0.08);
}

.dossier-cocreate-auth p {
  margin: 0 0 8px;
}

.dossier-cocreate-auth .btn {
  margin-top: 4px;
}

.dossier-cocreate-themes__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dossier-cocreate-theme-card {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  text-decoration: none;
  color: inherit;
}

.dossier-cocreate-theme-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
}

.dossier-cocreate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dossier-cocreate-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.dossier-cocreate-card__cover {
  display: block;
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  font: inherit;
}

.dossier-cocreate-card__cover--play {
  position: relative;
}

.dossier-cocreate-asset__cover--play {
  display: block;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font: inherit;
}

.dossier-cocreate-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-cocreate-card__ph {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 28px;
}

.dossier-cocreate-card__body {
  padding: 10px;
}

.dossier-cocreate-card__text-cover {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--hub-muted, rgba(255, 255, 255, 0.7));
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  text-align: left;
}

.dossier-cocreate-card__excerpt {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--hub-muted, rgba(255, 255, 255, 0.68));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dossier-cocreate-card__status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.dossier-cocreate-card__status--is-pending {
  background: rgba(255, 180, 80, 0.15);
  color: #f0c080;
}

.dossier-cocreate-card__status--is-approved {
  background: rgba(80, 200, 120, 0.12);
  color: #90e0a8;
}

.dossier-cocreate-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dossier-cocreate-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--hub-muted, rgba(255, 255, 255, 0.55));
}

.dossier-cocreate-stats strong {
  color: var(--gold, #e8c872);
  font-weight: 600;
}

.dossier-cocreate-stats__wait strong {
  color: #f0c080;
}

.dossier-cocreate-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.dossier-cocreate-filters__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.dossier-cocreate-filters__btn.is-active {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold, #e8c872);
}

.dossier-cocreate-card__kicker {
  display: block;
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 2px;
}

.dossier-cocreate-card__cover {
  position: relative;
}

.dossier-cocreate-card__play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  pointer-events: none;
}

.dossier-cocreate-assets {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.dossier-cocreate-assets__head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.dossier-cocreate-assets__head p {
  margin: 0 0 12px;
  font-size: 12px;
  opacity: 0.65;
}

.dossier-cocreate-assets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.dossier-cocreate-asset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.dossier-cocreate-asset__cover {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.25);
}

.dossier-cocreate-asset__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-cocreate-asset__body {
  padding: 8px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.dossier-cocreate-asset__body strong {
  font-size: 12px;
  line-height: 1.3;
}

.dossier-cocreate-asset__body em {
  font-style: normal;
  opacity: 0.6;
  font-size: 11px;
}

.dossier-cocreate-assets__foot {
  margin-top: 10px;
  font-size: 12px;
}

.dossier-cocreate-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dossier-cocreate-filters__icon {
  font-size: 0.9em;
  line-height: 1;
}

.dossier-cocreate-filters__count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.dossier-cocreate-filters__btn.is-active .dossier-cocreate-filters__count {
  background: rgba(201, 162, 39, 0.35);
}

.dossier-cocreate-cat-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.dossier-cocreate-cat-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 12px;
  color: #f0d890;
  text-decoration: none;
  background: rgba(201, 162, 39, 0.06);
}

.dossier-cocreate-cat-cta__btn:hover {
  background: rgba(201, 162, 39, 0.14);
}

.dossier-cocreate-asset__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dossier-link-btn--primary {
  color: #f0d890;
}

.dossier-empty-card--cocreate {
  margin-bottom: 12px;
}

.dossier-cocreate-back {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.dossier-cocreate-series {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.04);
}

.dossier-cocreate-series__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dossier-cocreate-series__head h4 {
  margin: 0;
  flex: 1;
  font-size: 14px;
}

.dossier-cocreate-series__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dossier-cocreate-series__scroll .dossier-cocreate-card {
  flex: 0 0 140px;
  min-width: 140px;
}

.dossier-cocreate-badge {
  display: inline-block;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 4px;
  vertical-align: middle;
}

.dossier-cocreate-badge--link {
  background: rgba(201, 162, 39, 0.2);
}

.dossier-gallery-filters__btn--refresh {
  border-color: rgba(120, 180, 255, 0.35);
  color: #9ec8ff;
}

.dossier-gallery-item--pending {
  cursor: pointer;
}

.pd-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px 48px;
}

.pd-root {
  min-height: 40vh;
}

/* 玩家星途 · 档案入图 + 部位印记 */
.profile-star-social {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 24, 48, 0.55), rgba(18, 22, 36, 0.85));
  border: 1px solid rgba(186, 160, 255, 0.18);
}

.profile-star-eligibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
}

.profile-star-eligibility__stars {
  color: #e8c547;
  letter-spacing: 0.08em;
}

.profile-star-eligibility__hint {
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
  min-width: 12rem;
}

.profile-star-open {
  margin: 0 0 0.75rem;
  display: inline-flex;
}

.profile-sworn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.profile-sworn-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(120, 200, 160, 0.15);
  border: 1px solid rgba(120, 200, 160, 0.35);
  font-size: 0.82rem;
}

.profile-sworn-tag__x {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 0.15rem;
  line-height: 1;
}

.profile-sworn-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.profile-sworn-add-input {
  flex: 1;
  min-width: 0;
}

.profile-star-aspects {
  margin-top: 1.25rem;
}

.profile-aspect-ring {
  margin-bottom: 1rem;
}

.profile-aspect-ring__title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: rgba(200, 190, 255, 0.9);
}

.profile-aspect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.profile-aspect-card {
  padding: 0.55rem;
  border-radius: 10px;
  background: rgba(12, 14, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-aspect-card.is-lit {
  border-color: rgba(232, 197, 71, 0.45);
  box-shadow: 0 0 12px rgba(232, 197, 71, 0.12);
}

.profile-aspect-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.profile-aspect-card__state {
  font-size: 0.72rem;
  opacity: 0.75;
}

.profile-aspect-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 2.5rem;
  margin-bottom: 0.35rem;
}

.profile-aspect-card__thumb {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.profile-aspect-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-aspect-card__del {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.25rem;
  cursor: pointer;
}

.profile-aspect-card__empty {
  font-size: 0.72rem;
  opacity: 0.55;
}

.profile-aspect-note {
  width: 100%;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.profile-aspect-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  cursor: pointer;
}

.profile-aspect-upload__count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.profile-aspect-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.profile-aspect-cloud {
  flex: 0 0 auto;
}

.profile-aspect-gate {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(232, 197, 71, 0.08);
  border: 1px dashed rgba(232, 197, 71, 0.35);
}

.profile-aspect-card--portrait .profile-aspect-card__thumbs--portrait {
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
}

.profile-aspect-card--portrait .profile-aspect-card__thumbs--portrait img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-aspect-card--ref .profile-aspect-card__ref-hint {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.8;
}

.profile-aspect-card__full,
.profile-aspect-card__locked {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.75;
}

.dossier-hub-card__sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.85;
}

/* 江湖档案 · 玩家星途 Tab · 立体骨骼 */
.dossier-pane--starjourney {
  padding: 0.35rem 0 1.25rem;
}

.dossier-star-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dossier-star-head--compact {
  margin-bottom: 0.65rem;
}

.dossier-star-head__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.dossier-star-head__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.88;
}

.dossier-star-head__hint strong {
  font-weight: 600;
}

.dossier-star-head__link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent, #c9a0ff);
  text-decoration: underline;
  cursor: pointer;
}

.dossier-star-head__muted {
  opacity: 0.72;
}

.sj-body-stats {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(120, 160, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sj-body-stats__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sj-body-stats__name {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.sj-body-stats__stars {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffd98a;
}

.sj-body-stats__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.sj-body-stats__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6eb5ff, #b088ff, #ffc96b);
  transition: width 0.4s ease;
}

.sj-body-stats__hint {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.82;
}

.sj-body-stage {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
  padding: 0.35rem 0 0.15rem;
  perspective: 1000px;
}

.sj-body-stage__tilt {
  position: relative;
  min-height: clamp(480px, 118vw, 620px);
  transform: rotateX(3deg);
  transform-style: preserve-3d;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 50% 42% at 50% 32%, rgba(140, 160, 200, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 95%, rgba(100, 90, 120, 0.15), transparent 62%),
    linear-gradient(175deg, rgba(8, 10, 18, 0.98) 0%, rgba(14, 12, 22, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -20px 40px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sj-body-stage__tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 23px,
    rgba(255, 255, 255, 0.015) 23px,
    rgba(255, 255, 255, 0.015) 24px
  );
  pointer-events: none;
  opacity: 0.6;
}

.sj-body-wire {
  position: absolute;
  inset: 0.5% 3% 1.5%;
  width: calc(100% - 6%);
  height: calc(100% - 2%);
  margin: 0 auto;
  left: 0;
  right: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.sj-body-wire__floor {
  opacity: 0.9;
}

.sj-skeleton {
  opacity: 0.96;
}

.sj-bone-hole {
  fill: rgba(6, 8, 16, 0.55);
  stroke: rgba(180, 170, 160, 0.35);
  stroke-width: 1;
}

.sj-bone__vert {
  fill: rgba(230, 220, 205, 0.75);
  stroke: none;
}

.sj-bone--rib {
  stroke-width: 1.6;
  opacity: 0.62;
}

.sj-bone--joint-ring {
  opacity: 0.72;
  filter: drop-shadow(0 0 6px rgba(240, 230, 210, 0.35));
}

.sj-bone--skull,
.sj-bone--humerus,
.sj-bone--femur,
.sj-bone--socket,
.sj-bone--spine {
  filter: drop-shadow(0 0 6px rgba(240, 230, 210, 0.32));
}

.sj-bone--patella,
.sj-bone--scapula,
.sj-bone--crown {
  opacity: 0.75;
}

.sj-joint--side-l .sj-joint__label {
  max-width: 2.6rem;
  transform: translateX(-0.15rem);
}

.sj-joint--side-r .sj-joint__label {
  max-width: 2.6rem;
  transform: translateX(0.15rem);
}

.sj-joint--crown {
  z-index: 3;
}

.sj-joint--crown .sj-joint__label {
  font-size: 0.5rem;
  opacity: 0.82;
}

.sj-body-stage--loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.sj-body-joints {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.sj-joint {
  position: absolute;
  left: calc(var(--jx) * 1%);
  top: calc(var(--jy) * 1%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, filter 0.25s ease;
  min-width: 3.2rem;
  z-index: 3;
}

.sj-joint:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sj-joint.is-active {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 5;
}

.sj-joint__pulse {
  position: absolute;
  width: calc(42px + var(--joint-fill, 0) * 32px);
  height: calc(42px + var(--joint-fill, 0) * 32px);
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--joint-hue, 260), 85%, 65%, calc(0.18 + var(--joint-fill, 0) * 0.38)), transparent 70%);
  animation: sjJointPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sjJointPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.sj-joint__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(34px + var(--joint-fill, 0) * 18px);
  height: calc(34px + var(--joint-fill, 0) * 18px);
  border-radius: 50%;
  border: 2.5px solid hsla(var(--joint-hue, 260), 70%, 72%, calc(0.35 + var(--joint-fill, 0) * 0.55));
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%),
    radial-gradient(circle, hsla(var(--joint-hue, 260), 55%, 42%, calc(0.4 + var(--joint-fill, 0) * 0.45)), hsla(var(--joint-hue, 260), 60%, 22%, 0.88));
  box-shadow:
    0 0 calc(10px + var(--joint-fill, 0) * 20px) hsla(var(--joint-hue, 260), 90%, 60%, calc(var(--joint-fill, 0) * 0.6)),
    inset 0 -2px 8px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transition: width 0.3s, height 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.sj-joint--lg .sj-joint__orb {
  width: calc(46px + var(--joint-fill, 0) * 16px);
  height: calc(46px + var(--joint-fill, 0) * 16px);
}

.sj-joint--md .sj-joint__orb {
  width: calc(40px + var(--joint-fill, 0) * 18px);
  height: calc(40px + var(--joint-fill, 0) * 18px);
}

.sj-joint--lg .sj-joint__pulse,
.sj-joint--md .sj-joint__pulse {
  width: calc(52px + var(--joint-fill, 0) * 34px);
  height: calc(52px + var(--joint-fill, 0) * 34px);
}

.sj-joint--xs .sj-joint__orb {
  width: calc(28px + var(--joint-fill, 0) * 12px);
  height: calc(28px + var(--joint-fill, 0) * 12px);
}

.sj-joint__icon {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.sj-joint--lg .sj-joint__icon {
  font-size: 1.2rem;
}

.sj-joint--md .sj-joint__icon {
  font-size: 1.08rem;
}

.sj-joint--xs .sj-joint__icon {
  font-size: 0.78rem;
}

.sj-joint__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sj-joint__label {
  max-width: 4.2rem;
  font-size: 0.58rem;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  white-space: nowrap;
}

.sj-joint--label-above {
  flex-direction: column-reverse;
}

.sj-joint--label-above .sj-joint__label {
  margin-bottom: 0.08rem;
}

.sj-joint--label-below .sj-joint__count {
  margin-top: 0.02rem;
}

.sj-joint--label-out-l {
  align-items: flex-end;
  transform: translate(-72%, -50%);
}

.sj-joint--label-out-l.is-active {
  transform: translate(-72%, -50%) scale(1.08);
}

.sj-joint--label-out-r {
  align-items: flex-start;
  transform: translate(-28%, -50%);
}

.sj-joint--label-out-r.is-active {
  transform: translate(-28%, -50%) scale(1.08);
}

.sj-joint--label-out-l .sj-joint__label,
.sj-joint--label-out-r .sj-joint__label {
  max-width: 3.4rem;
  white-space: normal;
}

.sj-joint--xs .sj-joint__label {
  max-width: 2.8rem;
  font-size: 0.5rem;
  opacity: 0.88;
}

.sj-joint__count {
  font-size: 0.58rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: hsla(var(--joint-hue, 260), 90%, 78%, 1);
  border: 1px solid hsla(var(--joint-hue, 260), 60%, 60%, 0.4);
  pointer-events: none;
}

.sj-joint--empty .sj-joint__count {
  opacity: 0.55;
}

.sj-joint--lit .sj-joint__orb,
.sj-joint--warm .sj-joint__orb {
  border-color: hsla(var(--joint-hue, 260), 80%, 70%, 0.75);
}

.sj-joint--rich .sj-joint__orb {
  border-color: #ffd98a;
  box-shadow: 0 0 18px rgba(255, 210, 120, 0.45);
}

.sj-joint--full .sj-joint__orb {
  border-color: #fff1c2;
  box-shadow: 0 0 22px rgba(255, 220, 140, 0.55);
}

.sj-joint--full .sj-joint__count {
  background: rgba(255, 210, 120, 0.2);
  color: #ffe8a8;
}

.sj-body-stage__tip {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.sj-ring-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
}

.sj-ring-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  opacity: 0.78;
}

.sj-ring-legend__item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sj-ring-legend__item--inner i {
  background: hsl(210, 85%, 62%);
  box-shadow: 0 0 8px hsla(210, 85%, 62%, 0.6);
}

.sj-ring-legend__item--mid i {
  background: hsl(280, 75%, 62%);
  box-shadow: 0 0 8px hsla(280, 75%, 62%, 0.6);
}

.sj-aspect-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sj-aspect-sheet[hidden] {
  display: none !important;
}

.sj-aspect-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}

.sj-aspect-sheet__panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(78vh, 560px);
  overflow: auto;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #1a1530, #0e0c18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: sjSheetUp 0.28s ease;
}

@keyframes sjSheetUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.sj-aspect-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sj-aspect-sheet__title {
  margin: 0;
  font-size: 1rem;
}

.sj-aspect-sheet__close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.sj-aspect-sheet__pages {
  padding: 0.85rem 1rem 1.25rem;
}

.sj-aspect-sheet__hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sj-aspect-sheet__hero--portrait {
  justify-content: center;
  min-height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.sj-aspect-sheet__hero--portrait img {
  max-height: 160px;
  object-fit: contain;
}

.sj-aspect-sheet__icon {
  font-size: 1.8rem;
}

.sj-aspect-sheet__metric {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.sj-aspect-sheet__desc {
  font-size: 0.78rem;
  opacity: 0.85;
  margin: 0 0 0.75rem;
}

.sj-aspect-sheet__thumbs {
  margin-bottom: 0.65rem;
}

.sj-aspect-sheet__note {
  width: 100%;
  margin-bottom: 0.65rem;
}

.sj-aspect-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.sj-aspect-sheet-open {
  overflow: hidden;
}

/* 玩家星途 Tab · 立体轨道（配置分环 · 可扩展） */
.profile-star-aspects--orbit {
  margin-top: 0.5rem;
}

.sj-orbit-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.sj-orbit-stats {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(120, 160, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sj-orbit-stats__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sj-orbit-stats__name {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.sj-orbit-stats__stars {
  font-size: 0.78rem;
  color: #ffd98a;
}

.sj-orbit-stats__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.sj-orbit-stats__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6eb5ff, #b088ff, #ffc96b);
  transition: width 0.4s ease;
}

.sj-orbit-stats__bar--map {
  height: 4px;
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
}

.sj-orbit-stats__bar--map > span {
  background: linear-gradient(90deg, rgba(240, 184, 106, 0.45), #f0b86a);
}

.sj-orbit-stats__map-hl {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.sj-orbit-stats__map-hl--radiant {
  color: #ffd98a;
}

.sj-orbit-stats__map-hl--equipped {
  color: rgba(255, 217, 138, 0.85);
}

.sj-orbit-stats__map-hl--basic {
  color: rgba(245, 230, 236, 0.65);
}

.sj-orbit-stats__hint {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.84;
}

.sj-orbit-hero {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto 1rem;
  aspect-ratio: 1;
}

.sj-orbit-hero__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sj-orbit-hero__track {
  fill: none;
  stroke-width: 1.4;
  opacity: 0.55;
}

.sj-orbit-hero__track--inner {
  stroke: hsla(210, 85%, 68%, 0.55);
  stroke-dasharray: 4 6;
}

.sj-orbit-hero__track--mid {
  stroke: hsla(275, 75%, 68%, 0.45);
  stroke-dasharray: 6 8;
}

.sj-orbit-hero__core-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.2;
}

.sj-orbit-hero__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.sj-orbit-hero__glyph {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.35rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(80, 120, 200, 0.35));
  border: 2px solid rgba(200, 230, 255, 0.45);
  box-shadow: 0 0 24px rgba(120, 180, 255, 0.35);
}

.sj-orbit-hero__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 230, 180, 0.55);
  box-shadow: 0 0 22px rgba(255, 210, 120, 0.35);
}

.sj-orbit-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.sj-orbit-rings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sj-orbit-ring {
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 16px;
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sj-orbit-ring--inner {
  box-shadow: inset 0 1px 0 rgba(120, 180, 255, 0.12);
}

.sj-orbit-ring--mid {
  box-shadow: inset 0 1px 0 rgba(180, 130, 255, 0.1);
}

.sj-orbit-ring__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.sj-orbit-ring__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sj-orbit-ring--inner .sj-orbit-ring__dot {
  background: hsl(210, 85%, 62%);
  box-shadow: 0 0 8px hsla(210, 85%, 62%, 0.65);
}

.sj-orbit-ring--mid .sj-orbit-ring__dot {
  background: hsl(275, 75%, 62%);
  box-shadow: 0 0 8px hsla(275, 75%, 62%, 0.65);
}

.sj-orbit-ring__title {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.sj-orbit-ring__progress {
  font-size: 0.68rem;
  opacity: 0.72;
}

.sj-orbit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.55rem;
}

.sj-orbit-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.55rem 0.35rem 0.5rem;
  border-radius: 14px;
  border: 1px solid hsla(var(--orbit-hue, 260), 45%, 55%, 0.22);
  background:
    radial-gradient(circle at 50% 0%, hsla(var(--orbit-hue, 260), 60%, 50%, calc(0.08 + var(--orbit-fill, 0) * 0.2)), transparent 68%),
    rgba(12, 14, 24, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sj-orbit-node:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sj-orbit-node.is-active,
.sj-orbit-node:focus-visible {
  transform: translateY(-2px);
  border-color: hsla(var(--orbit-hue, 260), 70%, 68%, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.sj-orbit-node__glow {
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: radial-gradient(circle, hsla(var(--orbit-hue, 260), 85%, 65%, calc(0.12 + var(--orbit-fill, 0) * 0.28)), transparent 72%);
  pointer-events: none;
}

.sj-orbit-node__orb {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid hsla(var(--orbit-hue, 260), 65%, 70%, calc(0.3 + var(--orbit-fill, 0) * 0.5));
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.38), transparent 48%),
    radial-gradient(circle, hsla(var(--orbit-hue, 260), 50%, 38%, calc(0.35 + var(--orbit-fill, 0) * 0.45)), hsla(var(--orbit-hue, 260), 55%, 18%, 0.9));
  box-shadow: 0 0 calc(6px + var(--orbit-fill, 0) * 16px) hsla(var(--orbit-hue, 260), 90%, 60%, calc(var(--orbit-fill, 0) * 0.55));
  overflow: hidden;
}

.sj-orbit-node__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.sj-orbit-node__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sj-orbit-node__label {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
}

.sj-orbit-node__metric {
  position: relative;
  z-index: 1;
  font-size: 0.56rem;
  padding: 0.06rem 0.38rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: hsla(var(--orbit-hue, 260), 90%, 78%, 1);
  border: 1px solid hsla(var(--orbit-hue, 260), 55%, 55%, 0.35);
}

.sj-orbit-node--lit .sj-orbit-node__orb,
.sj-orbit-node--warm .sj-orbit-node__orb {
  border-color: hsla(var(--orbit-hue, 260), 78%, 72%, 0.78);
}

.sj-orbit-node--rich .sj-orbit-node__orb {
  border-color: #ffd98a;
}

.sj-orbit-node--full .sj-orbit-node__orb {
  border-color: #fff1c2;
  box-shadow: 0 0 18px rgba(255, 210, 120, 0.45);
}

.dossier-skeleton--starjourney {
  min-height: 280px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .sj-aspect-sheet {
    align-items: center;
    padding: 1rem;
  }

  .sj-aspect-sheet__panel {
    border-radius: 18px;
    max-height: min(82vh, 620px);
  }
}
