/*
 * 「我的」命名空间 —— 个人中心 / 自助编辑系列页面用。
 *
 * 设计系统约束（Bonjour AI 找工地图）：
 *   - 页面 + 卡片 = 纯白 (#ffffff)，靠 shadow-3 + 大间距分组，不用 border 当
 *     视觉边界（§1.3 / §1.4）
 *   - 系统字体；ink-1 / ink-3 区分主副文本（§1.1 / §1.2）
 *   - section 间距 72 / mobile 56（§1.5）
 *
 * Input / textarea 这种"输入控件"保留细 1px border 作为可输入感知 affordance —
 * 这不属于"卡片 / Block 视觉边界"，不违反 §1.4。
 */

/* ─────────── MeShell 后台外壳 ───────────
   /me/* 所有页面共用的左侧 sidebar + 主内容区两栏布局。独立于公开站
   .ai-sidebar，跟 admin 后台也无关 —— 客户管理后台自带的导航壳。

   视觉：sidebar 浮成白卡片，四周留 gap；页面 + main 区域纯白（§1.3），
   sidebar 跟内层 cards 都靠 shadow-3 浮出（§1.4 不用 border 作视觉分组）。 */
:root {
  --me-shell-side-w: 264px;
  --me-shell-gap: 12px;        /* sidebar 四周留白 */
}
.me-shell {
  min-height: 100vh;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #1d1d1f;
  letter-spacing: -0.005em;
}
.me-shell-side {
  position: fixed;
  top: var(--me-shell-gap);
  left: var(--me-shell-gap);
  bottom: var(--me-shell-gap);
  width: var(--me-shell-side-w);
  background: #ffffff;
  border-radius: 18px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  /* shadow-3：浮在浅灰底上读得出"卡片"感 */
  box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.10);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
}
.me-shell-main {
  /* sidebar 自己占 gap + width；main 左侧再留一个 gap 作为列间空隙 */
  margin-left: calc(var(--me-shell-side-w) + var(--me-shell-gap) * 2);
  padding: 48px 36px 120px;
  background: transparent; /* 透出 .me-shell 的白底；内层 .me-mod / .me-section 自己带 shadow 跳出 */
  min-height: 100vh;
}
.me-shell-main-inner {
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .me-shell-side {
    position: static;
    width: auto;
    height: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    margin: var(--me-shell-gap);
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .me-shell-main { margin-left: 0; padding: 24px 16px 120px; }
}

/* Sidebar 顶部品牌区：team logo + 名字 */
.me-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}
.me-shell-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.me-shell-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.me-shell-brand-logo-fb {
  font-size: 15px;
  font-weight: 500;
  color: #86868b;
}
.me-shell-brand-body { min-width: 0; }
.me-shell-brand-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sidebar 导航项 */
.me-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.me-shell-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  font-size: 14px;
  font-weight: 400;
  color: #3c3c43;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  /* §1.3 允许的 hover 临时态用 bg-soft */
}
.me-shell-nav-item:hover {
  background: #f5f5f5;
  color: #1d1d1f;
}
.me-shell-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
  display: inline-flex;
}

.me-shell-spacer { flex: 1; }

/* Sidebar 底部「返回找工地图!」—— Notion 风浮卡按钮：白底 + 较强 shadow，
   在 sidebar 白卡片上靠 shadow 拉开层级。padding 留出底部呼吸感。 */
.me-shell-bottom {
  margin: 16px 0 4px;
}
.me-shell-bottom-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #ffffff;
  border-radius: 999px;
  /* 强 shadow 让白按钮在白 sidebar 上仍读得出"浮起"层级 */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 14px 28px -6px rgba(0, 0, 0, 0.10);
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
  transition: box-shadow 0.2s cubic-bezier(.2,0,0,1), transform 0.15s cubic-bezier(.2,0,0,1);
}
.me-shell-bottom-link:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 22px 40px -8px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}
.me-shell-bottom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .me-shell-brand { margin-bottom: 0; flex-shrink: 0; }
  .me-shell-nav { flex-direction: row; flex: 1; padding-left: 8px; }
  .me-shell-nav-item { padding: 8px 12px; white-space: nowrap; }
  .me-shell-nav-item span:not(.me-shell-nav-icon) { display: none; }
  .me-shell-spacer, .me-shell-bottom { display: none; }
}

/* /me/* 后台子页统一头部：右上角按钮位（其余文案靠卡片内容自带）。 */
.me-page-head {
  margin-bottom: 32px;
}
.me-page-head--admin-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* 表单 + 左侧 TOC 的两栏布局 —— 资料编辑这种长表单专用。
   桌面：sticky TOC 200px + 1fr form；窄屏（≤1100px）单列，TOC 降级成横向 chip 行。 */
.me-with-toc {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}
.me-form-toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.me-form-toc-item {
  display: block;
  font-size: 13px;
  color: #86868b;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 8px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  transition: color 0.15s, background 0.15s;
}
.me-form-toc-item:hover {
  background: #f5f5f5;
  color: #1d1d1f;
}
.me-form-toc-item.is-active {
  color: #1d1d1f;
  font-weight: 500;
}
@media (max-width: 1100px) {
  .me-with-toc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .me-form-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
  .me-form-toc-item {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .me-form-toc-item.is-active {
    color: #1d1d1f;
    font-weight: 500;
  }
}

/* Section card —— 白底 + shadow-3，无 border。 */
.me-section {
  /* 平铺：取消白卡片 chrome，靠 section-title + 64px 大间距分组
     （§1.5：用大标题 + 大间距分组，不用 hr / border）。 */
  padding: 0;
  margin-bottom: 64px;
  /* TOC anchor 跳转时给一点呼吸缓冲，section 头不贴顶 */
  scroll-margin-top: 24px;
}
.me-section-head {
  margin-bottom: 20px;
}
/* §1.1 + §5 Main+Sub 文本对：title + desc 同字号同字重，靠 ink 颜色区分层级。
   字号取 row 15/400（公开站 .section-title 同款），letter-spacing 跟整体页面对齐。 */
.me-section-title {
  font-size: 15px;
  font-weight: 400;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.005em;
}
.me-section-desc {
  font-size: 15px;
  font-weight: 400;
  color: #86868b;
  margin: 2px 0 0;
  letter-spacing: -0.005em;
}
/* me-field 上下间距统一 10px（section 内 / 列表 item 内 / 行内 grid 都一致）。 */
.me-section-body {
  display: grid;
  gap: 10px;
}

/* 表单根 —— 顶层 grid，section 之间不再额外 gap（卡片 margin 自己管）。 */
.me-form {
  display: block;
}

/* 列表 item 卡片里的内部 grid */
.me-item-inner {
  display: grid;
  gap: 10px;
}
.me-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .me-section { margin-bottom: 48px; }
  .me-grid-2 { grid-template-columns: 1fr; }
}

/* 底部 sticky 提交栏 —— 跟首页吸顶 nav 同款（半透明 + blur）。 */
.me-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin: 24px auto 0;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 999px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.14);
}
.me-savebar-msg {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-savebar-ok { color: #1d1d1f; }
.me-savebar-err { color: #b91c1c; }
.me-savebar-pending { color: #86868b; }
.me-savebar-hint { color: #86868b; }

.me-savebar-btn {
  appearance: none;
  border: 0;
  background: #1d1d1f;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  cursor: pointer;
  transition: opacity 0.15s;
}
.me-savebar-btn:hover:not(:disabled) { opacity: 0.85; }
.me-savebar-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.me-empty {
  font-size: 14px;
  color: #86868b;
  text-align: center;
  padding: 64px 24px;
}
.me-inline-link {
  color: #1d67f1;
  text-decoration: none;
}
.me-inline-link:hover { text-decoration: underline; }

/* 名值对列表 —— /me/settings / /me/jobs/[id] 等纯展示场景。
   左 ink-3 标签 + 右 ink-1 内容。stack row 用 line-1 间隔（§1.5 允许）。 */
.me-defs {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.me-def {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
}
.me-def + .me-def {
  border-top: 1px solid #ececef;
}
.me-def dt {
  color: #86868b;
  flex-shrink: 0;
}
.me-def dd {
  margin: 0;
  color: #1d1d1f;
  text-align: right;
  word-break: break-word;
}
.me-def dd code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

/* Markdown 原文展示 —— /me/jobs/[id] 暂时不渲染 markdown，先 pre 出来给 owner 看 */
.me-md-raw {
  margin: 0;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 12px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #1d1d1f;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

/* /me/jobs 列表的富版本 —— 可点击行 + 右侧时间 + 箭头 */
.me-joblist--rich .me-joblist-row {
  padding: 0;
}
.me-joblist--rich .me-joblist-row + .me-joblist-row {
  border-top: 1px solid #ececef;
}
.me-joblist-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  transition: background 0.15s;
}
.me-joblist-link:hover { background: #f5f5f5; }
.me-joblist-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.me-joblist-side {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #86868b;
  font-size: 13px;
  flex-shrink: 0;
}
.me-joblist-date { white-space: nowrap; }
.me-joblist-arr { font-size: 18px; line-height: 1; }
.me-joblist-hot { margin-left: 6px; font-size: 13px; }

/* 状态 pill —— 走 §1.7 outline chip 形态：white bg + 1px ink-3 border + icon-less。
   不同状态用 border 色和文本色区分（§1.7 禁止用浅 tint 实底）。 */
.me-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: #ffffff;
  border: 1px solid #ececef;
  color: #86868b;
  white-space: nowrap;
}
.me-status-pill--published {
  border-color: #1d1d1f;
  color: #1d1d1f;
}
.me-status-pill--draft {
  /* 草稿：维持默认 ink-3 + line-1 边，不强调 */
}
.me-status-pill--closed {
  color: #a1a1a6;
}

/* ─────────── Dashboard 模块卡 ───────────
   .me-mod 跟 .me-section 视觉同款（白底 + shadow-3 + 大间距），
   但用于 Dashboard 上的功能模块；section 留给编辑表单段。 */
.me-mod {
  background: #ffffff;
  border-radius: 24px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  box-shadow: 0 14px 44px -10px rgba(0, 0, 0, 0.10);
  padding: 32px;
  margin-bottom: 32px;
}
.me-mod-empty {
  font-size: 14px;
  color: #86868b;
  margin: 16px 0 0;
}
.me-mod-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 概览模块 ——「团队信息概览」用 OwnerTeamHeroCard 直接套公开页 .t4-topcard。
   .t4-topcard 原本在 TeamDetail 里 margin: 96px -32px 20px（依赖 .t4-doc 32px
   水平 padding 向外撑）。Dashboard 没有那个父级，用 .t4--in-dashboard 修饰
   把上 / 左右 margin 收回到 0。下方 CTA 用 me-mod-actions--hero 留 24px gap。 */
.t4--in-dashboard .t4-topcard {
  margin: 0;
  padding: 32px;
}
.t4--in-dashboard .t4-topcard:hover {
  /* dashboard 上的 hero 是只读卡片，去掉公开页的 hover lift —— 没人会"点开"它 */
  transform: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 44px -10px rgba(0, 0, 0, 0.10);
}
/* dashboard 上 owner 看自己的团队，几个公开页的元素都不必要：
   - .t4-hero-id-row：「去官网 / 去投递」pill，自己看自己没意义
   - .t4-hero-chiprow：融资/规模/地点 chip 行，dashboard 简化呈现
   公开页 /team/[slug] 和 /me/team/preview 不挂 .t4--in-dashboard，不受影响。 */
.t4--in-dashboard .t4-hero-id-row,
.t4--in-dashboard .t4-hero-chiprow {
  display: none;
}
/* .t4 a { color: inherit }（team.css）会盖过 .me-btn 的 color，导致 Link 形态
   的按钮变成深色文本。这里显式覆盖（specificity 0,2,0 > 0,1,1）。 */
.t4 .me-btn { color: #1d1d1f; }
.t4 .me-btn--primary { color: #ffffff; }
.t4 .me-btn--disabled { color: #a1a1a6; }
.me-hero-section {
  margin-bottom: 32px;
}
.me-mod-actions--hero {
  margin-top: 16px;
  align-items: center;
}
/* 「你上次编辑于 X」独立一行，紧贴 hero 内容之后、按钮之前。
   ink-3 灰文本 + 关键时间 ink-1 加粗，扫一眼就能看到。 */
.me-hero-updated {
  margin: 36px 0 0;
  font-size: 14px;
  color: #86868b;
  line-height: 1.5;
}
.me-hero-updated strong {
  color: #1d1d1f;
  font-weight: 500;
}
@media (max-width: 720px) {
  .me-mod-actions--hero { margin-top: 12px; }
  .me-hero-updated { margin-top: 28px; }
}

/* JD 数量统计 */
.me-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 16px;
}
.me-stat-num {
  font-size: 39px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.022em;
  line-height: 1;
}
.me-stat-label {
  font-size: 14px;
  color: #86868b;
}

/* JD 列表（read-only） */
.me-joblist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.me-joblist-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 15px;
}
/* 唯一允许的细线 §1.5：stack row 横线 */
.me-joblist-row + .me-joblist-row {
  border-top: 1px solid #ececef;
}
.me-joblist-role {
  color: #1d1d1f;
}
.me-joblist-meta {
  color: #86868b;
  font-size: 13px;
}

/* 通用 按钮 */
.me-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.me-btn:hover:not(.me-btn--disabled) {
  border-color: #1d1d1f;
}
.me-btn--primary {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}
.me-btn--primary:hover {
  opacity: 0.85;
}
.me-btn--disabled {
  color: #a1a1a6;
  cursor: not-allowed;
  background: #ffffff;
}
.me-btn--danger {
  color: #b91c1c;
}
.me-btn--danger:hover:not(:disabled) {
  border-color: #b91c1c;
  background: #fff5f5;
}
/* 跳转指示箭头 ——「↗」放在按钮文本左侧，跟 .t4-id-pill 的 .t4-id-arr 同款。
   hover 时整体往右上微动 1px，给一个轻微的"指向"反馈。 */
.me-btn-arr {
  flex-shrink: 0;
  color: #86868b;
  transition: transform 0.15s cubic-bezier(.2,0,0,1), color 0.15s ease;
}
.me-btn:hover:not(.me-btn--disabled):not(:disabled) .me-btn-arr {
  color: #1d1d1f;
  transform: translate(1px, -1px);
}
.me-form-foot {
  margin: 24px 0 0;
  font-size: 13px;
  color: #86868b;
}

/* ─────────── Modal（弹窗）—— 新建 JD 等场景 ───────────
   关键布局规则（DESIGN_SYSTEM.md §1.9）：
   1. dialog 被 max-height 限制在视口内，整体不超过一屏
   2. head + foot 各自 flex-shrink:0，不滚动
   3. body flex:1 + overflow-y:auto，内容超出在 body 里滚
   4. 提交按钮区（savebar）sticky 在 body 底部，永远可见
   不要让整个 modal 跟着页面滚动 —— 用户填长表单时找按钮要往下翻整页。

   设计系统 §5 Modal：backdrop blur + r-3xl + shadow-modal + .22s rise。 */
.me-modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: me-modal-fade 0.22s cubic-bezier(.2, 0, 0, 1);
}
.me-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 30px 80px -20px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 让 body 内部滚动；不要让 dialog 整体被撑高出视口 */
  animation: me-modal-rise 0.22s cubic-bezier(.2, 0, 0, 1);
}
@keyframes me-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes me-modal-rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.me-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 16px 0;
}
.me-modal-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #86868b;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.me-modal-x:hover {
  background: #f5f5f5;
  color: #1d1d1f;
}
.me-modal-body {
  flex: 1;
  min-height: 0; /* flex 子元素必须有 min-height:0 才能内部滚动 */
  overflow-y: auto;
  padding: 0 28px;
}
/* modal 内的 me-section 间距收窄一点 —— 弹窗里没必要 64px 大间距 */
.me-modal-body .me-section {
  margin-bottom: 28px;
}
.me-modal-body .me-section:first-child {
  margin-top: 4px;
}
/* modal 里的 savebar 改成"footer bar"形态：sticky 贴 body 底，
   去掉浮卡 pill 样式（这里用全宽 + 顶部细线分隔，跟内容滚动错开）。
   `margin: 0 -28px` 抵消 body 的水平 padding，savebar 全宽贴边。 */
.me-modal-body .me-savebar {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 28px -28px 0;
  padding: 16px 28px;
  background: #ffffff;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  max-width: none;
  box-shadow: 0 -1px 0 #ececef;
}

@media (max-width: 720px) {
  .me-modal-root { padding: 12px; }
  .me-modal-dialog { max-height: calc(100vh - 24px); }
  .me-modal-head { padding: 12px 12px 0; }
  .me-modal-body { padding: 0 20px; }
  .me-modal-body .me-savebar { margin: 20px -20px 0; padding: 12px 20px; }
}
.me-soon {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #a1a1a6;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f5f5;
  letter-spacing: 0.04em;
}

/* 敬请期待块 */
.me-soon-block {
  padding: 4px 0;
}
.me-soon-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.me-soon-body {
  font-size: 15px;
  color: #3c3c43;
  margin: 0;
  line-height: 1.5;
}
.me-soon-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #3c3c43;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .me-mod { padding: 24px; border-radius: 20px; }
  .t4--in-dashboard .t4-topcard { padding: 24px; }
  .me-stat-num { font-size: 32px; }
}

/* ─────────── Field shell ─────────── */
.me-field {
  display: block;
}
.me-field-label {
  display: block;
  font-size: 13px;
  color: #5d5d5d;
  margin-bottom: 6px;
}
.me-field-req {
  color: #b91c1c;
  margin-right: 2px;
}
.me-field-body {
  display: block;
}
.me-field-err {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

/* ─────────── Input / textarea ─────────── */
/* 1px line-1 hairline 作为可输入感知 affordance —— 不属于"卡片视觉边界"范畴。 */
.me-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: #1d1d1f;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 10px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.me-input:focus {
  border-color: #1d1d1f;
}
.me-input::placeholder {
  color: #a1a1a6;
}
.me-textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 80px;
}
/* 原生 select 视觉 —— 跟 .me-input 同 chrome，自定义箭头不强行做（让 OS / 浏览器
   保留原生体验，跨设备一致性更好）。 */
.me-select {
  appearance: auto;
  padding-right: 32px;
}

/* 单个 checkbox 行 */
.me-checkbox-field {
  display: block;
}
.me-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #1d1d1f;
}
.me-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d1d1f;
  cursor: pointer;
}
.me-markdown {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  min-height: 160px;
}

/* ─────────── 列表 ─────────── */
.me-list {
  display: grid;
  gap: 12px;
}
.me-list-empty {
  font-size: 13px;
  color: #a1a1a6;
  margin: 0;
  padding: 12px 0;
}
.me-list-item {
  background: #ffffff;
  border-radius: 14px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.me-list-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.me-list-item-idx {
  font-size: 12px;
  color: #a1a1a6;
  letter-spacing: 0.04em;
}
.me-list-item-actions {
  display: inline-flex;
  gap: 4px;
}
.me-list-item-body {
  display: grid;
  gap: 10px;
}

/* ─────────── Icon button ─────────── */
.me-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #86868b;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.me-icon-btn:hover:not(:disabled) {
  background: #f5f5f5;
  color: #1d1d1f;
}
.me-icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.me-icon-btn--danger:hover:not(:disabled) {
  color: #b91c1c;
}

/* ─────────── Add 按钮（虚线轮廓） ─────────── */
.me-add-btn {
  appearance: none;
  font: inherit;
  font-size: 13px;
  color: #86868b;
  background: transparent;
  border: 1px dashed #ececef;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  justify-self: start;
  transition: color 0.15s, border-color 0.15s;
}
.me-add-btn:hover {
  color: #1d1d1f;
  border-color: #86868b;
}
.me-add-btn--inline {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ─────────── String list / Social row ─────────── */
.me-stringlist {
  display: grid;
  gap: 8px;
}
.me-stringlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.me-social-row {
  display: grid;
  grid-template-columns: minmax(140px, 160px) 1fr auto;
  align-items: center;
  gap: 8px;
}
/* icon + select 融合成一个 platform 选择组件：共享 1px line-1 圆角边框，
   icon 在 select 左侧内部，看起来像一个整体。 */
.me-social-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 8px;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 10px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  transition: border-color 0.15s;
}
.me-social-platform:focus-within {
  border-color: #1d1d1f;
}
.me-social-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
}
.me-social-select {
  appearance: auto;
  background: transparent;
  border: 0;
  outline: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

/* ─────────── Image upload ───────────
 * 见 components/public/me/Fields.jsx 顶部注释 + DESIGN_SYSTEM.md §1.8：
 * 客户端上传交互只暴露按钮，不要 URL 输入框。 */
.me-image-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.me-image-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.me-image-btn {
  /* squircle 20 跟公开站 .t4-hero-avatar 对齐 —— 让带四角装饰的 logo（Bonjour
     的手掌 + L 标）裁出来跟 hero 一样的视觉。白底承接深色 SVG logo 也清晰。 */
  appearance: none;
  border: 0;
  background: #ffffff;
  border-radius: 20px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s;
  padding: 0;
}
.me-image-btn:hover:not(:disabled) {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 14px 28px -10px rgba(0, 0, 0, 0.10);
}
.me-image-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.me-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.me-image-empty {
  color: #a1a1a6;
}
.me-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #1d1d1f;
}

/* ─────────── Chips（地址多选） ─────────── */
.me-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.me-chips-empty {
  font-size: 13px;
  color: #a1a1a6;
}
.me-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #86868b;
  color: #1d1d1f;
  font-size: 13px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
}
/* 固定集合多选的 toggle chip：未选=白底描边，选中=深色填充。
   跟 .me-chip 同一套配色，但它是「可切换」而非「已选+可删」。 */
.me-chip-toggle {
  appearance: none;
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.me-chip-toggle:hover {
  background: #f5f5f5;
}
.me-chip-toggle[aria-pressed="true"] {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
}
.me-chip-toggle[aria-pressed="true"]:hover {
  background: #000000;
}
.me-chip-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #86868b;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.me-chip-x:hover {
  background: #f5f5f5;
  color: #1d1d1f;
}
.me-picker {
  margin-top: 12px;
  background: #ffffff;
  border-radius: 14px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.07);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.me-picker-item {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #1d1d1f;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.me-picker-item:hover {
  background: #f5f5f5;
}
.me-picker-empty {
  font-size: 13px;
  color: #a1a1a6;
  margin: 0;
  padding: 8px 12px;
}

/* ─────────── Error banner ─────────── */
.me-error-banner {
  background: #ffffff;
  border-radius: 14px;
  -webkit-corner-shape: squircle;
  corner-shape: squircle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #b91c1c;
}
.me-error-banner-head {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}
.me-error-banner-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}
.me-error-banner-list code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (max-width: 720px) {
  /* 窄屏：platform 选择器换行到 URL 输入框上方，第二行 input 全宽 */
  .me-social-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .me-social-platform {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .me-section, .me-savebar, .me-form-toc-item, .me-savebar-btn,
  .me-input, .me-icon-btn, .me-add-btn, .me-chip-x, .me-image-btn,
  .me-picker-item, .me-shell-bottom-link, .me-shell-nav-item,
  .me-btn, .me-btn-arr { transition: none; }
}
