﻿:root {
  --m-bg: #f2f6fb;
  --m-surface: #ffffff;
  --m-ink: #102033;
  --m-muted: #5b6f8d;
  --m-line: #dbe6f4;
  --m-blue: #256dff;
  --m-teal: #16b8a6;
  --m-gold: #d18a16;
  --m-red: #d94b4b;
  --m-shadow: 0 14px 34px rgba(24, 57, 98, .12);
  --m-page-max: 560px;
  --m-edge-gap: 13px;
  --m-fixed-gap: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--m-ink);
  background:
    linear-gradient(135deg, rgba(37, 109, 255, .08), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, var(--m-bg) 46%, #eef8f6 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

html.m-js-booting {
  background: #f2f6fb;
}

html.m-js-booting body {
  visibility: hidden !important;
}

body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

a { color: inherit; }

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

.m-app {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.m-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  background: rgba(248, 251, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(207, 221, 240, .72);
}

.m-topbar-row {
  width: 100%;
  max-width: var(--m-page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.m-brand img {
  width: 31px;
  height: 31px;
  display: block;
}

.m-brand strong {
  display: inline-block;
  max-width: 3.6em;
  color: var(--m-ink);
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.m-brand-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 2px 0 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eaf6ff;
  color: #17618d;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.m-page-name {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.m-user-chip {
  border: 1px solid var(--m-line);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 10px;
  background: #fff;
  color: #174778;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(24, 57, 98, .08);
  white-space: nowrap;
}

.m-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
}

.m-shell {
  width: 100%;
  max-width: var(--m-page-max);
  margin: 0 auto;
  padding: 12px 13px 22px;
  padding-left: max(var(--m-edge-gap), env(safe-area-inset-left));
  padding-right: max(var(--m-edge-gap), env(safe-area-inset-right));
  overflow-x: hidden;
}

.m-site-footer {
  margin: 8px 0 6px;
  padding: 10px 12px;
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #f4f8fc;
  color: #496782;
  line-height: 1.5;
}

.m-site-footer h2 {
  margin: 0 0 4px;
  color: #102a45;
  font-size: 15px;
  font-weight: 900;
}

.m-site-footer p {
  margin: 3px 0 0;
  font-size: 12px;
}

.m-site-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.m-site-icp,
.m-site-police {
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  background: #fff;
  align-items: center;
  gap: 5px;
  color: #6f8398;
  font-size: 12px;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.m-site-police {
  display: inline-flex;
  line-height: 1.2;
}

.m-site-police img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}

.m-hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 13px;
  padding: 18px 16px 16px;
  border: 1px solid #d9e6f8;
  border-radius: 20px;
  background:
    linear-gradient(130deg, rgba(15, 42, 72, .86), rgba(24, 91, 126, .78)),
    var(--m-hero-image, url("/assets/images/original/picsum-jingzhou-mobile-hero-900x700.jpg")) center/cover;
  color: #fff;
  box-shadow: var(--m-shadow);
}

.m-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.m-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
}

.m-hero h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.m-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
}

.m-hero-actions,
.m-actions,
.m-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.m-hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.m-btn {
  border: 1px solid var(--m-line);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 13px;
  background: #fff;
  color: #174778;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.18;
  text-align: center;
  cursor: pointer;
}

.m-btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  box-shadow: 0 12px 22px rgba(37, 109, 255, .22);
}

.m-btn.warn {
  border-color: #f0d8a8;
  color: #8a5200;
  background: #fff8eb;
}

.m-btn.danger {
  border-color: #ffd1d1;
  color: #b42f2f;
  background: #fff4f4;
}

.m-hero .m-btn {
  min-height: 38px;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.13);
  color: #fff;
}

.m-hero .m-btn.primary {
  background: #fff;
  color: #134579;
}

.m-shortcuts {
  display: grid;
  grid-template-columns: repeat(var(--m-shortcut-columns, 4), minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid rgba(207, 221, 240, .9);
  border-radius: 17px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 24px rgba(24,57,98,.07);
}

.m-shortcuts::-webkit-scrollbar { display: none; }

.m-shortcut {
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid rgba(219, 230, 244, .9);
  border-radius: 13px;
  background: rgba(248,251,255,.94);
  color: #123a66;
  text-decoration: none;
  box-shadow: 0 6px 13px rgba(24,57,98,.045);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.m-shortcut span:first-child {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,109,255,.12), rgba(22,184,166,.14));
  color: var(--m-blue);
  font-size: 11px;
}

.m-shortcut.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  box-shadow: 0 8px 18px rgba(37,109,255,.2);
}

.m-shortcut.active span:first-child {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.m-section {
  margin: 12px 0;
}

.m-ai-panel {
  margin: 0;
  border: 1px solid #cfe1f5;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,251,255,.96)),
    #fff;
  box-shadow: var(--m-shadow);
  padding: 14px;
}

.m-ai-drawer {
  position: fixed;
  left: var(--m-fixed-gap);
  right: var(--m-fixed-gap);
  left: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-left));
  right: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-right));
  bottom: calc(var(--m-bottom-nav-height, 62px) + env(safe-area-inset-bottom) + 8px);
  z-index: 80;
  max-height: 70px;
  display: flex;
  flex-direction: column;
  transition: max-height .22s ease, transform .22s ease, box-shadow .22s ease, border-radius .22s ease, left .22s ease, right .22s ease, bottom .22s ease;
}

.m-ai-drawer:not(.collapsed) {
  margin: 0;
  border-radius: 18px 18px 14px 14px;
  height: min(86vh, 680px);
  height: min(86dvh, 680px);
  max-height: calc(100vh - var(--m-bottom-nav-height, 62px) - env(safe-area-inset-bottom) - 18px);
  max-height: calc(100dvh - var(--m-bottom-nav-height, 62px) - env(safe-area-inset-bottom) - 18px);
  padding: 12px;
}

.m-ai-drawer.collapsed {
  padding: 10px 12px;
  max-height: 64px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(24,57,98,.18);
}

.m-ai-drawer.collapsed .m-ai-body,
.m-ai-drawer.collapsed .m-ai-head p {
  display: none;
}

.m-ai-drawer.collapsed .m-ai-head {
  margin-bottom: 0;
  align-items: center;
}

.m-ai-drawer.collapsed .m-ai-head .m-kicker {
  display: none;
}

.m-ai-drawer.collapsed .m-ai-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

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

.m-ai-head > div {
  min-width: 0;
}

.m-ai-drawer:not(.collapsed) .m-ai-head {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.m-ai-head .m-kicker {
  background: linear-gradient(135deg, rgba(37,109,255,.12), rgba(22,184,166,.15));
  color: #1857a9;
}

.m-ai-drawer:not(.collapsed) .m-ai-head .m-kicker {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.m-ai-head h2 {
  margin: 8px 0 5px;
  color: var(--m-ink);
  font-size: 19px;
  line-height: 1.25;
}

.m-ai-drawer:not(.collapsed) .m-ai-head h2 {
  margin: 4px 0 2px;
  font-size: 17px;
  line-height: 1.25;
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: initial !important;
  line-clamp: initial !important;
}

.m-ai-head p {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.55;
}

.m-ai-drawer:not(.collapsed) .m-ai-head p {
  display: none;
}

.m-ai-badge {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #16715e;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.m-ai-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.m-ai-toggle {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c8dcf5;
  border-radius: 999px;
  background: #f6fbff;
  color: #174778;
  font-size: 13px;
  font-weight: 900;
}

.m-ai-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 2px 0 10px;
}

.m-ai-drawer:not(.collapsed) .m-ai-quick {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.m-ai-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px;
  color: var(--m-muted);
  font-size: 12px;
}

.m-ai-quick-head strong {
  color: var(--m-ink);
  font-size: 15px;
}

.m-ai-quick::-webkit-scrollbar { display: none; }

.m-ai-chip {
  width: 100%;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  background: #f5faff;
  color: #174778;
  min-height: 38px;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.m-ai-drawer:not(.collapsed) .m-ai-chip {
  flex: 0 0 auto;
  width: auto;
  max-width: 74vw;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  scroll-snap-align: start;
}

.m-ai-chip.refresh,
.m-ai-followup.refresh {
  grid-column: 1 / -1;
  border-style: dashed;
  background: #fff;
  color: #116b66;
}

.m-ai-chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dce8f6;
  border-radius: 16px;
  background: #f7fbff;
}

.m-ai-msg {
  max-width: 100%;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.m-ai-msg strong {
  color: #24507c;
  font-size: 12px;
}

.m-ai-msg p {
  margin: 0;
  border-radius: 14px;
  padding: 10px 11px;
  background: #fff;
  color: var(--m-ink);
  line-height: 1.65;
  box-shadow: 0 8px 16px rgba(24,57,98,.06);
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.m-ai-msg.foldable-answer:not(.answer-expanded) p {
  max-height: 170px;
  overflow: hidden;
}

.m-ai-answer-toggle {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #c8dcf5;
  border-radius: 999px;
  background: #f6fbff;
  color: #174778;
  font-size: 12px;
  font-weight: 900;
}

.m-ai-status {
  display: inline-flex;
  width: fit-content;
  margin: -2px 0 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef7ff;
  color: #286097;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.m-ai-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 6px;
}

.m-ai-source-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef8f4;
  border: 1px solid #cbe8dc;
  color: #146452;
  font-size: 11px;
  font-weight: 900;
}

.m-ai-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.m-ai-followup {
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  background: #fff;
  color: #174778;
  min-height: 32px;
  max-width: 100%;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

.m-ai-site-cards {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.m-ai-site-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(24,57,98,.05);
}

.m-ai-site-card > div {
  min-width: 0;
}

.m-ai-site-card[data-ai-card-url] {
  cursor: pointer;
}

.m-ai-site-card[data-ai-card-url]:active {
  border-color: #8ebce9;
  transform: translateY(1px);
}

.m-ai-site-card img {
  width: 72px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  background: #edf4fb;
}

.m-ai-site-card h4 {
  margin: 0 0 4px;
  color: var(--m-ink);
  font-size: 13px;
  line-height: 1.35;
}

.m-ai-site-card h4 a {
  color: inherit;
  text-decoration: none;
}

.m-ai-site-card p {
  margin: 0 0 6px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.45;
}

.m-ai-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-ai-site-actions a,
.m-ai-site-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #c8dcf5;
  border-radius: 999px;
  background: #f6fbff;
  color: #174778;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.m-ai-msg.user {
  justify-self: end;
  max-width: 86%;
}

.m-ai-msg.user strong {
  text-align: right;
}

.m-ai-msg.user p {
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
}

.m-ai-form {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "voice input"
    "history send";
  gap: 7px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(219, 230, 244, .9);
  flex: 0 0 auto;
  align-items: stretch;
}

.m-ai-form .m-btn.icon {
  grid-area: voice;
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.m-ai-form .m-input {
  grid-area: input;
  width: 100%;
  min-width: 0;
}

.m-ai-form .m-btn {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}

.m-ai-form #mAiHistoryBtn {
  grid-area: history;
}

.m-ai-form .m-btn.primary {
  grid-area: send;
}

.m-ai-form #mAiHistoryBtn,
.m-ai-form .m-btn.primary {
  min-height: 38px;
}

.m-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  margin: 0 2px 9px;
}

.m-section-head h2 {
  margin: 0;
  color: var(--m-ink);
  font-size: 18px;
  line-height: 1.25;
}

.m-section-head a,
.m-section-head button {
  border: 0;
  background: transparent;
  color: #2362c5;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  padding: 0;
}

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

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

.m-card {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(24, 57, 98, .08);
}

.m-card.media {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.m-card-img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  display: block;
  background: #e9f0fa;
}

.m-media-thumb {
  height: 128px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37,109,255,.12), rgba(22,184,166,.14));
  color: #174778;
  font-size: 18px;
  font-weight: 900;
}

.m-lazy-video {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px dashed #c7d8ef;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37,109,255,.12), rgba(22,184,166,.12));
  overflow: hidden;
}

.m-lazy-video.loaded {
  display: block;
  min-height: 0;
  border: 0;
  background: transparent;
}

.m-video-start {
  width: 100%;
  min-height: inherit;
  border: 0;
  background: transparent;
  color: #174778;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  font-weight: 900;
}

.m-video-start span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
  box-shadow: 0 10px 20px rgba(37,109,255,.24);
}

.m-video-start strong {
  font-size: 12px;
}

.m-audio {
  width: 100%;
  display: block;
}

.m-card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.m-card h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: 16px;
  line-height: 1.32;
}

.m-card p {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.6;
}

.m-store-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}

.m-store-entry-actions .m-btn {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.m-store-scene-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scrollbar-width: none;
}

.m-store-scene-row::-webkit-scrollbar {
  display: none;
}

.m-store-scene-row a {
  flex: 0 0 auto;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(207, 221, 240, .95);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #245891;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.m-grid.store-products {
  grid-template-columns: 1fr;
}

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

.m-enterprise-card {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 17px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(24,57,98,.08);
}

.m-enterprise-media,
.m-enterprise-media img {
  display: block;
  width: 100%;
}

.m-enterprise-media img {
  height: 136px;
  object-fit: cover;
  background: #e9f0fa;
}

.m-enterprise-main {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.m-enterprise-main h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: 16px;
  line-height: 1.32;
}

.m-enterprise-main p,
.m-enterprise-contact {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.58;
}

.m-enterprise-reason {
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7fbff;
  color: #244e7e !important;
  font-weight: 900;
}

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

.m-store-product-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  padding: 9px;
  box-shadow: 0 9px 22px rgba(24, 57, 98, .075);
  overflow: hidden;
}

.m-store-product-media {
  min-width: 0;
}

.m-store-product-media img {
  width: 100%;
  height: 124px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: #e9f0fa;
}

.m-store-product-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.m-store-product-main .m-tags {
  gap: 4px;
  align-items: center;
}

.m-store-product-main .m-tag {
  min-height: 21px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.m-store-product-main h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: 15px;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-store-reason {
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-store-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}

.m-store-product-foot strong {
  color: var(--m-red);
  font-size: 18px;
  line-height: 1.1;
}

.m-store-product-foot span,
.m-store-shop-line {
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 900;
}

.m-store-shop-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-store-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 2px;
}

.m-store-card-actions .m-btn {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.m-store-filter {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 9px;
  border: 1px solid rgba(207, 221, 240, .9);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,249,255,.92));
  box-shadow: 0 10px 24px rgba(24,57,98,.07);
}

.m-store-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.m-store-pagination .m-btn {
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}

.m-store-pagination span {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.m-btn.disabled {
  pointer-events: none;
  opacity: .52;
}

.m-cart-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: stretch;
}

.m-cart-check {
  display: grid;
  place-items: start center;
  padding-top: 16px;
  background: rgba(240, 246, 255, .72);
  border-right: 1px solid var(--m-line);
}

.m-cart-check input,
.m-cart-toolbar input {
  width: 18px;
  height: 18px;
  accent-color: var(--m-blue);
}

.m-cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.m-cart-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--m-ink);
  font-weight: 900;
}

.m-danger-text {
  color: var(--m-red) !important;
}

.m-community-toolbar {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.m-community-count {
  color: var(--m-muted);
  font-size: 13px;
  font-weight: 900;
}

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

.m-filter-board {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(207, 221, 240, .9);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,249,255,.9));
  box-shadow: 0 10px 24px rgba(24,57,98,.07);
}

.m-filter-group {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.m-filter-group > strong {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  color: #214e7e;
  font-size: 12px;
  font-weight: 900;
}

.m-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.m-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  border: 1px solid rgba(210, 224, 242, .92);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255,255,255,.88);
  color: #315e8d;
  box-shadow: 0 5px 12px rgba(24,57,98,.045);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.m-filter-chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(37,109,255,.22);
}

.m-community-layout,
.m-community-feed,
.m-community-side {
  display: grid;
  gap: 9px;
}

.m-home-community-feed {
  display: grid;
  gap: 9px;
}

.m-community-layout {
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: start;
}

.m-community-side {
  align-content: start;
}

.m-community-side .m-panel {
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 7px 16px rgba(24, 57, 98, .06);
}

.m-community-side .m-panel h2 {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.25;
}

.m-community-side .m-panel p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.m-community-side .m-panel:nth-child(4) {
  display: none;
}

.m-home-community-layout {
  grid-template-columns: minmax(0, 1fr);
}

.m-home-community-side .m-panel:nth-child(n) {
  display: block;
}

.m-home-social-kicker {
  border-radius: 14px;
  background: linear-gradient(135deg, #176bff, #18bfc0);
  color: #fff;
  padding: 8px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 9px 18px rgba(23, 107, 255, .18);
}

.m-community-post {
  border: 1px solid var(--m-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  box-shadow: 0 10px 24px rgba(24, 57, 98, .08);
  overflow: hidden;
}

.m-community-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  padding: 9px;
}

.m-community-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.m-community-main {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.m-community-post-head {
  display: block;
  min-width: 0;
}

.m-community-post-head strong,
.m-social-row strong {
  color: var(--m-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.m-community-author-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  line-height: 1.2;
  vertical-align: top;
}

.m-community-author-name {
  min-width: 0;
  max-width: 100%;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.m-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 20px;
  margin-left: 0;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4c6, #ffb238 45%, #db6b11);
  color: #552600;
  box-shadow: 0 2px 8px rgba(201, 112, 18, .18);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  flex: 0 0 auto;
}

.m-level-badge::before {
  content: "★";
  color: #fff7ca;
}

.m-avatar-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.m-community-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.m-community-avatar.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

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

.m-community-meta,
.m-community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 800;
}

.m-community-meta span {
  border-radius: 999px;
  background: #f1f6ff;
  padding: 2px 6px;
}

.m-community-meta .pending {
  background: #fff5e3;
  color: #8a5200;
}

.m-community-meta .pending.rejected {
  background: #fff0f0;
  color: #b42f2f;
}

.m-related-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8ff;
  border: 1px solid #cfe5ff;
  color: #195a9b;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.m-related-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #f8fbff;
}

.m-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 900;
}

.m-related-head em {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #25639f;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.m-related-suggestions {
  display: grid;
  gap: 6px;
  max-height: 226px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cfe0f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--m-shadow);
}

.m-related-suggestions[hidden],
.m-related-selected[hidden] {
  display: none !important;
}

.m-related-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: #f4f8ff;
  color: var(--m-ink);
  text-align: left;
}

.m-related-option strong {
  font-size: 13px;
}

.m-related-option span,
.m-related-empty {
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.45;
}

.m-related-help {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #e2edf9;
  border-radius: 10px;
  background: #fff;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.55;
}

.m-related-help strong {
  flex: 0 0 auto;
  color: #25639f;
  font-weight: 900;
}

.m-related-help span {
  min-width: 0;
}

.m-related-selected {
  padding: 8px 10px;
  border: 1px solid #cfe5ff;
  border-radius: 10px;
  background: #eef8ff;
  color: #195a9b;
  font-size: 12px;
  font-weight: 900;
}
.m-community-post h2 {
  margin: 1px 0 0;
  color: var(--m-ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-community-post p {
  margin: 0;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-home-community-post p {
  -webkit-line-clamp: 4;
  color: #334155;
}

.m-community-media {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 10px 0;
  background: #edf3fb;
}

.m-community-media.compact {
  max-height: 240px;
}

.m-edit-media-preview {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--m-line);
  border-radius: 15px;
  background: #f8fbff;
}

.m-edit-media-preview strong {
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 900;
}

.m-edit-media-preview .m-community-media {
  margin: 0;
  object-fit: contain;
  background: #0c1d31;
}

.m-edit-media-preview .m-lazy-video {
  min-height: 176px;
  border-style: solid;
}

.m-community-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid #d9e6f6;
  border-radius: 15px;
  background: #edf4fb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.m-community-thumb.m-lazy-video {
  min-height: 86px;
  border-style: solid;
}

.m-community-thumb .m-video-start {
  min-height: 100%;
  gap: 4px;
}

.m-community-thumb .m-video-start span {
  width: 28px;
  height: 28px;
}

.m-community-thumb .m-video-start strong {
  font-size: 10px;
}

.m-community-thumb .m-community-media {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.m-community-thumb.video > span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(12, 31, 55, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.m-community-thumb.empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(37,109,255,.92), rgba(22,184,166,.88));
  color: #fff;
}

.m-community-thumb.empty strong {
  font-size: 20px;
  line-height: 1;
}

.m-community-thumb.empty span {
  font-size: 11px;
  font-weight: 900;
  opacity: .86;
}

.m-community-foot {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}

.m-community-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.m-community-actions .m-btn {
  min-height: 31px;
  padding: 0 4px;
  border-radius: 10px;
  font-size: 11px;
}

.m-home-community-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.m-social-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
  margin-top: 8px;
}

.m-social-row span {
  display: block;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.5;
}

.m-social-row .m-actions {
  grid-column: 1 / -1;
}

.m-community-side .m-social-row {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
  margin-top: 6px;
  border-radius: 11px;
}

.m-community-side .m-community-avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.m-community-side .m-social-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-community-side .m-social-row span {
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-community-side .m-social-row .m-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.m-community-side .m-social-row .m-btn {
  min-height: 28px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 11px;
}

.m-community-side .m-empty.compact {
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.m-gift-rank-panel {
  overflow: hidden;
}

.m-gift-rank-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 6px;
}

.m-gift-rank-tab {
  min-height: 24px;
  border: 1px solid #dce8f6;
  border-radius: 999px;
  background: #f8fbff;
  color: #416993;
  font-size: 10px;
  font-weight: 900;
}

.m-gift-rank-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #ffbd47, #ff6d4c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 112, 69, .2);
}

.m-gift-rank-list {
  display: grid;
  gap: 6px;
}

.m-gift-rank-item {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid #e2ebf8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 7px 6px;
}

.m-gift-rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e9f1fb;
  color: #4d6d91;
  font-size: 10px;
  font-weight: 1000;
}

.m-gift-rank-no.top {
  background: linear-gradient(135deg, #ffe7a4, #ff9c32);
  color: #653100;
}

.m-gift-rank-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #176bff, #18bfc0);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
}

.m-gift-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-gift-rank-main {
  min-width: 0;
}

.m-gift-rank-name {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 3px;
  min-width: 0;
}

.m-gift-rank-name > span:first-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  color: var(--m-ink);
  font-size: 11px;
  font-weight: 1000;
}

.m-gift-rank-name .m-level-badge {
  height: 17px;
  margin-left: 0;
  padding: 0 5px;
  font-size: 8.5px;
  flex: 0 0 auto;
}

.m-gift-rank-score,
.m-gift-rank-meta {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.3;
}

.m-gift-rank-score {
  color: #af5b00;
  font-weight: 900;
}

.m-gift-rank-meta {
  color: var(--m-muted);
}

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

.m-comment-item {
  border: 1px solid #e0e9f6;
  border-radius: 13px;
  background: #f8fbff;
  padding: 10px;
  margin-bottom: 8px;
}

.m-comment-item strong {
  color: var(--m-ink);
}

.m-comment-item span {
  display: block;
  margin: 2px 0 6px;
  color: var(--m-muted);
  font-size: 12px;
}

.m-comment-item p {
  margin: 0;
  color: #24456c;
  line-height: 1.6;
  white-space: pre-wrap;
}

.m-profile-card {
  display: grid;
  gap: 10px;
}

.m-profile-card .m-community-avatar {
  width: 56px;
  height: 56px;
}

.m-upload-panel {
  display: grid;
  gap: 9px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #f8fbff;
  padding: 11px;
}

.m-upload-panel[hidden] {
  display: none;
}

.m-upload-preview {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px dashed #c6d7ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.m-upload-preview img,
.m-upload-preview video {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #0c1d31;
}

.m-upload-video-shell {
  width: 100%;
  min-height: 156px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20,50,88,.9), rgba(37,109,255,.76));
}

.m-upload-video-shell .m-video-start {
  color: #fff;
}

.m-upload-video-shell .m-video-start span {
  background: rgba(255,255,255,.18);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.m-upload-video {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  background: #0c1d31;
}

.m-upload-preview audio {
  width: 92%;
}

.m-upload-line {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--m-muted);
  font-size: 12px;
}

.m-upload-line strong {
  color: var(--m-ink);
  overflow-wrap: anywhere;
}

.m-upload-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6eef9;
}

.m-upload-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--m-blue), var(--m-teal));
}

.m-upload-status,
.m-chat-subtitle {
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.6;
}

.m-chat-thread {
  max-height: 48vh;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #f8fbff;
}

.m-chat-row {
  display: flex;
  justify-content: flex-start;
}

.m-chat-row.self {
  justify-content: flex-end;
}

.m-chat-bubble {
  max-width: 82%;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
  padding: 9px 10px;
}

.m-chat-row.self .m-chat-bubble {
  border-color: rgba(37,109,255,.22);
  background: #eef5ff;
}

.m-chat-wallet {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 8px 0 10px;
  padding: 9px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 900;
}

.m-chat-wallet .m-btn,
.m-chat-toolbar .m-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.m-chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
}

.m-chat-panel {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 7px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
}

.m-chat-panel.show {
  display: grid;
}

.m-gift-wallet-summary,
.m-gift-wallet-records {
  grid-column: 1 / -1;
  border: 1px solid #dbe7f7;
  border-radius: 13px;
  background: #f8fbff;
  padding: 9px;
}

.m-gift-wallet-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  color: var(--m-ink);
  font-size: 12px;
  font-weight: 900;
}

.m-gift-wallet-summary b {
  color: #b65b00;
  font-size: 17px;
}

.m-gift-wallet-records {
  display: grid;
  gap: 6px;
  max-height: 118px;
  overflow: auto;
}

.m-gift-wallet-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #d6e5f6;
  color: var(--m-muted);
  font-size: 11px;
}

.m-gift-wallet-record:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.m-gift-wallet-record span {
  display: grid;
  gap: 2px;
}

.m-gift-wallet-record strong {
  color: var(--m-ink);
}

.m-gift-wallet-record b {
  color: #b65b00;
  white-space: nowrap;
}

.m-chat-emoji-btn,
.m-chat-gift-btn {
  border: 1px solid #d5e8ff;
  border-radius: 11px;
  background: #fff;
  color: var(--m-ink);
  font: inherit;
  font-weight: 900;
}

.m-chat-emoji-btn {
  min-height: 38px;
  font-size: 22px;
}

.m-chat-gift-btn {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 7px 4px;
  font-size: 11px;
}

.m-chat-gift-btn img,
.m-chat-gift-message img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.m-chat-gift-btn small {
  color: var(--m-muted);
  font-size: 10px;
}

.m-chat-content {
  color: var(--m-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.m-chat-gift-message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-chat-gift-message span {
  display: inline;
  color: var(--m-muted);
  font-size: 11px;
}

.m-chat-avatar-message {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(37, 109, 255, .18);
}

.m-chat-emoji-message {
  font-size: 24px;
  line-height: 1;
}

.m-chat-voice-message {
  display: grid;
  gap: 6px;
  min-width: min(250px, 66vw);
}

.m-chat-voice-message audio {
  width: 100%;
}

.m-chat-voice-message span {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 900;
}

.m-chat-voice-status {
  color: #c44b39;
  font-size: 12px;
  font-weight: 900;
}

.m-chat-bubble p {
  margin: 0;
  color: var(--m-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.m-chat-bubble span {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 11px;
}

.m-chat-bubble button {
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--m-red);
  font-weight: 900;
  padding: 0;
}

.m-chat-mini-actions {
  display: flex;
  gap: 10px;
}

.m-chat-bubble .m-chat-gift-message span {
  display: inline;
  margin-top: 0;
}

.m-meta,
.m-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.m-pill,
.m-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef5ff;
  color: #245891;
  font-size: 12px;
  font-weight: 900;
}

.m-tag.gold { background: #fff5e3; color: #8a5200; }
.m-tag.green { background: #eaf8f3; color: #1f755f; }
.m-tag.red { background: #fff0f0; color: #b42f2f; }
.m-tag.verified { background: #eaf8f3; color: #16715e; }

.m-panel {
  border: 1px solid var(--m-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 57, 98, .08);
  padding: 14px;
}

.m-panel h2,
.m-panel h3 {
  margin: 0 0 8px;
  color: var(--m-ink);
}

.m-panel p {
  color: var(--m-muted);
  line-height: 1.7;
}

.m-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0 12px;
}

.m-input,
.m-textarea,
.m-select {
  width: 100%;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: #fff;
  color: var(--m-ink);
  padding: 11px 12px;
  outline: none;
}

.m-textarea {
  min-height: 96px;
  resize: vertical;
}

.m-form {
  display: grid;
  gap: 11px;
}

.m-form label {
  display: grid;
  gap: 6px;
  color: #25445f;
  font-size: 13px;
  font-weight: 900;
}

.m-sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: center;
}

.m-sms-code-row .m-btn {
  min-width: 0;
  padding: 0 8px;
  white-space: nowrap;
}

.m-form-message {
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.55;
  font-size: 13px;
  font-weight: 900;
}

.m-form-message[hidden] {
  display: none;
}

.m-form-message.error {
  border: 1px solid #ffd1d1;
  background: #fff4f4;
  color: #b42f2f;
}

.m-form-message.success {
  border: 1px solid #cbeade;
  background: #effaf5;
  color: #1f755f;
}

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

.m-detail-media {
  width: 100%;
  max-height: 260px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background: #e9f0fa;
  box-shadow: var(--m-shadow);
}

.m-detail-title {
  margin: 14px 0 7px;
  font-size: 25px;
  line-height: 1.2;
  color: var(--m-ink);
}

.m-detail-copy {
  color: var(--m-muted);
  line-height: 1.8;
}

.m-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0;
}

.m-kpi {
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  padding: 12px 10px;
  box-shadow: 0 8px 18px rgba(24, 57, 98, .07);
}

.m-kpi strong {
  display: block;
  color: var(--m-blue);
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.m-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 900;
}

.m-detail-section {
  margin-top: 16px;
}

.m-detail-section h2 {
  margin: 0 0 10px;
  color: var(--m-ink);
  font-size: 18px;
}

.m-step-list {
  display: grid;
  gap: 9px;
}

.m-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  padding: 11px;
}

.m-step > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.m-step strong {
  display: block;
  color: var(--m-ink);
  line-height: 1.45;
}

.m-step p {
  margin: 4px 0 0;
  color: var(--m-muted);
  line-height: 1.65;
}

.m-step a {
  display: inline-flex;
  margin-top: 7px;
  color: var(--m-blue);
  font-weight: 900;
  text-decoration: none;
}

.m-trust-grid {
  display: grid;
  gap: 9px;
}

.m-trust-item {
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  padding: 11px;
  box-shadow: 0 8px 18px rgba(24, 57, 98, .07);
}

.m-trust-item strong {
  display: block;
  color: var(--m-ink);
  margin-bottom: 4px;
}

.m-trust-item p {
  margin: 0;
  color: var(--m-muted);
  line-height: 1.6;
}

.m-actions.detail {
  margin: 15px 0 4px;
}

.m-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 11px;
}

.m-user-summary-stats {
  margin: 6px 0 6px;
}

.m-stat {
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.94));
  padding: 8px 5px;
  text-align: center;
  box-shadow: 0 7px 16px rgba(24,57,98,.055);
  min-width: 0;
}

.m-stat strong {
  display: block;
  color: var(--m-blue);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.m-stat span {
  color: var(--m-muted);
  font-size: 12px;
  font-weight: 900;
}

.m-stat-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.m-stat-mini-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.m-stat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8f2ff;
  color: var(--m-blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.m-stat-link.reward {
  background: linear-gradient(135deg, #ffe7a6, #f4b93f);
  color: #693f00;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

.m-user-groups {
  display: grid;
  gap: 11px;
  margin: 8px 0 10px;
}

.m-user-group {
  border: 1px solid var(--m-line);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(24, 57, 98, .08);
  padding: 11px;
}

.m-user-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.m-user-action {
  min-height: 58px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--m-ink);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 6px;
  text-align: center;
  overflow: hidden;
}

.m-user-action strong {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.m-user-action span {
  color: var(--m-muted);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.m-user-action em {
  justify-self: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #245891;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 1px 6px;
}

.m-checkin-panel {
  padding: 11px 12px;
}

.m-checkin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.m-checkin-head h2 {
  margin: 0;
}

.m-checkin-panel p {
  margin: 0;
}

.m-wallet-panel {
  display: grid;
  gap: 10px;
}

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

.m-wallet-summary div {
  padding: 9px 6px;
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.94));
  text-align: center;
}

.m-wallet-summary span {
  display: block;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 900;
}

.m-wallet-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--m-blue);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.m-wallet-progress {
  height: 8px;
  border-radius: 999px;
  background: #e6eef9;
  overflow: hidden;
}

.m-wallet-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--m-blue), var(--m-teal));
}

.m-wallet-note {
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.55;
}

.m-wallet-record-list {
  display: grid;
  gap: 9px;
  max-height: 68vh;
  overflow: auto;
}

.m-wallet-record {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: #f8fbff;
}

.m-wallet-record div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.m-wallet-record strong {
  color: var(--m-ink);
  font-size: 13px;
  line-height: 1.35;
}

.m-wallet-record b {
  white-space: nowrap;
  font-size: 13px;
}

.m-wallet-record b.earn {
  color: #168038;
}

.m-wallet-record b.spend {
  color: #c2410c;
}

.m-wallet-record p {
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.45;
}

.m-wallet-level-table {
  display: grid;
  gap: 7px;
  max-height: 68vh;
  overflow: auto;
}

.m-wallet-level-table div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--m-muted);
  font-size: 12px;
}

.m-wallet-level-table strong {
  color: var(--m-blue);
}

.m-wallet-level-table span {
  color: var(--m-ink);
  font-weight: 900;
}

.m-wallet-level-table em {
  color: #9a5a00;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.m-empty,
.m-loading,
.m-error {
  border: 1px dashed #cad8ea;
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  color: var(--m-muted);
  padding: 18px;
  text-align: center;
  line-height: 1.7;
}

.m-error {
  border-color: #ffd0d0;
  color: #a83a3a;
  background: #fff5f5;
}

.m-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  left: max(0px, calc((100% - var(--m-page-max)) / 2));
  right: max(0px, calc((100% - var(--m-page-max)) / 2));
  bottom: 0;
  z-index: 60;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(207, 221, 240, .8);
  display: grid;
  grid-template-columns: repeat(var(--m-bottom-nav-columns, 7), minmax(0, 1fr));
  gap: 4px;
  width: auto;
}

.m-bottom-nav a {
  min-height: 50px;
  border-radius: 14px;
  color: #55708f;
  text-decoration: none;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
}

.m-bottom-nav a strong {
  width: 23px;
  height: 23px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #2763b5;
  font-size: 12px;
}

.m-bottom-nav a.active {
  color: #0f4eb7;
  background: #edf5ff;
}

.m-bottom-nav a.active strong {
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
}

.m-toast {
  position: fixed;
  left: var(--m-fixed-gap);
  right: var(--m-fixed-gap);
  left: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-left));
  right: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 120;
  width: auto;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 31, 55, .92);
  color: #fff;
  box-shadow: var(--m-shadow);
  text-align: center;
  line-height: 1.5;
}

.m-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 18px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  background: rgba(8, 18, 32, .48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m-modal-box {
  width: 100%;
  max-width: var(--m-page-max);
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  border-radius: 20px 20px 16px 16px;
  background: #fff;
  padding: 16px;
}

.m-modal-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -16px -16px 10px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(219, 230, 244, .78);
}

.m-modal-head h3 {
  margin: 0;
  color: var(--m-ink);
}

.m-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef5ff;
  color: #2763b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.m-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(219, 230, 244, .78);
}

.m-community-detail-modal {
  display: grid;
  gap: 12px;
}

.m-community-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-community-detail-author strong,
.m-community-detail-modal h2 {
  color: var(--m-ink);
  overflow-wrap: anywhere;
}

.m-community-detail-modal h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.m-community-detail-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.m-community-detail-modal .m-community-media,
.m-community-detail-modal .m-lazy-video {
  margin: 0;
  max-height: 52vh;
  border-radius: 16px;
  background: #0c1d31;
}

.m-community-detail-modal .m-community-media {
  object-fit: contain;
}

.m-community-detail-stats,
.m-community-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-community-detail-stats {
  color: var(--m-muted);
  font-size: 12px;
}

.m-point-history-loading {
  padding: 18px 4px 8px;
  color: var(--m-muted);
  text-align: center;
}

.m-point-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.m-point-history-summary span {
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: #f7fbff;
  padding: 9px 6px;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.m-point-history-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--m-ink);
  font-size: 17px;
}

.m-point-history-list {
  display: grid;
  gap: 9px;
}

.m-point-history-row {
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #fff;
  padding: 11px;
}

.m-point-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.m-point-history-top strong {
  color: var(--m-ink);
  line-height: 1.35;
}

.m-point-history-top em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
}

.m-point-history-top em.earn {
  color: #168038;
}

.m-point-history-top em.spend {
  color: #c2410c;
}

.m-point-history-row p {
  margin: 4px 0 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 561px) {
  .m-bottom-nav {
    border: 1px solid rgba(207, 221, 240, .8);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 380px) {
  :root { --m-edge-gap: 10px; --m-fixed-gap: 10px; }
  .m-hero h1 { font-size: 24px; }
  .m-ai-drawer:not(.collapsed) {
    height: min(88vh, 660px);
    height: min(88dvh, 660px);
    padding: 10px;
  }
  .m-ai-drawer:not(.collapsed) .m-ai-head {
    align-items: flex-start;
  }
  .m-ai-drawer:not(.collapsed) .m-ai-chip {
    max-width: 82vw;
  }
  .m-ai-form .m-btn:not(.icon) {
    min-height: 36px;
  }
  .m-grid.two,
  .m-form-grid,
  .m-filter-grid { grid-template-columns: 1fr; }
  .m-community-layout { grid-template-columns: minmax(0, 1fr) 132px; gap: 7px; }
  .m-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .m-stat { padding: 7px 3px; border-radius: 12px; }
  .m-stat strong { font-size: 15px; }
  .m-stat span { font-size: 10px; }
  .m-community-side { gap: 6px; }
  .m-community-side .m-panel { padding: 8px; border-radius: 12px; }
  .m-community-side .m-panel h2 { font-size: 12px; }
  .m-community-side .m-social-row { grid-template-columns: 28px minmax(0, 1fr); padding: 7px; gap: 6px; }
  .m-community-side .m-community-avatar.small { width: 28px; height: 28px; font-size: 10px; }
  .m-community-side .m-social-row .m-actions { grid-template-columns: 1fr; }
  .m-community-side .m-social-row .m-btn { min-height: 26px; font-size: 10px; }
  .m-gift-rank-item { grid-template-columns: 18px 26px minmax(0, 1fr); gap: 5px; padding: 6px 5px; }
  .m-gift-rank-no { width: 18px; height: 18px; font-size: 9px; }
  .m-gift-rank-avatar { width: 26px; height: 26px; font-size: 9px; }
  .m-gift-rank-tab { min-height: 23px; font-size: 10px; }
  .m-gift-rank-name > span:first-child { max-width: 100%; font-size: 10px; }
  .m-gift-rank-name .m-level-badge { height: 16px; padding: 0 4px; font-size: 8px; }
  .m-community-author-line { gap: 3px; line-height: 1.2; }
  .m-community-author-name { max-width: 100%; line-height: 18px; }
  .m-community-author-line .m-level-badge { height: 19px; padding: 0 5px; font-size: 9px; }
  .m-gift-rank-score,
  .m-gift-rank-meta { font-size: 9px; }
  .m-community-row { grid-template-columns: 62px minmax(0, 1fr); gap: 6px; padding: 7px; }
  .m-community-left { gap: 6px; }
  .m-community-thumb { min-height: 58px; border-radius: 12px; }
  .m-community-thumb.m-lazy-video { min-height: 58px; }
  .m-community-thumb .m-video-start span { width: 23px; height: 23px; }
  .m-community-thumb .m-video-start strong { font-size: 9px; }
  .m-filter-board { gap: 7px; padding: 7px; border-radius: 15px; }
  .m-filter-group { grid-template-columns: 34px minmax(0, 1fr); gap: 5px; }
  .m-filter-group > strong { min-height: 26px; font-size: 11px; }
  .m-filter-buttons { gap: 4px; }
  .m-filter-chip { min-height: 26px; padding: 0 7px; font-size: 10px; }
  .m-store-product-card { grid-template-columns: 1fr; }
  .m-store-product-media img { height: 150px; }
  .m-store-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-community-avatar { width: 36px; height: 36px; font-size: 13px; }
  .m-related-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #f8fbff;
}

.m-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 900;
}

.m-related-head em {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #25639f;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.m-related-suggestions {
  display: grid;
  gap: 6px;
  max-height: 226px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cfe0f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--m-shadow);
}

.m-related-suggestions[hidden],
.m-related-selected[hidden] {
  display: none !important;
}

.m-related-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: #f4f8ff;
  color: var(--m-ink);
  text-align: left;
}

.m-related-option strong {
  font-size: 13px;
}

.m-related-option span,
.m-related-empty {
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.45;
}

.m-related-help {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #e2edf9;
  border-radius: 10px;
  background: #fff;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.55;
}

.m-related-help strong {
  flex: 0 0 auto;
  color: #25639f;
  font-weight: 900;
}

.m-related-help span {
  min-width: 0;
}

.m-related-selected {
  padding: 8px 10px;
  border: 1px solid #cfe5ff;
  border-radius: 10px;
  background: #eef8ff;
  color: #195a9b;
  font-size: 12px;
  font-weight: 900;
}
.m-community-post h2 { font-size: 14px; }
  .m-community-post p,
  .m-community-meta,
  .m-community-stats { font-size: 10px; }
  .m-community-actions { gap: 4px; }
  .m-community-actions .m-btn { min-height: 29px; border-radius: 9px; font-size: 10px; }
  .m-user-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .m-user-action { min-height: 52px; padding: 7px 4px; }
  .m-user-action strong { font-size: 12px; }
  .m-user-action span { font-size: 10px; }
  .m-search { grid-template-columns: 1fr; }
  .m-shortcuts { gap: 5px; padding: 7px; border-radius: 15px; }
  .m-shortcut { min-height: 44px; padding: 5px 3px; font-size: 10px; }
  .m-shortcut span:first-child { width: 20px; height: 20px; border-radius: 8px; font-size: 10px; }
  .m-bottom-nav {
    padding-left: max(6px, env(safe-area-inset-left));
    padding-right: max(6px, env(safe-area-inset-right));
    gap: 3px;
  }
  .m-bottom-nav a { min-height: 48px; font-size: 9px; }
}

@media (min-width: 381px) and (max-width: 960px) {
  .m-community-layout { grid-template-columns: minmax(0, 1fr) 148px; gap: 9px; }
  .m-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-user-action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Long backend titles: keep full content, clamp only what is visible. */
.m-hero h1,
.m-detail-title,
.m-modal-head h3,
.m-panel h2,
.m-panel h3,
.m-section-head h2,
.m-ai-head h2,
.m-site-footer h2,
.m-card h3,
.m-community-post h2,
.m-ai-site-card h4,
.m-step strong,
.m-related-option strong,
.m-user-action strong,
.m-profile-card strong {
  min-width: 0 !important;
  max-width: 100% !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.m-brand span {
  min-width: 0 !important;
}

.m-brand strong,
.m-page-name,
.m-user-chip span,
.m-kpi strong {
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.m-bottom-nav a[hidden],
.m-shortcuts a[hidden],
[data-home-section][hidden],
[data-home-action][hidden],
[data-module-link][hidden],
.m-hero-actions a[hidden],
.m-hero-actions button[hidden] {
  display: none !important;
}

.m-bottom-nav,
.m-shortcuts,
.m-hero-actions {
  transition: gap .18s ease, padding .18s ease;
}

.m-bottom-nav {
  justify-content: space-around;
}

.m-bottom-nav a,
.m-shortcuts a {
  min-width: 0;
}

.m-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  align-items: stretch;
}

.m-hero-actions > a,
.m-hero-actions > button,
.m-hero-actions > .m-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

/* Mobile plaza left/right redesign. */
.m-community-layout,
.m-home-community-layout {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 144px);
  gap: 9px;
  align-items: start;
}

.m-community-feed,
.m-home-community-feed,
.m-community-side {
  min-width: 0;
}

.m-community-side {
  gap: 7px;
}

.m-community-side .m-panel:nth-child(4) {
  display: block;
}

.m-home-community-side [data-community-rank-panel="charm"] {
  display: none;
}

.m-home-social-kicker {
  border-radius: 12px;
  padding: 7px 6px;
  font-size: 11px;
  line-height: 1.2;
}

.m-community-side .m-panel {
  padding: 8px;
  border-radius: 12px;
}

.m-community-side .m-panel h2 {
  margin-bottom: 5px;
  font-size: 12px;
}

.m-community-side .m-social-row {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  padding: 7px;
  margin-top: 6px;
}

.m-community-side .m-community-avatar.small {
  width: 28px;
  height: 28px;
}

.m-home-ai-plaza-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.m-home-ai-plaza-actions .m-btn {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.m-home-community-toolbar {
  margin-bottom: 8px;
}

.m-home-community-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.m-community-side .m-social-row .m-actions {
  grid-template-columns: 1fr;
}

.m-community-side .m-social-row .m-btn,
.m-gift-rank-tab {
  min-height: 25px;
  font-size: 10px;
}

.m-community-side .m-empty.compact {
  padding: 8px 6px;
  font-size: 11px;
}

#mCommunityPagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(207, 221, 240, .9);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(24,57,98,.06);
}

#mCommunityPagination[hidden] {
  display: none !important;
}

#mCommunityPagination .m-btn {
  min-height: 32px;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 11px;
}

#mCommunityPagination .m-tag {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.m-community-toolbar .m-filter-board {
  gap: 7px;
}

.m-community-toolbar .m-filter-group {
  grid-template-columns: 1fr;
  gap: 5px;
}

.m-community-toolbar .m-filter-group > strong {
  min-height: 20px;
  font-size: 11px;
}

.m-community-toolbar .m-filter-buttons {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.m-community-toolbar .m-filter-buttons::-webkit-scrollbar {
  display: none;
}

.m-community-toolbar .m-filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
}

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

.m-community-actions .m-btn {
  min-height: 36px;
  font-size: 12px;
}

.m-community-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 80;
  min-width: 62px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--m-blue), var(--m-teal));
  color: #fff;
  box-shadow: 0 12px 28px rgba(37,109,255,.28);
  font-size: 14px;
  font-weight: 1000;
}

.m-post-detail-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid var(--m-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--m-shadow);
}

.m-post-detail-hero .m-community-media,
.m-post-detail-hero .m-lazy-video {
  width: 100%;
  margin: 0;
  max-height: 290px;
  border-radius: 15px;
}

.m-post-detail-hero h1 {
  margin: 0;
  color: var(--m-ink);
  font-size: 22px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.m-post-detail-summary,
.m-post-detail-fold p {
  margin: 0;
  color: var(--m-muted);
  font-size: 14px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.m-post-detail-fold {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #f8fbff;
  overflow: hidden;
}

.m-post-detail-fold summary {
  min-height: 40px;
  padding: 10px 12px;
  color: #195a9b;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.m-post-detail-fold p {
  padding: 0 12px 12px;
}

.m-post-detail-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px;
}

.m-post-detail-actions .m-btn {
  min-height: 38px;
  font-size: 12px;
}

.m-grid.travel-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.m-travel-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(24,57,98,.08);
}

.m-travel-media {
  position: relative;
  display: block;
  min-height: 100%;
  background: #edf3fb;
}

.m-travel-media img {
  width: 100%;
  height: 100%;
  min-height: 158px;
  object-fit: cover;
  display: block;
}

.m-travel-media span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  justify-content: center;
  min-height: 24px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(12,31,55,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.m-travel-main {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.m-travel-main h3 {
  margin: 0;
  color: var(--m-ink);
  font-size: 15px;
  line-height: 1.32;
}

.m-travel-reason {
  margin: 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.m-travel-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  color: #365d88;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.28;
}

.m-travel-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-travel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 1px;
}

.m-travel-actions .m-btn,
.m-travel-detail-actions .m-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
}

.m-travel-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.m-travel-detail-fold {
  margin-top: 16px;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(24,57,98,.06);
  overflow: hidden;
}

.m-travel-detail-fold summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--m-ink);
  font-weight: 900;
}

.m-travel-detail-fold p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--m-muted);
  line-height: 1.75;
}

.m-step-list.route-timeline .m-step > span {
  width: auto;
  min-width: 42px;
  padding: 0 6px;
}

.m-tour-sticky-signup {
  position: fixed;
  left: var(--m-fixed-gap);
  right: var(--m-fixed-gap);
  left: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-left));
  right: max(var(--m-fixed-gap), calc((100% - var(--m-page-max)) / 2 + var(--m-fixed-gap)), env(safe-area-inset-right));
  bottom: calc(var(--m-bottom-nav-height, 62px) + env(safe-area-inset-bottom) + 8px);
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(54px, auto));
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(207,221,240,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px rgba(24,57,98,.18);
  backdrop-filter: blur(12px);
}

.m-tour-sticky-signup strong,
.m-tour-sticky-signup span {
  display: block;
  min-width: 0;
}

.m-tour-sticky-signup strong {
  color: #d46b08;
  font-size: 17px;
  line-height: 1.2;
}

.m-tour-sticky-signup span {
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.m-tour-sticky-signup .m-btn {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
}

@media (max-width: 380px) {
  .m-community-layout,
  .m-home-community-layout {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 7px;
  }

  .m-community-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .m-community-side .m-panel {
    padding: 7px;
  }

  .m-gift-rank-item {
    grid-template-columns: 18px 24px minmax(0, 1fr);
    gap: 4px;
    padding: 6px 4px;
  }

  .m-gift-rank-avatar {
    width: 24px;
    height: 24px;
  }

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

  .m-travel-media img {
    min-height: 150px;
  }

  .m-travel-main {
    padding: 8px;
    gap: 6px;
  }

  .m-travel-meta {
    grid-template-columns: 1fr;
  }

  .m-travel-detail-actions {
    grid-template-columns: 1fr;
  }

  .m-tour-sticky-signup {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .m-tour-sticky-signup > div {
    grid-column: 1 / -1;
  }

  .m-tour-sticky-signup .m-btn {
    padding: 0 8px;
  }
}

