/* ═══════════════════════════════════════════════════════════════════════
   fz5.css — 组件层(0908 Steven「网站是小程序的超集;文字精简后页面空荡,用结构和数据填」)。
   与小程序 app.wxss 同一套解剖:卡 / 眉题 / 大标题 / 弱文字 / 行 / 工具格 / 两种按钮 / 分段 / 空态 / 骨架 / 数字格;
   尺寸 = 小程序 rpx ÷ 2;颜色全部走 theme.css 令牌(小程序 theme.wxss 生成),深浅两档自动成立。
   规则:一屏一张实底卡(放最重要的一组数据),其余是行;一屏一个橙色主按钮;可改的行右侧铅笔,跳转的行 ›;
   桌面 ≥1024px 两栏(主栏 640 + 右栏 320,居中 1040)。样机:docs/design/2026-09-08-two-platform-preview.html。
   加载顺序:theme.css 之后、最后;回滚 = base.html 删一行 link。
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 页面容器 & 两栏 ── */
.fz5 { width: min(1040px, calc(100% - 24px)); margin: 0 auto; padding: 12px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.fz5 > * { margin: 0; }
@media (min-width: 1024px) {
  .fz5.fz5-two { display: grid; grid-template-columns: 640px 320px; gap: 24px; justify-content: center; align-items: start; }
  .fz5-main, .fz5-rail { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
}
@media (max-width: 1023px) {
  .fz5-main, .fz5-rail { display: contents; }
  .fz5-rail > .fz5-desk-only { display: none; }
}

/* ── 文字层级(小程序 pe / h1 / dim) ── */
.fz5 .pe, .fz5-pe { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--dim); margin: 0 0 5px; }
.fz5 .h1, .fz5-h1 { font-size: 18px; font-weight: 800; color: var(--snow); line-height: 1.3; margin: 0; }
.fz5 .dim, .fz5-dim { color: var(--dim); font-size: 12px; }
.fz5-gh { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--dim); margin: 4px 0 -4px; display: flex; align-items: baseline; justify-content: space-between; }
.fz5-gh a { font-size: 12px; letter-spacing: 0; color: var(--ice); text-decoration: none; font-weight: 600; }

/* ── 实底卡 ── */
.fz5-card { background: var(--card-glass); border: 1px solid var(--hair); border-radius: 10px; padding: 13px; box-shadow: var(--card-shadow); color: var(--text); }
.fz5-card .ttl { font-size: 17px; font-weight: 800; color: var(--snow); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.fz5-card .ttl small { font-size: 12.5px; color: var(--dim); font-weight: 400; }
.fz5-tag { display: inline-block; padding: 0 5px; border: 1px solid var(--gold-line); color: var(--gold); border-radius: 5px; font-size: 12px; margin-right: 6px; vertical-align: 2px; font-weight: 700; }
.fz5-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.fz5-stats.c3 { grid-template-columns: repeat(3, 1fr); }
.fz5-stats.c2 { grid-template-columns: repeat(2, 1fr); }
.fz5-stats > div { background: var(--well-soft); border-radius: 8px; padding: 7px 8px; min-width: 0; }
.fz5-stats .k { font-size: 11px; color: var(--dim); }
.fz5-stats .v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--snow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz5-stats .v.em { color: var(--ember-text); }

/* ── 行(小程序 console-row / channel-row) ── */
.fz5-rows { background: var(--card-glass); border: 1px solid var(--hair); border-radius: 10px; padding: 0 13px; box-shadow: var(--card-shadow); }
.fz5-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hair-soft); font-size: 14px; color: var(--text); text-decoration: none; min-height: 46px; }
.fz5-rows > .fz5-row:last-child, .fz5-rows > form:last-child > .fz5-row { border-bottom: 0; }
a.fz5-row:hover { background: none; color: var(--text); }
.fz5-row .fz-ico { width: 20px; height: 20px; color: var(--ice); flex: none; }
.fz5-row .t { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fz5-row .d { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.fz5-row .ch { color: var(--dim-lo); font-size: 18px; width: 12px; text-align: center; flex: none; line-height: 1; }
.fz5-row .pen { color: var(--dim); flex: none; }
.fz5-row .pen .fz-ico { width: 16px; height: 16px; color: var(--dim); }
.fz5-row .ok { color: var(--ok); font-weight: 800; flex: none; }
/* 「现在该干什么」一行(管理台表头下;一次只有一条,没有=整行不出现):琥珀底,链接/纯文字两态 */
.fz5-now { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--ember-line); background: var(--ember-bg); color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.fz5-now .go { color: var(--ember-text); margin-left: auto; font-size: 18px; line-height: 1; }
/* 纵向表单/控件堆(公告编辑等);[hidden] 必须赢过 display:flex */
.fz5-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fz5-stack[hidden], .fz5[hidden], .fz5 [hidden] { display: none !important; }
/* 旗徽(名片卡标题前):盟标图 / 徽章 emoji / 盟标字母,24px 方 */
.fz5-flag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; margin-right: 7px; vertical-align: -6px; background: var(--well); border: 1px solid var(--hair); color: var(--ice); font-size: 10px; font-weight: 800; letter-spacing: .02em; object-fit: cover; overflow: hidden; white-space: nowrap; }
.fz5-row.is-now .t { color: var(--ember-text); }
.fz5-badge { background: var(--ember-bg); color: var(--ember-text); font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--ember-line); flex: none; }
.fz5-bar { height: 6px; border-radius: 3px; background: var(--well-soft); overflow: hidden; flex: none; width: 72px; }
.fz5-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--grad-a), var(--ember-deep)); }

/* ── 工具格(小程序 联盟工具 三列) ── */
.fz5-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 1024px) { .fz5-main .fz5-grid3 { grid-template-columns: repeat(4, 1fr); } }
.fz5-tool { position: relative; background: var(--card-glass); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 8px 9px; text-align: center; box-shadow: var(--card-shadow); text-decoration: none; color: var(--text); display: block; }
.fz5-tool .fz-ico { width: 22px; height: 22px; color: var(--ice); margin: 0 auto 6px; display: block; }
.fz5-tool b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.fz5-tool small { display: block; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; min-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz5-tool .fz5-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 0 6px; }
.fz5-tool:hover { border-color: var(--line-hi); color: var(--text); }
.fz5-tool .fz-pin-badge { left: 6px; right: auto; }   /* 置顶标(0910 工具格置顶):左上,不压右上「限免」 */
.fz-channels.is-editing .fz5-tool { outline: 2px dashed var(--line-hi); outline-offset: -2px; cursor: pointer; }

/* ── 按钮(小程序 btn / btn-ghost) ── */
.fz5-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; height: 40px; line-height: 40px; border-radius: 7px; border: 0; background: linear-gradient(180deg, var(--grad-a), var(--ember-deep)); color: var(--on-ember); font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; font-family: inherit; padding: 0 14px; transition: transform .12s; }
.fz5-btn:hover { color: var(--on-ember); filter: brightness(1.05); }
.fz5-btn:active { transform: scale(.98); }
.fz5-btn.ghost { background: var(--well-soft); color: var(--text-2); border: 1px solid var(--line-hi); font-weight: 700; }
.fz5-btn.ghost:hover { color: var(--text); background: var(--ice-bg); }
.fz5-btn.sm { display: inline-block; width: auto; height: 28px; line-height: 28px; font-size: 12px; padding: 0 12px; border-radius: 6px; }
.fz5-btn.danger { background: none; border: 1px solid var(--danger-line); color: var(--danger); font-weight: 700; }
.fz5-actions { display: flex; gap: 8px; }
.fz5-actions > * { flex: 1; }
.fz5-link { color: var(--ice); text-decoration: none; font-size: 13px; font-weight: 600; }

/* ── 分段 / 胶囊(作战室 chips、外观三档) ── */
.fz5-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fz5-chips::-webkit-scrollbar { display: none; }
.fz5-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--ice-bg); border: 1px solid var(--line-hi); color: var(--ice); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fz5-chip.on { background: var(--ice); color: var(--bg); border-color: var(--ice); }
.fz5-chip:hover { color: var(--ice); }
.fz5-chip.on:hover { color: var(--bg); }
.fz5-seg { display: flex; background: var(--well-soft); border: 1px solid var(--hair); border-radius: 8px; padding: 3px; gap: 2px; }
.fz5-seg > * { flex: 1; text-align: center; font-size: 12.5px; padding: 6px 0; border-radius: 6px; color: var(--dim); text-decoration: none; border: 0; background: none; font-family: inherit; cursor: pointer; }
.fz5-seg > .on, .fz5-seg > .is-on { background: var(--card-hi); color: var(--snow); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-hi); }

/* ── 今日军令卡(网页与出图卡与小程序同结构) ── */
.fz5-order .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fz5-order .hd b { font-size: 16px; color: var(--snow); }
.fz5-order .hd span { font-size: 12px; color: var(--dim); white-space: nowrap; }
.fz5-seal { display: inline-block; border: 2px solid var(--ember); color: var(--ember-text); border-radius: 6px; padding: 0 7px; font-weight: 800; font-size: 12px; transform: rotate(-4deg); margin-right: 8px; }
.fz5-order .cmd { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; white-space: pre-wrap; }
.fz5-order .lab { margin: 10px 0 4px; font-size: 11px; letter-spacing: 2px; color: var(--dim); font-weight: 700; }
.fz5-order ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 14px; counter-reset: fzo; font-size: 13.5px; }
.fz5-order ol li { break-inside: avoid; counter-increment: fzo; display: flex; gap: 7px; padding: 4px 0; border-bottom: 1px solid var(--hair-soft); color: var(--text); }
.fz5-order ol li::before { content: counter(fzo); width: 14px; flex: none; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; }
@media (min-width: 1024px) { .fz5-main .fz5-order ol { columns: 3; } }
.fz5-order .ft { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--dim); }
.fz5-order .ft b { color: var(--text-2); font-weight: 700; }

/* ── 留言板 ── */
.fz5-mood { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.fz5-mood input { flex: 1; min-width: 0; height: 34px; border-radius: 7px; background: var(--well); border: 1px solid var(--hair); padding: 0 10px; font: inherit; font-size: 13px; color: var(--text); }
.fz5-msg { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--hair-soft); font-size: 13px; color: var(--text); }
.fz5-msg .av { width: 24px; height: 24px; border-radius: 50%; background: var(--card-hi); display: grid; place-items: center; font-size: 11px; color: var(--ice); font-weight: 800; flex: none; }
.fz5-msg .n { color: var(--dim); font-size: 12px; margin-right: 4px; white-space: nowrap; }
.fz5-msg .lk { margin-left: auto; font-size: 12px; color: var(--dim); white-space: nowrap; }
.fz5-msg .lk button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* ── 空态 / 骨架 ── */
.fz5-empty { text-align: center; color: var(--dim); font-size: 13px; padding: 14px 0; }
.fz5-empty a { color: var(--ice); text-decoration: none; font-weight: 600; }
.fz5-skel { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.fz5-skel i { display: block; height: 12px; border-radius: 6px; background: var(--hair-soft); }
.fz5-skel i:nth-child(2) { width: 60%; }
.fz5-skel i:nth-child(3) { width: 40%; }
@media (prefers-reduced-motion: no-preference) { .fz5-skel i { animation: fz5-pulse 1.4s ease-in-out infinite; } }
@keyframes fz5-pulse { 50% { opacity: .45; } }

/* ── 表单件(与行同宽) ── */
.fz5-input, .fz5 textarea.fz5-input { width: 100%; box-sizing: border-box; background: var(--well); border: 1px solid var(--hair); border-radius: 7px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--text); }
.fz5-input::placeholder { color: var(--dim-lo); }
.fz5-lbl { font-size: 12px; color: var(--dim); margin: 8px 0 4px; }

/* ── kingdom/world(0908 王国页 / 世界页迁 fz5;只补这两页缺的件:卡内行、名次、键值行、可点的数字格、入口卡) ── */
.fz5-card > .fz5-row { padding: 9px 0; min-height: 0; }
.fz5-card > .fz5-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fz5-card > .fz5-row .d { white-space: normal; text-align: right; max-width: 68%; }
.fz5-row.is-now .d { color: var(--ember-text); font-weight: 700; }
.fz5-row .no { flex: none; width: 22px; text-align: center; font-size: 13px; font-weight: 800; color: var(--dim-lo); font-variant-numeric: tabular-nums; }
.fz5-row .no.g1 { color: var(--gold); }
.fz5-row .no.g2, .fz5-row .no.g3 { color: var(--dim); }
.fz5-row .t small { display: block; font-size: 12px; font-weight: 500; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fz5-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair-soft); font-size: 12px; color: var(--dim); }
.fz5-kv b { font-size: 22px; font-weight: 800; color: var(--ember-text); font-variant-numeric: tabular-nums; }
.fz5-kv small { font-size: 12px; color: var(--dim); margin-left: 6px; font-weight: 400; font-variant-numeric: tabular-nums; }
.fz5-stats > a { background: var(--well-soft); border-radius: 8px; padding: 7px 8px; min-width: 0; display: block; text-decoration: none; color: inherit; }
.fz5-stats > a:hover { background: var(--ice-bg); color: inherit; }
.fz5-stats .v.ok { color: var(--ok); }
.fz5-entry { display: flex; align-items: center; gap: 12px; text-decoration: none; }
a.fz5-entry:hover { border-color: var(--line-hi); color: var(--text); }
.fz5-entry .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--well); border: 1px solid var(--hair); color: var(--ice); }
.fz5-entry .ico .fz-ico { width: 22px; height: 22px; }
.fz5-entry.is-hot .ico { color: var(--ember-text); background: var(--ember-bg); border-color: var(--ember-line); }
.fz5-entry .m { flex: 1; min-width: 0; }
.fz5-entry .m b { display: block; font-size: 16px; font-weight: 800; color: var(--snow); }
.fz5-entry .m .dim { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fz5-entry .ch { color: var(--dim-lo); font-size: 20px; flex: none; }
.fz5.fz5-narrow { width: min(640px, calc(100% - 24px)); }

/* ── me.html ── */
/* 行内折叠(details):summary 就是一行(右侧铅笔),点开表单/明细贴在行下;组里最后一条不带底线 */
.fz5-fold > summary { list-style: none; cursor: pointer; }
.fz5-fold > summary::-webkit-details-marker { display: none; }
.fz5-fold[open] > summary.fz5-row { border-bottom-color: transparent; }
.fz5-fold > .fz5-stack { margin: 0; padding: 2px 0 13px; border-bottom: 1px solid var(--hair-soft); }
.fz5-rows > .fz5-fold:last-child > summary.fz5-row, .fz5-rows > .fz5-fold:last-child > .fz5-stack { border-bottom: 0; }
.fz5-rows form { margin: 0; }
/* 数据槽允许换行(属性数据摘要:盾/矛/射 · 火炉 · 统帅 · 击败 一个都不剪) */
.fz5-row .d.wrap { white-space: normal; text-align: right; max-width: 66%; line-height: 1.4; }
/* 一行开关(对外展示) */
.fz5-switch { flex: none; width: 44px; height: 24px; border-radius: 999px; padding: 0; cursor: pointer; position: relative; background: var(--well); border: 1px solid var(--hair); }
.fz5-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: left .15s; }
.fz5-switch.is-on { background: linear-gradient(180deg, var(--grad-a), var(--ember-deep)); border-color: transparent; }
.fz5-switch.is-on .knob { left: 22px; background: var(--on-ember); }
/* 兵种属性表(属性数据行展开) */
.fz5-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.fz5-table th { padding: 6px 4px; font-size: 11px; font-weight: 700; color: var(--dim); text-align: center; border-bottom: 1px solid var(--hair); }
.fz5-table td { padding: 7px 4px; color: var(--text); text-align: center; border-bottom: 1px solid var(--hair-soft); }
.fz5-table tr:last-child td { border-bottom: 0; }
.fz5-table th:first-child, .fz5-table td:first-child { text-align: left; font-weight: 700; }
.fz5-table td.is-spec { color: var(--ember-text); }
/* OCR 排队条(原 me.html 页内样式搬过来;app.js 靠 data-ocr-banner/data-ocr-msg 轮询、.is-error 切换,类名不动) */
.ocr-queue-banner { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 13px; border-radius: 10px; font-size: 13px; background: var(--card-glass); color: var(--text); border: 1px solid var(--hair); box-shadow: var(--card-shadow); }
.ocr-queue-banner.is-error { border-color: var(--ember-line); color: var(--ember-text); }
.ocr-queue-spinner { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; border: 2px solid var(--hair); border-top-color: var(--ember); animation: fz5-ocrspin .8s linear infinite; }
.ocr-queue-banner.is-error .ocr-queue-spinner { display: none; }
@keyframes fz5-ocrspin { to { transform: rotate(360deg); } }

/* ── 主 session 收口(0908):全局 label{flex-direction:column} 会把 label.fz5-row 竖排;is-now 行的 .d 只在今日活动卡里变橙 ── */
label.fz5-row { flex-direction: row; align-items: center; gap: 10px; }
label.fz5-row > span { font-size: inherit; font-weight: inherit; }
.fz5-row.is-now .d { color: var(--dim); font-weight: 500; }
.kh-pulse .fz5-row.is-now .d { color: var(--ember-text); font-weight: 700; }

/* ── members ── */
/* 成员榜(templates/alliance/members.html,0908 迁 fz5):手机=页头 + 控件 + 盟主卡 + 分阶行组;桌面 ≥1024 = 全宽 1200 表;二选一显示。
   .fz5-wide 容器变体给所有表格页;.mb-table 只动本页的表(me.html 的 .fz5-table 兵种小表不受影响)。 */
@media (min-width: 1024px) { .fz5.fz5-wide { width: min(1200px, calc(100% - 48px)); } }
/* 页头:‹ 标题 · N 人 | 右侧一个动作 */
.mb-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.mb-head .back { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; margin-left: -6px; border-radius: 8px; color: var(--ice); text-decoration: none; }
.mb-head .back .fz-ico { width: 22px; height: 22px; }
.mb-head h1 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; color: var(--snow); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-head h1 .n { font-size: 13px; font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums; }
.mb-head .fz5-btn.sm { flex: none; }
/* 一行弱信息(在线 / 认领台账 / 一起看):span 之间自动加「·」 */
.mb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--dim); }
.mb-line b { color: var(--snow); font-weight: 700; font-variant-numeric: tabular-nums; }
.mb-line > span + span::before { content: "·"; margin-right: 8px; color: var(--dim-lo); }
.mb-line .fz5-chip { flex: none; }
/* 小 chip(阶 / 待确认类别)与认领三态(只在管理视角) */
.mb-chip { display: inline-block; padding: 0 6px; margin-left: 5px; border-radius: 5px; border: 1px solid var(--line-hi); color: var(--ice); font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: 1px; white-space: nowrap; }
.claim-chip { display: inline-block; padding: 0 7px; margin-left: 5px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 17px; vertical-align: 1px; white-space: nowrap; }
.claim-chip.is-self { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.claim-chip.is-apply { color: var(--ice); background: var(--apply-bg); border: 1px solid var(--apply-line); }
.claim-chip.is-none { color: var(--dim); border: 1px dashed var(--muted-line); }
/* 分阶行组:眉题是按钮(可折叠),› 随开合转向 */
.mb-group { display: flex; flex-direction: column; gap: 11px; }
.mb-gh { width: 100%; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.mb-gh .tg { display: inline-block; font-size: 16px; letter-spacing: 0; color: var(--dim-lo); transition: transform .15s; }
.mb-group.is-open .mb-gh .tg { transform: rotate(90deg); }
/* 成员行:字母徽 / 名 + chips + 在线灯 / 数据行(span 之间自动加「·」,.ln 盾矛射另起一行)/ 右侧战力 + 动作 */
.mb-av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--well); border: 1px solid var(--hair); color: var(--ice); font-size: 12.5px; font-weight: 800; }
.is-placeholder .mb-av { border-style: dashed; color: var(--dim-lo); }
.mb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mb-row .t { flex: none; }
.mb-row .t a { color: inherit; text-decoration: none; }
.mb-row .t .fz-livetag, .mb-hero .ttl .fz-livetag { font-size: 11px; flex: none; }
.mb-row .d { max-width: none; white-space: normal; line-height: 1.5; }
.mb-row .d > span + span:not(.ln)::before, .mb-hero .meta > span + span:not(.ln)::before { content: " · "; }
.mb-row .d > .ln, .mb-hero .meta > .ln { display: block; }
.mb-row .fz-castle { --s: auto; display: inline; width: auto; height: auto; margin-left: 3px; background: none; box-shadow: none; color: var(--text-2); font-size: inherit; font-weight: 700; }
.mb-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mb-side .pw { font-size: 14px; font-weight: 800; color: var(--ember-text); font-variant-numeric: tabular-nums; }
.mb-row.is-me .t, .mb-hero.is-me .ttl { color: var(--ember-text); }
.mb-acts { display: flex; gap: 6px; margin: 0; }
/* 盟主卡(本屏唯一实底卡) */
.mb-hero .ttl .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-hero .ttl .nm a { color: inherit; text-decoration: none; }
.mb-hero .meta { margin-top: 8px; line-height: 1.5; }
.mb-hero > .fz5-btn { margin-top: 10px; }
/* 按条件出名单(fz5-fold 折叠行下的条件表单) */
.mb-reward form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; padding: 8px 0 12px; }
.mb-reward label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--dim); }
.mb-reward label .fz5-input { width: 96px; padding: 6px 8px; font-size: 12.5px; }
.mb-reward label.ck { flex-direction: row; align-items: center; gap: 6px; align-self: center; }
/* 弹层(编辑成员 / 编辑地心):全页各一份,JS 填值 */
.mb-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 18px; background: var(--mask-strong); backdrop-filter: blur(5px); }
.mb-editor { width: min(400px, 100%); box-sizing: border-box; padding: 16px; border-radius: 12px; border: 1px solid var(--hair); background: var(--card); box-shadow: var(--card-shadow); color: var(--text); }
.mb-editor .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mb-editor h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--snow); }
.mb-editor .top p { margin: 3px 0 0; }
.mb-editor .x { border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 2px; }
.mb-editor label { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.mb-editor .fz5-actions { margin-top: 14px; }
.mb-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.mb-f .fz5-input { flex: 1 1 120px; width: auto; padding: 6px 9px; font-size: 13px; }
.mb-f .fz5-btn { flex: none; }
.mb-danger { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-soft); }
.mb-danger .mb-f { margin-top: 0; }
/* 桌面表(全宽):发丝线行 / tabular-nums / 数字右对齐 / 表头 12px 冰蓝字距 .08em / 悬停底色 / 我的行橙字 */
.fz5-table.mb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; color: var(--text); background: var(--card-glass); border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--card-shadow); font-variant-numeric: tabular-nums; }
.mb-table th, .mb-table td { padding: 9px 12px; border-bottom: 1px solid var(--hair-soft); text-align: left; vertical-align: middle; font-weight: 400; }
.mb-table th { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ice); white-space: nowrap; background: var(--well-soft); }
.mb-table th:first-child { border-top-left-radius: 10px; }
.mb-table th:last-child { border-top-right-radius: 10px; }
.mb-table th a { color: inherit; text-decoration: none; }
.mb-table th a.on { color: var(--snow); border-bottom: 2px solid var(--ice); }
.mb-table .r { text-align: right; }
.mb-table td.no { color: var(--dim-lo); font-weight: 800; }
.mb-table td.num { font-weight: 700; color: var(--snow); }
.mb-table td.nm { white-space: nowrap; }
.mb-table td.nm a { color: var(--text); text-decoration: none; font-weight: 700; }
.mb-table td.nm a:hover { color: var(--ice); }
.mb-table td .dim { font-size: 12px; }
.mb-table td .id { margin-left: 8px; }
.mb-table td .fz-livetag { font-size: 11px; margin-left: 6px; }
.mb-table td.acts { text-align: right; white-space: nowrap; }
.mb-table td.acts > * + * { margin-left: 6px; }
.mb-table tbody tr:hover > td { background: var(--ice-bg); }
.mb-table tbody tr:last-child > td { border-bottom: 0; }
.mb-table tr.is-me > td, .mb-table tr.is-me > td a { color: var(--ember-text); }
.mb-table tr.gh > td { padding: 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--dim); background: var(--well-soft); }
.mb-table .mb-av { width: 24px; height: 24px; margin-right: 8px; font-size: 11px; vertical-align: middle; }
/* 手机列表 / 桌面表 二选一 */
@media (max-width: 1023px) { .mb-desk { display: none; } }
@media (min-width: 1024px) {
  .mb-mobile { display: none !important; }
  .mb-desk { overflow-x: auto; }
  .mb-search { width: 360px; }
  .mb-manage { display: flex; flex-wrap: wrap; align-items: center; padding: 0 6px; }
  .mb-manage > .fz5-row, .mb-manage > .mb-reward > summary { border-bottom: 0; padding: 8px 10px; min-height: 0; }
  .mb-manage > .mb-reward { flex: 0 0 auto; }
  .mb-manage > .mb-reward[open] { flex-basis: 100%; }
  .mb-manage > .mb-reward[open] > summary { border-bottom-color: var(--hair-soft); }
  .mb-manage > .mb-reward form { padding: 10px 10px 12px; }
}

/* ── warroom ── 作战室五页(0908 备战日历 / 兵工厂 / 熊坑 / 国战 / 霜龙王城)壳层补件:
   页头一行 / 分段徽 / 行内折叠编辑(<details> 的 summary 就是一行)/ 卡内小标题与数据行 / 表单格 / 人名池 / 分组 */
.fz5-pgh { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 2px 0 0; }
.fz5-pgh .bk { flex: none; width: 32px; height: 32px; display: grid; place-items: center; margin-left: -6px; border-radius: 10px; color: var(--ice); text-decoration: none; font-size: 22px; line-height: 1; font-weight: 400; }
.fz5-pgh .bk:hover { background: var(--ice-bg); color: var(--ice); }
.fz5-pgh h1 { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: .01em; color: var(--snow); text-align: left; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz5-pgh .act { flex: none; background: none; border: 0; padding: 6px 0 6px 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ice); text-decoration: none; cursor: pointer; }
.fz5-pgh .act:hover { color: var(--ice); text-decoration: underline; }
.fz5-chips > .fz5-badge { align-self: center; }
.fz5-rows > details > summary { list-style: none; cursor: pointer; }
.fz5-rows > details > summary::-webkit-details-marker { display: none; }
.fz5-rows > details:last-child > .fz5-row, .fz5-rows > details[open] > .fz5-row { border-bottom: 0; }
.fz5-edit { padding: 0 0 12px; border-bottom: 1px solid var(--hair-soft); }
.fz5-rows > details:last-child > .fz5-edit { border-bottom: 0; }
.fz5-card h2 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.3; font-weight: 800; color: var(--snow); }
.fz5-card h3 { margin: 12px 0 6px; font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--snow); }
.fz5-meta { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.fz5-meta strong, .fz5 .dim strong { color: var(--snow); font-weight: 700; }
.fz5-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fz5-fields > label { display: grid; gap: 4px; font-size: 12px; color: var(--dim); min-width: 0; }
.fz5-fields small { color: var(--dim); font-variant-numeric: tabular-nums; }
.fz5-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.fz5-pool .fz5-chip { cursor: pointer; }
.fz5-pool .fz5-chip small { color: var(--dim); font-weight: 400; }
.fz5-group { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.fz5-row input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ember-text); }

/* ── attendance ── */
/* 通用出勤页 templates/alliance/attendance.html(0909 A 包第 3 步):已记的场每人一行三态(到场 / 缺席 / 请假 + 备注)、
   替补上场行、记出勤保存条(贴底)、名单正文、本人明细的到 / 缺 / 请假小标;组件其余全部沿用上方的行 / 卡 / 按钮。 */
.att-mark { flex-wrap: wrap; }
.att-mark .acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.att-mark .acts .fz5-input { width: 92px; height: 28px; padding: 0 8px; font-size: 12px; box-sizing: border-box; }
.att-mark .acts select.fz5-input { width: auto; max-width: 140px; }
@media (max-width: 1023px) { .att-mark .acts { flex-basis: 100%; justify-content: flex-end; } }
.fz5-btn.sm.on { background: var(--ember-bg); color: var(--ember-text); border-color: var(--ember-line); }
.att-save { position: sticky; bottom: 12px; padding: 10px 0 0; background: linear-gradient(180deg, transparent, var(--bg) 40%); }
@media (max-width: 860px) { .att-save { bottom: 86px; } }
.att-names { font-size: 13px; line-height: 1.6; color: var(--text); padding: 4px 0 6px; word-break: break-all; }
.att-state { flex: none; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--ok-line); color: var(--ok); }
.att-state.is-absent { color: var(--danger); border-color: var(--danger-line); }
.att-state.is-excused { color: var(--dim); border-color: var(--hair); }

/* ── lineup ── 排阵候选表(0909 A 包第 4 步:意愿 · 上次 · 近 3 场 · 连续;兵工厂 / 峡谷排阵页共用,宏在 templates/_lineup_hist.html)
   .lu-head 表头(点列名排序,.on 当前列)/ .lu-row 峡谷页每人一行(grid 五列,管理多一列分组 select)/ .lu-hist 兵工厂候选行里的四列 /
   .warn 连续缺 ≥ 门槛 */
.lu-head, .lu-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 36px 52px 40px; gap: 4px; align-items: center; }
.lu-row { padding: 9px 0; border-bottom: 1px solid var(--hair-soft); font-size: 13.5px; color: var(--text); min-height: 40px; }
.lu-row.has-sel { grid-template-columns: minmax(0, 1fr) 52px 36px 52px 40px 84px; }
.lu-row.solo { grid-template-columns: minmax(0, 1fr); }
.lu-rows > div > .lu-row:last-child { border-bottom: 0; }
.lu-head { padding: 9px 0 5px; font-size: 11px; font-weight: 700; color: var(--dim); border-bottom: 1px solid var(--hair-soft); }
.lu-head .lu-c { cursor: pointer; user-select: none; }
.lu-head .lu-c.on { color: var(--ice); }
.lu-head .lu-c.on::after { content: " ▾"; font-size: 9px; }
.lu-head .lu-c.on[data-cur="asc"]::after { content: " ▴"; }
.lu-c { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lu-head .lu-c:first-child, .lu-row .lu-c:first-child { text-align: left; }
.lu-name { font-weight: 700; color: var(--snow); }
.lu-name small { color: var(--dim); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.lu-row.is-mine .lu-name { color: var(--fz-ember-hi); }
.lu-c.warn { color: var(--danger); font-weight: 800; }
.lu-sel { width: 100%; box-sizing: border-box; background: var(--well); border: 1px solid var(--hair); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12.5px; color: var(--text); }
/* 兵工厂候选行(.ar2-roster-row,flex):四列跟在名字后;上方排序条是一行 chip 样的列名 */
.lu-hist { display: inline-grid; grid-template-columns: 52px 36px 52px 40px; gap: 4px; font-size: 12px; color: var(--dim); }
.lu-hist .lu-c.warn { color: var(--danger); }
.lu-head.lu-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; border-bottom: 0; }
.lu-head.lu-bar .lu-c { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--hair); background: var(--well-soft); text-align: center; }
.lu-head.lu-bar .lu-c.on { border-color: var(--line-hi); background: var(--ice-bg); }

/* ── lineup · 窄屏 ── <600px(0909 手机截图 390px 五列 + 下拉挤不下):名字整行不截、历史四项收成名字下一行小字(.lu-mini,
   标记里本来就有,宽屏 display:none)、分组下拉靠右占两行;表格表头藏起(排序只在 ≥600px 的表格里)。≥600px 一切照旧。 */
.lu-mini { display: none; }
@media (max-width: 599px) {
  .lu-head:not(.lu-bar) { display: none; }
  .lu-row, .lu-row.has-sel, .lu-row.solo { grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: auto; column-gap: 10px; row-gap: 2px; }
  .lu-row > .lu-c { display: none; }
  .lu-row > .lu-name { display: block; grid-column: 1; grid-row: 1; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
  .lu-row > .lu-mini { display: block; grid-column: 1; grid-row: 2; }
  .lu-row > .lu-sel { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: auto; min-width: 84px; }
  .lu-mini { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: normal; line-height: 1.5; text-align: left; }
  .lu-mini .warn { color: var(--danger); font-weight: 800; }
  /* 兵工厂候选行(.ar2-roster-row)里的四列:同样收成名字下面一行 */
  .lu-hist { display: block; flex: 1 1 100%; }
  .lu-hist > .lu-c { display: none; }
  .lu-hist > .lu-mini { display: block; }
}

/* ── score ── */
/* 0909 B 包 战果截图 → 积分(兵工厂 / 峡谷):出勤页的传截图卡与积分榜行(名次 + 名字 + 积分)、改分 / 榜单人数行;
   草稿页 templates/alliance/attendance_ocr.html 的核对行(到场 / 缺席单选 + 积分输入)与识别原文;其余沿用行 / 卡 / 按钮。 */
.sc-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sc-form .fz5-input { width: auto; max-width: 100%; }
.sc-form input[type="file"] { flex: 1 1 200px; min-width: 0; }
.sc-upload > summary { cursor: pointer; list-style: none; }
.sc-upload > summary::-webkit-details-marker { display: none; }
.sc-row .rk { flex: none; min-width: 26px; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.sc-row .d, .sc-pts { font-variant-numeric: tabular-nums; }
.sc-row.is-absent { background: var(--danger-bg); }
.sc-opt { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sc-opt input { margin: 0; accent-color: var(--ember-text); }
.att-mark .acts .sc-pts { width: 112px; }
.att-mark .acts .sc-n { width: 52px; }
.sc-raw { font: 11.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--dim); white-space: pre-wrap; word-break: break-all; padding: 4px 0 8px; }
.sc-warn { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--danger); }

/* ── changelog(0910 更新公告页):版本卡内的分类小标 + 条目列表;其余全用 fz5 基元 ── */
.cl-page { max-width: 720px; }
.cl-entry .ttl span { font-variant-numeric: tabular-nums; }
.cl-entry .ttl small { text-align: right; }
.cl-sec h3 { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--dim); }
.cl-sec ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.75; color: var(--text); }
.cl-sec li + li { margin-top: 3px; }
