.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 24px;
  min-width: 0;
}

.profile-chip {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
}

.user-avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, #4a372d 0 8px, transparent 9px),
    linear-gradient(145deg, #ffc0a3, #ffe1c9 54%, #ffeef1);
  box-shadow: var(--shadow-card);
}

.user-avatar::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 2px solid var(--bg-page);
  border-radius: var(--radius-pill);
  background: var(--accent-yellow);
  content: "";
}

.avatar-image,
.avatar-upload-preview img,
#profileAvatarPreview img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.user-avatar span {
  transform: translateY(7px);
  color: #6b4a38;
  font-size: 12px;
  font-weight: 800;
}

.profile-chip p {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-chip strong {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 54px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: var(--shadow-card);
}

.wallet-button {
  min-height: 36px;
  border: 1px solid rgba(42, 99, 70, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #23563d;
  font-size: 12px;
  font-weight: 750;
}

.wallet-button.connected { background: #e7f7ed; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca7a0; }
.wallet-button.connected .wallet-dot { background: #35a562; box-shadow: 0 0 0 3px rgba(53, 165, 98, 0.14); }

.escrow-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(99, 74, 210, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, #f7f4ff, #effbf5);
}

.escrow-panel > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.escrow-panel strong { color: #3e3377; }
.escrow-panel span, .escrow-panel p { font-size: 11px; line-height: 1.55; color: #68746d; }
.escrow-action, .escrow-actions button { border: 0; border-radius: 10px; padding: 8px 10px; background: #483d8b; color: white; font-weight: 700; }
.escrow-actions { display: flex; gap: 8px; margin-top: 8px; }
.escrow-panel a { display: inline-block; margin-top: 9px; color: #483d8b; font-size: 11px; font-weight: 700; }
.chain-progress { display: flex; align-items: center; gap: 7px; }
.chain-progress i { width: 8px; height: 8px; border-radius: 50%; background: #d59b25; }
.chain-progress i.safe, .chain-progress i.finalized { background: #35a562; }

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button.has-dot::after {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f05a50;
  content: "";
}

.hero-section {
  position: relative;
  min-height: 330px;
  margin-bottom: 12px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 8px 0 0;
}

.hero-copy h1 {
  margin: 0;
  max-width: 260px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.32;
}

.hero-copy h1::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border: 3px solid var(--accent-yellow);
  border-radius: 999px;
  content: "";
}

.hero-brand-name {
  display: inline-block;
  margin-left: 6px;
  color: #2f8f5b;
  font-family: YouYuan, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 1.16em;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 5px 14px rgba(47, 143, 91, 0.16);
  transform: translateY(1px) rotate(-1deg);
}

.hero-copy p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.short-line {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--text-primary);
  opacity: 0.18;
}

.hero-illustration {
  position: absolute;
  right: -10px;
  bottom: 22px;
  width: 300px;
  height: 282px;
}

.balcony-rail {
  position: absolute;
  right: 22px;
  bottom: 32px;
  z-index: 2;
  width: 250px;
  height: 96px;
  border-radius: 30px 30px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 235, 224, 0.94)),
    var(--bg-surface);
  box-shadow: 0 18px 34px rgba(81, 60, 43, 0.1);
}

.balcony-rail::before {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(77, 60, 47, 0.18);
  box-shadow: 0 26px 0 rgba(77, 60, 47, 0.1);
  content: "";
}

.window-glow {
  position: absolute;
  right: 68px;
  bottom: 118px;
  z-index: 1;
  width: 122px;
  height: 146px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 243, 214, 0.78), rgba(255, 253, 252, 0.7)),
    var(--bg-surface);
  box-shadow: var(--shadow-light);
}

.notice-board {
  position: absolute;
  right: 82px;
  bottom: 76px;
  z-index: 2;
  width: 136px;
  height: 156px;
  border-radius: 30px;
  background: linear-gradient(145deg, #fffaf3, #e8ddd3);
  box-shadow: 0 18px 36px rgba(74, 57, 44, 0.13);
}

.notice-board::before {
  position: absolute;
  top: 20px;
  left: 26px;
  width: 84px;
  height: 46px;
  border-radius: 16px;
  background: #f0c987;
  box-shadow: inset 0 -7px 0 rgba(160, 116, 73, 0.18);
  content: "";
}

.notice-board::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, #7e9b6b 0 10px, transparent 11px),
    linear-gradient(145deg, #ddefd9, #c4dfbf);
  content: "";
}

.notice-board span {
  position: absolute;
  left: 28px;
  display: block;
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(72, 64, 56, 0.16);
}

.notice-board span:nth-child(1) {
  top: 82px;
}

.notice-board span:nth-child(2) {
  top: 98px;
  width: 54px;
}

.notice-board span:nth-child(3) {
  top: 114px;
  width: 62px;
}

.plant,
.coffee-cup,
.mail-stack,
.ground-shadow {
  position: absolute;
}

.plant-left {
  left: 4px;
  bottom: 58px;
  width: 86px;
  height: 118px;
}

.plant-right {
  right: 2px;
  bottom: 76px;
  width: 72px;
  height: 126px;
}

.plant::before {
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 28px;
  height: 54px;
  border-radius: 12px 12px 18px 18px;
  background: #d7b58b;
  content: "";
}

.plant::after {
  position: absolute;
  bottom: 42px;
  left: 3px;
  width: 80px;
  height: 72px;
  background:
    radial-gradient(ellipse at 35% 64%, #9bb989 0 16px, transparent 17px),
    radial-gradient(ellipse at 58% 42%, #7fa06f 0 17px, transparent 18px),
    radial-gradient(ellipse at 74% 70%, #b5ca9a 0 15px, transparent 16px);
  content: "";
}

.mail-stack {
  left: 62px;
  bottom: 38px;
  z-index: 3;
  width: 90px;
  height: 74px;
}

.mail-stack i {
  position: absolute;
  display: block;
  width: 64px;
  height: 42px;
  border-radius: 12px;
  background: #f4c45d;
  box-shadow: 0 10px 20px rgba(166, 120, 52, 0.14);
}

.mail-stack i:nth-child(1) {
  left: 6px;
  bottom: 0;
}

.mail-stack i:nth-child(2) {
  left: 20px;
  bottom: 18px;
  background: #dcebfa;
  transform: rotate(6deg);
}

.mail-stack i:nth-child(3) {
  left: 0;
  bottom: 30px;
  background: #fffdfc;
  transform: rotate(-9deg);
}

.coffee-cup {
  right: 8px;
  bottom: 42px;
  z-index: 3;
  width: 48px;
  height: 52px;
  border-radius: 12px 12px 18px 18px;
  background: #fffdfc;
  box-shadow: var(--shadow-card);
}

.coffee-cup::before {
  position: absolute;
  top: 13px;
  right: -13px;
  width: 18px;
  height: 18px;
  border: 5px solid #fffdfc;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  content: "";
}

.coffee-cup::after {
  position: absolute;
  right: 10px;
  bottom: 11px;
  left: 10px;
  height: 6px;
  border-radius: 999px;
  background: #c7a077;
  content: "";
}

.ground-shadow {
  right: 20px;
  bottom: 12px;
  width: 246px;
  height: 42px;
  border-radius: 50%;
  background: rgba(74, 57, 44, 0.08);
  filter: blur(2px);
}

.errand-hero {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 201, 52, 0.28), transparent 28%),
    linear-gradient(145deg, #fff8ec, #e9f7e5);
  box-shadow: var(--shadow-card);
}

.errand-hero span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 143, 91, 0.12);
  color: #2f8f5b;
  font-size: 12px;
  font-weight: 850;
}

.errand-hero h2,
.errand-order-form h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.errand-hero p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.errand-service-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.errand-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 253, 252, 0.94);
  color: var(--text-primary);
  text-align: left;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.06);
}

.errand-service-card.active {
  border-color: rgba(47, 143, 91, 0.72);
  background: #f1fbef;
}

.errand-service-card span {
  color: #13b95d;
  font-size: 12px;
  font-weight: 850;
}

.errand-service-card h2 {
  margin: 3px 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.errand-service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.errand-service-card strong {
  color: #13b95d;
  font-size: 16px;
  white-space: nowrap;
}

.errand-service-card small {
  grid-column: 2;
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: #80651c;
  font-size: 11px;
  font-weight: 850;
}

.errand-order-form {
  display: grid;
  gap: 12px;
  margin-bottom: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.95);
  box-shadow: var(--shadow-card);
}

.errand-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.errand-field-grid label,
.errand-note {
  display: grid;
  gap: 7px;
}

.errand-field-grid span,
.errand-note span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
}

.errand-field-grid input,
.errand-note textarea {
  min-width: 0;
  border: 1px solid var(--border-soft);
  outline: none;
  background: #fff9f1;
  color: var(--text-primary);
  font: inherit;
}

.errand-field-grid input {
  min-height: 42px;
  padding: 0 11px;
  border-radius: 14px;
}

.errand-note textarea {
  resize: vertical;
  min-height: 82px;
  padding: 11px;
  border-radius: 16px;
}

.errand-safety-note {
  padding: 12px;
  border-radius: 16px;
  background: var(--accent-green-soft);
}

.errand-safety-note strong,
.errand-safety-note p {
  display: block;
  margin: 0;
  color: #456f40;
  font-size: 12px;
  line-height: 1.55;
}

.errand-submit-bar {
  position: fixed;
  right: 0;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: center;
  width: min(calc(100% - 32px), 428px);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.96);
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(16px);
}

.errand-submit-bar span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
}

.errand-submit-bar strong {
  display: block;
  margin-top: 2px;
  color: #13b95d;
  font-size: 18px;
}

.errand-submit-bar .primary-action {
  min-height: 46px;
}

.errand-rule-sheet {
  gap: 16px;
}

.errand-rule-body {
  display: grid;
  gap: 12px;
  max-height: 58dvh;
  overflow: auto;
  padding: 0 2px 8px;
}

.service-rule-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: #fff8ec;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.06);
}

.service-rule-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-rule-kicker span,
.service-rule-kicker strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.service-rule-kicker span {
  background: var(--accent-green-soft);
  color: #3f7c3b;
}

.service-rule-kicker strong {
  background: var(--bg-surface);
  color: #13b95d;
}

.service-rule-block h3,
.service-rule-list h3 {
  margin: 0;
  color: var(--text-primary);
}

.service-rule-block > h3 {
  font-size: 18px;
}

.service-rule-block > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.service-rule-list {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 252, 0.72);
}

.service-rule-list h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.service-rule-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.service-rule-list li {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.circle-header {
  align-items: start;
}

.circle-composer,
.circle-post-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: var(--shadow-card);
}

.circle-post-card {
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
}

.circle-composer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 850;
}

.circle-composer p,
.circle-post-content,
.circle-reply p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.circle-composer textarea,
.circle-reply-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-soft);
  outline: none;
  background: #fff9f1;
  color: var(--text-primary);
  font: inherit;
}

.circle-composer textarea {
  resize: vertical;
  min-height: 82px;
  padding: 12px;
  border-radius: 18px;
}

.circle-bbs-list {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
}

.circle-post-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
}

.circle-avatar {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--bg-soft);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.1);
}

.circle-post-meta strong,
.circle-post-meta small {
  display: block;
}

.circle-post-meta strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.2;
}

.circle-post-meta small {
  margin-top: 2px;
  color: #e27d66;
  font-size: 11px;
  font-weight: 750;
}

.circle-post-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.circle-post-head > span {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: #80651c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.circle-replies {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 14px;
  background: #fff8ec;
}

.circle-reply {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
}

.circle-reply .circle-avatar {
  width: 24px;
  height: 24px;
  box-shadow: none;
}

.circle-reply strong {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
}

.circle-replies > small {
  color: var(--text-tertiary);
  font-size: 11px;
}

.circle-post-stats {
  display: flex;
  gap: 22px;
  color: var(--text-secondary);
  font-size: 12px;
}

.circle-reply-form {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
}

.circle-reply-form input {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
}

.circle-more-button {
  width: 100%;
  min-height: 48px;
  margin-bottom: 112px;
  border-radius: 18px;
  background: var(--accent-purple-soft);
  color: #6f5a92;
  font-weight: 850;
  box-shadow: var(--shadow-card);
}

.quick-grid {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  margin-top: -8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 4px 8px;
  scrollbar-width: none;
}

.mobile-ai-card,
.mobile-assistant-sheet {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(255, 242, 224, 0.9));
  box-shadow: var(--shadow-card);
}

.mobile-ai-card {
  margin: 0 0 18px;
  padding: 16px;
}

.mobile-ai-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.mobile-ai-head > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffca45, #ff9f87);
  color: #fffdfc;
  font-weight: 900;
}

.mobile-ai-head p,
.mobile-assistant-sheet p {
  margin: 0;
  color: #e27d66;
  font-size: 12px;
  font-weight: 800;
}

.mobile-ai-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.mobile-ai-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mobile-ai-metrics div {
  min-width: 0;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 248, 234, 0.88);
}

.mobile-ai-metrics small,
.mobile-assistant-sheet span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.mobile-ai-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.mobile-ai-card > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.mobile-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mobile-ai-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: #80651c;
  font-size: 12px;
  font-weight: 800;
}

.mobile-ai-tags.compact span {
  background: var(--bg-soft);
  color: #746b58;
}

.mobile-assistant-sheet {
  padding: 13px;
  background: #fff9f1;
  box-shadow: none;
}

.mobile-assistant-sheet strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.assistant-tips {
  display: grid;
  gap: 12px;
}

.assistant-tips article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: var(--shadow-card);
}

.assistant-tips strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.assistant-tips p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.assistant-page-shell {
  display: grid;
  gap: 16px;
  min-height: calc(100dvh - 126px);
  padding-bottom: 98px;
}

.assistant-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.assistant-hero-header p {
  margin: 0 0 6px;
  color: #5f8a4a;
  font-size: 13px;
  font-weight: 900;
}

.assistant-hero-header h1 {
  max-width: 240px;
  margin: 0;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.18;
}

.assistant-hero-header span {
  display: block;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.86);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 14px 34px rgba(74, 57, 44, 0.07);
}

.assistant-hero-header button {
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: #8b654b;
  font-weight: 850;
}

.assistant-example-row {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.assistant-example-row::-webkit-scrollbar {
  display: none;
}

.assistant-example-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff8ec;
  color: #7d624a;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(74, 57, 44, 0.06);
}

.assistant-workspace,
.assistant-conversation-panel {
  display: grid;
  gap: 12px;
}

.assistant-empty-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.9);
  box-shadow: var(--shadow-card);
}

.assistant-empty-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.assistant-empty-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.assistant-chat,
.assistant-suggestions {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

#screen-assistant {
  padding-bottom: 108px;
}

.assistant-bubble {
  display: flex;
}

.assistant-bubble p {
  max-width: 86%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 19px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}

.assistant-bubble.assistant p {
  border-top-left-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(255, 244, 232, 0.96));
}

.assistant-bubble.user {
  justify-content: flex-end;
}

.assistant-bubble.user p {
  border-top-right-radius: 8px;
  border-color: rgba(255, 178, 139, 0.8);
  background: linear-gradient(145deg, #ffb082, #f58ab0);
  color: #fffdfc;
}

.assistant-help-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow-card);
}

.assistant-help-card p {
  margin: 0 0 5px;
  color: #e27d66;
  font-size: 12px;
  font-weight: 800;
}

.assistant-help-card h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.assistant-help-card span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.assistant-publish-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff1bf, #ffe1e6);
  box-shadow: var(--shadow-card);
}

.assistant-publish-card p {
  margin: 0;
  color: #80651c;
  font-size: 12px;
  font-weight: 900;
}

.assistant-publish-card h2 {
  margin: 0;
  font-size: 18px;
}

.assistant-publish-card span {
  color: #6f5b26;
  font-size: 13px;
  line-height: 1.55;
}

.assistant-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.assistant-help-actions .paid {
  background: var(--accent-yellow-soft);
  color: #80651c;
}

.assistant-composer {
  position: fixed;
  right: 0;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 82px;
  gap: 9px;
  width: min(calc(100% - 32px), 428px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(16px);
}

.assistant-composer input {
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  outline: none;
  background: #fff9f1;
  color: var(--text-primary);
  font: inherit;
}

.assistant-composer .primary-action {
  min-height: 44px;
}

.voice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff7d7, #ffe9df);
  color: #7b3b22;
  font-size: 11px;
  font-weight: 900;
}

.voice-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.voice-action span {
  white-space: nowrap;
}

.voice-action.recording {
  background: linear-gradient(145deg, #ff8c7a, #f25b80);
  color: #fffdfc;
  box-shadow: 0 0 0 5px rgba(242, 91, 128, 0.12);
}

.voice-status {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff8ec;
  color: #7b5c16;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.voice-status.listening {
  background: var(--accent-yellow-soft);
  color: #8c3c2b;
}

.quick-grid::-webkit-scrollbar,
.nearby-scroll::-webkit-scrollbar {
  display: none;
}

.quick-card {
  position: relative;
  display: grid;
  align-content: start;
  flex: 0 0 calc((100% - 20px) / 3);
  min-width: 0;
  max-width: 132px;
  min-height: 164px;
  padding: 16px 13px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, box-shadow 180ms ease;
}

.quick-card:hover {
  box-shadow: 0 10px 26px rgba(74, 57, 44, 0.11);
}

.quick-yellow {
  background: var(--accent-yellow-soft);
}

.quick-blue {
  background: var(--accent-blue-soft);
}

.quick-purple {
  background: var(--accent-purple-soft);
}

.quick-title {
  max-width: 100%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
}

.quick-card small {
  max-width: 100%;
  margin-top: 7px;
  color: #6f6a65;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.quick-arrow {
  position: absolute;
  bottom: 18px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #706864;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.08);
}

.quick-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.quick-art {
  position: absolute;
  right: 4px;
  bottom: 10px;
  width: 78px;
  height: 78px;
}

.art-mail::before {
  position: absolute;
  right: 10px;
  bottom: 13px;
  width: 52px;
  height: 42px;
  border-radius: 18px 18px 12px 12px;
  background: #e7a92e;
  box-shadow: inset 0 -7px 0 rgba(114, 77, 27, 0.12);
  content: "";
}

.art-mail::after {
  position: absolute;
  right: 49px;
  bottom: 40px;
  width: 34px;
  height: 18px;
  border-radius: 5px;
  background: #fffdfc;
  transform: rotate(-12deg);
  content: "";
}

.art-calendar::before {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 62px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(#ffc934 0 18px, #fffdfc 18px);
  box-shadow: 0 10px 20px rgba(90, 118, 140, 0.14);
  content: "";
}

.art-calendar::after {
  position: absolute;
  right: 25px;
  bottom: 24px;
  width: 18px;
  height: 18px;
  border: 4px solid #ee7569;
  border-radius: 50%;
  content: "";
}

.art-sofa::before {
  position: absolute;
  right: 5px;
  bottom: 12px;
  width: 70px;
  height: 42px;
  border-radius: 22px 22px 14px 14px;
  background: #76a7dc;
  box-shadow: inset 0 -8px 0 rgba(43, 83, 132, 0.12);
  content: "";
}

.art-sofa::after {
  position: absolute;
  right: 31px;
  bottom: 36px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ffd459;
  transform: rotate(8deg);
  content: "";
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.nearby-scroll {
  display: grid;
  grid-auto-columns: 172px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 4px 10px;
  scrollbar-width: none;
}

.nearby-card,
.task-card,
.discover-card,
.tool-item,
.message-card,
.profile-card,
.profile-list {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: var(--shadow-card);
}

.nearby-card {
  display: grid;
  min-height: 222px;
  padding: 14px;
}

.mini-profile {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
}

.mini-profile strong,
.mini-profile small {
  display: block;
}

.mini-profile strong {
  font-size: 13px;
  line-height: 1.25;
}

.mini-profile small,
.post-foot {
  color: var(--text-tertiary);
  font-size: 11.5px;
  font-weight: 500;
}

.mini-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0c0a2, #f8dfcc);
}

.mini-avatar-image {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--bg-soft);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.1);
}

.mini-avatar::before {
  position: absolute;
  top: 7px;
  left: 9px;
  width: 18px;
  height: 11px;
  border-radius: 50%;
  background: #2e2b29;
  content: "";
}

.avatar-shu {
  background: linear-gradient(145deg, #b9d5ff, #f5dfc9);
}

.avatar-an {
  background: linear-gradient(145deg, #ffd2a8, #f2d6ec);
}

.nearby-card p {
  margin: 8px 0 10px;
  color: #393936;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.58;
}

.nearby-title {
  display: block;
  margin-top: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.post-visual {
  min-height: 58px;
  border-radius: 14px;
}

.visual-pet {
  position: relative;
  min-height: 62px;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 56%, #e0a66f 0 17px, transparent 18px),
    radial-gradient(circle at 54% 42%, #f6cda5 0 19px, transparent 20px),
    linear-gradient(135deg, #dcecd3, #f6e2cc);
}

.visual-pet::before {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #39312b;
  box-shadow: 16px 0 0 #39312b;
  content: "";
}

.visual-garden {
  background:
    radial-gradient(circle at 28% 38%, #89aa74 0 15px, transparent 16px),
    radial-gradient(circle at 63% 45%, #d9a477 0 18px, transparent 19px),
    linear-gradient(135deg, #dbe9d0, #f5e5ce);
}

.visual-coffee {
  background:
    radial-gradient(circle at 28% 42%, #fffdfc 0 13px, transparent 14px),
    linear-gradient(90deg, rgba(90, 65, 45, 0.42), transparent 40%),
    linear-gradient(135deg, #d4a577, #edf0df);
}

.post-status {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 14px;
  background: var(--accent-green-soft);
  color: #61784d;
  font-size: 13px;
  font-weight: 800;
}

.post-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.agent-result {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.task-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-top p {
  margin: 0 0 5px;
  color: #7e9b6b;
  font-size: 12px;
  font-weight: 800;
}

.task-top h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.task-top span,
.task-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.task-top strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ddf2d7, #fff1bf);
  color: #5f7e52;
  font-size: 12px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.info-grid div,
.info-edit-button {
  position: relative;
  min-width: 0;
  padding: 11px;
  border-radius: 16px;
  border: 0;
  background: rgba(255, 248, 234, 0.9);
}

.info-edit-button {
  appearance: none;
  width: 100%;
  min-height: 68px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.info-edit-button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(140, 135, 130, 0.72);
  border-right: 2px solid rgba(140, 135, 130, 0.72);
  transform: rotate(45deg);
}

.info-edit-button:active {
  transform: scale(0.98);
}

.info-edit-button:focus-visible {
  outline: 3px solid rgba(255, 201, 52, 0.5);
  outline-offset: 2px;
}

.info-edit-button:hover {
  background: #fff7e8;
  box-shadow: inset 0 0 0 1px rgba(255, 201, 52, 0.28);
}

.info-grid small,
.info-edit-button small {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
}

.info-grid b,
.info-edit-button b {
  display: block;
  padding-right: 14px;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.38;
  word-break: break-word;
}

.safety-plan {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  background: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(238, 230, 225, 0.86);
}

.safety-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.safety-plan-head small,
.safety-rule-grid small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
}

.safety-plan-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.35;
}

.safety-plan-head span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: #7d641d;
  font-size: 12px;
  font-weight: 800;
}

.safety-chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.safety-chip-row::-webkit-scrollbar {
  display: none;
}

.safety-chip-row span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
}

.safety-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.safety-rule-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 253, 252, 0.78);
}

.safety-rule-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.credit-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.credit-status-grid div {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.credit-status-grid span,
.credit-status-grid small {
  display: block;
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.45;
}

.credit-status-grid strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 800;
}

.discover-list,
.tool-list,
.message-list {
  display: grid;
  gap: 12px;
}

.discover-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.discover-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: var(--shadow-card);
}

.discover-tabs.sub-tabs {
  grid-template-columns: repeat(2, 1fr);
  justify-self: start;
  width: min(188px, 100%);
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 246, 229, 0.9);
  box-shadow: none;
}

.message-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.discover-tabs button {
  min-height: 38px;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.discover-tabs button.active {
  background: linear-gradient(145deg, #ffca45, #ff9f87);
  color: #fffdfc;
}

.discover-tabs.sub-tabs button.active {
  background: #fff1bf;
  color: var(--text-primary);
}

.discover-tabs.sub-tabs button {
  min-height: 30px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

.discover-search {
  display: none;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  outline: none;
  background: #fff9f1;
  color: var(--text-primary);
  font: inherit;
}

.discover-search.show {
  display: block;
}

.discover-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.discover-card.highlight {
  box-shadow: 0 0 0 4px rgba(255, 201, 52, 0.28), var(--shadow-card);
}

.discover-card h2,
.message-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.discover-card > div > p:first-child {
  margin: 0 0 5px;
  color: #e27d66;
  font-size: 12px;
  font-weight: 800;
}

.discover-card p,
.tool-item p,
.message-card span,
.profile-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.discover-card span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff1bf;
  color: #8c6630;
  font-size: 12px;
  font-weight: 800;
}

.tool-bank {
  margin-top: 24px;
}

.tool-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.tool-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.tool-item span {
  display: inline-flex;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: #746b58;
  font-size: 11.5px;
  font-weight: 700;
}

.tool-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--accent-blue-soft);
}

.tool-symbol::before,
.tool-symbol::after {
  position: absolute;
  content: "";
}

.tool-cart::before {
  inset: 18px 10px 14px;
  border: 3px solid #5d7d9d;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.tool-cart::after {
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 7px;
  background:
    radial-gradient(circle at 4px 3px, #5d7d9d 0 3px, transparent 4px),
    radial-gradient(circle at 26px 3px, #5d7d9d 0 3px, transparent 4px);
}

.tool-ladder {
  background: var(--accent-yellow-soft);
}

.tool-ladder::before {
  top: 11px;
  left: 21px;
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: #b58128;
  box-shadow: 13px 0 0 #b58128;
  transform: rotate(8deg);
}

.tool-ladder::after {
  top: 18px;
  left: 16px;
  width: 27px;
  height: 4px;
  border-radius: 999px;
  background: #b58128;
  box-shadow: 0 10px 0 #b58128, 0 20px 0 #b58128;
  transform: rotate(8deg);
}

.tool-box {
  background: var(--accent-purple-soft);
}

.tool-box::before {
  right: 10px;
  bottom: 13px;
  left: 10px;
  height: 26px;
  border-radius: 9px;
  background: #8f7ac7;
}

.tool-box::after {
  top: 12px;
  left: 20px;
  width: 14px;
  height: 10px;
  border: 3px solid #8f7ac7;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.message-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.message-card p {
  margin: 0 0 4px;
  color: #e27d66;
  font-size: 12px;
  font-weight: 800;
}

.private-chat-log {
  display: grid;
  gap: 12px;
  padding-bottom: 108px;
}

.private-chat-meta {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow-card);
}

.private-chat-meta strong {
  display: block;
  margin-bottom: 6px;
}

.private-chat-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.private-bubble {
  display: flex;
}

.private-bubble p {
  max-width: 84%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 8px;
  background: rgba(255, 253, 252, 0.96);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}

.private-bubble.me {
  justify-content: flex-end;
}

.private-bubble.me p {
  border-radius: 18px 18px 8px 18px;
  background: var(--text-primary);
  color: #fffdfc;
}

.private-chat-composer {
  position: fixed;
  right: 0;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 9px;
  width: min(calc(100% - 32px), 428px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.94);
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(16px);
}

.private-chat-composer input {
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  outline: none;
  background: #fff9f1;
  color: var(--text-primary);
  font: inherit;
}

.profile-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.profile-credit-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-photo-upload {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 116px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 32%, #2f2b28 0 10px, transparent 11px),
    linear-gradient(145deg, #d8f0d4, #ffe0c4);
  color: #4c6f4b;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(74, 57, 44, 0.1);
  touch-action: none;
}

.profile-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.profile-photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-position, 50% 50%);
  cursor: grab;
  user-select: none;
}

.profile-photo-upload small {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  overflow: hidden;
  border-radius: 50%;
  background: #2f8f5b;
  color: transparent;
}

.profile-photo-upload small::before,
.profile-photo-upload small::after {
  position: absolute;
  background: #fffdfc;
  content: "";
}

.profile-photo-upload small::before {
  width: 9px;
  height: 2px;
  border-radius: 999px;
}

.profile-photo-upload small::after {
  width: 2px;
  height: 9px;
  border-radius: 999px;
}

.profile-score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #2f8f5b, #63c982);
  color: #fffdfc;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(47, 143, 91, 0.24);
}

.profile-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-list {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
}

.profile-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  background: rgba(255, 253, 252, 0.72);
}

.profile-list span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.profile-list strong {
  font-size: 20px;
  font-weight: 800;
}

.credit-rule-trigger {
  width: auto;
  margin-top: 12px;
  padding-inline: 16px;
  background: var(--accent-yellow-soft);
  color: #7b5c16;
}

.profile-verification-card,
.credit-ranking-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.84);
  box-shadow: var(--shadow-card);
}

.profile-verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.verification-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: #fff8ec;
  color: var(--text-primary);
  text-align: left;
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.06);
}

.verification-card span {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 201, 52, 0.22);
  color: #7d641f;
  font-size: 11px;
  font-weight: 800;
}

.verification-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.verification-card small,
.credit-proof-hint,
.credit-proof-result p,
.credit-rule-summary p,
.credit-rule-block li,
.credit-ranking-list small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.verification-card em {
  align-self: end;
  color: #1f8a55;
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}

.credit-proof-hint {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.credit-proof-result {
  padding: 13px;
  border-radius: 16px;
  background: var(--accent-green-soft);
}

.credit-proof-result strong {
  display: block;
  margin-bottom: 4px;
  color: #355f31;
  font-size: 14px;
}

.credit-proof-result p {
  margin: 0;
  color: #4d6b49;
}

.credit-ranking-list {
  display: grid;
  gap: 8px;
}

.credit-ranking-list article {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-surface);
}

.credit-ranking-list article.is-me {
  background: var(--accent-yellow-soft);
}

.ranking-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--bg-soft);
  box-shadow: 0 8px 18px rgba(74, 57, 44, 0.1);
  object-fit: cover;
  object-position: center;
}

.credit-ranking-list strong,
.credit-ranking-list small {
  display: block;
}

.credit-ranking-list strong {
  font-size: 15px;
}

.credit-ranking-list em {
  color: var(--text-primary);
  font-style: normal;
  font-size: 19px;
  font-weight: 900;
}

.credit-rule-sheet {
  gap: 16px;
}

.credit-rule-body {
  display: grid;
  gap: 12px;
  max-height: 58dvh;
  overflow: auto;
  padding: 0 2px 8px;
}

.credit-rule-summary,
.credit-rule-block {
  padding: 15px;
  border-radius: 18px;
  background: #fff8ec;
}

.credit-rule-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.credit-rule-summary p {
  margin: 0;
}

.credit-rule-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.credit-rule-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.high-risk-rule-grid {
  display: grid;
  gap: 10px;
}

.high-risk-rule-head,
.high-risk-rule-card {
  padding: 15px;
  border-radius: 18px;
  background: #f1fbef;
}

.high-risk-rule-head span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 143, 91, 0.12);
  color: #2f8f5b;
  font-size: 12px;
  font-weight: 850;
}

.high-risk-rule-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.high-risk-rule-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.high-risk-rule-card {
  background: #fff8ec;
}

.high-risk-rule-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.high-risk-rule-card strong {
  font-size: 15px;
}

.high-risk-rule-card span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-yellow-soft);
  color: #80651c;
  font-size: 11px;
  font-weight: 850;
}

.high-risk-rule-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.high-risk-rule-card li {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 390px) {
  .hero-section {
    min-height: 318px;
  }

  .hero-copy h1 {
    font-size: 20px;
  }

  .hero-illustration {
    right: -34px;
    bottom: 18px;
    width: 292px;
  }

  .quick-grid {
    gap: 9px;
    margin-top: -12px;
  }

  .quick-card {
    flex-basis: calc((100% - 18px) / 3);
  }

  .quick-title {
    font-size: 17px;
  }

  .quick-card small {
    font-size: 11.5px;
  }

  .discover-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}
