:root{--ui-sidebar:256px;--ui-topbar:72px;--ui-bg:#f4f6fa;--ui-panel:#fff;--ui-panel-2:#f8fafc;--ui-line:#e6eaf0;--ui-text:#182033;--ui-muted:#738096;--ui-accent:#5b6cf9;--ui-accent-2:#7c5cff;--ui-nav:#0d1321;--ui-nav-hover:#182236;--ui-shadow:0 8px 30px rgba(16,24,40,.06)}[data-bs-theme=dark]{--ui-bg:#080d18;--ui-panel:#101827;--ui-panel-2:#141e30;--ui-line:#243047;--ui-text:#f2f5fa;--ui-muted:#93a1b7;--ui-nav:#070b13;--ui-nav-hover:#151f31;--ui-shadow:none}.app-authenticated{background:var(--ui-bg)}.sidebar{width:var(--ui-sidebar)!important;padding:16px 12px!important;background:var(--ui-nav)!important;box-shadow:none!important;border-right:1px solid rgba(255,255,255,.06)!important}.sidebar-brand{padding:7px 8px 20px!important}.sidebar-brand-mark{width:38px!important;height:38px!important;border-radius:11px!important;background:linear-gradient(135deg,var(--ui-accent),var(--ui-accent-2))!important;box-shadow:0 8px 20px rgba(91,108,249,.28)!important}.sidebar-brand-name{font-size:1rem!important}.sidebar-brand-subtitle{font-size:.68rem!important}.app-nav-link{min-height:40px!important;border-radius:10px!important;padding:8px 10px!important;font-size:.875rem!important}.app-nav-link.active{background:rgba(91,108,249,.16)!important;border-color:rgba(124,92,255,.16)!important;box-shadow:none!important}.app-nav-link.active:before{content:"";position:absolute;left:-12px;width:3px;height:22px;border-radius:0 4px 4px 0;background:linear-gradient(var(--ui-accent),var(--ui-accent-2))}.nav-section-title{font-size:.62rem!important;letter-spacing:.12em!important;padding:0 10px 6px!important}.sidebar-actions{margin-top:12px!important}.sidebar-user{padding:13px 8px 2px!important}.main-content{margin-left:var(--ui-sidebar)!important;padding:0!important;min-height:100vh}.workspace-topbar{height:var(--ui-topbar);position:sticky;top:0;z-index:1010;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 clamp(20px,2.5vw,36px);background:color-mix(in srgb,var(--ui-panel) 90%,transparent);border-bottom:1px solid var(--ui-line);backdrop-filter:blur(18px)}.workspace-heading{min-width:0}.workspace-kicker{font-size:.68rem;text-transform:uppercase;letter-spacing:.12em;font-weight:750;color:var(--ui-muted)}.workspace-title{margin:1px 0 0;font-size:1.06rem;font-weight:740;color:var(--ui-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.workspace-action{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--ui-line);border-radius:10px;color:var(--ui-muted);background:var(--ui-panel);text-decoration:none}.workspace-action:hover{color:var(--ui-accent);border-color:color-mix(in srgb,var(--ui-accent) 35%,var(--ui-line));background:var(--ui-panel-2)}.workspace-primary{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 13px;border-radius:10px;background:linear-gradient(135deg,var(--ui-accent),var(--ui-accent-2));color:#fff;text-decoration:none;font-size:.82rem;font-weight:700;box-shadow:0 8px 20px rgba(91,108,249,.18)}.workspace-primary:hover{color:#fff;filter:brightness(1.03)}.content-frame{max-width:1580px!important;padding:28px clamp(20px,2.5vw,36px) 44px!important}.page-heading{margin-bottom:20px!important}.page-heading h1{font-size:1.55rem!important;font-weight:760!important;letter-spacing:-.035em!important}.page-heading p{font-size:.9rem!important;margin-top:5px!important}.card,.metric-card,.pair-card,.participant-row,.stats-grid>div{border-radius:14px!important;border-color:var(--ui-line)!important;background:var(--ui-panel)!important;box-shadow:none!important}.card-header{min-height:48px!important;padding:12px 16px!important;font-size:.9rem!important;border-bottom-color:var(--ui-line)!important}.card-body{padding:16px!important}.metric-card{padding:16px!important}.metric-card:after{display:none!important}.metric-link:hover{transform:none!important;box-shadow:var(--ui-shadow)!important;border-color:color-mix(in srgb,var(--ui-accent) 30%,var(--ui-line))!important}.metric-value{font-size:1.65rem!important}.metric-label{font-size:.75rem!important}.dashboard-kpi-grid{row-gap:12px!important}.dashboard-kpi-grid .col-xl-2{flex:0 0 16.666667%!important;max-width:16.666667%!important}.dashboard-filter{background:var(--ui-panel-2)!important}.table thead th{height:42px;background:var(--ui-panel-2)!important;font-size:.68rem!important;letter-spacing:.055em!important;text-transform:uppercase!important}.table>:not(caption)>*>*{padding:.72rem .82rem!important}.table tbody tr{transition:background-color .12s ease}.table tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 5%,transparent)}.form-control,.form-select,.input-group-text{min-height:40px!important;border-radius:9px!important}.btn{min-height:37px!important;border-radius:9px!important;font-size:.82rem!important}.badge{border-radius:7px!important}.alert{border-radius:11px!important}.auth-stage{width:min(100%,980px)!important}.auth-card{max-width:480px!important}.auth-shell:before{opacity:.8}.offcanvas{--bs-offcanvas-width:286px}.app-mobile-nav{background:var(--ui-nav)!important}.card.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.card.border-danger{border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity,1))!important}@media(max-width:1399.98px){.dashboard-kpi-grid .col-xl-2{flex:0 0 25%!important;max-width:25%!important}}@media(max-width:991.98px){.main-content{margin-left:0!important}.workspace-topbar{height:60px;padding:0 16px}.content-frame{padding:20px 16px 34px!important}.workspace-primary span{display:none}.dashboard-kpi-grid .col-xl-2{flex:0 0 33.333333%!important;max-width:33.333333%!important}}@media(max-width:767.98px){.workspace-topbar{top:57px}.workspace-kicker{display:none}.workspace-title{font-size:.95rem}.dashboard-kpi-grid .col-xl-2{flex:0 0 50%!important;max-width:50%!important}.page-heading{gap:12px!important}.page-heading .d-flex{width:100%}.page-heading .d-flex .btn{flex:1}}@media(max-width:420px){.workspace-actions .workspace-action:nth-child(2){display:none}.content-frame{padding-left:12px!important;padding-right:12px!important}.dashboard-kpi-grid{--bs-gutter-x:.6rem}.metric-card{padding:13px!important}.metric-value{font-size:1.45rem!important}}

/* Families: desktop list presentation belongs to interface-v2. Keep these selectors
   more specific than legacy family fixes so the list uses the same V2 table UI
   as Volunteers without changing the mobile card layout. */
@media (min-width: 768px) {
  html body [data-family-inline-root] > .card > .table-responsive > table.table[data-table-filters] thead th {
    height: 42px !important;
    background: var(--ui-panel-2) !important;
    font-size: .68rem !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
  }

  html body [data-family-inline-root] > .card > .table-responsive > table.table[data-table-filters] > :not(caption) > * > * {
    padding: .72rem .82rem !important;
  }

  html body [data-family-inline-root] > .card > .table-responsive > table.table[data-table-filters] tbody tr {
    transition: background-color .12s ease;
  }

  html body [data-family-inline-root] > .card > .table-responsive > table.table[data-table-filters] tbody tr:hover {
    background: color-mix(in srgb, var(--ui-accent) 5%, transparent) !important;
  }
}
