
#cmseWebShellRoot {
      --cmse-navy: #173f63;
      --cmse-navy-dark: #102f4b;
      --cmse-bg: #f3f6fa;
      --cmse-panel: #ffffff;
      --cmse-border: #d8dee7;
      --cmse-text: #182132;
      --cmse-muted: #6b7485;
      --cmse-success: #0f6f54;
      --cmse-danger: #a32929;
      --cmse-shadow: 0 8px 28px rgba(20, 40, 70, 0.08);
    }

    #cmseWebShellRoot,
    #cmseWebShellRoot * {
      box-sizing: border-box;
    }

    #cmseWebShellRoot {
      margin: 0;
      min-height: 100%;
      font-family:
        Arial,
        Helvetica,
        sans-serif;
      background:
        var(--cmse-bg);
      color:
        var(--cmse-text);
    }

    #cmseWebShellRoot {
      min-height: 100vh;
    }

    #cmseWebShellRoot .shell {
      display: grid;
      grid-template-columns: 270px minmax(0, 1fr);
      min-height: 100vh;
    }

    #cmseWebShellRoot .sidebar {
      background:
        var(--cmse-navy);
      color:
        #ffffff;
      padding:
        24px 18px;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    #cmseWebShellRoot .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding:
        0 8px 24px;
      border-bottom:
        1px solid rgba(255,255,255,0.16);
    }

    #cmseWebShellRoot .brand-mark {
      width: 64px;
      height: 64px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      background:
        #ffffff;
      color:
        var(--cmse-navy);
      font-weight: 800;
      font-size: 22px;
      letter-spacing: 1px;
      flex: 0 0 auto;
    }

    #cmseWebShellRoot .brand-text strong {
      display: block;
      font-size: 17px;
      line-height: 1.2;
    }

    #cmseWebShellRoot .brand-text span {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      color:
        rgba(255,255,255,0.72);
    }

    #cmseWebShellRoot .nav {
      padding-top: 22px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    #cmseWebShellRoot .nav-button {
      width: 100%;
      appearance: none;
      border: 0;
      border-radius: 10px;
      background:
        transparent;
      color:
        rgba(255,255,255,0.88);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      text-align: left;
      padding:
        13px 14px;
      cursor: pointer;
      transition:
        background 0.15s ease,
        color 0.15s ease;
    }

    #cmseWebShellRoot .nav-button:hover,
    #cmseWebShellRoot .nav-button.active {
      background:
        rgba(255,255,255,0.14);
      color:
        #ffffff;
    }

    #cmseWebShellRoot .sidebar-footer {
      margin-top: auto;
      padding:
        20px 8px 2px;
      border-top:
        1px solid rgba(255,255,255,0.16);
    }

    #cmseWebShellRoot .sidebar-user {
      font-size: 13px;
      line-height: 1.5;
      color:
        rgba(255,255,255,0.78);
    }

    #cmseWebShellRoot .sidebar-user strong {
      display: block;
      color:
        #ffffff;
      font-size: 14px;
    }

    #cmseWebShellRoot .main {
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    #cmseWebShellRoot .topbar {
      min-height: 78px;
      padding:
        16px 28px;
      background:
        var(--cmse-panel);
      border-bottom:
        1px solid var(--cmse-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    #cmseWebShellRoot .page-title {
      min-width: 0;
    }

    #cmseWebShellRoot .page-title h1 {
      margin: 0;
      font-size: 22px;
      line-height: 1.2;
      color:
        var(--cmse-navy-dark);
    }

    #cmseWebShellRoot .page-title p {
      margin:
        5px 0 0;
      font-size: 13px;
      color:
        var(--cmse-muted);
    }

    #cmseWebShellRoot .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #cmseWebShellRoot .button {
      appearance: none;
      border:
        1px solid var(--cmse-border);
      border-radius: 9px;
      background:
        #ffffff;
      color:
        var(--cmse-text);
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      padding:
        10px 15px;
      cursor: pointer;
    }

    #cmseWebShellRoot .button:hover {
      background:
        #f7f9fc;
    }

    #cmseWebShellRoot .content {
      padding:
        28px;
      min-width: 0;
    }

    #cmseWebShellRoot .welcome-card {
      background:
        var(--cmse-panel);
      border:
        1px solid var(--cmse-border);
      border-radius: 16px;
      box-shadow:
        var(--cmse-shadow);
      padding:
        28px;
      max-width: 1050px;
    }

    #cmseWebShellRoot .welcome-card h2 {
      margin:
        0 0 8px;
      color:
        var(--cmse-navy-dark);
      font-size: 24px;
    }

    #cmseWebShellRoot .welcome-card p {
      margin:
        0;
      color:
        var(--cmse-muted);
      line-height: 1.6;
      max-width: 760px;
    }

    #cmseWebShellRoot .module-grid {
      display: grid;
      grid-template-columns:
        repeat(
          auto-fit,
          minmax(210px, 1fr)
        );
      gap: 16px;
      margin-top: 24px;
    }

    #cmseWebShellRoot .module-card {
      background:
        #ffffff;
      border:
        1px solid var(--cmse-border);
      border-radius: 13px;
      padding:
        20px;
      min-height: 120px;
      cursor: pointer;
      transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
    }

    #cmseWebShellRoot .module-card:hover {
      transform:
        translateY(-2px);
      box-shadow:
        var(--cmse-shadow);
    }

    #cmseWebShellRoot .module-card strong {
      display: block;
      color:
        var(--cmse-navy-dark);
      font-size: 16px;
      margin-bottom: 7px;
    }

    #cmseWebShellRoot .module-card span {
      display: block;
      color:
        var(--cmse-muted);
      font-size: 13px;
      line-height: 1.45;
    }

    #cmseWebShellRoot .dashboard-workspace {
      display: none;
      max-width: 1180px;
    }

    #cmseWebShellRoot .dashboard-workspace.show {
      display: block;
    }

    #cmseWebShellRoot .dashboard-heading {
      margin-bottom: 22px;
    }

    #cmseWebShellRoot .dashboard-heading h2 {
      margin: 0;
      color: var(--cmse-navy-dark);
      font-size: 24px;
      line-height: 1.25;
    }

    #cmseWebShellRoot .dashboard-heading p {
      margin: 7px 0 0;
      color: var(--cmse-muted);
      font-size: 13px;
      line-height: 1.5;
    }

    #cmseWebShellRoot .dashboard-metrics {
      display: grid;
      grid-template-columns:
        repeat(
          auto-fit,
          minmax(190px, 1fr)
        );
      gap: 16px;
    }

    #cmseWebShellRoot .dashboard-card {
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 13px;
      padding: 20px;
      min-height: 108px;
    }

    #cmseWebShellRoot .dashboard-card-label {
      color: var(--cmse-muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.4;
    }

    #cmseWebShellRoot .dashboard-card-value {
      margin-top: 9px;
      color: var(--cmse-navy-dark);
      font-size: 25px;
      font-weight: 800;
      line-height: 1.2;
    }


    /* R41K-21.56 — Permission-aware Dashboard review cards */
    #cmseWebShellRoot .cmse-attention-heading {
      margin: 24px 0 12px;
      color: var(--cmse-navy-dark);
      font-size: 17px;
    }
    #cmseWebShellRoot .cmse-attention-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 16px;
    }
    #cmseWebShellRoot .cmse-attention-card {
      width: 100%;
      text-align: left;
      font: inherit;
      color: inherit;
      cursor: pointer;
      transition: border-color .15s, box-shadow .15s;
    }
    #cmseWebShellRoot .cmse-attention-card:not(:disabled):hover,
    #cmseWebShellRoot .cmse-attention-card:not(:disabled):focus-visible {
      border-color: var(--cmse-navy-dark);
      box-shadow: 0 0 0 2px rgba(20, 49, 84, .12);
    }
    #cmseWebShellRoot .cmse-attention-card:disabled {
      opacity: .55;
      cursor: not-allowed;
      background: #f2f3f5;
    }
    #cmseWebShellRoot .cmse-attention-review {
      display: none;
      margin-top: 20px;
      background: #fff;
      border: 1px solid var(--cmse-border);
      border-radius: 13px;
      padding: 20px;
    }
    #cmseWebShellRoot .cmse-attention-review.show {
      display: block;
    }
    #cmseWebShellRoot .cmse-attention-review-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    #cmseWebShellRoot .cmse-attention-review-header h3 {
      margin: 0;
      color: var(--cmse-navy-dark);
    }
    #cmseWebShellRoot .cmse-attention-back {
      background: #fff;
      border: 1px solid var(--cmse-border);
      border-radius: 8px;
      padding: 9px 13px;
      font: inherit;
      cursor: pointer;
    }
    #cmseWebShellRoot .cmse-pledge-table-wrap { max-width:100%; overflow:auto; max-height:65vh; border:1px solid var(--cmse-border); border-radius:8px; }
    #cmseWebShellRoot .cmse-pledge-table { width:100%; min-width:1280px; border-collapse:separate; border-spacing:0; font-size:13px; }
    #cmseWebShellRoot .cmse-pledge-table caption { text-align:left; padding:10px 12px; color:var(--cmse-muted); }
    #cmseWebShellRoot .cmse-pledge-table th { position:sticky; top:0; background:#eaf0f6; color:var(--cmse-navy-dark); text-align:left; white-space:nowrap; z-index:1; }
    #cmseWebShellRoot .cmse-pledge-table th, #cmseWebShellRoot .cmse-pledge-table td { padding:11px 12px; border-bottom:1px solid var(--cmse-border); vertical-align:top; }
    #cmseWebShellRoot .cmse-pledge-table tbody tr:nth-child(even) { background:#f7f9fc; }
    #cmseWebShellRoot .cmse-pledge-table .amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
    #cmseWebShellRoot .cmse-pledge-table .outstanding { font-weight:700; }


    #cmseWebShellRoot #reportsToolbar > button[hidden] { display:none !important; }
    #cmseWebShellRoot #reportsOrganizationBackButton { display:none; }
    #cmseWebShellRoot #reportsToolbar.organization-focused > button { display:none !important; }
    #cmseWebShellRoot #reportsToolbar.organization-focused > #reportsOrganizationBackButton,
    #cmseWebShellRoot #reportsToolbar.organization-focused > #reportsPrintButton { display:inline-flex !important; width:auto; }
    #cmseWebShellRoot .cmse-org-report-criteria { display:flex; flex-wrap:wrap; align-items:end; gap:16px; margin:20px 0; padding:18px; background:#f7f9fc; border:1px solid var(--cmse-border); border-radius:10px; }
    #cmseWebShellRoot .cmse-org-report-criteria[hidden], #cmseWebShellRoot .cmse-org-report-criteria label[hidden] { display:none; }
    #cmseWebShellRoot .cmse-org-report-criteria .cmse-org-report-selectors { display:flex; flex-direction:column; gap:14px; }
    #cmseWebShellRoot [data-org-financial-scope][hidden] { display:none !important; }
    #cmseWebShellRoot .cmse-org-report-criteria label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:700; }
    #cmseWebShellRoot .cmse-org-report-criteria input,#cmseWebShellRoot .cmse-org-report-criteria select { min-height:44px; max-width:100%; padding:9px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; font:inherit; }
    #cmseWebShellRoot .cmse-org-report-table { max-width:100%; overflow:auto; max-height:420px; border:1px solid var(--cmse-border); border-radius:8px; margin-bottom:24px; }
    #cmseWebShellRoot .cmse-org-report-table table { width:100%; min-width:520px; border-collapse:collapse; font-size:14px; }
    #cmseWebShellRoot .cmse-org-report-table th,#cmseWebShellRoot .cmse-org-report-table td { padding:11px 14px; border-bottom:1px solid var(--cmse-border); text-align:right; }
    #cmseWebShellRoot .cmse-org-report-table th:first-child,#cmseWebShellRoot .cmse-org-report-table td:first-child { text-align:left; }
    #cmseWebShellRoot .cmse-org-report-table th { background:#eaf0f6; position:sticky; top:0; }
    #cmseWebShellRoot .cmse-org-report-table tbody tr:nth-child(even) { background:#f7f9fc; }
    @media print { #cmseWebShellRoot .cmse-org-report-table { max-height:none; overflow:visible; border:0; } #cmseWebShellRoot .cmse-org-report-table table { min-width:0; } }

    #cmseWebShellRoot #organizationDeploymentOpen[hidden] { display:none !important; }
    .cmse-deployment-panel { position:fixed; inset:4%; z-index:10000; max-width:960px; margin:auto; overflow:auto; padding:24px; border:1px solid #cbd5e1; border-radius:12px; background:#fff; color:#0f172a; box-shadow:0 10px 40px #0004; }
    .cmse-deployment-panel label { display:flex; flex-direction:column; gap:8px; margin:18px 0; font-weight:700; }
    .cmse-deployment-panel [hidden], .cmse-deployment-panel label[hidden] { display:none !important; }
    .cmse-deployment-panel input:not([type=checkbox]),.cmse-deployment-panel select,.cmse-deployment-panel textarea { box-sizing:border-box; width:100%; min-height:44px; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px; font:inherit; }
    .cmse-deployment-panel textarea { font-family:ui-monospace,monospace; font-size:13px; }
    .cmse-deployment-panel button { margin:6px 10px 6px 0; min-height:44px; padding:10px 16px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; font:inherit; cursor:pointer; }
    .cmse-deployment-panel button:disabled { background:#e2e8f0; color:#64748b; cursor:not-allowed; }
    .cmse-deployment-preview { padding:18px; background:#f7f9fc; border:1px solid #cbd5e1; border-radius:8px; }
    .cmse-deployment-preview dl { display:grid; grid-template-columns:minmax(120px,1fr) 2fr; gap:10px 16px; }
    .cmse-deployment-preview dt { font-weight:700; }.cmse-deployment-preview dd { margin:0; overflow-wrap:anywhere; }
    @media(max-width:600px){.cmse-deployment-panel{inset:12px;padding:18px;}.cmse-deployment-preview dl{grid-template-columns:1fr;}}
    #cmseWebShellRoot .cmse-attention-record {
      padding: 13px 0;
      border-top: 1px solid var(--cmse-border);
    }
    #cmseWebShellRoot .cmse-attention-record strong {
      display: block;
      margin-bottom: 5px;
    }
    #cmseWebShellRoot .cmse-attention-record span {
      display: block;
      color: var(--cmse-muted);
      font-size: 13px;
      line-height: 1.6;
      overflow-wrap: anywhere;
    }
  
    #cmseWebShellRoot .dashboard-section {
      margin-top: 24px;
    }

    #cmseWebShellRoot .dashboard-section h3 {
      margin: 0 0 12px;
      color: var(--cmse-navy-dark);
      font-size: 17px;
    }

    #cmseWebShellRoot .dashboard-event {
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 13px;
      padding: 18px 20px;
      line-height: 1.55;
    }

    #cmseWebShellRoot .dashboard-event strong {
      display: block;
      color: var(--cmse-navy-dark);
      margin-bottom: 4px;
    }

    #cmseWebShellRoot .dashboard-event span {
      display: block;
      color: var(--cmse-muted);
      font-size: 13px;
    }

    #cmseWebShellRoot .dashboard-empty {
      color: var(--cmse-muted);
      font-size: 13px;
    }

    #cmseWebShellRoot .members-workspace {
      display: none;
      max-width: 1180px;
    }

    #cmseWebShellRoot .members-workspace.show {
      display: block;
    }

    #cmseWebShellRoot .families-workspace {
      display: none;
      max-width: 1180px;
    }

    #cmseWebShellRoot .families-workspace.show {
      display: block;
    }

    #cmseWebShellRoot .family-household-title {
      margin: 24px 0 12px;
      color: var(--cmse-navy-dark);
      font-size: 17px;
    }

    #cmseWebShellRoot .household-member-table-scroll { width:100%; min-width:0; overflow-x:auto; }
    #cmseWebShellRoot .household-member-table { width:100%; min-width:640px; border-collapse:collapse; text-align:left; }
    #cmseWebShellRoot .household-member-table caption { text-align:left; color:#667085; margin-bottom:10px; }
    #cmseWebShellRoot .household-member-table th, #cmseWebShellRoot .household-member-table td { padding:12px; border-bottom:1px solid #dce3ec; vertical-align:top; overflow-wrap:anywhere; }
    #cmseWebShellRoot .household-member-table th:first-child, #cmseWebShellRoot .household-member-table td:first-child { width:30%; min-width:170px; overflow-wrap:break-word; }
    #cmseWebShellRoot .household-member-table th:nth-child(2), #cmseWebShellRoot .household-member-table td:nth-child(2) { width:100px; min-width:100px; white-space:nowrap; }
    #cmseWebShellRoot .household-member-table th:nth-child(3), #cmseWebShellRoot .household-member-table td:nth-child(3) { min-width:270px; }
    #cmseWebShellRoot .household-member-table th { background:#f3f6fa; font-weight:700; }
    #cmseWebShellRoot .household-member-table small { display:block; color:#667085; margin-top:4px; }
    #cmseWebShellRoot .household-member-table-note { color:#667085; font-size:0.9rem; }

    #cmseWebShellRoot #familyMemberEditor[hidden],
    #cmseWebShellRoot #householdMergeSection[hidden] { display:none !important; }

    #cmseWebShellRoot .family-household-members {
      display: grid;
      gap: 10px;
    }

    #cmseWebShellRoot .family-household-member {
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 11px;
      padding: 14px 16px;
    }

    #cmseWebShellRoot .family-household-member strong {
      display: block;
      color: var(--cmse-navy-dark);
      font-size: 14px;
      line-height: 1.4;
    }

    #cmseWebShellRoot .family-household-member span {
      display: block;
      margin-top: 4px;
      color: var(--cmse-muted);
      font-size: 12px;
      line-height: 1.45;
    }

    #cmseWebShellRoot .members-heading {
      margin-bottom: 20px;
    }

    #cmseWebShellRoot .members-heading h2 {
      margin: 0;
      color: var(--cmse-navy-dark);
      font-size: 24px;
      line-height: 1.25;
    }

    #cmseWebShellRoot .members-heading p {
      margin: 7px 0 0;
      color: var(--cmse-muted);
      font-size: 13px;
      line-height: 1.5;
    }

    #cmseWebShellRoot .members-search {
      display: flex;
      gap: 10px;
      align-items: stretch;
      margin-bottom: 20px;
    }

    #cmseWebShellRoot .members-search input {
      flex: 1;
      min-width: 0;
      border: 1px solid var(--cmse-border);
      border-radius: 9px;
      background: #ffffff;
      color: var(--cmse-text);
      font: inherit;
      font-size: 14px;
      padding: 11px 13px;
    }

    #cmseWebShellRoot .members-search input:focus {
      outline: 2px solid rgba(20, 54, 92, 0.18);
      outline-offset: 1px;
      border-color: var(--cmse-navy);
    }


    /* R41K-18I3 REPORT SEARCH LAYOUT */
    #cmseWebShellRoot #reportsCriteria .members-search-row {
      display: flex;
      align-items: stretch;
      gap: 10px;
      width: 100%;
      margin: 10px 0 16px;
    }

    #cmseWebShellRoot #reportsCriteria .members-search-row input {
      flex: 1 1 auto;
      min-width: 0;
      width: 100%;
      box-sizing: border-box;
      border: 1px solid var(--cmse-border);
      border-radius: 9px;
      background: #ffffff;
      color: var(--cmse-text);
      font: inherit;
      font-size: 14px;
      padding: 11px 13px;
    }

    #cmseWebShellRoot #reportsCriteria .members-search-row input:focus {
      outline: 2px solid rgba(20, 54, 92, 0.18);
      outline-offset: 1px;
      border-color: var(--cmse-navy);
    }

    #cmseWebShellRoot #reportsCriteria .members-search-row button {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      #cmseWebShellRoot #reportsCriteria .members-search-row {
        flex-direction: column;
      }

      #cmseWebShellRoot #reportsCriteria .members-search-row button {
        width: 100%;
      }
    }

    #cmseWebShellRoot .members-results {
      display: grid;
      gap: 10px;
    }


    /* R41K-18I9 GIVING STATEMENT CRITERIA LAYOUT */
    #cmseWebShellRoot #reportsCriteria #reportsGivingCriteria {
      display: block;
      width: 100%;
      min-width: 0;
      margin-bottom: 20px;
    }

    #cmseWebShellRoot #reportsCriteria #reportsDateCriteria {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      width: 100%;
      min-width: 0;
    }

    #cmseWebShellRoot #reportsCriteria #reportsGivingCriteria .member-editor-field,
    #cmseWebShellRoot #reportsCriteria #reportsDateCriteria .member-editor-field {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      min-width: 0;
    }

    #cmseWebShellRoot #reportsCriteria #reportsGivingCriteria .member-editor-field input,
    #cmseWebShellRoot #reportsCriteria #reportsDateCriteria .member-editor-field input {
      display: block;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      margin: 0;
    }

    #cmseWebShellRoot #reportsCriteria #reportsGivingCriteria .member-editor-field label,
    #cmseWebShellRoot #reportsCriteria #reportsDateCriteria .member-editor-field label {
      display: block;
      position: static;
      margin: 0;
      line-height: 1.4;
    }

    #cmseWebShellRoot .member-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
    #cmseWebShellRoot .member-editor{display:none;background:#fff;border:1px solid var(--cmse-border);border-radius:13px;padding:20px;margin-top:18px}
    #cmseWebShellRoot .member-editor.show{display:block}

    /* Pledge entry presentation: scoped to the existing editor only. */
    #cmseWebShellRoot #pledgeEditor { max-width:960px; margin:24px auto 0; padding:28px; }
    #cmseWebShellRoot #pledgeEditor .member-profile-heading { margin:18px 0 24px; }
    #cmseWebShellRoot #pledgeEditor .member-profile-heading h3 { margin:0 0 8px; font-size:24px; }
    #cmseWebShellRoot #pledgeEditorIdentity { margin:0; color:var(--cmse-muted); line-height:1.5; }
    #cmseWebShellRoot #pledgeEditor .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; }
    #cmseWebShellRoot #pledgeEditor .member-editor-field { min-width:0; gap:8px; }
    #cmseWebShellRoot #pledgeEditor .member-editor-field:first-child,
    #cmseWebShellRoot #pledgeEditor .member-editor-field:last-child { grid-column:1 / -1; }
    #cmseWebShellRoot #pledgeEditor .member-editor-field label { font-size:13px; font-weight:700; text-transform:none; color:#334155; line-height:1.4; }
    #cmseWebShellRoot #pledgeEditor input,
    #cmseWebShellRoot #pledgeEditor select,
    #cmseWebShellRoot #pledgeEditor textarea { box-sizing:border-box; width:100%; min-width:0; min-height:46px; padding:11px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; font:inherit; line-height:1.4; }
    #cmseWebShellRoot #pledgeEditor textarea { min-height:104px; resize:vertical; }
    #cmseWebShellRoot #pledgeEditor input:focus-visible,
    #cmseWebShellRoot #pledgeEditor select:focus-visible,
    #cmseWebShellRoot #pledgeEditor textarea:focus-visible { outline:2px solid #2563eb; outline-offset:2px; box-shadow:none; }
    #cmseWebShellRoot #pledgeEditor .member-editor-buttons { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid var(--cmse-border); }
    #cmseWebShellRoot #pledgeEditor .member-editor-buttons .button { width:auto; min-height:44px; padding:11px 20px; flex:0 0 auto; }
    #cmseWebShellRoot #pledgeSaveButton { background:var(--cmse-navy-dark); color:#fff; border-color:var(--cmse-navy-dark); font-weight:700; }
    #cmseWebShellRoot #pledgeSaveButton:disabled { background:#cbd5e1; color:#475569; border-color:#cbd5e1; cursor:not-allowed; }
    @media (max-width:640px) {
      #cmseWebShellRoot #pledgeEditor { padding:18px; }
      #cmseWebShellRoot #pledgeEditor .form-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
      #cmseWebShellRoot #pledgeEditor .member-editor-buttons { justify-content:stretch; }
      #cmseWebShellRoot #pledgeEditor .member-editor-buttons .button { flex:1 1 auto; }
    }

    #cmseWebShellRoot .member-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
    #cmseWebShellRoot .member-editor-field{display:flex;flex-direction:column;gap:6px}
    #cmseWebShellRoot .member-editor-field label{color:var(--cmse-muted);font-size:11px;font-weight:800;text-transform:uppercase}
    #cmseWebShellRoot .member-editor-field input,#cmseWebShellRoot .member-editor-field textarea{width:100%;border:1px solid var(--cmse-border);border-radius:9px;padding:10px 11px;font:inherit}
    #cmseWebShellRoot .member-editor-field textarea{min-height:88px;resize:vertical}
    #cmseWebShellRoot .member-editor-field.wide{grid-column:1/-1}
    #cmseWebShellRoot .member-editor-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}


    /*
     * CMSE PHASE 21 — MEMBER CONTEXTUAL REPORT PRESENTATION
     * Presentation only.
     * Existing Member report data/runtime contracts remain authoritative.
     */

    #cmseWebShellRoot .cmse-member-context-overview {
      display: grid;
      gap: 18px;
      min-width: 0;
    }

    #cmseWebShellRoot .cmse-report-section {
      min-width: 0;
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 13px;
      padding: 20px;
    }

    #cmseWebShellRoot .cmse-report-section h3 {
      margin: 0 0 18px;
      color: var(--cmse-navy);
      font-size: 20px;
      line-height: 1.25;
    }

    #cmseWebShellRoot .cmse-report-grid {
      display: grid;
      grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
      gap: 18px 24px;
      min-width: 0;
    }

    #cmseWebShellRoot .cmse-report-grid > div {
      min-width: 0;
    }

    #cmseWebShellRoot .cmse-report-grid strong {
      display: block;
      margin-bottom: 5px;
      color: var(--cmse-muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.3;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    #cmseWebShellRoot .cmse-report-grid strong + div {
      color: var(--cmse-text);
      font-size: 15px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    #cmseWebShellRoot .cmse-report-table-wrap {
      width: 100%;
      min-width: 0;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    #cmseWebShellRoot .cmse-report-table {
      width: 100%;
      border-collapse: collapse;
      color: var(--cmse-text);
      font-size: 14px;
      line-height: 1.4;
    }

    #cmseWebShellRoot .cmse-report-table th,
    #cmseWebShellRoot .cmse-report-table td {
      padding: 11px 12px;
      border-bottom: 1px solid var(--cmse-border);
      text-align: left;
      vertical-align: top;
      white-space: nowrap;
    }

    #cmseWebShellRoot .cmse-report-table th {
      color: var(--cmse-muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    #cmseWebShellRoot .cmse-report-table tbody tr:last-child td {
      border-bottom: 0;
    }


    /* R41K-13G — Interactive hover and keyboard focus */

    #cmseWebShellRoot button:not(:disabled),
    #cmseWebShellRoot a[href],
    #cmseWebShellRoot [role="button"]:not([aria-disabled="true"]) {
      cursor: pointer;
      transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        color 150ms ease;
    }

    #cmseWebShellRoot button:not(:disabled):hover,
    #cmseWebShellRoot [role="button"]:not([aria-disabled="true"]):hover {
      filter: brightness(0.96);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    }

    #cmseWebShellRoot a[href]:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    #cmseWebShellRoot button:focus-visible,
    #cmseWebShellRoot a[href]:focus-visible,
    #cmseWebShellRoot input:focus-visible,
    #cmseWebShellRoot select:focus-visible,
    #cmseWebShellRoot textarea:focus-visible,
    #cmseWebShellRoot [role="button"]:focus-visible,
    #cmseWebShellRoot [tabindex]:focus-visible {
      outline: 3px solid #2563eb;
      outline-offset: 3px;
    }

    #cmseWebShellRoot .cmse-report-table tbody tr {
      transition: background-color 150ms ease;
    }

    #cmseWebShellRoot .cmse-report-table tbody tr:hover {
      background-color: #eef4ff;
    }

    #cmseWebShellRoot .cmse-report-table a[href]:hover,
    #cmseWebShellRoot .cmse-report-table button:hover {
      color: #1d4ed8;
    }

    @media (prefers-reduced-motion: reduce) {
      #cmseWebShellRoot button,
      #cmseWebShellRoot a,
      #cmseWebShellRoot .cmse-report-table tbody tr {
        transition: none;
      }
    }

    #cmseWebShellRoot .cmse-report-table tbody tr:hover {
      background: #f7f9fc;
    }


    #cmseWebShellRoot .members-search.hidden,
    #cmseWebShellRoot .members-results.hidden {
      display: none !important;
    }

    #cmseWebShellRoot .member-profile-back {
      display: none;
      margin-bottom: 14px;
    }

    #cmseWebShellRoot .member-profile-back.show {
      display: inline-flex;
    }

    #cmseWebShellRoot .member-result {
      width: 100%;
      appearance: none;
      text-align: left;
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 11px;
      padding: 14px 16px;
      color: var(--cmse-text);
      font: inherit;
      cursor: pointer;
    }

    #cmseWebShellRoot .member-result:hover,
    #cmseWebShellRoot .member-result:focus {
      background: #f7f9fc;
      border-color: var(--cmse-navy);
      outline: none;
    }

    #cmseWebShellRoot .member-result-name {
      display: block;
      color: var(--cmse-navy-dark);
      font-size: 15px;
      font-weight: 800;
      line-height: 1.35;
    }

    #cmseWebShellRoot .member-result-meta {
      display: block;
      margin-top: 4px;
      color: var(--cmse-muted);
      font-size: 12px;
      line-height: 1.45;
    }

    #cmseWebShellRoot .members-empty {
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 11px;
      padding: 16px;
      color: var(--cmse-muted);
      font-size: 13px;
      line-height: 1.5;
    }

    #cmseWebShellRoot .member-profile {
      display: none;
      margin-top: 22px;
      background: #ffffff;
      border: 1px solid var(--cmse-border);
      border-radius: 13px;
      padding: 20px;
    }

    #cmseWebShellRoot .member-profile.show {
      display: block;
    }

    #cmseWebShellRoot .member-profile-heading {
      margin-bottom: 16px;
    }

    #cmseWebShellRoot .member-profile-heading h3 {
      margin: 0;
      color: var(--cmse-navy-dark);
      font-size: 20px;
      line-height: 1.3;
    }

    #cmseWebShellRoot .member-profile-heading p {
      margin: 5px 0 0;
      color: var(--cmse-muted);
      font-size: 12px;
    }

    #cmseWebShellRoot .member-profile-grid {
      display: grid;
      grid-template-columns:
        repeat(
          auto-fit,
          minmax(190px, 1fr)
        );
      gap: 14px;
    }

    #cmseWebShellRoot .member-field {
      min-width: 0;
    }

    #cmseWebShellRoot .member-field-label {
      display: block;
      color: var(--cmse-muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.35;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    #cmseWebShellRoot .member-field-value {
      display: block;
      margin-top: 4px;
      color: var(--cmse-text);
      font-size: 14px;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    #cmseWebShellRoot .status {
      margin-top: 18px;
      padding:
        13px 15px;
      border-radius: 10px;
      font-size: 13px;
      line-height: 1.5;
      display: none;
    }

    #cmseWebShellRoot .status.show {
      display: block;
    }

    #cmseWebShellRoot .status.success {
      background:
        #eaf8f3;
      border:
        1px solid #b8e6d6;
      color:
        var(--cmse-success);
    }

    #cmseWebShellRoot .status.error {
      background:
        #fff0f0;
      border:
        1px solid #efc7c7;
      color:
        var(--cmse-danger);
    }

    #cmseWebShellRoot .loading {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 30px;
      text-align: center;
      color:
        var(--cmse-muted);
    }

    #cmseWebShellRoot .hidden {
      display: none !important;
    }

    @media (max-width: 800px) {
      #cmseWebShellRoot .shell {
        grid-template-columns: 1fr;
      }

      #cmseWebShellRoot .sidebar {
        min-height: auto;
      }

      #cmseWebShellRoot .nav {
        display: grid;
        grid-template-columns:
          repeat(
            2,
            minmax(0, 1fr)
          );
      }

      #cmseWebShellRoot .sidebar-footer {
        margin-top: 18px;
      }

      #cmseWebShellRoot .topbar {
        align-items: flex-start;
      }
    }


    /* ======================================================
       CMSE REPORTS — PRINT LAYOUT
       Phase 21 / Step 21G-D5B

       Print policy:
       • One browser Print action only.
       • Browser dialog handles printer / Save as PDF.
       • Only the generated CMSE report is printable.
       ====================================================== */

    @page {
      size: auto;
      margin: 0.55in;
    }

    @media print {
      body.cmse-org-financial-print *:has(#reportsPrintArea) {
        display: block !important;
        position: static !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
      }
      body.cmse-org-financial-print *:has(#reportsPrintArea) > :not(:has(#reportsPrintArea)):not(#reportsPrintArea) {
        display: none !important;
      }
      body.cmse-org-financial-print #reportsPrintArea {
        position: static !important;
      }
    }

    @media print {

      html,
      body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
      }

      body * {
        visibility: hidden !important;
      }

      #reportsPrintArea,
      #reportsPrintArea * {
        visibility: visible !important;
      }

      #reportsPrintArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        border: 0 !important;
        overflow: visible !important;
      }

      #reportsReportHeading {
        display: block !important;
        visibility: visible !important;
        margin: 0 0 18px 0 !important;
        padding: 0 0 12px 0 !important;
        border-bottom: 1px solid #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        page-break-after: avoid;
        break-after: avoid-page;
      }

      #reportsReportHeading.hidden {
        display: block !important;
      }

      #reportsReportTitle {
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        font-size: 18pt !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
        color: #000 !important;
      }

      #reportsReportPeriod {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10.5pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
      }

      #reportsResults {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        color: #000 !important;
      }

      #reportsResults,
      #reportsResults * {
        color: #000 !important;
        box-shadow: none !important;
      }

      #reportsResults table {
        width: 100% !important;
        max-width: 100% !important;
        border-collapse: collapse !important;
        table-layout: auto !important;
      }

      #reportsResults thead {
        display: table-header-group;
      }

      #reportsResults tfoot {
        display: table-footer-group;
      }

      #reportsResults tr {
        page-break-inside: avoid;
        break-inside: avoid;
      }

      #reportsResults th,
      #reportsResults td {
        padding: 6px 8px !important;
        border: 1px solid #999 !important;
        background: transparent !important;
        vertical-align: top !important;
        overflow-wrap: anywhere;
      }

      #reportsResults th {
        font-weight: 700 !important;
      }

      #reportsResults h1,
      #reportsResults h2,
      #reportsResults h3,
      #reportsResults h4 {
        page-break-after: avoid;
        break-after: avoid-page;
      }

      #reportsResults img {
        max-width: 100% !important;
        height: auto !important;
      }

      #reportsResults a {
        color: #000 !important;
        text-decoration: none !important;
      }

      #reportsResults button,
      #reportsResults input,
      #reportsResults select,
      #reportsResults textarea {
        display: none !important;
      }

    }



      @media print {

        body.cmse-context-print
          #cmseWebShellRoot
          .workspace,
        body.cmse-context-print
          #cmseWebShellRoot
          .families-workspace {
          display: none !important;
        }

        body.cmse-context-print
          #cmseWebShellRoot
          .cmse-print-target {
          display: block !important;
        }

        body.cmse-context-print
          #cmseWebShellRoot
          .member-actions,
        body.cmse-context-print
          #cmseWebShellRoot
          .member-profile-back,
        body.cmse-context-print
          #cmseWebShellRoot
          button {
          display: none !important;
        }

      }


  /* R41K-7 contextual child view */
  #cmseWebShellRoot .cmse-context-child-host {margin-top:18px;}
  #cmseWebShellRoot .cmse-context-child-host > .member-editor.show {display:block;max-width:100%;}

  /* R41K-18L.34D — Dedicated Giving Statement print sheet */
  #cmseGivingPrintSheet { display:none; }
  @media print {
    body.cmse-giving-isolated-print > *:not(#cmseGivingPrintSheet) {
      display:none!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet,
    body.cmse-giving-isolated-print #cmseGivingPrintSheet * {
      visibility:visible!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet {
      display:block!important;
      position:static!important;
      width:100%!important;
      margin:0!important;
      padding:0!important;
      background:white!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-page {
      padding:0!important;
      margin:0!important;
      max-width:none!important;
      font-size:10pt!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-table {
      font-size:8pt!important;
      table-layout:fixed!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-table thead {
      display:table-header-group!important;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-table tr {
      break-inside:avoid;
      page-break-inside:avoid;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-title {
      color:white!important;
      -webkit-print-color-adjust:exact;
      print-color-adjust:exact;
    }
    body.cmse-giving-isolated-print #cmseGivingPrintSheet .cmse-gs-table thead th {
      background:#e8f0f8!important;
      -webkit-print-color-adjust:exact;
      print-color-adjust:exact;
    }
  }
  /* R41K-8: isolated contextual print sheet; Reports print remains unchanged. */
  #cmseR41K8PrintSheet { display:none; }
  @media print {
    body.cmse-r41k8-print > *:not(#cmseR41K8PrintSheet) { display:none !important; }
    body.cmse-r41k8-print #cmseR41K8PrintSheet,
    body.cmse-r41k8-print #cmseR41K8PrintSheet * {
      visibility:visible !important;
      color:#111 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet {
      display:block !important;
      position:static !important;
      width:100% !important;
      padding:0 !important;
      margin:0 !important;
      background:white !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile { display:block !important; }
    body.cmse-r41k8-print #cmseR41K8PrintSheet h1 {font-size:20pt;margin:0 0 12pt;}
    body.cmse-r41k8-print #cmseR41K8PrintSheet button {display:none !important;}
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile-grid {display:grid !important;}
  }

  /* R41K-9: isolated Member/Family profile print typography and layout. */
  @media print {
    body.cmse-r41k8-print #cmseR41K8PrintSheet {
      font-family: Arial, Helvetica, sans-serif !important;
      font-size: 10.5pt !important;
      line-height: 1.45 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet > h1 {
      font-size: 20pt !important;
      font-weight: 700 !important;
      line-height: 1.25 !important;
      margin: 0 0 7pt !important;
      padding: 0 0 10pt !important;
      border-bottom: 1.5pt solid #173f63 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet > p {
      font-size: 10pt !important;
      margin: 0 0 18pt !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile {
      display: block !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      background: white !important;
      box-shadow: none !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile-heading {
      display: block !important;
      margin: 0 0 16pt !important;
      padding: 0 0 9pt !important;
      border-bottom: 1px solid #d8dee7 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile-heading h3 {
      margin: 0 0 4pt !important;
      font-size: 16pt !important;
      line-height: 1.3 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile-heading p {
      margin: 0 !important;
      font-size: 9.5pt !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-profile-grid {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      column-gap: 24pt !important;
      row-gap: 13pt !important;
      width: 100% !important;
      margin: 0 0 16pt !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-field {
      display: block !important;
      min-width: 0 !important;
      padding: 0 0 7pt !important;
      border-bottom: 1px solid #e4e8ed !important;
      break-inside: avoid !important;
      page-break-inside: avoid !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-field-label {
      display: block !important;
      font-size: 8pt !important;
      font-weight: 700 !important;
      letter-spacing: .035em !important;
      text-transform: uppercase !important;
      line-height: 1.3 !important;
      margin: 0 0 4pt !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .member-field-value {
      display: block !important;
      font-size: 11pt !important;
      font-weight: 400 !important;
      line-height: 1.45 !important;
      margin: 0 !important;
      overflow-wrap: anywhere !important;
      white-space: normal !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .family-household-title {
      display: block !important;
      font-size: 14pt !important;
      margin: 18pt 0 10pt !important;
      padding-bottom: 7pt !important;
      border-bottom: 1px solid #d8dee7 !important;
      break-after: avoid !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .family-household-members {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 8pt !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .family-household-member {
      display: block !important;
      border: 1px solid #d8dee7 !important;
      border-radius: 5pt !important;
      padding: 9pt 11pt !important;
      background: #fff !important;
      break-inside: avoid !important;
      page-break-inside: avoid !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .family-household-member strong {
      display: block !important;
      font-size: 11pt !important;
      line-height: 1.4 !important;
    }
    body.cmse-r41k8-print #cmseR41K8PrintSheet .family-household-member span {
      display: block !important;
      font-size: 9.5pt !important;
      line-height: 1.4 !important;
      margin-top: 3pt !important;
    }
  }
