/* =====================================================================
   WindPass 全站 · 「雾面浅灰」风格层（与登录/注册 auth-mist 同一语言）
   加载顺序：app.css → experience.css → ui-refresh.css → mist-site.css（最后）
   作用域：body.page-shell（广场/消息/收藏/图标/行程/团队/统计/回收站/个人档案/分享）
          body.map-page 仅做配色令牌替换，不动功能布局。
   目标：铺满视口、去掉浮动白卡片与硬阴影、雾面浅灰底、墨色文字、大标题。
   ===================================================================== */

/* --------------------------------------------------------------------
   1. 设计令牌与页面底色
   -------------------------------------------------------------------- */

html body.page-shell,
html body.map-page {
  --mist-ink: #1d1d1f;
  --mist-ink-2: #424245;
  --mist-muted: #6e6e73;
  --mist-faint: #86868b;
  --mist-line: rgba(29, 29, 31, 0.08);
  --mist-line-2: rgba(29, 29, 31, 0.14);
  --mist-fill: #f5f6f9;
  --mist-fill-2: #eef0f5;
  --mist-blue: #0066cc;
  --mist-slate: #5c6b8a;
  --mist-slate-2: #8c9bb9;
  --mist-slate-soft: #eef1f7;
  --mist-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html body.page-shell {
  margin: 0;
  color: var(--mist-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #fbfbfd;
  background-image: radial-gradient(70% 46% at 50% 0%, #eef1f7 0%, rgba(238, 241, 247, 0) 72%);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 去掉旧的竖向栅格纹理 */
html body.page-shell::before {
  display: none;
}

/* --------------------------------------------------------------------
   2. 顶部导航：雾面玻璃条
   -------------------------------------------------------------------- */

html body.page-shell .page-topbar {
  min-height: 64px;
  border-bottom: 1px solid var(--mist-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html body.page-shell .page-topbar::after {
  display: none;
}

html body.page-shell .page-topbar .brand-inline {
  border-right: 1px solid var(--mist-line-2);
}

html body.page-shell .page-topbar .brand-copy strong {
  color: var(--mist-ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}

html body.page-shell .page-topbar .brand-copy small {
  color: var(--mist-faint);
  letter-spacing: 0.22em;
}

html body.page-shell .topbar-actions .nav-link,
html body.page-shell .topbar-actions .notify-btn {
  border-radius: 999px;
  color: var(--mist-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

html body.page-shell .topbar-actions .nav-link::after {
  display: none;
}

html body.page-shell .topbar-actions .nav-link:hover,
html body.page-shell .topbar-actions .notify-btn:hover {
  background: var(--mist-fill);
  color: var(--mist-ink);
}

/* 当前页：墨色胶囊，与登录页主按钮同语言 */
html body.page-shell .topbar-actions .nav-link.active {
  background: var(--mist-ink);
  color: #fff;
  font-weight: 600;
}

html body.page-shell .topbar-account .user-avatar-btn {
  border-radius: 999px;
}

/* --------------------------------------------------------------------
   3. 主区：铺满视口，去掉浮动白卡片
   （experience.css 第 11 节对下列属性用了 !important，这里须同级覆盖）
   -------------------------------------------------------------------- */

html body.page-shell .page-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 56px) clamp(24px, 6vw, 96px) clamp(64px, 8vh, 110px);
}

html body.page-shell .page-panel,
html body.page-shell .workspace-panel,
html body.page-shell .square-panel {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 页头：大标题 + 石板蓝眉题 */
html body.page-shell .workspace-header {
  align-items: end !important;
  gap: 28px !important;
  padding-bottom: clamp(20px, 2.4vw, 30px) !important;
  border-bottom: 1px solid var(--mist-line);
}

html body.page-shell .workspace-kicker {
  margin-bottom: 10px !important;
  color: var(--mist-slate);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

html body.page-shell .workspace-header h1 {
  color: var(--mist-ink) !important;
  font-family: inherit;
  font-size: clamp(2rem, 3vw, 2.9rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}

html body.page-shell .workspace-header-copy p {
  margin-top: 10px;
  color: var(--mist-muted);
  font-size: 1rem !important;
  line-height: 1.7;
}

/* --------------------------------------------------------------------
   4. 页签：雾面分段控件
   -------------------------------------------------------------------- */

html body.page-shell .workspace-panel .msg-tabs,
html body.page-shell .msg-tabs.square-content-tabs {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 4px !important;
  margin: clamp(18px, 2.2vw, 28px) 0 0 !important;
  padding: 4px !important;
  border: 1px solid var(--mist-line) !important;
  border-bottom: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.66) !important;
  overflow: visible !important;
}

html body.page-shell .workspace-panel .msg-tab {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin-bottom: 0 !important;
  padding: 0 26px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--mist-muted) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  transition: color 0.2s ease, background 0.2s ease;
}

html body.page-shell .workspace-panel .msg-tab:hover {
  background: var(--mist-fill) !important;
  color: var(--mist-ink) !important;
}

html body.page-shell .workspace-panel .msg-tab.active {
  background: var(--mist-ink) !important;
  border-bottom: 0 !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(29, 29, 31, 0.18);
}

/* 旧版页签底部的墨绿短下划线（::after），分段控件里不需要 */
html body.page-shell .msg-tab::after,
html body.page-shell .messages-panel .msg-tab::after {
  display: none !important;
}

/* --------------------------------------------------------------------
   5. 搜索 / 筛选 / 输入
   -------------------------------------------------------------------- */

html body.page-shell .workspace-panel .filter-bar,
html body.page-shell .msg-pane .filter-bar {
  grid-template-columns: minmax(0, 1fr) 240px !important;
  gap: 10px !important;
  margin: clamp(14px, 1.8vw, 22px) 0 10px !important;
  padding: 10px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html body.page-shell .filter-bar:focus-within {
  border-color: rgba(140, 155, 185, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(140, 155, 185, 0.18) !important;
}

html body.page-shell .workspace-panel .workspace-search {
  min-height: 46px !important;
  padding: 0 16px !important;
  gap: 10px !important;
}

html body.page-shell .workspace-panel .workspace-select {
  min-height: 46px !important;
  padding: 0 16px !important;
}

html body.page-shell .workspace-search input,
html body.page-shell .filter-bar input,
html body.page-shell .filter-bar select,
html body.page-shell .workspace-select select {
  border: 0;
  background: transparent;
  color: var(--mist-ink);
  font-size: 0.98rem;
}

html body.page-shell .workspace-panel .workspace-search input {
  font-size: 1rem !important;
}

html body.page-shell .workspace-search svg,
html body.page-shell .workspace-select svg {
  color: var(--mist-faint);
}

/* 通用输入框（弹窗、表单等） */
html body.page-shell input[type="text"],
html body.page-shell input[type="search"],
html body.page-shell input[type="password"],
html body.page-shell input[type="email"],
html body.page-shell input[type="url"],
html body.page-shell input[type="number"],
html body.page-shell input[type="date"],
html body.page-shell input[type="time"],
html body.page-shell input[type="datetime-local"],
html body.page-shell textarea,
html body.page-shell select {
  border: 1px solid var(--mist-line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--mist-ink);
}

html body.page-shell input:focus,
html body.page-shell textarea:focus,
html body.page-shell select:focus {
  border-color: rgba(140, 155, 185, 0.55);
  box-shadow: 0 0 0 3px rgba(140, 155, 185, 0.18);
  outline: none;
}

html body.page-shell ::placeholder {
  color: var(--mist-faint);
}

/* --------------------------------------------------------------------
   6. 按钮：墨色主按钮 + 白底幽灵按钮
   -------------------------------------------------------------------- */

html body.page-shell .btn,
html body.page-shell .btn-primary,
html body.page-shell .btn-ghost {
  border-radius: 999px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    box-shadow 0.28s ease, transform 0.22s var(--mist-ease);
}

html body.page-shell .workspace-header .btn {
  min-height: 44px !important;
  padding: 0 20px !important;
  font-size: 0.95rem !important;
}

html body.page-shell .btn-primary {
  border-color: transparent;
  background: var(--mist-ink) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.16);
}

html body.page-shell .btn-primary:hover {
  background: #000 !important;
  box-shadow: 0 8px 24px rgba(29, 29, 31, 0.22);
}

html body.page-shell .btn-ghost {
  border: 1px solid var(--mist-line-2) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--mist-ink) !important;
}

html body.page-shell .btn-ghost:hover {
  background: var(--mist-fill) !important;
  border-color: rgba(29, 29, 31, 0.2) !important;
}

/* 状态条（回收站/收藏页顶部提示） */
html body.page-shell .workspace-status {
  color: var(--mist-slate) !important;
  background: var(--mist-slate-soft) !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
}

/* --------------------------------------------------------------------
   7. 内容卡片：统计块 / 信息流 / 空状态 / 状态条
   -------------------------------------------------------------------- */

html body.page-shell .stat-block,
html body.page-shell .stat-bars,
html body.page-shell .stat-columns,
html body.page-shell .stat-rank,
html body.page-shell .workspace-status,
html body.page-shell .empty-state {
  border: 1px solid var(--mist-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px rgba(29, 29, 31, 0.05);
}

html body.page-shell .section-title {
  color: var(--mist-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 信息流卡片（广场 / 收藏 / 回收站的条目由 JS 渲染，统一按类名接管） */
html body.page-shell .feed-list > li,
html body.page-shell .feed-card,
html body.page-shell .moment-card,
html body.page-shell .trip-card,
html body.page-shell .team-card,
html body.page-shell .icon-card {
  border: 1px solid var(--mist-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 10px 28px rgba(29, 29, 31, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s var(--mist-ease);
}

html body.page-shell .feed-list > li:hover,
html body.page-shell .feed-card:hover,
html body.page-shell .moment-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(29, 29, 31, 0.09);
}

html body.page-shell .empty-state h3,
html body.page-shell .empty-state strong {
  color: var(--mist-ink);
  font-weight: 600;
}

html body.page-shell .empty-state p,
html body.page-shell .empty-state span {
  color: var(--mist-muted);
}

/* 统计页：条形图改石板蓝 */
html body.page-shell .stat-bar-track,
html body.page-shell .stat-rank-track {
  background: var(--mist-fill-2);
}

html body.page-shell .stat-bar-track i {
  background: linear-gradient(90deg, var(--mist-slate-2), var(--mist-slate));
}

html body.page-shell .stat-rank-track i {
  background: var(--mist-slate-2);
}

html body.page-shell .stat-card,
html body.page-shell .stat-block {
  border: 1px solid var(--mist-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

html body.page-shell .stat-card-value {
  color: var(--mist-ink);
}

/* --------------------------------------------------------------------
   8. 弹层：抽屉 / 弹窗 / 提示条
   -------------------------------------------------------------------- */

html body.page-shell dialog.sheet {
  border: 1px solid var(--mist-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html body.page-shell .toast {
  border: 1px solid var(--mist-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mist-ink);
  box-shadow: 0 12px 36px rgba(29, 29, 31, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* --------------------------------------------------------------------
   9. 个人档案 / 分享页的电影头图：压亮为雾面
   -------------------------------------------------------------------- */

html body.page-shell .cine-stage {
  --cine-background: #eef1f7;
  --cine-foreground: var(--mist-ink);
  --cine-muted: var(--mist-muted);
  --cine-rule: var(--mist-line-2);
  background:
    radial-gradient(70% 60% at 50% 0%, #e8edf6 0%, rgba(238, 241, 247, 0) 70%),
    var(--cine-background);
}

html body.page-shell .cine-stage::before {
  opacity: 0.16;
}

html body.page-shell .cine-stage-video {
  opacity: 0.22;
  filter: saturate(0.6) brightness(1.15);
}

html body.page-shell .cine-stage-scrim {
  background: linear-gradient(
    180deg,
    rgba(251, 251, 253, 0.5) 0%,
    rgba(251, 251, 253, 0.78) 60%,
    #fbfbfd 100%
  );
}

html body.page-shell .cine-stage-copy h1 {
  max-width: none;
  font-family: inherit;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

html body.page-shell .cine-stage-index,
html body.page-shell .cine-stage-status {
  color: var(--mist-slate);
}

html body.page-shell .cine-stage-topline span,
html body.page-shell .cine-stage-caption {
  color: var(--mist-faint);
}

html body.page-shell .cine-stage-btn {
  border-color: var(--mist-line-2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--mist-ink);
}

html body.page-shell .cine-stage-btn--solid {
  border-color: transparent;
  background: var(--mist-ink);
  color: #fff;
}

html body.page-shell .cine-stage-btn--solid:hover:not(:disabled) {
  background: #000;
  color: #fff;
}

/* --------------------------------------------------------------------
   10. 分享页外壳
   -------------------------------------------------------------------- */

html body.page-shell.share-page .page-main {
  padding-top: clamp(24px, 3.4vw, 44px);
}

/* --------------------------------------------------------------------
   11. 地图页：只替换配色令牌，不动布局
   -------------------------------------------------------------------- */

html body.map-page {
  --ui-accent: #5c6b8a;
  --ui-accent-dark: #3f4d6b;
  --ui-accent-soft: #eef1f7;
  --accent: #5c6b8a;
  --accent-dark: #3f4d6b;
  --accent-soft: #eef1f7;
  --wp-blue: #5c6b8a;
  --wp-blue-deep: #3f4d6b;
  --wp-ink: #1d1d1f;
  --wp-sub: #6e6e73;
  --wp-line: rgba(29, 29, 31, 0.1);
  --wp-shadow: 0 10px 30px rgba(29, 29, 31, 0.08);
}

/* --------------------------------------------------------------------
   12. 窄屏兜底
   -------------------------------------------------------------------- */

@media (max-width: 980px) {
  html body.page-shell .page-main {
    padding: 18px 16px 72px;
  }

  html body.page-shell .page-panel,
  html body.page-shell .workspace-panel,
  html body.page-shell .square-panel {
    width: 100%;
  }

  html body.page-shell .msg-tabs {
    border-radius: 22px;
  }
}

/* --------------------------------------------------------------------
   13. 细节抛光
   -------------------------------------------------------------------- */

/* 顶栏头像按钮：墨色圆 */
html body.page-shell .topbar-account .user-avatar-btn {
  border-color: transparent;
  background: var(--mist-ink);
  color: #fff;
}

/* feed 条目卡片化：白底描边圆角，去掉常亮左色条 */
html body.page-shell .feed-item {
  border: 1px solid var(--mist-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

html body.page-shell .feed-item::before {
  background: transparent !important;
}

html body.page-shell .feed-item.is-active::before,
html body.page-shell .feed-item:hover::before {
  background: var(--mist-slate-2) !important;
}

/* 空状态：白底虚线框（压掉旧的浅绿底） */
html body.page-shell .empty-state {
  border: 1px dashed var(--mist-line-2) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

/* 复选框 / 滑杆主题色改石板蓝 */
html body.page-shell,
html body.map-page {
  accent-color: var(--mist-slate);
}

/* 地图页残留墨绿收尾 */
html body.map-page .sidebar-stats .stat b {
  color: var(--mist-slate);
}

html body.map-page .category-chips .category-chip.is-active {
  background: var(--mist-slate-soft) !important;
  border-color: var(--mist-slate) !important;
}

html body.map-page .dot-preview-ring i {
  background: var(--mist-slate);
  box-shadow: 0 1px 4px rgba(92, 107, 138, 0.4);
}

/* --------------------------------------------------------------------
   14. 地图页功能精简：左栏清单 / 图层面板 / 强筛选 / 分享
   -------------------------------------------------------------------- */

/* 左栏头计数徽标 */
html body.map-page .sidebar-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--mist-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: 3px;
}

/* 左栏主体：搜索 + 强筛选 + 操作 + 列表，纵向 flex，列表自己滚 */
html body.map-page .sidebar .side-pane#side-pane-points {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html body.map-page .sidebar .side-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mist-line-2);
  border-radius: 12px;
  background: #fff;
}

html body.map-page .sidebar .side-search svg {
  width: 16px;
  height: 16px;
  color: var(--mist-faint);
  flex: none;
}

html body.map-page .sidebar .side-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  font-size: 0.92rem;
  color: var(--mist-ink);
}

/* 强筛选：标签 / 好友 / 群组 三列 */
html body.map-page .sidebar .side-strong-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

html body.map-page .sidebar .side-strong-filters label {
  display: grid;
  gap: 3px;
}

html body.map-page .sidebar .side-strong-filters span {
  font-size: 0.7rem;
  color: var(--mist-faint);
  letter-spacing: 0.04em;
}

html body.map-page .sidebar .side-strong-filters select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--mist-line-2);
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  color: var(--mist-ink);
}

/* 点位列表区占满剩余高度 */
html body.map-page .sidebar .side-list-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 单行标题条目：圆点 + 标题，超出省略 */
html body.map-page .sidebar .side-point-list {
  flex: 1;
}

html body.map-page .sidebar .side-point-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px;
  padding: 9px 12px !important;
  border: 1px solid var(--mist-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  margin: 0 0 6px !important;
  text-align: left !important;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

html body.map-page .sidebar .side-point-item:hover {
  border-color: rgba(29, 29, 31, 0.2) !important;
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.07) !important;
}

/* 旧的 52×64 圆点卡槽只在「.point-card-dot」上出现，精简列表用 12px 小圆点 */
html body.map-page .sidebar .side-point-item .category-dot {
  flex: none;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: var(--cat-color, var(--mist-slate)) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9) !important;
}

/* 旧邮票式条目在右侧画的 21×30 小方块与两侧齿孔纹理，精简列表一律去掉 */
html body.map-page .sidebar .side-point-item::before,
html body.map-page .sidebar .side-point-item::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
}

html body.map-page .sidebar .side-point-item h4 {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html body.map-page .sidebar .side-point-item.active {
  border-color: var(--mist-slate);
  box-shadow: 0 0 0 2px rgba(140, 155, 185, 0.25);
}

html body.map-page .sidebar .side-point-item h4 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body.map-page .sidebar .side-point-item .point-card-dot {
  flex: none;
}

/* 分组头精简 */
html body.map-page .sidebar .point-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 4px;
  color: var(--mist-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------- 图层面板 */
html body.map-page .map-layer-control {
  position: relative;
}

html body.map-page .layer-panel {
  position: fixed;
  top: 150px;
  right: 16px;
  z-index: 90;
  width: 248px;
  max-height: min(62vh, 460px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mist-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(29, 29, 31, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

html body.map-page .layer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--mist-line);
}

html body.map-page .layer-panel-head strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mist-ink);
}

html body.map-page .layer-panel-scroll {
  overflow-y: auto;
  padding: 10px 14px 14px;
  display: grid;
  gap: 12px;
}

html body.map-page .layer-group-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mist-faint);
  text-transform: uppercase;
}

html body.map-page .layer-check-list {
  display: grid;
  gap: 2px;
}

html body.map-page .layer-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--mist-ink-2);
  cursor: pointer;
}

html body.map-page .layer-check-item:hover {
  background: var(--mist-fill);
}

html body.map-page .layer-check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--mist-ink);
}

html body.map-page .layer-check-item span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body.map-page .layer-check-item em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--mist-faint);
  font-variant-numeric: tabular-nums;
}

html body.map-page .layer-tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

html body.map-page .layer-empty {
  font-size: 0.8rem;
  color: var(--mist-faint);
}

/* 精简后右栏只剩两个按钮，文字常显（旧设计是悬停才展开） */
html body.map-page .map-action-bar button > span:last-child {
  max-width: 92px !important;
  margin-left: 8px !important;
  overflow: visible;
  opacity: 1 !important;
  transform: none !important;
}

/* 分享对话框目标列表 */
html body.map-page .share-targets {
  display: grid;
  gap: 12px;
  padding: 4px 0 10px;
}

/* --------------------------------------------------------------------
   15. 按截图抛光：与登录页「方案十三 · 雾面浅灰」严格同语言
   -------------------------------------------------------------------- */

/* ---- 15.1 地图左栏：删标题后重排，统一 12px 节奏 ---- */
html body.map-page .sidebar {
  padding: 14px 12px !important;
  gap: 10px;
  background: rgba(255, 255, 255, 0.86) !important;
  border-right: 1px solid var(--mist-line) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html body.map-page .sidebar-mobile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

html body.map-page .sidebar .side-pane#side-pane-points {
  gap: 12px !important;
  padding-top: 4px;
}

html body.map-page .sidebar .side-search {
  height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: var(--mist-fill) !important;
}

/* 三个强筛选项改为整行胶囊，窄栏不再挤成一团 */
html body.map-page .sidebar .side-strong-filters {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

html body.map-page .sidebar .side-strong-filters span {
  display: none !important;
}

html body.map-page .sidebar .side-strong-filters select {
  height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: var(--mist-fill) !important;
  font-size: 0.84rem !important;
  color: var(--mist-ink-2) !important;
}

html body.map-page .sidebar .point-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body.map-page .sidebar .point-toolbar .text-btn {
  flex: 1 1 auto;
  min-width: 84px;
  height: 34px;
  border: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--mist-ink-2) !important;
  font-size: 0.78rem !important;
  text-align: center;
}

html body.map-page .sidebar .point-group-head {
  padding: 6px 6px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mist-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mist-muted) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.08em !important;
}

html body.map-page .sidebar .side-point-item {
  padding: 11px 14px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 14px !important;
  background: var(--mist-fill) !important;
}

html body.map-page .sidebar .side-point-item h4 {
  font-size: 0.86rem !important;
  font-weight: 500 !important;
}

/* ---- 15.2 地图右栏：雾面玻璃胶囊容器 + 两枚胶囊按钮 ---- */
html body.map-page .map-action-bar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: auto !important;
  padding: 6px !important;
  margin: 0 !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html body.map-page .map-action-bar .map-layer-control {
  width: 100%;
}

html body.map-page .map-action-bar .map-tool-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 38px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mist-ink) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
}

html body.map-page .map-action-bar .map-tool-btn:hover {
  background: var(--mist-fill) !important;
}

html body.map-page .map-action-bar .map-tool-icon {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
}

html body.map-page .map-action-bar button > span:last-child {
  max-width: none !important;
  margin-left: 8px !important;
  font-size: 0.84rem !important;
}

html body.map-page .map-action-bar .map-action-divider {
  display: none !important;
}

/* ---- 15.3 消息页：页签进左栏，左右比例与留白对齐登录页 ---- */
html body.page-shell .page-panel.messages-panel {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

html body.page-shell .messages-panel .workspace-panel .msg-tabs,
html body.page-shell .messages-panel .msg-tabs {
  display: flex !important;
  gap: 4px !important;
  margin: 0 0 12px !important;
  padding: 4px !important;
  border: 1px solid var(--mist-line) !important;
  border-bottom: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: var(--mist-fill) !important;
  overflow: visible !important;
}

html body.page-shell .messages-panel .msg-tab {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--mist-muted) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html body.page-shell .messages-panel .msg-tab:hover {
  background: var(--mist-fill-2) !important;
  color: var(--mist-ink) !important;
}

html body.page-shell .messages-panel .msg-tab.active {
  background: var(--mist-ink) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(29, 29, 31, 0.16) !important;
}

html body.page-shell .messages-panel .msg-tab.active::after {
  display: none !important;
}

html body.page-shell .messages-panel .msg-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
  min-height: min(72vh, 760px) !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
}

html body.page-shell .messages-panel .msg-side {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  background: var(--mist-fill) !important;
  border-right: 1px solid var(--mist-line) !important;
}

html body.page-shell .messages-panel .msg-pane {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 12px !important;
  overflow-y: auto !important;
}

html body.page-shell .messages-panel .feed-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: 100% !important;
  margin: 0 !important;
}

html body.page-shell .messages-panel .feed-list > .empty-state {
  flex: 1 1 auto !important;
  align-content: center !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 24px 20px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  text-align: center !important;
}

html body.page-shell .messages-panel .feed-list > .empty-state::before {
  display: none !important;
}

html body.page-shell .messages-panel .feed-list > .empty-state strong {
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
}

html body.page-shell .messages-panel .feed-list > .empty-state p {
  font-size: 0.82rem !important;
}

html body.page-shell .messages-panel .msg-chat {
  min-height: 0 !important;
  background:
    radial-gradient(70% 60% at 50% 0%, #eef1f7 0%, rgba(238, 241, 247, 0) 72%),
    #fff !important;
}

html body.page-shell .messages-panel .chat-empty {
  padding: 24px !important;
}

html body.page-shell .messages-panel .chat-empty-inner {
  max-width: 420px !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

html body.page-shell .messages-panel .chat-empty-inner strong {
  font-size: 1.25rem !important;
}

html body.page-shell .messages-panel .chat-empty-inner p {
  color: var(--mist-muted) !important;
}

html body.page-shell .messages-panel .chat-empty-icon {
  display: grid !important;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------
   16. 二次抛光：工具条一行 + 分组计数墨色胶囊 + 消息空卡不再撑满
   -------------------------------------------------------------------- */
html body.map-page .sidebar .point-toolbar .text-btn {
  width: auto !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

html body.map-page .sidebar .point-group-head .pg-arrow {
  color: var(--mist-faint);
  font-weight: 400;
}

html body.map-page .sidebar .point-group-head .pg-title {
  font-weight: 600;
}

html body.map-page .sidebar .point-group-head .pg-count {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mist-ink);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
}

html body.page-shell .messages-panel .msg-tabs {
  width: 100% !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

html body.page-shell .messages-panel .feed-list {
  height: auto !important;
}

html body.page-shell .messages-panel .feed-list > .empty-state {
  flex: 0 0 auto !important;
  min-height: 220px !important;
  padding: 32px 20px !important;
}

/* 图层面板让开右栏胶囊按钮 */
html body.map-page .layer-panel {
  top: 210px !important;
}

/* --------------------------------------------------------------------
   17. 弹窗系统：全部收敛到「方案十三」雾面浅灰语言
   -------------------------------------------------------------------- */
html body dialog.sheet,
html body dialog.app-modal {
  border: 1px solid var(--mist-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  color: var(--mist-ink) !important;
  box-shadow: 0 40px 90px rgba(30, 40, 60, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  font-family: inherit !important;
  overflow: hidden !important;
}

html body dialog.sheet::backdrop,
html body dialog.app-modal::backdrop {
  background: rgba(29, 29, 31, 0.34) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html body dialog.sheet .sheet-body,
html body dialog.app-modal .app-modal-body {
  display: grid !important;
  align-content: start;
  gap: 16px !important;
  max-height: calc(100dvh - 48px) !important;
  padding: 28px !important;
  background: #fff !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

html body dialog.sheet .sheet-head {
  top: -28px !important;
  margin: -28px -28px 2px !important;
  padding: 22px 28px 16px !important;
  border-bottom: 1px solid var(--mist-line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html body dialog .sheet-head h3,
html body dialog .app-modal-body h3 {
  margin: 0 !important;
  color: var(--mist-ink) !important;
  font-family: inherit !important;
  font-size: 1.24rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

html body dialog .muted,
html body dialog .app-modal-body > p,
html body dialog .field-hint {
  color: var(--mist-muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.6 !important;
}

html body dialog input[type="text"],
html body dialog input[type="search"],
html body dialog input[type="password"],
html body dialog input[type="number"],
html body dialog textarea,
html body dialog select {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--mist-line-2) !important;
  border-radius: 12px !important;
  background: var(--mist-fill) !important;
  color: var(--mist-ink) !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

html body dialog input:focus,
html body dialog textarea:focus,
html body dialog select:focus {
  border-color: rgba(92, 107, 138, 0.6) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(92, 107, 138, 0.16) !important;
  outline: none !important;
}

html body dialog input[type="range"] {
  accent-color: var(--mist-ink) !important;
  height: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mist-fill-2) !important;
}

/* 类别 / 标签管理弹窗 */
html body dialog .tag-create {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 16px !important;
  background: var(--mist-fill) !important;
}

html body dialog .tag-create-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body dialog .tag-color-picker {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

html body dialog .tag-color-swatch {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: var(--swatch) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html body dialog .tag-color-swatch:hover {
  transform: scale(1.1);
}

html body dialog .tag-color-swatch.is-active {
  box-shadow: 0 0 0 3px var(--mist-ink) !important;
}

html body dialog .cat-create-size {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 34px !important;
  align-items: center;
  gap: 10px !important;
  color: var(--mist-muted) !important;
  font-size: 0.82rem !important;
}

html body dialog .cat-create-size output {
  text-align: right;
  color: var(--mist-ink) !important;
  font-variant-numeric: tabular-nums;
}

html body dialog .tag-manage-list {
  display: grid !important;
  gap: 8px !important;
  max-height: min(38vh, 340px) !important;
  padding: 2px 4px 2px 2px !important;
  overflow-y: auto !important;
}

html body dialog .tag-manage-row,
html body dialog #category-manage-list .tag-manage-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

html body dialog .cat-row-main,
html body dialog .cat-row-size {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  grid-template-columns: none !important;
}

html body dialog .tag-manage-name {
  min-height: 34px !important;
  padding: 6px 10px !important;
  font-size: 0.86rem !important;
}

html body dialog .cat-manage-dot {
  flex: none !important;
  width: var(--dot-size, 14px) !important;
  height: var(--dot-size, 14px) !important;
  border-radius: 50% !important;
  background: var(--cat-color) !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--mist-line) !important;
}

html body dialog .cat-manage-builtin,
html body dialog .tag-manage-del {
  padding: 4px 10px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 999px !important;
  background: var(--mist-fill) !important;
  color: var(--mist-muted) !important;
  font-size: 0.72rem !important;
}

html body dialog .tag-manage-del:hover {
  border-color: rgba(200, 60, 60, 0.4) !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

html body dialog .cat-row-size-label,
html body dialog .tag-manage-count {
  color: var(--mist-muted) !important;
  font-size: 0.74rem !important;
}

html body dialog .tag-manage-count {
  min-width: 36px !important;
  text-align: right !important;
}

/* 操作区：胶囊按钮，统一墨色主按钮 */
html body dialog .app-modal-actions,
html body dialog .sheet-actions {
  display: flex !important;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid var(--mist-line) !important;
  background: transparent !important;
}

html body dialog .sheet-actions {
  position: sticky !important;
  bottom: -28px !important;
  margin: 4px -28px -28px !important;
  padding: 16px 28px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html body dialog .btn,
html body dialog button.btn {
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
}

html body dialog .btn-primary {
  border-color: transparent !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.16) !important;
}

html body dialog .btn-ghost {
  border: 1px solid var(--mist-line-2) !important;
  background: #fff !important;
  color: var(--mist-ink) !important;
  box-shadow: none !important;
}

/* 打点编辑：右侧全高面板，内部节奏统一 */
html body dialog.inspector-sheet {
  width: min(600px, 100vw) !important;
  border-radius: 22px 0 0 22px !important;
}

html body dialog.inspector-sheet .sheet-body {
  gap: 18px !important;
}

html body dialog .point-category-chips {
  gap: 8px !important;
}

html body dialog .btn-danger,
html body dialog .point-delete-btn {
  border-radius: 999px !important;
  background: #dc2626 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------
   18. 高特异性收尾：压住 ui-refresh/experience 的同权重 !important
   -------------------------------------------------------------------- */
html body.map-page dialog .btn-primary,
html body.page-shell dialog .btn-primary {
  border-color: transparent !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.16) !important;
}

html body.map-page dialog .btn-primary:hover,
html body.page-shell dialog .btn-primary:hover {
  background: #000 !important;
}

html body.map-page dialog .btn-danger,
html body.page-shell dialog .btn-danger {
  background: #dc2626 !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* 顶栏选中态：彻底干掉旧绿色渐变与下划线 */
html body.page-shell .topbar-actions .nav-link.active,
html body.map-page .topbar-actions .nav-link.active {
  background: var(--mist-ink) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body.page-shell .topbar-actions .nav-link.active::after,
html body.map-page .topbar-actions .nav-link.active::after {
  display: none !important;
  background: transparent !important;
  transform: none !important;
}

html body.map-page .topbar-actions .nav-link {
  border-radius: 999px !important;
  color: var(--mist-muted) !important;
  font-weight: 500 !important;
}

html body.map-page .topbar-account .user-avatar-btn {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  html body.map-page .sidebar {
    width: min(340px, 92vw) !important;
    border-left: 0 !important;
    border-radius: 0 22px 22px 0 !important;
  }

  html body.map-page .sidebar .side-pane#side-pane-points {
    gap: 8px !important;
  }

  html body.map-page .sidebar .side-search input {
    min-height: 42px !important;
    height: 42px !important;
  }

  html body.map-page .sidebar .side-point-item {
    min-height: 0 !important;
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
  }

  html body.map-page .amap-search-box {
    padding-left: 12px !important;
  }

  html body.map-page .amap-search-leading {
    margin-left: 0 !important;
  }

  html body.map-page .search-submit {
    padding: 0 12px !important;
    font-size: 0.84rem !important;
  }
}

/* ID 级残留：experience.css 用 #my-points-search 钉死了 52px / 直角 */
html body.map-page #my-points-search {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 8px !important;
  font-size: 0.9rem !important;
}

/* 分组标题残留墨绿 + 交互反馈 */
html body.map-page .point-group-head .pg-title {
  color: var(--mist-muted) !important;
}

html body .btn,
html body .nav-link,
html body .side-point-item,
html body .map-tool-btn,
html body .msg-tab {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.22s ease, transform 0.16s ease;
}

html body button:active:not(:disabled) {
  transform: scale(0.97);
}

html body .side-point-item:active {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------
   21. 打点弹窗重做：头/滚动区/底栏三段式，消除遮挡与竖排挤压
   -------------------------------------------------------------------- */
html body dialog.point-editor-dialog {
  width: min(780px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 0 0 auto !important;
  border-radius: 22px 0 0 22px !important;
}

html body dialog.point-editor-dialog .point-editor-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

html body dialog.point-editor-dialog .point-editor-head {
  position: relative !important;
  top: auto !important;
  flex: none;
  margin: 0 !important;
  padding: 20px 28px 16px !important;
  border-bottom: 1px solid var(--mist-line) !important;
  background: #fff !important;
}

html body dialog.point-editor-dialog .point-editor-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 0 28px 24px !important;
}

html body dialog.point-editor-dialog .point-editor-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(272px, 300px) !important;
  align-items: start !important;
  gap: 22px !important;
  padding: 22px 0 0 !important;
}

html body dialog.point-editor-dialog .point-editor-side {
  position: sticky !important;
  top: 0 !important;
  gap: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body dialog.point-editor-dialog .point-editor-main > .point-form-section + .point-form-section,
html body dialog.point-editor-dialog .point-editor-side > .point-form-section + .point-form-section {
  padding-top: 18px !important;
  border-top: 1px solid var(--mist-line) !important;
}

/* 位置摘要条 */
html body dialog.point-editor-dialog .point-location-summary {
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 16px !important;
  background: var(--mist-fill) !important;
}

/* 字体阶梯：标题 600，说明次级，标签统一 */
html body dialog.point-editor-dialog .point-form-section-head strong {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--mist-ink) !important;
}

html body dialog.point-editor-dialog .point-form-section-head small {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--mist-muted) !important;
}

html body dialog.point-editor-dialog label > span,
html body dialog.point-editor-dialog .point-note-field > span {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--mist-ink-2) !important;
}

html body dialog.point-editor-dialog label > span small {
  color: var(--mist-faint) !important;
  font-weight: 400 !important;
}

html body dialog.point-editor-dialog .point-form-fields {
  display: grid !important;
  gap: 12px !important;
}

html body dialog.point-editor-dialog .point-form-fields input {
  width: 100% !important;
}

/* 类别 chips：10px 圆角，不再是药丸 */
html body dialog.point-editor-dialog .category-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

html body dialog.point-editor-dialog .category-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--mist-line-2) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--mist-ink-2) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

html body dialog.point-editor-dialog .category-chip.is-active {
  border-color: var(--mist-ink) !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
}

html body dialog.point-editor-dialog .visibility-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body dialog.point-editor-dialog .visibility-options label {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--mist-line-2) !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer;
}

html body dialog.point-editor-dialog .visibility-options label:has(input:checked) {
  border-color: var(--mist-ink) !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
}

html body dialog.point-editor-dialog .visibility-options span {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: inherit !important;
}

html body dialog.point-editor-dialog .visibility-help {
  font-size: 0.78rem !important;
  color: var(--mist-muted) !important;
}

/* 底栏：固定在底部，不覆盖内容 */
html body dialog.point-editor-dialog .sheet-actions {
  position: relative !important;
  bottom: auto !important;
  flex: none;
  margin: 0 !important;
  padding: 14px 28px !important;
  border-top: 1px solid var(--mist-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

/* --------------------------------------------------------------------
   22. 圆角语言收敛：胶囊只留给主行动，其余控件一律 12px
   -------------------------------------------------------------------- */
html body .btn,
html body button.btn,
html body .btn-compact,
html body .text-btn {
  border-radius: 12px !important;
}

html body.page-shell .workspace-header-actions .btn,
html body.page-shell .workspace-header-actions .btn-primary {
  border-radius: 12px !important;
}

/* 类别 / 标签 / 文件夹 chip：统一 12px，去掉墨绿 */
html body dialog .tag-pick,
html body dialog .folder-chip,
html body dialog .category-chip {
  border-radius: 12px !important;
}

html body dialog .tag-pick {
  border-style: solid !important;
  border-color: var(--mist-line-2) !important;
  background: #fff !important;
  color: var(--mist-ink-2) !important;
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
}

html body dialog .tag-pick.is-on,
html body dialog .tag-pick.is-active {
  border-color: var(--mist-ink) !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
}

html body dialog .folder-chip {
  padding: 6px 12px !important;
  border-color: var(--mist-line-2) !important;
  background: #fff !important;
  color: var(--mist-ink-2) !important;
  font-size: 0.8rem !important;
}

html body dialog .folder-chip.active,
html body dialog .folder-chip.is-active {
  border-color: var(--mist-ink) !important;
  background: var(--mist-ink) !important;
  color: #fff !important;
}

/* 分享卡片：去掉虚线框，改实线卡片 */
html body dialog .point-fusion {
  padding: 14px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 14px !important;
  background: var(--mist-fill) !important;
}

html body dialog .point-fusion-head strong {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

html body dialog .point-fusion-head small {
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
  color: var(--mist-muted) !important;
}

/* 光点预览卡 */
html body dialog .dot-preview-box {
  padding: 14px !important;
  border: 1px solid var(--mist-line) !important;
  border-radius: 14px !important;
  background: var(--mist-fill) !important;
}

html body dialog .dot-preview-copy strong {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

html body dialog .dot-preview-copy small {
  font-size: 0.76rem !important;
  line-height: 1.5 !important;
  color: var(--mist-muted) !important;
}

/* 照片区 */
html body dialog .image-dropzone {
  border: 1px dashed var(--mist-line-2) !important;
  border-radius: 14px !important;
  background: var(--mist-fill) !important;
}

/* 地图页左栏控件圆角也收敛 */
html body.map-page .sidebar .point-toolbar .text-btn {
  border-radius: 12px !important;
}

html body.map-page .map-action-bar .map-tool-btn {
  border-radius: 12px !important;
}

html body.map-page .map-action-bar {
  border-radius: 16px !important;
}

/* 页签与分段控件保持 12px */
html body.page-shell .messages-panel .msg-tab {
  border-radius: 12px !important;
}

html body.page-shell .messages-panel .msg-tabs {
  border-radius: 14px !important;
}

/* 全站正文与标题字体阶梯统一 */
html body.page-shell h1,
html body.page-shell h2,
html body.page-shell h3 {
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

html body.page-shell p {
  line-height: 1.65;
}

html body.page-shell .workspace-header h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem) !important;
  font-weight: 600 !important;
}

html body.page-shell .workspace-header p {
  font-size: 0.94rem !important;
  color: var(--mist-muted) !important;
}

html body.page-shell .workspace-kicker {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  color: var(--mist-slate) !important;
}

/* 页头按钮不再右飘，统一贴右 */
html body.page-shell .workspace-header {
  align-items: flex-end !important;
  gap: 24px !important;
}

html body.page-shell .workspace-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: none !important;
  padding-bottom: 4px !important;
}

/* chip 尺寸统一：不再有 54px 高的大方块 */
html body dialog .folder-chip {
  min-height: 34px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
}

html body dialog .tag-pick {
  min-width: 46px;
  min-height: 30px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------
   23. 页签圆角与字重全站统一
   -------------------------------------------------------------------- */
html body.page-shell .msg-tabs,
html body.page-shell .msg-tab,
html body.map-page .msg-tabs,
html body.map-page .msg-tab {
  border-radius: 12px !important;
}

html body.page-shell .msg-tabs {
  border-radius: 14px !important;
}

/* 正文与列表字重归位（experience.css 大量 700/750 显得生硬） */
html body.page-shell .feed-item h4,
html body.page-shell .feed-card strong,
html body.page-shell .section-title {
  font-weight: 600 !important;
}

html body.page-shell .feed-item p,
html body.page-shell .feed-card span,
html body.page-shell .muted {
  font-weight: 400 !important;
}

/* 广场等列表页的页头操作按钮贴右对齐 */
html body.page-shell .page-header-actions,
html body.page-shell .workspace-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: none !important;
}

html body.page-shell .empty-state strong {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

html body.page-shell .empty-state p {
  font-size: 0.86rem !important;
  color: var(--mist-muted) !important;
}

/* 段落标题：说明文字允许整行，不再被挤成两三行 */
html body dialog.point-editor-dialog .point-form-section-head {
  align-items: flex-start !important;
  gap: 12px !important;
}

html body dialog.point-editor-dialog .point-form-section-head > span:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body dialog.point-editor-dialog .point-form-section-head small {
  display: block !important;
  max-width: 46ch !important;
}

/* 空值输入框（开放时间等）不显示成突兀白框 */
html body dialog.point-editor-dialog input[type="datetime-local"]:empty {
  opacity: 0.7;
}

/* --------------------------------------------------------------------
   24. 最终圆角定稿：弹窗内按钮也统一 12px（与登录页输入框同语言）
   -------------------------------------------------------------------- */
html body dialog .btn,
html body dialog button.btn,
html body dialog .btn-compact,
html body.dialog-open .btn {
  border-radius: 12px !important;
}

html body .text-btn {
  font-weight: 500 !important;
  border-radius: 12px !important;
}

html body dialog .visibility-options label {
  font-weight: 500 !important;
}

/* 主按钮在登录页保持胶囊，其余页面 12px */
html body.page-shell .btn-primary,
html body.map-page .btn-primary {
  border-radius: 12px !important;
}

/* --------------------------------------------------------------------
   25. 全站残留清理：墨绿 → 墨色，虚线框 → 实线浅灰卡
   -------------------------------------------------------------------- */
html body.page-shell .avatar-lg,
html body.page-shell .avatar-sm {
  border: 1px solid var(--mist-line) !important;
  border-radius: 14px !important;
  background: var(--mist-fill) !important;
  color: var(--mist-ink) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
}

html body.page-shell .empty-state {
  border: 1px solid var(--mist-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

/* 各类徽标/标签：墨绿统一为石板蓝或墨色 */
html body.page-shell .member-file,
html body.page-shell .profile-tag,
html body.page-shell .pill-badge {
  border-radius: 999px !important;
  background: var(--mist-fill) !important;
  color: var(--mist-muted) !important;
  border-color: var(--mist-line) !important;
}

/* 广场/收藏等页面的说明性 chip */
html body.page-shell .chip,
html body.page-shell .filter-chip {
  border-radius: 12px !important;
  border-color: var(--mist-line-2) !important;
  background: #fff !important;
  color: var(--mist-ink-2) !important;
}

/* 个人档案头图：标题与排版收一收 */
html body.page-shell .profile-head h1,
html body.page-shell .workspace-header h1 {
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}
