/* matters.css — Matters & team */
.td-primary { color: var(--text); font-weight: 500; font-family: var(--serif); font-size: 14px; }
.td-mono { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

tr.active-matter { background: rgba(212,168,87,0.04); }
tr.active-matter td:first-child { box-shadow: inset 2px 0 0 var(--gold); }

.row-action {
  font-size: 10px; font-family: var(--mono);
  color: var(--text-3); cursor: pointer; margin-left: 10px;
  padding: 3px 7px; border-radius: 4px; border: 1px solid transparent;
  white-space: nowrap;
}
.row-action:hover { color: var(--cyan); border-color: var(--border-bright); }
.row-action.danger:hover { color: var(--red); border-color: rgba(224,98,92,0.3); }

.field-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.field-row:last-child { border-bottom: none; }

.user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.user-row:last-child { border-bottom: none; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--text); flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; color: var(--text); font-weight: 500; font-family: var(--serif); }
.user-mail { font-size: 11px; color: var(--text-3); font-family: var(--mono); }

.role-badge {
  font-size: 10px; padding: 3px 8px; border-radius: 4px;
  font-family: var(--mono);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
.role-admin        { background: rgba(212,168,87,0.1);  color: var(--gold);   border: 1px solid rgba(212,168,87,0.2); }
.role-counsel      { background: rgba(167,139,217,0.1); color: var(--violet); border: 1px solid rgba(167,139,217,0.2); }
.role-reviewer     { background: rgba(94,200,214,0.08); color: var(--cyan);   border: 1px solid rgba(94,200,214,0.15); }
.role-paralegal    { background: rgba(255,255,255,0.04);color: var(--text-2); border: 1px solid var(--border); }
.role-investigator { background: rgba(109,207,163,0.1); color: var(--green);  border: 1px solid rgba(109,207,163,0.2); }

/* ---------- What an upload held, by kind (js/intake-summary.js) ---------- */
.ix-mix { margin: 2px 0 14px; }
.ix-mix:empty { display: none; }
.ix-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ix-tabs button {
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.ix-tabs button.on { color: var(--gold-bright); border-color: var(--border-gold); background: rgba(201,169,98,.06); }
.ix-tabs button:focus-visible, .ix-key:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ix-title { font: 500 12.5px/1.3 var(--sans); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-total { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--text-2); white-space: nowrap; }
.ix-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-2); margin-bottom: 10px; }
.ix-seg { display: block; min-width: 0; }
.ix-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
.ix-key {
  display: grid; grid-template-columns: 10px 1fr auto 34px; align-items: center; gap: 8px;
  background: transparent; border: 0; border-radius: 6px; padding: 5px 6px; cursor: pointer;
  text-align: left; color: var(--text-2); font: 12px/1.25 var(--sans);
}
.ix-key:hover { background: var(--surface-2); color: var(--text); }
.ix-sw { width: 10px; height: 10px; border-radius: 3px; }
.ix-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-n { font: 500 12px/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.ix-pct { font: 10px/1 var(--mono); color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.ix-note { font: 11.5px/1.45 var(--sans); color: var(--text-3); margin-top: 6px; }
.ix-note b { color: var(--text-2); font-weight: 500; }
.ix-note.warn b { color: var(--amber); }
.ix-empty { font: italic 12px/1.4 var(--sans); color: var(--text-3); }
