/* public/m/phone.css - THE PHONE STYLESHEET of the WarRoom (staff /shoot now; the client hub's Calendar tab next).
 *
 * One stylesheet for every phone screen: the bottom tab bar, the month grid, the day's appointment cards, the appointment screen
 * (chips, tabs, rows, map), the two bottom buttons and the sheet that step 2 puts under them. Built on /brand-theme.css TOKENS
 * ONLY (--l0..l4, --fg..fg4, --line*, --jw*, --solid-*, --ok/--att/--bad families): no colour, gradient or font is spelled here,
 * so the day the brand moves, this moves with it. Opaque surfaces (sheets, the appointment screen, the tab bar) use the SOLID
 * ladder so nothing scrolling beneath ever shows through. Tap targets are at least 44px. Pair with public/m/month-grid.js.
 */

/* ── page frame ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.m-has-tabbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.m-screen[hidden] { display: none; }

/* ── bottom tab bar: fixed to the bottom edge, equal slots, safe-area aware ──────────────────────────────────────── */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--solid-bg); border-top: 1px solid var(--solid-hair);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tab {
  min-height: 56px; border: 0; background: transparent; color: var(--fg3);
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.m-tab { min-width: 0; padding: 0 2px; white-space: nowrap; letter-spacing: .03em; } /* five slots are 78px each: the label must fit, never wrap or spill */
.m-tab[hidden] { display: none; }
.m-tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-tab.is-active { color: var(--fg); }
.m-tab.is-active svg { stroke-width: 2.2; }

/* ── month header ────────────────────────────────────────────────────────────────────────────────────────────────── */
.m-monthbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.m-monthtitle { flex: 1; min-width: 0; margin: 0; font-family: var(--sans); font-size: var(--t-lg); font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.m-iconbtn, .m-textbtn {
  min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--l3); color: var(--fg);
  border-radius: var(--btn-radius); font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.m-textbtn { padding: 0 16px; letter-spacing: var(--btn-tracking); text-transform: uppercase; }
.m-iconbtn:active, .m-textbtn:active { background: var(--l4); }
.m-notice { margin: 0 16px 8px; padding: 10px 14px; border-radius: var(--r4); background: var(--att-t); border: 1px solid var(--att-l); color: var(--att-fg); font-size: var(--t-sm); line-height: 1.45; }

/* ── the month grid: 7 columns, Sunday first ─────────────────────────────────────────────────────────────────────── */
.m-weekdays, .m-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 8px; }
.m-weekday { text-align: center; padding: 8px 0; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--fg4); }
.m-day {
  position: relative; min-height: 52px; padding: 6px 0 4px; border: 0; background: transparent; color: var(--fg);
  font-family: var(--sans); font-size: var(--t-md); font-variant-numeric: tabular-nums; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px;
}
.m-blank { cursor: default; }
.m-daynum { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.m-day.is-today .m-daynum { box-shadow: inset 0 0 0 1.5px var(--fg3); }
.m-day.is-selected .m-daynum { background: var(--jw); color: var(--jw-ink); font-weight: 700; box-shadow: none; }
.m-dots { display: inline-flex; gap: 4px; min-height: 6px; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg2); display: block; }
.m-day.is-selected .m-dot { background: var(--fg); }

/* ── the selected day's appointment cards ────────────────────────────────────────────────────────────────────────── */
.m-dayhead { margin: 18px 16px 10px; font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--fg3); }
.m-cards { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.m-card {
  display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--card-radius); border: 1px solid var(--line);
  background: var(--l2); color: var(--fg); font-family: var(--sans); cursor: pointer; min-height: 44px;
}
.m-card:active { background: var(--l3); }
.m-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-card-time { font-size: var(--t-bd); font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.m-card-who { flex: 0 0 auto; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--l4); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; }
.m-card-addr { margin-top: 6px; font-size: var(--t-md); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.m-card-sub { margin-top: 2px; font-size: var(--t-sm); color: var(--fg3); line-height: 1.4; overflow-wrap: anywhere; }
.m-card-items { margin-top: 8px; font-size: var(--t-sm); color: var(--fg2); line-height: 1.4; overflow-wrap: anywhere; }
.m-empty { padding: 28px 24px; text-align: center; color: var(--fg3); font-size: var(--t-bd); line-height: 1.5; }

/* ── chips (status, order number, paid/unpaid) ───────────────────────────────────────────────────────────────────── */
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: var(--chip-radius); border: 1px solid var(--line); background: var(--l3); color: var(--fg2); font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; }
.m-chip.ok { background: var(--ok-t); border-color: var(--ok-l); color: var(--ok-fg); }
.m-chip.att { background: var(--att-t); border-color: var(--att-l); color: var(--att-fg); }
.m-chip.bad { background: var(--bad-t); border-color: var(--bad-l); color: var(--bad-fg); }

/* ── the appointment screen: full-screen, slides in over the tab bar ─────────────────────────────────────────────── */
.m-appt {
  position: fixed; inset: 0; z-index: 60; background: var(--solid-bg); color: var(--fg);
  transform: translateX(100%); visibility: hidden; transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
  display: flex; flex-direction: column; overflow: hidden;
}
.m-appt.open { transform: translateX(0); visibility: visible; transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.m-appt-head { flex: 0 0 auto; padding: calc(8px + env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--solid-hair); background: var(--solid-bg); }
.m-back { min-height: 44px; border: 0; background: transparent; color: var(--fg); font-family: var(--sans); font-size: var(--t-md); font-weight: 600; cursor: pointer; padding: 0 8px; }
.m-appt-title { margin: 4px 8px 0; font-size: var(--t-xl); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.m-appt-suburb { margin: 4px 8px 10px; font-size: var(--t-bd); color: var(--fg3); }
.m-appt-head .m-chips { margin: 0 8px; }
.m-tabs { display: flex; gap: 0; margin-top: 12px; border-bottom: 1px solid var(--solid-hair); }
.m-seg { flex: 1; min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fg3); font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em; cursor: pointer; padding: 0 4px; }
.m-seg.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.m-appt-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.m-pane[hidden] { display: none; }

/* address buttons and rows */
.m-mapbtns { display: flex; gap: 10px; margin: 10px 16px 0; }
.m-mapbtns .m-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
.m-block { margin: 12px 16px 0; padding: 4px 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--solid-card); }
.m-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--solid-hair); font-size: var(--t-bd); line-height: 1.45; }
.m-row:last-child { border-bottom: 0; }
.m-row dt, .m-row .m-k { flex: 0 0 38%; color: var(--fg3); margin: 0; font-size: var(--t-sm); }
.m-row dd, .m-row .m-v { flex: 1; min-width: 0; margin: 0; text-align: right; color: var(--fg); overflow-wrap: anywhere; }
.m-row a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.m-h { margin: 20px 16px 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--fg3); }
.m-addrcard { display: block; margin: 12px 16px 0; padding: 14px 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--solid-card); color: var(--fg); text-decoration: none; min-height: 44px; font-size: var(--t-md); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.m-addrcard small { display: block; margin-top: 3px; font-size: var(--t-sm); font-weight: 400; color: var(--fg3); }
.m-note { margin: 12px 16px 0; padding: 14px 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--solid-card); font-size: var(--t-bd); line-height: 1.55; color: var(--fg2); white-space: pre-wrap; overflow-wrap: anywhere; }
.m-total { font-weight: 700; }

/* ── the two bottom buttons (step 2) and the sheet they open ─────────────────────────────────────────────────────── */
.m-btnbar { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 10px; padding: 10px 16px; background: var(--solid-bg); border-top: 1px solid var(--solid-hair); }
.m-btn { flex: 1; min-height: 48px; border-radius: var(--btn-radius); border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; letter-spacing: var(--btn-tracking); text-transform: uppercase; cursor: pointer; }
.m-btn.primary { background: var(--jw); border-color: var(--jw-edge); color: var(--jw-ink); }
.m-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--solid-card); border-top: 1px solid var(--solid-line); border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--e2); }
.m-sheet-item { display: block; width: 100%; min-height: 52px; text-align: left; padding: 0 4px; border: 0; border-bottom: 1px solid var(--solid-hair); background: transparent; color: var(--fg); font-family: var(--sans); font-size: var(--t-md); cursor: pointer; }

/* ── More tab ────────────────────────────────────────────────────────────────────────────────────────────────────── */
.m-more { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-more .m-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--l2); color: var(--fg); font-family: var(--sans); font-size: var(--t-md); font-weight: 600; text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.m-more .m-who { padding: 4px 4px 8px; color: var(--fg3); font-size: var(--t-bd); }
.m-dim { color: var(--fg3); }


/* ── step 2: the two buttons live INSIDE the appointment screen (it covers the tab bar), and the sheets they open ───────── */
.m-appt .m-btnbar { position: static; flex: 0 0 auto; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.m-btnbar[hidden], .m-btn[hidden] { display: none; }
.m-btn:disabled { opacity: .5; cursor: default; }
.m-btn.danger { border-color: var(--bad-l); color: var(--bad-fg); }
.m-scrim { position: fixed; inset: 0; z-index: 79; background: color-mix(in srgb, var(--solid-deep) 72%, transparent); }
.m-scrim[hidden], .m-sheet[hidden] { display: none; }
.m-sheet { max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-sheet-title { margin: 0; font-size: var(--t-lg); font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.m-sheet-sub { margin: 4px 0 10px; font-size: var(--t-sm); color: var(--fg3); line-height: 1.45; }
.m-sheet-item:last-of-type { border-bottom: 0; }
.m-sheet-item.danger { color: var(--bad-fg); }
.m-sheet-item[disabled] { color: var(--fg4); cursor: default; }
.m-sheet-note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r4); background: var(--l3); border: 1px solid var(--line); color: var(--fg2); font-size: var(--t-sm); line-height: 1.45; overflow-wrap: anywhere; }
.m-sheet-note.ok { background: var(--ok-t); border-color: var(--ok-l); color: var(--ok-fg); }
.m-sheet-note.bad { background: var(--bad-t); border-color: var(--bad-l); color: var(--bad-fg); }
.m-sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.m-sheet-actions .m-btn { min-height: 48px; }
.m-field { display: block; margin-top: 12px; }
.m-field > span { display: block; margin-bottom: 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--fg3); }
.m-field input, .m-field select, .m-field textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line-strong);
  background: var(--l2); color: var(--fg); font-family: var(--sans); font-size: 16px; color-scheme: dark;
}
.m-field textarea { min-height: 120px; padding: 12px 14px; line-height: 1.45; resize: vertical; }

/* ── the Files list on Media & Marketing: a name and state, and DELIVER / REMOVE ───────────────────────────────────── */
.m-filerow { align-items: center; }
.m-filerow .m-file { flex: 1; min-width: 0; }
.m-filerow .m-file b { display: block; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.m-filerow .m-file small { display: block; margin-top: 2px; color: var(--fg3); font-size: var(--t-sm); }
.m-filebtn { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--bad-l); background: transparent; color: var(--bad-fg); font-family: var(--sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--btn-tracking); text-transform: uppercase; cursor: pointer; }
.m-deliverbar { margin: 12px 16px 0; }
.m-deliverbar .m-btn { width: 100%; }
.m-sheet-item { padding-top: 8px; padding-bottom: 8px; }
.m-sheet-item small { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--fg3); line-height: 1.35; }
.m-btn { padding: 0 12px; }

/* ── phone step 3: the Needs me / Listings / Customers lists and the client page ─────────────────────────────────────── */
.m-listbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.m-listcount { flex: 1; min-width: 0; font-family: var(--sans); font-size: var(--t-bd); font-weight: 600; color: var(--fg2); }
.m-searchrow { padding: 6px 16px 8px; }
.m-search {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line-strong);
  background: var(--l2); color: var(--fg); font-family: var(--sans); font-size: 16px; color-scheme: dark;
}
.m-chiprow { display: flex; gap: 8px; padding: 0 16px 8px; }
.m-fchip {
  min-height: 44px; padding: 0 16px; border-radius: var(--chip-radius); border: 1px solid var(--line); background: var(--l3); color: var(--fg2);
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; cursor: pointer;
}
.m-fchip.is-active { background: var(--jw); border-color: var(--jw-edge); color: var(--jw-ink); }
.m-list, .m-items { display: flex; flex-direction: column; gap: 10px; }
.m-list { padding: 4px 16px 24px; }
.m-list .m-notice { margin: 0; }
.m-list .m-h { margin: 14px 0 0; }
.m-item-wrap { display: flex; flex-direction: column; gap: 8px; }
.m-item {
  display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 14px 16px; border-radius: var(--card-radius); border: 1px solid var(--line);
  background: var(--l2); color: var(--fg); font-family: var(--sans); cursor: pointer; min-height: 44px;
}
button.m-item:active { background: var(--l3); }
.m-item-static { cursor: default; }
.m-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.m-item-date { font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; color: var(--fg3); font-variant-numeric: tabular-nums; }
.m-item-title { font-size: var(--t-md); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.m-item-sub { margin-top: 2px; font-size: var(--t-sm); color: var(--fg2); line-height: 1.4; overflow-wrap: anywhere; }
.m-item-sub.dim { color: var(--fg3); }
.m-item-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--fg); font-size: var(--t-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.m-item-clear { flex: 0 0 auto; width: 100%; }
.m-sev { display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; border-radius: var(--chip-radius); border: 1px solid var(--line); font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.m-sev.red { background: var(--bad-t); border-color: var(--bad-l); color: var(--bad-fg); }
.m-sev.amber { background: var(--att-t); border-color: var(--att-l); color: var(--att-fg); }
.m-sev.wait { background: var(--l3); color: var(--fg3); }
.m-subh { margin: 14px 16px 6px; font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--fg4); }
.m-card-date { margin-bottom: 4px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; color: var(--fg3); }
.m-has-tabbar .m-state-error, .m-has-tabbar .m-state-loading, .m-has-tabbar .m-state-empty { margin-top: 4px; }
#client-contacts .m-v a { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }

/* ── feat/phone-away: More's sub-screens, chats, post review, leads, money, client page extras (public/m/phone-away.js) ──────────────── */
.m-subback { min-height: 44px; min-width: 44px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--fg); font-family: var(--sans); font-size: var(--t-md); font-weight: 600; cursor: pointer; text-align: left; }
.m-h-flush { margin: 12px 4px 0; }
.m-block.m-plain { padding: 0 16px; }
.m-block.m-plain .m-row { padding: 14px 0; }
.m-more .m-link.danger { border-color: var(--bad-l); color: var(--bad-fg); justify-content: center; }
.m-more .m-link[hidden] { display: none; }
.m-more .m-block { margin: 8px 0 0; }
.m-cluster { display: flex; flex-direction: column; gap: 10px; margin: 10px 16px 0; }
.m-cluster .m-btn { flex: 0 0 auto; width: 100%; }
.m-logoblock { padding: 16px; text-align: center; }
.m-logo { display: block; margin: 0 auto 10px; max-width: 100%; max-height: 120px; object-fit: contain; }
.m-logo-line { font-size: var(--t-sm); line-height: 1.45; }

/* the project chat page and the client-notes thread */
.m-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.m-thread-sheet { padding: 4px 0 0; max-height: 40vh; overflow-y: auto; }
.m-msg { max-width: 88%; padding: 10px 14px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--l2); overflow-wrap: anywhere; }
.m-msg.ours { align-self: flex-end; background: var(--l4); border-color: var(--line-strong); }
.m-msg-who { font-size: var(--t-xs); font-weight: 600; letter-spacing: .03em; color: var(--fg3); margin-bottom: 4px; }
.m-msg-body { font-size: var(--t-bd); line-height: 1.5; color: var(--fg); white-space: pre-wrap; }
.m-replybar { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--solid-bg); border-top: 1px solid var(--solid-hair); }
.m-replybar .m-sheet-note { margin: 0; }
.m-replybar .m-sheet-note[hidden] { display: none; }
.m-replybox { width: 100%; box-sizing: border-box; min-height: 64px; padding: 12px 14px; border-radius: var(--btn-radius); border: 1px solid var(--line-strong); background: var(--l2); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.4; resize: none; color-scheme: dark; }
.m-replybar .m-btn { flex: 0 0 auto; width: 100%; }

/* one post for review */
.m-media { position: relative; margin: 14px 16px 0; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--solid-card); overflow: hidden; }
.m-media-empty { padding: 60px 16px; text-align: center; color: var(--fg3); font-size: var(--t-bd); }
.m-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-slides::-webkit-scrollbar { display: none; }
.m-slide { flex: 0 0 100%; width: 100%; max-height: 52vh; object-fit: contain; scroll-snap-align: center; display: block; background: var(--solid-card); }
.m-still { max-height: 52vh; }
.m-video { display: block; width: 100%; max-height: 52vh; background: var(--solid-card); }
.m-slide-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: var(--chip-radius); background: color-mix(in srgb, var(--solid-deep) 72%, transparent); color: var(--fg); font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.m-post-info { margin: 14px 16px 0; }
.m-post-info .m-note { margin: 10px 0 0; max-height: 22vh; overflow-y: auto; }
.m-post-body .m-sheet-note, #post-body .m-sheet-note { margin: 12px 16px 0; }
#post-body .m-sheet-note[hidden] { display: none; }
.m-post-note { margin: 12px 16px 0; }
#post-bar { position: static; }

/* leads and money rows */
.m-lead { display: flex; flex-direction: column; }
.m-reachrow { display: flex; gap: 10px; margin-top: 10px; }
.m-reach { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
.m-owed { margin: 4px 0 14px; padding: 16px; border-radius: var(--card-radius); border: 1px solid var(--line); background: var(--l2); }
.m-owed-k { font-size: var(--t-sm); color: var(--fg3); }
.m-owed-v { margin-top: 4px; font-size: var(--t-xl); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.m-owe { display: flex; flex-direction: column; }
.m-owe .m-item-top { margin-bottom: 4px; }
.m-owe-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-markpaid { flex: 0 0 auto; width: 100%; margin-top: 12px; }
.m-linkbox { width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 12px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line-strong); background: var(--l2); color: var(--fg); font-family: var(--sans); font-size: 16px; color-scheme: dark; }
