/* Shared minutes renderer (js/minutes/): PWA detail page + Mac WKWebView (minutes.html). Everything is
   scoped under .mwm. Light by default; data-theme="dark" for the Mac app in dark mode. */
.mwm {
  --m-bg: transparent; --m-card: #fff; --m-line: #e7e9f0; --m-ink: #1f2433; --m-muted: #6b7280; --m-soft: #f6f7fb;
  --m-a1: #FF8A4C; --m-a2: #FF3D6E; --m-accent: #FF5A62; --m-blue: #2563eb; --m-focus: #fff4c2; --m-r: 14px;
  --m-sticky: var(--mwm-sticky-top, 0px);
  color: var(--m-ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.mwm[data-theme=dark] { --m-card: #1d1f26; --m-line: #2e313b; --m-ink: #eceef3; --m-muted: #9aa1ae; --m-soft: #24262e; --m-focus: #4a3f12; }
.mwm * { box-sizing: border-box; }
.mwm button { font: inherit; color: inherit; cursor: pointer; }
.mwm h1, .mwm h2, .mwm h3 { margin: 0; line-height: 1.3; }
.mwm-muted { color: var(--m-muted); } .mwm .small { font-size: 13px; }

/* tab bar + export menu (sticky) */
.mwm-bar { position: sticky; top: var(--m-sticky); z-index: 5; display: flex; gap: 8px; align-items: center; padding: 6px 0; background: var(--mwm-bar-bg, #f6f7fb); }
.mwm[data-theme=dark] .mwm-bar { background: #15161b; }
.mwm-tabs { flex: 1; display: flex; gap: 4px; background: #e9edf4; padding: 3px; border-radius: 12px; }
.mwm[data-theme=dark] .mwm-tabs { background: #2a2c34; }
.mwm-tab { flex: 1; border: none; background: none; padding: 8px 4px; border-radius: 10px; font-size: 15px; color: #374151; white-space: nowrap; }
.mwm[data-theme=dark] .mwm-tab { color: var(--m-muted); }
.mwm-tab.on { background: var(--m-card); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; color: var(--m-ink); }
.mwm-tools { position: relative; flex: 0 0 auto; }
.mwm-tool { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 10px; padding: 7px 10px; font-size: 14px; min-height: 38px; }
.mwm-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(17,24,39,.15); padding: 6px; z-index: 20; min-width: 180px; }
.mwm-menu[hidden] { display: none; }
.mwm-menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.mwm-menu button:hover, .mwm-menu button:active { background: var(--m-soft); }
.mwm-body { padding: 4px 0 24px; }
.mwm-empty { text-align: center; color: var(--m-muted); padding: 40px 10px; }
.mwm-banner { background: #f3f4f6; color: var(--m-muted); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }

/* blocks */
.mwm-block { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--m-r); padding: 16px; margin: 12px 0; scroll-margin-top: calc(var(--m-sticky) + 104px); }
.mwm-block > h2 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mwm-block > h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(var(--m-a1), var(--m-a2)); }
.mwm-kind h3 { font-size: 14px; color: var(--m-muted); margin: 12px 0 6px; }

/* items / badges / cites */
.mwm-item { border: 1px solid var(--m-line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--m-card); }
.mwm-item-text { font-weight: 500; }
.mwm-meta { color: var(--m-muted); font-size: 13px; margin-top: 2px; }
.mwm-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.mwm-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #eef2f7; color: #374151; margin-left: 4px; vertical-align: middle; font-weight: 500; }
.mwm-badges .mwm-badge { margin-left: 0; }
.mwm-badge.star { background: #fff7d6; color: #a16207; } .mwm-badge.note { background: #ecfdf5; color: #047857; }
.mwm-badge.frame { background: #eef4ff; color: #1d4ed8; } .mwm-badge.warn { background: #fffbeb; color: #b45309; } .mwm-badge.bad { background: #fef2f2; color: #dc2626; }
.mwm-badge.todo { background: #fff1ec; color: #c2410c; margin-left: 0; }
.mwm-cites { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mwm-cite { border: 1px solid #bfdbfe; background: #eff6ff; color: var(--m-blue); border-radius: 10px; font-size: 12px; padding: 2px 8px; }
.mwm-cite.rt { border-style: dashed; background: #fff; }
.mwm-board { display: inline-flex; margin-left: auto; }
.mwm-onboard { font-size: 12.5px; color: #15803d; background: #f0fdf4; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.mwm-onboard.done { color: var(--m-muted); background: var(--m-soft); }
.mwm-add { border: 1px dashed #fda4af; background: #fff5f6; color: #e11d48; border-radius: 10px; font-size: 12.5px; padding: 3px 9px; white-space: nowrap; }
.mwm-add:disabled { opacity: .6; }
.mwm-focus { background: var(--m-focus) !important; box-shadow: 0 0 0 2px #fcd34d inset; border-radius: 10px; }

/* thumbnails */
.mwm-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mwm-thumb { border: 1px solid var(--m-line); padding: 0; border-radius: 8px; overflow: hidden; background: var(--m-soft); width: 84px; aspect-ratio: 16 / 10; flex: 0 0 auto; display: block; }
.mwm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mwm-thumb img.mwm-broken { visibility: hidden; }
.mwm-thumb.lg { width: 100%; max-width: 360px; }

/* 精简纪要 */
.mwm-visual-img { display: block; width: 100%; border: 1px solid var(--m-line); border-radius: 12px; background: #fff; padding: 0; overflow: hidden; }
.mwm-visual-img img { display: block; width: 100%; height: auto; }
.mwm-outline { border: 1px dashed var(--m-line); border-radius: 12px; padding: 12px; }
.mwm-outline-c { font-weight: 700; font-size: 16px; text-align: center; padding: 8px; margin-bottom: 8px; color: #fff; border-radius: 10px; background: linear-gradient(90deg, var(--m-a1), var(--m-a2)); }
.mwm-outline-b { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mwm-ob ul { margin: 2px 0 0; padding-left: 18px; color: var(--m-muted); font-size: 14px; }
.mwm-ov-text { margin: 0 0 8px; font-size: 15.5px; }
.mwm-bullets { margin: 0; padding-left: 18px; } .mwm-bullets li { margin: 6px 0; }
.mwm-bullets li.mwm-click { padding: 2px 6px; margin-left: -6px; }   /* v0.3.7: no 原文 chips; the row itself clicks through */

/* 纪要: hero / toc / kpis */
.mwm-hero { padding: 14px 2px 4px; }
.mwm-title { font-size: 22px; font-weight: 750; letter-spacing: .2px; }
.mwm-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mwm-info-card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.mwm-info-card span { display: block; font-size: 12px; color: var(--m-muted); }
.mwm-info-card b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mwm-toc { position: sticky; top: calc(var(--m-sticky) + 50px); z-index: 4; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; background: var(--mwm-bar-bg, #f6f7fb); scrollbar-width: none; }
.mwm-toc::-webkit-scrollbar { display: none; }
.mwm[data-theme=dark] .mwm-toc { background: #15161b; }
.mwm-toc button { flex: 0 0 auto; border: 1px solid var(--m-line); background: var(--m-card); border-radius: 16px; padding: 4px 12px; font-size: 13.5px; color: #374151; }
.mwm[data-theme=dark] .mwm-toc button { color: var(--m-ink); }
.mwm-toc button:active { border-color: var(--m-accent); color: var(--m-accent); }
.mwm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mwm-kpi { border-radius: 12px; padding: 12px; background: linear-gradient(135deg, #fff4ee, #fff0f3); border: 1px solid #ffe0d6; min-width: 0; }
.mwm[data-theme=dark] .mwm-kpi { background: #2b2224; border-color: #4a3034; }
.mwm-kpi .big { font-size: 24px; font-weight: 800; line-height: 1.15; background: linear-gradient(90deg, var(--m-a1), var(--m-a2)); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.mwm-kpi .lbl { font-size: 13px; color: var(--m-muted); margin-top: 4px; }
.mwm-oneliner { margin-top: 12px; border-left: 4px solid var(--m-accent); background: var(--m-soft); border-radius: 0 12px 12px 0; padding: 10px 12px; }
.mwm-oneliner span { font-size: 12px; font-weight: 700; color: var(--m-accent); letter-spacing: 1px; }
.mwm-oneliner p { margin: 2px 0 0; font-weight: 600; }

/* agenda */
.mwm-agenda { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.mwm-agenda svg { display: block; }
.mwm-ag-block { cursor: pointer; } .mwm-ag-block:hover rect { opacity: 1; }
.mwm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--m-muted); }
.mwm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* process sections */
.mwm-sec { border-top: 1px solid var(--m-line); padding: 14px 0 6px; scroll-margin-top: calc(var(--m-sticky) + 104px); }
.mwm-sec:first-of-type { border-top: none; padding-top: 2px; }
.mwm-sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mwm-sec-head h3 { font-size: 16px; flex: 1 1 auto; min-width: 0; }
.mwm-sec-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: var(--cat, var(--m-accent)); }
.mwm-cat { display: inline-block; color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; font-weight: 600; }
.mwm-points { margin: 8px 0 0; padding-left: 20px; }
.mwm-points li { margin: 4px 0; padding: 2px 4px; }
.mwm-click { cursor: pointer; border-radius: 8px; }
.mwm-click:hover { background: var(--m-soft); }
.mwm-item.mwm-click { border-radius: 12px; }
.mwm-sides { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.mwm-side { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--m-line); }
.mwm-side.them { background: #fff7f2; border-color: #ffe0d1; } .mwm-side.us { background: #f2f7ff; border-color: #d6e4ff; }
.mwm[data-theme=dark] .mwm-side.them { background: #2b2420; border-color: #4a372c; } .mwm[data-theme=dark] .mwm-side.us { background: #1f2533; border-color: #2f3b55; }
.mwm-side-h { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.mwm-side ul { margin: 0; padding-left: 18px; } .mwm-side li { margin: 3px 0; }
.mwm-quote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid #fdba74; background: #fffaf5; border-radius: 0 10px 10px 0; }
.mwm[data-theme=dark] .mwm-quote { background: #2a2520; }
.mwm-quote p { margin: 0; font-style: italic; } .mwm-quote cite { display: block; font-size: 12.5px; color: var(--m-muted); font-style: normal; margin-top: 2px; }
.mwm-figure { margin: 12px 0 4px; }
.mwm-figure figcaption { font-size: 13px; font-weight: 600; color: var(--m-muted); margin-bottom: 6px; }
.mwm-fig-host svg { display: block; max-width: 100%; height: auto; }
.mwm-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mwm-shot { min-width: 0; } .mwm-shot .mwm-thumb.lg { max-width: none; }
.mwm-shot-cap { font-size: 12.5px; color: var(--m-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mwm-stars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13.5px; color: #a16207; }
.mwm-play { border: 1px solid #fde68a; background: #fffbeb; color: #a16207; border-radius: 10px; padding: 2px 9px; font-size: 12.5px; }
.mwm-note { margin-top: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; }
.mwm[data-theme=dark] .mwm-note { background: #1c2a22; border-color: #2c4a37; }
.mwm-note-h { font-size: 12.5px; color: #047857; font-weight: 600; }
.mwm-sec-todos { margin-top: 8px; }
.mwm-sec-todo { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 4px; font-size: 14px; }
.mwm-bars svg { display: block; max-width: 100%; height: auto; }

/* todo table: cards on phones, a real table from 640 px */
.mwm-filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mwm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mwm-chip { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 14px; padding: 3px 11px; font-size: 13px; }
.mwm-chip.on { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.mwm-ttable { display: flex; flex-direction: column; gap: 8px; }
.mwm-tr { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "pri cat ." "what what what" "ctx ctx ctx" "owner owner owner"; gap: 4px 8px;
  border: 1px solid var(--m-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; align-items: center; }
.mwm-tr.done .what b { text-decoration: line-through; color: var(--m-muted); }
.mwm-th { display: none; }
.mwm-td.pri { grid-area: pri; } .mwm-td.cat { grid-area: cat; } .mwm-td.what { grid-area: what; } .mwm-td.ctx { grid-area: ctx; font-size: 13.5px; color: var(--m-muted); }
.mwm-td.owner { grid-area: owner; font-size: 13px; } .mwm-td.owner:not(:empty)::before { content: "负责人："; color: var(--m-muted); }
.mwm-td:empty { display: none; }
.mwm-pri { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 6px; color: #fff; background: #9ca3af; }
.mwm-pri.P0 { background: #e11d48; } .mwm-pri.P1 { background: #f97316; } .mwm-pri.P2 { background: #eab308; } .mwm-pri.P3 { background: #64748b; }
.mwm-terms .mwm-term { background: #fffbeb; color: #92400e; border: 1px dashed #fcd34d; border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.mwm-terms p { margin: 0 0 8px; }

/* 纪要 fallback / buttons */
.mwm-fallback { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 14px; margin: 10px 0; text-align: center; color: #7c2d12; }
.mwm-fallback p { margin: 0 0 10px; }
.mwm-btn { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 12px; padding: 9px 18px; font-size: 15px; min-height: 42px; }
.mwm-btn.primary { background: linear-gradient(90deg, var(--m-a1), var(--m-a2)); color: #fff; border: none; font-weight: 600; }
.mwm-btn:disabled { opacity: .6; }

/* 全文 */
.mwm-seg { display: flex; gap: 8px; padding: 8px 6px; border-radius: 10px; scroll-margin: 120px; cursor: pointer; }
.mwm-t { color: var(--m-muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 42px; padding-top: 3px; flex: 0 0 auto; }
.mwm-spk { flex: 0 0 auto; font-size: 12px; min-width: 28px; padding: 1px 6px; border-radius: 8px; height: fit-content; margin-top: 2px; background: #eef2f7; color: #374151; text-align: center; }
.mwm-spk.me { background: #fff1ec; color: #c2410c; }
.mwm-tx { flex: 1; min-width: 0; }
.mwm-sess { text-align: center; color: var(--m-muted); font-size: 12px; margin: 14px 0 4px; }
.mwm-mo { margin: 6px 0 6px 50px; }
.mwm-mo.frame .mwm-thumb.lg { max-width: 240px; }
.mwm-mo-cap { font-size: 12.5px; color: var(--m-muted); margin-top: 3px; }
.mwm-mo.note { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 6px 10px; }
.mwm[data-theme=dark] .mwm-mo.note { background: #1c2a22; border-color: #2c4a37; }

@media (min-width: 640px) {
  .mwm-info { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mwm-kpis.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mwm-kpis.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mwm-sides { grid-template-columns: 1fr 1fr; }
  .mwm-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mwm-outline-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* B-18 / v0.3.8: 5 columns (no 「完成」 column — board controls live in 精简纪要), text wraps; horizontal scroll only as a last resort */
  .mwm-ttable { gap: 0; border: 1px solid var(--m-line); border-radius: 12px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .mwm-th { display: grid; background: var(--m-soft); font-size: 12.5px; color: var(--m-muted); font-weight: 600; cursor: default; }
  .mwm-tr { grid-template-columns: 52px 84px minmax(160px, 2.4fr) minmax(120px, 1.8fr) minmax(64px, .8fr); grid-template-areas: none; border: none; border-top: 1px solid var(--m-line); border-radius: 0; padding: 10px 12px; align-items: start;
    min-width: 540px; box-sizing: border-box; }
  .mwm-tr > * { min-width: 0; overflow-wrap: anywhere; }
  .mwm-th.mwm-tr, .mwm-tr.mwm-th { border-top: none; }
  .mwm-tr > * { grid-area: auto !important; }
  .mwm-td:empty { display: block; }
  .mwm-td.owner::before { content: none !important; }
  .mwm-tr:not(.mwm-th):hover { background: var(--m-soft); }
  .mwm-title { font-size: 26px; }
}

.mwm-print-title { display: none; }
/* 打印 / 存 PDF: the page as shown, without the controls */
@media print {
  .mwm { --m-sticky: 0px; font-size: 12.5px; }
  .mwm-print-title { display: block; font-size: 20px; font-weight: 700; margin: 0 0 8px; }
  .mwm, .mwm * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mwm-bar, .mwm-toc, .mwm-filters, .mwm-add, .mwm-play, .mwm-tools, .mwm-fallback button { display: none !important; }
  .mwm-block { break-inside: auto; border-color: #ddd; box-shadow: none; }
  .mwm-sec-head, .mwm-kpi, .mwm-tr, .mwm-side, .mwm-quote, .mwm-figure, .mwm-shot, .mwm-item { break-inside: avoid; }
  .mwm-agenda { overflow: visible; }
  .mwm-agenda svg { width: 100%; height: auto; }
  .mwm-thumb img.mwm-broken { visibility: visible; }
  .mwm-focus { background: none !important; box-shadow: none !important; }
  .mwm-info { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mwm-sides { grid-template-columns: 1fr 1fr; }
  .mwm-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* R3 (Mac retest): no heading alone at a page bottom ("待办 · 7"), no page holding one word */
  .mwm h2, .mwm h3, .mwm-block > h2, .mwm-sec-head, .mwm-th, .mwm-figure figcaption, .mwm-filters {
    break-after: avoid; page-break-after: avoid; break-inside: avoid; }
  .mwm p, .mwm li, .mwm blockquote, .mwm-block, .mwm-sec, .mwm-seg { orphans: 3; widows: 3; }
  /* the todo table breaks between rows (a flex column is not fragmented row by row in WebKit) */
  .mwm-ttable { display: block; }
  .mwm-ttable > .mwm-tr { margin-bottom: 6px; }
  .mwm-terms, .mwm-oneliner, .mwm-kpis { break-inside: avoid; }
  /* nothing forces a page after the last block (a trailing, nearly empty page) */
  .mwm, .mwm-body, .mwm-body > :last-child, .mwm-block:last-child { break-after: auto !important; page-break-after: auto !important; }
  .mwm-body > :last-child, .mwm-block:last-child { margin-bottom: 0 !important; }
}
.mwm-pending .mwm-ph-t::before { content: "⏳ "; }
.mwm-ph-t { font-size: 16px; font-weight: 600; color: var(--m-ink); }
.mwm-ph-s { margin-top: 6px; }

/* ---------------------------------------------------------------- v0.6: edit mode, markers, speakers, 待办分发 */
.mwm-tool.primary { background: linear-gradient(90deg, var(--m-a1), var(--m-a2)); color: #fff; border: none; font-weight: 600; }
.mwm-tool:disabled { opacity: .6; }
.mwm-edtools { display: flex; gap: 6px; }
.mwm-btn.sm { min-height: 34px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.mwm-btn.danger { background: #dc2626; color: #fff; border: none; }
.mwm-linkbtn { border: none; background: none; color: var(--m-blue); padding: 0 2px; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mwm-banner.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mwm-banner.info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.mwm-notice { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mwm-notice > span { flex: 1 1 200px; }
.mwm-notice.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.mwm-notice.error, .mwm-notice.conflict { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mwm-notice.regen { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.mwm-um-list { margin: 8px 0 0; padding-left: 20px; color: var(--m-ink); }
.mwm-um-list[hidden] { display: none; }
.mwm-x { border: none; background: none; color: var(--m-muted); font-size: 20px; line-height: 1; padding: 2px 6px; min-width: 32px; min-height: 32px; border-radius: 8px; }
.mwm-x:hover { background: var(--m-soft); color: #dc2626; }
.mwm-in { font: inherit; color: var(--m-ink); background: var(--m-card); border: 1px solid #cbd5e1; border-radius: 10px; padding: 7px 10px; width: 100%; min-height: 38px; }
.mwm-in:focus { outline: 2px solid #fdba74; outline-offset: 0; border-color: #fb923c; }
textarea.mwm-in { resize: vertical; line-height: 1.5; display: block; }
.mwm-in-title { font-size: 22px; font-weight: 700; }
.mwm-in-sec { font-size: 16px; font-weight: 600; flex: 1; }
.mwm-points.editing { list-style: none; padding: 0; }
.mwm-point.editing { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; }
.mwm-addrow { border: 1px dashed #cbd5e1; background: var(--m-soft); color: #475569; border-radius: 10px; padding: 6px 12px; font-size: 14px; margin: 6px 0; }
.mwm-ied { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; }
.mwm-ied > .mwm-ied-title { grid-column: 1; }
.mwm-ied > .mwm-in-text { grid-column: 1; }
.mwm-ied > .mwm-x { grid-column: 2; grid-row: 1 / span 2; }
.mwm-ied-row { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(70px, .7fr); gap: 6px; }
.mwm-ttable.editing { display: block; border: none; }
.mwm-ttable.editing > .mwm-tr.editing { display: block; min-width: 0; border: 1px solid var(--m-line); border-radius: 12px; padding: 10px; margin: 8px 0; }
.mwm-item.editing { padding: 10px; }
.mwm-badge.manual { background: #f1f5f9; color: #475569; }
.mwm-edited-wrap { position: relative; display: inline-block; margin-left: 4px; vertical-align: middle; }
.mwm-edited { border: none; background: #f1f5f9; color: #64748b; border-radius: 9px; font-size: 11.5px; padding: 0 7px; line-height: 18px; font-weight: 500; }
.mwm-edited-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); width: max-content; max-width: min(320px, 80vw); background: #1f2433; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.5;
  padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); white-space: normal; }
.mwm-edited-pop[hidden] { display: none; }
.mwm-fixed { color: #64748b; font-size: 12px; white-space: nowrap; }
/* speakers */
.mwm-spkbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 2px 10px; border-bottom: 1px solid var(--m-line); margin-bottom: 6px; }
.mwm-spkbar.none { border-bottom: none; }
.mwm-spkchip { display: inline-flex; align-items: center; border: 1px solid var(--m-line); background: var(--m-card); border-radius: 16px; overflow: hidden; }
.mwm-spkchip.on { border-color: var(--m-accent); background: #fff5f5; }
.mwm-spkchip.me .mwm-spkchip-main b { color: #c2410c; }
.mwm-spkchip-main { border: none; background: none; padding: 4px 10px; font-size: 13.5px; min-height: 32px; }
.mwm-spkchip-ed { border: none; border-left: 1px solid var(--m-line); background: none; padding: 4px 9px; color: var(--m-muted); min-height: 32px; }
.mwm-spkchip { flex-wrap: wrap; }
/* v0.4.0 团队声纹 (api-mb v0.7 §3.2): 「张三 · 自动」 / 「可能是王五？」 [是] [不是] / ▶ preview / 发言太少 */
.mwm-spkchip.suggest { border-style: dashed; border-color: #f0b44c; background: #fffaf0; }
.mwm[data-theme=dark] .mwm-spkchip.suggest { background: #2b2414; }
.mwm-spkchip.suggest .mwm-spkchip-main b { color: #92400e; font-weight: 600; }
.mwm[data-theme=dark] .mwm-spkchip.suggest .mwm-spkchip-main b { color: #fbbf24; }
.mwm-auto { border: none; background: #eef4ff; color: #1d4ed8; font-size: 11.5px; border-radius: 8px; padding: 1px 6px; margin-right: 4px; line-height: 1.5; }
button.mwm-auto { cursor: pointer; }
.mwm[data-theme=dark] .mwm-auto { background: #1e2a44; color: #93b4ff; }
.mwm-auto-s { font-size: 11px; color: #1d4ed8; background: #eef4ff; border-radius: 6px; padding: 0 4px; margin-left: 3px; font-weight: 400; }
.mwm-spk.suggest { color: #92400e; font-style: normal; }
.mwm-spk-yes, .mwm-spk-no { border: none; border-left: 1px solid var(--m-line); background: none; padding: 4px 10px; min-height: 32px; font-size: 13px; }
.mwm-spk-yes { color: #0f7b4a; font-weight: 600; }
.mwm-spk-no { color: #b42318; }
.mwm-spkchip-play { border: none; border-left: 1px solid var(--m-line); background: none; padding: 4px 9px; color: var(--m-blue); min-height: 32px; font-size: 12px; }
.mwm-spk-note { flex-basis: 100%; padding: 0 10px 4px; color: #b45309; font-size: 12px; }
.mwm-vp-sugg .mwm-chips { margin-top: 2px; }
.mwm-vp-chip { display: inline-flex; gap: 2px; align-items: baseline; }
.mwm-vp-cand { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--m-line); border-radius: 12px; padding: 8px 10px; }
.mwm-rename-preview { display: flex; align-items: center; gap: 6px; }
.mwm-rename-preview .mwm-spkchip-play { border: 1px solid var(--m-line); border-radius: 10px; }
.mwm-seg-ed { flex: 0 0 auto; border: none; background: none; color: #94a3b8; padding: 0 6px; min-width: 32px; min-height: 28px; border-radius: 8px; opacity: .6; }
.mwm-seg:hover .mwm-seg-ed, .mwm-seg-ed:focus { opacity: 1; background: var(--m-soft); }
.mwm-seg.editing { cursor: default; background: var(--m-soft); }
.mwm-segedit { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mwm-segedit-btns { display: flex; gap: 6px; }
.mwm-termbox { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mwm-termbox[hidden] { display: none; }
.mwm-termbox label { display: grid; gap: 2px; color: var(--m-muted); }
.mwm-check-l { display: flex; align-items: center; gap: 4px; color: var(--m-muted); }
/* dialog (appended to <body>, outside the root) */
.mwm-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.35); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .mwm-ov { align-items: center; padding: 24px; } }
.mwm-dlg { background: var(--m-card); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
@media (min-width: 640px) { .mwm-dlg { border-radius: 18px; } }
.mwm-dlg h3 { font-size: 17px; }
.mwm-dlg p { margin: 0; }
.mwm-dlg-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
/* 待办分发 (§7) */
.mwm-alist { display: grid; gap: 8px; }
.mwm-arow { border: 1px solid var(--m-line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.mwm-arow.guess { background: #fffbeb; border-color: #fde68a; }
.mwm-arow.st-external, .mwm-arow.st-pushed { opacity: .65; }
.mwm-arow.st-mine { background: #f0fdf4; }
.mwm-arow-h { display: flex; gap: 8px; align-items: baseline; }
.mwm-asels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mwm-asel-w { display: inline-flex; align-items: center; gap: 2px; }
.mwm-asel { width: auto; min-width: 140px; }
.mwm-warn { color: #b45309; } .mwm-ok { color: #15803d; }
.mwm-assignees { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mwm-assignee { font-size: 12.5px; background: #eef4ff; color: #1d4ed8; border-radius: 10px; padding: 1px 8px; display: inline-flex; gap: 6px; align-items: center; }
.mwm-assignee.returned { background: #fff7ed; color: #c2410c; }
.mwm-assignee .mwm-linkbtn { font-size: 12px; }
@media print {
  .mwm-seg-ed, .mwm-spkchip-ed, .mwm-spkchip-play, .mwm-spk-yes, .mwm-spk-no, .mwm-edited-pop, .mwm-notice, #mwm-assign-banner, .mwm-assignee .mwm-linkbtn, #mwm-unmigrated { display: none !important; }
}
/* v0.3.2 B2-10: 加入术语库 result / errors stay visible */
.mwm-notice > .mwm-notice-sub { flex-basis: 100%; order: 1; font-size: 13px; }
.mwm-notice-sub.ok { color: #166534; }
.mwm-notice-sub.bad, .mwm-term-err { color: #991b1b; }
.mwm-term-err[hidden] { display: none; }
.mwm-termbox .mwm-term-sugg, .mwm-termbox .mwm-term-err { grid-column: 1 / -1; }
.mwm-term-sugg { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mwm-term-sugg:empty { display: none; }
/* v0.3.9 精简纪要 修改负责人: the owner line itself is the control (no extra button / icon) */
.mwm-owner { cursor: pointer; -webkit-user-select: none; user-select: none; border-radius: 6px; outline-offset: 2px; -webkit-tap-highlight-color: rgba(37,99,235,.12); }
.mwm-owner.unclear .mwm-owner-name, .mwm-owner.unclear .owner-unconfirmed { text-decoration: underline dashed; text-decoration-color: #b45309; text-underline-offset: 3px; }
.mwm-owner:focus-visible { outline: 2px solid var(--m-blue); }
.mwm-owner-st { margin-left: 8px; font-size: 12.5px; color: var(--m-muted); }
.mwm-owner-st.ok { color: #15803d; } .mwm-owner-st.error { color: #b91c1c; }
@media (max-width: 639px), (pointer: coarse) {
  .mwm-meta.has-owner { display: flex; flex-wrap: wrap; align-items: center; }
  .mwm-owner { display: inline-flex; align-items: center; min-height: 44px; padding-right: 6px; }
  /* 原文 chips keep their look but get a ≥ 44 px tall hit area (it never reaches the owner line above) */
  .mwm-todos-brief .mwm-cite { position: relative; }
  .mwm-todos-brief .mwm-cite::after { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 44px; }
}
.mwm-opick-ov.pop { background: transparent; align-items: flex-start; justify-content: flex-start; padding: 0; }
.mwm-opick.pop { position: fixed; border-radius: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.18), 0 0 0 1px var(--m-line); padding: 12px; gap: 8px; max-height: 70vh; }
.mwm-opick-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mwm-opick-g { display: grid; gap: 4px; }
.mwm-opick-opt, .mwm-opick-name, .mwm-opick-check { -webkit-user-select: none; user-select: none; }
.mwm-opick-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mwm-opick-opt { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 10px; padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.mwm-opick-opt:hover { border-color: #93c5fd; background: #eff6ff; }
.mwm-opick-opt.on { border-color: var(--m-blue); color: var(--m-blue); font-weight: 600; }
.mwm-opick-cur { font-weight: 400; color: var(--m-muted); }
.mwm-opick-name { border: 1px dashed #f59e0b; background: #fffbeb; color: #92400e; border-radius: 10px; padding: 8px 12px; text-align: left; min-height: 40px; }
.mwm-opick-check { display: flex; align-items: center; gap: 6px; color: var(--m-ink); min-height: 32px; }
.mwm-opick-free { display: flex; gap: 6px; align-items: center; }
.mwm-opick-free .mwm-in { flex: 1; min-width: 0; }
.mwm-opick .mwm-dlg-btns { margin-top: 0; }
@media (max-width: 639px) { .mwm-opick-opt, .mwm-opick-name, .mwm-opick-check { min-height: 44px; } }
@media print { .mwm-owner-st { display: none !important; } .mwm-owner.unclear .mwm-owner-name { text-decoration: none; } }
