/* ================================================================
   CLIENTS & MATTERS MODULE
================================================================ */

/* ── Obligation cards ─────────────────────────────────────── */
.obligation-card {
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.obligation-card.urgency-amber {
  border-left: 3px solid #B5651D;
}
.obligation-card.urgency-high {
  border-left: 3px solid #C0392B;
}
.obligation-card.urgency-critical {
  border-left: 3px solid #C0392B;
  background: #FDF0EE;
}

/* Intelligence action cards */
.intel-action-card {
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s;
}
.intel-action-card:hover {
  border-color: var(--gold);
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}
.client-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--t);
}
.client-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.client-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--gold-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; color: var(--gold);
  font-weight: 600; margin-bottom: 0.85rem;
}
.client-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.client-matters-count { font-size: 0.8125rem; color: var(--muted); margin-top: 0.2rem; }

/* Client table view — primary layout from 2026-04-30. Replaces the
   .client-grid card layout above; that ruleset is retained for any
   future card-style surface (e.g. dashboard widgets) that wants to
   reuse the look. Mobile collapse handled by the @media block at
   the bottom of this file (table rows reflow as stacked cards). */
.client-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: auto;
}
.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.client-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.client-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.client-table thead th.sortable:hover { color: var(--ink); }
.client-table thead th .sort-arrow {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.65rem;
  opacity: 0.5;
}
.client-table thead th.sort-active { color: var(--gold-2); }
.client-table thead th.sort-active .sort-arrow { opacity: 1; }
.client-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.client-table tbody tr:hover { background: var(--gold-bg); }
.client-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--ink);
}
.client-table tbody tr:last-child td { border-bottom: none; }
.client-table .col-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.client-table .col-name .client-avatar {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.client-table .col-name-text {
  min-width: 0;
}
.client-table .col-name-text strong {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-table .col-name-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-table .col-contact {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.4;
}
.client-table .col-contact a {
  color: var(--mid);
  text-decoration: none;
}
.client-table .col-contact a:hover { color: var(--gold-2); }
.client-table .col-cases {
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-weight: 500;
}
.client-table .col-cases .total { color: var(--muted); font-weight: 400; margin-left: 0.25rem; font-size: 0.78rem; }
.client-table .col-activity {
  font-size: 0.8125rem;
  color: var(--mid);
  white-space: nowrap;
}
.client-table .col-source { font-size: 0.78rem; color: var(--mid); }

/* Client detail tabs */
.client-detail-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.client-detail-tab {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.client-detail-tab:hover { color: var(--ink); }
.client-detail-tab.active {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}
.client-detail-tab .tab-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  vertical-align: middle;
}
.client-detail-tab.active .tab-badge {
  background: var(--gold-bg);
  color: var(--gold-2);
}
.client-detail-panel { display: none; }
.client-detail-panel.active { display: block; }
.client-detail-panel-stub {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--muted);
}
.client-detail-panel-stub-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.client-detail-panel-stub-body {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 28rem;
  margin: 0 auto;
}

/* Meetings tab — past + upcoming feed across all of this client's cases */
.mtg-section { margin-bottom: 1.5rem; }
.mtg-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-soft);
}
.mtg-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-md);
  transition: background 0.12s;
}
.mtg-row[onclick] { cursor: pointer; }
.mtg-row[onclick]:hover { background: var(--gold-bg); }
.mtg-row-icon {
  width: 2rem; height: 2rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-bg);
  color: var(--gold-2);
  border-radius: var(--r-sm);
}
.mtg-row-body { min-width: 0; flex: 1; }
.mtg-row-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.mtg-row-time { font-weight: 500; color: var(--mid); }
.mtg-row-matter::before { content: '·'; margin-right: 0.4rem; color: var(--border); }
.mtg-row-matter { color: var(--mid); }
.mtg-row-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.mtg-row-detail {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.5;
}

/* Notes tab — single editable note bound to clients.notes (v1).
   v2 will replace this with a timestamped client_notes table once
   the schema is decided. */
.client-notes-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 56rem;
}
.client-notes-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.client-notes-status {
  font-style: italic;
  transition: opacity 0.2s;
}
.client-notes-status.dirty { color: var(--gold-2); font-style: normal; }
.client-notes-status.saving { color: var(--mid); font-style: normal; }
.client-notes-status.saved { color: var(--muted); }
.client-notes-textarea {
  width: 100%;
  min-height: 22rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s;
}
.client-notes-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.client-notes-textarea::placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Activity timeline — chronological feed grouped by day */
.activity-day { margin-bottom: 1.5rem; }
.activity-day-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-soft);
}
.activity-row {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
}
.activity-row:hover { background: var(--surface); }
.activity-row-icon {
  width: 1.65rem; height: 1.65rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-bg);
  color: var(--gold-2);
  border-radius: var(--r-sm);
}
.activity-row-body { min-width: 0; flex: 1; }
.activity-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.activity-row-detail { color: var(--mid); font-weight: 500; }
.activity-row-matter::before { content: '·'; margin-right: 0.4rem; color: var(--border); }
.activity-row-matter { color: var(--mid); }
.activity-row-time::before { content: '·'; margin-right: 0.4rem; color: var(--border); }
.activity-row-time { margin-left: auto; }
.activity-row-title {
  font-size: 0.875rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Documents tab — uploads + drafts merged across this client's cases */
.client-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.client-docs-table thead th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.client-docs-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}
.client-docs-table tbody tr:hover { background: var(--gold-bg); }
.client-docs-table tbody td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  color: var(--ink);
}
.client-docs-table tbody tr:last-child td { border-bottom: none; }
.docs-icon-cell { width: 1.5rem; padding-right: 0; color: var(--gold-2); }
.docs-title-cell {
  font-weight: 500;
  max-width: 24rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-meta-cell { font-size: 0.78rem; color: var(--mid); white-space: nowrap; }
.docs-time-cell { font-size: 0.8125rem; color: var(--mid); white-space: nowrap; }

/* Mobile: collapse table rows to stacked cards below 720px. */
@media (max-width: 720px) {
  .client-table-wrap { border: none; background: none; }
  .client-table thead { display: none; }
  .client-table, .client-table tbody, .client-table tr, .client-table td {
    display: block;
    width: 100%;
  }
  .client-table tbody tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 0.6rem;
    padding: 0.85rem;
  }
  .client-table tbody td {
    padding: 0.25rem 0;
    border-bottom: none;
  }
  .client-table .col-cases { text-align: left; }
}

/* Matter detail */
.matter-detail-grid {
  display: block;
  flex: 1;
  min-height: 0;
  position: relative;
}
/* Lex chat floating button */
.matter-lex-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  height: 2.75rem;
  padding: 0 1rem 0 0.75rem;
  border-radius: 1.5rem;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.matter-lex-fab:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.lex-fab-label {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Lex chat drawer */
.matter-lex-drawer {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 22rem;
  height: 28rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 51;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.matter-lex-drawer.hidden { display: none; }
.matter-lex-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

/* Hide old tabs — keep selectors for backward compat */
.matter-tabs { display: none; }
.matter-tab { display: none; }

.doc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.doc-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.doc-icon { color: var(--muted); flex-shrink: 0; }
.doc-name { flex: 1; font-size: 0.875rem; color: var(--ink); }
.doc-size { font-size: 0.75rem; color: var(--muted); }
.doc-actions { display: flex; gap: 0.25rem; }
.doc-action-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0.25rem;
  border-radius: var(--r-sm); transition: color var(--t);
}
.doc-action-btn:hover { color: var(--gold); }

/* ── Folder toolbar & breadcrumb ─────────────────────────────── */
.folder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-2);
  width: 100%;
  flex-wrap: wrap;
}
.folder-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; flex-wrap: wrap; min-width: 0;
}
.folder-breadcrumb .crumb {
  color: var(--muted); cursor: pointer;
  padding: 0.2rem 0.4rem; border-radius: var(--r-sm);
  transition: all var(--t);
}
.folder-breadcrumb .crumb:hover { color: var(--ink); background: var(--surface); }
.folder-breadcrumb .crumb.active { color: var(--ink); font-weight: 500; }
.folder-breadcrumb .crumb-sep { color: var(--muted); }
.folder-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }

/* ── Folder grid ─────────────────────────────────────────────── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.folder-grid:empty { display: none; }
.folder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--t);
  position: relative;
}
.folder-card:hover { border-color: var(--gold); background: var(--gold-bg); }
.folder-card-icon {
  color: var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.folder-card-name {
  flex: 1; font-size: 0.8125rem; font-weight: 500;
  color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.folder-card-count { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; }
.folder-card-menu {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0.2rem;
  border-radius: var(--r-sm);
  opacity: 0; transition: opacity var(--t);
}
.folder-card:hover .folder-card-menu { opacity: 1; }
.folder-card-menu:hover { color: var(--ink); background: var(--white); }

.doc-list-items { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Doc item kebab menu ─────────────────────────────────────── */
.doc-item { position: relative; }
.doc-kebab-menu {
  position: absolute; right: 0.5rem; top: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 11rem; z-index: 30; padding: 0.3rem 0;
}
.doc-kebab-item {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem; color: var(--ink);
  cursor: pointer; transition: background var(--t);
  display: flex; align-items: center; gap: 0.5rem;
}
.doc-kebab-item:hover { background: var(--surface); }
.doc-kebab-item.danger { color: var(--danger); }

/* ── Trash list ──────────────────────────────────────────────── */
.trash-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.5rem;
}
.trash-item-name { flex: 1; font-size: 0.8125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-item-meta { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; }
.trash-item-actions { display: flex; gap: 0.3rem; }

/* ── Bill of Fees calculator ─────────────────────────────────── */
.bill-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
}
.bill-section-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.bill-section-title {
  flex: 1; font-size: 0.875rem; font-weight: 500;
  background: transparent; border: none; outline: none;
  border-bottom: 1px dashed transparent;
  padding: 0.2rem 0;
}
.bill-section-title:hover, .bill-section-title:focus {
  border-bottom-color: var(--gold-dim);
}
.bill-section-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0.2rem;
}
.bill-section-remove:hover { color: var(--danger); }

.bill-line-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.8125rem;
}
.bill-line-table th {
  text-align: left; padding: 0.3rem 0.4rem;
  font-size: 0.7rem; color: var(--muted);
  font-weight: 500; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.bill-line-table th.num, .bill-line-table td.num { text-align: right; }
.bill-line-table td { padding: 0.3rem 0.2rem; vertical-align: middle; }
.bill-line-table input {
  width: 100%; border: none; background: transparent;
  font-size: 0.8125rem; padding: 0.3rem 0.4rem;
  border-radius: var(--r-sm);
}
.bill-line-table input:focus { background: var(--white); outline: 1px solid var(--gold-dim); }
.bill-line-table input.num { text-align: right; font-variant-numeric: tabular-nums; }
.bill-line-table .col-desc { width: 50%; }
.bill-line-table .col-qty  { width: 12%; }
.bill-line-table .col-rate { width: 18%; }
.bill-line-table .col-amt  { width: 18%; }
.bill-line-table .col-rm   { width: 2%; }
.bill-line-amount { font-weight: 500; color: var(--ink); }
.bill-line-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 0.2rem; line-height: 1;
}
.bill-line-remove:hover { color: var(--danger); }
.bill-min-warn { font-size: 0.75rem; color: #E65100; margin-top: 0.2rem; font-weight: 500; }
.bill-min-warn.hidden { display: none; }
.bill-section-subtotal {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.4rem 0;
  margin-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.bill-section-subtotal-label { color: var(--muted); }
.bill-section-subtotal-amt { font-weight: 600; font-variant-numeric: tabular-nums; }

.bill-summary {
  background: var(--gold-bg);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.bill-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.bill-summary-row.bill-total {
  border-top: 2px solid var(--gold);
  margin-top: 0.4rem; padding-top: 0.6rem;
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink);
}

/* Document generation menu */
.doc-gen-item {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t);
}
.doc-gen-item:hover { background: var(--surface); }

/* ── Meeting recording progress UI ───────────────────────────── */
.mtg-row { display:flex; flex-direction:column; gap:0.4rem; padding:0.6rem 0; border-top:1px solid var(--border-2); }
.mtg-row-head { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.mtg-row-title { flex:1; min-width:0; }
.mtg-row-title-text { font-size:0.8125rem; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtg-row-meta { font-size:0.75rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtg-row-actions { display:flex; align-items:center; gap:0.4rem; flex-shrink:0; }
.mtg-phase { display:flex; align-items:center; gap:0.5rem; font-size:0.75rem; color:var(--mid); }
.mtg-phase-dot { width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0; }
.mtg-phase-dot.live { background:#dc2626; animation:mtg-pulse 1.4s ease-in-out infinite; }
.mtg-phase-dot.done { background:#2E7D52; animation:none; }
.mtg-phase-dot.failed { background:var(--danger); animation:none; }
@keyframes mtg-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.mtg-elapsed { color:var(--muted); font-variant-numeric:tabular-nums; }
.mtg-progress { height:3px; background:var(--border-2); border-radius:999px; overflow:hidden; position:relative; }
.mtg-progress::after { content:""; position:absolute; left:0; top:0; bottom:0; width:35%; background:linear-gradient(90deg, transparent, var(--gold), transparent); border-radius:999px; animation:mtg-slide 1.6s ease-in-out infinite; }
@keyframes mtg-slide { 0%{transform:translateX(-100%)} 100%{transform:translateX(285%)} }
.mtg-warn { font-size:0.7rem; color:var(--danger); padding:0.35rem 0.5rem; background:rgba(220,38,38,0.06); border-radius:var(--r-sm); }


/* ── Meeting recording progress UI ───────────────────────────── */
.mtg-row { display:flex; flex-direction:column; gap:0.4rem; padding:0.6rem 0; border-top:1px solid var(--border-2); }
.mtg-row-head { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.mtg-row-title { flex:1; min-width:0; }
.mtg-row-title-text { font-size:0.8125rem; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtg-row-meta { font-size:0.75rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mtg-row-actions { display:flex; align-items:center; gap:0.4rem; flex-shrink:0; }
.mtg-phase { display:flex; align-items:center; gap:0.5rem; font-size:0.75rem; color:var(--mid); }
.mtg-phase-dot { width:6px; height:6px; border-radius:50