/* AI-generated visual theme for the real H5 application.
   This keeps app.js connected to the production API while moving the UI
   back to the dark slate / starfield style of the provided generated pages. */
:root {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(51, 65, 85, .72);
  --soft: #0f172a;
  --panel: rgba(30, 41, 59, .72);
  --night: #020617;
  --teal: #60a5fa;
  --teal-soft: rgba(37, 99, 235, .16);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, .16);
  --rose: #fb7185;
  --rose-soft: rgba(244, 63, 94, .14);
  --violet: #a78bfa;
  --violet-soft: rgba(124, 58, 237, .16);
  --blue: #60a5fa;
  --blue-soft: rgba(37, 99, 235, .16);
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, .14);
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  --radius: 12px;
}

html,
body {
  min-height: 100%;
  background: #020617;
}

body {
  color: #f8fafc;
  background:
    radial-gradient(circle at 20% -10%, rgba(37, 99, 235, .20), transparent 30%),
    radial-gradient(circle at 78% 0%, rgba(14, 165, 233, .12), transparent 32%),
    linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
}

.app-shell {
  background: transparent;
}

.h5-shell {
  position: relative;
  width: min(100%, 430px);
  max-width: 430px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  grid-template-rows: 56px 1fr 72px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: var(--shadow);
}

.h5-shell.flow-mode {
  grid-template-rows: 56px 1fr;
}

.h5-shell.auth-mode {
  grid-template-rows: 56px 1fr;
}

.phone-header {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .9);
  background: rgba(15, 23, 42, .88);
  color: #f8fafc;
  backdrop-filter: blur(16px);
}

.phone-header button,
.phone-header .ghost {
  border: 1px solid rgba(51, 65, 85, .72);
  background: rgba(30, 41, 59, .62);
  color: #cbd5e1;
  box-shadow: none;
}

.brand-mini b {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
}

.brand-mini span {
  color: #94a3b8;
}

.mark {
  border-radius: 9px;
  background:
    radial-gradient(circle at 42% 36%, #fbbf24 0 3px, transparent 4px),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, .9) 0 1px, transparent 2px),
    linear-gradient(135deg, #1e3a8a, #0f172a 72%);
  box-shadow: 0 12px 26px rgba(30, 64, 175, .32);
}

.h5-content {
  background: #0f172a;
  padding: 12px 16px 96px;
  scrollbar-color: #475569 transparent;
}

.h5-shell.flow-mode .h5-content {
  padding-bottom: 28px;
}

.bottom-nav {
  height: 72px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(30, 41, 59, .92);
  background: rgba(15, 23, 42, .94);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  color: #64748b;
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav button.active {
  color: #60a5fa;
  background: transparent;
  font-weight: 700;
}

.bottom-nav .svg,
.icon .svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.bottom-nav button.active .svg {
  stroke-width: 2.25;
}

.icon {
  width: 24px;
  height: 24px;
  background: transparent;
  color: currentColor;
}

.card,
.member-card,
.mobile-card,
.list-card,
.carousel-card,
.reply-card,
.detail-page {
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(30, 41, 59, .72);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .22);
  backdrop-filter: blur(12px);
}

.empty {
  border: 1px dashed rgba(71, 85, 105, .75);
  border-radius: 12px;
  background: rgba(30, 41, 59, .42);
  color: #94a3b8;
}

button.card:hover,
.mobile-card:hover,
.list-card:hover {
  background: rgba(30, 41, 59, .88);
  border-color: rgba(96, 165, 250, .38);
}

.carousel-card {
  position: relative;
  overflow: hidden;
  margin: -12px -16px 14px;
  border: 0;
  border-radius: 0;
  background: #1e293b;
  box-shadow: none;
}

.carousel-card.local {
  margin: 0 0 14px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  overflow: hidden;
}

.carousel-viewport {
  height: 192px;
  background: #1e293b;
}

.carousel-track,
.carousel-slide,
.carousel-art {
  height: 100%;
}

.carousel-art {
  min-height: 100%;
  border-radius: 0;
}

.carousel-art strong {
  display: none;
}

.carousel-card.local .carousel-viewport {
  height: 210px;
}

.carousel-slide {
  color: #f8fafc;
  background: #1e293b;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, #0f172a, rgba(15, 23, 42, .36), transparent);
}

.carousel-caption {
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
}

.carousel-caption b {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.carousel-caption small {
  color: #cbd5e1;
}

.carousel-dots {
  right: 16px;
  bottom: 16px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .45);
}

.carousel-dots span.active {
  width: 16px;
  background: #fff;
}

.astro-visual {
  background: #0f172a;
}

.astro-visual strong {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.member-card {
  margin-top: -8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, .92), rgba(30, 64, 175, .32)),
    rgba(30, 41, 59, .78);
  box-shadow: 0 18px 42px rgba(2, 6, 23, .30);
}

.member-hero-row {
  align-items: center;
  margin-bottom: 14px;
}

.avatar-ring {
  border: 2px solid #475569;
  background: linear-gradient(135deg, #1e3a8a, #334155);
  box-shadow: none;
}

.avatar-ring span {
  color: #f8fafc;
}

.member-hero-row h2,
.section-head h2,
.section-head h3,
.flow-head h2,
.card h2,
.card h3,
.activity-main h3,
.post-main h3,
.second-main h3 {
  color: #f8fafc;
}

.member-hero-row p,
.section-head small,
.muted,
.field small,
.field-row small,
.meta-row,
.meta-row small {
  color: #94a3b8;
}

.score-grid {
  gap: 10px;
}

.score-tile {
  min-height: 86px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 10px;
  background: rgba(15, 23, 42, .54);
  color: #cbd5e1;
}

.score-tile b {
  color: #f8fafc;
}

.score-tile.active .icon,
.score-tile.level .level-badge,
.gold {
  color: #fbbf24;
}

.score-tile.volunteer .icon {
  color: #fb7185;
}

.role-chip,
.tag,
.status,
.level-badge {
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 6px;
  background: rgba(15, 23, 42, .54);
  color: #cbd5e1;
}

.tag.blue,
.status.blue,
.level-badge.blue {
  border-color: rgba(96, 165, 250, .35);
  background: rgba(37, 99, 235, .18);
  color: #60a5fa;
}

.tag.amber,
.status.amber,
.level-badge.amber {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .16);
  color: #fbbf24;
}

.tag.rose,
.status.rose {
  border-color: rgba(251, 113, 133, .38);
  background: rgba(244, 63, 94, .14);
  color: #fb7185;
}

.status.green,
.tag.green {
  border-color: rgba(52, 211, 153, .35);
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.section-head {
  margin: 18px 0 10px;
}

.section-head.topless {
  margin-top: 0;
}

.activity-card,
.post-card,
.merchant-card,
.second-card,
.product-card {
  overflow: hidden;
  gap: 12px;
  background: rgba(30, 41, 59, .62);
}

.activity-cover,
.post-cover,
.mini-thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, .72);
}

.activity-main,
.post-main,
.second-main {
  color: #e2e8f0;
}

.primary,
.solid {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 12px 26px rgba(30, 64, 175, .24);
}

.primary:hover,
.solid:hover {
  background: #3b82f6;
}

.ghost {
  color: #cbd5e1;
  background: rgba(51, 65, 85, .52);
  border: 1px solid rgba(71, 85, 105, .72);
}

.link,
.back-link {
  color: #60a5fa;
  background: transparent;
}

.chip-row button,
.tab-switch button {
  border: 1px solid rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .54);
  color: #94a3b8;
}

.chip-row button.active,
.tab-switch button.active {
  border-color: rgba(96, 165, 250, .42);
  background: rgba(37, 99, 235, .20);
  color: #60a5fa;
}

.activity-mode-switch {
  position: relative;
  display: flex;
  gap: 0;
  padding: 4px;
  margin: 12px 0;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 9px;
  background: #0f172a;
}

.activity-mode-switch .tab-switch-indicator {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 7px;
  background: #334155;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  transition: transform .22s ease;
}

.activity-mode-switch .tab-switch-indicator.volunteer {
  transform: translateX(calc(100% + 8px));
}

.activity-mode-switch button,
.activity-mode-switch button.active {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.activity-mode-switch button.active {
  color: #f8fafc;
}

.field input,
.field select,
.field textarea,
.option-add input,
.rich-toolbar select,
.rich-toolbar input[type="color"],
.toolbar-link,
.rich-editor {
  border: 1px solid rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
}

.rich-toolbar {
  border-color: rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .62);
}

.rich-toolbar button {
  border: 1px solid rgba(71, 85, 105, .72);
  background: rgba(30, 41, 59, .72);
  color: #cbd5e1;
}

.rich-toolbar button:hover,
.toolbar-link:hover {
  border-color: rgba(96, 165, 250, .45);
  color: #bfdbfe;
}

.field input::placeholder,
.field textarea::placeholder,
.rich-editor:empty::before {
  color: #64748b;
}

.field label,
.option-editor label {
  color: #cbd5e1;
}

.field-row,
.schema-row,
.volunteer-row,
.volunteer-choice,
.level-price-row,
.mini-row {
  border-color: rgba(51, 65, 85, .72);
  background: rgba(15, 23, 42, .42);
  color: #e2e8f0;
}

.flow-page {
  color: #f8fafc;
}

.flow-head {
  border-bottom-color: rgba(51, 65, 85, .72);
  border-radius: 0;
  background: rgba(15, 23, 42, .92);
  color: #f8fafc;
  box-shadow: none;
}

.flow-head .back-link {
  color: #93c5fd;
  background: transparent;
  border: 0;
}

.flow-body {
  color: #e2e8f0;
}

.auth-content {
  position: relative;
  background: transparent;
  padding-top: 70px;
}

.auth-bg {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 238px;
  max-height: 238px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, .72) 58%, #0f172a 100%),
    url("./assets/poster-fallback-observatory.jpg") center top / cover no-repeat;
}

.auth-title {
  position: relative;
  margin: 0 0 22px;
}

.auth-title h1 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 28px;
  line-height: 1.18;
}

.auth-title p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.auth-panel {
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(30, 41, 59, .72);
  color: #f8fafc;
}

.auth-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 10px;
  background: rgba(30, 41, 59, .42);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
}

.auth-note .icon {
  color: #fbbf24;
}

.mine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
}

.mine-grid button {
  min-height: 66px;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
}

.mine-grid button:hover {
  background: rgba(30, 41, 59, .72);
}

.mine-grid .icon {
  width: 26px;
  height: 26px;
  color: #cbd5e1;
  background: transparent;
}

.mine-grid .icon .svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.mine-subhero {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, .78);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, .88), rgba(30, 64, 175, .22)),
    rgba(15, 23, 42, .72);
}

.mine-subhero h3 {
  margin: 0 0 4px;
  color: #f8fafc;
}

.mine-subhero p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

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

.mine-summary span,
.mine-row-card {
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 10px;
  background: rgba(15, 23, 42, .54);
}

.mine-summary span {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.mine-summary b {
  color: #f8fafc;
  font-size: 18px;
}

.mine-summary small {
  color: #94a3b8;
}

.mine-list {
  gap: 10px;
}

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

.mine-row-card h4 {
  margin: 0 0 5px;
  color: #f8fafc;
}

.mine-row-card small {
  color: #94a3b8;
}

.mine-row-card span {
  flex: none;
  color: #bfdbfe;
  font-size: 12px;
}

.rich-empty {
  display: grid;
  gap: 4px;
  padding: 20px 14px;
}

.rich-empty b {
  color: #e2e8f0;
}

.rich-empty small {
  color: #94a3b8;
}

.toast {
  border: 1px solid rgba(96, 165, 250, .28);
  background: rgba(15, 23, 42, .94);
  color: #bfdbfe;
}

@media (max-width: 430px) {
  .h5-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .carousel-card {
    margin-left: -12px;
    margin-right: -12px;
  }
}

/* 2026-05-30 AI UI alignment pass */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.h5-content,
.side-nav,
.flow-body,
.rich-editor,
textarea {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .32);
}

.brand-mini {
  max-width: calc(100% - 54px);
}

.brand-mini > div:last-child {
  min-width: 0;
}

.brand-mini b {
  white-space: nowrap;
}

.crumb-row {
  display: flex !important;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.crumb-row button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
}

.crumb-row button:last-child {
  color: #cbd5e1;
}

.crumb-row i {
  color: #475569;
  font-style: normal;
  font-size: 10px;
}

.notify-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0 !important;
  background: transparent !important;
  color: #cbd5e1 !important;
}

.notify-btn:hover {
  color: #fff !important;
  background: rgba(30, 41, 59, .72) !important;
}

.notify-dot {
  position: absolute;
  top: 7px;
  right: 6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  border: 1px solid #0f172a;
}

.carousel-card:not(.local) {
  margin: -12px -16px 16px;
  border-radius: 0;
  background: #0f172a;
}

.carousel-card:not(.local)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), #0f172a);
  z-index: 2;
}

.carousel-viewport {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  touch-action: pan-y;
}

.carousel-track {
  animation: none !important;
  transition: transform .36s ease;
  will-change: transform;
}

.carousel-slide {
  cursor: pointer;
}

.carousel-slide::after {
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, .64) 34%, rgba(15, 23, 42, 0) 100%);
}

.carousel-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
  margin: 0;
}

.carousel-dots button,
.carousel-dots span {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: width .25s ease, background .2s ease;
}

.carousel-dots button:hover,
.carousel-dots span:hover {
  background: rgba(255, 255, 255, .78);
}

.carousel-dots button.active,
.carousel-dots span.active {
  width: 18px;
  background: #fff;
}

.auth-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 180px 24px 24px;
}

.auth-title {
  margin: 0 0 18px;
  text-align: center;
}

.auth-title h1 {
  display: none;
}

.auth-title p {
  max-width: 300px;
  margin: 0 auto;
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

.auth-title p span {
  display: block;
}

.auth-panel {
  margin: 0 auto 18px;
  width: 100%;
  max-width: 360px;
  padding: 20px;
}

.auth-feedback {
  margin-top: -4px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 10px;
  color: #fecaca;
  background: rgba(127, 29, 29, .25);
  font-size: 13px;
  line-height: 1.45;
}

.auth-panel button[disabled] {
  cursor: wait;
  opacity: .72;
}

.auth-note {
  margin-top: auto;
  margin-bottom: 0;
}

.member-card {
  margin-top: -8px;
  padding: 16px;
  border-radius: 12px;
  border-color: rgba(51, 65, 85, .72);
  background: rgba(30, 41, 59, .72);
  box-shadow: 0 18px 42px rgba(2, 6, 23, .25);
  backdrop-filter: blur(12px);
}

.member-hero-row {
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.member-profile-main h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
}

.member-profile-main p {
  margin-top: 4px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.25;
}

.avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #475569;
  background: #334155;
  box-shadow: none;
}

.avatar-ring span {
  font-size: 14px;
}

.member-profile-main .level-badge {
  min-height: 18px;
  padding: 3px 6px;
  gap: 3px;
  border-radius: 4px;
  border-color: rgba(245, 158, 11, .30);
  background: rgba(245, 158, 11, .18);
  color: #fbbf24;
  font-size: 10px;
  line-height: 1;
}

.member-profile-main .level-badge b {
  font-size: 10px;
  line-height: 1;
}

.member-profile-main .level-logo .svg {
  width: 10px;
  height: 10px;
}

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

.member-edit-btn,
.member-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 8px;
  cursor: pointer;
}

.member-edit-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .54);
  color: #cbd5e1;
}

.member-edit-btn .svg {
  width: 14px;
  height: 14px;
}

.member-card-btn {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(59, 130, 246, .38);
  background: rgba(37, 99, 235, .18);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.role-wrap {
  margin: 0 0 14px;
  gap: 6px;
  justify-content: flex-start;
}

.role-chip {
  border-radius: 6px;
  background: #0f172a;
  display: inline-flex;
  min-height: 20px;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1;
}

.score-grid {
  border-top: 1px solid rgba(51, 65, 85, .68);
  padding-top: 12px;
  gap: 12px;
  margin: 0;
  margin-bottom: 0;
}

.score-tile {
  display: block;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.score-tile.level {
  padding-left: 12px;
  border-left: 1px solid rgba(51, 65, 85, .68);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.25;
}

.stat-label .svg {
  width: 12px;
  height: 12px;
}

.score-tile.active .stat-label .svg {
  color: #fbbf24;
}

.score-tile.volunteer .stat-label .svg {
  color: #fb7185;
}

.score-tile.level .stat-label .svg {
  color: #60a5fa;
}

.stat-value {
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.stat-value.gold {
  color: #fbbf24;
  padding-top: 3px;
  font-size: 14px;
  font-weight: 650;
}

/* Home member card: copied to the same proportions as the AI H5 source,
   with dedicated class names so old level/score components cannot inflate it. */
.ai-member-card {
  margin-top: -8px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(30, 41, 59, .72);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .25);
  backdrop-filter: blur(12px);
}

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

.ai-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-person-main {
  min-width: 0;
}

.ai-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #475569;
  border-radius: 999px;
  background: #334155;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 750;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-nickname {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
}

.ai-nickname > span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-level-pill {
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 4px;
  background: rgba(245, 158, 11, .18);
  color: #fbbf24;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
}

.ai-level-pill .svg {
  width: 10px;
  height: 10px;
  stroke-width: 2;
  fill: currentColor;
}

.ai-member-no {
  margin-top: 4px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
}

.ai-member-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 8px;
  background: rgba(37, 99, 235, .18);
  color: #60a5fa;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
}

.ai-member-btn:hover {
  color: #bfdbfe;
  background: rgba(37, 99, 235, .28);
}

.ai-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-role {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 5px 8px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1;
}

.ai-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(51, 65, 85, .72);
}

.ai-stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.2;
}

.ai-stat-label .svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}

.ai-stat-value {
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.ai-stat-value.gold {
  color: #fbbf24;
  padding-top: 3px;
  font-size: 14px;
  font-weight: 650;
}

.h-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 2px 4px;
  margin: 0 -2px;
}

.h-scroll-row > * {
  scroll-snap-align: start;
  flex: 0 0 148px;
}

.h-scroll-row .home-mini-card,
.h-scroll-row .second-card {
  position: relative;
  width: 148px;
  min-height: 178px;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}

.h-scroll-row .mini-thumb,
.h-scroll-row .post-cover {
  height: 92px;
  min-height: 92px;
  border: 0;
  border-radius: 0;
}

.h-scroll-row .mini-row > div:not(.mini-thumb),
.h-scroll-row .second-main {
  padding: 10px;
}

.h-scroll-row .mini-row strong {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .62);
  color: #fbbf24;
  font-size: 10px;
}

.h-scroll-row .second-card .split-actions {
  display: none;
}

.activity-card-full {
  display: block;
  padding: 0;
  border-radius: 12px;
}

.activity-cover-wide {
  position: relative;
  display: block;
  width: 100%;
  min-height: 148px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(30, 41, 59, .62);
}

.activity-cover {
  position: relative;
}

.cover-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  height: 78%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .24) 38%, rgba(15, 23, 42, .82) 74%, #0f172a 100%);
}

.activity-cover-wide .astro-visual {
  height: 148px;
  min-height: 148px;
  background: #0f172a;
}

.activity-cover .astro-visual {
  background: #0f172a;
}

.activity-cover-wide .astro-visual strong,
.activity-cover .astro-visual strong,
.flow-cover .astro-visual strong {
  display: none;
}

.activity-cover-wide .astro-visual.image-backed .image-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .18) 48%, #0f172a 100%);
}

.activity-cover-wide .astro-visual.image-backed.thumb-art img,
.flow-cover .astro-visual.image-backed.detail-hero img {
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transform: scale(1.45);
}

.activity-status-badge,
.activity-type-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
}

.activity-status-badge {
  right: 12px;
}

.activity-type-badge {
  left: 12px;
  color: #fff;
  background: rgba(2, 6, 23, .58);
  border-color: rgba(255, 255, 255, .14);
}

.activity-card-full .activity-main {
  position: relative;
  z-index: 4;
  margin-top: -30px;
  padding: 40px 14px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, #0f172a 30px, #0f172a 100%);
}

.title-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.activity-title-link {
  display: block;
  width: 100%;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.activity-title-link:hover {
  color: #93c5fd;
  background: transparent;
}

.activity-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, .68);
  color: #94a3b8;
  font-size: 12px;
}

.activity-info-grid span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-info-grid .svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.blue-text {
  color: #93c5fd;
}

.activity-bottom-row {
  display: grid;
  grid-template-columns: minmax(62px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.activity-price-box {
  min-width: 0;
}

.activity-bottom-row small {
  display: block;
  color: #64748b;
  text-decoration: line-through;
  font-size: 11px;
}

.activity-bottom-row strong {
  color: #fbbf24;
}

.activity-card-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.activity-card-actions::-webkit-scrollbar {
  display: none;
}

.activity-card-actions .mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 42px;
  min-height: 30px;
  padding: 6px 6px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
}

.activity-card-actions .svg {
  width: 12px;
  height: 12px;
}

.activity-card-actions .activity-join-action {
  min-width: 58px;
}

.compact-actions {
  width: auto;
  margin: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
}

.compact-actions::-webkit-scrollbar {
  display: none;
}

.activity-filter-panel {
  display: grid;
  gap: 8px;
  margin: 6px 0 12px;
}

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

.activity-select-row {
  display: grid;
  grid-template-columns: .82fr 1.2fr 1fr;
  gap: 8px;
}

.activity-search-row input,
.activity-search-row button,
.activity-select-row select {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, .78);
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  padding: 0 10px;
  font-size: 12px;
}

.activity-search-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-color: rgba(37, 99, 235, .46);
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

.activity-search-row button .svg {
  width: 13px;
  height: 13px;
}

#activityTypeFilter,
.activity-type-select {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", system-ui, -apple-system, "Microsoft YaHei", sans-serif;
}

#activityTypeFilter option,
.activity-type-select option {
  background: #0f172a;
  color: #e2e8f0;
}

.activity-card .split-actions {
  gap: 6px;
}

.activity-card .split-actions button {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
}

.activity-card .split-actions .svg {
  width: 12px;
  height: 12px;
}

.activity-join-action {
  min-width: 58px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
}

.home-activity-card {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  align-items: stretch;
}

.home-activity-card .activity-cover {
  min-height: 112px;
  height: 112px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: none;
}

.home-activity-card .activity-cover .astro-visual {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #0f172a;
}

.home-activity-card .activity-cover .astro-visual.image-backed img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.08) !important;
  transform-origin: center center;
}

.home-activity-card .cover-bottom-fade {
  height: 55%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .42) 62%, rgba(15, 23, 42, .78) 100%);
}

.home-activity-main {
  display: grid;
  align-content: space-between;
  gap: 5px;
  min-height: 112px;
}

.home-activity-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-activity-title-line {
  font-size: 12px;
  line-height: 1.2;
}

.home-activity-type {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-weight: 700;
}

.home-activity-title {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-activity-badges {
  gap: 4px;
  overflow: hidden;
}

.home-activity-badges .status,
.home-activity-badges .tag {
  min-height: 18px;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.home-activity-meta {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
}

.home-activity-meta .svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #64748b;
}

.home-activity-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-activity-bottom {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
}

.home-activity-bottom small {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  text-overflow: ellipsis;
}

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

.activity-admin-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 30px;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
}

.activity-admin-row .svg {
  width: 12px;
  height: 12px;
}

.section-head .publish-activity-button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 8px;
  background: rgba(37, 99, 235, .18);
  color: #60a5fa;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.publish-activity-button .icon,
.publish-activity-button .svg {
  width: 14px;
  height: 14px;
}

.editable-level-price {
  grid-template-columns: auto minmax(86px, 1fr) auto;
}

.level-price-input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, .78);
  background: rgba(2, 6, 23, .45);
  color: #f8fafc;
  padding: 0 8px;
}

.role-points-row .field {
  min-height: 74px;
}

.compact-section {
  padding: 12px;
}

.flow-actions {
  flex-wrap: wrap;
  margin: 12px 0;
}

.post-card .meta-row {
  flex-wrap: wrap;
}

.member-register-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 15% 18%, rgba(245, 158, 11, .16), transparent 26%),
    rgba(30, 41, 59, .72);
}

.member-register-hero h3 {
  margin: 10px 0 6px;
  color: #f8fafc;
}

.member-register-hero p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.form-section,
.builder-box,
.option-editor,
.map-panel,
.fixed-merchant,
.preview-box,
.image-mini,
.cover-preview,
.image-manager {
  border-color: rgba(51, 65, 85, .72);
  background: rgba(30, 41, 59, .68);
  color: #e2e8f0;
}

.form-section h3,
.image-manager-side h3,
.builder-box h3,
.option-editor h3 {
  color: #f8fafc;
}

.image-manager-side p,
.preview-box p,
.fixed-merchant span,
.fixed-merchant small {
  color: #94a3b8;
}

.publish-activity-page {
  display: grid;
  gap: 12px;
}

.publish-activity-page .form-section,
.publish-activity-page .builder-box,
.publish-activity-page .option-editor,
.publish-activity-page .image-manager {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.publish-activity-page .form-section h3,
.publish-image-manager h3 {
  font-size: 17px;
  font-weight: 650;
}

.publish-image-manager {
  padding: 14px;
}

.publish-image-hero {
  position: relative;
  min-height: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, .72);
  background: #0b1221;
}

.publish-image-hero .manager-hero {
  min-height: 150px;
  height: 150px;
  border-radius: 0;
}

.publish-image-hero .astro-visual.image-backed img,
.publish-image-hero .astro-visual.image-backed.manager-hero img {
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transform: scale(1.45);
}

.publish-image-hero .astro-visual.image-backed .image-shade {
  background: linear-gradient(to top, rgba(15, 23, 42, .62), rgba(15, 23, 42, .12), transparent);
}

.publish-image-hero .astro-visual strong,
.image-mini .astro-visual strong {
  display: none;
}

.image-drop-zone {
  width: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(59, 130, 246, .24), transparent 28%),
    linear-gradient(135deg, #0f172a, #07111f);
  color: #bfdbfe;
  text-align: center;
}

.image-drop-zone .svg {
  width: 30px;
  height: 30px;
  color: #60a5fa;
}

.image-drop-zone strong {
  color: #f8fafc;
  font-size: 15px;
}

.image-drop-zone small {
  max-width: 250px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.publish-cover-label {
  position: absolute;
  z-index: 4;
  left: 12px;
  top: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(96, 165, 250, .42);
  border-radius: 6px;
  background: rgba(37, 99, 235, .22);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 700;
}

.activity-image-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-image-strip .image-mini,
.activity-image-strip .image-add-card {
  min-height: 96px;
}

.activity-image-strip .image-mini {
  position: relative;
  overflow: hidden;
  padding: 0;
  gap: 0;
  border-radius: 12px;
  background: #0f172a;
}

.activity-image-strip .image-mini .tiny-art {
  min-height: 96px;
  border-radius: 0;
}

.activity-image-strip .image-mini > span {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .66);
  color: #e2e8f0;
  font-size: 10px;
}

.activity-image-strip .mini-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.activity-image-strip .mini-actions button {
  flex: 1;
  min-height: 24px;
  padding: 3px 4px;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 6px;
  background: rgba(15, 23, 42, .78);
  color: #bfdbfe;
  font-size: 10px;
}

.activity-image-strip .image-add-card {
  border-color: rgba(96, 165, 250, .26);
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
  color: #bfdbfe;
}

.price-section .level-price-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.price-section .editable-level-price {
  grid-template-columns: minmax(0, 1fr) 92px auto;
  min-height: 52px;
  padding: 10px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .42);
}

.price-section .level-badge {
  gap: 7px;
}

.price-section .level-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
}

.price-section .level-price-input {
  height: 36px;
  border-radius: 9px;
  text-align: right;
}

.price-section .editable-level-price small {
  color: #94a3b8;
  white-space: nowrap;
}

.management-section .form-two {
  align-items: stretch;
}

.management-section .field {
  min-height: 88px;
  align-content: start;
}

.role-points-row .field {
  min-height: auto;
}

.map-picker {
  border-color: rgba(71, 85, 105, .72);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, .08) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, .07) 1px, transparent 1px),
    rgba(15, 23, 42, .62);
  background-size: 22px 22px;
}

.map-picker > div {
  color: #cbd5e1;
}

.map-canvas {
  border-color: rgba(71, 85, 105, .72);
  background-color: #0f172a;
}

.tencent-map {
  min-height: 260px;
}

.map-unconfigured {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  color: #94a3b8;
}

.map-unconfigured strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
}

.map-load-error {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #fecaca;
}

.image-mini.cover {
  border-color: rgba(96, 165, 250, .48);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
}

.image-add-card {
  border-color: rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .58);
  color: #cbd5e1;
}

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

.fee-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 10px;
  background: rgba(15, 23, 42, .58);
  cursor: pointer;
}

.fee-plan input {
  position: absolute;
  opacity: 0;
}

.fee-plan:has(input:checked) {
  border-color: rgba(96, 165, 250, .52);
  background: rgba(37, 99, 235, .18);
}

.fee-plan span {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.fee-plan strong {
  color: #fbbf24;
}

.fee-plan small {
  grid-column: 1 / -1;
  color: #94a3b8;
}

.option-pills {
  gap: 8px;
}

.option-pill {
  border-color: rgba(71, 85, 105, .72);
  background: rgba(15, 23, 42, .58);
  color: #cbd5e1;
}

.option-pill input[type="checkbox"],
.option-pill input[type="radio"],
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 1px 0 0;
  accent-color: #2563eb;
  border-radius: 3px;
  box-shadow: none;
}

.check-row {
  color: #94a3b8;
}

button:hover,
.ghost:hover,
.field-row:hover,
.schema-row:hover,
.volunteer-row:hover,
.volunteer-choice:hover,
.mine-row-card:hover {
  background-color: rgba(51, 65, 85, .76);
  color: #f8fafc;
}

select option {
  background: #0f172a;
  color: #f8fafc;
}

select:focus,
input:focus,
textarea:focus,
.rich-editor:focus {
  border-color: rgba(96, 165, 250, .65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.credential-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(12px);
}

.credential-card {
  width: min(360px, 100%);
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .2), transparent 38%),
    #0f172a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  padding: 16px;
}

.credential-head {
  display: grid;
  grid-template-columns: 34px 1fr 30px;
  gap: 10px;
  align-items: center;
  color: #f8fafc;
}

.credential-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, .18);
  color: #93c5fd;
}

.credential-head small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.credential-qr {
  margin: 16px auto;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border: 10px solid #fff;
  background:
    repeating-linear-gradient(45deg, #0f172a 0 8px, #fff 8px 16px);
  color: #0f172a;
  font: 700 14px monospace;
  text-align: center;
  word-break: break-all;
}

.verify-row small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
}

.ai-activity-detail {
  position: relative;
  display: grid;
  gap: 14px;
  padding-bottom: 82px;
}

.ai-detail-hero {
  position: relative;
  height: 230px;
  margin: -12px -16px -34px;
  overflow: hidden;
  background: #1e293b;
}

.ai-detail-hero .astro-visual {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.ai-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, .72), transparent 45%),
    linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, .78) 28%, transparent 62%);
}

.ai-detail-hero-dots {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 36px;
  display: flex;
  gap: 6px;
}

.ai-detail-hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

.ai-detail-hero-dots span.active {
  width: 16px;
  background: #fff;
}

.ai-detail-card {
  position: relative;
  z-index: 5;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(30, 41, 59, .68);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(2, 6, 23, .22);
  padding: 16px;
}

.ai-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.ai-detail-tags .tag {
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
}

.ai-detail-tags .tag .svg {
  width: 11px;
  height: 11px;
}

.ai-detail-title-card h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: 0;
}

.ai-detail-info-card {
  display: grid;
  gap: 16px;
}

.ai-detail-info-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.ai-detail-info-row > .svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  margin-top: 1px;
}

.ai-detail-info-row strong {
  display: block;
  color: #e2e8f0;
  font-weight: 600;
}

.ai-detail-info-row small {
  display: block;
  margin-top: 5px;
  color: #fb7185;
  font-size: 12px;
}

.ai-detail-map {
  position: relative;
  height: 96px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 48%, rgba(59, 130, 246, .4), transparent 7%),
    linear-gradient(90deg, rgba(96, 165, 250, .12) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, .1) 1px, transparent 1px),
    #0f172a;
  background-size: auto, 24px 24px, 24px 24px, auto;
}

.ai-detail-map > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #60a5fa;
}

.ai-small-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(30, 64, 175, .5);
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #60a5fa;
  padding: 6px 10px;
  font-size: 10px;
  cursor: pointer;
}

.ai-detail-kv {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(51, 65, 85, .72);
  color: #94a3b8;
  font-size: 12px;
}

.ai-detail-kv b {
  color: #e2e8f0;
  text-align: right;
  font-weight: 500;
}

.ai-detail-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 750;
}

.ai-detail-card h2 .svg {
  width: 15px;
  height: 15px;
  color: #94a3b8;
}

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

.ai-quota-grid div {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, .55);
  border-radius: 9px;
  background: rgba(15, 23, 42, .52);
  padding: 12px 8px;
  text-align: center;
}

.ai-quota-grid small {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.ai-quota-grid strong {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 800;
}

.ai-quota-grid em {
  color: #60a5fa;
  font-style: normal;
}

.ai-price-card {
  padding: 0;
}

.ai-price-head {
  padding: 16px;
}

.ai-price-head > div {
  margin-bottom: 10px;
}

.ai-price-head small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  text-decoration: line-through;
}

.ai-price-head strong {
  display: block;
  color: #fbbf24;
  font-size: 21px;
  font-weight: 800;
}

.ai-price-head details {
  border-top: 1px solid rgba(51, 65, 85, .72);
  margin: 12px -16px -16px;
  padding: 0 16px 12px;
}

.ai-price-head summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.ai-price-head summary::-webkit-details-marker {
  display: none;
}

.ai-price-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.ai-detail-price-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-detail-price-row.current {
  margin: 0 -8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  font-weight: 700;
}

.ai-detail-article {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

.ai-detail-article p {
  margin: 0 0 12px;
}

.ai-detail-note {
  margin-top: 18px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 9px;
  background: rgba(15, 23, 42, .52);
  padding: 12px;
}

.ai-detail-note strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 12px;
}

.ai-detail-note ul {
  margin: 0;
  padding-left: 18px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.65;
}

.ai-detail-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-detail-admin-actions button,
.ai-detail-bottom button {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.ai-detail-bottom {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  margin: 0 -16px -16px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(30, 41, 59, .9);
  background: rgba(15, 23, 42, .95);
  backdrop-filter: blur(14px);
}

.ai-detail-bottom .primary {
  min-height: 44px;
  font-size: 14px;
  font-weight: 750;
}

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

.scanner-box video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, .32);
  background: #020617;
  object-fit: cover;
}

.poster-share-page {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 4px 0 18px;
}

.poster-help {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 10px;
  background: rgba(15, 23, 42, .68);
  color: #94a3b8;
  padding: 10px 12px;
  font-size: 12px;
  text-align: center;
}

.activity-poster-card {
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, .72);
  background: #020617;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .34);
  -webkit-touch-callout: default;
  user-select: auto;
}

.poster-hero {
  position: relative;
  height: 46%;
  overflow: hidden;
  background: #111827;
}

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

.poster-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .24), rgba(2, 6, 23, .06) 42%, #020617 100%),
    linear-gradient(0deg, rgba(2, 6, 23, .2), transparent 58%);
}

.poster-brand {
  position: absolute;
  left: 18px;
  top: 18px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.poster-content {
  position: relative;
  min-height: 54%;
  margin-top: -24px;
  padding: 0 22px 22px;
  color: #f8fafc;
}

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

.poster-tags span {
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 6px;
  background: rgba(15, 23, 42, .88);
  color: #cbd5e1;
  padding: 5px 8px;
  font-size: 11px;
}

.poster-tags span:first-child {
  border-color: rgba(59, 130, 246, .45);
  background: rgba(37, 99, 235, .22);
  color: #bfdbfe;
}

.activity-poster-card h1 {
  margin: 0 0 18px;
  color: #f8fafc;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 760;
  letter-spacing: 0;
}

.poster-meta {
  display: grid;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
}

.poster-meta span {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  align-items: start;
}

.poster-meta .svg {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  margin-top: 1px;
}

.poster-meta b {
  font-weight: 500;
}

.poster-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.poster-bottom small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 5px;
}

.poster-bottom strong {
  color: #fbbf24;
  font-size: 17px;
}

.poster-qr-box {
  width: 108px;
  text-align: center;
}

.poster-qr-box img {
  width: 108px;
  height: 108px;
  display: block;
  border: 6px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.poster-qr-box small {
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 10px;
}

.poster-actions {
  width: min(100%, 360px);
}

.activity-poster-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 0;
  background: #020617;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .46);
}

.activity-poster-visual .poster-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.activity-poster-visual .poster-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.activity-poster-visual .poster-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .18) 0%, rgba(2, 6, 23, .08) 28%, rgba(2, 6, 23, .74) 48%, #020617 72%, #020617 100%),
    linear-gradient(90deg, rgba(2, 6, 23, .30), transparent 45%, rgba(2, 6, 23, .18));
}

.poster-brand-lockup {
  position: absolute;
  top: 24px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}

.poster-brand-lockup img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
}

.poster-brand-lockup b,
.poster-organizer b {
  display: block;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: 0;
}

.poster-brand-lockup small,
.poster-organizer small {
  display: block;
  margin-top: 4px;
  color: rgba(226, 232, 240, .82);
  font-size: 9px;
  letter-spacing: .3px;
}

.activity-poster-visual .poster-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0 22px 22px;
  color: #f8fafc;
}

.poster-slogan {
  margin-bottom: 12px;
  color: rgba(226, 232, 240, .82);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 1px;
}

.poster-title-block {
  margin-bottom: 18px;
}

.poster-status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.poster-status-line span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 30px;
  border: 1px solid rgba(96, 165, 250, .58);
  border-radius: 10px;
  background: rgba(37, 99, 235, .28);
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
}

.poster-status-line i {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, .72);
}

.poster-status-line b {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 520;
}

.activity-poster-visual .poster-title-block h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 29px;
  line-height: 1.16;
  font-weight: 820;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.poster-title-block p {
  margin: 10px 0 0;
  color: rgba(203, 213, 225, .82);
  font-size: 14px;
  line-height: 1.55;
}

.activity-poster-visual .poster-meta {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .20);
  color: #dbe4f0;
  font-size: 13px;
  line-height: 1.45;
}

.activity-poster-visual .poster-meta span {
  grid-template-columns: 23px 1fr;
  gap: 12px;
  align-items: start;
}

.activity-poster-visual .poster-meta .svg {
  width: 22px;
  height: 22px;
  color: #60a5fa;
}

.poster-benefit-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  padding: 14px 0;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(8px);
}

.poster-benefit-box > div {
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid rgba(148, 163, 184, .20);
}

.poster-benefit-box > div:last-child {
  border-right: 0;
}

.poster-benefit-box span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .25);
  background: rgba(37, 99, 235, .18);
  color: #60a5fa;
}

.poster-benefit-box > div:nth-child(2) span {
  border-color: rgba(251, 191, 36, .28);
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
}

.poster-benefit-box > div:nth-child(3) span {
  border-color: rgba(167, 139, 250, .30);
  background: rgba(124, 58, 237, .16);
  color: #a78bfa;
}

.poster-benefit-box .svg {
  width: 20px;
  height: 20px;
}

.poster-benefit-box small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.2;
}

.poster-benefit-box strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.15;
}

.poster-benefit-box em {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  text-decoration: line-through;
}

.poster-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.poster-organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.poster-organizer > .svg {
  width: 24px;
  height: 24px;
  color: #cbd5e1;
  flex: 0 0 auto;
}

.poster-organizer b {
  font-size: 14px;
  white-space: nowrap;
}

.poster-qr-wrap {
  display: flex;
  align-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.poster-qr-wrap span {
  width: 76px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.poster-qr-wrap img {
  width: 74px;
  height: 74px;
  display: block;
  border: 5px solid #fff;
  border-radius: 6px;
  background: #fff;
}

/* AI mock aligned pages: community / merchant / secondhand / mine */
.ai-root-page {
  position: relative;
  margin: -2px -16px 0;
  padding: 0 0 28px;
  color: #e5e7eb;
}

.ai-root-page .carousel-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0f172a;
  box-shadow: none;
}

.ai-root-page .carousel-viewport {
  height: 176px;
  border-radius: 0;
}

.ai-root-page .carousel-art {
  border-radius: 0;
}

.ai-root-page .carousel-art strong {
  display: none;
}

.ai-root-page .image-shade {
  background: linear-gradient(180deg, rgba(2, 6, 23, .04) 0%, rgba(2, 6, 23, .16) 48%, #020617 100%);
}

.ai-root-page .carousel-caption {
  left: 16px;
  right: 84px;
  bottom: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ai-root-page .carousel-caption b {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.ai-root-page .carousel-caption small {
  margin-top: 4px;
  color: rgba(203, 213, 225, .82);
  font-size: 11px;
  line-height: 1.35;
}

.ai-root-page .carousel-dots {
  right: 16px;
  bottom: 18px;
  justify-content: flex-end;
}

.ai-root-page .carousel-dots button {
  width: 6px;
  height: 6px;
  border: 0;
  background: rgba(148, 163, 184, .56);
  cursor: pointer;
}

.ai-root-page .carousel-dots button.active {
  width: 18px;
  background: #60a5fa;
}

.ai-sticky-panel {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .94);
  background: rgba(2, 6, 23, .96);
  backdrop-filter: blur(18px);
}

.ai-board-tabs,
.ai-category-row,
.ai-sort-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ai-board-tabs::-webkit-scrollbar,
.ai-category-row::-webkit-scrollbar,
.ai-sort-row::-webkit-scrollbar {
  display: none;
}

.ai-board-tab {
  flex: 0 0 auto;
  padding: 0 1px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1;
}

.ai-board-tab.active {
  border-color: #60a5fa;
  color: #60a5fa;
  font-weight: 700;
}

.ai-sort-row {
  padding-top: 10px;
}

.ai-sort-pill,
.ai-category-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 999px;
  background: rgba(15, 23, 42, .65);
  color: #94a3b8;
  font-size: 12px;
}

.ai-sort-pill.active,
.ai-category-chip.active {
  border-color: rgba(96, 165, 250, .68);
  background: rgba(30, 64, 175, .34);
  color: #dbeafe;
}

.ai-post-list,
.ai-merchant-list,
.ai-second-list {
  display: grid;
}

.ai-post-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid rgba(30, 41, 59, .72);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.ai-post-row:active,
.ai-post-row:hover {
  background: rgba(15, 23, 42, .66);
}

.ai-post-author {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 9px;
}

.ai-post-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, .9);
  background: rgba(15, 23, 42, .96);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.ai-post-author b {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.2;
}

.ai-post-author small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
}

.ai-post-row h3 {
  margin: 0 0 9px;
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 660;
}

.ai-post-meta,
.ai-card-kicker,
.ai-merchant-meta,
.ai-second-meta,
.ai-second-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-post-meta span,
.ai-card-kicker span,
.ai-card-kicker em {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(30, 41, 59, .84);
  color: #93c5fd;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.ai-post-meta .amber,
.ai-card-kicker em {
  color: #fbbf24;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .22);
}

.ai-post-meta small {
  color: #64748b;
  font-size: 11px;
}

.ai-community-demo-page .carousel-viewport {
  height: 176px;
}

.ai-community-demo-page .ai-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-community-demo-page .ai-sort-pill .svg {
  width: 12px;
  height: 12px;
}

.ai-demo-post-row {
  display: block;
  padding: 14px 16px;
}

.ai-demo-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-demo-post-head > small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
}

.ai-demo-post-row .ai-post-author {
  margin: 0;
  min-width: 0;
}

.ai-demo-post-row .ai-post-author b {
  overflow: hidden;
  max-width: 104px;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-post-role {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(71, 85, 105, .82);
  border-radius: 6px;
  background: rgba(30, 41, 59, .76);
  color: #94a3b8;
  font-size: 9px;
  font-style: normal;
  line-height: 1.2;
}

.ai-post-role.amber {
  border-color: rgba(245, 158, 11, .22);
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
}

.ai-post-role.blue {
  border-color: rgba(59, 130, 246, .24);
  background: rgba(37, 99, 235, .12);
  color: #93c5fd;
}

.ai-post-role.cyan {
  border-color: rgba(34, 211, 238, .22);
  background: rgba(8, 145, 178, .12);
  color: #67e8f9;
}

.ai-demo-post-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: start;
}

.ai-demo-post-main {
  min-width: 0;
}

.ai-demo-post-main h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 9px;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 640;
}

.ai-demo-post-row .ai-post-meta {
  gap: 7px;
}

.ai-demo-post-row .ai-post-meta small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ai-demo-post-row .ai-post-meta small .svg {
  width: 12px;
  height: 12px;
}

.ai-demo-post-row .ai-post-thumb {
  width: 90px;
  height: 68px;
  border-radius: 10px;
}

.ai-post-thumb,
.ai-merchant-thumb,
.ai-second-thumb {
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
}

.ai-post-thumb {
  width: 88px;
  height: 88px;
}

.ai-demo-post-row .ai-post-thumb {
  width: 90px;
  height: 68px;
  border-radius: 10px;
}

.ai-post-thumb .astro-visual,
.ai-merchant-thumb .astro-visual,
.ai-second-thumb .astro-visual {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ai-post-thumb strong,
.ai-merchant-thumb strong,
.ai-second-thumb strong {
  display: none;
}

.ai-floating-publish {
  position: fixed;
  left: calc(50% + 145px);
  bottom: 84px;
  z-index: 18;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .36);
}

.ai-floating-publish .svg {
  width: 22px;
  height: 22px;
}

.ai-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.ai-section-title h2,
.ai-section-title h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.ai-section-title small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ai-section-title .solid {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
}

.ai-category-row {
  padding: 0 16px 12px;
}

.ai-merchant-list,
.ai-second-list {
  gap: 12px;
  padding: 0 16px 20px;
}

.ai-merchant-card,
.ai-second-card {
  width: 100%;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 14px;
  background: rgba(15, 23, 42, .58);
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.ai-merchant-card {
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 12px;
}

.ai-merchant-card:hover,
.ai-second-card:hover {
  border-color: rgba(71, 85, 105, .92);
  background: rgba(15, 23, 42, .78);
}

.ai-merchant-thumb {
  width: 84px;
  height: 84px;
}

.ai-merchant-info,
.ai-second-info {
  min-width: 0;
}

.ai-merchant-info h3,
.ai-second-info h3 {
  margin: 8px 0 5px;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 680;
}

.ai-merchant-info p,
.ai-second-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.ai-merchant-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
}

.ai-merchant-meta span:first-child {
  min-width: 0;
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-merchant-meta .svg {
  width: 13px;
  height: 13px;
}

.ai-benefit-strip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, .22);
  background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .04));
  color: #fbbf24;
  font-size: 11px;
}

.ai-benefit-strip .svg {
  width: 14px;
  height: 14px;
}

.ai-second-title {
  padding-top: 8px;
}

.ai-second-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 12px;
  background: rgba(30, 64, 175, .18);
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.5;
}

.ai-second-notice .svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.ai-second-cats {
  position: sticky;
  top: 0;
  z-index: 11;
  padding-top: 10px;
  background: rgba(2, 6, 23, .96);
  border-bottom: 1px solid rgba(15, 23, 42, .94);
}

.ai-second-card {
  grid-template-columns: 100px minmax(0, 1fr);
  padding: 10px;
}

.ai-second-thumb {
  width: 100px;
  height: 100px;
}

.ai-second-meta {
  margin-top: 8px;
  justify-content: space-between;
}

.ai-second-meta span {
  color: #64748b;
  font-size: 11px;
}

.ai-second-meta strong {
  color: #fbbf24;
  font-size: 17px;
}

.ai-second-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.ai-second-actions .tiny {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.ai-mine-page {
  padding: 8px 16px 28px;
}

.ai-mine-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}

.ai-mine-top-actions button {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #cbd5e1;
}

.ai-mine-top-actions .svg {
  width: 20px;
  height: 20px;
}

.ai-mine-top-actions i {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
}

.ai-mine-profile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(30, 41, 59, .92);
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.ai-mine-glow {
  position: absolute;
  top: -60px;
  right: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  filter: blur(36px);
  pointer-events: none;
}

.ai-mine-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-mine-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(71, 85, 105, .96);
  background: #0f172a;
}

.ai-mine-avatar img,
.ai-mine-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  object-fit: cover;
  color: #dbeafe;
  font-size: 22px;
  font-weight: 800;
}

.ai-mine-avatar em {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 5px;
  background: #fbbf24;
  color: #020617;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.ai-mine-user-main {
  min-width: 0;
}

.ai-mine-user-main h2 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.2;
}

.ai-mine-user-main p {
  margin: 0 0 6px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.ai-mine-user-main small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.ai-mine-role-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(30, 41, 59, .9);
}

.ai-mine-role-wrap > span:not(.level-badge) {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(71, 85, 105, .88);
  border-radius: 7px;
  background: rgba(15, 23, 42, .82);
  color: #cbd5e1;
  font-size: 11px;
}

.ai-mine-role-wrap .level-badge {
  height: 24px;
  border-radius: 7px;
}

.ai-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 0;
  row-gap: 16px;
  margin-top: 14px;
  padding: 15px 8px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 16px;
  background: rgba(15, 23, 42, .56);
}

.ai-quick-grid button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 11px;
}

.ai-quick-grid .icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(30, 41, 59, .86);
  color: #93c5fd;
}

.ai-service-section {
  margin-top: 18px;
}

.ai-service-section h3 {
  margin: 0 2px 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

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

.ai-service-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 13px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 14px;
  background: rgba(15, 23, 42, .58);
  color: inherit;
  text-align: left;
}

.ai-service-card:hover {
  background: rgba(15, 23, 42, .78);
}

.ai-service-card .icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(30, 41, 59, .86);
  color: #60a5fa;
}

.ai-service-card span {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 660;
}

.ai-service-card small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}

.ai-timeline-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 16px;
  background: rgba(15, 23, 42, .56);
}

.ai-timeline-card .ai-section-title {
  padding: 0 0 14px;
}

.ai-timeline {
  display: grid;
  gap: 18px;
  margin-left: 10px;
  padding-left: 18px;
  border-left: 1px solid rgba(51, 65, 85, .86);
}

.ai-timeline > div {
  position: relative;
}

.ai-timeline > div::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .12);
}

.ai-timeline b {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.35;
}

.ai-timeline small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.ai-logout-button {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 14px;
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
  font-size: 13px;
}

.ai-logout-button .svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 460px) {
  .ai-floating-publish {
    left: auto;
    right: 16px;
  }
}

/* 2026-06 interaction polish: keep every H5 page nav-visible and make imagery behave like native mobile cards. */
.h5-shell.flow-mode {
  grid-template-rows: 56px 1fr 72px;
}

.h5-shell.flow-mode .h5-content {
  padding-bottom: 96px;
}

.h5-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h5-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.carousel-viewport {
  touch-action: pan-y;
  overflow: hidden;
}

.carousel-track {
  transition: transform .34s cubic-bezier(.22, .72, .2, 1);
  will-change: transform;
}

.carousel-track.dragging {
  transition: none;
}

.carousel-dots button {
  cursor: pointer;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: width .2s ease, background .2s ease;
}

.carousel-dots button.active {
  width: 16px;
  background: #fff;
}

.carousel-card:not(.local)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), #0f172a 86%);
  z-index: 2;
}

.carousel-caption,
.carousel-dots {
  z-index: 3;
}

.activity-cover .astro-visual.image-backed img,
.activity-cover-wide .astro-visual.image-backed img {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.06) !important;
  transform-origin: center center;
  background: transparent !important;
}

.flow-cover .astro-visual.image-backed.detail-hero img,
.publish-image-hero .astro-visual.image-backed.manager-hero img {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.035) !important;
  transform-origin: center center;
  background: transparent !important;
}

.activity-cover .cover-bottom-fade,
.flow-cover::after,
.publish-image-hero .cover-bottom-fade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), #0f172a 92%);
}

.poster-generated-image {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, .42);
  user-select: none;
  -webkit-touch-callout: default;
}

.poster-generated-image.poster-is-generating {
  opacity: .76;
  filter: saturate(.82);
}

.rich-editor,
.article-body {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: rgba(203, 213, 225, .94) !important;
}

.rich-editor {
  caret-color: #111827;
}

.article-body {
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: 10px;
  line-height: 1.72;
}

.article-body.small {
  padding: 12px;
}

.rich-editor p,
.rich-editor span,
.rich-editor b,
.rich-editor strong,
.rich-editor li,
.article-body p,
.article-body span,
.article-body b,
.article-body strong,
.article-body li {
  color: inherit;
}

.embedded-image {
  display: inline-block;
  min-width: 120px;
  max-width: 100%;
  resize: horizontal;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  vertical-align: top;
}

.embedded-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.embedded-image .astro-visual {
  display: none;
}

.verify-md5 {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-all;
}

.credential-qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
}

.credential-qr img {
  width: 154px;
  height: 154px;
  border-radius: 8px;
  background: #fff;
}

.ai-product-detail {
  display: grid;
  gap: 14px;
}

.product-buy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 12px;
  background: rgba(15, 23, 42, .62);
}

.product-price-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-price-main span,
.product-stock-box span {
  color: #94a3b8;
  font-size: 12px;
}

.product-price-main b {
  color: #fbbf24;
  font-size: 28px;
  line-height: 1;
}

.product-price-main small {
  color: #cbd5e1;
  font-size: 12px;
}

.product-level-text {
  color: #bfdbfe;
  font-weight: 700;
}

.product-price-main del {
  color: #64748b;
}

.product-stock-box {
  display: grid;
  place-items: center;
  gap: 3px;
  border-left: 1px solid rgba(71, 85, 105, .72);
}

.product-stock-box b {
  color: #e2e8f0;
  font-size: 20px;
}

.editable-profile-cover {
  align-items: center;
}

.profile-avatar-upload {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, .38);
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  color: #bfdbfe;
  cursor: pointer;
}

.profile-avatar-upload img,
.profile-avatar-upload > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #e0f2fe;
  font-size: 24px;
  font-weight: 800;
}

.profile-avatar-upload em {
  position: absolute;
  inset: auto 0 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(2, 6, 23, .82);
  color: #dbeafe;
  font-size: 10px;
  font-style: normal;
  backdrop-filter: blur(8px);
}

.profile-avatar-upload em .svg {
  width: 11px;
  height: 11px;
}

/* AI mock merchant/product pages */
.ai-merchant-demo-page .carousel-viewport {
  height: 160px;
}

.ai-merchant-demo-page .carousel-caption {
  right: 94px;
  bottom: 16px;
}

.ai-merchant-action-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.ai-merchant-action-line h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.ai-merchant-action-line small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.ai-merchant-manage {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: 9px;
  background: rgba(37, 99, 235, .2);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
}

.ai-merchant-manage .svg {
  width: 13px;
  height: 13px;
}

.ai-merchant-sticky {
  padding: 10px 16px 9px;
}

.ai-merchant-sticky .ai-category-row {
  padding: 0;
}

.ai-demo-merchant-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
}

.ai-demo-merchant-card .ai-merchant-card-main {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.ai-demo-merchant-card .ai-merchant-thumb {
  position: relative;
  border-radius: 12px;
}

.ai-demo-merchant-card .ai-merchant-thumb span {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(2, 6, 23, .82);
  color: #cbd5e1;
  font-size: 9px;
  line-height: 1;
}

.ai-demo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
}

.ai-demo-card-head h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-card-head .svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #64748b;
}

.ai-demo-merchant-card .ai-benefit-strip {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  border-width: 1px 0 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, .12), transparent);
}

.ai-demo-merchant-card .ai-benefit-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-full-hero-carousel {
  position: relative;
  width: calc(100% + 32px);
  height: 35vh;
  min-height: 250px;
  margin: -2px -16px 0;
  overflow: hidden;
  background: #0f172a;
}

.ai-product-detail-page .ai-full-hero-carousel {
  height: 40vh;
  min-height: 270px;
}

.ai-merchant-detail-page .ai-full-hero-carousel,
.ai-product-detail-page .ai-full-hero-carousel {
  width: 100%;
  margin: 0;
}

.ai-full-hero-carousel .carousel-viewport,
.ai-full-hero-carousel .carousel-track,
.ai-full-hero-carousel .carousel-slide,
.ai-full-hero-carousel .astro-visual {
  height: 100%;
  border-radius: 0;
}

.ai-full-hero-carousel .astro-visual strong {
  display: none;
}

.ai-full-hero-carousel .image-backed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-full-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .72), transparent 42%),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0) 55%);
}

.ai-full-hero-dots {
  position: absolute;
  right: 16px;
  bottom: 30px;
  z-index: 2;
}

.ai-merchant-detail-page,
.ai-product-detail-page {
  margin: -2px -16px 0;
  color: #e5e7eb;
}

.ai-merchant-detail-stack,
.ai-product-detail-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 0 16px 30px;
  margin-top: -26px;
}

.ai-merchant-profile-card,
.ai-merchant-intro-card,
.ai-product-core-card,
.ai-product-desc-card,
.ai-product-buy-card {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, .96);
  border-radius: 16px;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
}

.ai-merchant-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .94);
}

.ai-merchant-profile-head h1 {
  margin: 8px 0 0;
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 760;
}

.ai-merchant-share {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(71, 85, 105, .8);
  border-radius: 10px;
  background: rgba(15, 23, 42, .7);
  color: #cbd5e1;
}

.ai-merchant-share .svg {
  width: 17px;
  height: 17px;
}

.ai-merchant-benefit {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .94);
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
}

.ai-merchant-benefit > .svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.ai-merchant-benefit b {
  display: block;
  font-size: 12px;
}

.ai-merchant-benefit small {
  display: block;
  margin-top: 3px;
  color: rgba(251, 191, 36, .82);
  font-size: 11px;
  line-height: 1.45;
}

.ai-merchant-contact-list {
  display: grid;
  gap: 13px;
  padding: 15px 16px;
  color: #cbd5e1;
  font-size: 13px;
}

.ai-merchant-contact-list button,
.ai-merchant-contact-list div {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.ai-merchant-contact-list .svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #94a3b8;
}

.ai-merchant-intro-card {
  padding: 16px;
}

.ai-merchant-intro-card h2,
.ai-product-desc-card h2,
.ai-merchant-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 720;
}

.ai-merchant-intro-card h2 .svg,
.ai-product-desc-card h2 .svg,
.ai-merchant-subtitle .svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

.ai-merchant-intro-card p,
.ai-product-desc-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.65;
}

.ai-merchant-products {
  display: grid;
  gap: 10px;
}

.ai-merchant-subtitle {
  padding: 6px 2px 0;
  margin-bottom: 2px;
}

.ai-merchant-subtitle h2 {
  margin: 0;
  font-size: 14px;
}

.ai-merchant-subtitle small {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}

.ai-merchant-product-list {
  display: grid;
  gap: 12px;
}

.ai-merchant-product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(30, 41, 59, .92);
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
}

.ai-product-thumb {
  position: relative;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(30, 41, 59, .94);
  border-radius: 12px;
  background: #020617;
}

.ai-product-thumb .astro-visual {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ai-product-thumb .astro-visual strong {
  display: none;
}

.ai-product-thumb span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(2, 6, 23, .84);
  color: #cbd5e1;
  font-size: 9px;
}

.ai-product-list-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ai-product-list-info > button {
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.ai-product-list-info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.ai-product-list-info p {
  overflow: hidden;
  margin: 0;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-product-list-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.ai-product-list-bottom div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ai-product-list-bottom small {
  color: #64748b;
  font-size: 10px;
}

.ai-product-list-bottom strong {
  margin-top: 2px;
  color: #fbbf24;
  font-size: 19px;
  line-height: 1;
}

.ai-product-list-bottom em {
  width: max-content;
  margin-top: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 5px;
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
  font-size: 9px;
  font-style: normal;
}

.ai-product-list-bottom > span {
  color: #64748b;
  font-size: 9px;
}

.ai-product-list-bottom > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #1e293b;
  color: #cbd5e1;
}

.ai-product-list-bottom > button .svg {
  width: 14px;
  height: 14px;
}

.ai-product-provider {
  overflow: hidden;
  color: #475569;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-product-core-card,
.ai-product-desc-card,
.ai-product-buy-card {
  padding: 16px;
}

.ai-product-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ai-product-price-row span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.ai-product-price-row strong {
  display: block;
  margin-top: 4px;
  color: #fbbf24;
  font-size: 32px;
  line-height: 1;
}

.ai-product-price-row small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 11px;
}

.ai-product-price-row em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 42%;
  padding: 4px 6px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 7px;
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.ai-product-price-row em .svg {
  width: 11px;
  height: 11px;
}

.ai-product-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-product-title-row > span {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(71, 85, 105, .8);
  border-radius: 6px;
  background: rgba(30, 41, 59, .82);
  color: #cbd5e1;
  font-size: 10px;
}

.ai-product-title-row h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 720;
}

.ai-product-merchant-link {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 8px 9px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 10px;
  background: rgba(2, 6, 23, .48);
  color: #cbd5e1;
  font-size: 12px;
}

.ai-product-merchant-link .svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #60a5fa;
}

.ai-product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-product-buy-row b {
  color: #e2e8f0;
  font-size: 14px;
}

.ai-product-buy-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.ai-product-buy-row select {
  width: 82px;
  height: 36px;
  border: 1px solid rgba(51, 65, 85, .92);
  border-radius: 10px;
  background: #020617;
  color: #e2e8f0;
  text-align: center;
}

.ai-delivery-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 41, 59, .9);
}

.ai-delivery-list label {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, .76);
  border-radius: 12px;
  background: rgba(2, 6, 23, .36);
  cursor: pointer;
}

.ai-delivery-list input {
  margin-top: 3px;
  accent-color: #3b82f6;
}

.ai-delivery-list span {
  display: grid;
  gap: 4px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.3;
}

.ai-delivery-list span > .svg {
  width: 15px;
  height: 15px;
  color: #60a5fa;
}

.ai-delivery-list small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.ai-product-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 12px;
  background: rgba(2, 6, 23, .45);
}

.ai-product-total span {
  color: #94a3b8;
  font-size: 12px;
}

.ai-product-total strong {
  color: #fbbf24;
  font-size: 22px;
}

.ai-product-buy-button {
  border-radius: 11px;
}

.member-certificate {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(71, 85, 105, .78);
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 8%, rgba(96, 165, 250, .24), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(30, 64, 175, .42));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
}

.member-cert-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, .18) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 34%, rgba(251, 191, 36, .72) 0 2px, transparent 3px);
  opacity: .8;
}

.member-certificate header,
.member-certificate footer,
.member-cert-name,
.member-cert-grid {
  position: relative;
  z-index: 1;
}

.member-certificate header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-certificate header img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
}

.member-certificate header b,
.member-cert-name strong {
  display: block;
  color: #fff;
}

.member-certificate header small,
.member-cert-name small,
.member-cert-grid span,
.member-certificate footer small,
.member-certificate footer span {
  color: #94a3b8;
  font-size: 11px;
}

.member-cert-name {
  margin: 22px 0 16px;
}

.member-cert-name strong {
  margin: 4px 0;
  font-size: 28px;
  letter-spacing: 0;
}

.member-cert-name span {
  color: #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.member-cert-grid {
  display: grid;
  gap: 10px;
}

.member-cert-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 10px;
  background: rgba(15, 23, 42, .54);
}

.member-cert-grid b {
  color: #e2e8f0;
  font-size: 13px;
}

.member-certificate footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.member-certificate footer img {
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
}

.scan-result .field-row {
  grid-template-columns: minmax(0, 1.5fr) auto auto;
}

/* Membership card and clickable personal records */
.member-card-stage {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.member-certificate {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 420px;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(7, 12, 28, .98), rgba(15, 23, 42, .96) 42%, rgba(20, 45, 94, .92)),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, .32), transparent 28%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 24px 68px rgba(0, 0, 0, .45);
}

.member-cert-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .72) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 22%, rgba(251, 191, 36, .68) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 88% 70%, rgba(219, 234, 254, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 28% 78%, rgba(147, 197, 253, .62) 0 1px, transparent 1.8px);
  opacity: .72;
  pointer-events: none;
}

.member-cert-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(96, 165, 250, .16);
  border-radius: 50%;
  pointer-events: none;
}

.member-cert-orbit.one {
  top: -72px;
  right: -86px;
}

.member-cert-orbit.two {
  left: -116px;
  bottom: -92px;
  border-color: rgba(251, 191, 36, .13);
}

.member-cert-head,
.member-cert-main,
.member-cert-info,
.member-cert-roles,
.member-cert-foot {
  position: relative;
  z-index: 1;
}

.member-cert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-cert-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.member-cert-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 10px 22px rgba(0, 0, 0, .35);
}

.member-cert-brand b {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 780;
}

.member-cert-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(148, 163, 184, .9);
  font-size: 8px;
  letter-spacing: .6px;
}

.member-cert-head em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: 8px;
  background: rgba(245, 158, 11, .10);
  color: #fde68a;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.member-cert-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: end;
  margin-top: 42px;
}

.member-cert-identity small {
  display: block;
  color: rgba(147, 197, 253, .78);
  font-size: 10px;
  letter-spacing: 1.2px;
}

.member-cert-identity strong {
  display: block;
  margin: 7px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.member-cert-identity span {
  display: inline-flex;
  max-width: 100%;
  color: #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.member-cert-qr {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, .18);
  border-radius: 13px;
  background: rgba(2, 6, 23, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.member-cert-qr img {
  width: 96px;
  height: 96px;
  padding: 6px;
  border-radius: 9px;
  background: #fff;
}

.member-cert-qr small {
  color: #94a3b8;
  font-size: 10px;
}

.member-cert-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}

.member-cert-info > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(71, 85, 105, .58);
  border-radius: 10px;
  background: rgba(15, 23, 42, .56);
}

.member-cert-info span {
  color: #64748b;
  font-size: 10px;
}

.member-cert-info b {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.25;
}

.member-cert-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.member-cert-roles span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 7px;
  background: rgba(30, 64, 175, .18);
  color: #dbeafe;
  font-size: 11px;
}

.member-cert-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.member-cert-foot span {
  color: rgba(148, 163, 184, .74);
  font-size: 9px;
  letter-spacing: .9px;
}

.member-cert-foot b {
  color: #fbbf24;
  font-size: 20px;
  letter-spacing: 1px;
}

.member-card-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.member-card-note .svg {
  width: 24px;
  height: 24px;
  color: #60a5fa;
}

.member-card-stage .gmc-card,
.member-card-stage .gmc-card * {
  box-sizing: border-box;
}

.gmc-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 16px;
  background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
  color: #e2e8f0;
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, .72),
    inset 0 1px 1px rgba(255, 255, 255, .10),
    inset 0 -1px 1px rgba(0, 0, 0, .5);
}

.gmc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  z-index: 10;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: skewX(-25deg);
  animation: gmc-shine 7s infinite;
  pointer-events: none;
}

@keyframes gmc-shine {
  0% { left: -150%; }
  18% { left: 200%; }
  100% { left: 200%; }
}

.gmc-bg-glow,
.gmc-bg-rings,
.gmc-bg-noise {
  position: absolute;
  pointer-events: none;
}

.gmc-bg-glow {
  top: -62px;
  left: -42px;
  z-index: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, .13) 0%, transparent 70%);
}

.gmc-bg-rings {
  right: -46px;
  bottom: -68px;
  z-index: 0;
  width: 238px;
  height: 238px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 20px rgba(255, 255, 255, .012),
    inset 0 0 0 40px rgba(255, 255, 255, .01);
}

.gmc-bg-noise {
  inset: 0;
  z-index: 0;
  opacity: .4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

.gmc-header,
.gmc-body,
.gmc-details {
  position: relative;
  z-index: 2;
}

.gmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
}

.gmc-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmc-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .42);
}

.gmc-title {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: .8px;
  white-space: nowrap;
}

.gmc-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(212, 175, 55, .34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, .12), rgba(212, 175, 55, .03));
  color: #d4af37;
  font-size: 11px;
  letter-spacing: .4px;
}

.gmc-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 22px 12px;
}

.gmc-main-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.gmc-name-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gmc-name {
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 660;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.gmc-level {
  padding: 3px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 100%);
  color: #020617;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, .2);
}

.gmc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gmc-tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  background: rgba(255, 255, 255, .055);
  color: #cbd5e1;
  font-size: 10px;
  letter-spacing: .2px;
}

.gmc-qr-wrapper {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.gmc-qr-box {
  width: 76px;
  height: 76px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .4);
}

.gmc-real-qr {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gmc-qr-hint {
  max-width: 90px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.gmc-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin-top: 16px;
  padding: 19px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 100%);
}

.gmc-detail-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gmc-full-width {
  grid-column: span 2;
}

.gmc-label {
  color: #64748b;
  font-size: 11px;
  letter-spacing: .4px;
}

.gmc-value {
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .2px;
}

.gmc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.gmc-highlight {
  color: #d4af37;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: .7px;
  text-shadow: 0 0 10px rgba(212, 175, 55, .2);
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .gmc-header,
  .gmc-body,
  .gmc-details {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gmc-name {
    font-size: 24px;
  }

  .gmc-qr-box {
    width: 68px;
    height: 68px;
  }
}

.gmc-ref-card-container,
.gmc-ref-card-container * {
  box-sizing: border-box;
}

.gmc-ref-card-container {
  width: 100%;
}

.gmc-ref-card-border {
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6d365 0%, #ffb347 48%, #6b542d 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .52), 0 0 18px rgba(229, 195, 136, .20);
}

.gmc-ref-card-inner {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 18px 16px 15px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, #0e1b38 0%, #071225 52%, #04070e 100%);
  color: #f8fafc;
}

.gmc-ref-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, .72) 0 1px, transparent 2px),
    radial-gradient(circle at 69% 66%, rgba(255, 255, 255, .72) 0 1px, transparent 2px),
    radial-gradient(circle at 23% 61%, rgba(255, 255, 255, .54) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 18%, rgba(246, 211, 101, .72) 0 1px, transparent 2px);
  background-size: 148px 148px;
  opacity: .58;
  pointer-events: none;
}

.gmc-ref-card-inner::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -66px;
  width: 136%;
  height: 132px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at top, rgba(96, 165, 250, .36) 0%, rgba(96, 165, 250, .14) 16%, transparent 62%),
    linear-gradient(180deg, rgba(147, 197, 253, .70), transparent 14%);
  opacity: .9;
  pointer-events: none;
}

.gmc-ref-observatory {
  position: absolute;
  right: 20px;
  top: 84px;
  width: 118px;
  height: 90px;
  opacity: .24;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, transparent 42%, rgba(130, 165, 209, .95) 43% 46%, transparent 47%) 48px 0 / 62px 48px no-repeat,
    linear-gradient(rgba(130, 165, 209, .9), rgba(130, 165, 209, .9)) 26px 48px / 82px 1px no-repeat,
    linear-gradient(rgba(130, 165, 209, .9), rgba(130, 165, 209, .9)) 34px 58px / 68px 1px no-repeat,
    linear-gradient(rgba(130, 165, 209, .9), rgba(130, 165, 209, .9)) 42px 48px / 1px 36px no-repeat,
    linear-gradient(rgba(130, 165, 209, .9), rgba(130, 165, 209, .9)) 91px 48px / 1px 36px no-repeat;
}

.gmc-ref-card-header,
.gmc-ref-member-id-section,
.gmc-ref-card-body,
.gmc-ref-dates-section,
.gmc-ref-slogan {
  position: relative;
  z-index: 1;
}

.gmc-ref-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.gmc-ref-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(246, 211, 101, .36), 0 10px 24px rgba(0, 0, 0, .34);
}

.gmc-ref-org-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gmc-ref-org-name {
  color: #e5c388;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: .4px;
}

.gmc-ref-card-name {
  color: #fff;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 820;
  letter-spacing: 1px;
}

.gmc-ref-member-id-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(229, 195, 136, .56);
}

.gmc-ref-label {
  width: 52px;
  flex: 0 0 auto;
  color: #9aa5b8;
  font-size: 13px;
  line-height: 1.25;
}

.gmc-ref-id-value {
  margin-top: 5px;
  color: #e5c388;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 560;
  letter-spacing: .8px;
  overflow-wrap: anywhere;
}

.gmc-ref-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 9px;
  align-items: start;
  margin-bottom: 11px;
}

.gmc-ref-info-list {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.gmc-ref-info-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmc-ref-info-item.roles {
  align-items: flex-start;
}

.gmc-ref-value {
  min-width: 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 580;
  overflow-wrap: anywhere;
}

.gmc-ref-value.strong {
  font-size: 18px;
  font-weight: 760;
}

.gmc-ref-level-badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #e5c388;
  border-radius: 9px;
  color: #e5c388;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.gmc-ref-level-badge .svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.gmc-ref-role-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gmc-ref-role-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid #1a365d;
  border-radius: 5px;
  color: #9fc0e8;
  background: rgba(37, 99, 235, .10);
  font-size: 12px;
  font-style: normal;
}

.gmc-ref-qr-section {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.gmc-ref-qr-box {
  width: 92px;
  height: 92px;
  padding: 4px;
  border: 2px solid #e5c388;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .42);
}

.gmc-ref-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gmc-ref-qr-tips {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.gmc-ref-scan-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.2;
}

.gmc-ref-scan-title .svg {
  width: 13px;
  height: 13px;
}

.gmc-ref-scan-desc {
  color: #8b95a6;
  font-size: 10px;
  line-height: 1.2;
}

.gmc-ref-dates-section {
  display: grid;
  gap: 6px;
  margin: 0 0 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(229, 195, 136, .44);
}

.gmc-ref-date-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmc-ref-value.gold {
  color: #e5c388;
}

.gmc-ref-renewal-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #9aa5b8;
  font-size: 12px;
  line-height: 1.35;
}

.gmc-ref-renewal-tip .svg {
  width: 14px;
  height: 14px;
  color: #82a5d1;
}

.gmc-ref-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  color: #e5c388;
}

.gmc-ref-slogan span {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5c388, transparent);
}

.gmc-ref-slogan b {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 2px;
}

.gmc-ref-slogan .svg {
  width: 18px;
  height: 18px;
  color: #e5c388;
}

@media (max-width: 360px) {
  .gmc-ref-card-inner {
    min-height: 468px;
    padding: 18px 16px 17px;
  }

  .gmc-ref-logo {
    width: 48px;
    height: 48px;
  }

  .gmc-ref-org-name {
    font-size: 18px;
  }

  .gmc-ref-card-name {
    font-size: 19px;
  }

  .gmc-ref-card-body {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .gmc-ref-qr-box {
    width: 92px;
    height: 92px;
  }

  .gmc-ref-label {
    width: 52px;
    font-size: 12px;
  }
}

.mine-row-card {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, .72);
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.mine-row-card::after {
  content: "›";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
}

.clickable-row {
  cursor: pointer;
}

.mine-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(30, 41, 59, .9);
  border-radius: 14px;
  background: rgba(15, 23, 42, .62);
}

.mine-detail-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mine-detail-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 12px;
  background: rgba(30, 64, 175, .18);
  color: #93c5fd;
}

.mine-detail-head .svg {
  width: 22px;
  height: 22px;
}

.mine-detail-head h3 {
  margin: 0 0 5px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.25;
}

.mine-detail-head small {
  color: #94a3b8;
  font-size: 12px;
}

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

.mine-detail-grid > div,
.mine-code-line {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(51, 65, 85, .68);
  border-radius: 10px;
  background: rgba(2, 6, 23, .24);
}

.mine-detail-grid span,
.mine-code-line span {
  color: #64748b;
  font-size: 10px;
}

.mine-detail-grid b,
.mine-code-line b {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mine-qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(96, 165, 250, .35);
  border-radius: 12px;
  background: rgba(30, 64, 175, .10);
}

.mine-qr-panel img {
  width: 136px;
  height: 136px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.mine-qr-panel small,
.mine-detail-note {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.mine-detail-note {
  margin: 0;
}

/* Final member certificate, composed from imagegen asset and Gemini layout */
.member-card-stage {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 0 20px;
  display: grid;
  gap: 16px;
}

.gmc-final-benefit {
  display: grid;
  grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px 18px 0;
}

.gmc-final-benefit-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .64), transparent);
}

.gmc-final-benefit-line::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #60a5fa;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(96, 165, 250, .85);
}

.gmc-final-benefit-line:first-child::after {
  right: 0;
}

.gmc-final-benefit-line:last-child::after {
  left: 0;
}

.gmc-final-benefit-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d2fe;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 0 16px rgba(59, 130, 246, .46);
  white-space: nowrap;
}

.gmc-final-benefit-copy .svg {
  width: 20px;
  height: 20px;
  color: #60a5fa;
  stroke-width: 1.8;
}

.gmc-final-card {
  position: relative;
  width: 100%;
  aspect-ratio: 676 / 980;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 18px;
  padding: clamp(20px, 6vw, 30px) clamp(18px, 6vw, 28px) clamp(18px, 5vw, 26px);
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  background: #071120 url("./assets/member-card-decoration-v2.png") center / 100% 100% no-repeat;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  isolation: isolate;
}

.gmc-final-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 4%, rgba(250, 204, 21, .16), transparent 24%),
    linear-gradient(180deg, rgba(3, 7, 18, .10), rgba(3, 7, 18, .20));
  pointer-events: none;
  z-index: -1;
}

.gmc-final-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(10px, 3.4vw, 18px);
}

.gmc-final-logo {
  width: clamp(44px, 13vw, 58px);
  height: clamp(44px, 13vw, 58px);
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .42));
}

.gmc-final-titles {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gmc-final-title-main {
  color: #fff7ed;
  font-size: clamp(21px, 6vw, 31px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.12;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .62);
}

.gmc-final-title-sub {
  color: #f8fafc;
  font-size: clamp(20px, 5.6vw, 30px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .62);
}

.gmc-final-member-no {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(10px, 3.4vw, 17px);
}

.gmc-final-member-no span,
.gmc-final-label,
.gmc-final-dates span {
  color: #9fb2d4;
  font-size: clamp(12px, 3.3vw, 15px);
  letter-spacing: .08em;
}

.gmc-final-member-no strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #f5ce7d;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(16px, 4.9vw, 23px);
  line-height: 1.1;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(245, 206, 125, .30);
}

.gmc-final-member-no::after {
  content: "";
  width: min(58%, 220px);
  height: 1px;
  margin-top: clamp(8px, 2.5vw, 13px);
  background: linear-gradient(90deg, rgba(245, 206, 125, .78), transparent);
}

.gmc-final-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 25vw, 112px);
  gap: clamp(9px, 3.2vw, 18px);
  align-items: center;
}

.gmc-final-info-col {
  display: grid;
  gap: clamp(6px, 2vw, 10px);
  min-width: 0;
}

.gmc-final-info-row {
  display: grid;
  grid-template-columns: clamp(50px, 14vw, 70px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gmc-final-name-row strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: clamp(19px, 5.4vw, 27px);
  line-height: 1.05;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .70);
}

.gmc-final-value {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(15px, 4.1vw, 20px);
  font-weight: 700;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmc-final-level {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(245, 206, 125, .88);
  border-radius: 8px;
  color: #f5ce7d;
  background: rgba(15, 23, 42, .50);
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 700;
  line-height: 1.15;
  box-shadow: inset 0 0 12px rgba(245, 206, 125, .10);
}

.gmc-final-level .svg {
  width: 16px;
  height: 16px;
  color: #f5ce7d;
  stroke-width: 2;
  flex: 0 0 auto;
}

.gmc-final-role-row {
  align-items: start;
}

.gmc-final-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.gmc-final-tags em {
  display: inline-flex;
  align-items: center;
  max-width: 86px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(96, 165, 250, .54);
  border-radius: 6px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, .42);
  font-size: clamp(10px, 2.9vw, 13px);
  font-style: normal;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 12px rgba(96, 165, 250, .10);
}

.gmc-final-qr-col {
  display: grid;
  justify-items: center;
  gap: 7px;
  align-self: end;
  padding-bottom: clamp(0px, .8vw, 6px);
}

.gmc-final-qr-box {
  width: clamp(84px, 25vw, 112px);
  height: clamp(84px, 25vw, 112px);
  padding: 6px;
  border: 1px solid rgba(245, 206, 125, .72);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .40);
}

.gmc-final-qr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.gmc-final-qr-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5ce7d;
  font-size: clamp(11px, 3vw, 13px);
  white-space: nowrap;
}

.gmc-final-qr-text .svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.gmc-final-qr-subtext {
  color: #b6c6e3;
  font-size: clamp(10px, 2.8vw, 12px);
  white-space: nowrap;
}

.gmc-final-dates {
  display: grid;
  gap: clamp(5px, 1.8vw, 9px);
  margin-top: clamp(17px, 4.8vw, 26px);
  padding-top: clamp(10px, 3vw, 16px);
  width: 100%;
  border-top: 1px solid rgba(245, 206, 125, .55);
}

.gmc-final-dates div {
  display: grid;
  grid-template-columns: clamp(54px, 15vw, 76px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.gmc-final-dates strong {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  color: #f8fafc;
  font-size: clamp(11px, 3.05vw, 15px);
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.gmc-final-dates div:nth-child(2) strong {
  color: #f5ce7d;
}

.gmc-final-dates p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #9fb2d4;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.25;
}

.gmc-final-dates .svg {
  width: 15px;
  height: 15px;
  color: #8ab4ff;
  stroke-width: 2;
  flex: 0 0 auto;
}

.gmc-final-slogan {
  position: absolute;
  left: clamp(28px, 8vw, 46px);
  right: clamp(28px, 8vw, 46px);
  bottom: clamp(19px, 5.4vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: clamp(7px, 2.4vw, 14px);
  color: #f5ce7d;
  font-size: clamp(11px, 3.1vw, 14px);
  font-weight: 500;
  letter-spacing: .28em;
  text-indent: .28em;
  text-shadow: 0 0 14px rgba(245, 206, 125, .36);
}

.gmc-final-slogan span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 206, 125, .62), transparent);
}

.gmc-final-slogan .svg {
  width: 18px;
  height: 18px;
  color: #f5ce7d;
  stroke-width: 1.6;
  text-indent: 0;
}

.gmc-final-notice {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 14px 18px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(96, 165, 250, .18), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, .76), rgba(8, 13, 28, .94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    0 14px 34px rgba(0, 0, 0, .28);
}

.gmc-final-notice-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.gmc-final-notice-title .svg {
  width: 18px;
  height: 18px;
  color: #f5ce7d;
  stroke-width: 1.7;
}

.gmc-final-notice p {
  position: relative;
  z-index: 2;
  max-width: 72%;
  margin: 9px 0 0;
  color: #aebde0;
  font-size: 13px;
  line-height: 1.58;
}

.gmc-final-notice-art {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 122px;
  height: 70px;
  opacity: .26;
  background:
    linear-gradient(156deg, transparent 0 33%, rgba(96, 165, 250, .30) 33% 35%, transparent 35%),
    radial-gradient(circle at 78% 18%, rgba(148, 163, 184, .55) 0 9px, transparent 10px),
    linear-gradient(90deg, transparent 77%, rgba(148, 163, 184, .48) 77% 80%, transparent 80%),
    linear-gradient(145deg, transparent 41%, rgba(96, 165, 250, .44) 41% 44%, transparent 44%),
    linear-gradient(25deg, transparent 22%, rgba(96, 165, 250, .52) 22% 25%, transparent 25%),
    radial-gradient(circle at 34% 36%, transparent 0 16px, rgba(96, 165, 250, .45) 17px 18px, transparent 19px);
}

@media (max-width: 374px) {
  .member-card-stage {
    gap: 13px;
  }

  .gmc-final-card {
    border-radius: 16px;
    padding-left: 17px;
    padding-right: 17px;
  }

  .gmc-final-title-main {
    font-size: 19px;
  }

  .gmc-final-title-sub {
    font-size: 18px;
  }

  .gmc-final-card-body {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
  }

  .gmc-final-info-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 7px;
  }

  .gmc-final-member-no strong {
    font-size: 16px;
  }

  .gmc-final-dates {
    width: 72%;
  }

  .gmc-final-notice p {
    max-width: 78%;
  }
}

/* AI source aligned forum / merchant / secondhand pages */
.ai-page-action-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
}

.ai-page-action-line h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.ai-page-action-line small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.ai-round-icon,
.ai-icon-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(71, 85, 105, .78);
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
}

.ai-round-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.ai-round-icon:hover,
.ai-icon-pill:hover {
  border-color: rgba(96, 165, 250, .5);
  background: rgba(30, 41, 59, .92);
  color: #f8fafc;
}

.ai-round-icon .svg {
  width: 18px;
  height: 18px;
}

.ai-search-panel {
  display: none;
  gap: 8px;
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(30, 41, 59, .72);
  background: rgba(2, 6, 23, .96);
}

.ai-search-panel.open {
  display: flex;
}

.ai-search-panel input {
  min-width: 0;
  flex: 1;
  height: 40px;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 12px;
  background: rgba(15, 23, 42, .88);
  color: #f8fafc;
  font-size: 13px;
  padding: 0 12px;
}

.ai-search-panel .tiny {
  min-height: 40px;
  border-radius: 12px;
}

.ai-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-post-detail-page {
  margin: -2px -16px 0;
  padding: 0 0 28px;
  color: #e5e7eb;
}

.ai-back-link {
  margin: 10px 16px 4px;
}

.ai-post-main-article {
  padding: 18px 16px 22px;
  border-bottom: 8px solid #020617;
  background: #0f172a;
}

.ai-post-detail-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ai-post-detail-tags span,
.ai-post-detail-tags em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 7px;
  background: rgba(30, 41, 59, .72);
  color: #93c5fd;
  font-size: 10px;
  font-style: normal;
}

.ai-post-detail-tags em {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
}

.ai-post-main-article h1 {
  margin: 0 0 13px;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 720;
}

.ai-post-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-post-detail-author b {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
}

.ai-post-detail-author small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
}

.ai-post-content-paper {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .78);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.72;
  padding: 14px;
}

.ai-post-content-paper.small {
  margin-top: 8px;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
}

.ai-post-content-paper img,
.ai-white-rich-editor img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ai-post-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.ai-post-actions button {
  display: grid;
  gap: 6px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
}

.ai-post-actions button .svg {
  width: 19px;
  height: 19px;
  padding: 9px;
  box-sizing: content-box;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 999px;
  background: rgba(15, 23, 42, .88);
}

.ai-post-actions button.active {
  color: #60a5fa;
}

.ai-post-actions button.amber,
.ai-post-actions button.active.amber {
  color: #fbbf24;
}

.ai-reply-section {
  background: #0f172a;
}

.ai-reply-sticky-head {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .78);
  background: rgba(15, 23, 42, .94);
  backdrop-filter: blur(12px);
}

.ai-reply-sticky-head h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
}

.ai-reply-sticky-head small {
  color: #64748b;
  font-size: 11px;
}

.ai-reply-row {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .72);
}

.ai-reply-main {
  min-width: 0;
  flex: 1;
}

.ai-reply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ai-reply-head b {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
}

.ai-reply-head small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.ai-reply-composer {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #0f172a;
}

.ai-reply-composer h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 15px;
}

.ai-demo-second-card {
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: stretch;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
}

.ai-demo-second-card.wanted {
  border-color: rgba(245, 158, 11, .28);
  background: linear-gradient(180deg, rgba(245, 158, 11, .06), rgba(15, 23, 42, .74));
}

.ai-demo-second-card .ai-second-thumb {
  position: relative;
  border: 1px solid rgba(30, 41, 59, .96);
  border-radius: 12px;
  background: #020617;
}

.ai-demo-second-card .ai-second-thumb span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(2, 6, 23, .84);
  color: #cbd5e1;
  font-size: 9px;
}

.ai-second-title-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.ai-second-title-link h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 7px;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 700;
}

.ai-second-desc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ai-second-desc-row em {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid rgba(71, 85, 105, .8);
  border-radius: 7px;
  background: rgba(30, 41, 59, .7);
  color: #cbd5e1;
  font-size: 10px;
  font-style: normal;
}

.ai-second-desc-row p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-second-owner {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 10px;
  color: #64748b;
  font-size: 10px;
}

.ai-second-owner .svg {
  width: 11px;
  height: 11px;
}

.ai-second-owner span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-second-owner small {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(30, 41, 59, .76);
  color: #94a3b8;
}

.ai-second-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.ai-second-price-row strong {
  color: #60a5fa;
  font-size: 18px;
  line-height: 1;
}

.ai-demo-second-card.wanted .ai-second-price-row strong {
  color: #fbbf24;
}

.ai-second-price-row .ai-second-actions {
  margin: 0;
}

.ai-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.ai-icon-pill .svg {
  width: 13px;
  height: 13px;
}

.ai-publish-page,
.ai-contact-page {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}

.ai-form-card,
.ai-contact-item-card,
.ai-fixed-merchant {
  border: 1px solid rgba(30, 41, 59, .92);
  border-radius: 16px;
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.ai-form-card {
  display: grid;
  gap: 13px;
  padding: 15px;
}

.ai-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(30, 41, 59, .78);
}

.ai-form-head h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 720;
}

.ai-form-head h3 .svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

.ai-form-head small {
  max-width: 48%;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.ai-inline-fields {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-inline-fields .grow {
  flex: 1;
}

.field.compact {
  margin: 0;
}

.field label span {
  color: #f87171;
}

.ai-upload-grid {
  display: grid;
  gap: 10px;
}

.ai-upload-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-upload-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-upload-tile,
.ai-upload-add {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, .9);
  background: #020617;
}

.ai-upload-tile .astro-visual,
.ai-upload-tile .tiny-art {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ai-upload-tile .astro-visual strong {
  display: none;
}

.ai-upload-tile > span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 7px;
  border-radius: 0 0 8px 0;
  background: rgba(37, 99, 235, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.ai-upload-tile.cover > span {
  background: #f59e0b;
  color: #111827;
}

.ai-upload-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .58), rgba(2, 6, 23, 0) 38%),
    linear-gradient(0deg, rgba(2, 6, 23, .78), rgba(2, 6, 23, 0) 52%);
  opacity: 1;
  pointer-events: none;
  transition: opacity .18s ease;
}

.ai-upload-tile:hover .ai-upload-actions {
  opacity: 1;
}

.ai-upload-actions > div {
  display: flex;
  justify-content: space-between;
}

.ai-upload-actions button {
  min-width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: 1px solid rgba(71, 85, 105, .78);
  border-radius: 7px;
  background: rgba(15, 23, 42, .86);
  color: #e2e8f0;
  font-size: 10px;
}

.ai-upload-actions button .svg {
  width: 12px;
  height: 12px;
}

.ai-insert-btn {
  width: 100%;
  gap: 4px;
  background: rgba(37, 99, 235, .92) !important;
  color: #fff !important;
}

.ai-insert-btn.is-current {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .72) !important;
  color: #94a3b8 !important;
}

.ai-upload-tile.insert-mode {
  cursor: pointer;
}

.ai-upload-add {
  display: grid;
  place-items: center;
  gap: 4px;
  border-style: dashed;
  color: #64748b;
}

.ai-upload-add .svg {
  width: 23px;
  height: 23px;
}

.ai-upload-add span {
  display: block;
  margin-top: -18px;
  color: #94a3b8;
  font-size: 10px;
}

.ai-upload-empty,
.ai-tip-line {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.ai-rich-compose-card {
  min-height: 380px;
  overflow: hidden;
  padding: 0;
}

.ai-rich-compose-card .ai-form-head {
  margin: 0 15px;
  padding-top: 15px;
}

.ai-demo-rich-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  margin: 0;
  padding: 8px 10px;
  border-width: 1px 0;
  border-color: rgba(51, 65, 85, .72);
  border-radius: 0;
  background: rgba(2, 6, 23, .82);
  scrollbar-width: none;
}

.ai-demo-rich-toolbar::-webkit-scrollbar {
  display: none;
}

.ai-demo-rich-toolbar > i {
  width: 1px;
  height: 20px;
  flex: 0 0 auto;
  background: rgba(71, 85, 105, .82);
}

.ai-rich-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.ai-demo-rich-toolbar button,
.ai-rich-color {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(71, 85, 105, .88);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  color: #94a3b8;
}

.ai-demo-rich-toolbar button:hover,
.ai-rich-color:hover {
  background: rgba(30, 41, 59, .98);
  color: #60a5fa;
}

.ai-demo-rich-toolbar button .svg,
.ai-rich-color .svg {
  width: 15px;
  height: 15px;
}

.ai-demo-rich-toolbar select {
  width: auto;
  min-width: 84px;
  min-height: 29px;
  height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(71, 85, 105, .88);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  color: #cbd5e1;
  font-size: 12px;
}

.ai-rich-color {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ai-rich-color input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.ai-demo-rich-toolbar .toolbar-link {
  width: 118px;
  min-height: 29px;
  height: 29px;
  padding: 0 8px;
  border: 1px solid rgba(71, 85, 105, .88);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  color: #cbd5e1;
  font-size: 12px;
}

.ai-demo-rich-editor {
  min-height: 260px;
  margin: 0;
  padding: 15px;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, .66);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.72;
  outline: none;
}

.ai-demo-rich-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .35);
}

.ai-demo-rich-editor:empty::before {
  content: attr(data-placeholder);
  display: block;
  color: #64748b;
  pointer-events: none;
}

.ai-demo-rich-editor blockquote {
  margin: 10px 0;
  padding: 8px 10px;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  background: rgba(30, 41, 59, .5);
  color: #94a3b8;
}

.ai-demo-rich-editor a {
  color: #60a5fa;
  text-decoration: underline;
}

.ai-demo-rich-editor ul {
  list-style: disc;
  padding-left: 20px;
}

.ai-demo-rich-editor h3 {
  margin: 12px 0 8px;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.ai-demo-rich-editor img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, .58);
}

.ai-bottom-submit-spacer {
  height: 68px;
}

.ai-bottom-submit {
  position: sticky;
  bottom: 0;
  z-index: 14;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), #020617 40%);
}

.ai-fixed-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.ai-fixed-merchant > .svg {
  width: 19px;
  height: 19px;
  color: #60a5fa;
}

.ai-fixed-merchant div {
  min-width: 0;
  flex: 1;
}

.ai-fixed-merchant span {
  display: block;
  color: #64748b;
  font-size: 10px;
}

.ai-fixed-merchant strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #e2e8f0;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-fixed-merchant em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.ai-fixed-merchant em .svg {
  width: 12px;
  height: 12px;
}

.ai-price-input input {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 800;
}

.ai-trade-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-trade-methods span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(71, 85, 105, .7);
  border-radius: 999px;
  background: rgba(15, 23, 42, .7);
  color: #94a3b8;
  font-size: 10px;
}

.ai-trade-methods span .svg {
  width: 12px;
  height: 12px;
}

.ai-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}

.ai-contact-item-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.ai-contact-item-card .ai-second-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
}

.ai-contact-item-card .ai-second-thumb span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(2, 6, 23, .82);
  color: #cbd5e1;
  font-size: 9px;
}

.ai-contact-item-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 6px;
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.35;
}

.ai-contact-item-card p {
  overflow: hidden;
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-contact-item-card strong {
  color: #fbbf24;
  font-size: 18px;
}

.ai-contact-methods,
.ai-report-reasons {
  display: grid;
  gap: 9px;
}

.ai-contact-methods label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid rgba(51, 65, 85, .86);
  border-radius: 12px;
  background: rgba(2, 6, 23, .45);
}

.ai-contact-methods span {
  display: grid;
  gap: 3px;
  color: #cbd5e1;
  font-size: 12px;
}

.ai-contact-methods span .svg {
  width: 15px;
  height: 15px;
  color: #60a5fa;
}

.ai-contact-methods small {
  color: #64748b;
  font-size: 10px;
}

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

.ai-report-reasons label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(51, 65, 85, .82);
  border-radius: 10px;
  background: rgba(15, 23, 42, .68);
  color: #cbd5e1;
  font-size: 11px;
}

/* Exact AI demo replacement for community publish page */
.ai-post-publish-standalone {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #0f172a;
  color: #f1f5f9;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
}

.ai-demo-publish-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .95);
  background: rgba(15, 23, 42, .9);
  backdrop-filter: blur(16px);
}

.ai-demo-publish-header div {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-back-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #cbd5e1;
}

.ai-demo-back-button .svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

.ai-demo-publish-main {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  bottom: 76px;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0;
  background: #0f172a;
  scrollbar-width: none;
}

.ai-demo-publish-main::-webkit-scrollbar {
  display: none;
}

.ai-demo-publish-stack {
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 16px 20px;
}

.ai-demo-basic-card,
.ai-demo-image-card,
.ai-demo-editor-shell {
  border: 1px solid rgba(51, 65, 85, .78);
  border-radius: 12px;
  background: rgba(30, 41, 59, .6);
  box-shadow: 0 18px 36px rgba(2, 6, 23, .26);
}

.ai-demo-basic-card {
  padding: 16px;
}

.ai-demo-inline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-demo-board-select {
  width: 112px;
  flex: 0 0 auto;
}

.ai-demo-title-field {
  min-width: 0;
  flex: 1;
}

.ai-demo-board-select label,
.ai-demo-title-field label {
  display: block;
  margin: 0 0 7px 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.ai-demo-board-select select,
.ai-demo-title-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(71, 85, 105, .92);
  border-radius: 9px;
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  outline: none;
  padding: 0 11px;
  font-size: 14px;
}

.ai-demo-board-select select {
  color: #93c5fd;
}

.ai-demo-title-field input::placeholder {
  color: #64748b;
}

.ai-demo-image-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ai-demo-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(51, 65, 85, .72);
}

.ai-demo-card-title h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
}

.ai-demo-card-title h2 .svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

.ai-demo-card-title span {
  color: #94a3b8;
  font-size: 10px;
}

.ai-demo-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-demo-image-tile,
.ai-demo-add-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(51, 65, 85, .86);
  border-radius: 9px;
  background: rgba(15, 23, 42, .88);
}

.ai-demo-image-tile .astro-visual {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ai-demo-image-tile .astro-visual strong {
  display: none;
}

.ai-demo-image-tile > b {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 0 0 8px 0;
  background: #f59e0b;
  color: #111827;
  font-size: 9px;
}

.ai-demo-image-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  background: rgba(15, 23, 42, .62);
  opacity: 1;
  pointer-events: none;
}

.ai-demo-image-mask > div {
  display: flex;
  justify-content: space-between;
}

.ai-demo-image-mask button {
  min-width: 23px;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: rgba(30, 41, 59, .88);
  color: #cbd5e1;
  pointer-events: auto;
}

.ai-demo-image-mask button .svg {
  width: 12px;
  height: 12px;
}

.ai-demo-insert-image {
  width: 100%;
  gap: 3px;
  background: rgba(37, 99, 235, .92) !important;
  color: #fff !important;
  font-size: 10px;
}

.ai-demo-add-image {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: #64748b;
}

.ai-demo-add-image:hover {
  border-color: rgba(96, 165, 250, .6);
  color: #60a5fa;
}

.ai-demo-add-image .svg {
  width: 22px;
  height: 22px;
}

.ai-demo-add-image span {
  font-size: 9px;
}

.ai-demo-image-card p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.ai-demo-editor-shell {
  position: relative;
  min-height: 350px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  overflow: hidden;
}

.ai-demo-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
  border-bottom: 1px solid rgba(51, 65, 85, .72);
  background: rgba(15, 23, 42, .82);
  white-space: nowrap;
  scrollbar-width: none;
}

.ai-demo-editor-toolbar::-webkit-scrollbar {
  display: none;
}

.ai-demo-editor-toolbar > i {
  width: 1px;
  height: 20px;
  flex: 0 0 auto;
  background: rgba(51, 65, 85, .95);
}

.ai-demo-editor-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.ai-demo-editor-toolbar button,
.ai-demo-color-picker {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
}

.ai-demo-editor-toolbar button:hover,
.ai-demo-color-picker:hover {
  background: rgba(30, 41, 59, .95);
  color: #60a5fa;
}

.ai-demo-editor-toolbar button .svg,
.ai-demo-color-picker .svg {
  width: 16px;
  height: 16px;
}

.ai-demo-editor-toolbar select {
  width: auto;
  min-width: 74px;
  height: 28px;
  min-height: 28px;
  border: 1px solid rgba(51, 65, 85, .92);
  border-radius: 7px;
  background: rgba(30, 41, 59, .86);
  color: #cbd5e1;
  font-size: 11px;
  outline: none;
  padding: 0 6px;
}

.ai-demo-color-picker {
  position: relative;
  overflow: hidden;
}

.ai-demo-color-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ai-demo-link-input {
  width: 112px;
  height: 28px;
  min-height: 28px;
  border: 1px solid rgba(51, 65, 85, .92);
  border-radius: 7px;
  background: rgba(30, 41, 59, .86);
  color: #cbd5e1;
  font-size: 12px;
  outline: none;
  padding: 0 8px;
}

.ai-demo-editor-area {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding: 16px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
  outline: none;
}

.ai-demo-editor-area:empty::before {
  content: attr(data-placeholder);
  display: block;
  color: #64748b;
  pointer-events: none;
}

.ai-demo-editor-area blockquote {
  margin: 10px 0;
  padding: 8px 10px;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  background: rgba(30, 41, 59, .5);
  color: #94a3b8;
}

.ai-demo-editor-area a {
  color: #60a5fa;
  text-decoration: underline;
}

.ai-demo-editor-area ul {
  list-style: disc;
  padding-left: 20px;
}

.ai-demo-editor-area img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(71, 85, 105, .58);
  border-radius: 10px;
}

.ai-post-publish-standalone .hidden {
  display: none !important;
}

.ai-demo-editor-area .editor-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  cursor: pointer;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 8px;
  object-fit: contain;
  transition: box-shadow .18s ease, border-color .18s ease, width .16s ease;
}

.ai-demo-editor-area .editor-img:hover,
.ai-demo-editor-area .editor-img.selected,
.ai-demo-editor-area .editor-img.ring-2.ring-blue-500 {
  border-color: rgba(59, 130, 246, .72);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .5);
}

.ai-demo-resize-panel {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  width: 90%;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, .92);
  border-radius: 12px;
  background: rgba(30, 41, 59, .95);
  box-shadow: 0 22px 52px rgba(2, 6, 23, .48);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.ai-demo-resize-panel span {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 10px;
}

.ai-demo-resize-panel input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #334155;
  accent-color: #3b82f6;
  cursor: pointer;
  outline: none;
}

.ai-demo-resize-panel strong {
  width: 32px;
  flex: 0 0 auto;
  color: #60a5fa;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.ai-demo-publish-space {
  height: 8px;
}

.ai-demo-publish-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px;
  border-top: 1px solid rgba(30, 41, 59, .95);
  background: rgba(15, 23, 42, .95);
  backdrop-filter: blur(16px);
}

.ai-demo-publish-bottom button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .28);
}

.ai-demo-publish-bottom button .svg {
  width: 18px;
  height: 18px;
}

/* Exact AI demo replacement for community post detail + replies */
.ai-post-detail-standalone {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #020617;
  color: #e5e7eb;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
}

.ai-post-detail-standalone .hidden {
  display: none !important;
}

.ai-demo-detail-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .92);
  background: rgba(2, 6, 23, .9);
  backdrop-filter: blur(18px);
}

.ai-demo-detail-header > div {
  min-width: 0;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-detail-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #cbd5e1;
}

.ai-demo-detail-icon:hover {
  background: rgba(30, 41, 59, .72);
  color: #fff;
}

.ai-demo-detail-icon .svg {
  width: 21px;
  height: 21px;
}

.ai-demo-detail-icon.back .svg {
  transform: rotate(180deg);
}

.ai-demo-detail-main {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 0 150px;
  background: #020617;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.ai-demo-detail-main::-webkit-scrollbar {
  display: none;
}

.ai-demo-detail-article {
  padding: 20px 16px 24px;
  background: #020617;
}

.ai-demo-detail-article h1 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.45;
}

.ai-demo-detail-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ai-demo-avatar-img,
.ai-demo-avatar-text {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .85), rgba(15, 23, 42, .9));
}

.ai-demo-avatar-img {
  object-fit: cover;
}

.ai-demo-avatar-text {
  display: grid;
  place-items: center;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.ai-demo-detail-author-meta {
  min-width: 0;
  flex: 1;
}

.ai-demo-detail-author-meta > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ai-demo-detail-author-meta b {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-detail-author-meta span,
.ai-demo-reply-meta span {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 5px;
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
  padding: 0 6px;
  font-size: 9px;
}

.ai-demo-detail-author-meta small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.ai-demo-detail-tags {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.ai-demo-detail-tags span,
.ai-demo-detail-tags em {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(51, 65, 85, .95);
  border-radius: 5px;
  background: #0f172a;
  color: #94a3b8;
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
}

.ai-demo-detail-tags em {
  border-color: rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
}

.ai-demo-post-body {
  display: grid;
  gap: 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.75;
}

.ai-demo-post-body p,
.ai-demo-post-body ul,
.ai-demo-post-body blockquote {
  margin: 0;
}

.ai-demo-post-body ul {
  list-style: disc;
  padding-left: 18px;
}

.ai-demo-post-body img,
.ai-demo-post-body .embedded-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  margin: 4px 0;
  border: 1px solid rgba(30, 41, 59, .95);
  border-radius: 12px;
  background: #0f172a;
  object-fit: contain;
}

.ai-demo-post-body .embedded-image img {
  border: 0;
  border-radius: inherit;
}

.ai-demo-post-body blockquote,
.ai-demo-reply-body blockquote {
  border-left: 2px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  background: rgba(30, 41, 59, .45);
  color: #94a3b8;
  padding: 7px 9px;
}

.ai-demo-post-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 28px 0 2px;
}

.ai-demo-post-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
}

.ai-demo-post-actions button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #0f172a;
}

.ai-demo-post-actions .svg {
  width: 18px;
  height: 18px;
}

.ai-demo-post-actions button.active {
  color: #60a5fa;
}

.ai-demo-post-actions button.amber,
.ai-demo-post-actions button.active.amber {
  color: #fbbf24;
}

.ai-demo-detail-gap {
  height: 8px;
  background: #0f172a;
}

.ai-demo-reply-section {
  background: #020617;
}

.ai-demo-reply-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .78);
  background: rgba(2, 6, 23, .9);
  backdrop-filter: blur(12px);
}

.ai-demo-reply-head h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 760;
}

.ai-demo-reply-head div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-demo-reply-head button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
}

.ai-demo-reply-head button.active {
  color: #e2e8f0;
}

.ai-demo-reply-head i {
  width: 1px;
  height: 12px;
  background: #334155;
}

.ai-demo-reply-row {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .68);
  background: #020617;
  transition: background .18s ease;
}

.ai-demo-reply-row:hover {
  background: rgba(15, 23, 42, .7);
}

.ai-demo-reply-main {
  min-width: 0;
  flex: 1;
}

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

.ai-demo-reply-meta > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-demo-reply-meta b {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-reply-meta small {
  color: #64748b;
  font-size: 11px;
}

.ai-demo-reply-body {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.75;
}

.ai-demo-reply-body p,
.ai-demo-reply-body ul {
  margin: 0;
}

.ai-demo-reply-body ul {
  list-style: disc;
  padding-left: 17px;
}

.ai-demo-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  color: #64748b;
  font-size: 11px;
}

.ai-demo-reply-actions div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-demo-reply-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
}

.ai-demo-reply-actions button.active,
.ai-demo-reply-actions button:hover {
  color: #60a5fa;
}

.ai-demo-reply-actions .svg {
  width: 14px;
  height: 14px;
}

.ai-demo-empty-replies {
  padding: 28px 16px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.ai-demo-reply-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid #1e293b;
  background: #020617;
}

.ai-demo-quote-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 0;
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 9px;
  background: rgba(59, 130, 246, .1);
  color: #dbeafe;
  padding: 8px 10px;
}

.ai-demo-quote-bar .svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #93c5fd;
}

.ai-demo-quote-bar span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-demo-quote-bar button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
}

.ai-demo-reply-toolbar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(30, 41, 59, .62);
  opacity: .7;
  transition: height .18s ease, opacity .18s ease;
  scrollbar-width: none;
}

.ai-demo-reply-toolbar::-webkit-scrollbar {
  display: none;
}

.ai-demo-reply-toolbar.active {
  height: 40px;
  opacity: 1;
}

.ai-demo-reply-toolbar button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
}

.ai-demo-reply-toolbar button.active,
.ai-demo-reply-toolbar button:hover {
  color: #60a5fa;
  background: rgba(30, 41, 59, .72);
}

.ai-demo-reply-toolbar .svg {
  width: 16px;
  height: 16px;
}

.ai-demo-reply-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
}

.ai-demo-reply-input-row textarea {
  min-width: 0;
  flex: 1;
  max-height: 108px;
  min-height: 38px;
  resize: none;
  border: 1px solid rgba(51, 65, 85, .9);
  border-radius: 9px;
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  outline: none;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.55;
  transition: border-color .18s ease;
}

.ai-demo-reply-input-row textarea:focus {
  border-color: rgba(59, 130, 246, .62);
}

.ai-demo-reply-input-row textarea::placeholder {
  color: #64748b;
}

.ai-demo-reply-send {
  width: 48px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: #1e293b;
  color: #64748b;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ai-demo-reply-send.ready {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
}

.ai-demo-reply-send .svg {
  width: 16px;
  height: 16px;
}

/* 2026-06 star party module */
.h5-shell.has-starparty-dock,
.h5-shell.flow-mode.has-starparty-dock {
  grid-template-rows: 56px 1fr 74px 72px;
}

.h5-shell.has-starparty-dock .h5-content {
  padding-bottom: 18px;
}

.starparty-dock {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  height: 64px;
  margin: 5px 12px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 12px;
  color: #fff;
  background: #08111f;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .36), inset 0 0 0 1px rgba(255, 255, 255, .05);
  text-align: left;
}

.starparty-dock::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -24%;
  width: 42px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  transform: rotate(18deg);
  animation: starparty-shine 3.8s ease-in-out infinite;
  opacity: .7;
}

.starparty-dock-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 31, .94) 0%, rgba(8, 17, 31, .74) 42%, rgba(8, 17, 31, .18) 100%),
    linear-gradient(0deg, rgba(8, 17, 31, .18), rgba(8, 17, 31, .18)),
    url("./assets/starparty-8-banner.jpg") center / cover no-repeat;
  filter: saturate(1.15) contrast(1.06);
}

.starparty-dock-copy,
.starparty-dock-cta {
  position: relative;
  z-index: 1;
}

.starparty-dock-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.starparty-dock-copy i {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #04111f;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.starparty-dock-copy b {
  color: #fff7ed;
  font-size: 16px;
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}

.starparty-dock-copy small {
  overflow: hidden;
  color: rgba(226, 232, 240, .82);
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starparty-dock-cta {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #06101d;
  background: linear-gradient(135deg, #93c5fd, #fbbf24);
  font-size: 12px;
  font-weight: 900;
}

@keyframes starparty-shine {
  0%, 58% { transform: translateX(0) rotate(18deg); opacity: 0; }
  72% { opacity: .8; }
  100% { transform: translateX(520px) rotate(18deg); opacity: 0; }
}

.starparty-page {
  display: grid;
  gap: 14px;
  color: #e5edf8;
}

.starparty-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.starparty-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(1.14) contrast(1.08) brightness(1.08);
}

.starparty-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(96, 165, 250, .22), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, .76), rgba(2, 6, 23, .38) 58%, rgba(2, 6, 23, .08)),
    linear-gradient(0deg, rgba(2, 6, 23, .9), rgba(2, 6, 23, .16) 62%, rgba(2, 6, 23, .02));
}

.starparty-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 22px 18px;
}

.starparty-hero-copy > span {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(251, 191, 36, .52);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 23, 42, .52);
  font-size: 12px;
  font-weight: 800;
}

.starparty-hero-copy h1 {
  margin: 12px 0 7px;
  color: #fff;
  font-size: 31px;
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .52);
}

.starparty-hero-copy p {
  margin: 0;
  color: rgba(226, 232, 240, .78);
  font-size: 12px;
  letter-spacing: .2px;
}

.starparty-hero-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.starparty-hero-meta b {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.starparty-hero-meta .svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #60a5fa;
}

.starparty-hero-actions,
.starparty-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.starparty-anchor-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.starparty-anchor-row::-webkit-scrollbar {
  display: none;
}

.starparty-anchor-row button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, .72);
  font-size: 12px;
  font-weight: 800;
}

.starparty-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.starparty-stat-grid div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, .9), rgba(15, 23, 42, .86));
}

.starparty-stat-grid b {
  color: #fbbf24;
  font-size: 18px;
  line-height: 1;
}

.starparty-stat-grid span {
  color: #94a3b8;
  font-size: 10px;
}

.starparty-block {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, .86);
  border-radius: 14px;
  background:
    radial-gradient(circle at 94% 0%, rgba(59, 130, 246, .13), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  scroll-margin-top: 70px;
}

.starparty-block-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.starparty-block-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #93c5fd;
  background: rgba(37, 99, 235, .18);
}

.starparty-block-head .svg {
  width: 18px;
  height: 18px;
}

.starparty-block h3,
.starparty-sub-block h4,
.starparty-speech h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.25;
}

.starparty-block-head p,
.starparty-copy p,
.starparty-history-card p,
.starparty-guest-card p,
.starparty-contest-list p,
.starparty-speech p {
  margin: 0;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.72;
}

.starparty-copy {
  display: grid;
  gap: 8px;
}

.starparty-highlight-list,
.starparty-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.starparty-highlight-list span,
.starparty-chip-grid span {
  padding: 6px 9px;
  border: 1px solid rgba(96, 165, 250, .26);
  border-radius: 999px;
  color: #c7d2fe;
  background: rgba(30, 41, 59, .65);
  font-size: 12px;
}

.starparty-chip-grid.wide span {
  border-color: rgba(251, 191, 36, .22);
  color: #fde68a;
}

.starparty-schedule,
.starparty-history,
.starparty-guest-grid,
.starparty-contest-list {
  display: grid;
  gap: 10px;
}

.starparty-day,
.starparty-history-card,
.starparty-guest-card,
.starparty-contest-list div,
.starparty-speech,
.starparty-sub-block {
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(15, 23, 42, .66);
}

.starparty-day-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.starparty-day-title b,
.starparty-history-card i {
  color: #fbbf24;
  font-size: 13px;
  font-style: normal;
}

.starparty-day-title span {
  color: #93c5fd;
  font-size: 12px;
}

.starparty-time {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(51, 65, 85, .58);
}

.starparty-time i {
  color: #60a5fa;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.starparty-time span {
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}

.starparty-guest-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
}

.starparty-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #0f172a;
  background: linear-gradient(135deg, #bfdbfe, #facc15);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(59, 130, 246, .22);
}

.starparty-guest-card h4,
.starparty-history-card h4 {
  margin: 0 0 5px;
  color: #f8fafc;
  font-size: 15px;
}

.starparty-guest-card b {
  display: block;
  margin-bottom: 6px;
  color: #93c5fd;
  font-size: 12px;
}

.starparty-speech {
  display: grid;
  gap: 8px;
}

.starparty-speech h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.starparty-signup {
  border-color: rgba(245, 158, 11, .36);
  background:
    radial-gradient(circle at 96% 0%, rgba(251, 191, 36, .14), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .82));
}

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

.starparty-form label {
  display: grid;
  gap: 6px;
}

.starparty-form label.full {
  grid-column: 1 / -1;
}

.starparty-form span {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
}

.starparty-form input,
.starparty-form select,
.starparty-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, .9);
  border-radius: 10px;
  color: #f8fafc;
  background: rgba(2, 6, 23, .58);
  padding: 10px 11px;
  outline: none;
  font-size: 13px;
}

.starparty-form textarea {
  resize: vertical;
}

.starparty-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 10px;
  color: #bbf7d0;
  background: rgba(22, 101, 52, .18);
  font-size: 13px;
}

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

.starparty-photo-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, .72);
  border-radius: 12px;
  background: rgba(2, 6, 23, .58);
}

.starparty-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .72;
  object-fit: cover;
  background: #020617;
}

.starparty-photo-grid figcaption {
  display: grid;
  gap: 3px;
  padding: 9px;
}

.starparty-photo-grid b {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starparty-photo-grid span {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 390px) {
  .starparty-dock-copy b {
    font-size: 14px;
  }

  .starparty-hero-copy h1 {
    font-size: 28px;
  }

  .starparty-form,
  .starparty-hero-actions,
  .starparty-action-row {
    grid-template-columns: 1fr;
  }
}

/* Audit remediation: stable narrow layouts, honest placeholders and keyboard access. */
.service-placeholder {
  padding: 11px 12px;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 8px;
  background: rgba(30, 64, 175, .12);
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.55;
}

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

.flow-score .score-tile {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(71, 85, 105, .72);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
}

.flow-score .score-tile.level {
  padding-left: 9px;
  border-left: 1px solid rgba(71, 85, 105, .72);
}

.flow-score .level-badge {
  max-width: 100%;
  min-height: 24px;
  padding: 3px 6px;
  gap: 3px;
  overflow: hidden;
}

.flow-score .level-badge b {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editable-profile-cover {
  border-color: rgba(71, 85, 105, .78);
  background: rgba(15, 23, 42, .82);
}

.editable-profile-cover h3 {
  margin: 0 0 5px;
  color: #f8fafc;
}

.editable-profile-cover p,
.editable-profile-cover small {
  color: #cbd5e1 !important;
}

.second-owner-actions,
.second-delete-row {
  display: grid;
  gap: 10px;
}

.second-delete-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(71, 85, 105, .62);
  color: #fda4af;
  font-size: 12px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable="true"]:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(96, 165, 250, .72) !important;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .flow-score .score-tile {
    padding: 7px;
  }

  .flow-score .score-tile > b {
    font-size: 16px;
  }

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

  .second-delete-row span {
    grid-column: 1 / -1;
  }
}

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

.h5-shell.standalone-content .h5-content {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.h5-shell.standalone-content .ai-post-publish-standalone,
.h5-shell.standalone-content .ai-post-detail-standalone {
  height: 100%;
  min-height: 0;
}
