@font-face {
  font-family: "Ma Shan Zheng";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/ma-shan-zheng-400.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/noto-sans-sc-400.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/noto-sans-sc-500.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/assets/fonts/noto-sans-sc-700.ttf") format("truetype");
}

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 900;
  font-display: optional;
  src: url("/assets/fonts/noto-sans-sc-900.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/space-grotesk-500.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/assets/fonts/space-grotesk-700.ttf") format("truetype");
}

@font-face {
  font-family: "ZCOOL KuaiLe";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/zcool-kuaile-400.ttf") format("truetype");
}

:root {
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --panel-soft: #fffaf3;
  --text: #241525;
  --muted: #775f68;
  --subtle: #a78b95;
  --line: rgba(120, 65, 88, 0.16);
  --line-strong: rgba(120, 65, 88, 0.26);
  --primary: #ef3f78;
  --primary-dark: #c7205a;
  --primary-soft: #fff0f5;
  --teal: #0f9f88;
  --amber: #db7c22;
  --sun: #ffd166;
  --mint: #7ee7c8;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 10px 24px rgba(108, 39, 69, 0.08);
  --shadow-hover: 0 18px 42px rgba(108, 39, 69, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: 
    radial-gradient(circle at 18% 8%, rgba(255, 209, 102, 0.32) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 0%, rgba(126, 231, 200, 0.26) 0 170px, transparent 171px),
    linear-gradient(180deg, #fffdf8 0, #fff7ed 340px, #f8fbff 100%);
  color: var(--text);
  font-family: "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--page-max, 1160px));
  min-height: 56px;
  margin: 0 auto;
  padding: 0 18px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4f8b, #ffb23f 58%, #20c7a5);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(239, 63, 120, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
}

.nav-dock {
  display: none;
}

.nav button,
.text-btn,
.wallet-pill {
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.nav button,
.text-btn {
  display: inline-flex;
}

.nav button,
.btn {
  gap: 6px;
}

.nav svg,
.btn svg {
  width: 16px;
  height: 16px;
}

.nav button:hover,
.text-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.nav button.active {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(239, 63, 120, 0.1);
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 178, 63, 0.42);
  background: rgba(255, 248, 220, 0.82);
  color: #8a4b12;
  font-weight: 700;
}

.coin-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  vertical-align: middle;
}

.coin-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.main {
  width: min(100%, var(--page-max, 1160px));
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.exposure-band {
  margin: 0 0 22px;
}

.hero-main {
  min-height: auto;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 230, 0.84)),
    linear-gradient(120deg, rgba(239, 63, 120, 0.18), rgba(32, 199, 165, 0.16));
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero-main::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(239, 63, 120, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 199, 165, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 0, transparent 76%);
}

.hero-main > * {
  position: relative;
}

.hero-main h1 {
  max-width: 720px;
  margin: 0 0 10px;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.08;
  color: #d12f6a;
}

.hero-main p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #6f4052;
  font-size: 16px;
  line-height: 1.65;
}

.search-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel {
  padding: 13px;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.76);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.quick-publish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.segmented button.active {
  border-color: rgba(239, 63, 120, 0.25);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-side {
  display: grid;
  gap: 10px;
}

.stat,
.ad {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat {
  padding: 14px;
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  color: #d12f6a;
  font-size: 24px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 13px 14px;
  color: #344054;
}

.ad strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.ad span {
  color: var(--muted);
  font-size: 13px;
}

.exposure-card {
  position: relative;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 70px 28px 26px;
  border-color: rgba(32, 199, 165, 0.28);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(255, 209, 102, 0.4), transparent 180px);
  overflow: hidden;
}

.exposure-card::before {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 199, 165, 0.2), transparent 64%);
  content: "";
}

.exposure-card strong {
  position: relative;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #17312d;
  max-width: min(760px, 100%);
  font-size: 28px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.exposure-card-empty {
  min-height: 190px;
}

.promo-exposure-card {
  min-height: 170px;
  margin: 14px 0 6px;
  border-color: rgba(239, 63, 120, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(126, 231, 200, 0.34), transparent 180px);
}

.promo-exposure-card strong {
  color: #3a1d2a;
  font-size: 24px;
}

.search-promo-band {
  margin: 14px 0 16px;
}

.exposure-card em {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--primary-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.exposure-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(239, 63, 120, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #b91c54;
  font-size: 13px;
  font-weight: 750;
}

.exposure-ribbon:hover {
  background: #fff;
  box-shadow: 0 10px 22px rgba(239, 63, 120, 0.16);
}

.exposure-rate {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #38635c;
  font-size: 13px;
  font-weight: 650;
}

.exposure-rate .coin-icon,
.exposure-rate .coin-icon svg {
  width: 16px;
  height: 16px;
}

.exposure-meta {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.exposure-meta span {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #5c4a51;
  font-size: 13px;
  font-weight: 650;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

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

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.post-card:hover {
  border-color: rgba(239, 63, 120, 0.24);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card.is-deleting {
  opacity: 0.48;
  pointer-events: none;
  transform: scale(0.99);
}

.super-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--danger);
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.12);
}

.super-delete-btn:hover {
  background: #fffbfa;
  border-color: rgba(180, 35, 24, 0.38);
  color: #912018;
}

.super-delete-btn svg {
  width: 16px;
  height: 16px;
}

.post-card.is-deleting .super-delete-btn svg {
  animation: refreshSpin 0.75s linear infinite;
}

.post-thumbs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.thumb-btn {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

.post-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.08);
  background: #f8f4f1;
}

.thumb-count {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.post-desc {
  display: -webkit-box;
  min-height: 50px;
  margin: 10px 0;
  overflow: hidden;
  color: #392536;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.xhs-attachment {
  margin-top: auto;
  padding-top: 8px;
  color: #7a7280;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  word-break: break-word;
}

.xhs-attachment a {
  color: #7a7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff0f5;
  color: #b91c54;
  font-size: 12px;
  font-weight: 650;
}

.price {
  margin-top: auto;
  padding-top: 10px;
  color: var(--teal);
  font-weight: 750;
}

.panel {
  padding: 18px;
}

.panel h1,
.panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.form.wide {
  max-width: none;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

input,
textarea,
select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.category-field {
  align-content: start;
}

.category-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
}

.category-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.category-chip:hover {
  border-color: rgba(239, 63, 120, 0.44);
  color: #c7205a;
}

.category-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.16), rgba(35, 170, 164, 0.16));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(239, 63, 120, 0.25);
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 8px;
}

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

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.task-row strong,
.task-row span,
.invite-box span {
  display: block;
}

.task-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-row.done {
  opacity: 0.72;
}

.invite-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 21, 37, 0.42);
  backdrop-filter: blur(10px);
}

.share-modal {
  width: min(100%, 980px);
  max-height: min(92vh, 820px);
  overflow: auto;
}

.share-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}

#shareCanvas {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}

.share-controls {
  display: grid;
  gap: 14px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4f8b, #ef3f78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.btn:hover {
  background: linear-gradient(135deg, #ef3f78, #c7205a);
  box-shadow: 0 10px 22px rgba(239, 63, 120, 0.22);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.btn.is-refreshing svg {
  animation: refreshSpin 0.75s linear infinite;
}

.btn.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.btn.secondary:hover {
  background: #f9fafb;
}

.btn.danger {
  background: var(--danger);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.section-head-actions .actions {
  margin-left: auto;
}

.setup-password-panel .section-head {
  align-items: flex-start;
}

.setup-skip {
  margin-left: auto;
  max-width: 280px;
  min-height: auto;
  padding: 2px 0;
  text-align: right;
  white-space: normal;
}

.form-actions {
  justify-content: flex-end;
}

.notice {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 13px;
}

.notice.error {
  border-color: #fecdca;
  background: #fffbfa;
  color: var(--danger);
}

.notice.success {
  border-color: #abefc6;
  background: #f6fef9;
  color: var(--success);
}

.refresh-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
  margin: -2px 0 14px;
  border-color: rgba(42, 157, 98, 0.34);
  background: linear-gradient(135deg, #ecfdf3, #fff);
  box-shadow: 0 12px 28px rgba(42, 157, 98, 0.12);
  font-weight: 700;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.refresh-feedback svg {
  width: 18px;
  height: 18px;
}

.refresh-feedback.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

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

.xhs-link-preview {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.xhs-link-preview.active {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.78);
  color: #166534;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.detail-desc {
  margin: 14px 0;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-top: 16px;
}

.detail-thumbs img {
  border-radius: 14px;
}

.detail-thumbs .thumb-btn {
  border-radius: 14px;
}

.image-viewer-backdrop {
  z-index: 120;
  padding: 18px;
  background: rgba(16, 12, 18, 0.76);
}

.image-viewer {
  position: relative;
  display: grid;
  place-items: center;
  width: min(96vw, 1180px);
  height: min(92vh, 860px);
}

.image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.image-close,
.image-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #22151f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

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

.image-prev {
  left: 12px;
}

.image-next {
  right: 12px;
}

.image-count {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #22151f;
  font-size: 13px;
}

.detail-actions {
  margin: 14px 0 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.record-list {
  display: none;
}

.record-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.record-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.record-main strong {
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
}

.record-main span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.bid-chart-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
}

.bid-chart-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.bid-chart-copy strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.bid-chart-copy span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bid-chart {
  position: relative;
  min-width: 0;
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 170, 164, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 252, 0.7));
}

.bid-chart svg {
  display: block;
  width: 100%;
  height: 300px;
}

.chart-grid {
  stroke: rgba(102, 112, 133, 0.16);
  stroke-width: 1;
}

.chart-grid.faint {
  stroke: rgba(102, 112, 133, 0.1);
}

.chart-axis {
  stroke: rgba(52, 64, 84, 0.34);
  stroke-width: 1.4;
}

.chart-label {
  fill: #667085;
  font-size: 12px;
}

.chart-area {
  fill: url(#bidLineFill);
}

.chart-line {
  fill: none;
  stroke: #ef3f78;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
  filter: drop-shadow(0 10px 12px rgba(239, 63, 120, 0.2));
}

.chart-cursor {
  opacity: 0;
  stroke: #23aaa4;
  stroke-dasharray: 5 5;
  stroke-width: 2;
  pointer-events: none;
}

.bid-chart.is-hovering .chart-cursor {
  opacity: 1;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  width: 170px;
  padding: 10px 11px;
  border: 1px solid rgba(35, 170, 164, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.14);
  color: var(--text);
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.guide-page {
  display: grid;
  gap: 18px;
  width: min(100%, 920px);
  margin: 0 auto;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid rgba(120, 65, 88, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.9)),
    linear-gradient(120deg, rgba(239, 63, 120, 0.1), rgba(32, 199, 165, 0.1));
  box-shadow: var(--shadow);
}

.guide-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(239, 63, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 199, 165, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000 0, transparent 72%);
}

.guide-hero h1 {
  position: relative;
  margin: 0;
  color: #9f1f4e;
  font-family: "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
}

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

.guide-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-content: start;
  min-height: 0;
  padding: 20px 22px;
  border-color: rgba(120, 65, 88, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(108, 39, 69, 0.06);
}

.guide-card h2 {
  position: relative;
  margin: 2px 0 0;
  padding-left: 12px;
  color: #7f2749;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.guide-card h2::before {
  position: absolute;
  top: 0.36em;
  bottom: 0.26em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef3f78, #20c7a5);
  content: "";
}

.guide-copy {
  display: grid;
  gap: 11px;
  max-width: 680px;
}

.guide-copy p {
  margin: 0;
  color: #3f3038;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

.guide-tabs {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(32, 199, 165, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.52), rgba(255, 250, 243, 0.72));
}

.guide-tab-list {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 260px);
  padding: 4px;
  border: 1px solid rgba(120, 65, 88, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-tab-list.single {
  grid-template-columns: 1fr;
  width: min(100%, 360px);
}

.guide-tab-list button {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: #775f68;
  font-size: 13px;
  font-weight: 700;
}

.guide-tab-list button.active {
  background: #fff;
  color: #9f1f4e;
  box-shadow: 0 8px 18px rgba(108, 39, 69, 0.08);
}

.guide-tab-panels {
  min-width: 0;
}

.guide-tab-panel {
  display: none;
  gap: 8px;
}

.guide-tab-panel.active {
  display: grid;
}

.guide-tab-panel p {
  padding-left: 12px;
  border-left: 2px solid rgba(32, 199, 165, 0.3);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 230, 0.82));
  box-shadow: var(--shadow);
  color: var(--text);
}

.profile-hero h1 {
  margin: 0 0 6px;
  color: #d12f6a;
  font-size: 22px;
  line-height: 1.3;
}

.profile-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.identity-box {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(32, 199, 165, 0.24);
  border-radius: 16px;
  background: rgba(236, 253, 245, 0.82);
}

.identity-box span {
  color: var(--muted);
  font-size: 12px;
}

.identity-box strong {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--text);
  font-size: 20px;
  word-break: break-all;
}

.identity-box strong span,
.wallet-card strong span,
.table td span {
  vertical-align: middle;
}

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

.wallet-card > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.82);
}

.wallet-card span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-card strong {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--text);
  font-size: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.profile-side {
  display: grid;
  gap: 14px;
}

.setting-card {
  display: grid;
  gap: 14px;
}

.setting-card h2 {
  margin: 4px 0;
  font-size: 18px;
}

.setting-card.compact {
  gap: 10px;
}

.upload-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.upload-empty.small {
  min-height: 110px;
  margin: 12px 0;
}

.detail-shot,
.profile-shot {
  display: block;
  width: min(100%, 420px);
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.detail-shot {
  width: 100%;
  max-height: 300px;
  margin: 12px 0;
}

.password-box {
  margin-top: 2px;
}

.hidden {
  display: none !important;
}

.footer {
  width: min(100%, var(--page-max, 1160px));
  margin: 0 auto;
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

body[data-device="desktop"] {
  --page-max: 1160px;
}

body[data-device="desktop"] .hero-main {
  min-height: 250px;
}

body[data-device="desktop"] .exposure-card {
  min-height: 250px;
}

body[data-device="desktop"] .post-card {
  min-height: 172px;
}

body[data-device="tablet"] {
  --page-max: 920px;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 209, 102, 0.28) 0 110px, transparent 111px),
    radial-gradient(circle at 100% 0%, rgba(126, 231, 200, 0.24) 0 150px, transparent 151px),
    linear-gradient(180deg, #fffdf8 0, #fff7ed 300px, #f8fbff 100%);
}

body[data-device="tablet"] .topbar-inner {
  align-items: flex-start;
  flex-direction: column;
  min-height: 0;
  padding: 12px 18px;
}

body[data-device="tablet"] .nav {
  justify-content: flex-start;
  width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
}

body[data-device="tablet"] .nav-dock {
  display: none;
}

body[data-device="tablet"] .nav::-webkit-scrollbar {
  display: none;
}

body[data-device="tablet"] .nav button,
body[data-device="tablet"] .wallet-pill {
  flex: 0 0 auto;
}

body[data-device="tablet"] .main {
  padding: 20px 18px 52px;
}

body[data-device="tablet"] .hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body[data-device="tablet"] .hero-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="tablet"] .hero-main {
  padding: 24px;
}

body[data-device="tablet"] .hero-main h1 {
  font-size: 38px;
}

body[data-device="tablet"] .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="tablet"] .profile-hero,
body[data-device="tablet"] .settings-grid,
body[data-device="tablet"] .bid-chart-panel {
  grid-template-columns: 1fr;
}

body[data-device="tablet"] .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device="tablet"] .form-row .field:last-child {
  grid-column: 1 / -1;
}

body[data-device="tablet"] .exposure-card {
  min-height: 225px;
}

body[data-device="tablet"] .table {
  display: block;
  overflow-x: auto;
}

@media (max-width: 900px) {
  .hero,
  .detail-layout,
  .profile-hero,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .exposure-card {
    min-height: 210px;
  }

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

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

  .guide-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-copy {
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .bid-chart-panel {
    grid-template-columns: 1fr;
  }

  .bid-chart-copy strong {
    font-size: 19px;
  }
}

body[data-device="mobile"] {
  --page-max: 100%;
  background:
    radial-gradient(circle at 20% -2%, rgba(255, 209, 102, 0.3) 0 90px, transparent 91px),
    linear-gradient(180deg, #fffdf8 0, #fff7ed 260px, #f8fbff 100%);
}

body[data-device="mobile"] .topbar {
  position: relative;
  top: auto;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

body[data-device="mobile"] .topbar-inner {
  min-height: 54px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
}

body[data-device="mobile"] .brand {
  font-size: 17px;
}

body[data-device="mobile"] .brand-mark {
  width: 30px;
  height: 30px;
}

body[data-device="mobile"] .nav-main {
  display: none;
}

body[data-device="mobile"] .nav-dock {
  position: fixed;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 40;
  display: flex;
  min-height: calc(66px + env(safe-area-inset-bottom));
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border: 1px solid rgba(120, 65, 88, 0.16);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 18px 44px rgba(108, 39, 69, 0.18);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}

body[data-device="mobile"] .nav-dock::-webkit-scrollbar {
  display: none;
}

body[data-device="mobile"] .nav-dock button {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 4px 6px;
  border-radius: 16px;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

body[data-device="mobile"] .nav-dock svg {
  width: 18px;
  height: 18px;
}

body[data-device="mobile"] .wallet-pill {
  display: none;
}

body[data-device="mobile"] .main {
  padding: 14px 12px calc(112px + env(safe-area-inset-bottom));
}

body[data-device="mobile"] .footer {
  padding: 16px 12px calc(114px + env(safe-area-inset-bottom));
}

body[data-device="mobile"] .hero {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

body[data-device="mobile"] .hero-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-device="mobile"] .stat {
  padding: 11px;
}

body[data-device="mobile"] .stat strong {
  font-size: 20px;
}

body[data-device="mobile"] .section-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

body[data-device="mobile"] .section-head .actions,
body[data-device="mobile"] .actions {
  width: 100%;
}

body[data-device="mobile"] .section-head-actions .actions,
body[data-device="mobile"] .form-actions {
  margin-left: 0;
  justify-content: stretch;
}

body[data-device="mobile"] .setup-skip {
  margin-left: 0;
  text-align: left;
}

body[data-device="mobile"] .actions .btn,
body[data-device="mobile"] .section-head .btn {
  flex: 1 1 auto;
}

body[data-device="mobile"] .record-table {
  display: none;
}

body[data-device="mobile"] .record-list {
  display: grid;
  gap: 10px;
}

body[data-device="mobile"] .record-card .actions {
  justify-content: stretch;
}

body[data-device="mobile"] .profile-hero {
  padding: 14px;
}

body[data-device="mobile"] .identity-box,
body[data-device="mobile"] .wallet-card {
  grid-template-columns: 1fr;
}

body[data-device="mobile"] .bid-chart,
body[data-device="mobile"] .bid-chart svg {
  min-height: 240px;
  height: 240px;
}

body[data-device="mobile"] .chart-label {
  font-size: 10px;
}

body[data-device="mobile"] .chart-tooltip {
  width: 156px;
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  }

  .topbar {
    position: relative;
    top: auto;
  }

  .nav-main {
    display: none;
  }

  .nav-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 40;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border: 1px solid rgba(120, 65, 88, 0.16);
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.92);
    box-shadow: 0 18px 44px rgba(108, 39, 69, 0.18);
    backdrop-filter: blur(18px);
    overflow: hidden;
  }

  .nav-dock::-webkit-scrollbar {
    display: none;
  }

  .nav-dock button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 4px 6px;
    border-radius: 16px;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .nav-dock svg {
    width: 18px;
    height: 18px;
  }

  .wallet-pill {
    display: none;
  }

  .main {
    padding: 14px 12px calc(112px + env(safe-area-inset-bottom));
  }

  .hero-main,
  .guide-hero,
  .panel {
    padding: 14px;
  }

  .guide-hero h1 {
    font-size: 24px;
    line-height: 1.32;
  }

  .guide-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .guide-card h2 {
    font-size: 16px;
  }

  .guide-copy p {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-main h1 {
    font-size: 28px;
    line-height: 1.18;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-main p {
    font-size: 14px;
    line-height: 1.7;
    word-break: normal;
  }

  .brand span:last-child,
  .section-head h1,
  .section-head h2,
  .panel h1,
  .panel h2 {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .exposure-card {
    min-height: 190px;
    padding: 64px 16px 18px;
  }

  .exposure-card strong {
    font-size: 20px;
  }

  .promo-exposure-card {
    min-height: 150px;
  }

  .promo-exposure-card strong {
    font-size: 20px;
  }

  .exposure-rate {
    left: 16px;
  }

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

  .search-row,
  .quick-publish {
    grid-template-columns: 1fr;
  }

  .task-row,
  .share-workbench {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: start;
    padding: 12px;
  }

  input,
  textarea,
  select {
    min-height: 44px;
    font-size: 16px;
  }

  .table {
    display: block;
    overflow-x: auto;
  }

  .record-table {
    display: none;
  }

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

  .section-head-actions .actions,
  .form-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .record-card .actions {
    justify-content: stretch;
  }
}
