/* v4 refresh — MEETING MODE (design 23/10/2026, Track-meeting-mode.pdf p3–p8;
 * docs/meeting-mode/SPEC.md). Tokens only (tokens/*.css): no bare hex, weights
 * 400/500. Meeting mode is navy in every theme, like the room it is shown in —
 * so its greys are white at an opacity over --brand-navy, set once here. */

.mm {
  --mm-ink: var(--brand-white);
  --mm-2: rgba(255, 255, 255, 0.78);
  --mm-muted: rgba(255, 255, 255, 0.58);
  --mm-faint: rgba(255, 255, 255, 0.38);
  --mm-line: rgba(255, 255, 255, 0.12);
  --mm-line-2: rgba(255, 255, 255, 0.22);
  --mm-fill: rgba(255, 255, 255, 0.05);
  --mm-fill-2: rgba(255, 255, 255, 0.09);
  --mm-blue: rgba(160, 182, 255, 0.95);
  --mm-blue-fill: rgba(117, 152, 255, 0.2);
  --mm-late: var(--brand-orange);
  position: fixed; inset: 0; z-index: 70;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--brand-navy); color: var(--mm-ink);
  display: flex; flex-direction: column; min-height: 0;
  font-family: var(--font-sans); font-size: var(--text-body);
  animation: v4-fade var(--dur-base) var(--ease-out) both;
}
.mm.mm-leaving { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
body.mm-open { overflow: hidden; }
.mm button { font-family: inherit; color: inherit; }
.mm .late { color: var(--mm-late); }
.mm-grow { flex: 1 1 auto; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.mm-top { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 0 36px; border-bottom: 1px solid var(--mm-line); flex: none; }
.mm-word { font-size: 19px; font-weight: var(--weight-wordmark); letter-spacing: -0.04em; }
.mm-dot { color: var(--track-rose); }
.mm-title { font-size: var(--text-meta-r); color: var(--mm-muted); white-space: nowrap; }
.mm-title b { font-weight: var(--weight-medium); color: var(--mm-ink); }
.mm-load { padding: 48px 36px; color: var(--mm-muted); }
.mm-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 6px;
  border: 1px solid var(--mm-line-2); border-radius: 4px; font-size: 11px; color: var(--mm-muted); font-family: var(--font-sans); line-height: 1; }
.mm-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-6);
  border: 1px solid var(--mm-line-2); background: transparent; font-size: var(--text-meta-r); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.mm-btn:hover { background: var(--mm-fill-2); }
.mm-btn:focus-visible, .mm-chip:focus-visible, .mm-pill:focus-visible, .mm-face:focus-visible, .mm-srow:focus-visible,
.mm-link:focus-visible, .mm-go:focus-visible, .mm-seg button:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.mm-btn.sm { min-height: 30px; padding: 0 10px; }
.mm-btn.sm .mm-kbd { height: 16px; min-width: 16px; font-size: 10px; margin-left: 2px; }
.mm-btn.primary { background: var(--brand-white); color: var(--brand-navy); border-color: var(--brand-white); font-weight: var(--weight-medium); }
.mm-btn.primary .mm-kbd { color: var(--ink-3); border-color: var(--hair); }
.mm-btn.primary:hover { background: var(--mm-2); }
.mm-btn.primary.armed { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-white); }
.mm-btn.primary.armed .mm-kbd { color: var(--brand-white); border-color: rgba(255, 255, 255, 0.5); }
.mm-btn[disabled], .mm-btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.mm-btn svg { flex: none; }
.mm-close { font-size: var(--text-meta-r); }
.mm-link { background: none; border: 0; padding: 0; color: var(--mm-blue); cursor: pointer; font-size: inherit; display: inline-flex; align-items: center; gap: 2px; }

.mm-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--mm-line-2); font-size: 10px; font-weight: var(--weight-medium); letter-spacing: 0.02em; color: var(--mm-ink); }
.mm-av.xs { width: 22px; height: 22px; font-size: 8.5px; }
.mm-av.lg { width: 58px; height: 58px; font-size: 17px; border-color: var(--mm-line-2); }
.mm-av.off { color: var(--mm-faint); border-color: var(--mm-line); }
.mm-av.none { border-style: dashed; color: var(--mm-muted); }

/* The people strip: done people dim, the current one a white pill. */
.mm-strip { display: flex; align-items: center; gap: 6px; margin-left: 24px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mm-strip::-webkit-scrollbar { display: none; }
.mm-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 30px; min-width: 30px; padding: 0;
  border-radius: 999px; border: 1px solid var(--mm-line-2); background: transparent; font-size: 9.5px; font-weight: var(--weight-medium); cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.mm-chip.done { color: var(--mm-faint); border-color: var(--mm-line); }
.mm-chip.next { color: var(--mm-ink); }
.mm-chip.now { background: var(--brand-white); color: var(--brand-navy); border-color: var(--brand-white); padding: 0 14px 0 3px; font-size: var(--text-meta-r);
  animation: mm-pill var(--dur-base) var(--ease-out) both; }
.mm-chip.now .mm-av { width: 24px; height: 24px; font-size: 9px; background: var(--brand-navy); color: var(--brand-white); border-color: var(--brand-navy); }
.mm-chip.now b { font-weight: var(--weight-medium); }
.mm-chip.now span:last-child { color: var(--ink-3); font-size: 11px; }
@keyframes mm-pill { from { opacity: 0.4; transform: scaleX(0.6); } to { opacity: 1; transform: none; } }
.mm-rule { flex: none; width: 1px; height: 20px; background: var(--mm-line-2); margin: 0 6px; }
.mm-pill { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mm-line-2); background: transparent;
  font-size: var(--text-meta-r); cursor: pointer; white-space: nowrap; }
.mm-pill span { color: var(--mm-muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.mm-pill.on { background: var(--brand-white); color: var(--brand-navy); border-color: var(--brand-white); font-weight: var(--weight-medium); }
.mm-pill.on span { color: var(--ink-3); }
.mm-pill.past { color: var(--mm-faint); border-color: var(--mm-line); }
.mm-follow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-meta-r); color: var(--mm-muted); white-space: nowrap; }
.mm-stack { display: inline-flex; }
.mm-stack .mm-av { background: var(--brand-navy); }
.mm-stack .mm-av + .mm-av { margin-left: -6px; }
.mm-roomon { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-meta-r); color: var(--mm-2); white-space: nowrap; }
.mm-roomon i { width: 9px; height: 9px; border-radius: 50%; background: var(--mm-blue); box-shadow: 0 0 0 3px var(--mm-blue-fill); }

/* ── Shared type ─────────────────────────────────────────────────────────── */
.mm-h1 { margin: 0; font-size: 40px; font-weight: var(--weight-medium); letter-spacing: -0.035em; line-height: 1.05; }
.mm-sub { margin-top: 8px; color: var(--mm-muted); font-size: var(--text-meta-r); }
.mm-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mm-sec-h h2 { margin: 0; font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.mm-sec-h h2 span { color: var(--mm-muted); font-weight: var(--weight-regular); font-size: var(--text-body); margin-left: 4px; }
.mm-sec-h.ruled { padding-bottom: 10px; border-bottom: 1px solid var(--mm-line-2); margin-bottom: 0; }
.mm-help { color: var(--mm-muted); font-size: var(--text-label); line-height: 1.4; }
.mm-meta { display: block; color: var(--mm-muted); font-size: var(--text-label); margin-top: 2px; }
.mm-lab { display: block; font-size: var(--text-label); color: var(--mm-2); margin: 18px 0 8px; }
.mm-empty { color: var(--mm-muted); font-size: var(--text-meta-r); padding: 14px 0; }
.mm-quiet { color: var(--mm-muted); }

/* ══ 1. START ════════════════════════════════════════════════════════════ */
.mm-start { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 30px 36px 32px; }
.mm-start-main { min-width: 0; }
.mm-stable { margin-top: 26px; }
.mm-shead, .mm-srow { display: grid; grid-template-columns: 18px minmax(210px, 1.2fr) minmax(0, 2fr) 44px 44px 44px 56px; gap: 10px; align-items: center; }
.mm-shead { padding-bottom: 10px; border-bottom: 1px solid var(--mm-line-2); font-size: 10px; letter-spacing: var(--tracking-table); text-transform: uppercase; color: var(--mm-muted); }
.mm-shead > span:nth-child(n+4) { text-align: right; }
.mm-shead .mm-sdays span.is-today { color: var(--mm-ink); }
.mm-srow { min-height: 43px; border-bottom: 1px solid var(--mm-line); font-size: var(--text-meta-r); }
.mm-srow[draggable="true"] { cursor: grab; }
.mm-srow.is-drag { opacity: 0.4; }
.mm-srow.is-over { box-shadow: inset 0 2px 0 var(--mm-blue); }
.mm-srow.is-off { color: var(--mm-faint); }
.mm-srow.is-off b { color: var(--mm-faint); }
.mm-grip { color: var(--mm-faint); font-size: 10px; letter-spacing: -2px; }
.mm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mm-who b { font-weight: var(--weight-medium); white-space: nowrap; font-size: var(--text-body); }
.mm-role { color: var(--mm-muted); font-size: var(--text-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mm-sdays { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: center; }
.mm-sday { display: flex; align-items: center; min-width: 0; }
.mm-sday i { display: block; width: 100%; height: 1px; background: var(--mm-line-2); }
.mm-sday em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--mm-blue-fill); color: var(--mm-2); }
.mm-sday.leave em { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 6px); color: var(--mm-faint); }
.mm-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--mm-ink); }
.mm-n.late { color: var(--mm-late); }
.mm-n.mv { color: var(--mm-blue); }
.mm-srow.is-off .mm-n { color: var(--mm-faint); }
.mm-foot-note { margin: 14px 0 0; color: var(--mm-muted); font-size: var(--text-label); }

.mm-panel { align-self: start; border: 1px solid var(--mm-line); border-radius: 14px; background: var(--mm-fill); padding: 6px 20px 20px; }
.mm-panel > .mm-lab:first-child, .mm-other + .mm-lab { margin-top: 16px; }
.mm-other { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-10); background: var(--mm-blue-fill); font-size: var(--text-meta-r); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-10); background: var(--mm-fill-2); }
.mm-seg button { min-height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: var(--text-meta-r); cursor: pointer; color: var(--mm-2); }
.mm-seg button.on { background: var(--brand-white); color: var(--brand-navy); font-weight: var(--weight-medium); }
.mm-seg + .mm-help { margin-top: 8px; }
.mm-select { position: relative; }
.mm-select select { width: 100%; min-height: 42px; padding: 0 34px 0 12px; border-radius: var(--radius-10); border: 1px solid var(--mm-line-2);
  background: transparent; color: var(--mm-ink); font-family: inherit; font-size: var(--text-meta-r); appearance: none; cursor: pointer; }
.mm-select select option { color: var(--ink); background: var(--surface); }
.mm-select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--mm-muted); }
.mm-time { display: flex; align-items: center; gap: 14px; }
.mm-step { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--mm-line-2); border-radius: var(--radius-10); min-height: 36px; }
.mm-step button { width: 36px; min-height: 34px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--mm-2); }
.mm-step span { min-width: 54px; text-align: center; font-size: var(--text-meta-r); font-weight: var(--weight-medium); }
.mm-toggle { display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin-top: 16px; cursor: pointer; font-size: var(--text-meta-r); }
.mm-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mm-toggle b { display: block; font-weight: var(--weight-regular); margin-bottom: 3px; }
.mm-sw { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--mm-line-2); margin-top: 1px; transition: background var(--dur-fast) var(--ease-out); }
.mm-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-white); transition: transform var(--dur-fast) var(--ease-out); }
.mm-toggle input:checked + .mm-sw { background: var(--mm-blue); }
.mm-toggle input:checked + .mm-sw::after { transform: translateX(14px); background: var(--brand-navy); box-shadow: 0 0 0 3px var(--brand-white) inset; }
.mm-toggle input:focus-visible + .mm-sw { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.mm-last { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--mm-line); }
.mm-last-h { display: flex; justify-content: space-between; font-size: var(--text-label); color: var(--mm-muted); margin-bottom: 4px; }
.mm-last-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mm-line); font-size: var(--text-meta-r); }
.mm-last-row .late { font-size: var(--text-label); white-space: nowrap; }
.mm-go { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; margin-top: 20px; border: 0; border-radius: var(--radius-10);
  background: var(--brand-white); color: var(--brand-navy) !important; font-size: var(--text-body); font-weight: var(--weight-medium); cursor: pointer; }
.mm-go .mm-kbd { color: var(--ink-3); border-color: var(--hair); }
.mm-go[disabled] { opacity: 0.45; cursor: default; }

/* ══ RUN — the body ══════════════════════════════════════════════════════ */
.mm-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 26px 36px 20px; overflow-y: auto; }
.mm-body.is-leaving { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.mm-body.mm-in > header, .mm-body.mm-in > .mm-h1 { animation: v4-fade var(--dur-base) var(--ease-out) both; }

/* ══ 2. A PERSON ═════════════════════════════════════════════════════════ */
.mm-phead { display: flex; align-items: center; gap: 20px; flex: none; }
.mm-pname { min-width: 0; }
.mm-pname .mm-h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-week { display: grid; grid-template-columns: repeat(5, 88px); gap: 6px; }
.mm-day { display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--mm-line); min-width: 0; }
.mm-day span { font-size: 10.5px; color: var(--mm-muted); white-space: nowrap; }
.mm-day b { font-weight: var(--weight-regular); font-size: var(--text-label); color: var(--mm-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-day.today { border-color: var(--mm-ink); }
.mm-day.today span { color: var(--mm-ink); }
.mm-day.site b { color: var(--mm-blue); font-variant-numeric: tabular-nums; }
.mm-day.leave { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 7px); }
.mm-day.leave b { color: var(--mm-faint); }
.mm-ring { display: flex; align-items: center; gap: 10px; padding-left: 22px; margin-left: 4px; border-left: 1px solid var(--mm-line); min-width: 150px; }
.mm-ring-svg { width: 48px; height: 48px; flex: none; }
.mm-ring-bg { fill: none; stroke: var(--mm-line); stroke-width: 2.5; }
.mm-ring-fg { fill: none; stroke: var(--brand-white); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.mm-ring-svg.over .mm-ring-fg { stroke: var(--mm-late); }
.mm-ring-t { display: flex; flex-direction: column; line-height: 1.1; }
.mm-ring-t b { font-size: 20px; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mm-ring-t b.over { color: var(--mm-late); }
.mm-ring-t span { font-size: 11px; color: var(--mm-muted); }

.mm-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 48px; margin-top: 26px; }
.mm-cols.standup { grid-template-columns: minmax(0, 1fr); }
.mm-projects, .mm-tasks { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.mm-since { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-label); color: var(--mm-muted); white-space: nowrap; }
.mm-since i { width: 5px; height: 5px; border-radius: 50%; background: var(--mm-blue); }
.mm-thead, .mm-prow-main { display: grid; grid-template-columns: 70px minmax(0, 1.5fr) minmax(130px, 1fr) minmax(0, 1.2fr) 56px; gap: 14px; align-items: center; }
.mm-thead { padding: 0 12px 10px; border-bottom: 1px solid var(--mm-line-2); font-size: 10px; letter-spacing: var(--tracking-table); text-transform: uppercase; color: var(--mm-muted); }
.mm-thead span:last-child, .mm-due { text-align: right; }
.mm-plist { overflow-y: auto; min-height: 0; }
.mm-prow { border-bottom: 1px solid var(--mm-line); border-radius: 0; }
.mm-prow.sel { background: var(--mm-fill-2); border-radius: var(--radius-10); border-bottom-color: transparent; margin-top: 4px; }
.mm-prow-main { padding: 16px 12px; cursor: pointer; }
.mm-no { font-family: var(--font-technical); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.mm-no.sm { font-size: var(--text-body); font-weight: var(--weight-medium); }
.mm-pj { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-pj b { font-weight: var(--weight-medium); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-pj span { color: var(--mm-muted); font-size: var(--text-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-st { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.mm-stage { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--mm-blue-fill);
  font-size: var(--text-label); color: var(--mm-ink); white-space: nowrap; }
.mm-stage svg { color: var(--mm-muted); }
.mm-stage.lo { background: var(--mm-fill-2); color: var(--mm-2); }
.mm-stage.hi { background: var(--brand-white); color: var(--brand-navy); font-weight: var(--weight-medium); }
.mm-stage.hi svg { color: var(--ink-3); }
.mm-moved { font-size: 11px; color: var(--mm-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mm-moved.quiet { color: var(--mm-muted); }
.mm-next { font-size: var(--text-meta-r); color: var(--mm-2); }
.mm-next.late { color: var(--mm-late); }
.mm-due { font-family: var(--font-technical); font-size: 15px; font-variant-numeric: tabular-nums; }
.mm-due.late { color: var(--mm-late); }
.mm-prow-more { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; padding: 0 12px 14px 96px; animation: v4-fade var(--dur-base) var(--ease-out) both; }
.mm-hist { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-label); min-width: 0; }
.mm-hist > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.mm-hist > div span:first-child { color: var(--mm-muted); }
.mm-hist > div span:last-child { color: var(--mm-2); }
.mm-row-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mm-confirm, .mm-editor { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-10);
  background: var(--mm-fill-2); font-size: var(--text-meta-r); animation: v4-rise var(--dur-row) var(--ease-out) both; }
.mm-confirm b { font-weight: var(--weight-medium); }
.mm-editor .mm-lab { margin: 0; flex-basis: 100%; }
.mm-input { min-height: 34px; padding: 0 10px; border-radius: var(--radius-6); border: 1px solid var(--mm-line-2); background: var(--mm-fill); color: var(--mm-ink);
  font-family: inherit; font-size: var(--text-meta-r); color-scheme: dark; }
.mm-input.wide { flex: 1 1 320px; min-width: 0; }
.mm-input:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 1px; }

/* Tasks */
.mm-checks { font-size: var(--text-label); color: var(--mm-muted); }
.mm-tlist { overflow-y: auto; min-height: 0; border-top: 1px solid var(--mm-line-2); }
.mm-tg-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 4px; font-size: var(--text-label); color: var(--mm-2); }
.mm-tg-h > span:last-child, .mm-tg-h .mm-link { color: var(--mm-muted); font-variant-numeric: tabular-nums; }
.mm-tg.overdue .mm-tg-h > span:first-child { color: var(--mm-late); }
.mm-tg.nodate .mm-tg-h { border-top: 1px solid var(--mm-line); }
.mm-task { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--mm-line); }
.mm-tg-list > .mm-task:last-child { border-bottom: 0; }
.mm-tick { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mm-faint); margin-top: 3px; }
.mm-tt { min-width: 0; font-size: var(--text-meta-r); }
.mm-tt > span:first-child { display: inline; }
.mm-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid var(--mm-blue-fill); border-radius: 999px; font-size: 10.5px; color: var(--mm-blue); vertical-align: 1px; }
.mm-tw { font-size: var(--text-label); color: var(--mm-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.mm-tg.overdue .mm-tw { color: var(--mm-2); }
.mm-task.just { background: var(--mm-blue-fill); margin: 0 -10px; padding: 9px 10px; border-radius: 6px; animation: mm-just 2.4s var(--ease-out) both; }
@keyframes mm-just { 0% { opacity: 0; transform: translateY(var(--rise)); } 12% { opacity: 1; transform: none; } 70% { background: var(--mm-blue-fill); } 100% { background: transparent; } }

/* ── 3. The action bar ───────────────────────────────────────────────────── */
.mm-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 18px; padding: 0 12px 0 18px;
  border: 1px solid var(--mm-line-2); border-radius: var(--radius-10); background: var(--mm-fill);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.mm-bar.is-focus { border-color: var(--mm-blue); box-shadow: 0 0 0 3px var(--mm-blue-fill); }
.mm-plus { color: var(--mm-muted); font-size: 18px; }
.mm-bar-field { position: relative; flex: 1 1 auto; min-width: 0; height: 50px; }
.mm-bar-in, .mm-mirror { position: absolute; inset: 0; width: 100%; padding: 0; margin: 0; border: 0; font-family: var(--font-sans); font-size: var(--text-body);
  line-height: 50px; letter-spacing: normal; white-space: pre; overflow: hidden; }
.mm-mirror { color: var(--mm-ink); pointer-events: none; }
.mm-mirror u { text-decoration: underline; text-decoration-color: var(--mm-blue); text-underline-offset: 4px; color: var(--mm-blue); }
.mm-bar-in { background: transparent; color: transparent; caret-color: var(--brand-white); }
.mm-bar-in::placeholder { color: var(--mm-muted); }
.mm-bar-in:focus-visible { outline: none; }
.mm-chips { display: flex; align-items: center; gap: 6px; flex: none; }
.mm-cp { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--mm-fill-2);
  font-size: var(--text-label); white-space: nowrap; animation: v4-rise var(--dur-row) var(--ease-out) both; }
.mm-cp:not(:has(.mm-av)) { padding-left: 10px; }
.mm-cp b { font-family: var(--font-technical); font-weight: var(--weight-medium); }
.mm-cp.ask { background: transparent; color: var(--mm-muted); }
.mm-chips .mm-kbd { animation: v4-fade var(--dur-base) var(--ease-out) both; }
.mm-bar-hint { flex: none; font-size: var(--text-label); color: var(--mm-muted); white-space: nowrap; }
.mm-bar-hint b { color: var(--mm-2); font-weight: var(--weight-medium); }
.mm-bar.has-text .mm-bar-hint { display: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.mm-foot { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 44px; }
.mm-foot .mm-btn { min-height: 40px; font-size: var(--text-body); }
.mm-hint { display: inline-flex; align-items: center; gap: 8px; margin-left: 40px; padding: 7px 14px; border-radius: 999px; background: var(--brand-white); color: var(--brand-navy);
  font-size: var(--text-meta-r); animation: v4-rise var(--dur-row) var(--ease-out) 600ms both; }
.mm-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-orange); }
.mm-keys { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-label); color: var(--mm-muted); white-space: nowrap; }
.mm-keys .mm-kbd { margin: 0 0 0 2px; }
.mm-gap { width: 18px; }
.mm-this { border-radius: 999px; margin-left: 12px; }
.mm-this b { font-weight: var(--weight-medium); }
.mm-pop { position: fixed; z-index: 75; width: 320px; max-height: 60vh; overflow-y: auto; padding: 4px 16px 14px; border-radius: var(--radius-12);
  background: var(--brand-navy); border: 1px solid var(--mm-line-2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); font-size: var(--text-meta-r);
  animation: v4-rise var(--dur-row) var(--ease-out) both; }
.mm-pop-row { padding: 6px 0; border-bottom: 1px solid var(--mm-line); }
.mm-toast { position: absolute; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 76; max-width: min(560px, calc(100% - 32px));
  padding: 10px 16px; border-radius: var(--radius-10); background: var(--brand-white); color: var(--brand-navy); font-size: var(--text-meta-r);
  animation: v4-rise var(--dur-row) var(--ease-out) both; }
.mm-toast.out { position: fixed; z-index: 80; bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--primary); color: var(--primary-ink); }

/* ══ 4. NO OWNER ═════════════════════════════════════════════════════════ */
.mm-nsec { margin-top: 26px; }
.mm-nrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mm-line); cursor: default; }
.mm-nrow.sel .mm-nt b { color: var(--mm-ink); }
.mm-nt { min-width: 0; }
.mm-nt b { font-weight: var(--weight-medium); font-size: 15px; }
.mm-sugg { display: block; margin-top: 4px; font-size: 11.5px; color: var(--mm-blue); }
.mm-give { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mm-give-l { font-size: var(--text-label); color: var(--mm-muted); margin-right: 6px; }
.mm-face { --c: var(--mm-line-2); display: inline-grid; grid-template-rows: 30px auto; justify-items: center; row-gap: 4px; width: 34px; min-height: 44px;
  padding: 0; border: 0; cursor: pointer; color: var(--mm-ink); font-size: 9.5px; font-weight: var(--weight-medium); line-height: 30px; letter-spacing: 0.02em;
  background: radial-gradient(circle at center, transparent 14px, var(--c) 14px, var(--c) 15px, transparent 15px) center top / 30px 30px no-repeat;
  transition: transform var(--dur-press) var(--ease-out); }
.mm-face > small { font-size: 10px; line-height: 1; font-weight: var(--weight-regular); color: var(--mm-muted); font-variant-numeric: tabular-nums; }
.mm-face:not([disabled]):hover { --c: var(--mm-ink); }
.mm-face:active { transform: scale(0.94); }
.mm-face.sugg { background-image: radial-gradient(circle at center, var(--mm-fill-2) 13px, var(--mm-blue) 13px, var(--mm-blue) 15px, transparent 15px); }
.mm-face[disabled] { --c: var(--mm-line); color: var(--mm-faint); cursor: default; }
.mm-face[disabled] > small { color: var(--mm-faint); }
.mm-given { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-meta-r); color: var(--mm-2); animation: v4-fade var(--dur-base) var(--ease-out) both; }
.mm-okdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-white); color: var(--brand-navy); }

/* ══ 5. WRAP UP ══════════════════════════════════════════════════════════ */
.mm-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 26px; }
.mm-wrap > section { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.mm-wrap > section:nth-child(2) .mm-wlist > * { animation-delay: calc(var(--stagger-step) * 3); }
.mm-wrap > section:nth-child(3) .mm-wlist > * { animation-delay: calc(var(--stagger-step) * 6); }
.mm-wlist { overflow-y: auto; min-height: 0; }
.mm-wrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--mm-line); font-size: var(--text-meta-r); }
.mm-wrow b { font-weight: var(--weight-regular); color: var(--mm-ink); }
.mm-wrow .mm-av.xs { margin-top: 1px; }
.mm-wrow .mm-no.sm { min-width: 46px; }

/* ══ iPad and narrower ═══════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .mm-top { gap: 12px; padding: 0 24px; }
  .mm-strip { margin-left: 8px; }
  .mm-start, .mm-body { padding-left: 24px; padding-right: 24px; }
  .mm-week { grid-template-columns: repeat(5, 76px); }
  .mm-day { padding: 6px 7px; }
  .mm-day b { font-size: 11px; }
  .mm-cols { gap: 28px; }
  .mm-prow-more { grid-template-columns: minmax(0, 1fr); padding-left: 96px; }
  .mm-row-acts { justify-content: flex-start; }
  .mm-bar-hint { display: none; }
  .mm-hint { margin-left: 12px; }
}
@media (max-width: 1100px) {
  .mm-start { grid-template-columns: minmax(0, 1fr); }
  .mm-panel { max-width: 520px; }
  .mm-title, .mm-follow { display: none; }
  .mm-phead { flex-wrap: wrap; }
  /* One column: the projects and tasks scroll together between the header and the bar. */
  .mm-cols { display: block; overflow-y: auto; }
  .mm-cols > section + section { margin-top: 28px; }
  .mm-plist, .mm-tlist { overflow: visible; }
  .mm-phead > .mm-grow { display: none; }
  .mm-ring { order: 2; margin-left: auto; padding-left: 0; border-left: 0; min-width: 0; }
  .mm-week { order: 3; }
  .mm-wrap { grid-template-columns: minmax(0, 1fr); }
  .mm-keys, .mm-hint { display: none; }
  .mm-give { justify-content: flex-start; }
  .mm-nrow { grid-template-columns: 56px minmax(0, 1fr); }
  .mm-nrow > .mm-give, .mm-nrow > .mm-given { grid-column: 2; }
}
@media (max-width: 900px) {
  .mm-shead .mm-sdays, .mm-srow .mm-sdays { display: none; }
  .mm-shead, .mm-srow { grid-template-columns: 18px minmax(0, 1fr) 40px 40px 40px 50px; }
  .mm-thead { display: none; }
  .mm-prow-main { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "no pj due" "no st st" "no nx nx"; row-gap: 8px; }
  .mm-prow-main .mm-no { grid-area: no; } .mm-prow-main .mm-pj { grid-area: pj; } .mm-prow-main .mm-st { grid-area: st; flex-direction: row; align-items: center; gap: 10px; }
  .mm-prow-main .mm-next { grid-area: nx; } .mm-prow-main .mm-due { grid-area: due; }
  .mm-prow-more { padding-left: 12px; grid-template-columns: minmax(0, 1fr); }
  .mm-row-acts { justify-content: flex-start; }
  .mm-ring { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .mm-top { min-height: 56px; padding: 0 16px; }
  .mm-strip .mm-chip:not(.now) { display: none; }
  .mm-start, .mm-body { padding: 18px 16px; }
  .mm-h1 { font-size: 30px; }
  .mm-week { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .mm-shead, .mm-srow { grid-template-columns: minmax(0, 1fr) 36px 36px 36px; }
  .mm-shead > span:first-child, .mm-srow > .mm-grip, .mm-shead > span:last-child, .mm-srow > .mm-n.mv { display: none; }
  .mm-role { display: none; }
  .mm-bar { flex-wrap: wrap; padding: 6px 12px; }
  .mm-chips { flex-wrap: wrap; }
  .mm-foot { flex-wrap: wrap; }
  .mm-this { margin-left: 0; }
}

/* ══ 6. THE ROOM SCREEN, FOLLOWING ALONG (p8) ════════════════════════════
   Drawn by views/meeting-room.js inside /room. Sized to the TV in vw. */
.mmr { position: absolute; inset: 0; box-sizing: border-box; padding: 3.4vh 3.6vw 3vh; display: flex; flex-direction: column;
  background: var(--brand-navy); color: var(--brand-white); font-family: var(--font-sans);
  --mm-muted: rgba(255, 255, 255, 0.58); --mm-line: rgba(255, 255, 255, 0.14); --mm-line-2: rgba(255, 255, 255, 0.24); --mm-blue: rgba(160, 182, 255, 0.95); --mm-blue-fill: rgba(117, 152, 255, 0.2); }
.mmr-top { display: flex; align-items: center; gap: 1.6vw; padding-bottom: 2.2vh; border-bottom: 1px solid var(--mm-line); }
.mmr-word { font-size: 1.5vw; font-weight: var(--weight-wordmark); letter-spacing: -0.04em; }
.mmr-word i { font-style: normal; color: var(--track-rose); }
.mmr-title { font-size: 1.15vw; color: var(--mm-muted); }
.mmr-title b { color: var(--brand-white); font-weight: var(--weight-medium); }
.mmr-clocks { margin-left: auto; display: flex; gap: 2.6vw; }
.mmr-clock { display: flex; flex-direction: column; align-items: flex-end; }
.mmr-clock span { font-size: 0.75vw; color: var(--mm-muted); }
.mmr-clock b { font-size: 2vw; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.mmr-head { display: flex; align-items: center; gap: 2vw; margin-top: 4.4vh; animation: v4-fade var(--dur-base) var(--ease-out) both; }
.mmr-av { flex: none; width: 5.2vw; height: 5.2vw; border-radius: 50%; border: 1px solid var(--mm-line-2); display: flex; align-items: center; justify-content: center; font-size: 1.4vw; font-weight: var(--weight-medium); }
.mmr-name { font-size: 4.6vw; font-weight: var(--weight-medium); letter-spacing: -0.04em; line-height: 1; }
.mmr-sub { margin-top: 1.4vh; font-size: 1.2vw; color: var(--mm-muted); }
.mmr-week { margin-left: auto; display: grid; grid-template-columns: repeat(5, 7.6vw); gap: 0.6vw; }
.mmr-day { padding: 1vh 0.8vw; border: 1px solid var(--mm-line); border-radius: 0.6vw; display: flex; flex-direction: column; gap: 0.5vh; }
.mmr-day span { font-size: 0.8vw; color: var(--mm-muted); }
.mmr-day b { font-weight: var(--weight-regular); font-size: 1vw; }
.mmr-day.today { border-color: var(--brand-white); }
.mmr-day.site b { color: var(--mm-blue); }
.mmr-day.leave b { color: var(--mm-muted); }
.mmr-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 4vw; margin-top: 4vh; }
.mmr-thead, .mmr-row { display: grid; grid-template-columns: 7vw minmax(0, 1fr) 13vw 6vw; gap: 1.4vw; align-items: center; }
.mmr-thead { padding-bottom: 1.2vh; border-bottom: 1px solid var(--mm-line-2); font-size: 0.75vw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mm-muted); }
.mmr-thead span:last-child, .mmr-due { text-align: right; }
.mmr-row { padding: 2.2vh 0; border-bottom: 1px solid var(--mm-line); }
.mmr-list > .mmr-row { animation: v4-rise var(--dur-row) var(--ease-out) both; }
.mmr-list > .mmr-row:nth-child(2) { animation-delay: calc(var(--stagger-step) * 1); }
.mmr-list > .mmr-row:nth-child(3) { animation-delay: calc(var(--stagger-step) * 2); }
.mmr-list > .mmr-row:nth-child(n+4) { animation-delay: calc(var(--stagger-step) * 3); }
.mmr-no, .mmr-due { font-family: var(--font-technical); font-size: 2vw; font-variant-numeric: tabular-nums; }
.mmr-due.late { color: var(--brand-orange); }
.mmr-pj b { display: block; font-size: 2vw; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmr-pj span { display: block; margin-top: 0.4vh; font-size: 1.1vw; color: var(--mm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmr-st { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8vh; }
.mmr-stage { padding: 0.6vh 1.1vw; border-radius: 999px; background: var(--mm-blue-fill); font-size: 1.05vw; }
.mmr-stage.hi { background: var(--brand-white); color: var(--brand-navy); font-weight: var(--weight-medium); }
.mmr-moved { font-size: 0.85vw; color: var(--mm-blue); }
.mmr-moved.quiet { color: var(--mm-muted); }
.mmr-side { display: flex; flex-direction: column; }
.mmr-fig { padding: 0 0 2.4vh; margin-bottom: 2.4vh; border-bottom: 1px solid var(--mm-line); }
.mmr-fig b { display: block; font-size: 3.6vw; font-weight: var(--weight-medium); line-height: 1; font-variant-numeric: tabular-nums; }
.mmr-fig b.late { color: var(--brand-orange); }
.mmr-fig span { display: block; margin-top: 1vh; font-size: 1.05vw; color: var(--mm-muted); }
.mmr-ring { display: flex; align-items: center; gap: 1.2vw; }
.mmr-ring svg { width: 4.6vw; height: 4.6vw; }
.mmr-ring b { color: var(--brand-white); font-size: 2.4vw; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.mmr-ring b.over { color: var(--brand-orange); }
.mmr-ring span { display: block; font-size: 1vw; color: var(--mm-muted); }
.mmr-big { margin-top: 10vh; font-size: 4.6vw; font-weight: var(--weight-medium); letter-spacing: -0.04em; }
.mmr-foot { display: flex; align-items: center; gap: 0.5vw; padding-top: 2.2vh; border-top: 1px solid var(--mm-line); }
.mmr-chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.6vw; height: 2.6vw; min-width: 2.6vw; border-radius: 999px; border: 1px solid var(--mm-line-2); font-size: 0.75vw; font-weight: var(--weight-medium); }
.mmr-chip.done { color: rgba(255, 255, 255, 0.38); border-color: var(--mm-line); }
.mmr-chip.now { background: var(--brand-white); color: var(--brand-navy); padding: 0 1.2vw 0 0.25vw; font-size: 1vw; }
.mmr-chip.now i { font-style: normal; width: 2.1vw; height: 2.1vw; border-radius: 50%; background: var(--brand-navy); color: var(--brand-white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7vw; }
.mmr-chip.now small { color: var(--ink-3); font-size: 0.8vw; }
.mmr-pill { height: 2.6vw; padding: 0 1vw; border-radius: 999px; border: 1px solid var(--mm-line-2); font-size: 0.95vw; display: inline-flex; align-items: center; }
.mmr-pill.on { background: var(--brand-white); color: var(--brand-navy); }
.mmr-rule { width: 1px; height: 1.6vw; background: var(--mm-line-2); margin: 0 0.6vw; }
.mmr-next { margin-left: auto; font-size: 1.3vw; color: var(--mm-muted); }
.mmr-next b { color: var(--brand-white); font-weight: var(--weight-medium); }
.mm-body > .mm-foot { margin-top: auto; padding-top: 14px; }
