:root {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(99, 102, 241, 0.09);
  --text: #101828;
  --muted: #667085;
  --line: rgba(99, 102, 241, 0.18);
  --primary: #13c2b8;
  --primary-dark: #0e9384;
  --accent: #8b5cf6;
  --accent-2: #3b82f6;
  --ink: #eff6ff;
  --ink-2: #ffffff;
  --warning: #b7791f;
  --success: #12805c;
  --shadow: 0 24px 70px rgba(74, 85, 162, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(19, 194, 184, 0.22), transparent 30vw),
    radial-gradient(circle at 88% 6%, rgba(139, 92, 246, 0.2), transparent 28vw),
    radial-gradient(circle at 52% 80%, rgba(59, 130, 246, 0.12), transparent 38vw),
    linear-gradient(180deg, #fbfdff 0, #f2f7ff 46%, #fbfdff 100%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 8px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 260px;
  object-fit: contain;
}

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

.nav a,
.mobile-nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
}

.nav a.active,
.nav a:hover,
.mobile-nav a.active {
  background: rgba(160, 176, 255, 0.13);
  color: var(--text);
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-recharge {
  min-height: 42px;
  gap: 8px;
}

.nav-recharge span,
.nav-message span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-recharge strong {
  color: var(--text);
  font-size: 14px;
}

.nav-message {
  position: relative;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: rgba(247, 201, 72, 0.28);
  background: rgba(247, 201, 72, 0.1);
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2d55, #ef233c);
  color: #ffffff !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 18px rgba(239, 35, 60, 0.34);
}

.bell-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #101828;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-message:hover .bell-icon {
  stroke: var(--primary);
}

.nav-message span:not(.notification-count) {
  color: #a16207;
}

.topbar-cta,
.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  color: white;
  box-shadow: 0 0 28px rgba(19, 194, 184, 0.2), 0 16px 40px rgba(59, 130, 246, 0.18);
}

.topbar-cta:hover,
.button.primary:hover {
  background: linear-gradient(135deg, #20d9cf, #5b8dff);
}

.button:hover,
.topbar-cta:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.24);
  color: #5b21b6;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.mobile-nav {
  display: none;
}

main {
  min-height: calc(100vh - 180px);
}

.hero,
.section,
.page-title,
.detail-hero,
.dashboard,
.form-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0 54px;
}

.hero-copy {
  position: relative;
  padding: 10px 0;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(19, 194, 184, 0.32);
}

.hero-copy .eyebrow {
  color: var(--primary);
}

.hero-copy h1 {
  color: var(--text);
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 520px;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, rgba(19, 194, 184, 0.46), transparent);
}

.hero h1,
.page-title h1,
.detail-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-actions,
.section-head,
.card-action,
.media-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.hero-panel {
  overflow: hidden;
  min-height: 470px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(19, 194, 184, 0.18), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(139, 92, 246, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.panel-top,
.mini-list {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-top span,
.mini-list span,
.metric span,
.muted {
  color: var(--muted);
}

.hero-panel .panel-top span,
.hero-panel .mini-list span {
  color: var(--muted);
}

.hero-panel .mini-list strong {
  color: var(--text);
}

.market-board {
  display: grid;
  gap: 12px;
  min-height: 286px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 194, 184, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.48);
  background-size: 32px 32px;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.board-row.headline {
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.16), rgba(139, 92, 246, 0.12));
}

.board-row span {
  color: var(--text);
  font-weight: 700;
}

.board-row strong {
  color: #4f46e5;
}

.board-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.board-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 82px;
  padding: 12px 14px 0;
}

.board-chart i {
  display: block;
  flex: 1;
  min-width: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(19, 194, 184, 0.2);
}

.mini-list {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 34px;
}

.stats .metric:first-child {
  border-color: rgba(34, 230, 209, 0.38);
}

.metric {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6));
  box-shadow: 0 18px 52px rgba(74, 85, 162, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.1;
}

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

.metric-grid.compact .metric {
  padding: 10px;
}

.metric-grid.compact .metric strong {
  font-size: 18px;
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head .muted {
  max-width: 620px;
}

.section.no-top {
  padding-top: 0;
}

.section h2,
.content-block h2,
.form-card h2,
.summary-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
}

.text-link,
.table-link {
  color: var(--primary);
  font-weight: 800;
}

.media-name-link {
  display: inline-block;
  color: var(--text);
  font-weight: 900;
}

.media-domain-link {
  display: block;
  width: fit-content;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.media-name-link:hover,
.media-domain-link:hover,
.site-domain-link:hover {
  color: var(--primary);
}

.media-title-cell,
.media-card-tools,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-table-media {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.media-table-copy {
  min-width: 0;
}

.media-card-tools {
  align-self: flex-start;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #667085;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.media-table-media .favorite-button {
  flex: 0 0 60px;
  min-width: 60px;
  min-height: 54px;
  border-radius: 14px;
}

.favorite-button:hover,
.favorite-button.is-favorited {
  border-color: rgba(247, 201, 72, 0.48);
  background: rgba(255, 247, 214, 0.88);
  color: #b7791f;
  transform: translateY(-1px);
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.favorite-button.is-favorited .star-icon {
  fill: currentColor;
}

.media-table-price {
  display: inline-block;
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.media-card,
.content-block,
.form-card,
.summary-card,
.order-box,
.sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  box-shadow: 0 22px 70px rgba(74, 85, 162, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 330px;
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recommended-grid .media-card {
  height: 360px;
}

.media-card-head {
  min-height: 78px;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 230, 209, 0.46);
  box-shadow: 0 0 34px rgba(19, 194, 184, 0.14), 0 28px 72px rgba(74, 85, 162, 0.18);
}

.media-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.media-card p {
  margin: 0;
}

.media-card > p {
  display: -webkit-box;
  min-height: 66px;
  overflow: hidden;
  color: #344054;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.media-card .tag-row {
  min-height: 68px;
  align-content: flex-start;
}

.media-card .card-action {
  min-height: 42px;
  margin-top: auto;
}

.card-buy-button {
  min-width: 124px;
  border: 0;
  background: linear-gradient(135deg, #12c8bd, #2f80ed);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.2), 0 8px 20px rgba(18, 200, 189, 0.16);
}

.card-buy-button:hover {
  background: linear-gradient(135deg, #16d9cc, #3b8cff);
  color: #ffffff;
}

.rating,
.price-badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(34, 230, 209, 0.13);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.status.warning {
  background: rgba(247, 201, 72, 0.14);
  color: var(--warning);
}

.status.success {
  background: rgba(50, 213, 131, 0.14);
  color: var(--success);
}

.status.info,
.status.neutral {
  background: rgba(79, 124, 255, 0.16);
  color: #3446a8;
}

.price-badge {
  min-width: 78px;
  justify-content: center;
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.12);
}

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

.channel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.channel-row strong,
.channel-row span {
  display: block;
}

.channel-row span,
.quote-stack span {
  color: var(--muted);
  font-size: 13px;
}

.channel-buy {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.14), rgba(59, 130, 246, 0.12));
  color: #0e7490;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quote-stack {
  display: grid;
  gap: 4px;
}

.channel-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.channel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.channel-card h3,
.channel-card p {
  margin: 0;
}

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

.tag-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #344054;
  font-size: 13px;
}

.warning-tags span {
  background: rgba(247, 201, 72, 0.12);
  color: #ffe29c;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

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

.steps div,
.benefit-grid div,
.example-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.steps span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
}

.page-title {
  padding: 56px 0 28px;
}

.page-title h1,
.detail-hero h1 {
  color: var(--text);
}

.page-title .muted {
  max-width: 720px;
}

.page-title.compact-title {
  width: 100%;
  padding: 0 0 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
  box-shadow: 0 22px 70px rgba(74, 85, 162, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.filters label {
  flex: 0 1 160px;
  min-width: 150px;
}

.filters .search-field {
  flex: 0 1 260px;
  min-width: 230px;
}

.filters .media-filter-dropdown {
  flex: 0 1 180px;
  min-width: 170px;
}

.filters .media-filter-dropdown > span {
  color: #344054;
  font-weight: 700;
}

.filters.is-locked {
  opacity: 0.72;
}

.gate-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 22px;
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.1), rgba(139, 92, 246, 0.09)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 58px rgba(74, 85, 162, 0.12);
}

.gate-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 22px;
  border: 1px dashed rgba(99, 102, 241, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.07), rgba(139, 92, 246, 0.06)),
    rgba(255, 255, 255, 0.68);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(34, 230, 209, 0.58);
  background: white;
  box-shadow: 0 0 0 3px rgba(19, 194, 184, 0.12);
}

.filters label span,
.form-card label span {
  color: #344054;
}

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

.field-with-hint {
  align-self: start;
}

.field-with-hint .field-hint {
  min-height: 18px;
}

.owner-verify-field {
  display: none;
}

[data-owner-state="owner"] .owner-verify-field {
  display: grid;
}

.seller-media-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.input-with-unit input {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.input-with-unit input:focus {
  box-shadow: none;
}

.input-with-unit:focus-within {
  border-color: rgba(34, 230, 209, 0.58);
  background: white;
  box-shadow: 0 0 0 3px rgba(19, 194, 184, 0.12);
}

.input-with-unit strong {
  display: grid;
  min-height: 40px;
  padding: 0 14px;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--primary);
  font-size: 13px;
}

.form-title-row,
.form-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.form-title-row {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-title-row .eyebrow,
.form-title-row h2 {
  margin-bottom: 0;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(84, 102, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.05), rgba(139, 92, 246, 0.04)),
    rgba(255, 255, 255, 0.58);
}

.form-section-title strong,
.form-section-title span {
  display: block;
}

.form-section-title strong {
  color: var(--text);
}

.form-section-title span {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.multi-dropdown {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.identity-grid {
  align-items: start;
}

.multi-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
}

.multi-dropdown-trigger em {
  overflow: hidden;
  color: #667085;
  font-style: normal;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-dropdown-trigger strong {
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.multi-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(34, 230, 209, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 48px rgba(74, 85, 162, 0.18);
}

.multi-dropdown.open .multi-dropdown-menu {
  display: grid;
  gap: 2px;
}

.multi-dropdown-menu label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
}

.multi-dropdown-menu label:hover {
  background: rgba(19, 194, 184, 0.08);
}

.multi-dropdown-menu input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.auth-mode-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-entry-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-entry-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.auth-entry-tabs label {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

#entry-login:checked ~ .auth-entry-tabs label[for="entry-login"],
#entry-register:checked ~ .auth-entry-tabs label[for="entry-register"] {
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.16), rgba(139, 92, 246, 0.12));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 209, 0.22);
}

.auth-panel {
  display: none;
  gap: 16px;
}

#entry-login:checked ~ .auth-panel-login,
#entry-register:checked ~ .auth-panel-register {
  display: grid;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.auth-mode-tabs label {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

#auth-login:checked ~ .auth-mode-tabs label[for="auth-login"],
#auth-code:checked ~ .auth-mode-tabs label[for="auth-code"] {
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.16), rgba(139, 92, 246, 0.12));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 209, 0.22);
}

.auth-panel-login .code-auth-only {
  display: none;
}

#auth-code:checked ~ .code-auth-only {
  display: grid;
}

#auth-code:checked ~ .login-password {
  display: none;
}

#auth-code:checked ~ .forgot-password {
  display: none;
}

.link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.link-button:hover {
  color: #2f80ed;
}

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

.role-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option:has(input:checked) {
  border-color: rgba(34, 230, 209, 0.48);
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.12), rgba(139, 92, 246, 0.1));
  color: var(--text);
}

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

.message-panel {
  display: grid;
  gap: 16px;
}

.message-thread {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.message-bubble {
  max-width: 76%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.message-bubble.from-seller {
  justify-self: end;
  background: linear-gradient(135deg, rgba(19, 194, 184, 0.1), rgba(139, 92, 246, 0.08));
}

.message-bubble span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.message-bubble p {
  margin: 0;
  color: #344054;
}

.message-compose {
  display: grid;
  gap: 10px;
}

.message-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-compose .notice {
  margin: 0;
}

.message-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(247, 201, 72, 0.2);
  border-radius: 8px;
  background: rgba(247, 201, 72, 0.08);
}

.message-rule p {
  margin: 0;
  color: var(--muted);
}

.delivery-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.order-detail-modal {
  width: min(820px, calc(100vw - 40px));
  max-height: min(86vh, 900px);
  overflow-y: auto;
}

.order-detail-modal > * + * {
  margin-top: 14px;
}

.detail-status-notice {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.detail-status-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

[data-detail-state="buyer-pending"] .detail-pending,
[data-detail-state="seller-pending"] .detail-pending,
[data-detail-state="seller-progress"] .detail-progress,
[data-detail-state="buyer-review"] .detail-delivered,
[data-detail-state="buyer-revision"] .detail-revision,
[data-detail-state="seller-delivered"] .detail-delivered,
[data-detail-state="seller-revision"] .detail-revision,
[data-detail-state="buyer-completed"] .detail-completed,
[data-detail-state="buyer-rejected"] .detail-rejected,
[data-detail-state="seller-rejected"] .detail-rejected {
  display: flex;
}

[data-detail-state="buyer-pending"] .detail-delivery-box,
[data-detail-state="buyer-pending"] .buyer-review-field,
[data-detail-state="buyer-pending"] .buyer-review-actions,
[data-detail-state="buyer-review"] .revision-disabled,
[data-detail-state="buyer-completed"] .buyer-review-field,
[data-detail-state="buyer-completed"] .buyer-review-actions,
[data-detail-state="buyer-rejected"] .detail-delivery-box,
[data-detail-state="buyer-rejected"] .buyer-review-field,
[data-detail-state="buyer-rejected"] .buyer-review-actions,
[data-detail-state="seller-pending"] .detail-delivery-box,
[data-detail-state="seller-pending"] .seller-deliver-actions,
[data-detail-state="seller-pending"] .seller-note-field,
[data-detail-state="seller-progress"] .detail-delivery-box,
[data-detail-state="seller-progress"] .buyer-note-field,
[data-detail-state="seller-delivered"] .seller-note-field,
[data-detail-state="seller-delivered"] .seller-deliver-actions,
[data-detail-state="seller-delivered"] .buyer-note-field,
[data-detail-state="seller-revision"] .detail-delivery-box,
[data-detail-state="seller-revision"] .buyer-note-field,
[data-detail-state="seller-rejected"] .detail-delivery-box,
[data-detail-state="seller-rejected"] .seller-note-field,
[data-detail-state="seller-rejected"] .buyer-note-field,
[data-detail-state="seller-rejected"] .seller-deliver-actions {
  display: none;
}

.revision-disabled {
  display: none;
}

[data-detail-state="buyer-revision"] .request-change-button {
  display: none;
}

[data-detail-state="buyer-revision"] .revision-disabled {
  display: inline-flex;
}

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

.detail-summary-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.detail-summary-grid span,
.article-preview summary {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-summary-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.detail-summary-grid a {
  display: inline-block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-site-cell {
  grid-column: 1 / -1;
}

.detail-site-cell strong {
  font-size: 18px;
}

.article-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.05), rgba(139, 92, 246, 0.05)),
    rgba(255, 255, 255, 0.72);
}

.article-preview summary {
  cursor: pointer;
}

.article-preview-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.article-preview h3,
.article-preview h4,
.article-preview p {
  margin: 0;
}

.article-preview h3 {
  font-size: 19px;
  line-height: 1.35;
}

.article-preview h4 {
  margin-top: 4px;
  font-size: 15px;
}

.article-preview p {
  color: #344054;
  line-height: 1.75;
}

.delivery-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.delivery-box a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.modal-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.modal-actions .button {
  min-width: 132px;
  min-height: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 0;
  box-sizing: border-box;
  vertical-align: middle;
}

.modal-actions .button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.table-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.table-toolbar.align-right {
  justify-content: flex-end;
}

.table-toolbar label {
  width: min(260px, 100%);
}

.pagination.compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #101828;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icon-button:hover {
  border-color: rgba(34, 230, 209, 0.48);
  background: rgba(34, 230, 209, 0.1);
  color: var(--primary);
  transform: translateY(-1px);
}

.chat-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.order-table {
  min-width: 760px;
}

.seller-order-table {
  min-width: 1040px;
}

.favorite-table {
  min-width: 920px;
}

.order-table td:last-child {
  white-space: nowrap;
}

.seller-order-table .table-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-height: 38px;
}

.seller-order-table .table-actions .mini-button {
  min-width: 58px;
  min-height: 36px;
  margin-left: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 70px rgba(74, 85, 162, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(19, 194, 184, 0.07);
}

th {
  color: var(--muted);
  background: rgba(99, 102, 241, 0.07);
  font-size: 13px;
}

td small {
  display: block;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
  padding: 56px 0 28px;
}

.media-buy-header,
.performer-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.media-buy-header {
  padding: 42px 0 26px;
}

.buy-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.buy-title-row h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.site-domain-link {
  display: inline-flex;
  margin: -4px 0 18px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
}

.site-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 70px rgba(74, 85, 162, 0.12);
}

.site-metrics-grid div {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-metrics-grid div:nth-child(4n) {
  border-right: 0;
}

.site-metrics-grid div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.site-metrics-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-metrics-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
}

.performer-section {
  padding: 28px 0 58px;
}

.performer-list {
  display: grid;
  gap: 14px;
}

.performer-card {
  display: grid;
  grid-template-columns: 1fr 1.55fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 54px rgba(74, 85, 162, 0.12);
}

.performer-card.is-owner {
  position: relative;
  border-color: rgba(19, 194, 184, 0.58);
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.14), rgba(139, 92, 246, 0.08)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(19, 194, 184, 0.18), 0 24px 72px rgba(19, 194, 184, 0.18);
}

.performer-card.is-owner::before {
  content: "推荐：网站所有者直接接单";
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 3px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent-2));
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.performer-main h3,
.performer-main p {
  margin: 0;
}

.performer-main p {
  margin-top: 6px;
  color: var(--muted);
}

.performer-stars {
  margin-top: 12px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
}

.performer-stars span {
  color: var(--muted);
  font-weight: 600;
}

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

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

.performer-data strong {
  display: block;
}

.performer-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.performer-price-panel {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

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

.performer-price-panel strong {
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.detail-hero > div:first-child {
  padding: 30px 0;
}

.order-box,
.summary-card,
.form-card,
.content-block,
.sidebar {
  padding: 22px;
}

.order-box,
.summary-card {
  border-top: 3px solid var(--primary);
}

.order-box strong {
  display: block;
  margin: 4px 0;
  font-size: 40px;
  line-height: 1;
}

.detail-stats {
  margin-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 48px;
}

.content-block.wide {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.content-block h3 {
  margin: 18px 0 10px;
  font-size: 16px;
}

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

.form-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  align-items: start;
  padding-bottom: 56px;
}

.form-card {
  display: grid;
  gap: 16px;
}

.editor-wrap {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.editor-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.editor-toolbar button:hover {
  border-color: rgba(19, 194, 184, 0.52);
  color: var(--primary-dark);
}

.mock-editor {
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  outline: none;
}

.mock-editor:focus {
  border-color: rgba(19, 194, 184, 0.58);
  box-shadow: 0 0 0 3px rgba(19, 194, 184, 0.12);
}

.mock-editor h1,
.mock-editor h2,
.mock-editor h3,
.mock-editor p {
  margin: 0 0 12px;
}

.mock-editor a {
  color: #2563eb;
  text-decoration: underline;
}

.editor-image-placeholder {
  display: grid;
  min-height: 120px;
  margin: 12px 0;
  place-items: center;
  border: 1px dashed rgba(99, 102, 241, 0.42);
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--muted);
}

.summary-card {
  position: sticky;
  top: 92px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.summary-media {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.summary-media span,
.notice {
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 48px 0 60px;
}

.dashboard-main {
  display: grid;
  align-content: start;
  gap: 22px;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: max-content;
}

.sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.sidebar a.active,
.sidebar a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.dashboard-main .stats {
  width: 100%;
  margin: 0;
}

.dashboard-main > .content-block {
  margin-top: 0;
}

.workspace-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.workspace-actions.single {
  grid-template-columns: 1fr;
}

.wallet-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.12), rgba(139, 92, 246, 0.08)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 70px rgba(74, 85, 162, 0.14);
}

.wallet-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

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

.settings-grid .button {
  justify-self: start;
}

.withdraw-form {
  display: grid;
  gap: 16px;
}

.withdraw-form .button {
  justify-self: start;
}

.withdraw-usdt-field,
.withdraw-alipay-field {
  display: none;
}

[data-withdraw-method="usdt"] .withdraw-usdt-field,
[data-withdraw-method="alipay"] .withdraw-alipay-field {
  display: grid;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.38);
  backdrop-filter: blur(10px);
}

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

.modal {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.28);
}

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

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

.notification-list a {
  display: grid;
  grid-template-columns: 10px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.notification-list a:hover {
  border-color: rgba(34, 230, 209, 0.36);
  background: rgba(34, 230, 209, 0.07);
}

.notification-list a.is-unread {
  position: relative;
  border-color: rgba(19, 194, 184, 0.34);
  background: rgba(19, 194, 184, 0.08);
}

.notification-list a.is-unread::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.notification-list a.is-read::before {
  content: "";
  width: 8px;
  height: 8px;
}

.notification-list .status {
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: 0;
}

.notification-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.notification-list a.is-read {
  opacity: 0.68;
}

.notification-list a.is-read strong {
  font-weight: 650;
}

.notification-list small {
  color: var(--muted);
  white-space: nowrap;
}

.recharge-grid button {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
}

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

.recharge-grid button:hover {
  border-color: rgba(19, 194, 184, 0.52);
  box-shadow: 0 14px 34px rgba(19, 194, 184, 0.14);
}

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

.recharge-grid button.is-active {
  border-color: rgba(19, 194, 184, 0.72);
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.12), rgba(78, 110, 255, 0.08)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(19, 194, 184, 0.18);
}

.recharge-detail-panels {
  margin-top: 16px;
}

.recharge-detail-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

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

.recharge-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.recharge-account-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(19, 194, 184, 0.35);
  border-radius: 8px;
  background: rgba(19, 194, 184, 0.05);
}

.recharge-account-card > div {
  display: grid;
  gap: 4px;
}

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

.recharge-account-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.settings-grid-span-2 {
  grid-column: 1 / -1;
}

.admin-payment-settings {
  align-items: start;
}

.admin-pricing-settings {
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-pricing-settings .metric {
  min-height: 100%;
}

.admin-payment-settings textarea {
  min-height: 92px;
  resize: vertical;
}

.action-tile {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(19, 194, 184, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 62px rgba(74, 85, 162, 0.12);
}

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

.action-tile strong {
  color: var(--text);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  margin: 0;
}

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

.todo-list {
  display: grid;
  gap: 12px;
}

.todo-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 236px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 194, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.62);
  background-size: 32px 32px;
}

.admin-chart i {
  display: block;
  flex: 1;
  min-width: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(34, 230, 209, 0.18);
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(34, 230, 209, 0.34);
  border-radius: 8px;
  background: rgba(34, 230, 209, 0.12);
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

.mini-button.subtle {
  margin-left: 6px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.mini-button.danger {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(239, 68, 68, 0.08);
  color: #b42318;
}

.mini-button.danger:hover {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
}

.mini-button.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.56;
}

.admin-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

td .mini-button + .mini-button {
  margin-left: 6px;
}

.table-actions .mini-button + .mini-button,
.modal-actions .button + .button {
  margin-left: 0;
}

.modal label {
  margin-bottom: 14px;
}

.modal .button.primary {
  margin-top: 10px;
}

.modal .modal-actions .button.primary {
  margin-top: 0;
}

.order-detail-modal .revision-disabled {
  display: none !important;
}

[data-detail-state="buyer-review"] .revision-disabled {
  display: none !important;
}

[data-detail-state="buyer-revision"] .request-change-button {
  display: none !important;
}

[data-detail-state="buyer-revision"] .revision-disabled {
  display: inline-flex !important;
}

.publisher-intro {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 56px;
}

.publisher-access-notice {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(247, 201, 72, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.publisher-access-notice.is-ready {
  border-color: rgba(19, 194, 184, 0.22);
  background:
    linear-gradient(135deg, rgba(236, 253, 250, 0.92), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.78);
}

.publisher-access-notice strong {
  color: var(--text);
  font-size: 16px;
}

.publisher-access-notice p {
  margin: 0;
  color: var(--muted);
}

.publisher-access-actions {
  display: flex;
  padding-top: 4px;
}

.login-wrap {
  display: grid;
  min-height: 620px;
  width: min(520px, calc(100% - 40px));
  margin: 0 auto;
  place-items: center;
}

.site-login-wrap {
  width: min(760px, calc(100% - 40px));
  padding: 24px 0 48px;
}

.site-login-card {
  width: 100%;
  gap: 22px;
  padding: 32px;
  border-radius: 22px;
}

.site-login-hero {
  display: grid;
  gap: 14px;
}

.site-login-card .auth-panel {
  gap: 18px;
}

.site-login-card .button.primary {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font-size: 16px;
}

.site-login-card .verify-row .mini-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
}

.admin-login-wrap {
  width: min(760px, calc(100% - 40px));
  min-height: calc(100vh - 140px);
  padding: 24px 0 48px;
}

.admin-login-card {
  width: 100%;
  gap: 24px;
  padding: 32px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(19, 194, 184, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.92));
  box-shadow: 0 26px 80px rgba(74, 85, 162, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-login-hero {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.admin-login-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-login-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-form-shell {
  display: grid;
  gap: 18px;
}

.admin-login-card .auth-mode-tabs {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(245, 248, 255, 0.9);
}

.admin-login-card .auth-mode-tabs label {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

.admin-login-card label {
  display: grid;
  gap: 10px;
}

.admin-login-card label span {
  font-size: 14px;
  font-weight: 800;
}

.admin-login-card input {
  min-height: 56px;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-login-card .verify-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.admin-login-card .forgot-password {
  margin-top: -2px;
  font-size: 14px;
}

.admin-login-card .button.primary {
  min-height: 56px;
  border-radius: 14px;
  font-size: 16px;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 48px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0, rgba(19, 194, 184, 0.12), transparent 26%),
    radial-gradient(circle at 82% 0, rgba(139, 92, 246, 0.12), transparent 30%),
    #f8fbff;
  color: var(--text);
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 960px) {
  .topbar {
    padding: 0 20px;
  }

  .nav,
  .topbar-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav.open {
    display: grid;
    gap: 4px;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .hero,
  .split,
  .detail-hero,
  .form-layout,
  .dashboard,
  .performer-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-panel {
    min-height: 400px;
  }

  .summary-card {
    position: static;
  }

  .stats,
  .card-grid,
  .filters,
  .detail-grid,
  .example-grid,
  .benefit-grid,
  .channel-detail-grid,
  .site-metrics-grid,
  .performer-data {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-actions,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .page-title,
  .detail-hero,
  .media-buy-header,
  .performer-section,
  .dashboard,
  .form-layout,
  .publisher-intro,
  .detail-grid,
  .filters,
  .stats {
    width: min(100% - 28px, 1180px);
  }

  .hero h1,
  .page-title h1,
  .detail-hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .section-head,
  .card-action {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .card-grid,
  .filters,
  .detail-grid,
  .example-grid,
  .benefit-grid,
  .channel-detail-grid,
  .site-metrics-grid,
  .performer-data,
  .form-grid,
  .metric-grid,
  .steps,
  .workspace-actions,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .gate-banner {
    align-items: stretch;
    flex-direction: column;
  }

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

  .wallet-panel,
  .modal .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .buy-title-row,
  .performer-actions,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .site-metrics-grid div,
  .site-metrics-grid div:nth-child(4n),
  .site-metrics-grid div:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-board {
    min-height: 230px;
  }

  .footer {
    flex-direction: column;
    padding: 28px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
.admin-app-shell {
  min-height: 100vh;
}

.admin-dashboard {
  width: min(1560px, calc(100% - 48px));
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.admin-dashboard .dashboard-main,
.admin-dashboard .content-block,
.admin-dashboard .stats,
.admin-dashboard .admin-grid,
.admin-dashboard .admin-message-layout,
.admin-dashboard .table-wrap {
  min-width: 0;
}

.admin-dashboard .sidebar {
  top: 28px;
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(74, 85, 162, 0.12);
}

.admin-dashboard .page-title.compact-title {
  width: 100%;
  margin: 0;
}

.admin-dashboard .sidebar strong {
  margin: 4px 2px 8px;
  font-size: 14px;
}

.admin-dashboard .sidebar a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.dashboard .sidebar-secondary-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.dashboard .sidebar-action-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard .sidebar-secondary-link {
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 255, 0.96));
  color: #344054;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dashboard .sidebar-secondary-link:hover {
  border-color: rgba(19, 194, 184, 0.28);
  background: linear-gradient(180deg, rgba(239, 253, 251, 0.96), rgba(244, 247, 255, 0.96));
  color: var(--text);
}

.dashboard .sidebar-logout-button {
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.dashboard .sidebar-logout-button:hover {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 247, 0.98), rgba(255, 255, 255, 0.96));
  color: #b42318;
}

.admin-dashboard .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-dashboard table {
  min-width: 980px;
}

.admin-dashboard .admin-message-table {
  min-width: 0;
}

.admin-dashboard th,
.admin-dashboard td {
  overflow-wrap: anywhere;
}

.admin-dashboard td:last-child,
.admin-dashboard th:last-child {
  white-space: nowrap;
}

.admin-message-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.admin-message-list-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-message-table-wrap {
  overflow-x: hidden;
}

.admin-message-table {
  min-width: 100%;
}

.admin-thread-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  min-width: 0;
}

.admin-inline-input {
  width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.admin-media-list {
  display: grid;
  gap: 16px;
}

.admin-media-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 8px;
  padding: 14px;
  border: 1px solid rgba(84, 102, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-media-search-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-media-search-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(84, 102, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.admin-media-result-count {
  margin: 0 0 14px;
}

.admin-media-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(19, 194, 184, 0.06), rgba(139, 92, 246, 0.05)),
    rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.admin-media-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 0.9fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.admin-media-summary::-webkit-details-marker {
  display: none;
}

.admin-media-summary-main {
  min-width: 0;
}

.admin-media-summary-main p {
  margin: 0;
}

.admin-media-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-media-summary-meta span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-media-summary-meta strong {
  color: var(--text);
  font-size: 16px;
}

.admin-media-detail-body {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-expand-control::before {
  content: "展开管理";
}

.admin-media-card[open] .admin-expand-control {
  background: rgba(19, 194, 184, 0.12);
  color: var(--primary-dark);
}

.admin-media-card[open] > .admin-media-summary .admin-expand-control::before {
  content: "收起管理";
}

.admin-media-status-stack {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-media-card h3 {
  margin: 0 0 4px;
}

.admin-media-status-stack {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-management-panel {
  border: 1px solid rgba(84, 102, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.admin-management-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-management-panel > summary::-webkit-details-marker,
.admin-seller-summary::-webkit-details-marker {
  display: none;
}

.admin-management-panel > summary strong {
  display: block;
  margin-bottom: 3px;
}

.admin-management-panel > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-panel-expand::before {
  content: "展开";
}

.admin-management-panel[open] > summary .admin-panel-expand::before {
  content: "收起";
}

.admin-management-panel-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-media-edit-grid,
.admin-seller-edit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.admin-seller-list {
  display: grid;
  gap: 12px;
}

.admin-seller-card {
  border: 1px solid rgba(84, 102, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.admin-seller-card.is-pending {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.72));
}

.admin-seller-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.3fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-seller-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-seller-title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.admin-seller-title-meta span {
  margin-top: 0;
}

.admin-seller-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-seller-summary-meta span {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(84, 102, 255, 0.08);
  color: var(--text);
}

.admin-seller-expand::before {
  content: "编辑报价";
}

.admin-seller-card[open] .admin-seller-expand::before {
  content: "收起报价";
}

.admin-seller-detail-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-action-row.align-left {
  justify-content: flex-start;
}

.admin-featured-grid {
  margin-bottom: 16px;
}

.compact-empty {
  padding: 20px 12px;
}

@media (max-width: 980px) {
  .admin-dashboard {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
  }

  .admin-dashboard .stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-message-layout {
    grid-template-columns: 1fr;
  }

  .admin-media-summary {
    grid-template-columns: 1fr;
  }

  .admin-media-summary-meta {
    grid-template-columns: 1fr 1fr;
  }

  .admin-media-search-form,
  .admin-seller-summary {
    grid-template-columns: 1fr;
  }

  .admin-media-edit-grid,
  .admin-seller-edit-grid {
    grid-template-columns: 1fr 1fr;
  }
}
