/* ============================================================
   Parish CRM — design system
   Typography: Inter (300/400/500). Deep violet + liturgical gold.
   Hairline borders, generous whitespace, calm surfaces.
   ============================================================ */

:root {
  --violet-900: #2e1065;
  --violet-800: #4c1d95;
  --violet-700: #5b21b6;
  --violet-600: #6d28d9;
  --violet-100: #ede9fe;
  --violet-50:  #f5f3ff;
  --gold:       #c89b3c;
  --gold-soft:  #f4ecd8;

  --ink:     #1c1a26;
  --body:    #3f3d4b;
  --muted:   #8b8a98;
  --line:    #ececf1;
  --line-2:  #e3e2ea;
  --bg:      #f7f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfd;

  --ok-bg:#e9f9ef; --ok-fg:#1b7a43;
  --warn-bg:#fdf4e3; --warn-fg:#9a6a12;
  --bad-bg:#fdecec; --bad-fg:#b42323;
  --info-bg:#eaf2fd; --info-fg:#1f5fb0;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,18,38,.04), 0 8px 24px rgba(20,18,38,.05);
  --shadow-sm: 0 1px 2px rgba(20,18,38,.06);
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--violet-700); text-decoration: none; }
a:hover { color: var(--violet-600); }
h1,h2,h3,h4 { color: var(--ink); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
small { color: var(--muted); }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--violet-900), var(--violet-800));
  color: #d8d2ef;
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 22px 18px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold-soft);
  display: grid; place-items: center;
  color: var(--violet-800); flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-size: 15px; font-weight: 500; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub  { font-size: 11px; color: #b6abe0; letter-spacing: .08em; text-transform: uppercase; }

.nav { padding: 6px 12px 24px; flex: 1; }
.nav-section { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #9786cd; padding: 16px 12px 7px; font-weight: 500; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 9px;
  color: #cfc7ea; font-size: 14px; font-weight: 400;
  margin-bottom: 1px; transition: background .12s, color .12s;
}
.nav-link svg { width: 17px; height: 17px; opacity: .85; flex-shrink: 0; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.13); color: #fff; }
.nav-link.active svg { opacity: 1; }

.sidebar-foot { padding: 14px 18px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { font-size: 13px; color: #d8d2ef; }
.sidebar-user b { color: #fff; font-weight: 500; display: block; }
.sidebar-foot a { color: #b6abe0; font-size: 12.5px; }
.sidebar-foot a:hover { color: #fff; }

/* ---------- Main column ---------- */
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-size: 16px; font-weight: 500; color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }

.content { padding: 28px; max-width: 1200px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 14px; font-weight: 400;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--body);
  cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); border-color: #d3d2dc; color: var(--ink); }
.btn-primary { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.btn-primary:hover { background: var(--violet-800); border-color: var(--violet-800); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3a2c06; }
.btn-gold:hover { background: #b88c2f; border-color:#b88c2f; color:#3a2c06; }
.btn-danger { color: var(--bad-fg); border-color: #f3d3d3; background: #fff; }
.btn-danger:hover { background: var(--bad-bg); border-color: #efc2c2; color: var(--bad-fg); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Cards / panels ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-head {
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { font-size: 15px; font-weight: 500; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .lead { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* ---------- Stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--violet-600); opacity:.0; }
.stat .stat-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; display: flex; align-items: center; gap: 7px; }
.stat .stat-label svg { width: 15px; height: 15px; color: var(--violet-600); }
.stat .stat-value { font-size: 28px; font-weight: 300; color: var(--ink); letter-spacing: -0.02em; margin-top: 8px; line-height: 1; }
.stat .stat-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat.gold .stat-value { color: var(--violet-800); }
.stat.danger .stat-label svg { color: var(--bad-fg); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-weight: 500; color: var(--muted);
  font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .strong { color: var(--ink); font-weight: 500; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; opacity: .4; margin-bottom: 10px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #f1f0f5; color: var(--body); }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.bad { background: var(--bad-bg); color: var(--bad-fg); }
.badge.info { background: var(--info-bg); color: var(--info-fg); }
.badge.muted { background:#f1f0f5; color: var(--muted); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); width: 100%; transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder, .field textarea::placeholder { color: #b6b5c0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet-600); box-shadow: 0 0 0 3px var(--violet-100);
}
.field textarea { resize: vertical; min-height: 84px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--violet-600); box-shadow: 0 0 0 3px var(--violet-100); }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); border-right: 1px solid var(--line-2); font-size: 14px; }
.input-prefix input { border: none !important; box-shadow: none !important; border-radius: 0 !important; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); cursor: pointer; }
.check input { width: auto; }
.channel-row { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0; }

/* ---------- Flash ---------- */
.flash-stack { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; }
.flash svg { width: 18px; height: 18px; flex-shrink: 0; }
.flash.success { background: var(--ok-bg); color: var(--ok-fg); border-color: #c6ecd4; }
.flash.error { background: var(--bad-bg); color: var(--bad-fg); border-color: #f3cece; }
.flash.info { background: var(--info-bg); color: var(--info-fg); border-color: #cfe0f6; }

/* ---------- Detail / definition lists ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 26px; }
.detail .k { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.detail .v { font-size: 14.5px; color: var(--ink); margin-top: 2px; }

.section-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.section-tabs a.active { color: var(--violet-700); border-bottom-color: var(--violet-700); font-weight: 500; }

/* ---------- Family tree (signature element) ---------- */
.tree-scroll { overflow-x: auto; padding: 10px 4px 30px; }
.tree { display: flex; justify-content: center; min-width: max-content; padding-top: 8px; }
.tree ul { display: flex; justify-content: center; padding-top: 26px; position: relative; margin: 0; list-style: none; }
.tree li {
  list-style: none; text-align: center; position: relative;
  padding: 26px 14px 0; display: flex; flex-direction: column; align-items: center;
}
/* connectors */
.tree li::before, .tree li::after {
  content: ''; position: absolute; top: 0; right: 50%;
  width: 50%; height: 26px; border-top: 1.5px solid var(--line-2);
}
.tree li::after { right: auto; left: 50%; border-left: 1.5px solid var(--line-2); }
.tree li:only-child::after, .tree li:only-child::before { display: none; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 1.5px solid var(--line-2); border-radius: 0 6px 0 0; }
.tree li:first-child::after { border-radius: 6px 0 0 0; }
.tree ul ul::before {
  content: ''; position: absolute; top: 0; left: 50%;
  border-left: 1.5px solid var(--line-2); width: 0; height: 26px;
}
.tree-node {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 12px; padding: 12px 16px; min-width: 132px;
  box-shadow: var(--shadow-sm); position: relative;
}
.tree-node .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 500;
  background: var(--violet-100); color: var(--violet-800); margin-bottom: 2px;
}
.tree-node.f .avatar { background: #fde7f1; color: #9d2c63; }
.tree-node.deceased { opacity: .62; }
.tree-node.deceased .avatar { background: #eceaf0; color: #6b6878; }
.tree-node .nm { font-size: 13.5px; color: var(--ink); font-weight: 500; line-height: 1.2; }
.tree-node .rel { font-size: 11.5px; color: var(--muted); }
.tree-node .cross { position: absolute; top: 6px; right: 9px; color: var(--muted); font-size: 11px; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(109,40,217,.10), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(200,155,60,.10), transparent 55%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 392px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px 32px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-mark { width: 40px; height: 40px; background: var(--violet-800); color: var(--gold-soft); }
.auth-brand .brand-mark svg { width: 22px; height: 22px; }
.auth-title { font-size: 20px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.auth-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

/* ---------- Payment ---------- */
.pay-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.qr-box { display: grid; place-items: center; gap: 14px; padding: 26px; text-align: center; }
.qr-canvas { background:#fff; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.pay-amount { font-size: 34px; font-weight: 300; color: var(--ink); letter-spacing: -0.02em; }
.vpa-pill { font-size: 13px; background: var(--violet-50); color: var(--violet-800); padding: 6px 12px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; }
.or-split { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin: 4px 0; }
.or-split::before, .or-split::after { content:""; height:1px; flex:1; background: var(--line); }

/* ---------- Misc ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search input { width: 100%; }
.count-pill { font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.inline-form { display: inline; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .content { padding: 20px 16px; }
  .scrim { position: fixed; inset: 0; background: rgba(20,18,38,.4); z-index: 39; display: none; }
  .scrim.show { display: block; }

  /* tables → stacked cards */
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 6px 4px; }
  table.data td { border: none; display: flex; justify-content: space-between; gap: 14px; padding: 8px 14px; text-align: right; }
  table.data td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .row-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--violet-600); outline-offset: 2px; }

/* ============================================================
   Enhancements: avatars, photo fields, grouped members,
   breadcrumbs, footer, settings switches
   ============================================================ */

/* ---- Avatars (photo or initials) ---- */
.avatar-photo, .avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: var(--violet-100); color: var(--violet-800);
  border: 1px solid var(--line-2);
}
.avatar-initials.f { background: #fde7f1; color: #9d2c63; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell-with-avatar { display: flex; align-items: center; gap: 10px; }

/* ---- Photo upload field ---- */
.photo-field { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-field .avatar-photo, .photo-field .avatar-initials { box-shadow: var(--shadow-sm); }
.photo-field-controls { display: flex; flex-direction: column; gap: 8px; }
.photo-field-controls input[type=file] { font-size: 13px; }

/* ---- Members grouped by family ---- */
.fam-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden;
}
.fam-group > summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface-2);
}
.fam-group > summary::-webkit-details-marker { display: none; }
.fam-group[open] > summary { border-bottom: 1px solid var(--line); }
.fam-group-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fam-group-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; flex-wrap: wrap; }
.fam-group-name a { color: var(--ink); }
.fam-group-name a:hover { color: var(--violet-700); }
.fam-group-sub { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.fam-group-sub span { display: inline-flex; align-items: center; gap: 5px; }
.fam-group-sub svg { width: 13px; height: 13px; }
.fam-group-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.fam-group-caret { width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--muted); transition: transform .2s; }
.fam-group-caret::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.fam-group[open] .fam-group-caret { transform: rotate(180deg); }

/* ---- Breadcrumbs + back ---- */
.crumbbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.back-btn svg { width: 15px; height: 15px; }
.crumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.crumbs .crumb { color: var(--muted); }
.crumbs a.crumb:hover { color: var(--violet-700); }
.crumbs .crumb.cur { color: var(--ink); font-weight: 500; }
.crumbs .crumb-sep { color: var(--line-2); }

/* ---- App footer credit ---- */
.app-footer {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 36px 0 6px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.app-footer svg { width: 16px; height: 16px; color: var(--violet-700); }
.app-footer strong { color: var(--violet-800); font-weight: 600; }

/* ---- Settings graphical config ---- */
.settings-card { margin-bottom: 18px; }
.settings-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.settings-card h3 .badge { margin-left: 4px; }
.settings-card hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.status-row { display: flex; gap: 24px; flex-wrap: wrap; }
.status-row > div { display: inline-flex; align-items: center; gap: 7px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--body); cursor: pointer; margin-bottom: 14px; }
.switch input { width: auto; }
.switch span { display: inline-flex; align-items: center; gap: 6px; }
.settings-save { position: sticky; bottom: 0; padding: 14px 0; }

/* ---- Tree avatars (photo support) ---- */
.tree-node .avatar-photo, .tree-node .avatar-initials { margin-bottom: 2px; }

/* ---- Icon sizing safety net (icons carry intrinsic 1em; pin the new contexts) ---- */
.content svg { flex: none; }
.settings-card h3 svg { width: 18px; height: 18px; color: var(--violet-700); }
.settings-card h3 .badge { font-size: 12px; }
.settings-card h3 .badge svg { width: 12px; height: 12px; }
.status-row svg { width: 16px; height: 16px; color: var(--violet-600); }
.switch span svg { width: 15px; height: 15px; color: var(--violet-600); }
.crumbs svg { width: 14px; height: 14px; }
.crumbbar .back-btn svg { width: 15px; height: 15px; }
.fam-group-actions svg { width: 15px; height: 15px; }
.fam-group-sub svg { width: 13px; height: 13px; }
/* Avatar guards (inline styles already enforce size; these are fallbacks) */
.avatar-photo, .avatar-initials { vertical-align: middle; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
