/* ==========================================================================
   Irada Hub — Meetings (meetings.css)
   Builds on app.css tokens (--panel*, --line*, --paper, --mut, --faint,
   --accent*, --st-*, --danger, --warn, --r*, --f-head, --ease) and its
   primitives (.btn, .inp, .sel, .txa, .field, .modal, .focus-scope, .avatar,
   .empty, .spinner, .rich, .sr-only) — and, so the two Board pages read as
   one system, the Decisions shell in decisions.css (.dec-tabs, .dec-tabn,
   .dec-qa, .dec-filters, .dec-row, .dec-pill, .dec-facts, .dec-empty). No new
   colours: status pills reuse the Decisions / task status tokens, which
   already carry dark + light values.
   Every class is prefixed .mtg- (print: .mp-).
   ========================================================================== */

.mtg-wrap { min-width: 0; }
.mtg-wrap .view-head { flex-wrap: wrap; gap: 12px; }
.mtg-faint { color: var(--faint); font-weight: 400; }
.mtg-loading { display: flex; justify-content: center; padding: 40px 0; }
.mtg-none { margin: 6px 0 4px; }
.mtg-link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent-fg);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.mtg-link:hover { color: var(--paper); }
.mtg-link:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; border-radius: 3px; }

/* ----------------------------------------------------------------- list
   The shell (tabs, quick-add, filters, count line, empty card, row grid)
   comes from decisions.css (.dec-*) so Meetings and Decisions are one
   system; only what is meeting-specific is declared here. */
.mtg-ico { width: 13px; height: 13px; flex: none; opacity: .85; }
.dec-row.mtg-row {
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 16px;
  text-decoration: none; border-radius: var(--r);
}
.mtg-row.is-today { border-left: 3px solid var(--accent); }
.mtg-row.is-canceled .mtg-row-title { text-decoration: line-through; color: var(--mut); }
.mtg-row.is-canceled .mtg-date { opacity: .6; }
.mtg-date {
  flex: none; width: 54px; text-align: center; border-radius: var(--r-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 5px 0 6px;
  display: flex; flex-direction: column; line-height: 1.1;
}
.mtg-date-m { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-fg); }
.mtg-date-d { font-family: var(--f-head); font-size: 21px; font-weight: 800; }
.mtg-date-w { font-size: 10.5px; color: var(--mut); }
.mtg-row.is-past .mtg-date { background: var(--panel2); border-color: var(--line); }
.mtg-row.is-past .mtg-date-m { color: var(--mut); }
.mtg-row-main { gap: 4px; }
.mtg-row-title { font-size: 15px; font-weight: 700; }
.mtg-row-meta { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 12.5px; color: var(--mut); }
.mtg-mi-bit { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.mtg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.mtg-chips:empty { display: none; }
.mtg-side { gap: 7px; min-width: 0; }
.mtg-people-sum { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); white-space: nowrap; }
.mtg-avs { display: inline-flex; align-items: center; }
.mtg-av { display: inline-flex; border-radius: 50%; }
.mtg-av + .mtg-av, .mtg-av + .mtg-av-more { margin-left: -4px; }
.mtg-avs .avatar.sm { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px var(--panel); }
.mtg-row:hover .mtg-avs .avatar.sm { box-shadow: 0 0 0 2px var(--panel2); }
.mtg-av-declined .avatar { opacity: .4; }
.mtg-av-invited .avatar { opacity: .7; }
.mtg-av-more {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px;
  background: var(--panel3); color: var(--mut); font-size: 10.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--panel);
}
.mtg-stats { text-align: right; }
.mtg-stat-dec { color: var(--dec-approved, var(--paper)); font-weight: 600; }
.mtg-stat-act { color: var(--com-progress, var(--paper)); font-weight: 600; }
.mtg-today {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-ink, #0B0B0C); background: var(--accent);
}
.mtg-group .com-group-h { margin-top: 4px; }
.mtg-more { display: flex; justify-content: center; margin-top: 14px; }

/* ----------------------------------------------------- pills and chips */
.mtg-pill, .mtg-type, .mtg-rsvp, .mtg-tag, .mtg-att {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--mut); background: transparent;
}
.mtg-type { color: var(--paper); background: var(--panel2); border-color: var(--line); }
.mtg-k-scheduled          { --k: var(--dec-proposed); }
.mtg-k-in_progress        { --k: var(--com-progress); }
.mtg-k-minutes_draft      { --k: var(--com-open); }
.mtg-k-minutes_circulated { --k: var(--com-risk); }
.mtg-k-minutes_approved   { --k: var(--dec-approved); }
.mtg-k-canceled           { --k: var(--dec-superseded); }
.mtg-k-pending            { --k: var(--dec-revoked); }
.mtg-rsvp-invited  { color: var(--st-client-ink); border-color: color-mix(in srgb, var(--st-client) 45%, transparent); }
.mtg-rsvp-going    { color: var(--st-done-ink);   border-color: color-mix(in srgb, var(--st-done) 45%, transparent); }
.mtg-rsvp-maybe    { color: var(--st-review-ink); border-color: color-mix(in srgb, var(--st-review) 45%, transparent); }
.mtg-rsvp-declined { color: var(--st-cancel-ink); border-color: color-mix(in srgb, var(--st-cancel) 45%, transparent); }
.mtg-is-done     { color: var(--st-done-ink);   border-color: color-mix(in srgb, var(--st-done) 45%, transparent); }
.mtg-is-deferred { color: var(--st-client-ink); border-color: color-mix(in srgb, var(--st-client) 45%, transparent); }
.mtg-tag { padding: 3px 7px; font-size: 11px; }
.mtg-tag--collab { color: var(--accent-fg); border-color: var(--accent-line); }
.mtg-count {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 999px;
  background: var(--panel3); color: var(--mut); font-size: 11px; font-weight: 700; text-align: center;
}

/* -------------------------------------------------------- meeting page */
.mtg-back { display: inline-block; font-size: 13px; color: var(--mut); text-decoration: none; margin-bottom: 10px; }
.mtg-back:hover { color: var(--paper); }
.mtg-back:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; border-radius: 4px; }
.mtg-page .view-head.mtg-head { margin-bottom: 16px; }
.mtg-head-main { flex: 1 1 420px; min-width: 0; }
.mtg-kicker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mtg-head h1 { overflow-wrap: anywhere; }
.mtg-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.mtg-meta a { color: var(--accent-fg); }
.mtg-actions { justify-content: flex-end; }

/* two columns at desktop width: tabs + pane | details card */
.mtg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.mtg-main { min-width: 0; }
.mtg-aside {
  position: sticky; top: 16px; padding: 2px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.mtg-aside-sec { padding: 13px 0; }
.mtg-aside-sec + .mtg-aside-sec { border-top: 1px solid var(--line); }
.mtg-aside-h {
  display: flex; align-items: center; gap: 4px; margin-bottom: 9px;
  font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mut);
}
.mtg-facts { margin: 0; font-size: 13px; gap: 6px 14px; }
.mtg-facts dt { font-size: 12px; }
.mtg-avs--lg { flex-wrap: wrap; row-gap: 4px; margin-bottom: 8px; }
.mtg-avs--lg .avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.mtg-avs--lg .mtg-av-more { height: 30px; min-width: 30px; }
.mtg-aside-tally { margin: 0 0 6px; }
.mtg-aside-tally b { color: var(--paper); }
.mtg-aside .mtg-link { font-size: 13px; }
.mtg-rsvpbar { display: flex; width: 100%; }
.mtg-rsvpbar button { flex: 1; padding: 6px 8px; text-align: center; }
.mtg-rsvpbar button.btn-spin { opacity: .6; }

.mtg-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13.5px;
}
.mtg-banner a { color: var(--accent-fg); }
.mtg-banner--warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

/* flow stepper */
.mtg-flow {
  padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
}
.mtg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.mtg-steps li {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--faint);
  padding-right: 22px; position: relative;
}
.mtg-steps li:not(:last-child)::after {
  content: ''; position: absolute; right: 7px; top: 50%; width: 9px; height: 1px; background: var(--line2);
}
.mtg-flow-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.mtg-steps li.is-done { color: var(--mut); }
.mtg-steps li.is-done .mtg-flow-dot { background: var(--st-done); border-color: var(--st-done); }
.mtg-steps li.is-on { color: var(--paper); }
.mtg-steps li.is-on .mtg-flow-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mtg-flow-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mtg-flow-note { margin: 8px 0 0; }

/* tabs: the same .focus-scope tray + .dec-tabn counts as Decisions */
.mtg-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mtg-tabs::-webkit-scrollbar { display: none; }
.mtg-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.mtg-pane-empty { margin-bottom: 14px; }
.mtg-pane:focus { outline: none; }
.mtg-pane:focus-visible { outline: 2px dashed var(--line2); outline-offset: 4px; }
.mtg-h3 { font-family: var(--f-head); font-size: 15px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }

/* agenda */
.mtg-agenda { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.mtg-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.mtg-item-done { opacity: .78; }
.mtg-no {
  flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 999px; background: var(--panel3); color: var(--paper);
  font-family: var(--f-head); font-weight: 800; font-size: 12.5px;
}
.mtg-item-main { flex: 1; min-width: 0; }
.mtg-item-title { font-weight: 700; overflow-wrap: anywhere; }
.mtg-item-meta { font-size: 12.5px; color: var(--mut); margin-top: 3px; }
.mtg-item-meta a { color: var(--accent-fg); }
.mtg-notes { margin-top: 8px; font-size: 13.5px; color: var(--paper); }
.mtg-item-ctl { flex: none; display: flex; gap: 2px; }
.mtg-total { margin: 4px 0 16px; }
.mtg-over { color: var(--danger-ink, var(--danger)); }
.mtg-add {
  padding: 14px; border: 1px dashed var(--line2); border-radius: var(--r); background: transparent;
}
.mtg-add-foot { display: flex; justify-content: flex-end; }
.mtg-narrow { max-width: 130px; }

/* minutes */
.mtg-msec { padding: 14px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.mtg-mi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mtg-mi-head .mtg-h3 { margin: 0; }
.mtg-state button { padding: 5px 11px; }
.mtg-disc { font-size: 14px; }
.mtg-ed { position: relative; }
.mtg-ta { width: 100%; min-height: 84px; resize: vertical; line-height: 1.5; }
.mtg-ed-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--faint); }
.mtg-save.is-err { color: var(--danger-ink, var(--danger)); font-weight: 600; }
.mtg-preview { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); }
.mtg-conflict {
  margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px;
  background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
}
.mtg-conflict p { margin: 0 0 6px; }
.mtg-conflict details { margin: 6px 0; }
.mtg-conflict summary { cursor: pointer; color: var(--accent-fg); }
.mtg-conflict-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* decisions + actions */
.mtg-ocs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mtg-oc {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px;
  border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line);
}
.mtg-oc--dec { border-left: 3px solid var(--accent); }
.mtg-oc--act { border-left: 3px solid var(--st-progress); }
.mtg-ref {
  flex: none; font-family: var(--f-head); font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-fg); text-decoration: none; white-space: nowrap;
}
a.mtg-ref:hover { text-decoration: underline; }
.mtg-ref--act { background: color-mix(in srgb, var(--st-progress) 14%, transparent); color: var(--st-progress-ink); }
.mtg-oc-body { flex: 1; min-width: 0; }
.mtg-oc-title { font-weight: 600; overflow-wrap: anywhere; }
.mtg-oc-text { font-size: 13px; margin-top: 3px; }
.mtg-oc-meta { font-size: 12px; color: var(--mut); margin-top: 3px; }
.mtg-oc-meta a { color: var(--accent-fg); }
.mtg-oc-del { flex: none; }
.mtg-oc-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mtg-mini {
  margin-top: 10px; padding: 12px; border-radius: var(--r-sm);
  background: var(--panel2); border: 1px solid var(--line);
}
.mtg-mini .field { margin-bottom: 8px; }
.mtg-mini-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mtg-mini-row .grow { flex: 1; }
.mtg-mini-row .inp { flex: 1 1 200px; min-width: 0; }
.mtg-inline { font-size: 12.5px; color: var(--mut); }
.mtg-sel-sm { width: auto; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.mtg-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--paper); cursor: pointer; }
.mtg-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.mtg-mini .hint { margin: 6px 0 0; }
.mtg-al-row { display: block; }
.mtg-al-row > .mtg-al-item { display: block; font-size: 11.5px; color: var(--faint); margin: 0 0 3px 2px; }
.mtg-al-row { padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel2); border: 1px solid var(--line); }
.mtg-al-row .mtg-ref { margin-right: 8px; }
.mtg-al-row .mtg-oc-body { display: inline-block; vertical-align: top; max-width: calc(100% - 110px); }

/* attendance */
.mtg-tally { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--mut); margin-bottom: 12px; }
.mtg-tally b { color: var(--paper); font-family: var(--f-head); font-size: 16px; }
.mtg-fill { margin-bottom: 12px; }
.mtg-people { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.mtg-person {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.mtg-person-main { flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mtg-person-name { font-weight: 600; overflow-wrap: anywhere; margin-right: 2px; }
.mtg-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; gap: 2px; background: var(--panel2); }
.mtg-seg button {
  border: 0; background: transparent; color: var(--mut); cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.mtg-seg button:hover { color: var(--paper); }
.mtg-seg button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.mtg-seg button[aria-checked="true"].mtg-seg-present   { background: color-mix(in srgb, var(--st-done) 22%, transparent); color: var(--st-done-ink); }
.mtg-seg button[aria-checked="true"].mtg-seg-apologies { background: color-mix(in srgb, var(--st-client) 22%, transparent); color: var(--st-client-ink); }
.mtg-seg button[aria-checked="true"].mtg-seg-absent    { background: color-mix(in srgb, var(--st-cancel) 22%, transparent); color: var(--st-cancel-ink); }
.mtg-att-present { color: var(--st-done-ink); }
.mtg-att-apologies { color: var(--st-client-ink); }
.mtg-att-absent { color: var(--st-cancel-ink); }

/* modal form */
.mtg-modal { max-width: 640px; }
.mtg-form .field-row { flex-wrap: wrap; }
.mtg-pick-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.mtg-pick-bar .inp { flex: 1 1 160px; min-width: 0; }
.mtg-pick-list {
  max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 4px; background: var(--panel2);
}
.mtg-pick-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.mtg-pick-row:hover { background: var(--panel3); }
.mtg-pick-row[hidden] { display: none; }
.mtg-pick-row input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.mtg-pick-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mtg-share { display: grid; gap: 8px; }
.mtg-share-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%;
  padding: 11px 14px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  background: var(--panel2); border: 1px solid var(--line); color: var(--paper); font: inherit;
}
.mtg-share-row span { font-size: 12.5px; color: var(--mut); }
.mtg-share-row:hover:not([disabled]) { border-color: var(--line2); background: var(--panel3); }
.mtg-share-row[disabled] { opacity: .55; cursor: not-allowed; }
.mtg-share-row:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }

/* ----------------------------------------------------------- live mode */
.mtg-live { display: flex; flex-direction: column; min-height: calc(100vh - 120px); min-width: 0; }
.mtg-live-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 0; margin-bottom: 10px; background: var(--ink, transparent); border-bottom: 1px solid var(--line);
}
.mtg-live-t { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.mtg-live-title { font-family: var(--f-head); font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtg-timer {
  font-family: var(--f-head); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px;
  padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line);
}
.mtg-timer:empty { display: none; }
.mtg-timer.is-over { color: var(--danger-ink, var(--danger)); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.mtg-live-save { font-size: 12px; color: var(--faint); min-width: 60px; }
.mtg-live-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; flex: 1; }
.mtg-live-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 64px; }
.mtg-live-nav button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  padding: 7px 9px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent;
  color: var(--mut); font: inherit; font-size: 13px;
}
.mtg-live-nav button span[dir] { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mtg-live-nav button:hover { background: var(--panel2); color: var(--paper); }
.mtg-live-nav button[aria-current="true"] { background: var(--panel); border-color: var(--accent-line); color: var(--paper); font-weight: 600; }
.mtg-live-nav button:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.mtg-live-nav .mtg-no { min-width: 22px; height: 22px; font-size: 11.5px; }
.mtg-ln-done .mtg-no { background: color-mix(in srgb, var(--st-done) 30%, transparent); }
.mtg-ln-mark { color: var(--st-done-ink); }
.mtg-live-jump { display: none; }
.mtg-live-main { min-width: 0; }
.mtg-live-h { font-family: var(--f-head); font-size: 22px; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.mtg-live-main .mtg-mi { padding: 0; background: none; border: 0; }
.mtg-live-main .mtg-ta { min-height: 260px; font-size: 15px; }
.mtg-live-state { margin: 10px 0; }
.mtg-bg { margin: 10px 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.mtg-bg summary { cursor: pointer; font-weight: 600; color: var(--mut); }
.mtg-live-pn { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.mtg-live-add { margin-top: 14px; }
.mtg-live-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 0 4px; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .mtg-layout { grid-template-columns: minmax(0, 1fr); }
  .mtg-aside { position: static; }
}
@media (max-width: 760px) {
  .mtg-live-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mtg-live-nav ol { display: none; }
  .mtg-live-jump { display: block; width: 100%; }
  .mtg-live-main .mtg-ta { min-height: 200px; }
}
@media (max-width: 640px) {
  .dec-row.mtg-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 11px 12px; }
  .mtg-date { width: 46px; }
  .mtg-date-d { font-size: 18px; }
  .mtg-side {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
    gap: 6px 12px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line);
  }
  .mtg-stats { text-align: left; }
  .mtg-actions { justify-content: flex-start; }
  .mtg-tabs { display: flex; width: 100%; }
  .mtg-tabs [role="tab"] { flex: 1 1 auto; padding: 6px 7px; font-size: 12px; }
  .mtg-tabs .dec-tabn { margin-left: 2px; padding: 0 5px; }
  .mtg-tabs [data-tab="attendance"] .dec-tabn { display: none; }
  .mtg-item { flex-wrap: wrap; padding: 10px 12px; }
  .mtg-item-ctl { width: 100%; justify-content: flex-end; }
  .mtg-steps li { padding-right: 16px; font-size: 12px; }
  .mtg-steps li:not(:last-child)::after { right: 4px; width: 7px; }
  .mtg-person .mtg-seg { width: 100%; }
  .mtg-seg button { flex: 1; }
  .mtg-narrow { max-width: none; }
  .mtg-al-row .mtg-oc-body { display: block; max-width: none; margin-top: 4px; }
}

/* --------------------------------------------------------------- print
   printDoc() appends .mtg-print-root to <body> and sets html.mtg-printing:
   everything else is hidden, so the page prints as a clean document. */
.mtg-print-root { display: none; }
@media print {
  html.mtg-printing body > *:not(.mtg-print-root) { display: none !important; }
  html.mtg-printing, html.mtg-printing body { background: #fff !important; }
  html.mtg-printing .mtg-print-root { display: block !important; }
  .mtg-print-root { color: #111; font: 11pt/1.45 Georgia, 'Times New Roman', serif; }
  .mp { max-width: 100%; }
  .mp-head { border-bottom: 2px solid #111; padding-bottom: 8pt; margin-bottom: 12pt; }
  .mp-org { font: 600 9pt/1.2 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #555; }
  .mp h1 { font-size: 18pt; margin: 4pt 0 6pt; }
  .mp h2 { font-size: 12.5pt; margin: 14pt 0 4pt; page-break-after: avoid; }
  .mp h2 small { font-weight: 400; color: #555; }
  .mp-meta { margin: 0 0 2pt; color: #333; }
  .mp-items { padding-left: 18pt; }
  .mp-items li { margin-bottom: 8pt; page-break-inside: avoid; }
  .mp-it-meta { display: block; color: #555; font-size: 9.5pt; }
  .mp-notes { color: #333; font-size: 10pt; }
  .mp-draft { border: 1px solid #b45309; color: #b45309; padding: 4pt 8pt; display: inline-block; font: 600 9pt system-ui, sans-serif; }
  .mp-att p { margin: 2pt 0; }
  .mp-mi { page-break-inside: avoid; }
  .mp-ocs { margin: 4pt 0 0; padding-left: 16pt; }
  .mp-foot { margin-top: 18pt; padding-top: 6pt; border-top: 1px solid #999; color: #555; font-size: 9pt; }
  .mp a { color: #111; text-decoration: none; }
  .mp-table { width: 100%; border-collapse: collapse; font: 9.5pt/1.35 system-ui, sans-serif; }
  .mp-table th, .mp-table td { border: 1px solid #999; padding: 3pt 5pt; text-align: left; vertical-align: top; }
  .mp-table th { background: #eee; }
  .mp-table tr { break-inside: avoid; }
}
