/* MyWhisper member web app — M19 A style (design/m19/), light, iPhone first. Every value comes from tokens.css
   (a verbatim copy of design/m19/tokens.css, loaded first by index.html). The short names below are the app's own
   aliases; older rules keep using them. Colour only for state: rec red, wip amber, ok green, err red. */
:root {
  --bg: var(--mw-color-bg); --sidebar-bg: var(--mw-color-sidebar); --title-size: var(--mw-fs-title);
  --card: var(--mw-color-bg); --line: var(--mw-color-border); --divider: var(--mw-color-divider);
  --text: var(--mw-color-text); --text-2: var(--mw-color-text-2); --text-3: var(--mw-color-text-3); --muted: var(--mw-color-text-4);
  --fill: var(--mw-color-fill); --fill-2: var(--mw-color-fill-2); --fill-3: var(--mw-color-fill-3);
  --blue: var(--mw-color-text); --blue-50: var(--mw-color-fill-3);   /* M19: no accent colour — primary = ink */
  --red: var(--mw-color-err); --red-50: var(--mw-color-err-bg); --rec: var(--mw-color-rec);
  --amber: var(--mw-color-wip); --amber-50: var(--mw-color-wip-bg);
  --green: var(--mw-color-ok); --green-50: var(--mw-color-ok-bg);
  --radius: var(--mw-r-lg);
  --safe-top: var(--mw-safe-top); --safe-bottom: var(--mw-safe-bottom);
  --tabbar-h: calc(var(--mw-tabbar-h) + var(--safe-bottom));
  --pad-x: var(--mw-page-pad-x-phone);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: var(--mw-fs-body-phone)/1.5 var(--mw-font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body.dark { background: #000; }
a { color: var(--text); text-decoration: none; }
.hidden { display: none !important; }
[hidden] { display: none !important; }   /* B2-05: .btn { display: inline-flex } used to beat the hidden attribute */
.muted { color: var(--muted); } .small { font-size: var(--mw-fs-meta); } .center { text-align: center; }
.warn-t { color: var(--amber); }

#view { padding: calc(var(--safe-top) + 10px) var(--pad-x) calc(var(--tabbar-h) + 24px); max-width: var(--mw-content-max); margin: 0 auto; }
.page.center { min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-direction: column; }

/* ── page title (26px / 700, iPhone detail 22px) ── */
.page-title, header.top h1 { font-size: var(--mw-fs-title); font-weight: var(--mw-fw-bold); letter-spacing: var(--mw-ls-title); line-height: 1.25; margin: 6px 0 4px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; margin-bottom: 6px; }
header.top .hbtns { display: flex; gap: 8px; align-items: center; margin-left: auto; }
h1 { font-size: 22px; } h3 { font-size: var(--mw-fs-meta); margin: 18px 0 8px 2px; color: var(--muted); font-weight: var(--mw-fw-medium); } h3.sec { margin-top: 18px; }

/* ── line icons: <svg class="ico"><use href="./icons/m19.svg#name"></svg> (js/icons.js) ── */
.ico { width: var(--mw-icon-inline); height: var(--mw-icon-inline); flex-shrink: 0; display: inline-block; vertical-align: middle; color: currentColor; }
.ico[data-i] { stroke: currentColor; }
.ico.s14 { width: 14px; height: 14px; } .ico.s18 { width: 18px; height: 18px; } .ico.s20 { width: 20px; height: 20px; } .ico.s24 { width: 24px; height: 24px; }

/* ── cards / settings groups ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--mw-r-xl); padding: 14px 16px; margin: 0 0 14px; }
.card > h3:first-child { margin-top: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.between { justify-content: space-between; flex-wrap: nowrap; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 15px; padding: 0 16px; border-radius: var(--mw-r-md);
  border: 0; background: var(--fill); color: var(--text); cursor: pointer; min-height: var(--mw-control-h-phone); white-space: nowrap; text-decoration: none; }
.btn.primary { background: var(--text); color: var(--mw-color-on-primary); }
.btn.sm { min-height: var(--mw-control-h); padding: 0 12px; font-size: var(--mw-fs-control); }
.btn.block { width: 100%; }
.btn.out { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .rec-dot, .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mw-color-rec-dot); display: inline-block; flex-shrink: 0; }
button.link, .btn.link { background: none; border: none; color: var(--text); font: inherit; padding: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--mw-color-disabled); }
.hbtn { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--text); border: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; padding: 0; }
.hbtn.primary { background: var(--text); color: #fff; }
.hbtn .ico { width: 18px; height: 18px; }
.icon-btn { flex: 0 0 auto; border: none; background: none; min-width: 36px; min-height: 36px; border-radius: var(--mw-r-md); cursor: pointer; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 18px; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:active { background: var(--fill); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger-o { color: var(--red); background: var(--fill); }

/* ── inputs (16px on iPhone: smaller makes Safari zoom on focus) ── */
input[type=text], input[type=search], input[type=password], input[type=email], select { font: inherit; font-size: 16px; padding: 9px 12px; border: 0; box-shadow: 0 0 0 1px #dcdce0 inset; border-radius: var(--mw-r-md); background: #fff; width: 100%; color: var(--text); min-height: var(--mw-control-h-phone); }
input::placeholder, textarea::placeholder { color: var(--mw-color-placeholder); }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 1px var(--muted) inset, 0 0 0 3px rgba(0,0,0,.06); }
input[type=search] { background: var(--fill); box-shadow: none; -webkit-appearance: none; appearance: none; }
input[type=search]:focus { background: #fff; box-shadow: 0 0 0 1px var(--mw-color-disabled) inset, 0 0 0 3px rgba(0,0,0,.06); }
select { width: auto; flex: 1; min-width: 0; }
textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 0; box-shadow: 0 0 0 1px #dcdce0 inset; border-radius: var(--mw-r-md); background: #fff; width: 100%; resize: vertical; color: var(--text); }
input[type=date] { font: inherit; font-size: 16px; padding: 8px 10px; border: 0; box-shadow: 0 0 0 1px #dcdce0 inset; border-radius: var(--mw-r-md); background: #fff; width: 100%; min-height: var(--mw-control-h-phone); }
input[type=checkbox] { accent-color: var(--text); }
.field { display: block; margin: 10px 0; } .field > span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.err { color: var(--red); font-size: 14px; min-height: 1em; margin: 6px 0; }

/* toggle switch look for row checkboxes (.row-set input / role=switch) */
.row-set input[type=checkbox], .share-row input[type=checkbox], input.tgl {
  -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 16px; background: #e1e1e6; position: relative; flex: 0 0 auto; margin: 0; cursor: pointer; transition: background var(--mw-dur) var(--mw-ease); }
.row-set input[type=checkbox]::after, .share-row input[type=checkbox]::after, input.tgl::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: var(--mw-shadow-seg); transition: left var(--mw-dur) var(--mw-ease); }
.row-set input[type=checkbox]:checked, .share-row input[type=checkbox]:checked, input.tgl:checked { background: var(--text); }
.row-set input[type=checkbox]:checked::after, .share-row input[type=checkbox]:checked::after, input.tgl:checked::after { left: 22px; }
.row-set input[type=checkbox]:disabled, input.tgl:disabled { opacity: .5; }

/* ── capsule segmented control ── */
.seg { display: inline-flex; background: var(--fill-2); border-radius: var(--mw-r-pill); padding: 3px; gap: 0; font-size: var(--mw-fs-control); max-width: 100%; }
.seg > button, .seg > a { border: 0; background: none; font: inherit; font-size: var(--mw-fs-control); line-height: 1.4; padding: 5px 12px; border-radius: var(--mw-r-pill); color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; text-decoration: none; }
body.layout-tabs .seg > button, body.layout-tabs .seg > a { padding: 5px 10px; }
.seg > button.on, .seg > a.on { background: #fff; box-shadow: var(--mw-shadow-seg); color: var(--text); font-weight: var(--mw-fw-medium); }
.seg > button .n, .seg > a .n { font-size: 11px; color: var(--muted); }
.seg.sm > button, .seg.sm > a { font-size: 12.5px; padding: 4px 10px; min-height: 28px; }
.seg-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--pad-x)) 12px; padding: 0 var(--pad-x); scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll > .seg { display: flex; width: max-content; }

/* ── status labels ── */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--mw-fs-badge); line-height: 17px; padding: 2px 8px; border-radius: var(--mw-r-pill); background: var(--mw-color-idle-bg); color: var(--mw-color-idle); margin-left: 6px; vertical-align: middle; white-space: nowrap; font-weight: 400; }
.tag.pending { background: var(--mw-color-idle-bg); color: var(--mw-color-idle); }
.tag.ok { background: var(--green-50); color: var(--green); }
.tag.wip, .tag.warn { background: var(--amber-50); color: var(--amber); }
.tag.fail, .tag.bad { background: var(--red-50); color: var(--red); }
.tag.rec { background: var(--red-50); color: var(--rec); }
.tag.rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); display: block; }
.tag.line { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; color: var(--text-3); }
.tag.label { border-radius: 5px; padding: 1px 6px; font-size: 11px; background: var(--fill); color: var(--text-3); }

/* ── grouped list card: .list-card > .row (and the older .item rows inside .list) ── */
.list-card { border: 1px solid var(--line); border-radius: var(--mw-r-lg); overflow: hidden; background: #fff; margin: 0 0 14px; }
.list-card > .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--divider); font-size: var(--mw-fs-body-phone); min-height: 48px; flex-wrap: nowrap; color: var(--text); text-decoration: none; }
.list-card > .row:last-child { border-bottom: 0; }
.list-card > .row .bd { flex: 1; min-width: 0; }
.list-card > .row .hp { font-size: var(--mw-fs-meta); color: var(--muted); margin-top: 2px; line-height: 1.5; }
.list-card > .row .ch { margin-left: auto; color: var(--mw-color-disabled); display: flex; align-items: center; gap: 6px; font-size: 13.5px; flex-shrink: 0; }
.list-card > .row .ch .v { color: var(--muted); }
.list-card > .row > .ico { width: 20px; height: 20px; color: var(--text); }
.grp-h, .day { font-size: var(--mw-fs-meta); color: var(--muted); margin: 6px 2px 8px; font-weight: var(--mw-fw-medium); }

/* ── notices ── */
.banner, .notice { display: block; border-radius: var(--mw-r-lg); padding: 10px 14px; margin: 0 0 12px; font-size: 13px; background: var(--fill-3); color: var(--text-2); border: 0; line-height: 1.5; }
.banner.info { background: var(--fill-3); }
.banner.warn, .notice.warn { background: var(--amber-50); color: var(--amber); }
.banner.ok { background: var(--green-50); color: var(--green); }
.banner.bad, .notice.err { background: var(--red-50); color: var(--red); }
.banner.muted-b { background: var(--fill-3); color: var(--text-3); }
.banner .btn.sm { margin-top: 6px; }
.steps { margin: 6px 0; padding-left: 20px; }
mark { background: var(--mw-color-hl); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; } .empty .btn { margin-top: 14px; }

/* ── list (会议) ── */
.searchbar { padding: 0 0 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.chip { border: 0; background: var(--fill); border-radius: var(--mw-r-pill); padding: 6px 12px; font: inherit; font-size: 14px; white-space: nowrap; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--text); color: #fff; }
.list { margin-top: 0; }
.list-card > .item { display: block; background: #fff; border-bottom: 1px solid var(--divider); padding: 11px 14px; margin: 0; color: var(--text); }
.list-card > .item:last-child { border-bottom: 0; }
body.layout-sidebar .list-card > .item { padding: 12px 16px; min-height: 56px; }
body.layout-sidebar .item.mitem .side { flex-direction: row; align-items: center; gap: 10px; }
.item.mitem > .t { color: var(--muted); font-size: var(--mw-fs-meta); width: 52px; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.item.trashed .actions .btn .ico { width: 15px; height: 15px; }
.trash-note { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.trash-note p { flex: 1; margin: 0; line-height: 1.5; }
.trash-note .btn { flex-shrink: 0; }
.hsearch { display: flex; align-items: center; gap: 7px; width: var(--mw-search-w); height: var(--mw-control-h); border-radius: var(--mw-r-md); background: var(--fill); padding: 0 10px; color: var(--muted); }
.hsearch input[type=search] { background: none; box-shadow: none; padding: 0; min-height: 0; height: 100%; font-size: var(--mw-fs-control); }
.hsearch .ico { width: 15px; height: 15px; }
.page.list .seg-scroll { margin-bottom: 14px; }
body.layout-sidebar .page.list .seg-scroll { margin-left: 0; margin-right: 0; padding: 0; }
.day { margin: 4px 2px 8px; }
.item .title { font-weight: var(--mw-fw-medium); display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 15px; min-width: 0; }
.item .title > .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.item .title .tag { margin-left: 0; }
.item .src { margin-right: 6px; }
.item .meta { font-size: var(--mw-fs-meta); color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.item .meta .ico { width: 14px; height: 14px; }
.item .hit { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--divider); }
.item .hit .tag { margin: 0 6px 0 0; }
.item.mitem { display: flex; align-items: center; gap: 10px; }
.item.mitem .main { flex: 1; min-width: 0; color: var(--text); }
.item.mitem .side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.item.mitem .side .tag { margin: 0; }
.item.mitem .side .icon-btn { min-width: 28px; min-height: 28px; }
.pending .row { margin-bottom: 0; }
.card.pending { padding: 14px; }
.card.pending .row .btn { flex: 1; }
.card.pending .ptitle { display: flex; align-items: center; gap: 8px; font-weight: var(--mw-fw-semibold); }
.card.pending .ptitle .tag { margin-left: auto; }

/* ── detail ── */
.back { font-size: 15px; color: var(--text); display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.back .ico { width: 22px; height: 22px; margin-left: -6px; }
.dhead h1 { margin: 2px 0 2px; font-size: var(--mw-fs-title-detail-phone); font-weight: var(--mw-fw-bold); letter-spacing: var(--mw-ls-title); line-height: 1.3; }
.dhead .meta { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.dhead .meta .tag { margin-left: 0; }
.dhead .meta .ico { width: 15px; height: 15px; }
.player { margin: 0 0 12px; display: flex; gap: 10px; align-items: center; background: var(--fill-3); border-radius: 10px; padding: 7px 12px; font-size: 12px; color: var(--text-3); min-height: 40px; }
.player audio { display: none; }
.player .rate { flex: 0 0 auto; width: auto; min-height: 28px; padding: 2px 8px; font-size: 13px; border-radius: 7px; background: transparent; box-shadow: none; color: var(--text-3); }
.player .pl-btn { flex: 0 0 auto; width: 26px; height: 26px; min-height: 26px; min-width: 26px; border-radius: 50%; background: var(--text); color: #fff; padding: 0; font-size: 10px; }
.player .pl-btn .ico { width: 12px; height: 12px; fill: #fff; }
.player input[type=range] { flex: 1; min-width: 0; accent-color: var(--text); height: 4px; }
.player .pl-time { flex: 0 0 auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.player .pl-load { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--text-3); padding: 0; cursor: pointer; flex: 1; }
.player .pl-load .pb { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.player .pl-load .pb .ico { width: 12px; height: 12px; fill: #fff; }
.tabs { display: flex; gap: 4px; background: var(--fill-2); padding: 3px; border-radius: var(--mw-r-pill); margin: 10px 0; position: sticky; top: 0; z-index: 2; }
.tab { flex: 1; border: none; background: none; padding: 8px; border-radius: var(--mw-r-pill); font: inherit; font-size: 15px; color: var(--text-2); }
.tab.on { background: #fff; box-shadow: var(--mw-shadow-seg); font-weight: 600; }
.kind h3 { margin-top: 16px; }
.sitem { background: #fff; border: 1px solid var(--line); border-radius: var(--mw-r-lg); padding: 10px 12px; margin: 6px 0; }
.sitem.focus { border-color: var(--text); box-shadow: 0 0 0 2px var(--mw-color-hl); }
.cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cite { border: 0; background: var(--mw-color-cite-bg); color: var(--mw-color-cite); border-radius: var(--mw-r-xs); font: inherit; font-size: var(--mw-fs-cite); padding: 1px 5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.sess { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 4px; }

/* ── record ── */
.record header.top input { font-size: 18px; font-weight: 600; box-shadow: none; background: var(--fill); padding-left: 14px; }
.tips { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.tiplist { list-style: none; padding: 0; margin: 0 0 14px; }
.tiplist li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--divider); font-size: 14px; color: var(--text-2); line-height: 1.45; }
.tiplist li:last-child { border-bottom: 0; }
.tiplist .sic { width: 26px; height: 26px; border-radius: 7px; background: var(--fill); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.tiplist .sic .ico { width: 14px; height: 14px; }
.bigbtn { font: inherit; font-size: 16px; border-radius: 18px; border: 0; background: var(--fill); color: var(--text); min-height: 52px; padding: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: var(--mw-fw-semibold); }
.bigbtn .ico { width: 18px; height: 18px; }
.bigbtn.start { background: none; color: var(--text); width: 220px; height: auto; border-radius: 0; font-size: 16px; margin: 40px auto 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; box-shadow: none; }
.bigbtn.start .dot { width: 84px; height: 84px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--text); margin: 7px; }
.bigbtn.stop { background: var(--text); color: #fff; }
.bigbtn.stop::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--rec); display: block; }
.bigbtn.flash { background: var(--amber-50); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.card.live { padding: 16px 18px 14px; }
.live .timer { font-size: var(--mw-fs-timer); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.1; }
.lvl { height: 6px; background: #e8e8ec; border-radius: 3px; overflow: hidden; margin: 10px 0 8px; }
.lvlb { height: 100%; width: 0; background: var(--text); transition: width .15s; border-radius: 3px; }
.tag.st-recording { background: var(--red-50); color: var(--rec); } .tag.st-recording::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); display: block; }
.tag.st-paused { background: var(--amber-50); color: var(--amber); }
.tag.st-interrupted { background: var(--red); color: #fff; } .tag.st-ending { background: var(--fill); }
.record[data-state=paused] .live { background: var(--amber-50); border-color: transparent; }
.undo { position: fixed; left: 14px; right: 14px; bottom: calc(var(--tabbar-h) + 10px + var(--vv-gap, 0px)); background: var(--text); color: #fff; border-radius: var(--mw-r-lg); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; z-index: 40; }
.undo .link { color: #fff; font-weight: 600; }

/* black anti-mis-touch page (M6) */
#black { position: fixed; inset: 0; background: #000; color: #4b5563; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#black .t { font-size: 48px; font-variant-numeric: tabular-nums; color: #6b7280; }
#black .d { width: 14px; height: 14px; border-radius: 50%; background: #22c55e; opacity: .35; margin-top: 16px; transition: opacity .15s; }
#black .d.starred { background: #facc15; opacity: 1; transform: scale(1.6); }
#black .stars { color: #a16207; min-height: 22px; margin-top: 10px; }
#black .lps { display: flex; gap: 40px; margin-top: 50px; }
#black .lp { --p: 0; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #374151; background: conic-gradient(#9ca3af calc(var(--p) * 360deg), #111 0); color: #9ca3af; font-size: 26px; }
#black .hint { font-size: 13px; color: #4b5563; margin-top: 16px; text-align: center; padding: 0 20px; }
/* v0.3.6 captions on the black page: as inconspicuous as the page itself - dim grey on pure black, small, max 2 lines,
   no box / chip, slow fade only; never takes taps (pointer-events: none); drifts a few px per minute (burn-in) */
#black .bcap { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 36px); left: 22px; right: 22px; pointer-events: none; transition: transform 2s ease; }
#black .bcap-lines { font-size: 15px; line-height: 1.45; max-height: calc(2 * 1.45em); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; word-break: break-word; }
#black .bcap-line { color: #5a5a5a; animation: bcap-fade 1.2s ease; transition: color 1.2s ease; }
#black .bcap-line.partial { color: #3a3a3a; }
@keyframes bcap-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #black .bcap { transition: none; } #black .bcap-line { animation: none; transition: none; } }

/* overlays */
.ov { position: fixed; inset: 0; z-index: 60; }
.ov.resume { background: rgba(196, 41, 28, .97); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.resume-in .big { font-size: 28px; font-weight: 700; margin-bottom: 10px; } .resume-in .small { opacity: .9; margin-top: 8px; }
.resume-btn { margin-top: 28px; font: inherit; font-size: 22px; font-weight: 700; padding: 18px 36px; border-radius: 40px; border: none; background: #fff; color: var(--red); cursor: pointer; }
.link.light { color: #fde2df; display: block; margin: 18px auto 0; }
.ov.recovery { background: var(--mw-color-backdrop); display: flex; align-items: flex-end; }
.sheet { background: #fff; width: 100%; border-radius: 16px 16px 0 0; padding: 8px 18px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
.sheet::before { content: ""; width: 36px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 0 auto 6px; flex-shrink: 0; }
.sheet h2 { margin: 0; font-size: 18px; font-weight: var(--mw-fw-bold); }
.sheet .btn { min-height: 46px; }
.sheet .list-card { margin: 0 0 4px; }

/* todos / settings */
.kcol h3 { margin: 18px 0 8px; }
.kcol-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; color: var(--text); -webkit-tap-highlight-color: transparent; }
.kcol-toggle .n { color: var(--muted); font-weight: 400; }
.kcol-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px auto; transition: transform .15s; flex: 0 0 auto; }
.kcol-toggle[aria-expanded=false]::after { transform: rotate(-45deg); margin: 0 6px 0 auto; }
.kcol-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.kcol-list[hidden] { display: none; } .kcol-archived { margin: 8px 0 4px; } .todo .title { font-weight: 600; } .todo.overdue { border-color: var(--line); background: #fff; }
.row-set { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--divider); margin: 0 -16px; }
.row-set:first-of-type { border-top: none; }
.row-set > span:first-child { flex: 1; min-width: 0; font-size: 15px; }
.row-set .muted.small { font-size: var(--mw-fs-meta); margin-top: 2px; line-height: 1.5; }

/* chrome: iPhone bottom tab bar */
#tabbar { position: fixed; left: 0; right: 0; bottom: var(--vv-gap, 0px); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 6px var(--safe-bottom); height: var(--tabbar-h); z-index: 30; }
#tabbar a { flex: 1; max-width: 96px; text-align: center; padding: 0; color: var(--muted); font-size: var(--mw-fs-tab-label); display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
#tabbar a .ico { width: var(--mw-icon-tab); height: var(--mw-icon-tab); }
#tabbar a.on { color: var(--text); font-weight: 600; }
#tabbar a.on .ico { stroke-width: var(--mw-stroke-icon-active); }
#tabbar a .rd { position: absolute; top: 0; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--rec); border: 1.5px solid #fff; }
#tabbar a .bd { position: absolute; top: -2px; left: calc(50% + 6px); font-size: 10px; background: var(--rec); color: #fff; border-radius: 8px; padding: 0 5px; line-height: 15px; }
#rec-pill { position: fixed; top: calc(var(--safe-top) + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 5px 14px; border-radius: var(--mw-r-pill); font-size: 13px; z-index: 35; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#rec-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mw-color-rec-dot); }
#rec-pill.paused::before { background: var(--muted); }
#toast { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 14px + var(--vv-gap, 0px)); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 70; pointer-events: none; }
.toast-in { background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--mw-r-lg); font-size: 14px; display: flex; gap: 10px; align-items: center; pointer-events: auto; max-width: 90vw; box-shadow: var(--mw-shadow-pop); }
.toast-in .link { color: #fff; padding: 0; }
.row > input[type=text] { flex: 1; width: auto; min-width: 0; }
.cite.rt { border: 1px dashed var(--mw-color-disabled); background: #fff; }
.reclassified { margin-top: 4px; }

/* Brand mark on the login card */
.card.login { border: 0; padding: 0; }
.card.login h1::before { content: "W"; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 14px; background: var(--text); color: #fff; font-size: 30px; font-weight: 700; }
.card.login > h1 { text-align: center; } .card.login > h1 + p.muted { text-align: center; margin: 4px 0 26px; }
.card.login .btn.primary.block { min-height: 48px; font-size: 16px; margin-top: 8px; }
.card.login > p.muted.small, .card.login .center { text-align: center; }
.login { width: 100%; max-width: 380px; } .login h1 { margin: 0; font-size: var(--mw-fs-title); font-weight: var(--mw-fw-bold); letter-spacing: var(--mw-ls-title); }
/* v0.2.3 回收站 + confirm sheets + multi-object player */
.ov.confirm { background: var(--mw-color-backdrop); display: flex; align-items: flex-end; z-index: 70; }
.ov.confirm .sheet p { margin: 0; }
.chip.trash-chip { color: var(--muted); }
.trash .item .actions { display: flex; gap: 8px; margin-top: 8px; }
.trash .purge-in { color: var(--muted); }

/* v0.2.4: detail = host of the shared minutes renderer (css/minutes.css), viewer, versions, writable board */
.minutes-host { --mwm-sticky-top: var(--safe-top); --mwm-bar-bg: var(--bg); }
.tag.auto-title { border-radius: 5px; padding: 1px 6px; font-size: 11px; background: var(--fill); color: var(--text-3); font-weight: 400; cursor: pointer; font-family: inherit; border: 0; }
h1 .tag.auto-title { font-size: 12px; vertical-align: 4px; }
.tag.shared-tag { border-radius: 5px; padding: 1px 6px; font-size: 11px; background: var(--fill); color: var(--text-3); font-weight: 400; }   /* M21: same look as 自动标题 */
.vlist { display: flex; flex-direction: column; gap: 0; max-height: 55vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--mw-r-lg); }
.vrow { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--divider); padding: 12px 14px; }
.vrow:last-child { border-bottom: 0; }
.vrow.current { background: var(--fill-3); }
.vrow .vmain { flex: 1; min-width: 0; }
.ov.viewer { background: rgba(0, 0, 0, .94); color: #fff; z-index: 80; display: flex; flex-direction: column; }
.vw-top, .vw-bottom { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 8px) 12px 8px; }
.vw-bottom { padding: 8px 12px calc(var(--safe-bottom) + 12px); justify-content: space-between; }
.vw-top { justify-content: space-between; } .vw-acts { display: flex; gap: 8px; }
.vw-btn { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 14px; min-height: 36px; }
.vw-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; -webkit-overflow-scrolling: touch; }
.vw-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.ov.viewer.natural .vw-stage { display: block; } .ov.viewer.natural .vw-img { max-width: none; max-height: none; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; width: 44px; height: 64px; border-radius: 10px; }
.vw-nav.prev { left: 6px; } .vw-nav.next { right: 6px; }
.vw-cap { font-size: 14px; min-width: 0; } .vw-cap .vw-t { color: #cbd5e1; margin-right: 6px; font-variant-numeric: tabular-nums; }
.vw-count { font-size: 13px; color: #cbd5e1; }
/* board */
.card.todo { padding: 12px 14px; margin-bottom: 10px; border-radius: var(--mw-r-lg); }
.todo.done .title { color: var(--muted); text-decoration: line-through; }
.todo-main { cursor: pointer; } .todo-main .meta, .todo .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.todo-detail { color: var(--text-2); margin-top: 2px; white-space: pre-wrap; }
.todo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.todo-foot .btn.sm { min-height: 32px; }
.seg3 { display: inline-flex; background: var(--fill-2); border-radius: var(--mw-r-pill); padding: 3px; gap: 0; margin-left: auto; }
.seg3-b { border: none; background: none; font: inherit; font-size: 13px; padding: 4px 11px; border-radius: var(--mw-r-pill); color: var(--text-3); min-height: 28px; cursor: pointer; }
.seg3-b.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: var(--mw-shadow-seg); }
.seg3-b:disabled { opacity: .5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .row2 .field { margin: 0; }
.ov.confirm .sheet { max-height: 92vh; overflow-y: auto; }

/* 打印 / 存 PDF (detail): only the minutes, as on screen */
@media print {
  html, body { background: #fff !important; }
  #tabbar, #sidebar, #toast, #rec-pill, #overlay, .ov, .page.detail > header.top, .player, .dhead { display: none !important; }
  #view { padding: 0 !important; max-width: none !important; margin: 0 !important; }
}

/* v0.6: 我的 / 团队, share switch, team list filters, assigned cards (§7), settings link row */
.seg2 { display: flex; gap: 4px; background: var(--fill-2); padding: 3px; border-radius: var(--mw-r-pill); margin: 4px 0 10px; }
.seg2-b { flex: 1; text-align: center; padding: 6px 4px; border-radius: var(--mw-r-pill); color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.seg2-b.on { background: #fff; box-shadow: var(--mw-shadow-seg); font-weight: 500; color: var(--text); }
.share-row { border: 1px solid var(--line); background: #fff; border-radius: var(--mw-r-lg); padding: 12px 14px; margin: 0 0 12px; }
.team-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.team-filters select, .team-filters input { font: inherit; font-size: 14px; padding: 4px 10px; border: 0; box-shadow: 0 0 0 1px #dcdce0 inset; border-radius: 7px; background: #fff; min-height: 32px; }
.team-filters input[type=date] { width: auto; flex: 1; min-width: 0; }
.item.team .owner { color: var(--text-3); }
.todo-assigned { margin: 6px 0 2px; padding: 6px 8px; background: var(--fill-3); border-radius: 8px; }
.todo-assigned .tag-from { color: var(--text-3); }
.link-row { text-decoration: none; color: inherit; }
.page.detail.team .dhead h1 { padding-right: 0; }

/* v0.3.4: 共享给团队 button in the detail top actions */
.share-btn { white-space: nowrap; }
.share-btn.on { color: var(--green); }
.page.detail > header.top { min-height: 40px; margin-bottom: 0; }
.page.detail > header.top .row { flex-wrap: nowrap; gap: 4px; margin: 0; }
.page.detail > header.top .row .btn.sm { padding: 0 10px; white-space: nowrap; }
.page.detail > header.top .back { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 420px) { .page.detail > header.top .wide-only { display: none; } }

/* v0.3.5 live captions on the record page (ADR-51): last 3 lines, large text, partial lighter than final */
.card.cap { padding: 12px 14px 14px; background: var(--fill-3); border-color: transparent; }
.cap .cap-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cap .cap-head .btn.link { padding: 0; font-size: 13px; }
.cap-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--text-3); }
.cap-chip.live { background: #fff; color: var(--text-3); } .cap-chip.fb { background: var(--amber-50); color: var(--amber); }
.cap-chip.off { background: var(--fill); color: var(--muted); }
.cap-lines { font-size: 20px; line-height: 1.45; max-height: calc(3 * 1.45em + 6px); overflow-y: auto; margin-top: 8px; overscroll-behavior: contain; word-break: break-word; }
.cap-line { color: var(--text); margin: 1px 0; }
.cap-line.partial { color: var(--muted); }
.cap-line.refined { color: var(--text); }
.cap-empty { font-size: 15px; color: var(--muted); margin-top: 6px; }
.cap.hide .cap-lines, .cap.hide .cap-empty { display: none; }

/* ── M19 shell: wide screens (≥ 900px) = floating sidebar card like the Mac main window (design/m19 web-list) ── */
#sidebar { display: none; }
body.layout-sidebar #tabbar { display: none !important; }
body.layout-sidebar #sidebar:not(.hidden) { display: flex; position: fixed; top: var(--mw-sidebar-inset); bottom: var(--mw-sidebar-inset); left: var(--mw-sidebar-inset); z-index: 30; }
.sb { width: var(--mw-sidebar-w); background: var(--sidebar-bg); border-radius: var(--mw-r-lg); flex-direction: column; flex-shrink: 0; }
.sb .collapse { position: absolute; top: 13px; right: 12px; width: 26px; height: 22px; border-radius: var(--mw-r-sm); display: flex; align-items: center; justify-content: center; color: var(--text-3); border: 0; background: none; padding: 0; cursor: pointer; }
.sb .collapse:hover { background: var(--mw-color-hover); }
.sb .collapse .ico { width: 17px; height: 17px; }
.sb .brand { display: flex; align-items: center; gap: 8px; font-weight: var(--mw-fw-bold); font-size: var(--mw-fs-brand); margin: 30px 0 20px 18px; white-space: nowrap; }
.sb .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb .nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin: 2px 10px; border-radius: var(--mw-r-md); font-size: var(--mw-fs-nav); color: var(--text); white-space: nowrap; position: relative; }
.sb .nav a:hover { background: var(--mw-color-hover); }
.sb .nav a.on { background: var(--mw-color-sidebar-selected); font-weight: var(--mw-fw-medium); }
.sb .nav a .ico { width: var(--mw-icon-nav); height: var(--mw-icon-nav); }
.sb .badge { margin-left: auto; font-size: 11px; background: var(--mw-color-sidebar-selected, #e6e6ea); color: var(--mw-color-text-3, #6e6e73); border-radius: 9px; padding: 1px 7px; font-weight: 500; line-height: 16px; font-variant-numeric: tabular-nums; }
.sb .sb-bottom { margin: auto 12px 0; border-top: 1px solid var(--mw-color-divider-strong); padding: 10px 0 12px; display: flex; align-items: center; gap: 6px; }
.sb .sb-bottom .sp { flex: 1; }
.sb .sb-bottom .ver { font-size: var(--mw-fs-meta); color: var(--muted); padding-right: 4px; }
.sb .ibtn { width: 30px; height: 30px; border-radius: var(--mw-r-md); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); position: relative; }
.sb .ibtn:hover { background: var(--mw-color-hover); }
.sb .ibtn.on { background: var(--mw-color-sidebar-selected); color: var(--text); }
.sb .ibtn.on .ico { stroke-width: 1.9; }
.sb.c { width: var(--mw-sidebar-w-collapsed); }
.sb.c .lbl, .sb.c .brand span, .sb.c .nav .badge, .sb.c .sb-bottom .ver { display: none; }
.sb.c .brand { margin: 54px 0 18px 19px; }
.sb.c .collapse { right: auto; left: 17px; top: 20px; }
.sb.c .nav a { justify-content: center; padding: 8px 0; margin: 2px 9px; }
.sb.c .sb-bottom { flex-direction: column; margin: auto 8px 0; }
.sb.c .sb-bottom .sp { display: none; }
body.layout-sidebar { --pad-x: var(--mw-page-pad-x); --tabbar-h: 0px; }
body.layout-sidebar #view { margin: 0 0 0 calc(var(--mw-sidebar-w) + var(--mw-sidebar-inset)); max-width: calc(var(--mw-content-max) + 2 * var(--mw-page-pad-x)); padding-top: var(--mw-page-pad-top); padding-bottom: 40px; }
body.layout-sidebar.sb-collapsed #view { margin-left: calc(var(--mw-sidebar-w-collapsed) + var(--mw-sidebar-inset)); }
body.layout-sidebar.login-page #view { margin: 0 auto; }
body.layout-sidebar #toast { bottom: 24px; }
body.layout-sidebar .undo { left: auto; right: 24px; width: 380px; bottom: 24px; }
body.layout-sidebar .ov.confirm, body.layout-sidebar .ov.recovery { align-items: center; justify-content: center; }
body.layout-sidebar .ov.confirm .sheet, body.layout-sidebar .ov.recovery .sheet { width: 440px; border-radius: var(--mw-r-xl); box-shadow: var(--mw-shadow-pop); padding: 18px 20px 20px; }
body.layout-sidebar .ov.confirm .sheet::before, body.layout-sidebar .ov.recovery .sheet::before { content: none; }
body.layout-sidebar #rec-pill { left: calc(50% + (var(--mw-sidebar-w) + var(--mw-sidebar-inset)) / 2); }
/* header row with back: back on its own line above the title (design ip-settings / ip-terms) */
header.top.has-back { flex-wrap: wrap; row-gap: 2px; }
header.top.has-back > .back { flex-basis: 100%; height: 30px; }
header.top .page-title { flex: 1; min-width: 0; }
.list-card > .row .lb { font-size: 15px; }
.list-card > button.row { width: 100%; border: 0; border-bottom: 1px solid var(--divider); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.list-card > button.row:last-child { border-bottom: 0; }
.version-line { margin: 18px 0 6px; }
/* 更多 / 账号 */
.page.more .list-card > .row { min-height: 56px; }
.acct-row { gap: 14px !important; padding: 14px 16px !important; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mw-color-sidebar-selected); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.acct-name { font-size: 15.5px; font-weight: var(--mw-fw-medium); }
.cpw-toggle .ch .ico { transition: transform var(--mw-dur); }
.cpw-toggle[aria-expanded=true] .ch .ico { transform: rotate(180deg); }
.cpw-body { padding: 4px 16px 14px; }
.cpw-body .card { border: 0; padding: 0; margin: 0; }
.cpw-body .btn.primary { width: 100%; }
.logout-row { justify-content: center; color: var(--red) !important; gap: 8px !important; font-size: 15px !important; }
/* settings */
.set-card { padding: 0 16px; }
.set-card .row-set:first-child { border-top: 0; }
.dev-row input[type=text] { width: 46%; max-width: 220px; text-align: right; box-shadow: none; background: transparent; color: var(--muted); padding-right: 0; }
.dev-row input[type=text]:focus { box-shadow: none; color: var(--text); }
.storage-line { margin: 0 4px 6px; }

/* ── M19 board (design/m19 ip-board / mac-board) ── */
.hbtn.lg { width: 44px; height: 44px; } .hbtn.lg .ico { width: 22px; height: 22px; }
.card.todo .title { display: flex; gap: 8px; align-items: flex-start; font-size: 15.5px; }
.card.todo .title .tag { margin-left: 0; flex-shrink: 0; }
.card.todo .title .tag:first-of-type { margin-left: auto; }
.card.todo .muted.small { margin-top: 4px; }
.todo-foot > a.small { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: underline; text-decoration-color: var(--mw-color-disabled); text-underline-offset: 3px; min-width: 0; }
.todo-assigned { background: none; padding: 0; margin: 6px 0 0; }
.todo-assigned .tag-from { display: inline-flex; align-items: center; gap: 6px; }
.todo-assigned .row .btn.sm { background: var(--fill); }
.kcol h3 { margin: 14px 0 6px; color: var(--text); font-size: 15px; }
.page.todos .kcol-archived { text-align: left; margin-left: 2px; }
body.layout-sidebar .page.todos #todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
body.layout-sidebar .page.todos .kcol { background: var(--fill-3); border-radius: var(--mw-r-lg); padding: 4px 10px 10px; }
body.layout-sidebar .page.todos .kcol-archived { grid-column: 1 / -1; }

/* ── M20 board priority (design/m20-priority, style B: greyscale only) ── */
.card.todo .title .tx { flex: 1; min-width: 0; }   /* tags / label / ⋯ sit on the right */
.pri { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 11px; line-height: 16px; padding: 1px 7px; margin-top: 2px; border-radius: var(--mw-r-pill); white-space: nowrap; font-weight: var(--mw-fw-medium); }
.pri.high { background: var(--mw-color-text); color: var(--mw-color-on-primary); }
.pri.mid { background: var(--mw-color-sidebar-selected); color: var(--mw-color-text-2); }
.pri.low { background: none; color: var(--mw-color-text-4); box-shadow: 0 0 0 1px #e3e3e8 inset; }
.card.todo { -webkit-touch-callout: none; }
.card.todo .todo-main { -webkit-user-select: none; user-select: none; }
.todo-more { display: none; flex-shrink: 0; width: 22px; height: 20px; margin-top: 0; border: 0; border-radius: var(--mw-r-sm); background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.todo-more:hover { background: var(--mw-color-hover); color: var(--text); }
body.layout-sidebar .todo-more { display: inline-flex; align-items: center; justify-content: center; }
.seg-level { display: flex; margin: 0; }
.seg-level .seg3-b { flex: 1; }
.td-level-note { margin-top: 4px; }
.ov.todo-menu { background: var(--mw-color-backdrop); display: flex; align-items: flex-end; justify-content: center; padding: 0 16px calc(90px + var(--safe-bottom)); z-index: 70; }
.tmenu { background: var(--mw-color-bg); width: 100%; max-width: 300px; border-radius: var(--mw-r-xl); box-shadow: var(--mw-shadow-pop); overflow: hidden; display: flex; flex-direction: column; }
.tm-h { padding: 9px 14px 7px; font-size: var(--mw-fs-meta); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); }
.tm-sec { padding: 8px 14px 4px; font-size: var(--mw-fs-meta); color: var(--muted); background: var(--fill-3); border-top: 1px solid var(--line); }
.tm-sep { height: 6px; background: var(--fill-3); border-top: 1px solid var(--line); }
.tm-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-top: 1px solid var(--divider); background: none; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
.tm-item:first-of-type, .tm-sec + .tm-item, .tm-sep + .tm-item { border-top: 0; }
.tm-item .tm-l { flex: 1; } .tm-item .tm-chk { color: var(--text-3); }
.tm-item[aria-checked=true] { font-weight: var(--mw-fw-semibold); }
.tm-item.danger { color: var(--red); }
.tm-item:hover, .tm-item:focus-visible { background: var(--mw-color-hover); outline: none; }
.ov.todo-menu.at { background: transparent; display: block; padding: 0; }
.ov.todo-menu.at .tmenu { width: 220px; border-radius: var(--mw-r-md); }
.ov.todo-menu.at .tm-item { min-height: 32px; font-size: var(--mw-fs-control); }

/* ── M19 record (design/m19 ip-rec-*) ── */
.record header.top input#rec-title-live { font-size: 17px; font-weight: 600; background: var(--fill); box-shadow: none; border-radius: var(--mw-r-md); min-height: 44px; }
.record .field > input#rec-title { min-height: 46px; }
.card.live .row.between { margin: 0; align-items: center; }
.card.live .live-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.rec-wake { display: inline-flex; align-items: center; gap: 4px; }
.record .grid3 .bigbtn { min-height: 52px; font-size: 15px; }
.record #rec-extra { justify-content: flex-start; gap: 8px; }
.record #rec-extra .btn { min-height: 32px; font-size: 14px; padding: 0 12px; }
.record #rec-extra #rec-extra-count { margin-left: auto; }
.record #btn-note { min-height: var(--mw-control-h-phone); }
#mic-card { padding: 12px 14px; }
#mic-card #mic-label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); }
#mic-pref { display: flex; gap: 8px; margin: 10px 0 8px; overflow-x: auto; scrollbar-width: none; }
#mic-pref .chip { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; font-size: 13.5px; flex-shrink: 0; }
#mic-pref .chip.on { background: var(--text); color: #fff; box-shadow: none; }
#mic-pref .chip .sub { opacity: .9; }
#mic-card .mic-row { justify-content: space-between; margin: 4px 0 0; flex-wrap: nowrap; }
#mic-card .mic-dev select { min-height: 32px; padding: 2px 10px; font-size: 14px; max-width: 46vw; }
#mic-card #btn-black .ico { width: 15px; height: 15px; }
.record .center .bigbtn.start { color: var(--text); }
.page.record > div > p.muted.small.center, .page.record p.muted.small.center { line-height: 1.6; padding: 0 12px; }

/* ── M19 detail (design/m19 ip-detail / ip-detail-more / web-detail) ── */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page.detail > header.top .hdr-acts { gap: 2px; }
.hdr-btn { color: var(--text); min-width: 40px; min-height: 40px; }
.hdr-btn .ico { width: 22px; height: 22px; }
.hdr-btn.share-btn.on { color: var(--green); }
.player .pl-load .track, .player .track { flex: 1; height: 4px; border-radius: 2px; background: #e3e3e8; display: block; }
.player .pl-load .pl-time { color: var(--text-3); }
.player .pl-load .rate-l { color: var(--text-3); font-size: 13px; }
.player .pl-btn .ico, .player .pl-load .pb .ico { stroke: #fff; fill: #fff; }
/* actions: iPhone = bottom sheet behind ⋯ */
.dacts { display: none; }
.dacts.open { display: block; position: fixed; inset: 0; z-index: 65; }
.dacts .dacts-bg { position: absolute; inset: 0; background: var(--mw-color-backdrop); }
.dacts .dsheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.12); padding: 8px 18px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; max-height: 85vh; overflow-y: auto; }
.dacts .dsheet::before { content: ""; width: 36px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 0 auto; flex-shrink: 0; }
.dacts .list-card { margin: 0; }
.dacts .list-card:not(:has(> :not([hidden]))) { display: none; }
.dacts .share-slot:empty { display: none; }
.dacts .share-row { border: 0; border-radius: 0; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--divider); gap: 12px; }
.dacts .share-row > .ico { width: 20px; height: 20px; }
.dacts .act { gap: 12px; }
.dacts .act > .ico { width: 20px; height: 20px; color: var(--text); }
.dacts .act.danger, .dacts .act.danger > .ico { color: var(--red); }
.dacts .act.danger .ch { display: none; }
.dacts #d-more-cancel { min-height: 48px; font-size: 16px; }
/* wide: the same controls inline in the title row (web-detail: 共享给团队 ● · 版本 · 🗑) */
body.layout-sidebar .page.detail { position: relative; }
body.layout-sidebar .page.detail > header.top .hdr-acts { display: none; }
body.layout-sidebar .page.detail > header.top { min-height: 24px; }
body.layout-sidebar .dacts { display: block; position: absolute; top: 26px; right: 0; z-index: 3; }
body.layout-sidebar .dacts .share-row > span { flex: 0 0 auto; white-space: nowrap; }
body.layout-sidebar .dacts .act .bd { flex: 0 0 auto; }
body.layout-sidebar .dacts .dacts-bg, body.layout-sidebar .dacts .dsheet::before, body.layout-sidebar #d-more-cancel, body.layout-sidebar #d-rename { display: none !important; }
body.layout-sidebar .dacts .dsheet { position: static; background: none; box-shadow: none; padding: 0; flex-direction: row; align-items: center; gap: 8px; overflow: visible; border-radius: 0; }
body.layout-sidebar .dacts .list-card { border: 0; background: none; display: flex; gap: 8px; align-items: center; overflow: visible; }
body.layout-sidebar .dacts .share-row { padding: 0 4px; border: 0; background: none; gap: 8px; font-size: 13.5px; }
body.layout-sidebar .dacts .share-row .muted.small { display: none; }
body.layout-sidebar .dacts .share-row > .ico { width: 16px; height: 16px; }
body.layout-sidebar .dacts .share-row input[type=checkbox] { width: 44px; height: 26px; }
body.layout-sidebar .dacts .share-row input[type=checkbox]::after { width: 22px; height: 22px; }
body.layout-sidebar .dacts .share-row input[type=checkbox]:checked::after { left: 20px; }
body.layout-sidebar .dacts .act { min-height: var(--mw-control-h); padding: 0 12px; border: 0; border-radius: var(--mw-r-md); background: var(--fill); font-size: var(--mw-fs-control); gap: 6px; }
body.layout-sidebar .dacts .act > .ico { width: 16px; height: 16px; }
body.layout-sidebar .dacts .act .ch, body.layout-sidebar .dacts .act .bd .lb { font-size: var(--mw-fs-control); }
body.layout-sidebar .dacts .act .ch { display: none; }
body.layout-sidebar #d-versions .lb { font-size: 0; } body.layout-sidebar #d-versions .lb::after { content: "版本"; font-size: var(--mw-fs-control); }
body.layout-sidebar #d-trash { width: var(--mw-control-h); padding: 0; justify-content: center; }
body.layout-sidebar #d-trash .bd { display: none; }
body.layout-sidebar #d-trash > .ico { color: var(--text); }
body.layout-sidebar .dhead h1 { font-size: var(--mw-fs-title); padding-right: 380px; min-height: 40px; }
body.layout-sidebar .dhead .meta { margin-top: 4px; }
body.layout-sidebar .page.detail .back { font-size: 13px; color: var(--text-3); }
body.layout-sidebar .page.detail .back .ico { width: 15px; height: 15px; margin-left: -4px; }
