/* 各界面样式（界面模块负责）。按屏幕分段。本文件归 FE-CORE：回归积压弹层、我的 · 设置、消息 · 来信。只用 tokens.css 令牌。 */

/* == backlog（screens/backlog.js，S3 §10.16）== */
.backlog-sheet .bl-lead { margin: 0 2px 12px; }
.bl-list { display: flex; flex-direction: column; gap: 10px; }
.bl-row { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bl-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-2); }
.bl-ic.tone-leaf { background: rgba(62,164,78,.14); color: var(--leaf-600); }
.bl-ic.tone-banana { background: rgba(245,190,30,.18); color: #8A6200; }
.bl-ic.tone-rose { background: rgba(229,86,107,.14); color: #B23A4E; }
.bl-ic.tone-energy { background: rgba(20,196,184,.14); color: var(--cyan-600); }
.device[data-theme="night"] .bl-ic.tone-leaf { color: var(--leaf-300); }
.device[data-theme="night"] .bl-ic.tone-banana { color: var(--banana-300); }
.device[data-theme="night"] .bl-ic.tone-rose { color: #FF9AA9; }
.device[data-theme="night"] .bl-ic.tone-energy { color: var(--cyan-300); }
.bl-main { flex: 1; min-width: 0; }
.bl-title { font: 700 var(--fs-body)/var(--lh-body) var(--font-ui); color: var(--ink); }
.bl-sub { margin-top: 2px; font-size: var(--fs-call); line-height: var(--lh-call); color: var(--muted); }
.bl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bl-actions .btn { min-height: 44px; }
.bl-undo { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font: 600 var(--fs-call)/var(--lh-call) var(--font-ui); }
.bl-undo .btn { min-height: 44px; flex: none; }

/* == me · 设置（screens/me.js，S3 §9.6）== */
.me-set-row { flex-wrap: wrap; row-gap: 8px; }
.me-set-row .lr-main { min-width: 10rem; }
/* 分段控件整行放在说明下面（选项多、字号放大时不挤压文字）；按钮视觉 38px，热区 ≥44px（components.css .seg button::after） */
.me-set-seg .me-seg-wrap { flex: 1 1 100%; margin-left: 48px; }
.me-set-seg .seg button { height: auto; min-height: 38px; padding: 4px 6px; }   /* 英文「Extra large / 125%」「Apply right away」会折两三行：高度随内容长，不再溢出按钮（终版复核） */
.me-set-push .me-seg-wrap { flex: 1 1 100%; margin-left: 48px; }
.me-opt { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.05; }
.me-opt small { font: 600 var(--fs-cap)/1 var(--font-ui); color: var(--faint); }
.seg button.on .me-opt small { color: var(--muted); }
.me-settings + .mf-sec-head { margin-top: 18px; }
.me-settings .switch { flex: none; }

/* == inbox · 来信（screens/inbox.js，S3 §2.7）== */
.inbox-ava { width: 40px; height: 40px; flex: none; border-radius: 14px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.inbox-ava.is-resident { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px rgba(139,107,255,.55); }
/* 我的 · 关键数据：露水 Lv3 才出现，格数随项数自适应 */
.me-screen .me-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.inbox-ava svg { width: 100%; height: 100%; display: block; }
.inbox-sender { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.inbox-sender-name { font: 650 var(--fs-cap)/1.2 var(--font-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 8rem; }
.inbox-sender .npc-label { font-size: var(--fs-cap); }
.inbox-letter { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.inbox-letter p { margin: 0 0 8px; font-size: var(--fs-call); line-height: 1.5; }
.inbox-letter p:last-child { margin-bottom: 0; }
.inbox-letter .inbox-ps { color: var(--muted); font-style: italic; }
.inbox-clue { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); }
.inbox-actions { display: flex; gap: 8px; margin-top: 10px; }
.inbox-actions .btn { min-height: 44px; }
.inbox-row.is-letter.open { background: var(--surface-solid); }

/* v0.5b（W2-FE-CORE-ECON）「我的 → 村子设置」（S2 §14 S-12） */
.me-vset-lead { margin: -2px 6px 8px; line-height: var(--lh-cap); }
.me-vset-note { margin-top: 4px; color: var(--ink-2); }
.me-vsettings .me-set-row .lr-main { min-width: 12rem; }
.me-vset-verbs { flex-wrap: nowrap; align-items: flex-start; }
.me-vset-verbs .lr-main { flex: 1 1 0; min-width: 0; }
.me-verb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.me-verb-chip { min-height: 44px; min-width: 76px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-pill); font: 650 var(--fs-call)/1 var(--font-ui); border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.me-verb-chip.on { background: rgba(62, 164, 78, .12); border-color: var(--leaf-500); color: var(--leaf-700); }
.me-verb-chip.off { border-style: dashed; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.me-verb-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.device[data-theme="night"] .me-verb-chip.on { background: rgba(92, 193, 100, .16); color: var(--leaf-300); border-color: var(--leaf-400); }
.me-care-row.on .lr-title { color: var(--leaf-700); }
.device[data-theme="night"] .me-care-row.on .lr-title { color: var(--leaf-300); }
.me-vadmin + .mf-sec-head, .me-vsettings + .mf-sec-head { margin-top: 18px; }
