/* 续2043 办公模式(摸鱼表格)排版整理 —— 所有者 11/16「办公模式很多字体超出格子, 排版不整齐, 字体不显示」
   只在 html.theme-moyu 下生效, 不影响普通 / 深色 / 终端模式。单独一个文件, 不改主包和各外挂。
   体检脚本: work/x2043/audit.cjs(无头逐页截图 + 自动查超出 / 被裁 / 对比度) */

/* ---------- 1. 天下沙盘地图: 右上角的小地图 / 全屏 / 回城 / 进入王城 浮层是实心白底, 字不再跑出按钮, 后面的格子不再从缝里露出来 ---------- */
@media (min-width: 561px) {
  html.theme-moyu .rl-map .rl-fab { width: auto !important; display: flex !important; gap: 2px; padding: 2px !important; }
  html.theme-moyu .rl-map .rl-fab button { width: auto !important; min-width: 0 !important; height: 32px !important; padding: 0 10px !important; white-space: nowrap; font-size: 12px !important; color: #222 !important; border: 1px solid #c8c8c8 !important; background: #fff !important; }
  html.theme-moyu .rl-map .rl-fab .rl-tspr { display: none !important; }
  html.theme-moyu .rl-map .rl-fab .moyu-alt, html.theme-moyu .rl-map .rl-fab .rl-wide { position: static !important; display: inline !important; }
}
html.theme-moyu .rl-map .rl-ov { border: 1px solid #bbb !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; }
html.theme-moyu .rl-map .rl-hgo button { white-space: nowrap; }
html.theme-moyu .rl-map .rl-coord { white-space: nowrap; }

/* 2. 走不到的格子(.dim): 原来字色 #bdbdbd 在白底上几乎看不见(「精锐」那种) → 加深到还看得出是灰的、但读得清 */
html.theme-moyu .view .rl-map .rl-t.dim.dim.dim.dim.dim.dim,
html.theme-moyu .view .rl-map .rl-t.dim.dim.dim.dim.dim.dim * { color: #8a8a8a !important; }

/* 3. 换了营地外观的格子: 普通模式的彩色底带 !important, 盖过了办公模式的白底 → 深底深字看不见 */
html.theme-moyu .rl-map .rl-t.camp.skin { background: #fff !important; color: #222 !important; }
html.theme-moyu .rl-map .rl-t.camp.skin.me { background: #fff !important; }

/* 4. S1 称号(彩色渐变字): 办公模式把「字裁成渐变」关了, 剩下一整块深色底 + 深色字 = 黑块 → 办公模式直接用黑字 */
html.theme-moyu .rl-name .rl-s1.s1lt2017:not(.rl-s2t),
html.theme-moyu .rl-s1.s1lt2017:not(.rl-s2t),
html.theme-moyu .pt-s1x.s1lt2017,
html.theme-moyu .pname-titles .s1lt2017 { background-image: none !important; background-color: #f3f3f3 !important; color: #222 !important; -webkit-text-fill-color: #222 !important; }

/* 5. 名字后面的称号被裁掉半个字: 名字太长时名字自己出省略号, 称号整块留着 */
html.theme-moyu .view .lb-mq.lb-mq { display: inline-flex; max-width: 100%; min-width: 0; align-items: center; }
html.theme-moyu .view .lb-mq.lb-mq > :not(.pname-titles) { min-width: 0 !important; flex-shrink: 1 !important; overflow: hidden !important; text-overflow: ellipsis; white-space: nowrap; }
html.theme-moyu .view .lb-mq.lb-mq > .pname-titles { flex-shrink: 0 !important; }

/* ---------- 6. 宠物: 穿圣诞皮肤的宠物卡被一层深绿色罩住, 字看不见 ---------- */
html.theme-moyu .pet-tile.pt-xm::after, html.theme-moyu .pet-tile.pt-xm::before { display: none !important; }
html.theme-moyu .pet-tile.pt-xm { background: #fff !important; color: #222 !important; }

/* ---------- 7. 秘境「新」角标: 深红底 + 深色字 → 白底黑字带框 ---------- */
html.theme-moyu .rf2-new { background: #fff !important; color: #222 !important; border: 1px solid #222 !important; font-style: normal; }

/* ---------- 8. 交易大厅商品格: 办公模式不画图标, 但格子还按有图标的高度留着 → 上面一大块空白, 名字挤在底下 ---------- */
html.theme-moyu .ex-catalog-tile { height: auto !important; min-height: 0 !important; padding: 8px 6px !important; align-content: center; gap: 4px !important; }
html.theme-moyu .ex-catalog-tile-ic { display: none !important; }
html.theme-moyu .ex-catalog-tile-name { font-size: 12px !important; border-top: none !important; }
html.theme-moyu .ex-catalog-grid { grid-template-rows: none !important; grid-auto-rows: auto !important; }
html.theme-moyu .ex-catalog-tile { grid-template-rows: auto auto !important; }

/* ---------- 9. 背包材料格: 数量比名字高半行 → 同一行居中对齐 ---------- */
html.theme-moyu .view .eq-mat-tile.eq-mat-tile { align-items: baseline !important; }
html.theme-moyu .eq-mat-tile-name, html.theme-moyu .eq-mat-tile-qty { line-height: 17px !important; align-self: center; }

/* ---------- 10. 主页领地卡: 坐标框套坐标框, 两层虚线框看着像两个空格子 → 去掉框, 只留字 ---------- */
/*   (主包有一条 .view [class*="coord"] 给所有带 coord 的元素加虚线框, 所以这里要写得比它具体) */
html.theme-moyu .view .land-card .land-card-coord, html.theme-moyu .view .land-card .land-card-coord-row { border: none !important; background: none !important; padding: 0 !important; }

/* ---------- 11. 农牧场「本季 · 夏」那一行贴着上边线 ---------- */
html.theme-moyu .mg-season { padding-top: 5px !important; padding-bottom: 5px !important; line-height: 1.5; }
html.theme-moyu .mg-season .pg-body > span:first-child { font-size: 13px !important; }

/* ---------- 12. 任务「今日全勤」后面的 0 / 5 比标题低半行 ---------- */
html.theme-moyu .task-progress-wrap { align-items: center !important; }

/* ---------- 13. 好友页「我的好友 / 访客记录」小标题贴着左上角框线 ---------- */
html.theme-moyu .social-panel > h3 { padding: 8px 12px !important; margin: 0 !important; }

/* ---------- 14. REDLAND 地图上「你的地在这儿」提示条是透明的, 后面的地块透出来; 「打开我的领地」按钮字太淡 ---------- */
html.theme-moyu .view .land941.land941-bar.land941-bar { background: #fff !important; border: 1px solid #bbb !important; position: relative; z-index: 2; }
html.theme-moyu .view .land941 .land941-btn.land941-btn { color: #222 !important; border: 1px solid #999 !important; background: #fff !important; }
/*   手机上一行放不下一长串称号: 称号自己换到第二行, 不再从半个字处切断 */
/* ---------- 15. 主页「地下城」那句长说明一行写不下, 跑出卡片 → 折行 ---------- */
html.theme-moyu .cap-ug-line { white-space: normal !important; overflow-wrap: anywhere; }

/* ---------- 16. 交易大厅商品名太长时只显示一行加省略号(手机上原来被切掉下半行) ---------- */
html.theme-moyu .ex-catalog-tile-name { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; height: auto !important; }

/* 手机上一行放不下一长串称号: 排行榜里称号自己换到第二行, 不再从半个字处切断(聊天里的名字还是单行省略) */
@media (max-width: 560px) {
  html.theme-moyu .view .lb-row-name .lb-mq.lb-mq, html.theme-moyu .view .rl-name .lb-mq.lb-mq { flex-wrap: wrap; row-gap: 2px; overflow: visible !important; height: auto !important; max-height: none !important; }
  html.theme-moyu .lb-row-name, html.theme-moyu .rl-name { overflow: visible !important; height: auto !important; max-height: none !important; }
  html.theme-moyu .view .lb-row-name .lb-mq.lb-mq > .pname-titles, html.theme-moyu .view .rl-name .lb-mq.lb-mq > .pname-titles { flex-shrink: 1 !important; flex-wrap: wrap; overflow: visible !important; max-width: 100% !important; height: auto !important; row-gap: 2px; }
}

/* ---------- 17. 页签条左右滑动的 ‹ › 按钮(所有者 11/16 截图): 办公模式把它的定位弄丢了, 掉到页签条下面左边成了一个小方块
   → 贴回页签条左右两头, 整条高度、实心底、一眼看得出能点 ---------- */
html.theme-moyu .view .pg-subtabs-wrap.pg-subtabs-wrap { position: relative !important; }
html.theme-moyu .view .pg-subtabs-wrap .pg-subtabs-arrow.pg-subtabs-arrow { position: absolute !important; top: 0 !important; bottom: 0 !important; height: auto !important; width: 28px !important; margin: 0 !important; padding: 0 !important; align-items: center; justify-content: center; z-index: 3; font-size: 18px !important; font-weight: 700; line-height: 1; color: #222 !important; background: #e9e9e9 !important; border: 1px solid #b5b5b5 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; translate: none !important; }
html.theme-moyu .view .pg-subtabs-wrap .pg-subtabs-arrow.pg-subtabs-arrow.prev { left: 0 !important; right: auto !important; }
html.theme-moyu .view .pg-subtabs-wrap .pg-subtabs-arrow.pg-subtabs-arrow.next { right: 0 !important; left: auto !important; }
html.theme-moyu .view .pg-subtabs-wrap .pg-subtabs-arrow.pg-subtabs-arrow:active { background: #d4d4d4 !important; }
/*   箭头盖住的那一截给页签条留出位置, 最后一个页签不会被箭头挡住 */
html.theme-moyu .view .pg-subtabs-wrap.is-overflowing > .subtab-strip { padding-right: 32px !important; }
html.theme-moyu .view .pg-subtabs-wrap.is-overflowing:not(.at-start) > .subtab-strip { padding-left: 32px !important; }

/* ---------- 18. 页签和筛选按钮里办公模式不显示的小图标还占着位置, 字被挤到右边 ---------- */
html.theme-moyu .tab-toggle-pill > .xm-px { display: none !important; }
html.theme-moyu .lmk-chip .rl-cur { display: none !important; }

/* ---------- 19. 限定珍品「全部 / 水晶 / 金块 / 血晶」一行放不下时, 金块被「我要卖」盖住 → 放不下就换行 ---------- */
html.theme-moyu .view .lmk .lmk-bar.lmk-bar, html.theme-moyu #ltdMarketHost .lmk-bar.lmk-bar { flex-wrap: wrap !important; row-gap: 6px; }
html.theme-moyu .view .lmk .lmk-bar .lmk-chips.lmk-chips, html.theme-moyu #ltdMarketHost .lmk-bar .lmk-chips.lmk-chips { flex-wrap: wrap !important; overflow: visible !important; min-width: 0; row-gap: 6px; }
html.theme-moyu .view .lmk .lmk-bar .lmk-right { margin-left: auto; }

/* ---------- 20. 排行榜「我的称号」三档卡: 第 3 名的标签是白字(普通模式配铜色底), 办公模式去了底色 → 白字白底看不见 ---------- */
html.theme-moyu .view .lbb-tier.lbb-tier .lbb-pct::before { color: #222 !important; -webkit-text-fill-color: #222 !important; text-shadow: none !important; background: #f3f3f3 !important; border: 1px solid #c8c8c8; }

/* ---------- 21. 几处「故意变灰」的字灰得太淡, 读不出来 → 加深到还看得出是灰的、但读得清(对比度 ≥ 3) ----------
   · 主页装备展示的「空槽」  · 限定珍品里没人挂单的页签(限定皮肤 / 领地装饰)
   (任务「已领取」那一整行故意淡下去表示做完了, 不动) */
html.theme-moyu .view .showcase-slot.is-empty { opacity: 1 !important; }
html.theme-moyu .view .showcase-slot.is-empty::after { color: #888 !important; }
html.theme-moyu #xmMk .xm-mk-tabs .tab-toggle-pill.xm-none.xm-none:not(.active) { color: #8a8a8a !important; }

/* ---------- 22. 月卡「自动设置」(续2058, 所有者 11/16「付费功能排版这么差」) ----------
   · 开关是个没字的按钮, 办公模式补字脚本给它塞了「领地材料自动开关」, 字跑出开关、盖到弹窗外; 白圆点在灰底上也分不清开没开
     → 办公模式下画成一个小方格, 里面写「开 / 关」, 开的是表格绿底白字
   · 玩法名前的表情办公模式不显示, 但还占着 22px, 名字和下面的小字都往右缩 → 空的就不占位 */
html.theme-moyu .mc-sw { width: 44px !important; height: 24px !important; padding: 0 !important; border: 1px solid #adadad !important; border-radius: 2px !important; background: #fff !important; color: #555 !important; font-size: 12px !important; overflow: hidden; }
html.theme-moyu .mc-sw .moyu-alt { display: none !important; }
html.theme-moyu .mc-sw::after { content: "关" !important; position: static !important; display: block; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; line-height: 22px; text-align: center; }
html.theme-moyu .mc-sw, html.theme-moyu .mc-sw::after { -webkit-text-fill-color: currentColor !important; }
html.theme-moyu .mc-sw.on { background: #217346 !important; border-color: #217346 !important; color: #fff !important; }
html.theme-moyu .mc-sw.on::after { content: "开" !important; }
html.theme-moyu .mc-set-nm i:empty { display: none !important; }
html.theme-moyu .mc-set-hint { margin-left: 0 !important; }
/* 月卡上线战报: 每条记录前的图标格是淡红底小方块, 办公模式图标不显示 → 只剩一排空的粉色方块 → 不画这个格子, 字顶格 */
html.theme-moyu .mcr-ev { grid-template-columns: minmax(0, 1fr) !important; }
html.theme-moyu .mcr-ev > .mcr-i { display: none !important; }

/* ---------- 23. 装备洗练(词条洗练 / 基础属性洗练)每条右上角的锁(续2060, 所有者 11/16「锁住那里要优化」) ----------
   锁是只放了 🔓/🔒 的按钮, 办公模式不显示表情 → 补字脚本塞进「锁住这条不参与重」, 长条盖住战力数字、伸出格子、压到右栏
   → 办公模式下写「锁」/「已锁」, 小方格; 右栏隐形占位用同一套样式, 两栏高度照样对齐 */
html.theme-moyu .eq-reforge-lock .moyu-alt { display: none !important; }
html.theme-moyu .eq-reforge-lock { width: auto !important; min-width: 40px !important; height: 24px; min-height: 24px !important; padding: 0 8px !important; font-size: 12px !important; line-height: 22px !important; border: 1px solid #adadad !important; border-radius: 2px !important; background: #fff !important; color: #555 !important; -webkit-text-fill-color: currentColor !important; opacity: 1 !important; flex: none; white-space: nowrap; }
html.theme-moyu .eq-reforge-lock::after { content: "锁"; -webkit-text-fill-color: currentColor; }
html.theme-moyu .eq-reforge-lock.is-on { background: #217346 !important; border-color: #217346 !important; color: #fff !important; }
html.theme-moyu .eq-reforge-lock.is-on::after { content: "已锁"; }
html.theme-moyu .eq-reforge-lock:disabled { opacity: .45 !important; }
html.theme-moyu .eq-reforge-lock.is-ghost { visibility: hidden !important; }
/* 同一行里「词条名 + 战力 +16,856 + 锁」挤在 140px 里, 词条名被挤成「暴…」→ 办公模式下换行: 第一行 词条名 … 锁, 第二行 战力 */
html.theme-moyu .eq-reforge-slot-head { flex-wrap: wrap !important; row-gap: 2px; }
html.theme-moyu .eq-reforge-slot-head > .eq-reforge-slot-name { flex: 1 1 0 !important; min-width: 0; order: 0; }
html.theme-moyu .eq-reforge-slot-head > .eq-reforge-lock { order: 1; }
html.theme-moyu .eq-reforge-slot-head > .eq-reforge-slot-gain { order: 2; flex: 1 0 100% !important; }
/* 右栏(洗炼属性)空格子没有战力那一行 → 放一行同字号的隐形占位, 左右两栏每格照旧一样高 */
html.theme-moyu .eq-reforge-slot.is-empty .eq-reforge-slot-head::after { content: "战力"; order: 2; flex: 1 0 100%; font-size: 11px; font-weight: 600; line-height: normal; visibility: hidden; }
html.theme-moyu .eq-reforge-slot-head > .eq-reforge-slot-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }

/* ---------- 24. 弹窗体检(续2065, 清单 12) ----------
   · 会员彩名 / 动态色称号: 主包只在 .view 里把它们改深灰, 弹窗(排行榜总览 / 建议反馈 / 资料卡…)不在 .view 里
     → 彩虹名的字是透明的(渐变裁字, 办公模式去了背景)整个看不见, 金色 / 橙色 / 紫色字在灰底上看不清 → 弹窗里也统一深灰 */
html.theme-moyu [class*="tipname"], html.theme-moyu [class*="tt-dyncolor"] { background: none !important; -webkit-text-fill-color: #444 !important; text-shadow: none !important; }
/* · 邮箱奖励格: 图标办公模式不显示, 56px 方格全是空白, 数量是白字白底 → 改成写字的小格「原木 ×53,162」(字取格子自己的 data-m1636-name) */
html.theme-moyu .m1636-t { width: auto !important; height: auto !important; min-height: 26px; padding: 2px 8px !important; display: inline-flex !important; align-items: center; }
html.theme-moyu .m1636-t > * { display: none !important; }
html.theme-moyu .m1636-t::after { content: attr(data-m1636-name); color: #222; -webkit-text-fill-color: #222; font-size: 12px; line-height: 1.4; white-space: nowrap; }
/* · 邮件标题前补的图标(续2042)办公模式不显示, 但格子还占着, 标题往右缩一截 → 不占位 */
html.theme-moyu .mail-item-title > .pxe:first-child { display: none !important; }
/* · 手机宽: 邮件正文 / 农场指南里一长串不断行的字比格子宽出几像素 → 放不下就断行 */
html.theme-moyu .mail-item-more p, html.theme-moyu .farm-guide-list p { overflow-wrap: anywhere; }

/* ---------- 25. 深海捕鱼(续2069, 所有者 11/16「捕鱼这里排版也有点乱」) ----------
   奖池三格里中间「深渊池」是金棕渐变底: 办公模式把字改成深灰, 底没改 → 深字压深底, 名字和「必开上限」看不见 → 和左右两格一样浅底深字 */
html.theme-moyu #fshJp .fsh-jp-card.grand { background: #fff !important; background-image: none !important; border: 1px solid #c8c8c8 !important; box-shadow: none !important; }
html.theme-moyu #fshJp .fsh-jp-card.grand .fsh-jp-num { font-size: 22px !important; color: #222 !important; -webkit-text-fill-color: #222 !important; text-shadow: none !important; }

/* ---------- 续2095 天下沙盘 · 领地页(所有者 11/17「这个页面帮我看看 优化一下」) ----------
   办公模式把像素图标藏了, 但装图标的格子还占着位 → 卡片左边一大块空、月卡自动每行前面空一格、一键打前面空一格;
   月卡自动的小开关被办公补丁塞进了「领地流寇自动开关」几个字 → 字溢出到框外, 开 / 关也看不出来 */
html.theme-moyu .rl .rl-lic0 { display: none !important; }
html.theme-moyu .rl .rl-li { gap: 10px; padding-left: 12px !important; }
html.theme-moyu .rl .rl-auto .mc-ic-lg, html.theme-moyu .rl .rl-auto .rl-apart > span:first-child { display: none !important; }
html.theme-moyu .rl .rl-hrow .rl-btn > .pxe:first-child { display: none !important; }
html.theme-moyu .rl .rl-sw .moyu-alt { display: none !important; }
html.theme-moyu .rl .rl-sw { width: 46px !important; height: 22px !important; border-radius: 2px !important; background: #fff !important; border: 1px solid #b5b5b5 !important; overflow: hidden; }
html.theme-moyu .rl .rl-sw::after { content: "关" !important; top: 1px !important; left: 1px !important; width: 20px !important; height: 18px !important; border-radius: 1px !important; background: #e5e5e5 !important; color: #555; font: 11px/18px sans-serif; text-align: center; }
html.theme-moyu .rl .rl-sw.on { background: #217346 !important; border-color: #217346 !important; }
html.theme-moyu .rl .rl-sw.on::after { content: "开" !important; left: 23px !important; background: #fff !important; color: #217346; }
html.theme-moyu .rl .rl-chip > .pxe:first-child, html.theme-moyu .rl .rl-chip > .rl-tspr:first-child { display: none !important; }
/* 沙盘其他页(所有者 11/17「办公模式下沙盘其他页也查一遍」): 货币图标藏了以后只剩一块空 → 换成字(军资 / 金块 / 赛季币…), 顶上四格本来有字的就直接去掉空位;
   卡牌、卡包的图藏了以后中间一大块空 → 收矮 */
html.theme-moyu .rl .rl-cur { width: auto !important; height: auto !important; min-width: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html.theme-moyu .rl .rl-cur::before { font-size: 12px; font-weight: 400; color: #666; margin-right: 3px; white-space: nowrap; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="军资"])::before { content: "军资"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="金块"])::before { content: "金块"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="赛季币"])::before { content: "赛季币"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="行军令"])::before { content: "行军令"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="赛季分"])::before { content: "赛季分"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="水晶"])::before { content: "水晶"; }
html.theme-moyu .rl .rl-cur:has(> svg[aria-label="血晶"])::before { content: "血晶"; }
html.theme-moyu .rl .rl-r > .rl-cur, html.theme-moyu .rl .rl-map .rl-cur { display: none !important; }
html.theme-moyu .rl .rl-pool-spr { display: none !important; }
html.theme-moyu .rl .rl-kf { height: 132px !important; }
html.theme-moyu .rl .rl-k .ic { display: none !important; }
html.theme-moyu .rl .rl-banner .rl-cur { display: none !important; }
html.theme-moyu .rl .rl-li > .rl-cur:first-child { display: none !important; }
