/* 云同舟：SAP ERP 实施项目协同平台
   视觉：沿用云筑的深蓝色系；电脑优先（左侧菜单 + 顶部栏），手机上菜单收起 */
:root {
  --paper: #f3f6fa;
  --sheet: #ffffff;
  --ink: #141a24;
  --ink-2: #33415c;
  --mute: #5f6877;
  --line: #d4deea;
  --line-2: #e8eef5;
  --navy: #052a66;
  --navy-deep: #071541;
  --blue: #0070c0;
  --blue-2: #e6f1fa;
  --cyan: #00a8e8;
  --green: #1f7a4d;
  --green-2: #e7f4ec;
  --warn: #b4690e;
  --warn-2: #fdf3e3;
  --red: #c0392b;
  --red-2: #fbe9e7;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --r: 6px;
  --side: 216px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--navy-deep); }
h1 { font-size: 20px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; margin: 16px 0 6px; color: var(--ink-2); }
p { margin: 6px 0; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.hstack { display: flex; align-items: center; gap: 8px; }
.hstack.wrap, .wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; }
.bad-t { color: var(--red); }
.ok-t { color: var(--green); }
.warn-t { color: var(--warn); }
.click { cursor: pointer; }
.off { opacity: .55; }

/* ---------------------------------------------------------------- 按钮与表单 */
.btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink-2);
  border-radius: var(--r); padding: 5px 12px; cursor: pointer; line-height: 1.4; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--blue); color: var(--navy); text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #0a3a86; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--red); border-color: transparent; }
.btn.small { padding: 2px 8px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; padding: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 4px 0; }
.iconbtn { border: 0; background: none; cursor: pointer; font-size: 16px; padding: 4px 8px; position: relative; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px; background: #fff; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--line-2); color: var(--mute); }
.toolbar input.search, .toolbar select { width: auto; }
.toolbar input.search { min-width: 200px; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.field.wide { grid-column: 1 / -1; }
.flabel { font-size: 12px; color: var(--mute); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-foot { margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; cursor: pointer; }
.chk .tiny { margin-left: 4px; }
.cb { width: 18px; height: 18px; }
.w-num { width: 70px !important; }
.w-ver { width: 64px !important; }
.w-note { width: 220px !important; }
.multi { position: relative; }
.multi-val { border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px; min-height: 32px; background: #fff; cursor: pointer; }
.multi-pop { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px; box-shadow: 0 6px 20px rgba(5, 42, 102, .12); display: flex; flex-direction: column; gap: 2px; }
.multi-pop.inline { position: static; box-shadow: none; flex-direction: row; flex-wrap: wrap; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c8d2de; border-radius: 20px; cursor: pointer; transition: .2s; }
.switch span:before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span:before { transform: translateX(16px); }

/* ---------------------------------------------------------------- 外框 */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: 0 0 var(--side); background: var(--navy); color: #dbe6f5; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; cursor: pointer; }
.side-brand b { color: #fff; font-size: 16px; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 17px; }
.side-proj { margin: 4px 10px 8px; padding: 8px 10px; border-radius: var(--r); background: rgba(255, 255, 255, .08); }
.side-proj b { color: #fff; font-size: 13px; display: block; line-height: 1.4; }
.side-nav { display: flex; flex-direction: column; padding: 4px 8px; }
.side-nav a { color: #c9d7ec; padding: 6px 10px; border-radius: var(--r); font-size: 13.5px; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.side-nav a.on { background: #fff; color: var(--navy); font-weight: 600; }
.side-nav.foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); padding-bottom: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 20px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--sheet);
  border-bottom: 1px solid var(--line); }
.menu-btn { display: none; }
.console-shell .top { background: var(--navy); color: #fff; }
.gsearch { position: relative; width: 340px; }
.gsearch-pop { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(5, 42, 102, .14); max-height: 420px; overflow: auto; padding: 6px; z-index: 40; }
.gsearch-pop a { display: block; padding: 5px 8px; border-radius: 4px; color: var(--ink); }
.gsearch-pop a:hover { background: var(--blue-2); text-decoration: none; }
.bell { position: relative; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px;
  line-height: 18px; text-align: center; margin-left: 4px; font-weight: 600; }
.iconbtn .badge { position: absolute; top: -2px; right: -6px; }
.bell-pop { position: absolute; right: 0; top: 120%; width: 380px; max-height: 520px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(5, 42, 102, .16); padding: 12px; z-index: 50; }
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; top: 110%; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px;
  min-width: 160px; box-shadow: 0 8px 24px rgba(5, 42, 102, .14); display: flex; flex-direction: column; }
.menu-pop.right, .toolbar .menu-pop { right: 0; }
.menu-pop a, .menu-pop .linkbtn { padding: 6px 10px; color: var(--ink); text-align: left; }
.menu-pop a:hover { background: var(--blue-2); text-decoration: none; }
.user summary { padding: 4px 10px; border-radius: var(--r); border: 1px solid var(--line); }

.page { padding: 18px 22px 40px; max-width: 1360px; width: 100%; }
.page.narrow { max-width: 1040px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; max-width: 820px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.card.inset { background: #f8fbfe; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-head h3 { padding-left: 8px; border-left: 3px solid var(--blue); line-height: 1.2; }
.tabbar { display: flex; gap: 2px; margin-bottom: -1px; flex-wrap: wrap; }
.tab { border: 1px solid transparent; border-bottom: 0; background: none; padding: 7px 14px; cursor: pointer; border-radius: 8px 8px 0 0; color: var(--mute); }
.tab.on { background: var(--sheet); border-color: var(--line); color: var(--navy); font-weight: 600; }
.tabbar + .card { border-top-left-radius: 0; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar h3 { margin-right: 8px; }

/* ---------------------------------------------------------------- 表格、状态 */
.tablewrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { background: #eef3f9; color: var(--ink-2); font-weight: 500; text-align: left; font-size: 12.5px; padding: 6px 8px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.grid tr.click:hover td { background: #f5f9fd; }
table.grid tr.group-row td { background: #f3f6fa; cursor: pointer; padding-top: 8px; padding-bottom: 8px; }
table.grid tr.group-row.current td { background: var(--blue-2); }
table.grid tr.group-row td > * { vertical-align: middle; margin-right: 10px; }
table.grid tr.group-row .fold { display: inline-block; width: 12px; color: var(--mute); margin-right: 4px; }
.group-bar { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.group-bar i { display: block; height: 100%; background: var(--green); }
table.grid.small td, table.grid.small th { padding: 4px 6px; font-size: 12.5px; }
.st { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; line-height: 20px; white-space: nowrap; border: 1px solid transparent; }
.st.go { background: var(--blue-2); color: var(--blue); }
.st.wait { background: var(--warn-2); color: var(--warn); }
.st.bad { background: var(--red-2); color: var(--red); }
.st.done { background: var(--green-2); color: var(--green); }
.st.off { background: #eef0f3; color: var(--mute); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .1); }
.dot.g { background: #2e9e5b; }
.dot.y { background: #f0b429; }
.dot.r { background: #d64535; }
.dot.n { background: #dde3ea; }
.tag { display: inline-block; padding: 0 7px; border-radius: 10px; font-size: 12px; line-height: 20px; background: var(--blue-2); color: var(--blue); white-space: nowrap; }
.board-rep { gap: 8px; }
.tag.ok { background: #e7f4ec; color: var(--green); }
.tag.warn { background: var(--warn-2); color: var(--warn); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.chip.bad { background: var(--red-2); color: var(--red); }
.chip.warn { background: var(--warn-2); color: var(--warn); }
.chip.ok { background: var(--green-2); color: var(--green); }
.rule { display: inline-block; font-size: 11.5px; color: var(--blue); background: var(--blue-2); border-radius: 4px; padding: 0 6px;
  cursor: pointer; white-space: nowrap; line-height: 18px; margin: 0 2px; }
.rule:hover { background: #d5e8f7; }
.empty { padding: 28px; text-align: center; color: var(--mute); }
.err { padding: 12px; background: var(--red-2); color: var(--red); border-radius: var(--r); margin: 8px 0; }
.files { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.file-chip { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; background: #f8fbfe; }
.files-edit { gap: 6px; }
.files-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-x { border: 0; background: none; color: var(--mute); cursor: pointer; padding: 0 0 0 4px; font-size: 13px; line-height: 1; }
.chip-x:hover { color: var(--red); }
.files { align-items: center; }
.thumb { position: relative; display: inline-flex; align-items: flex-start; }
.thumb-img { display: block; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfe; cursor: zoom-in; overflow: hidden; }
.thumb-img img { display: block; width: 96px; height: 72px; object-fit: cover; }
.thumb-img:hover { border-color: var(--blue); }
.thumb .chip-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(7, 12, 30, .86); display: flex; align-items: center; justify-content: center; padding: 52px 56px 24px; padding-top: calc(52px + env(safe-area-inset-top)); }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); cursor: default; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); color: #fff; font-size: 13px; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { opacity: .75; }
.lb-btn { color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; text-decoration: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 64px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
@media (max-width: 640px) { .lightbox { padding: calc(48px + env(safe-area-inset-top)) 8px 16px; } .lb-nav { width: 32px; height: 52px; } .thumb-img img { width: 76px; height: 58px; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
ul.plain li.cur { font-weight: 600; }

/* ---------------------------------------------------------------- 提示、弹窗、抽屉 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; background: var(--navy-deep); color: #fff; padding: 10px 18px;
  border-radius: 8px; max-width: min(640px, 92vw); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); cursor: pointer; }
.toast.bad { background: #8d2418; }
.toast-why { font-size: 12px; opacity: .85; margin-top: 4px; }
.modal-back, .drawer-back { position: fixed; inset: 0; background: rgba(7, 21, 65, .35); z-index: 60; }
.modal-back { display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 10px; width: 520px; max-width: 100%; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); }
.modal.wide { width: 920px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 14px 16px; max-height: 72vh; overflow: auto; }
.modal-foot { padding: 10px 16px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mute); }
.rule-pop { width: 640px; padding: 16px 18px; max-height: 84vh; overflow: auto; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 100vw); background: #fff; display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .18); }
.drawer-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.drawer-body { padding: 14px 16px 40px; overflow: auto; flex: 1; }
.detail-top { margin-bottom: 4px; }
.trans { margin: 8px 0; }
.trans-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: #f8fbfe; }
dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 12px 0; }
dl.kv dt { color: var(--mute); font-size: 13px; }
dl.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.kv-blank { margin: -4px 0 12px; font-size: 12px; color: var(--mute); line-height: 1.7; }
.linkish { border: 0; background: none; padding: 0 2px; color: var(--blue); cursor: pointer; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
ul.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
ul.timeline li { padding: 3px 0 3px 10px; position: relative; }
ul.timeline li:before { content: ""; position: absolute; left: -5px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }

/* ---------------------------------------------------------------- 工作台、概况 */
ul.todos { list-style: none; margin: 0; padding: 0; }
.todo { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.todo .kind { flex: 0 0 76px; font-size: 12px; color: var(--navy); background: var(--blue-2); border-radius: 4px; text-align: center; padding: 1px 4px; }
.todo.late .kind { background: var(--red-2); color: var(--red); }
.todo.esc .kind { background: var(--red); color: #fff; }
.todo-main { cursor: pointer; }
.todo-text { line-height: 1.45; }
ul.notices li { cursor: pointer; }
ul.notices li.unread .small { font-weight: 600; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tri { background: #fff; border: 1px solid var(--line); border-top: 4px solid #c9d3df; border-radius: 8px; padding: 12px 14px; }
.tri.g { border-top-color: #2e9e5b; }
.tri.y { border-top-color: #f0b429; }
.tri.r { border-top-color: #d64535; }
.tri ul { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.phase { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.phase.cur { border-color: var(--blue); background: var(--blue-2); }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.bar span { display: block; height: 100%; background: var(--blue); }
.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 14px 0; }
.card.proj { color: var(--ink); }
.card.proj:hover { border-color: var(--blue); text-decoration: none; }

/* ---------------------------------------------------------------- 双周计划 */
.gantt-wrap { overflow-x: auto; }
table.gantt { border-collapse: collapse; width: 100%; min-width: 980px; }
table.gantt th, table.gantt td { border-bottom: 1px solid var(--line-2); }
.g-name { text-align: left; padding: 5px 8px; min-width: 260px; }
.g-owner { padding: 5px 6px; white-space: nowrap; width: 64px; }
.g-day { font-weight: 500; font-size: 12px; color: var(--ink-2); width: 40px; text-align: center; padding: 4px 0; background: #eef3f9; }
.g-day.we { background: #e4eaf2; color: var(--mute); }
.g-day.today { background: var(--navy); color: #fff; }
.g-day.hol { background: #fbe9e7; color: var(--red); }
.g-day .g-tag { display: block; font-size: 10px; line-height: 12px; color: var(--red); }
.g-day .g-tag.mk { color: var(--blue); }
.g-cell.off { background: repeating-linear-gradient(135deg, #f3f5f8 0 4px, #e8ecf1 4px 8px); }
.g-group td { background: #f6f9fc; font-weight: 600; color: var(--navy); padding: 4px 8px; }
.g-cell { position: relative; height: 30px; padding: 0; }
.g-cell.on:after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 12px; }
.g-cell.on.wait:after { background: #f6d58e; }
.g-cell.on.go:after { background: #7fb6e3; }
.g-cell.on.done:after { background: #8fd0a9; }
.g-cell.on.late:after { background: #ec8d82; }
.g-end { position: absolute; right: 2px; top: 6px; width: 3px; height: 18px; background: var(--navy); z-index: 1; }

/* ---------------------------------------------------------------- 群聊 */
.chat-page { max-width: none; }
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: calc(100vh - 110px); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; background: #f8fafd; }
.chat-list-head { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.chat-item { display: block; padding: 9px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.chat-item:hover { background: #eef4fb; text-decoration: none; }
.chat-item.on { background: var(--blue-2); }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 10px 14px; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: baseline; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f3f6fa; }
.msg { margin-bottom: 12px; max-width: 72%; }
.msg.mine { margin-left: auto; text-align: right; }
.msg-meta { font-size: 12px; color: var(--ink-2); }
.bubble { display: inline-block; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; }
.msg.mine .bubble { background: #dcecfb; border-color: #c2dcf3; }
.bubble img { max-width: 360px; max-height: 260px; border-radius: 6px; display: block; margin-bottom: 4px; }
.ask { font-size: 12px; color: var(--warn); margin-top: 4px; }
.msg-acts { color: var(--mute); margin-top: 2px; }
.sys-msg { text-align: center; color: var(--mute); font-size: 12px; margin: 8px 0; }
.composer { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.quote { background: var(--line-2); border-radius: 6px; padding: 6px 10px; }
.conv-thumb { max-width: 140px; max-height: 100px; border-radius: 6px; border: 1px solid var(--line); object-fit: contain; }
.checklist { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }

/* ---------------------------------------------------------------- 会议、文档、周报 */
.signin { text-align: center; }
.signin .code { font-size: 64px; font-weight: 700; letter-spacing: 12px; color: var(--navy); font-variant-numeric: tabular-nums; }
.docs { display: flex; gap: 14px; align-items: flex-start; }
.docs-tree { flex: 0 0 280px; position: sticky; top: 64px; max-height: calc(100vh - 90px); overflow: auto; }
.docs .card.grow { flex: 1; }
.tree a { display: flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 4px; cursor: pointer; color: var(--ink); font-size: 13px; }
.tree a:hover { background: var(--blue-2); text-decoration: none; }
.tree a.on { background: var(--navy); color: #fff; }
.tree a.top { font-weight: 600; }
.tree a.sub { padding-left: 22px; }
.tree .code { color: var(--mute); font-size: 12px; min-width: 34px; }
.tree a.on .code { color: #c9d7ec; }
.tree .badge { background: var(--line); color: var(--ink-2); margin-left: auto; }
table.place td { vertical-align: middle; }
table.place select, table.place input { min-width: 90px; }
.notice-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.notice-card.pinned { border-left-color: var(--warn); }
ul.lines { list-style: none; padding: 0; margin: 0 0 8px; }
ul.lines li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
ul.lines li.off { opacity: .45; text-decoration: line-through; }
input.url { font-size: 12px; width: 260px !important; }

/* ---------------------------------------------------------------- 成本与评估 */
.chart { width: 100%; max-width: 760px; height: auto; margin: 4px 0 12px; }
.chart .gridline { stroke: var(--line-2); }
.chart path { fill: none; stroke-width: 2.2; }
.chart .l-base { stroke: #9aa7b8; stroke-dasharray: 5 4; }
.chart .l-fc { stroke: var(--blue); }
.chart .l-act { stroke: var(--red); stroke-width: 3; }
.chart .ax { font-size: 11px; fill: var(--mute); }
.plan-grid th.past, .plan-grid td.past { background: #f2f4f7; color: var(--mute); }
.plan-grid input { padding: 2px 4px; }
table.k7 td { vertical-align: top; }
table.k7 textarea { min-width: 160px; }
.pills { display: inline-flex; gap: 2px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 9px; cursor: pointer; font-size: 12px; }
.pill.g.on { background: #2e9e5b; color: #fff; border-color: #2e9e5b; }
.pill.y.on { background: #f0b429; color: #fff; border-color: #f0b429; }
.pill.r.on { background: #d64535; color: #fff; border-color: #d64535; }
ul.evidence { margin: 4px 0 0; padding-left: 16px; color: var(--ink-2); }
.qa-row td { background: #f8fbfe; }
.qa { margin: 6px 0; }
table.trend { width: auto; margin-bottom: 12px; }
table.trend td { text-align: center; }
.check-row { padding: 4px 0; border-bottom: 1px dashed var(--line-2); }

/* ---------------------------------------------------------------- 规则库 */
ul.rules { list-style: none; padding: 0; margin: 0; }
ul.rules > li { border-bottom: 1px solid var(--line-2); }
.rule-head { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; }
.rule-head:hover { background: #f6f9fc; }
.rid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue); min-width: 64px; font-size: 13px; }
.rule-body { padding: 0 8px 14px 78px; }
.rule-body table { margin: 8px 0; }

/* ---------------------------------------------------------------- 登录 */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #052a66 0%, #0a3d8f 55%, #0070c0 100%); }
html[data-mtheme="ink"] .login { background: linear-gradient(160deg, #1f3f37 0%, #2c5a4f 55%, #7fa898 100%); }
html[data-mtheme="warm"] .login { background: linear-gradient(160deg, #4a2610 0%, #9e4f1b 55%, #d9a27d 100%); }
.login-card { width: 420px; max-width: 100%; background: #fff; border-radius: 12px; padding: 26px 26px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.brand .logo { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.client-hint { min-height: 18px; margin: -4px 0 8px; }

/* ---------------------------------------------------------------- 手机与打印 */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .side { position: fixed; left: 0; top: 0; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .shell.menu-open .side { transform: none; }
  .menu-btn { display: inline-block; }
  .gsearch { width: auto; flex: 1; }
  .page { padding: 12px 12px 30px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .cards4 { grid-template-columns: minmax(0, 1fr); }
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat-list { max-height: 200px; }
  .docs { flex-direction: column; }
  .docs-tree { position: static; flex: none; width: 100%; }
  .msg { max-width: 92%; }
  dl.kv { grid-template-columns: 96px 1fr; }
}
@media print {
  .side, .top, .no-print, .tabbar { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
  .page { padding: 0; }
}

/* ---------------------------------------------------------------- 项目周报（RPT-03） */
.report .lights { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (max-width: 760px) { .report .lights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report .light { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; display: grid; gap: 4px; min-width: 0; }
.report .light b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.report .light span, .report .light input { font-size: 12px; color: var(--mute); line-height: 1.5; }
.report .light b select { width: auto !important; padding: 0 4px; font-size: 12px; }
.report .light textarea { width: 100%; padding: 2px 6px; font-size: 12px; color: var(--mute); line-height: 1.5; resize: none; }
.report .light.overall { background: var(--warn-2); border-color: #f0d6aa; }
.report .summary { display: grid; gap: 8px; max-width: 72ch; }
.report .summary p { margin: 0; }
.report .summary-edit { width: 100%; line-height: 1.7; }
.report .asks { margin-top: 12px; border: 1px solid #f0d6aa; background: var(--warn-2); border-radius: var(--r); padding: 10px 14px; }
.report .asks h4 { margin: 0 0 6px; color: var(--warn); }
.report .asks ol { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 4px; }
.report .asks li.off { opacity: .45; }
.report .asks .hstack { align-items: center; }
.report .asks .ask-title { width: 13em !important; flex: none; font-weight: 600; }
.report .asks input.grow { flex: 1; min-width: 0; width: auto !important; }
.rtag { display: inline-block; font-size: 12px; border-radius: 3px; padding: 0 6px; margin-right: 6px; line-height: 1.7; white-space: nowrap; }
.rtag.t-done { background: var(--green-2); color: var(--green); }
.rtag.t-wait { background: var(--warn-2); color: var(--warn); }
.rtag.t-doing { background: var(--blue-2); color: var(--navy); }
.rtag.t-late { background: var(--red-2); color: var(--red); }
.rtag.t-todo { background: var(--line-2); color: var(--ink-2); }
.code-link { font-size: 11.5px; background: var(--blue-2); border-radius: 3px; padding: 0 4px; white-space: nowrap; }
.report .mod-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.report .mod-row:last-of-type { border-bottom: 0; }
@media (max-width: 600px) { .report .mod-row { grid-template-columns: minmax(0, 1fr); } }
.report .mod-who small { display: block; color: var(--mute); font-size: 12px; }
.report .mod-row ul.lines { margin: 0; }
.report .rtable tr.off td { opacity: .45; text-decoration: line-through; }
.report .bars { display: grid; gap: 6px; max-width: 520px; margin-top: 12px; }
.report .pbar { display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13px; }
.report .pbar span { display: block; background: none; height: auto; }
.report .pbar .track { display: flex; height: 10px; background: var(--line-2); }
.report .track { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; display: flex; }
.report .track i { display: block; height: 100%; }
.report .track .d { background: var(--blue); }
.report .track .c { background: var(--green); }

/* 截图标注（COM-02） */
.annot-back { position: fixed; inset: 0; z-index: 95; background: rgba(7, 12, 30, .72); display: flex; align-items: center; justify-content: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); }
.annot { background: #fff; border-radius: 10px; width: min(1180px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); }
.annot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.annot-tools, .annot-colors { display: inline-flex; gap: 4px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.annot-stage { flex: 1; min-height: 0; overflow: auto; background: #eef1f5; padding: 14px; display: flex; justify-content: center; align-items: flex-start; }
.annot-wrap { position: relative; display: inline-block; }
.annot-cv { display: block; max-width: 100%; max-height: calc(100vh - 190px); height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: crosshair; touch-action: none; }
.annot-cv.t-text { cursor: text; }
.annot-input { position: absolute; min-width: 180px; font-size: 16px; font-weight: 600; border: 1px dashed currentColor; background: rgba(255, 255, 255, .9); padding: 2px 4px; resize: both; }
.annot-tip { margin: 0; padding: 6px 14px 10px; }
.thumb-mark { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 4px; background: rgba(7, 21, 65, .7); color: #fff; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.thumb-mark:hover { background: var(--blue); }

/* 阶段签收（QLT-05）：步骤条 */
.steps { display: flex; gap: 6px; list-style: none; margin: 4px 0 12px; padding: 0; flex-wrap: wrap; }
.steps li { flex: 1 1 140px; padding: 7px 10px; border-radius: 6px; background: var(--line-2); color: var(--mute); font-size: 13px; }
.steps li b { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: #fff; margin-right: 4px; font-size: 12px; }
.steps li.done { background: var(--green-2); color: var(--green); }
.steps li.cur { background: var(--blue-2); color: var(--blue); font-weight: 600; }

/* 跟进记录（ISS-01） */
.followups { margin-top: 14px; }
.follow-add { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 10px; background: #fff; }
.follow-add textarea { width: 100%; border: 0; resize: vertical; outline: none; font: inherit; }
.follow-list li { padding-bottom: 6px; }

/* ---------------------------------------------------------------- 手机版（Y-10、Y-19、Y-25）：字号和样式向云筑看齐
   字号用 rem：「个人设置 → 字号」选标准／大／特大时，手机版的根字号是 16／18／20 像素，整页一起放大；电脑版不受影响。
   头部和底部和页面连成一体（Y-25）：头部颜色一直铺到手机最上面的状态栏（主屏幕打开时状态栏透明），去掉头部下面的蓝线；
   底部标签栏用页面底色、半透明磨砂，只留一条细线，选中的标签只变颜色，不再加顶上的横条。
   主题（Y-25）：深蓝（默认）、墨绿、暖陶三种，在「个人设置」里换，只对这台手机生效。 */
.m-app { --m-bar: var(--navy); --m-bar-ink: #fff; --m-paper: #f4f8fd; --m-acc: #0070c0; --m-seg: #e3ecf6; --m-input: #b8cde4;
  --m-logo: #00a8e8; --m-unread: #f6faff; --m-tabbar: rgba(244, 248, 253, .88); --m-hair: rgba(5, 42, 102, .14); }
html[data-mtheme="ink"] { --navy: #2c5a4f; --navy-deep: #1f3f37; --blue: #2c6e5e; --blue-2: #e3ede8; --cyan: #7fa898;
  --paper: #f5f4ef; --line: #d5dcd6; --line-2: #e7ece8; --ink: #1d2422; --ink-2: #33403b; --mute: #5a6460; }
html[data-mtheme="ink"] .m-app { --m-paper: #f5f4ef; --m-acc: #a9863f; --m-seg: #e6e8e1; --m-input: #c4d0ca; --m-logo: #a9863f;
  --m-unread: #f0f5f2; --m-tabbar: rgba(245, 244, 239, .88); --m-hair: rgba(31, 63, 55, .16); }
html[data-mtheme="warm"] { --navy: #9e4f1b; --navy-deep: #4a2610; --blue: #9e4f1b; --blue-2: #f4e7dd; --cyan: #d9a27d;
  --paper: #f7f4f0; --line: #e2d9d0; --line-2: #efe9e3; --ink: #1c2320; --ink-2: #33403a; --mute: #5f625c; }
html[data-mtheme="warm"] .m-app { --m-paper: #f7f4f0; --m-acc: #c8794a; --m-seg: #ede6df; --m-input: #d6c8bb; --m-logo: #c8794a;
  --m-unread: #fbf6f1; --m-tabbar: rgba(247, 244, 240, .88); --m-hair: rgba(74, 38, 16, .14); }
/* 手机上点过的按钮会一直停在 hover 状态：hover 不变色，按下时才加深 */
.m-app .btn.primary:hover, html[data-mtheme] .btn.primary:hover { background: var(--navy); border-color: var(--navy); }
.m-app .btn.primary:active { background: var(--navy-deep); border-color: var(--navy-deep); }
html[data-mtheme] body { background: var(--paper); }
.m-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--m-paper); font-size: 1rem; line-height: 1.6; }
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--m-bar); color: var(--m-bar-ink); min-height: calc(54px + env(safe-area-inset-top)); }
.m-title { flex: 1; font-size: 1.125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.m-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--m-logo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; }
.m-back { border: 0; background: none; color: inherit; font-size: 1.9rem; line-height: 1; padding: 0 8px 0 0; }
.m-bell { color: inherit; position: relative; text-decoration: none; display: inline-flex; padding: 4px; }
.m-bell svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.m-bell i { position: absolute; top: -4px; right: -8px; font-style: normal; font-size: .75rem; line-height: 18px; min-width: 18px; text-align: center; background: var(--red); border-radius: 9px; padding: 0 5px; color: #fff; }
.m-top .btn { color: var(--navy); background: #fff; border-color: #fff; }
.m-main { flex: 1; padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); }
.m-main.no-tabs { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--m-tabbar);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 -.5px 0 var(--m-hair); padding-bottom: env(safe-area-inset-bottom); }
.m-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 58px; color: var(--mute);
  font-size: .75rem; text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
.m-app a:hover, .m-tabs a:hover { text-decoration: none; }
.m-tabs a.on { color: var(--navy); font-weight: 600; }
.m-tabs a.on .m-ico svg { stroke-width: 2.1; }
.m-ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; display: block; }
/* 主屏幕打开时不让整页回弹，免得头部上面、标签栏下面露出空白 */
@media (display-mode: standalone) { html, body { overscroll-behavior-y: none; } }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.m-card.tri { border-left-width: 5px; }
.m-card.tri.g { border-left-color: var(--green); } .m-card.tri.y { border-left-color: var(--warn); } .m-card.tri.r { border-left-color: var(--red); }
.m-card ul { margin: 6px 0 0; padding-left: 20px; }
.m-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; min-height: 52px; }
.m-row:last-child { border-bottom: 0; }
.m-row:active { background: var(--blue-2); }
.m-row.unread { background: var(--m-unread); }
.m-row b { font-weight: 600; }
.m-sub { font-size: .875rem; color: var(--mute); margin-top: 2px; }
.m-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 72vw; }
.m-break { word-break: break-all; }
.m-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.m-todo { padding: 12px 14px; }
.m-todo.late { border-left: 4px solid var(--red); } .m-todo.esc { border-left: 4px solid var(--red); background: var(--red-2); }
.m-kind { font-size: .8125rem; color: var(--navy); background: var(--blue-2); border-radius: 4px; padding: 1px 7px; }
.m-text { margin: 6px 0 2px; font-size: 1rem; }
.m-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.m-acts .btn { flex: 1; min-width: 80px; justify-content: center; }
.m-seg { display: flex; background: var(--m-seg); padding: 3px; border-radius: 9px; gap: 4px; margin-bottom: 12px; overflow-x: auto; }
.m-seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); font-size: .9375rem; white-space: nowrap; }
.m-seg button.on { background: var(--navy); color: #fff; }
.m-h { margin: 18px 2px 8px; font-size: 1rem; font-weight: 600; color: var(--navy); padding-left: 9px; border-left: 3px solid var(--m-acc); line-height: 1.2; }
.m-pad { padding: 4px 4px 12px; }
.m-form label { display: block; margin-bottom: 12px; font-size: .9375rem; color: var(--ink-2); }
.m-form input, .m-form textarea, .m-form select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--m-input); border-radius: 8px; font-size: 1rem; background: #fff; }
.m-files { margin: 6px 0 12px; }
.m-photo { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.m-photo .btn { flex: 1; min-width: 130px; justify-content: center; gap: 8px; min-height: 48px; font-size: 1rem; }
.m-photo svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.m-search { display: flex; gap: 8px; margin-bottom: 12px; }
.m-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--m-input); border-radius: 8px; font-size: 1rem; }
.m-signin { display: flex; gap: 8px; margin: 10px 0; }
.m-signin input { flex: 1; font-size: 1.5rem; letter-spacing: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.m-room { display: flex; flex-direction: column; height: calc(100dvh - 176px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.m-room .pinbar, .m-room .m-compose, .m-room .m-compose-tools { flex: none; }
.m-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 2px; }
.m-room .m-photo { margin: 6px 0 0; }
.m-room .m-photo .btn { min-height: 44px; }
.m-chat .msg { max-width: 88%; }
.m-chat .bubble { font-size: 1rem; padding: 9px 12px; }
.m-chat .bubble img { max-height: 240px; border-radius: 6px; }
.m-compose { display: flex; gap: 8px; align-items: flex-end; }
.m-compose textarea { flex: 1; padding: 10px 12px; border: 1px solid var(--m-input); border-radius: 8px; font-size: 1rem; resize: none; }
.m-compose .btn { min-height: 46px; }
.m-compose-tools { margin-top: 6px; }
.m-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(7, 21, 65, .45); display: flex; align-items: flex-end; }
.m-sheet-body { width: 100%; max-height: 88vh; overflow: auto; background: #fff; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sev { display: inline-block; font-size: .75rem; border-radius: 4px; padding: 0 6px; color: #fff; background: var(--mute); }
.sev-高 { background: var(--red); } .sev-中 { background: var(--warn); } .sev-低 { background: var(--mute); }
.m-detail .detail { font-size: 1rem; }
.m-detail dl.kv { grid-template-columns: 6em 1fr; }
.m-detail .trans .btn, .m-detail .hstack .btn { margin-bottom: 4px; }
.m-wide { overflow-x: auto; }
.m-wide .page { padding: 0; }
.m-wide .tablewrap, .m-wide table { max-width: none; }
.m-app .annot-back { z-index: 80; }
.m-fs button { font-size: 1rem; }
/* 个人设置（Y-25）：主题、字号、手机通知、免打扰、修改密码、退出登录 */
.m-me { display: flex; align-items: center; gap: 14px; }
.m-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.375rem; font-weight: 600; }
.m-avatar.sm { width: 40px; height: 40px; font-size: 1.05rem; }
.m-me b { font-size: 1.125rem; }
.m-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.m-theme { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 8px 6px; text-align: center; color: var(--ink); font: inherit; }
.m-theme.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--blue-2); }
.m-theme .pv { display: flex; flex-direction: column; height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
.m-theme .pv .bar { height: 20px; flex: none; }
.m-theme .pv .body { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.m-theme .pv .body i { display: block; height: 12px; border-radius: 3px; background: #fff; }
.m-theme .pv .body i.acc { width: 40%; height: 6px; }
.m-theme .pv .tabs { height: 14px; flex: none; border-top: .5px solid rgba(0, 0, 0, .12); display: flex; justify-content: space-around; align-items: center; }
.m-theme .pv .tabs u { display: block; width: 6px; height: 6px; border-radius: 50%; background: #b9bfc6; }
.m-theme .pv .tabs u:first-child { background: currentColor; }
.m-theme .nm { display: block; margin-top: 6px; font-size: .9375rem; font-weight: 600; }
.m-theme .ds { display: block; font-size: .75rem; color: var(--mute); line-height: 1.4; }
.m-theme.on .nm::before { content: "✓ "; color: var(--navy); }
.m-fs-demo { font-size: .9375rem; color: var(--ink-2); padding: 2px 4px 4px; }
/* 手机版里沿用电脑版的部件（记录详情、阶段签收、周报）时，字号统一放大到手机的档位 */
.m-app .small { font-size: .9375rem; }
.m-app .tiny { font-size: .8125rem; }
.m-app .flabel, .m-app dl.kv dt { font-size: .875rem; }
.m-app h4 { font-size: 1rem; margin: 18px 0 8px; }
.m-app .btn { font-size: .9375rem; padding: 8px 14px; min-height: 42px; border-radius: 8px; justify-content: center; }
.m-app .btn.small { font-size: .875rem; padding: 6px 12px; min-height: 36px; }
.m-app .btn.block { min-height: 46px; font-size: 1rem; }
.m-app .chip, .m-app .tag, .m-app .st { font-size: .8125rem; line-height: 1.6; }
.m-app .tiny-tag { font-size: .75rem; }
.m-app .rule { font-size: .75rem; }
.m-app input:not([type=checkbox]):not([type=file]), .m-app select, .m-app textarea { font-size: 1rem; padding: 9px 11px; }
.m-app table.grid td, .m-app table.grid th { font-size: .875rem; }
.m-app .msg-meta { font-size: .8125rem; }
.m-app .msg-acts { font-size: .875rem; margin-top: 4px; }
.m-app .msg-acts a { padding: 4px 2px; display: inline-block; }
.m-app .sys-msg { font-size: .8125rem; }
.m-app .timeline li { font-size: .9375rem; }
.m-app .card-msg { max-width: 100%; font-size: 1rem; }
.m-app .card-msg .cm-head, .m-app .card-msg .cm-meta, .m-app .card-msg .cm-prog { font-size: .875rem; }
.m-app .pinbar .pin-row { font-size: .9375rem; padding: 6px 0; }
.m-app .toast { font-size: 1rem; }
.m-draft input, .m-draft textarea { width: 100%; margin: 4px 0; box-sizing: border-box; }

/* 置顶、重点关注、参与人（Y-20、Y-22） */
.tag.bad { background: var(--red-2); color: var(--red); }
.tiny-tag { font-size: 11px; line-height: 17px; padding: 0 5px; }
.row-flags { display: flex; gap: 3px; margin-top: 2px; }
.flagbar { margin: 4px 0 8px; gap: 6px; }
.watchers { margin: 2px 0 6px; }
.pick-members { max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; margin: 6px 0; background: #fff; }
/* 群里的问题、任务卡片和置顶话题（Y-22、Y-23） */
.card-msg { display: block; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; background: #fff;
  padding: 8px 11px; min-width: 220px; max-width: 420px; color: var(--ink); text-decoration: none; }
.card-msg.focus { border-left-color: var(--red); }
.card-msg .cm-head { font-size: 12px; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.card-msg .cm-title { font-weight: 600; margin: 2px 0; }
.card-msg .cm-meta { font-size: 12.5px; color: var(--ink-2); }
.card-msg .cm-prog { font-size: 12.5px; color: var(--mute); margin-top: 3px; }
.pinbar { border: 1px solid #f0d9a8; background: var(--warn-2); border-radius: 8px; padding: 4px 10px; margin-bottom: 8px; }
.pinbar .pin-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; cursor: pointer; }
.pinbar .pin-row + .pin-row { border-top: 1px dashed #f0d9a8; }
.pinbar .pin-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.flash .bubble, .msg.flash .card-msg { box-shadow: 0 0 0 3px #f0b429; }
