﻿:root {
  --ink: #172033;
  --muted: #66768a;
  --line: #d9e3ee;
  --soft: #f3f7fb;
  --panel: #ffffff;
  --night: #102033;
  --teal: #274c7f;
  --teal-soft: #edf3fb;
  --amber: #b98736;
  --amber-soft: #fff5dc;
  --rose: #b24b65;
  --rose-soft: #fff0f4;
  --violet: #6556c7;
  --violet-soft: #f0efff;
  --blue: #315fba;
  --blue-soft: #eaf1ff;
  --green: #315fba;
  --green-soft: #edf3ff;
  --shadow: 0 18px 48px rgba(20, 31, 48, 0.13);
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(246, 211, 101, 0.16), transparent 18%),
    radial-gradient(circle at 86% 16%, rgba(49, 95, 186, 0.14), transparent 24%),
    linear-gradient(180deg, #071424 0%, #102033 45%, #edf3f8 100%);
}

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

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(49, 95, 186, 0.22);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: stretch center;
}

.h5-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: 58px 1fr 70px;
  background: #f4f8fb;
  box-shadow: var(--shadow);
}

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

.phone-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(217, 227, 238, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

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

.brand-mini b {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.brand-mini span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(circle at 52% 48%, #f8d26a 0 3px, transparent 4px),
    radial-gradient(circle at 70% 24%, rgba(255,255,255,0.85) 0 1px, transparent 2px),
    linear-gradient(135deg, #102033, #274c7f);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.22);
}

.h5-content {
  min-height: 0;
  overflow: auto;
  padding: 12px 12px 96px;
}

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

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  height: 70px;
  padding: 6px 7px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  line-height: 1.1;
}

.bottom-nav button.active {
  color: var(--teal);
  background: rgba(39, 76, 127, 0.08);
  font-weight: 700;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

.svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary, .ghost, .solid, .danger, .link, .round-tool {
  min-height: 36px;
  border-radius: 8px;
  white-space: nowrap;
}

.primary, .solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #274c7f, #1f3357);
  box-shadow: 0 10px 22px rgba(31, 51, 87, 0.18);
}

.primary {
  padding: 7px 13px;
}

.solid {
  padding: 8px 13px;
  font-weight: 700;
}

.ghost {
  padding: 7px 12px;
  color: var(--ink);
  background: #eef3f6;
  border: 1px solid var(--line);
}

.danger {
  color: #fff;
  background: var(--rose);
}

.link {
  padding: 4px 0;
  min-height: 28px;
  color: var(--teal);
  background: transparent;
}

.tiny {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.full {
  width: 100%;
}

.round-tool {
  width: 36px;
  min-width: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #eef3f6;
  border: 1px solid var(--line);
  font-size: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.05);
}

button.card {
  width: 100%;
  text-align: left;
}

.mobile-card, .list-card {
  padding: 13px;
  margin-bottom: 10px;
}

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

.section-head.in-card {
  margin-top: 0;
}

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

.section-head h2, .section-head h3 {
  margin: 0;
  font-size: 16px;
}

.section-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.head-actions {
  display: inline-flex;
  gap: 6px;
}

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

h2, h3, h4, p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
}

h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.3;
}

h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

p {
  line-height: 1.55;
}

.carousel-card {
  margin-bottom: 12px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 34px rgba(17, 32, 51, 0.16);
}

.carousel-track {
  display: flex;
  width: 100%;
  animation: carouselSlide 12s infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

.carousel-slide.static {
  pointer-events: none;
}

.carousel-art {
  min-height: 156px;
  border-radius: 12px;
}

.carousel-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  gap: 7px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.carousel-caption b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.22;
}

.carousel-caption small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.38;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 7px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #c7d4e2;
}

.carousel-dots span.active {
  width: 18px;
  background: var(--amber);
}

@keyframes carouselSlide {
  0%, 28% { transform: translateX(0); }
  34%, 62% { transform: translateX(-100%); }
  68%, 94% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

.astro-visual {
  position: relative;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 31%, rgba(255,255,255,0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 24%, rgba(248,210,106,0.82) 0 8px, rgba(248,210,106,0.16) 9px 44px, transparent 46px),
    linear-gradient(145deg, #071424 0%, #18315a 58%, #5a426e 100%);
}

.astro-visual strong {
  position: relative;
  z-index: 4;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.astro-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 42%;
  background:
    linear-gradient(170deg, transparent 0 42%, rgba(2, 11, 23, 0.84) 43% 100%),
    linear-gradient(20deg, rgba(2, 11, 23, 0.92) 0 36%, transparent 37% 100%);
}

.astro-visual.image-backed {
  background: #111827;
  padding: 0;
}

.astro-visual.image-backed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astro-visual.image-backed.detail-hero img,
.astro-visual.image-backed.manager-hero img,
.astro-visual.image-backed.embedded-art img {
  object-fit: contain;
  background: #08101f;
}

.astro-visual.image-backed .image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.58));
}

.astro-visual.image-backed strong {
  padding: 12px;
}

.astro-visual.image-backed::after {
  display: none;
}

.astro-visual.violet {
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,0.94) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 33%, rgba(255,255,255,0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(246,211,101,0.9) 0 8px, rgba(246,211,101,0.16) 9px 42px, transparent 44px),
    linear-gradient(145deg, #09182b, #273e79 55%, #8d3d74);
}

.astro-visual.blue {
  background:
    radial-gradient(circle at 21% 24%, rgba(255,255,255,0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 30%, rgba(255,255,255,0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 24%, rgba(203,213,225,0.9) 0 9px, rgba(96,165,250,0.16) 10px 46px, transparent 48px),
    linear-gradient(145deg, #071f3f, #1d4ed8 58%, #4b4f8f);
}

.astro-visual.green {
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 24%, rgba(255,245,220,0.95) 0 8px, rgba(255,245,220,0.14) 9px 38px, transparent 40px),
    linear-gradient(145deg, #08172c, #274c7f 56%, #6b4a86);
}

.astro-visual.moon {
  background:
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 28%, #f8fafc 0 15px, #d9e3ee 16px 19px, transparent 21px),
    linear-gradient(145deg, #111827, #475569 58%, #2f4c85);
}

.thumb-art {
  min-height: 100%;
  border-radius: 9px;
}

.detail-hero {
  min-height: 190px;
  border-radius: 10px;
  margin: 8px 0 12px;
}

.manager-hero {
  min-height: 220px;
  border-radius: 10px;
}

.tiny-art {
  min-height: 68px;
  border-radius: 8px;
  padding: 7px;
}

.embedded-art {
  min-height: 130px;
  border-radius: 8px;
}

.star-dot {
  position: absolute;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(255,255,255,0.75);
}

.star-dot.one { top: 22%; left: 18%; }
.star-dot.two { top: 40%; left: 46%; }
.star-dot.three { top: 20%; left: 84%; }

.planet-core {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, rgba(255,255,255,0.92), rgba(248,210,106,0.78) 38%, rgba(49,95,186,0.1));
  opacity: 0.5;
  box-shadow: 0 0 36px rgba(248,210,106,0.18);
}

.member-card {
  padding: 14px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 15% 18%, rgba(248, 210, 106, 0.22), transparent 18%),
    radial-gradient(circle at 92% 10%, rgba(101, 86, 199, 0.18), transparent 26%),
    linear-gradient(145deg, #102033 0%, #0a2540 58%, #26365f 100%);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 42px rgba(9, 24, 42, 0.26);
  color: #fff;
}

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

.member-hero-row > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.member-hero-row h2 {
  margin: 0;
  font-size: 17px;
}

.member-hero-row p {
  margin: 2px 0 0;
  color: rgba(228, 237, 247, 0.76);
  font-size: 12px;
}

.avatar-ring {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 26%, #f8d26a 0 4px, transparent 5px),
    linear-gradient(135deg, #102033, #274c7f);
  box-shadow: 0 12px 22px rgba(16, 32, 51, 0.18);
  font-weight: 800;
}

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

.score-tile {
  min-width: 0;
  display: grid;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.score-tile .icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  margin-bottom: 2px;
  color: #f8d26a;
}

.score-tile b {
  font-size: 18px;
  line-height: 1.1;
}

.score-tile span {
  color: rgba(228, 237, 247, 0.76);
  font-size: 11px;
}

.score-tile.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 210, 106, 0.30);
}

.score-tile.active .icon {
  background: transparent;
}

.score-tile.volunteer {
  background: rgba(183, 135, 54, 0.18);
  border-color: rgba(248, 210, 106, 0.24);
}

.score-tile.volunteer .icon {
  background: transparent;
  color: #f4b95f;
}

.score-tile.level {
  background: rgba(101, 86, 199, 0.18);
  border-color: rgba(169, 157, 255, 0.24);
}

.member-card .level-badge {
  color: #fff;
}

.role-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
}

.tag-row, .chip-row, .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag, .status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  color: #274c7f;
  background: #edf3fb;
}

.tag.amber, .status.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.tag.rose, .status.rose {
  color: var(--rose);
  background: var(--rose-soft);
}

.tag.blue, .status.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.status.green {
  color: #315fba;
  background: #edf3ff;
}

.status.gray {
  color: var(--muted);
  background: #eef3f6;
}

.chip-row {
  margin: 8px 0 12px;
}

.chip-row button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.chip-row button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.meta-row {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-row strong {
  color: var(--ink);
}

.activity-card, .post-card, .merchant-card, .second-card, .product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.activity-cover, .post-cover {
  min-width: 0;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  background: transparent;
}

.activity-main, .post-main, .second-main {
  min-width: 0;
}

.activity-main h3, .post-main h3, .second-main h3 {
  margin-top: 6px;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mini-row h4 {
  margin: 0;
}

.mini-row small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.mini-thumb {
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
}

.merchant-card, .product-card {
  align-items: start;
}

.product-card {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.product-card strong {
  align-self: center;
  color: var(--teal);
}

.second-card {
  align-items: start;
}

.detail-page {
  padding: 14px;
  margin-bottom: 12px;
}

.detail-page > p {
  margin: 8px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 0;
  margin-bottom: 8px;
  color: var(--teal);
  background: transparent;
}

.back-link .svg {
  transform: rotate(-90deg);
}

.article-body {
  color: #26344a;
  line-height: 1.68;
}

.article-body p {
  margin: 8px 0;
}

.article-body.small {
  font-size: 13px;
}

.reply-card {
  padding: 12px;
  margin-bottom: 9px;
}

.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.reply-head small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.price-focus {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  background: var(--teal-soft);
  border: 1px solid rgba(15,118,110,0.16);
}

.price-focus span, .price-focus small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-focus b {
  display: block;
  color: var(--teal);
  font-size: 28px;
  line-height: 1.1;
}

.price-focus del {
  color: var(--muted);
}

.inline-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.level-price-list {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}

.level-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #25344b;
}

.level-badge b {
  font-size: 12px;
  overflow-wrap: normal;
}

.level-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  background: transparent;
  box-shadow: none;
}

.level-logo .svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.level-badge.dust .level-logo { color: #64748b; }
.level-badge.planet .level-logo { color: #315fba; }
.level-badge.star .level-logo { color: #b98736; }
.level-badge.galaxy .level-logo { color: #6556c7; }
.level-badge.cosmos .level-logo { color: #b24b65; }

.field, .form-grid {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-grid {
  gap: 12px;
}

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

.form-two > * {
  min-width: 0;
}

.field label, .option-editor label {
  font-size: 12px;
  color: #34445a;
  font-weight: 700;
}

.field small, .option-editor small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field input, .field select, .field textarea, .option-add input, .rich-toolbar select, .rich-toolbar input[type="color"], .toolbar-link {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.toolbar-link {
  width: 128px;
  min-height: 32px;
  padding: 5px 8px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input[type="datetime-local"],
.field input[type="date"],
.field input[type="time"] {
  padding-inline: 7px;
  font-size: 13px;
}

.form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.form-section h3 {
  margin: 0;
}

.field-list {
  display: grid;
  gap: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}

.field-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.schema-row {
  grid-template-columns: 24px minmax(0, 1fr) auto auto auto;
}

.volunteer-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
}

.price-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.volunteer-choice {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.schema-actions {
  display: inline-flex;
  gap: 4px;
}

.mini {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mini .svg {
  width: 13px;
  height: 13px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #24425f;
  background: #eef5fb;
  border: 1px solid #dbe7f0;
  font-size: 12px;
}

.builder-box, .option-editor {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #f3f7fb;
  border: 1px dashed #c9d7e5;
}

.option-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.map-picker {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #bdd5e8;
  background:
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(rgba(15,118,110,0.08) 1px, transparent 1px),
    #f8fbff;
  background-size: 22px 22px;
}

.map-picker > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #2d4964;
}

.map-picker .svg {
  color: var(--teal);
}

.map-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.map-canvas {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #c7d7e8;
  background:
    linear-gradient(28deg, transparent 0 42%, rgba(15,118,110,0.16) 43% 46%, transparent 47% 100%),
    linear-gradient(118deg, transparent 0 54%, rgba(37,99,235,0.12) 55% 58%, transparent 59% 100%),
    linear-gradient(90deg, rgba(120,144,168,0.16) 1px, transparent 1px),
    linear-gradient(rgba(120,144,168,0.16) 1px, transparent 1px),
    #dce8ef;
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.map-canvas iframe,
.map-click-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-canvas iframe {
  border: 0;
}

.map-click-layer {
  z-index: 2;
  padding: 0;
  background: transparent;
  cursor: crosshair;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: -28px 0 0 -15px;
  color: var(--blue);
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(49, 95, 186, 0.24);
  box-shadow: 0 8px 18px rgba(8, 32, 48, 0.18);
  pointer-events: none;
}

.map-pin .svg {
  width: 16px;
  height: 16px;
}

.map-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.image-manager {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.image-manager-side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.image-manager-side h3, .image-manager-side p {
  margin: 0;
}

.image-manager-side p {
  color: var(--muted);
  font-size: 12px;
}

.image-strip, .post-image-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.image-mini {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.image-mini.cover {
  border-color: rgba(15,118,110,0.45);
  box-shadow: 0 0 0 2px rgba(15,118,110,0.08);
}

.image-mini.selected {
  border-color: rgba(101,86,199,0.5);
}

.image-mini span {
  font-size: 12px;
  font-weight: 700;
}

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

.mini-actions button {
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 11px;
}

.image-click {
  padding: 0;
  background: transparent;
  text-align: left;
}

.image-add-card, .image-slot {
  min-height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #b9c9d9;
  color: var(--teal);
  background: #f8fbfd;
}

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

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
}

.rich-toolbar select {
  width: auto;
  min-width: 92px;
  min-height: 32px;
  padding: 5px 8px;
}

.rich-toolbar input[type="color"] {
  width: 38px;
  min-height: 32px;
  padding: 3px;
}

.rich-toolbar button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.rich-editor {
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.rich-editor blockquote {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
}

.embedded-image {
  min-width: 42%;
  max-width: 100%;
  resize: both;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.embedded-image figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.fixed-merchant, .preview-box, .empty {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fbfd;
}

.fixed-merchant span, .fixed-merchant small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fixed-merchant strong {
  display: block;
  margin: 4px 0;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #34445a;
  font-size: 12px;
  line-height: 1.45;
}

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

.info-pair .mobile-card {
  margin-bottom: 0;
}

.info-pair strong {
  display: block;
  color: var(--teal);
  font-size: 18px;
}

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

.mine-grid button {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  color: #26344a;
  font-size: 12px;
  text-align: center;
}

.mine-grid .icon {
  width: 28px;
  height: 28px;
}

.flow-page {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.flow-page.wide {
  max-width: 100%;
}

.flow-head {
  position: sticky;
  top: -12px;
  z-index: 5;
  display: grid;
  gap: 6px;
  padding: 10px 0 8px;
  background: rgba(244, 248, 251, 0.94);
  backdrop-filter: blur(12px);
}

.flow-head h2 {
  margin: 0;
}

.flow-body {
  display: grid;
  gap: 12px;
}

.flow-cover {
  margin-bottom: 10px;
}

.tab-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4f7fb;
}

.tab-switch button {
  min-height: 36px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.tab-switch button.active {
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.profile-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.avatar-ring.large {
  width: 56px;
  height: 56px;
}

.message-row.unread {
  border-color: rgba(49, 95, 186, 0.28);
  background: #f7fbff;
}

.field-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.field-row em {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-style: normal;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.row-actions .tiny {
  min-height: 26px;
  padding: 4px 7px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(16px);
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 32, 51, 0.92);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  font-size: 13px;
}

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

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

  .activity-card, .post-card, .merchant-card, .second-card, .product-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .product-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .product-card strong {
    grid-column: 2;
  }

  .form-two, .info-pair, .image-strip, .post-image-strip {
    grid-template-columns: 1fr;
  }

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

  .field-row, .schema-row, .volunteer-row, .volunteer-choice, .level-price-row {
    grid-template-columns: 1fr;
  }

  .schema-actions {
    justify-content: flex-start;
  }
}

