/* 小赛的统一样式：极简——细线分隔、不用阴影；只有主要按钮、选中和关键数字用主色。
   配色 11-01 用户定（照“小赛·视觉风格”图，蓝色偏政企，换成年轻、有剧本杀氛围的）：
   品牌橙 #FF6A3D（按钮、选中、底栏选中）、辅助橙 #FFB08A（浅底、进度）、紫色 #8E6AF6 只给 AI（小赛、AI 标签和入口），
   页面浅灰底 #F7F7F8（11-01 用户：暖白底偏粉太丑，改浅灰）、卡片白；主文字 #1F1F1F、次要文字 #8A8A8A。小标签一律浅底，不满屏橙色。 */
:root {
  --bg: #f7f7f8; --soft: #f2f2f3; --card: #ffffff; --ink: #1f1f1f; --quiet: #8a8a8a; --line: #ececee;
  --accent: #ff6a3d; --accent-ink: #ffffff; --accent-soft: #fff1ea; --accent-2: #ffb08a;
  --ai: #8e6af6; --ai-soft: #f2edff;
  --good: #1aad5b; --good-soft: #eefaf3; --warn: #dc2626; --warn-soft: #fff4ef;
  --bubble: #f2f2f2; --mine: #ffe7dc; --shadow: none;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --soft: #1e1e1e; --card: #181818; --ink: #ececec; --quiet: #8a8a8a; --line: #262626;
          --accent: #ff7a4f; --accent-soft: #3a2119; --accent-2: #c9805f; --ai: #a58bff; --ai-soft: #251e3d;
          --good: #3ccf86; --good-soft: #13251b; --warn: #f87171; --warn-soft: #2a1d18;
          --bubble: #262120; --mine: #4a2a1e; --shadow: none; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--accent); }

/* 顶部 */
header { position: sticky; top: 0; z-index: 10; background: var(--card); padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
header h1 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 640px; margin: 0 auto; padding: 12px 14px 120px; }

/* 顶部切换（旧页面还在用） */
.tabs { display: flex; gap: 6px; background: var(--card); padding: 6px 12px 10px; position: sticky; top: 50px; z-index: 9; box-shadow: 0 1px 0 var(--line); }
.tabs button { flex: 1; border: 0; background: var(--soft); border-radius: 999px; padding: 8px 0; color: var(--quiet); font: inherit; font-size: 14px; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* 店家页像微信：上中下三块，只有中间滚动，底部栏排在最下面不浮起来；高度由 store.js 按屏幕可见区域设 */
body.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.app > header { position: static; flex: none; }
body.app > main { flex: 1; min-height: 0; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 16px; }
body.app > .composer, body.app > .tabbar { position: static; flex: none; }
body.app > .composer.above-tabbar { padding-bottom: 8px; }

/* 底部标签栏：像 App 一样 */
/* 聊天输入框钉在底部菜单上面，不跟着消息跑（10-29 用户：DM 聊天框应该固定在最下面）；DM、玩家页用，店家页本来就是钉住的 composer */
.chat-dock { position: fixed; left: 0; right: 0; bottom: var(--tab-h, calc(54px + env(safe-area-inset-bottom))); z-index: 11; background: var(--card);
  box-shadow: 0 -1px 0 var(--line); padding: 8px max(14px, calc((100% - 640px) / 2 + 14px)); margin: 0 !important; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; background: var(--card); display: flex;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.tabbar button { flex: 1; border: 0; background: none; color: var(--quiet); font: inherit; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tabbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--accent); font-weight: 600; }
/* 个人和DM底部中间固定“＋发帖”（11-01 用户定）：大一号、略高出底栏，浅蓝实心圆白加号（不用橘色，偏AI和科技感），不用黑框、渐变 */
.tabbar .tab-post { color: var(--accent); font-weight: 600; justify-content: flex-end; }
.tabbar .tab-plus { width: 44px; height: 44px; margin-top: -20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; line-height: 42px; font-weight: 300; text-align: center;
  box-shadow: 0 0 0 4px var(--card), 0 4px 12px rgba(37, 99, 235, .28); }
/* DM 工作台五个入口一排等宽 */
.work-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.work-grid button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; touch-action: manipulation; }
.work-grid svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.work-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.work-stats button { border: 0; background: var(--soft); border-radius: 10px; padding: 10px 2px; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; touch-action: manipulation; }
.work-stats strong { font-size: 20px; }
.work-stats span { font-size: 12px; color: var(--quiet); }

/* 卡片与通用 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.muted { color: var(--quiet); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.ghost { background: var(--soft); color: var(--ink); font-weight: 500; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.block { width: 100%; padding: 13px; font-size: 16px; }
.btn:disabled { opacity: .45; }
.tag { display: inline-block; font-size: 12px; padding: 0 6px; border-radius: 4px; background: var(--soft); color: var(--quiet); margin: 0 4px 4px 0; }
.tag.hot { background: var(--accent-soft); color: var(--accent); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.score { font-weight: 800; color: var(--accent); }
.hidden { display: none !important; }
.hint { background: var(--accent-soft); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); width: 100%; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--quiet); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* 页面顶上的分类标签固定不滚走（10-29 用户定）：店家页是中间一块在滚，贴 0；DM、玩家页整页在滚，贴在顶栏下面（高度由 sticky.js 量） */
.seg-bar { position: sticky; top: var(--head-h, 0px); z-index: 8; background: var(--bg); margin: -12px -14px 8px; padding: 10px 14px 8px; box-shadow: 0 1px 0 var(--line); }
body.app .seg-bar { top: -12px; }   /* 中间那块有 12px 上边距，贴到顶栏底下不留缝 */
.chip { flex: none; border: 0; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
pre.copy { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 12px; font: inherit; margin: 8px 0; }

/* 搜索框 */
.search { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 5px 5px 5px 16px; }
.search input { border: 0; background: none; padding: 8px 0; }
.search .btn { padding: 9px 18px; }

/* 车次卡片：封面 + 信息 */
.car { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.car-cover { width: 78px; height: 108px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft); }
.car-cover.empty { display: flex; align-items: center; justify-content: center; color: var(--quiet); font-size: 28px; }
.car-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.car-title { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-time { color: var(--ink); font-weight: 600; font-size: 14px; margin: 2px 0 4px; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--accent); }
.price small { font-size: 12px; font-weight: 500; color: var(--quiet); }
.seatbar { height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; margin: 4px 0 2px; }
.seatbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.match { position: absolute; }

/* 聊天：像微信 */
.msg { margin: 10px 0; display: flex; gap: 8px; align-items: flex-end; }
.msg .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ai); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; }
.msg .b { max-width: 82%; padding: 9px 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.msg.user { justify-content: flex-end; }
.msg.user .b { background: var(--mine); color: var(--ink); }
.msg.assistant .b { background: var(--bubble); }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 4px 0 12px 40px; }
.draft ul { padding-left: 18px; margin: 6px 0 10px; }
.draft li { margin: 4px 0; }
.draft .row .btn { flex: 1; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); box-shadow: 0 -1px 0 var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; z-index: 11; }
.composer.above-tabbar { bottom: calc(54px + env(safe-area-inset-bottom)); padding-bottom: 8px; }
.composer textarea { flex: 1; resize: none; border: 0; border-radius: 8px; padding: 10px 12px; background: var(--soft); max-height: 120px; }
.icon-btn { border: 0; background: var(--soft); color: var(--ink); border-radius: 50%; width: 42px; height: 42px; font-size: 19px; flex: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }

/* 列表行 */
.session { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.session:first-child { border-top: 0; padding-top: 2px; }
.session .t { font-weight: 800; font-size: 16px; }
.day-title { font-weight: 700; margin: 16px 2px 8px; font-size: 15px; }

/* 报名：男几位、女几位各一个加减 */
.steppers { display: flex; gap: 10px; }
.stepper { flex: 1; display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 12px; padding: 6px 8px; }
.stepper span { font-weight: 600; padding-left: 4px; }
.stepper b { min-width: 22px; text-align: center; font-size: 17px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; line-height: 1; }

/* 底部弹层 */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); display: none; z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow: auto; display: none; z-index: 31; max-width: 640px; margin: 0 auto; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }

/* 手机适配：输入框 16px 字号，苹果手机点进去就不会自动放大；输入框在一行里只占剩下的空间，发送按钮不被挤出屏幕 */
input, select, textarea { font-size: 16px; }
.composer textarea, .search input, .row input { width: auto; min-width: 0; flex: 1; }
.composer .btn, .search .btn { flex: none; padding: 9px 14px; }
.composer .icon-btn { width: 38px; height: 38px; }
html, body { overflow-x: clip; }   /* clip 不建滚动容器，顶栏吸顶才生效（11-01 用户：顶部底部都要固定）*/

/* 后台表格：有表头，行里只放值，名字最多 7 个字宽；点一行进详情 */
.table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.table th { text-align: left; color: var(--quiet); font-weight: 500; font-size: 12px; padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td.name { max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.table.rows tr[onclick] { cursor: pointer; }
.todo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }

/* 剧本库（后台、玩家共用 library.js） */
.lib-meta { color: var(--quiet); font-size: 13px; margin: 2px 0 4px; }
.lib-intro { color: var(--quiet); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }
.rating { color: var(--accent); font-weight: 700; }
.poster { width: 100%; border-radius: 12px; display: block; margin-bottom: 12px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 4px; }
.role img, .role .ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--soft); display: block; }
.role .ph { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.role b { display: block; font-size: 13px; margin-top: 4px; }
.role .muted { font-size: 12px; line-height: 1.4; }

/* 表格里直接填数（后台设置）：一格一个小输入框 */
.form-table td { white-space: normal; padding: 6px 4px 6px 0; vertical-align: middle; }
.form-table th { white-space: normal; }
.form-table input.cell { width: 100%; min-width: 3em; padding: 6px 6px; font-size: 14px; text-align: center; }

/* 卡片里的小标题 */
.sec { font-weight: 700; margin: 4px 0 2px; }
.form-table th { text-align: center; }
.badge { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e5484d; color: #fff; font-size: 10px; line-height: 16px; margin-left: 2px; }

/* 二级入口：一排三个（店铺页等） */
.menu3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.menu3 button { border: 0; background: var(--soft); color: var(--ink); border-radius: 10px; padding: 12px 4px; font: inherit; font-size: 14px; }
.menu3 button.hidden { display: none; }

/* 窄一号的一行：搜索框、小按钮、筛选标签一样高（10-28 用户：场次里搜索框太大、上下左右对不齐） */
.search.slim { padding: 3px 3px 3px 14px; }
.search.slim input { padding: 4px 0; }
.search.slim .btn { padding: 6px 14px; }
.pill-input { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 16px; }
.slim-row { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.slim-row .chip, .slim-row .btn.small { height: 32px; display: inline-flex; align-items: center; }
.chip .n { opacity: .75; margin-left: 2px; }
.slim-row .chips { padding: 0; margin: 0; }
.search.slim input { padding: 2px 0; }
.search.slim { height: 34px; box-sizing: border-box; }
.search.slim .btn { padding: 4px 14px; }

/* 集市“发一条”收起时整块藏掉（不然留一个空框，10-29 用户截图） */
#mnew:not([open]) { display: none; }

/* 11-01：底部保持五个等宽入口；导航控件不触发双击缩放，保留双指缩放。 */
body[data-nav-role] > .tabbar button { min-width: 0; }
body[data-nav-role] > .tabbar button, #message-segs button, #dm-jiedan-tabs button { touch-action: manipulation; }
#message-segs, #dm-jiedan-tabs { flex-wrap: nowrap; }
/* 同一个集市组件：接单里只露接本大厅（藏大类那排），集市里不再放接本大厅（11-01 用户定：接单提到工作台首位） */
#tab-open.dm-jiedan #dm-market > .seg-bar { display: none; }
#tab-open.dm-market-view #mkinds [data-cat="dm"] { display: none; }
body[data-nav-role] > header #market-mine-btn { flex: none; white-space: nowrap; touch-action: manipulation; }
/* “我的”共用顶部（11-01 用户定）：白底浅描边紧凑卡片，主题色只用在认证标识、复制和主操作 */
.me-top { display: flex; gap: 12px; align-items: flex-start; }
.me-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.me-id { flex: 1; min-width: 0; }
.me-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 18px; }
.me-badge { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0 5px; line-height: 18px; }
.me-copy-row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: var(--quiet); }
.me-copy-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.me-copy { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; padding: 4px 2px; touch-action: manipulation; }
.me-intro { margin-top: 4px; font-size: 13px; color: var(--quiet); }
.me-gear { flex: none; border: 0; background: none; padding: 4px; color: var(--ink); touch-action: manipulation; }
.me-gear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; text-align: center; }
.me-social button { display: flex; flex-direction: column; align-items: center; border: 0; background: none; font: inherit; color: var(--ink); touch-action: manipulation; }
.me-social b { font-size: 18px; }
.me-social span { font-size: 12px; color: var(--quiet); }
.me-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.me-actions > * { text-align: center; text-decoration: none; min-height: 36px; }
.me-member { display: flex; width: 100%; justify-content: space-between; align-items: center; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.me-member > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.me-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.me-grid4 > * { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; touch-action: manipulation; }
.me-grid4 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.me-row:last-child { border-bottom: 0; }
.me-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.me-post-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.me-post-tabs button { border: 0; background: none; font: inherit; color: var(--quiet); padding: 6px 0 8px; border-bottom: 2px solid transparent; touch-action: manipulation; }
.me-post-tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.me-post-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 12px; color: var(--quiet); }
/* 原地展开（11-01 用户定）：展开块紧贴触发它的那一项，右上“收起”；设置里选中的小项跟店铺同款选中态 */
.me-slot { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: -4px 0 12px; }
.me-slot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.me-box { margin-top: 12px; }
.me-sec { margin: 10px 0 2px; font-size: 12px; }
.me-slot .menu3 button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dm-account-frame { display: block; width: 100%; height: 150px; border: 0; }
/* 工作台入口展开中：跟店铺事项同款选中态（浅蓝底、蓝字） */
.work-grid button.on { background: var(--accent-soft); color: var(--accent); border-radius: 10px; font-weight: 600; }
.dm-play-frame { display: block; width: calc(100% + 28px); margin: 0 -14px; border: 0; border-top: 1px solid var(--line); height: 70vh; }
/* 圈子／发帖框架（个人页、DM页内和 /circles 共用） */
.circles-intro { padding: 16px 0 20px; }
.circles-intro h2 { margin: 0 0 8px; font-size: 24px; }
.circles-intro p { margin: 0; color: var(--quiet); font-size: 15px; }
.circles-empty { padding: 48px 20px; text-align: center; }
.circles-empty svg { width: 48px; height: 48px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.circles-empty h3 { margin: 20px 0 10px; font-size: 19px; }
.circles-empty p { margin: 0; color: var(--quiet); font-size: 15px; line-height: 1.8; }
[data-back] { touch-action: manipulation; }
.me-slot-inner { border: 0; border-radius: 0; padding: 4px 0 10px; margin: 0; border-bottom: 1px solid var(--line); }
button.me-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }
.me-avatar { overflow: hidden; }
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 第二排小一号（11-01 用户定：模块照工作台排，第一排大、第二排小） */
.me-card-sm { padding-top: 8px; padding-bottom: 8px; }
.me-grid-sm > * { font-size: 12px; gap: 4px; padding: 4px 0; color: var(--quiet); }
.me-grid-sm svg { width: 20px; height: 20px; color: var(--ink); }
.me-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-duo .me-member { margin-bottom: 12px; }
.me-slot-inner .me-slot-head { justify-content: flex-end; margin-bottom: 4px; }
.me-slot-inner .me-slot-head b { display: none; }   /* 上面那一行已写着名字，展开块只留“收起” */

/* 聊天顶栏（11-01 用户定，照 Soul）：中间“通讯录｜聊天”，右边搜索、＋ */
.chat-top { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 0 0 8px; }
.chat-tabs { display: flex; justify-content: center; gap: 22px; }
.chat-tabs button { background: none; border: 0; padding: 4px 0; font-size: 16px; color: var(--quiet); cursor: pointer; position: relative; }
.chat-tabs button.on { color: var(--ink); font-weight: 600; }
.chat-tabs button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -3px; height: 3px; border-radius: 2px; background: var(--accent); }
.chat-tabs .badge { margin-left: 2px; }
.chat-icons { display: flex; justify-content: flex-end; gap: 4px; }
.chat-icon { background: none; border: 0; padding: 4px; color: var(--ink); cursor: pointer; line-height: 0; }
.chat-plus-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 16px; font-size: 15px; color: var(--ink); cursor: pointer; }
.chat-plus-item:active { background: var(--soft); }

/* 会话一行（11-01 用户定：要头像、每行一样高；三边共用 pm.js chatRowHtml） */
.chat-rows { padding: 0; overflow: hidden; }
.chat-row { display: flex; gap: 12px; align-items: center; height: 68px; padding: 0 12px; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.chat-row.pinned { background: var(--soft); }
.chat-row + .chat-row .chat-main { border-top: 1px solid var(--line); }
.chat-av { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-main { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.chat-line1, .chat-line2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-line1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.chat-time { margin-left: auto; flex: none; font-size: 11px; color: var(--quiet); }
.chat-line2 span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--quiet); }
.chat-line2 .badge { flex: none; }
/* 聊天页（11-01 用户定）：页头让出来，“通讯录｜聊天”就是顶栏，往下翻固定在最上面 */
body:has(> main > #tab-chat:not(.hidden)) > main > .hint { display: none; }
#tab-chat .chat-top { position: sticky; top: -12px; z-index: 9; background: var(--bg); margin: -12px -14px 0; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }


/* 大标签放顶部（11-01 用户定，照视觉风格图）：一级分类就是顶栏，页头让出来；跟聊天页“通讯录｜聊天”一样 */
.top-tabs { justify-content: center; gap: 22px; flex-wrap: nowrap; }
.top-tabs .chip { background: none; border: 0; box-shadow: none; padding: 4px 0; font-size: 16px; color: var(--quiet); position: relative; border-radius: 0; }
.top-tabs .chip.on { background: none; color: var(--ink); font-weight: 600; }
.top-tabs .chip.on::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -3px; height: 3px; border-radius: 2px; background: var(--accent); }
.seg-bar.top-tabs, .seg-bar:has(> .top-tabs) { padding-top: calc(10px + env(safe-area-inset-top)); }
/* 切换身份：名字旁边的 ▾ */
.space-name { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; max-width: 100%; }
.space-name h2 { margin: 0; }
.space-caret { color: var(--quiet); font-size: 13px; flex: none; }
#space-switch { display: none !important; }

/* 集市、工作台也让出页头（11-01 用户定）：集市大类当顶栏（靠左，右边“我的发布”“＋发一条”）；工作台五个入口就在最上面、固定不动 */
.top-tabs.left { justify-content: flex-start; }
.top-tabs.left .chip { flex: none; }
.seg-bar:has(> .mk-grid) { padding-top: calc(10px + env(safe-area-inset-top)); }
body:has(> main > #tab-home:not(.hidden)) > main { padding-top: calc(12px + env(safe-area-inset-top)); }
body[data-nav-role="dm"] #tab-home { position: sticky; top: calc(env(safe-area-inset-top) - 12px); z-index: 9; background: var(--bg); margin: -12px -14px 0; padding: 12px 14px 0; }

/* 悬浮小赛（11-01 用户定）：右下角紫色“赛”，固定不动、哪一页都能点；点开是半屏悬浮对话，不跳页 */
.sai-fab { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, #a58bff, var(--ai)); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(142,106,246,.4); cursor: pointer; }
body:has(> #composer:not(.hidden)) .sai-fab { bottom: calc(210px + env(safe-area-inset-bottom)); }
body.sai-open .sai-fab, body.embed .sai-fab,
body:has(> main > #tab-chat:not(.hidden) > :is(#chat-ai, #chat-pm, #store-pm, #messages):not(.hidden)) .sai-fab { display: none; }   /* 只看直接下一层，手机重算少 */
.sai-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; }
.sai-sheet.hidden { display: none; }
.sai-panel { width: 100%; max-width: 640px; margin: 0 auto; height: 72vh; height: 72dvh; background: var(--bg); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.sai-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.sai-head .sai-hint { flex: 1; font-size: 12px; }
.sai-av { width: 26px; height: 26px; border-radius: 50%; background: var(--ai); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.sai-tag { font-size: 11px; padding: 0 5px; border-radius: 4px; color: #fff; background: var(--ai); }
.sai-body { flex: 1; overflow-y: auto; padding: 10px 14px; }
.sai-body > .card:first-child { margin-top: 0; }
.sai-foot { flex: none; }
.sai-foot .composer { position: static; box-shadow: 0 -1px 0 var(--line); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.sai-body .chat-dock { position: static; }
/* 常用语：输入框里最右边的小 ▾（11-01 用户定：用得少，不单独占按钮） */
.in-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.in-wrap > textarea, .in-wrap > input { flex: 1; width: 100%; padding-right: 30px; }
.in-quick { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--quiet); font-size: 13px; padding: 6px; cursor: pointer; line-height: 1; }


/* 店铺顶部图标入口（11-01 用户定：跟工作台统一，不用小标签） */
.seg-bar.work-tabs { box-shadow: none; padding-top: calc(10px + env(safe-area-inset-top)); }
.work-tabs .work-grid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.work-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-tabs #ord-tabs { margin-top: 8px; }

/* 集市顶部图标入口（11-01 用户定：跟工作台统一） */
.mk-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mk-grid button { font-size: 12px; white-space: nowrap; }
.mk-grid svg { width: 24px; height: 24px; }

/* 页头全部让出来（11-01 用户定：统一，带底部菜单的页面都不要写页面名字的那一行）；没有顶栏大标签的页（我的、店铺、圈子）顶上留出刘海的位置 */
body.tabbed > header { display: none !important; }     /* 页头用 body 上的 tabbed 标记直接藏，不用整页 :has（11-01：手机上卡） */
body:has(> main > #tab-more:not(.hidden)) > main, body:has(> main > #tab-me:not(.hidden)) > main, body:has(> main > #tab-circle:not(.hidden)) > main, body:has(> main > #tab-post:not(.hidden)) > main { padding-top: calc(12px + env(safe-area-inset-top)); }


/* 圈子帖子（11-01 第 1 批）：照 Telegram 频道——上面图、下面文字；点开在原地展开评论 */
.circle-top { padding-top: calc(4px + env(safe-area-inset-top)); }
.circle-top .chat-top { padding-bottom: 4px; }
.chat-icon { position: relative; }
.chat-icon .badge { position: absolute; top: -2px; right: -4px; }
.chat-icon svg, .cp-acts svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cp { padding: 12px; }
.cp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cp-av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.cp-av img { width: 100%; height: 100%; object-fit: cover; }
.cp-who { flex: 1; min-width: 0; }
.cp-who b { font-size: 15px; }
.cp-who .muted { font-size: 12px; }
.cp-tag { margin-left: 6px; font-size: 11px; padding: 0 5px; border-radius: 4px; background: var(--soft); color: var(--quiet); vertical-align: 1px; }
.cp-tag.dm { background: var(--accent-soft); color: var(--accent); }
.cp-tag.store { background: #eef2ff; color: #364fc7; }
.cp-imgs { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); margin: 4px 0 8px; }
.cp-imgs.n1 { grid-template-columns: 1fr; }
.cp-imgs.n2, .cp-imgs.n4 { grid-template-columns: repeat(2, 1fr); }
.cp-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; display: block; }
.cp-imgs.n1 img { aspect-ratio: auto; max-height: 420px; }
.cp-text { white-space: pre-wrap; word-break: break-word; line-height: 1.6; cursor: pointer; }
.cp-acts { display: flex; justify-content: space-between; margin-top: 10px; color: var(--quiet); }
.cp-acts button { background: none; border: 0; color: inherit; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 6px; cursor: pointer; }
.cp-acts button.on { color: var(--accent); }
.cp-acts button.on svg { fill: currentColor; }
.cp-comments { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.cp-c { padding: 5px 0; line-height: 1.5; }
.cp-c.sub { padding-left: 16px; }
.cp-c a { font-size: 12px; color: var(--quiet); margin-left: 4px; }
.cp-cin input { flex: 1; min-width: 0; }

/* 店铺“消息”里的圈子（11-02 用户：两条顶栏叠在一起像乱码）：消息顶栏已经固定在最上面，圈子这条放在它下面、跟着页面走 */
#store-circle .circle-top { position: static; margin: 0 0 8px; padding: 0; box-shadow: none; background: transparent; }
#store-circle .circle-top .chat-tabs button { font-size: 15px; }

/* 拼场页“店铺”（11-02 用户定，照美团、谜圈） */
.shop-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.shop-bar select { width: auto; flex: none; padding: 6px 10px; border-radius: 16px; font-weight: 600; }
.shop-list { padding: 0 12px; }
.shop { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.shop:last-child { border-bottom: 0; }
.shop-img { flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 28px; font-weight: 700; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-main b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-km { flex: none; color: var(--ink); }

.shop-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.shop-line > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-rate em { font-style: normal; color: var(--accent); font-weight: 600; }
.shop-car { flex: none; color: var(--accent); font-size: 13px; }
.shop-car em { font-style: normal; font-weight: 700; }
.shop-addr { flex: 1; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-tags span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.shop-coupon { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.shop-coupon i { font-style: normal; font-size: 11px; padding: 0 4px; border-radius: 4px; background: #fff0eb; color: #e8590c; border: 1px solid #ffc9b3; }

/* @小赛 的回复（圈子第 2 批）：紫色，一眼看出是 AI */
.cp-c.ai { background: var(--ai-soft); border-radius: 8px; padding: 6px 8px; margin: 4px 0; }
.cp-c.ai > b { color: var(--ai); }
.cp-ai { margin-left: 4px; font-size: 10px; padding: 0 4px; border-radius: 4px; background: var(--ai); color: #fff; vertical-align: 1px; }

/* 圈子等级、徽章（第 3 批） */
.cp-lv { margin-left: 6px; font-size: 11px; padding: 0 5px; border-radius: 4px; background: #fff4e6; color: #e8590c; font-weight: 600; vertical-align: 1px; }
.me-grow { grid-column: 1 / -1; font-size: 13px; text-align: center; margin-bottom: 6px; }
.me-grow .cp-lv { margin: 0 4px 0 0; }
.me-badges { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.me-badges span { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* 底栏未读数贴在图标右上角，不占一行（11-02 用户：跑到下面，底下空白太大） */
.tabbar button { position: relative; }
.tabbar button > .badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }

/* 拼场报名原地展开（11-02） */
.car-join { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

.car-join .join-ok { color: #2f9e44 !important; font-weight: 600; }
/* 店铺列表区域下拉缩短（11-02 用户：太宽） */
.shop-bar select { width: auto !important; max-width: 5.5em; min-width: 0; font-size: 13px; padding: 5px 8px; }

/* DM 接单：“我的订单”悬浮在“赛”上面（11-02） */
.jd-fab { position: fixed; right: 12px; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 60; border: 0; border-radius: 18px; padding: 8px 12px;
  background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(255, 106, 61, .35); }
body.sai-open .jd-fab, body.embed .jd-fab { display: none; }

/* 赛图标往上挪（11-02 用户：太靠下了） */
.sai-fab { bottom: calc(150px + env(safe-area-inset-bottom)); }   /* 11-02 用户：挡住输入框右边的按钮（绑定、发送），再往上挪 */

/* 接单一排：可接｜报名中｜进行中｜已完成｜已取消（11-02） */
.jd-stats { margin: 0 0 10px; }
.jd-stats button { padding: 8px 2px; }
.jd-stats strong { font-size: 17px; }
.jd-stats button.on { background: var(--accent-soft); color: var(--accent); }
.jd-stats button.on span { color: var(--accent); }

.promo-steps { margin: 6px 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.7; }

/* 跳到某一场时闪一下（11-02） */
.session.flash { animation: sessflash 1.8s ease; }
@keyframes sessflash { 0%, 60% { background: var(--accent-soft); } 100% { background: transparent; } }

/* 管理房间（11-02）：一间一块，块之间一条线 */
.rm-room { padding: 10px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.rm-room .chips { margin: 6px 0; flex-wrap: wrap; }
.rm-room .chip { padding: 4px 10px; font-size: 13px; }
.rm-room input { padding: 6px 10px; }

/* 招聘（11-02 v1.0） */
.rc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 10px; }
.rc-stats button { padding: 8px 2px; }
.rc-stats button.on { background: var(--accent-soft); color: var(--accent); }
.rc-stats button.on span { color: var(--accent); }
.rc-job { padding: 10px 0; border-top: 1px solid var(--line); }
.rc-job:first-of-type { border-top: 0; }
.rc-app { padding: 8px 0 8px 10px; border-top: 1px dashed var(--line); }
.rc-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.rc-seg { margin: 0 0 8px; }

/* 匹配度（11-02 用户：像顺风车）：店铺看 DM、DM 看单都显示 */
.match-pct { font-size: 13px; font-weight: 700; color: var(--accent); }

/* 招聘 v1.3：子页一排；发布按钮居中（11-02 用户） */
.rc-views { margin: 0 0 8px; flex-wrap: nowrap; overflow-x: auto; }
.rc-pub { display: flex; justify-content: center; margin: 4px 0 12px; }
.rc-pub .btn { min-width: 60%; border-radius: 999px; }
.rc-lock p { margin: 6px 0 0; }

/* DM 工作台两排十个入口（11-02 用户），压低一点 */
.dm-entries { row-gap: 2px; }
.dm-entries button { padding: 4px 0; gap: 3px; font-size: 12px; }
.dm-entries svg { width: 22px; height: 22px; }
/* DM 接单：大厅和几个状态一排，矮一点（11-02 用户） */
.jd-row { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; }
.jd-row button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 4px 0; font: inherit; font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; line-height: 1.25; touch-action: manipulation; }
.jd-row button b { font-size: 15px; color: var(--ink); }
.jd-row button.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.jd-row button.on b { color: var(--accent); }
/* DM 从工作台入口直接进集市某一类：集市顶上那排（大类、我的发布、发一条）整排不露，正文不被压（11-02 用户） */
body[data-work-view="jobs"] #dm-market > .seg-bar, body[data-work-view="goods"] #dm-market > .seg-bar,
body[data-work-view="place"] #dm-market > .seg-bar, body[data-work-view="mine"] #dm-market > .seg-bar { display: none !important; }
#dm-jiedan-tabs { display: block; padding: 0; background: none; border: 0; box-shadow: none; }

/* 11-02 用户：接单里不露集市（多出来的“暂时没有”）；我的发布一排四个发布；求职发布三种一排 */
body[data-work-view="jiedan"] #dm-market { display: none; }
.pub-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.pub-row .btn { padding-left: 0; padding-right: 0; }
#listing .membership-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#listing .membership-modes button { font-size: 13px; padding: 8px 2px; white-space: nowrap; }

/* 剧本库（11-02 用户）：全部剧本｜收藏｜玩过、搜索、类型、发行这几排上下间距一样 */
#lib-segs, #lib > .search, #lib .lib-types, #lib .lib-kinds { margin: 0 0 8px !important; padding: 0 !important; }
#lib-segs .chip, #lib .lib-types .chip, #lib .lib-kinds .chip, #lib .lib-kinds select { height: 34px; }
.find-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mk-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 11-02 用户：场次 6 个一排（订单 找DM 房间 排班 本单 店员）；经营里的集市组件不露它自己那排大类 */
#board-segs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#board-segs button { font-size: 12px; white-space: nowrap; }
#biz-market #market-app > .seg-bar { display: none; }
.rc-top { flex-wrap: nowrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.rc-top .rc-views { flex: 1; min-width: 0; margin: 0; }
.rc-top > .btn { flex: none; }

/* DM 工作台一排 4 个、两排（11-02 用户）；职业档案 档期｜本单｜资料 一排 */
.dm-entries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prof-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prof-row button { padding: 8px 0; font-size: 14px; }

/* 拼场卡片（11-02 用户）：上半块本，下半块店和场次（浅灰底） */
.car2 { padding: 12px 0; border-bottom: 1px solid var(--line); }
.car2 .car { border-bottom: 0; padding: 0; }
.car-words { color: var(--quiet); font-size: 13px; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-need { color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }
.car-need.full { color: var(--quiet); }
.car-shop { background: var(--soft); border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.car-store { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-when { font-size: 14px; }
.car-faces { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.car-faces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-left: -8px; border: 2px solid var(--card); background: var(--line); }
.car-faces img:first-child { margin-left: 0; }

/* 我的：实名、DM、店铺三项一排（11-03 用户），下面一行小字是状态 */
.me-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.me-grid3 > * { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; touch-action: manipulation; }
.me-grid3 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-state { font-size: 11px; color: var(--quiet); }
.me-state-ok { color: var(--good, #2f9e44); }
.me-state-pending { color: var(--accent); }
.me-state-rejected { color: var(--warn, #e03131); }

/* 个人会员两排（11-03 用户：用户端跟后台一样）：月付｜每月赠币｜额外赠币；年付带原价划线、现价、几折；数字放在方框里 */
.member-plan { padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-plan-name { font-size: 16px; }
.member-rows { display: grid; gap: 6px; margin-top: 6px; }
.member-row { display: grid; grid-template-columns: 2.4em repeat(2, minmax(0, 1fr)); gap: 6px; align-items: stretch; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 0; }
.member-row > b { align-self: center; font-size: 14px; }
.member-pick { border: 1px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; }
.member-pick.on { border-color: var(--accent); background: var(--accent-soft, #fff3ee); }
.member-cell { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; display: flex; flex-direction: column; min-width: 0; background: var(--card); }
.member-cell small { font-size: 11px; color: var(--quiet); line-height: 1.4; }
.member-cell strong { font-size: 15px; }
.member-off { font-style: normal; color: #fff; background: var(--accent); border-radius: 6px; padding: 0 5px; font-size: 11px; }
.member-feats { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink); }

/* 招聘岗位筛选：四个一排（11-03 用户：少占主界面空间） */
.rc-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
.rc-filters select { min-width: 0; font-size: 13px; padding: 6px 4px; height: 34px; }
.rc-send { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
/* 会员月付年付块里加的赠币和原价（11-03，原样式不动） */
.dm-period-full { color: var(--quiet); font-size: 12px; margin-right: 4px; }
.dm-period-gift { display: block; font-size: 12px; color: var(--quiet); margin-top: 1px; }
.dm-period-gift b { color: var(--ink); }
.member-final, .dm-gift-final { color: var(--accent) !important; font-size: 17px; font-weight: 800; }
/* DM 页会员月付、年付块（11-03）：内容竖着排，能换行，不出框 */
.dm-periods button { min-width: 0; overflow: hidden; }
.dm-periods .dm-period-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.dm-period-label, .dm-period-gift { white-space: normal; word-break: keep-all; }
/* 双击不放大（11-03 用户），双指缩放照样能用 */
html, body { touch-action: manipulation; }
.me-intro[data-me-intro] { cursor: text; }
.me-intro-input { width: 100%; font-size: 13px; padding: 4px 8px; height: 30px; }
/* 关注、粉丝列表（11-03 用户：照抖音小红书，顶上 剧友｜关注｜粉丝） */
.people-tabs { display: flex; gap: 18px; }
.people-tabs button { background: none; border: 0; padding: 4px 0; font-size: 15px; color: var(--muted, #888); border-bottom: 2px solid transparent; }
.people-tabs button.active { color: var(--text, #222); font-weight: 700; border-bottom-color: var(--accent, #ff6a3d); }
.people-tabs small { font-size: 12px; font-weight: 400; }
.people-search { width: 100%; box-sizing: border-box; margin: 4px 0 8px; }
.people-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line, #eee); }
.people-row:last-child { border-bottom: 0; }
.people-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.people-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.people-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft, #fff0ea); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; font-weight: 700; color: var(--accent, #ff6a3d); }
.people-avatar img { width: 100%; height: 100%; object-fit: cover; }
.people-row .btn { flex: none; min-width: 76px; }
