:root{
  --hsm-navy:#061b46;
  --hsm-blue:#0b3f88;
  --hsm-gold:#c7952f;
  --hsm-gold-soft:#f7edda;
  --hsm-ink:#172033;
  --hsm-muted:#667085;
  --hsm-line:#d9e2f1;
  --hsm-panel:#ffffff;
  --hsm-soft:#f6f8fc;
  --hsm-radius:18px;
  --hsm-shadow:0 14px 35px rgba(6,27,70,.10);
}
*{box-sizing:border-box}
body{color:var(--hsm-ink);background:linear-gradient(180deg,#f7f9fe 0%,#fff 42%,#f8f5ee 100%)}
a{color:var(--hsm-blue)}
.card,.hsm-pro-card,.hsm-pro-panel,.hsm-giving-card,.premium-card,.admin-main .card{border:1px solid rgba(11,63,136,.12);border-radius:var(--hsm-radius);box-shadow:var(--hsm-shadow);background:var(--hsm-panel)}
.card h1,.card h2,.card h3,.hsm-pro-card h1,.hsm-pro-card h2,.hsm-pro-card h3{letter-spacing:-.015em;line-height:1.15;color:var(--hsm-navy)}
.muted,.card small,.hsm-pro-card small{color:var(--hsm-muted)}
.resource-kicker,.hsm-page-kicker{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:var(--hsm-gold)}
.resource-kicker:before,.hsm-page-kicker:before{content:"";width:22px;height:2px;background:var(--hsm-gold);border-radius:99px}
.lux-btn,.mini-btn,.submit,button.submit,.hsm-top-btn,.hsm-wide-submit,.giving-platform-open{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:0;border-radius:999px;padding:.78rem 1.15rem;font-weight:800;text-decoration:none;line-height:1.1;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;background:var(--hsm-navy);color:#fff;box-shadow:0 9px 20px rgba(6,27,70,.16)}
.lux-btn:hover,.mini-btn:hover,.submit:hover,button.submit:hover,.hsm-top-btn:hover,.hsm-wide-submit:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(6,27,70,.22);text-decoration:none}
.lux-btn.gold,.submit,.hsm-wide-submit{background:linear-gradient(135deg,#b57d1e,#d9af50);color:#081735}
.lux-btn.blue,.mini-btn,.hsm-top-btn{background:linear-gradient(135deg,#0b3f88,#061b46);color:#fff}
.notice,.hsm-gateway-status{border:1px solid rgba(199,149,47,.35);background:var(--hsm-gold-soft);border-radius:14px;padding:1rem 1.1rem;color:#4a3511;font-weight:700}
.form-grid,.hsm-professional-form{gap:1rem}
.form-grid label,.hsm-professional-form label{font-weight:800;color:var(--hsm-navy)}
.form-grid input,.form-grid select,.form-grid textarea,.hsm-professional-form input,.hsm-professional-form select,.hsm-professional-form textarea{width:100%;border:1px solid var(--hsm-line);border-radius:12px;background:#fff;padding:.78rem .9rem;font:inherit;color:var(--hsm-ink);outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.hsm-professional-form input:focus,.hsm-professional-form select:focus,.hsm-professional-form textarea:focus{border-color:var(--hsm-blue);box-shadow:0 0 0 4px rgba(11,63,136,.11)}
.hsm-pro-hero{border-bottom:1px solid rgba(199,149,47,.22)}
.hsm-flow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 auto;max-width:1180px}
.hsm-flow-steps div{background:#fff;border:1px solid rgba(11,63,136,.12);border-radius:18px;padding:1rem;box-shadow:var(--hsm-shadow)}
.hsm-flow-steps span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--hsm-navy);color:#fff;font-weight:900;margin-bottom:.65rem}
.hsm-flow-steps strong{display:block;color:var(--hsm-navy)}
.hsm-flow-steps small{display:block;margin-top:.35rem;color:var(--hsm-muted);line-height:1.35}
.hsm-pro-desk{align-items:start}
.hsm-form-section{border:1px solid rgba(11,63,136,.11);border-radius:16px;background:linear-gradient(180deg,#fff,#f9fbff);padding:1rem;margin:1rem 0}
.hsm-form-section h3{margin:.1rem 0 .35rem;font-size:1.05rem}
.hsm-form-section p{margin:.2rem 0 .8rem;color:var(--hsm-muted)}
.hsm-envelope-buttons{display:flex;flex-wrap:wrap;gap:.55rem}
.hsm-envelope-chip{border:1px solid rgba(11,63,136,.18);background:#fff;color:var(--hsm-navy);border-radius:999px;padding:.55rem .82rem;font-weight:800;cursor:pointer;transition:background .18s ease,border .18s ease,transform .18s ease}
.hsm-envelope-chip:hover{transform:translateY(-1px);border-color:var(--hsm-gold)}
.hsm-envelope-chip.active{background:linear-gradient(135deg,var(--hsm-navy),var(--hsm-blue));border-color:transparent;color:#fff;box-shadow:0 10px 20px rgba(6,27,70,.18)}
.giving-envelope-panel{position:sticky;top:1rem;border-left:5px solid var(--hsm-gold);padding:1.15rem}
.giving-envelope-panel span{display:block;font-size:.76rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--hsm-gold)}
.giving-envelope-panel h3{margin:.4rem 0;color:var(--hsm-navy)}
.giving-envelope-panel p{color:var(--hsm-muted);line-height:1.55}
.giving-scripture{margin-top:.8rem;border-top:1px solid var(--hsm-line);padding-top:.8rem;font-weight:800;color:var(--hsm-navy)}
.hsm-method-tabs,.giving-platform-picker{display:flex;flex-wrap:wrap;gap:.6rem;margin:.75rem 0 1rem}
.hsm-method-tabs button,.giving-platform-picker button{border:1px solid rgba(11,63,136,.16);background:#fff;border-radius:999px;color:var(--hsm-navy);font-weight:900;padding:.7rem 1rem;cursor:pointer}
.hsm-method-tabs button.active,.giving-platform-picker button.active{background:var(--hsm-navy);color:#fff;border-color:var(--hsm-navy)}
.hsm-envelope-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.8rem}
.hsm-envelope-summary-grid div{border:1px solid rgba(11,63,136,.12);border-radius:14px;background:var(--hsm-soft);padding:1rem}
.hsm-envelope-summary-grid span{display:block;color:var(--hsm-muted);font-weight:800;font-size:.86rem}
.hsm-envelope-summary-grid strong{display:block;color:var(--hsm-navy);font-size:1.25rem;margin-top:.25rem}
.table-wrap{border:1px solid var(--hsm-line);border-radius:16px;overflow:auto;background:#fff}
table{border-collapse:separate;border-spacing:0;width:100%}
th{background:#eef3fb;color:var(--hsm-navy);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}th,td{padding:.85rem;border-bottom:1px solid #edf1f7;text-align:left;vertical-align:top}tr:last-child td{border-bottom:0}
.hsm-admin-side{background:linear-gradient(180deg,#061b46,#082c67)}
.hsm-admin-brand img{filter:drop-shadow(0 6px 14px rgba(0,0,0,.18))}
.hsm-admin-top{border:1px solid rgba(11,63,136,.10);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:var(--hsm-shadow);padding:1rem 1.15rem;margin-bottom:1rem}
.hsm-staff-chip{border:1px solid rgba(11,63,136,.12);border-radius:999px;background:#fff;padding:.55rem .85rem}
.doc-shell{background:var(--hsm-soft)}
.document{border:1px solid rgba(11,63,136,.14);box-shadow:var(--hsm-shadow)}
@media(max-width:900px){.hsm-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.giving-envelope-panel{position:static}.hsm-giving-desk,.giving-confirmation-zone,.giving-admin-grid{grid-template-columns:1fr!important}}
@media(max-width:560px){.hsm-flow-steps{grid-template-columns:1fr}.lux-btn,.mini-btn,.submit,button.submit,.hsm-top-btn{width:100%}.hsm-envelope-chip{flex:1 1 auto}.form-grid{grid-template-columns:1fr!important}}
@media print{.lux-btn,.mini-btn,.doc-toolbar,.hsm-top-btn{display:none!important}.card,.document{box-shadow:none!important}}

/* HSM Full System Release 3.3.0 - system-wide professional document, mail, and action standards */
.hsm-standard-letterhead,
.doc-letterhead.hsm-standard-letterhead,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{
  display:grid!important;
  grid-template-columns:140px minmax(0,1fr) 140px!important;
  align-items:center!important;
  gap:28px!important;
  width:100%!important;
  padding:22px 0 24px!important;
  margin:0 0 30px!important;
  border:0!important;
  border-bottom:4px double var(--hsm-gold)!important;
  background:transparent!important;
  text-align:center!important;
}
.hsm-standard-letterhead .doc-logo-lockup,
.hsm-standard-letterhead .doc-seal-lockup{
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  width:132px!important;
  min-height:112px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.hsm-standard-letterhead .doc-logo-lockup img{
  width:116px!important;
  max-width:116px!important;
  max-height:96px!important;
  object-fit:contain!important;
  margin:0 auto!important;
  display:block!important;
}
.hsm-standard-letterhead .doc-seal-lockup img{
  width:102px!important;
  max-width:102px!important;
  max-height:102px!important;
  object-fit:contain!important;
  margin:0 auto 4px!important;
  display:block!important;
}
.hsm-standard-letterhead .doc-seal-lockup span{
  display:block!important;
  font-size:10px!important;
  line-height:1.1!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  color:#9a6d10!important;
  font-weight:900!important;
  text-align:center!important;
}
.hsm-standard-letterhead .doc-brand-copy{
  min-width:0!important;
  max-width:100%!important;
  text-align:center!important;
  justify-self:center!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.hsm-standard-letterhead .doc-brand-copy .doc-label,
.hsm-standard-letterhead .doc-label{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 auto 7px!important;
  background:transparent!important;
  border:0!important;
  color:#9a6d10!important;
  padding:0!important;
  font-size:11px!important;
  line-height:1.2!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
  font-weight:900!important;
}
.hsm-standard-letterhead .doc-brand-copy h1,
.doc-letterhead.hsm-standard-letterhead .doc-brand-copy h1,
.ministry-record-letterhead.hsm-standard-letterhead .doc-brand-copy h1{
  margin:0 auto!important;
  padding:0!important;
  max-width:620px!important;
  color:var(--hsm-navy)!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(30px,4.2vw,48px)!important;
  line-height:.96!important;
  letter-spacing:.055em!important;
  text-align:center!important;
  text-transform:uppercase!important;
  text-shadow:none!important;
  white-space:normal!important;
}
.hsm-standard-letterhead .doc-tagline{
  margin:10px auto 5px!important;
  color:#9a6d10!important;
  font-size:12px!important;
  line-height:1.1!important;
  letter-spacing:.28em!important;
  text-transform:uppercase!important;
  font-weight:900!important;
}
.hsm-standard-letterhead .doc-contact,
.hsm-standard-letterhead .doc-church-line{
  margin:5px auto 0!important;
  color:#263852!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:800!important;
  text-align:center!important;
}
.receipt-document,.statement-document,.document{overflow:visible!important;}
.receipt-document .doc-meta,.statement-document .doc-meta{align-items:stretch;}
.receipt-document .doc-title,.statement-document .doc-title{text-align:left;}
.receipt-document .doc-title h2,.statement-document .doc-title h2{letter-spacing:.01em!important;text-transform:none!important;}
.hsm-record-status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:.34rem .62rem;font-weight:900;font-size:.78rem;background:#eef4ff;color:#061b46;border:1px solid #d8e4f7;}
.hsm-record-status-pill.pending{background:#fff7e5;color:#7a4a00;border-color:#f0d28a;}
.hsm-record-status-pill.good{background:#eaf8ef;color:#0f5b2d;border-color:#bde5c8;}
.hsm-record-status-pill.danger{background:#fff0f0;color:#9b1c1c;border-color:#f4c7c7;}
.hsm-action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.55rem;align-items:end;}
.hsm-inline-tools{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;}
.hsm-inline-tools form{display:inline-flex;gap:.38rem;align-items:center;flex-wrap:wrap;margin:0;}
.hsm-inline-tools input,.hsm-inline-tools select{min-height:38px;padding:.52rem .62rem;border-radius:10px;border:1px solid var(--hsm-line);}
.hsm-danger-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:.58rem .82rem;font-weight:900;background:#8a1f1f;color:#fff;cursor:pointer;}
.hsm-warning-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:.58rem .82rem;font-weight:900;background:#a56a00;color:#fff;cursor:pointer;}
.hsm-success-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:.58rem .82rem;font-weight:900;background:#0f6b3a;color:#fff;cursor:pointer;}
.hsm-mail-app{display:grid;grid-template-columns:240px minmax(270px,.95fr) minmax(360px,1.35fr);min-height:720px;border:1px solid rgba(11,63,136,.13);border-radius:26px;background:#fff;overflow:hidden;box-shadow:var(--hsm-shadow)}
.hsm-mail-rail{background:linear-gradient(180deg,#061b46,#092a63);color:#fff;padding:1.1rem;display:flex;flex-direction:column;gap:.85rem;}
.hsm-mail-brand{display:flex;align-items:center;gap:.7rem;margin-bottom:.7rem;}
.hsm-mail-brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 5px 12px rgba(0,0,0,.25));}
.hsm-mail-brand strong{font-family:Georgia,'Times New Roman',serif;font-size:1.15rem;line-height:1.05;}
.hsm-mail-nav a,.hsm-mail-nav button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;border:0;background:transparent;color:#eaf1ff;text-decoration:none;border-radius:999px;padding:.72rem .85rem;font-weight:800;text-align:left;cursor:pointer;}
.hsm-mail-nav a.active,.hsm-mail-nav button.active,.hsm-mail-nav a:hover,.hsm-mail-nav button:hover{background:rgba(255,255,255,.14);color:#fff;text-decoration:none;}
.hsm-mail-list{border-right:1px solid #e3e9f5;background:#f7f9fd;min-width:0;}
.hsm-mail-search{padding:1rem;border-bottom:1px solid #e3e9f5;background:#fff;display:flex;gap:.65rem;align-items:center;}
.hsm-mail-search input{width:100%;border:1px solid #d7e0ef;border-radius:999px;padding:.75rem 1rem;font:inherit;}
.hsm-mail-thread{display:block;padding:1rem;border:0;border-bottom:1px solid #e8edf6;background:#fff;color:var(--hsm-ink);text-align:left;text-decoration:none;}
.hsm-mail-thread:hover,.hsm-mail-thread.active{background:#eef5ff;text-decoration:none;}
.hsm-mail-thread strong{display:block;color:var(--hsm-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hsm-mail-thread small{display:block;color:var(--hsm-muted);margin-top:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hsm-mail-unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--hsm-gold);margin-right:6px;}
.hsm-mail-reader{min-width:0;display:grid;grid-template-rows:auto 1fr;}
.hsm-mail-reader-head{padding:1.1rem 1.25rem;border-bottom:1px solid #e3e9f5;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.hsm-mail-reader-body{padding:1.25rem;overflow:auto;}
.hsm-mail-message{border:1px solid #e2e8f4;border-radius:18px;background:#fff;padding:1.05rem;margin-bottom:1rem;}
.hsm-mail-compose{border:1px solid #dbe4f2;border-radius:22px;background:linear-gradient(180deg,#fff,#f9fbff);padding:1rem;}
.hsm-mail-compose h3{margin:.1rem 0 .8rem;color:var(--hsm-navy);}
.hsm-mail-compose .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;}
.hsm-mail-compose textarea{min-height:140px;}
.hsm-letter-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(420px,1.25fr);gap:1rem;align-items:start;}
.hsm-letter-template-list{display:grid;gap:.65rem;}
.hsm-letter-template-list button{border:1px solid #d8e1ef;background:#fff;border-radius:14px;padding:.85rem;text-align:left;font-weight:800;color:var(--hsm-navy);cursor:pointer;}
.hsm-letter-template-list button:hover{border-color:var(--hsm-gold);box-shadow:0 8px 20px rgba(6,27,70,.08);}
.hsm-letter-page .doc-body{font-size:16px;line-height:1.75;color:#061b46;}
.hsm-letter-page .letter-address{white-space:pre-line;margin:1rem 0;color:#42536f;}
.hsm-letter-page .letter-subject{font-weight:900;margin:1rem 0;color:#061b46;}
.hsm-letter-page .letter-body{white-space:pre-line;margin:1.1rem 0 1.8rem;}
.hsm-system-standard-form{border:1px solid rgba(11,63,136,.12);border-radius:18px;background:#fff;padding:1rem;box-shadow:0 10px 26px rgba(6,27,70,.08);}
@media(max-width:1100px){.hsm-mail-app{grid-template-columns:1fr}.hsm-mail-rail{border-radius:0}.hsm-mail-list{border-right:0}.hsm-mail-reader-head{display:block}.hsm-letter-layout{grid-template-columns:1fr}.hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead,.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{grid-template-columns:1fr!important;gap:10px!important}.hsm-standard-letterhead .doc-seal-lockup{display:none!important}.hsm-standard-letterhead .doc-brand-copy h1{font-size:30px!important}.hsm-mail-compose .form-grid{grid-template-columns:1fr}}
@media print{.hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead,.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{grid-template-columns:130px minmax(0,1fr) 130px!important;gap:24px!important;padding-top:8px!important}.hsm-standard-letterhead .doc-brand-copy h1{font-size:40px!important;line-height:.96!important}.hsm-mail-app,.hsm-letter-layout{display:block!important}.no-print,.hsm-mail-rail,.hsm-mail-list,.hsm-mail-compose{display:none!important}}

/* HSM Professional System Standard 3.3.1 */
.hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead,.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{display:grid!important;grid-template-columns:130px minmax(0,1fr) 130px!important;align-items:center!important;gap:26px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:22px 8px 24px!important;margin:0 auto 28px!important;border:0!important;background:transparent!important;text-align:center!important;overflow:visible!important;min-height:142px!important;}
.hsm-standard-letterhead .doc-logo-lockup,.hsm-standard-letterhead .doc-seal-lockup{width:130px!important;min-width:130px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;box-shadow:none!important;}
.hsm-standard-letterhead .doc-logo-lockup img{width:118px!important;max-width:118px!important;height:auto!important;display:block!important;object-fit:contain!important;background:transparent!important;}
.hsm-standard-letterhead .doc-seal-lockup{flex-direction:column!important;gap:6px!important;}
.hsm-standard-letterhead .doc-seal-lockup img{width:112px!important;max-width:112px!important;height:auto!important;display:block!important;object-fit:contain!important;background:transparent!important;}
.hsm-standard-letterhead .doc-seal-lockup span{font-size:10px!important;letter-spacing:.18em!important;text-transform:uppercase!important;color:#9b6f15!important;font-weight:900!important;}
.hsm-standard-letterhead .doc-brand-copy{min-width:0!important;width:100%!important;max-width:560px!important;margin:0 auto!important;text-align:center!important;display:block!important;}
.hsm-standard-letterhead .doc-label{display:block!important;margin:0 auto 7px!important;letter-spacing:.22em!important;text-transform:uppercase!important;color:#9b6f15!important;font-weight:900!important;font-size:11px!important;line-height:1.1!important;}
.hsm-standard-letterhead .doc-brand-copy h1{display:block!important;margin:0 auto!important;padding:0!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(30px,4vw,46px)!important;line-height:.98!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:#061b46!important;text-align:center!important;white-space:normal!important;word-spacing:.03em!important;overflow:visible!important;}
.hsm-standard-letterhead .doc-brand-copy h1 span{display:block!important;line-height:.98!important;}
.hsm-standard-letterhead .doc-tagline{margin:10px auto 5px!important;color:#9a6d10!important;font-size:12px!important;line-height:1.1!important;letter-spacing:.26em!important;text-transform:uppercase!important;font-weight:900!important;white-space:normal!important;}
.hsm-document-page,.receipt-document,.statement-document{max-width:920px!important;margin-left:auto!important;margin-right:auto!important;padding:44px 54px!important;box-sizing:border-box!important;background:#fff!important;}
.hsm-mail-app{display:grid;grid-template-columns:230px minmax(300px,.95fr) minmax(420px,1.35fr);min-height:760px;border:1px solid rgba(11,63,136,.14);border-radius:28px;background:#fff;overflow:hidden;box-shadow:var(--hsm-shadow);}
.hsm-mail-rail{background:linear-gradient(180deg,#061b46,#0b2f68);color:#fff;padding:1rem;display:flex;flex-direction:column;gap:.8rem;}
.hsm-mail-brand{display:flex;align-items:center;gap:.7rem;padding:.25rem .25rem .7rem;border-bottom:1px solid rgba(255,255,255,.16);}
.hsm-mail-brand span{display:block;color:#cbd7f0;font-size:.76rem;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hsm-mail-compose-btn{display:flex!important;justify-content:center!important;align-items:center!important;background:#fff!important;color:#061b46!important;border:2px solid #d6a235!important;border-radius:18px!important;min-height:48px!important;text-decoration:none!important;font-weight:900!important;box-shadow:0 12px 28px rgba(0,0,0,.18)!important;}
.hsm-mail-folders{display:grid;gap:.25rem;}
.hsm-mail-folders a{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:#eef4ff;border-radius:999px;padding:.72rem .85rem;font-weight:800;}
.hsm-mail-folders a.active,.hsm-mail-folders a:hover{background:rgba(255,255,255,.15);color:#fff;text-decoration:none;}
.hsm-mail-list-pane{border-right:1px solid #e3e9f5;background:#f6f8fc;min-width:0;}
.hsm-mail-toolbar{display:flex;gap:.6rem;align-items:center;padding:1rem;background:#fff;border-bottom:1px solid #e4ebf6;}
.hsm-mail-toolbar input{width:100%;border:1px solid #d9e2ef;border-radius:999px;padding:.74rem 1rem;font:inherit;background:#fff;}
.hsm-mail-list-pane h2{padding:1rem 1rem .45rem;margin:0;color:#061b46;}
.hsm-mail-thread-list{display:grid;}
.hsm-mail-thread{display:grid!important;grid-template-columns:minmax(110px,.52fr) minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.95rem 1rem;border-bottom:1px solid #e8edf6;background:#fff;color:#061b46;text-decoration:none;}
.hsm-mail-thread.unseen{font-weight:900;background:#fdfefe;}
.hsm-mail-thread.seen{color:#53617a;}
.hsm-mail-thread:hover{background:#eef5ff;text-decoration:none;}
.hsm-mail-thread strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#061b46;}
.hsm-mail-thread small{white-space:nowrap;color:#6a7890;}
.hsm-mail-reader-pane{min-width:0;background:#fff;overflow:auto;}
.hsm-mail-message-card{border-bottom:1px solid #e3e9f5;padding:1.2rem 1.35rem;background:#fff;}
.hsm-mail-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;}
.hsm-mail-message-head h2{margin:.2rem 0;color:#061b46;font-size:1.35rem;line-height:1.22;}
.hsm-mail-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin:.8rem 0;}
.hsm-mail-actions form{margin:0;}
.hsm-mail-body{white-space:pre-wrap;border:1px solid #e3e9f5;background:#fbfcff;border-radius:18px;padding:1rem;color:#061b46;line-height:1.6;}
.hsm-mail-compose-panel{padding:1.2rem 1.35rem;background:linear-gradient(180deg,#fff,#f9fbff);}
.hsm-mail-compose-panel .submit{border-radius:999px!important;min-height:46px!important;width:auto!important;max-width:240px!important;padding:.82rem 1.25rem!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;background:#061b46!important;color:#fff!important;border:2px solid #d6a235!important;box-shadow:0 10px 24px rgba(6,27,70,.18)!important;}
.hsm-signature-preview{border:1px dashed #d6a235;border-radius:16px;background:#fffaf0;padding:.8rem;overflow:auto;}
.hsm-empty-state{padding:1rem;color:#62718a;}
.hsm-contribution-actions{display:flex;flex-direction:column;gap:.42rem;min-width:160px;}
.hsm-contribution-actions form{margin:0;display:flex;flex-direction:column;gap:.35rem;}
.hsm-contribution-actions .mini-btn[disabled]{opacity:.45;cursor:not-allowed;}
.hsm-row-needs-action{background:#fffaf0;}
.hsm-row-complete{background:#fbfefe;}
.hsm-clean-list{line-height:1.72;color:#061b46;}
.hsm-method-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:1rem 0;}
.hsm-method-detail-grid>div{border:1px solid #e4dfcf;border-radius:16px;background:#fffaf0;padding:.9rem;}
.hsm-method-detail-grid strong{display:block;color:#9b6f15;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;}
.hsm-method-detail-grid span,.hsm-method-detail-grid a{display:block;margin-top:.25rem;color:#061b46;font-weight:900;word-break:break-word;}
.trustee-signature-field{grid-column:1/-1;display:grid;gap:.45rem;font-weight:900;color:#061b46;}
.trustee-signature-canvas{width:100%;height:190px;border:2px solid #d6a235;border-radius:18px;background:#fffdf6;box-shadow:inset 0 0 0 1px rgba(6,27,70,.08);touch-action:none;}
.hsm-letter-layout{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(420px,1.15fr) minmax(300px,.9fr);gap:1rem;align-items:start;}
.hsm-letter-template-panel,.hsm-letter-editor,.hsm-letter-preview{border:1px solid #e3e9f5;border-radius:22px;background:#fff;padding:1rem;box-shadow:0 10px 24px rgba(6,27,70,.06);}
.hsm-template-btn,.hsm-letter-link{display:block;width:100%;border:1px solid #dce5f2;background:#fbfcff;border-radius:16px;padding:.75rem .85rem;margin:.45rem 0;text-align:left;color:#061b46;text-decoration:none;font-weight:900;}
.hsm-template-btn:hover,.hsm-letter-link:hover{border-color:#d6a235;text-decoration:none;background:#fffaf0;}
.hsm-letter-link small{display:block;font-weight:600;color:#60718a;margin-top:.2rem;}
.preview-sheet{max-height:760px;overflow:auto;background:#f4f6fb;border-radius:16px;padding:1rem;}
.hsm-letter-document{font-size:15px;line-height:1.7;color:#061b46;}
.letter-recipient{margin:1rem 0 1.2rem;white-space:pre-line;}
.letter-subject{font-size:1.7rem!important;line-height:1.18!important;color:#061b46!important;margin:1rem 0!important;}
.letter-body{white-space:pre-line;line-height:1.78;margin:1rem 0 2rem;color:#061b46;}
.letter-signature{margin-top:2rem;}
@media(max-width:1180px){.hsm-mail-app{grid-template-columns:1fr}.hsm-mail-rail{border-radius:0}.hsm-letter-layout{grid-template-columns:1fr}.hsm-mail-thread{grid-template-columns:1fr}.hsm-standard-letterhead{grid-template-columns:1fr!important}.hsm-standard-letterhead .doc-logo-lockup,.hsm-standard-letterhead .doc-seal-lockup{margin:auto!important}.hsm-standard-letterhead .doc-seal-lockup{display:none!important}.hsm-document-page,.receipt-document,.statement-document{padding:30px 22px!important;}}
@media print{.hsm-document-page,.receipt-document,.statement-document{padding:24px 36px!important;width:100%!important;max-width:100%!important;box-shadow:none!important;border:0!important}.hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead{grid-template-columns:120px minmax(0,1fr) 120px!important;gap:22px!important}.hsm-standard-letterhead .doc-brand-copy h1{font-size:38px!important}.hsm-mail-rail,.hsm-mail-list-pane,.hsm-mail-compose-panel,.no-print,.staff-sidebar,.admin-sidebar,.site-header,.lux-btn,.mini-btn{display:none!important}.preview-sheet{max-height:none!important;overflow:visible!important;padding:0!important;background:#fff!important}.hsm-letter-layout{display:block!important}.hsm-letter-template-panel,.hsm-letter-editor{display:none!important}.hsm-letter-preview{border:0!important;box-shadow:none!important;padding:0!important}}

/* HSM Professional System Standard 3.3.3 - processor flow and document precision */
.giving-platform-picker{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0;}
.giving-platform-picker button{border:1px solid rgba(6,27,70,.18);background:#fff;color:#061b46;border-radius:999px;padding:.72rem 1rem;font-weight:900;cursor:pointer;box-shadow:0 6px 14px rgba(6,27,70,.05);}
.giving-platform-picker button.active,.giving-platform-picker button:hover{background:linear-gradient(135deg,#061b46,#0b3f88);border-color:#d6a235;color:#fff;}
.hsm-envelope-chip-grid{display:flex;flex-wrap:wrap;gap:.55rem;margin:.85rem 0 0;}
.hsm-form-section{border:1px solid rgba(11,63,136,.10);border-radius:18px;background:#fbfcff;padding:1rem;margin:1rem 0;}
.hsm-form-section h3{margin:.1rem 0 .25rem;color:#061b46;font-family:Georgia,'Times New Roman',serif;font-size:1.35rem;}
.hsm-form-section p{margin:.15rem 0;color:#53617a;}
.hsm-giving-visible-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1rem!important;margin-top:1rem!important;}
.hsm-giving-visible-fields label{display:block!important;min-width:0;}
.hsm-wide-submit{min-height:52px!important;font-size:1rem!important;letter-spacing:.04em!important;}
.ministry-giving-platforms.giving-platform-stack{display:grid;gap:1rem;}
.giving-platform-card{cursor:pointer;border:1px solid rgba(11,63,136,.12);border-radius:20px;background:linear-gradient(180deg,#fff,#fffaf0);padding:1rem;box-shadow:0 10px 24px rgba(6,27,70,.06);}
.giving-platform-card:hover{border-color:#d6a235;box-shadow:0 15px 30px rgba(6,27,70,.11);}
.giving-platform-card .platform-icon{width:46px;height:46px;border-radius:14px;background:#061b46;color:#fff;display:grid;place-items:center;font-weight:900;margin-bottom:.7rem;}
.giving-platform-card h3{margin:.15rem 0;color:#061b46;font-family:Georgia,'Times New Roman',serif;}
.giving-platform-card span{display:block;color:#9b6f15;font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;font-weight:900;}
.giving-platform-card .giving-detail{font-size:.9rem;color:#40516e;word-break:break-word;}
.receipt-document .doc-title{text-align:left!important;margin:1.6rem 0 1.2rem!important;}
.receipt-document .doc-title h2{text-align:left!important;font-size:2.2rem!important;text-transform:none!important;letter-spacing:.02em!important;}
.hsm-standard-letterhead .doc-brand-copy h1{max-width:520px!important;margin-left:auto!important;margin-right:auto!important;}
.hsm-standard-letterhead .doc-contact,.hsm-standard-letterhead .doc-church-line{display:block!important;text-align:center!important;margin:.25rem auto!important;line-height:1.25!important;}
@media(max-width:760px){.hsm-giving-visible-fields{grid-template-columns:1fr!important}.giving-platform-picker button{flex:1 1 150px}.hsm-form-section{padding:.85rem}.hsm-standard-letterhead .doc-brand-copy h1{font-size:28px!important}}

/* HSM 3.3.5 systematic professional document and giving corrections */
.hsm-standard-letterhead,
.doc-letterhead.hsm-standard-letterhead,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{
  grid-template-columns:160px minmax(420px,1fr) 160px!important;
  gap:34px!important;
  min-height:170px!important;
  padding:28px 18px 30px!important;
}
.hsm-standard-letterhead .doc-logo-lockup,
.hsm-standard-letterhead .doc-seal-lockup{
  width:160px!important;
  min-width:160px!important;
}
.hsm-standard-letterhead .doc-logo-lockup img{
  width:148px!important;
  max-width:148px!important;
}
.hsm-standard-letterhead .doc-seal-lockup img{
  width:138px!important;
  max-width:138px!important;
}
.hsm-standard-letterhead .doc-brand-copy{max-width:650px!important;}
.hsm-standard-letterhead .doc-brand-copy h1{font-size:clamp(40px,4.5vw,58px)!important;letter-spacing:.04em!important;line-height:.98!important;}
.hsm-standard-letterhead .doc-tagline{font-size:13px!important;letter-spacing:.24em!important;}
.hsm-document-page,.receipt-document,.statement-document{max-width:980px!important;}
.hsm-giving-hero-v2 .hsm-giving-hero-panel img,.hsm-pro-hero .hsm-giving-hero-panel img{max-width:190px!important;width:190px!important;height:auto!important;object-fit:contain!important;}
.hsm-giving-desk.hsm-pro-desk{display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;gap:28px!important;align-items:start!important;max-width:1220px!important;margin-left:auto!important;margin-right:auto!important;}
.hsm-giving-main{min-width:0!important;width:100%!important;}
.hsm-giving-side{min-width:0!important;}
.hsm-giving-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;padding:8px;border:1px solid #e7d9b5;border-radius:999px;background:#fffaf0;}
.hsm-giving-tabs button{border:1px solid #d8c38a;background:#fff;color:#061b46;border-radius:999px;padding:10px 18px;font-weight:900;cursor:pointer;}
.hsm-giving-tabs button.active,.hsm-giving-tabs button:hover{background:#061b46;color:#fff;border-color:#061b46;box-shadow:0 8px 20px rgba(6,27,70,.14);}
.hsm-giving-tab-panel{display:block!important;margin-bottom:16px!important;}
.giving-platform-picker{display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
.giving-platform-picker button{border:1px solid #d7dfea!important;background:#fff!important;color:#061b46!important;border-radius:999px!important;padding:11px 18px!important;font-weight:900!important;cursor:pointer!important;}
.giving-platform-picker button.active,.giving-platform-picker button:hover{background:#061b46!important;color:#fff!important;border-color:#061b46!important;}
.hsm-giving-side .giving-platform-stack{display:none!important;}
.hsm-giving-card.hsm-pro-card{overflow:visible!important;}
@media print{
  .hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead{grid-template-columns:150px minmax(0,1fr) 150px!important;gap:28px!important;min-height:160px!important;}
  .hsm-standard-letterhead .doc-logo-lockup,.hsm-standard-letterhead .doc-seal-lockup{width:150px!important;min-width:150px!important;display:flex!important;}
  .hsm-standard-letterhead .doc-logo-lockup img{width:140px!important;max-width:140px!important;}
  .hsm-standard-letterhead .doc-seal-lockup img{width:130px!important;max-width:130px!important;}
  .hsm-standard-letterhead .doc-brand-copy h1{font-size:46px!important;}
}
@media(max-width:980px){.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important}.hsm-standard-letterhead,.doc-letterhead.hsm-standard-letterhead{grid-template-columns:1fr!important}.hsm-standard-letterhead .doc-logo-lockup,.hsm-standard-letterhead .doc-seal-lockup{margin:auto!important}}

/* HSM 3.3.6 consolidated professional giving/member/logo corrections */
.hsm-giving-logo-panel,
.hsm-giving-hero-panel.hsm-giving-logo-panel{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.hsm-giving-logo-panel img,
.hsm-giving-hero-v2 .hsm-giving-logo-panel img,
.hsm-pro-hero .hsm-giving-logo-panel img{
  width:min(360px,100%)!important;
  max-width:360px!important;
  height:auto!important;
  display:block!important;
  margin:0 auto 10px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.22))!important;
}
.hsm-giving-logo-panel strong,
.hsm-giving-logo-panel small{display:block!important;text-align:center!important;color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.28)!important;}
.hsm-giving-logo-panel strong{font-family:Georgia,'Times New Roman',serif!important;font-size:1.55rem!important;color:#ffe59a!important;}
.hsm-giving-tabs{border-radius:22px!important;justify-content:flex-start!important;padding:8px!important;background:#fffdf7!important;}
.hsm-giving-tab-panel,
[data-member-giving-panel]{display:none!important;}
.hsm-giving-tab-panel.active,
[data-member-giving-panel].active{display:block!important;}
.hsm-giving-visible-fields.hsm-giving-tab-panel.active{display:grid!important;}
.hsm-form-section.hsm-giving-tab-panel.active{display:block!important;}
.hsm-giving-method-grid,
.hsm-form-section .hsm-giving-method-grid,
.member-giving-zone .hsm-giving-method-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:16px!important;
  margin:18px 0 4px!important;
}
.hsm-giving-method-grid .giving-platform-card{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  min-width:0!important;
  padding:18px!important;
  overflow:visible!important;
}
.hsm-giving-method-grid .giving-platform-card .lux-btn,
.hsm-giving-method-grid .giving-platform-card .giving-platform-open,
.hsm-giving-method-grid .giving-platform-card .giving-platform-select{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
  justify-self:stretch!important;
  text-align:center!important;
  border-radius:999px!important;
}
.hsm-giving-method-grid .giving-platform-card.active{border-color:#d6a235!important;box-shadow:0 18px 34px rgba(6,27,70,.14)!important;}
.hsm-cashapp-qr{
  grid-column:1/-1!important;
  width:190px!important;
  max-width:100%!important;
  height:auto!important;
  margin:12px auto!important;
  display:block!important;
  border:1px solid #d6a235!important;
  border-radius:18px!important;
  background:#fff!important;
  padding:10px!important;
}
.giving-envelope-panel.hsm-envelope-flow-card{
  background:linear-gradient(180deg,#061b46 0%,#0a3f86 100%)!important;
  color:#fff!important;
  border:1px solid #d6a235!important;
  border-left:5px solid #d6a235!important;
  padding:22px!important;
  overflow:hidden!important;
}
.giving-envelope-panel.hsm-envelope-flow-card .hsm-envelope-mark{display:flex!important;gap:10px!important;align-items:center!important;margin-bottom:12px!important;}
.giving-envelope-panel.hsm-envelope-flow-card .hsm-envelope-mark span{display:inline-grid!important;place-items:center!important;width:46px!important;height:46px!important;border-radius:14px!important;background:#061b46!important;border:2px solid #d6a235!important;color:#ffe59a!important;font-weight:900!important;letter-spacing:0!important;}
.giving-envelope-panel.hsm-envelope-flow-card .hsm-envelope-mark strong{font-family:Georgia,'Times New Roman',serif!important;font-size:1.25rem!important;color:#fff!important;}
.giving-envelope-panel.hsm-envelope-flow-card span{color:#ffe59a!important;}
.giving-envelope-panel.hsm-envelope-flow-card h3,
.giving-envelope-panel.hsm-envelope-flow-card #givingEnvelopeTitle{color:#fff!important;font-size:clamp(28px,3vw,38px)!important;line-height:1.08!important;text-shadow:0 2px 6px rgba(0,0,0,.28)!important;}
.giving-envelope-panel.hsm-envelope-flow-card p,
.giving-envelope-panel.hsm-envelope-flow-card #givingEnvelopeText{color:#f4f8ff!important;font-size:1rem!important;line-height:1.6!important;}
.hsm-envelope-flow-steps{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:18px 0!important;}
.hsm-envelope-flow-steps>div{display:flex!important;gap:10px!important;align-items:center!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:14px!important;padding:9px 10px!important;}
.hsm-envelope-flow-steps b{display:inline-grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%!important;background:#d6a235!important;color:#061b46!important;}
.hsm-envelope-flow-steps em{color:#fff!important;font-style:normal!important;font-weight:800!important;line-height:1.2!important;}
.giving-scripture{color:#ffe59a!important;}
.member-portal-hero{max-width:1180px;margin:24px auto;padding:30px;border:1px solid #d6a235;border-radius:28px;background:linear-gradient(135deg,#061b46,#0b3f88 64%,#d6a235);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:center;box-shadow:0 22px 60px rgba(6,27,70,.18);}
.member-portal-hero h1{font-family:Georgia,'Times New Roman',serif;color:#fff;font-size:clamp(38px,5vw,62px);line-height:1;margin:.35rem 0;}
.member-portal-hero p{color:#eef5ff;font-size:1.06rem;line-height:1.6;}
.member-portal-hero aside{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.26);border-radius:20px;padding:18px;color:#fff;}
.member-portal-hero aside strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:1.25rem;color:#ffe59a;}
.member-portal-hero aside small{color:#fff;word-break:break-word;}
.member-office-tabs{max-width:1180px;margin:0 auto 20px;padding:8px;background:#fffdf7;border:1px solid #e5d5a8;border-radius:999px;display:flex;flex-wrap:wrap;gap:8px;}
.member-office-tabs a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#061b46;font-weight:900;border:1px solid transparent;border-radius:999px;padding:10px 18px;}
.member-office-tabs a.active,.member-office-tabs a:hover{background:#061b46;color:#fff;border-color:#d6a235;}
.member-command-grid{max-width:1180px;margin:0 auto 24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;}
.member-command-card{border:1px solid rgba(214,162,53,.55);border-radius:24px;background:#fff;box-shadow:0 14px 34px rgba(6,27,70,.08);padding:22px;min-height:190px;}
.member-command-card span{display:block;color:#9b6f15;text-transform:uppercase;letter-spacing:.16em;font-size:.75rem;font-weight:900;}
.member-command-card h3{font-family:Georgia,'Times New Roman',serif;font-size:1.55rem;color:#061b46;margin:.35rem 0 .55rem;}
.member-command-card p{color:#42516c;line-height:1.55;}
.member-records-card,.member-notice-section,.member-embedded-checkout{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;}
.member-embedded-checkout #hsm-stripe-embedded-checkout{min-height:620px;border:1px solid #e1e8f4;border-radius:18px;background:#fff;padding:12px;}
.hsm-us-date-cell{white-space:nowrap!important;direction:ltr!important;text-align:left!important;}
.hsm-us-date-cell strong{display:block;color:#061b46;}
.table-wrap table th,.table-wrap table td{vertical-align:top!important;}
.staff-main .table-wrap,.admin-main .table-wrap{overflow-x:auto!important;}
.staff-main .table-wrap table{min-width:980px!important;}
@media(max-width:900px){
  .member-portal-hero{grid-template-columns:1fr;margin-left:12px;margin-right:12px;}
  .member-office-tabs,.member-command-grid,.member-records-card,.member-embedded-checkout{margin-left:12px!important;margin-right:12px!important;}
  .hsm-giving-hero-v2{grid-template-columns:1fr!important;}
  .hsm-giving-logo-panel img{width:min(330px,90vw)!important;max-width:330px!important;}
  .hsm-giving-method-grid{grid-template-columns:1fr!important;}
}
@media print{
  .hsm-giving-logo-panel img,.site-footer img,.footer-logo img{background:transparent!important;box-shadow:none!important;}
  .hsm-standard-letterhead .doc-logo-lockup img{width:156px!important;max-width:156px!important;}
  .hsm-standard-letterhead .doc-seal-lockup img{width:144px!important;max-width:144px!important;}
}


/* HSM 3.3.7 final professional giving, logo, QR, date/time, and panel cleanup */
.hsm-giving-hero-v2{align-items:center!important;grid-template-columns:minmax(0,1.25fr) minmax(360px,520px)!important;gap:34px!important;}
.hsm-giving-logo-panel,.hsm-giving-hero-panel.hsm-giving-logo-panel,.hsm-pro-panel.hsm-giving-logo-panel{background:transparent!important;background-color:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;overflow:visible!important;}
.hsm-giving-logo-panel:before,.hsm-giving-logo-panel:after{display:none!important;content:none!important;}
.hsm-giving-logo-panel img,.hsm-giving-hero-v2 .hsm-giving-logo-panel img,.hsm-pro-hero .hsm-giving-logo-panel img{width:min(520px,100%)!important;max-width:520px!important;margin:auto!important;background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 24px 36px rgba(0,0,0,.28))!important;}
.hsm-giving-logo-panel strong,.hsm-giving-logo-panel small{display:none!important;}
.hsm-giving-desk.hsm-pro-desk{grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;gap:28px!important;align-items:start!important;}
.hsm-giving-main,.hsm-giving-card,.hsm-payment-card{min-width:0!important;}
.hsm-giving-method-grid,.hsm-form-section .hsm-giving-method-grid,.member-giving-zone .hsm-giving-method-grid{grid-template-columns:1fr!important;gap:14px!important;}
.hsm-giving-method-grid .giving-platform-card{display:grid!important;grid-template-columns:64px minmax(0,1fr) minmax(150px,auto)!important;gap:16px!important;align-items:center!important;padding:18px 20px!important;min-height:auto!important;overflow:visible!important;}
.hsm-giving-method-grid .giving-platform-card .platform-icon{width:58px!important;height:58px!important;margin:0!important;border-radius:18px!important;}
.hsm-giving-method-grid .giving-platform-card .platform-copy{min-width:0!important;}
.hsm-giving-method-grid .giving-platform-card h3{font-size:clamp(22px,2vw,28px)!important;line-height:1.1!important;margin:.2rem 0!important;word-break:normal!important;}
.hsm-giving-method-grid .giving-platform-card p{font-size:.98rem!important;line-height:1.5!important;margin:.3rem 0!important;color:#40516e!important;}
.hsm-giving-method-grid .giving-platform-card .lux-btn,.hsm-giving-method-grid .giving-platform-card .giving-platform-open,.hsm-giving-method-grid .giving-platform-card .giving-platform-select{grid-column:3!important;width:auto!important;min-width:150px!important;align-self:center!important;}
.hsm-payment-qr,.hsm-cashapp-qr,.hsm-zelle-qr{grid-column:2/4!important;width:min(260px,100%)!important;max-width:260px!important;height:auto!important;margin:12px 0 0!important;display:block!important;background:#fff!important;border:1px solid #d6a235!important;border-radius:18px!important;padding:10px!important;box-shadow:0 12px 28px rgba(6,27,70,.08)!important;}
.giving-envelope-panel.hsm-envelope-flow-card{background:linear-gradient(180deg,#061b46 0%,#0b3f88 100%)!important;color:#fff!important;border:1px solid #d6a235!important;border-left:6px solid #d6a235!important;padding:24px!important;overflow:visible!important;}
.giving-envelope-panel.hsm-envelope-flow-card .hsm-envelope-mark strong,.giving-envelope-panel.hsm-envelope-flow-card #givingEnvelopeTitle,.giving-envelope-panel.hsm-envelope-flow-card h3{color:#ffffff!important;text-shadow:0 2px 8px rgba(0,0,0,.35)!important;}
.giving-envelope-panel.hsm-envelope-flow-card #givingEnvelopeText,.giving-envelope-panel.hsm-envelope-flow-card p{color:#f8fbff!important;font-weight:650!important;line-height:1.65!important;}
.giving-envelope-panel.hsm-envelope-flow-card>span{display:block!important;color:#ffe59a!important;letter-spacing:.14em!important;font-weight:900!important;}
.giving-scripture{border-top:1px solid rgba(255,255,255,.35)!important;margin-top:16px!important;padding-top:14px!important;color:#ffe59a!important;font-weight:800!important;}
.hsm-giving-tabs{position:sticky!important;top:0!important;z-index:5!important;border-radius:18px!important;background:#fffdf7!important;border:1px solid #e5d5a8!important;}
.hsm-us-date-cell{white-space:nowrap!important;min-width:150px!important;direction:ltr!important;text-align:left!important;}
.hsm-us-date-cell strong,.hsm-us-date-cell small{display:block!important;white-space:nowrap!important;}
.staff-main .table-wrap table{min-width:1180px!important;}
.staff-main .table-wrap table th,.staff-main .table-wrap table td{word-break:normal!important;}
.staff-main .hsm-contribution-actions{min-width:180px!important;}
@media(max-width:1100px){.hsm-giving-hero-v2{grid-template-columns:1fr!important}.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important}.hsm-giving-method-grid .giving-platform-card{grid-template-columns:58px minmax(0,1fr)!important}.hsm-giving-method-grid .giving-platform-card .lux-btn,.hsm-giving-method-grid .giving-platform-card .giving-platform-open,.hsm-giving-method-grid .giving-platform-card .giving-platform-select,.hsm-payment-qr,.hsm-cashapp-qr,.hsm-zelle-qr{grid-column:1/-1!important;width:100%!important;max-width:280px!important;justify-self:start!important}.hsm-giving-logo-panel img{width:min(430px,96vw)!important;}}
@media print{.hsm-giving-logo-panel img{width:460px!important;max-width:460px!important;background:transparent!important}.hsm-standard-letterhead .doc-logo-lockup img,.receipt-logo img{width:170px!important;max-width:170px!important}.hsm-standard-letterhead .doc-seal-lockup img,.receipt-seal img{width:155px!important;max-width:155px!important}.hsm-payment-qr,.hsm-cashapp-qr,.hsm-zelle-qr{box-shadow:none!important;}}


/* HSM 3.3.8 accepted card image - payment card only */
.hsm-accepted-card-types{
  grid-column:1/-1!important;
  display:block!important;
  width:min(420px,100%)!important;
  max-width:420px!important;
  height:auto!important;
  margin:10px 0 2px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.hsm-giving-method-grid .platform-stripe .hsm-accepted-card-types{
  grid-column:2/4!important;
}
@media(max-width:1100px){
  .hsm-giving-method-grid .platform-stripe .hsm-accepted-card-types{grid-column:1/-1!important;max-width:100%!important;}
}
@media print{
  .hsm-accepted-card-types{max-width:380px!important;box-shadow:none!important;}
}

/* HSM Release 3.3.9: giving scripture contrast fix
   Keeps the giving flow intact; only corrects readability and selection contrast. */
.hsm-giving-side .scripture-card,
.hsm-giving-card.scripture-card,
.scripture-card.hsm-pro-card{
  background:linear-gradient(180deg,#ffffff,#fffdf7)!important;
  border:1px solid rgba(216,173,61,.55)!important;
  box-shadow:0 18px 42px rgba(4,20,47,.10)!important;
  color:#061d46!important;
}
.hsm-giving-side .scripture-card h3,
.hsm-giving-card.scripture-card h3,
.scripture-card.hsm-pro-card h3{
  color:#061d46!important;
}
.hsm-giving-side .scripture-card p,
.hsm-giving-card.scripture-card p,
.scripture-card.hsm-pro-card p{
  color:#22344f!important;
  font-weight:700!important;
  line-height:1.7!important;
}
.hsm-giving-side .scripture-card strong,
.hsm-giving-card.scripture-card strong,
.scripture-card.hsm-pro-card strong{
  color:#8a6410!important;
  font-weight:900!important;
}
.hsm-giving-side .scripture-card ::selection,
.hsm-giving-card.scripture-card ::selection,
.scripture-card.hsm-pro-card ::selection{
  background:#dbeafe!important;
  color:#061d46!important;
}
@media(max-width:700px){
  .hsm-giving-side .scripture-card,
  .hsm-giving-card.scripture-card,
  .scripture-card.hsm-pro-card{
    padding:22px!important;
  }
  .hsm-giving-side .scripture-card p,
  .hsm-giving-card.scripture-card p,
  .scripture-card.hsm-pro-card p{
    font-size:16px!important;
  }
}

/* HSM 3.4.0 professional giving, split ministry, QR, popup, and print cleanup */
.hsm-giving-logo-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:clamp(10px,2vw,26px)!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.hsm-giving-logo-panel img{width:min(560px,94vw)!important;max-width:100%!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;object-fit:contain!important;}
.hsm-method-gallery{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(360px,1fr))!important;gap:18px!important;align-items:stretch!important;margin-top:16px!important;}
.hsm-method-gallery .hsm-method-card{display:grid!important;grid-template-columns:70px minmax(0,1fr) auto!important;gap:18px!important;align-items:center!important;min-height:160px!important;padding:24px!important;border-radius:26px!important;background:linear-gradient(135deg,#fff 0%,#fffdf7 62%,#f9efd9 100%)!important;overflow:visible!important;}
.hsm-method-gallery .hsm-method-card .platform-icon{width:64px!important;height:64px!important;border-radius:18px!important;margin:0!important;font-size:18px!important;box-shadow:0 12px 26px rgba(6,29,70,.18)!important;}
.hsm-method-gallery .hsm-method-card h3{font-size:clamp(28px,2.3vw,40px)!important;line-height:1!important;margin:4px 0!important;}
.hsm-method-gallery .hsm-method-card p{font-size:17px!important;line-height:1.48!important;margin:6px 0 0!important;color:#243858!important;}
.hsm-method-gallery .hsm-method-card .lux-btn,.hsm-method-gallery .hsm-method-card .giving-platform-select,.hsm-method-gallery .hsm-method-card .giving-platform-open{min-width:170px!important;white-space:nowrap!important;justify-self:end!important;align-self:center!important;}
.hsm-method-gallery .hsm-method-card .hsm-accepted-card-types{display:block!important;margin-top:12px!important;max-width:360px!important;width:100%!important;height:auto!important;}
.hsm-zelle-display{display:flex!important;align-items:center!important;gap:18px!important;margin-top:14px!important;}
.hsm-zelle-display strong{font-size:28px!important;color:#6d2ed6!important;letter-spacing:.02em!important;}
.hsm-method-gallery .hsm-zelle-qr,.hsm-method-gallery .hsm-payment-qr{width:150px!important;max-width:150px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;margin:0!important;grid-column:auto!important;}
.hsm-method-gallery .hsm-cashapp-qr{width:190px!important;max-width:190px!important;}
.hsm-allocation-builder{grid-column:1/-1;margin-top:18px;border:1px solid rgba(214,162,53,.45);background:linear-gradient(180deg,#fff,#fffaf0);border-radius:22px;padding:18px;}
.hsm-allocation-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.hsm-allocation-head strong{display:block;color:#061d46;font-size:1.1rem}.hsm-allocation-head span{color:#56677f}.hsm-allocation-rows{display:grid;gap:12px}.hsm-allocation-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.35fr) auto;gap:12px;align-items:end}.hsm-allocation-total{margin:12px 0 0;color:#061d46;font-weight:800}.doc-allocation-table{width:100%;border-collapse:collapse;margin:18px 0;border:1px solid #d7dfec}.doc-allocation-table th{background:#061d46;color:#fff;text-align:left;padding:10px;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.doc-allocation-table td{padding:12px;border-top:1px solid #d7dfec}.doc-allocation-table td:last-child{text-align:right;font-weight:900;color:#061d46}.scripture-card p{color:#061d46!important}.scripture-card strong{color:#a67612!important}.hsm-us-date-cell,.hsm-us-date-cell strong{white-space:nowrap!important;word-break:normal!important;line-height:1.25!important}.table-wrap table th,.table-wrap table td{vertical-align:top}.ministry-giving-table-wrap,.table-wrap{overflow-x:auto!important}.hsm-contribution-actions input,.hsm-contribution-actions select{min-width:180px!important}.hsm-home-popup-overlay{position:fixed;inset:0;background:rgba(4,18,45,.72);z-index:9999;display:grid;place-items:center;padding:22px;backdrop-filter:blur(4px)}.hsm-home-popup-overlay[hidden]{display:none!important}.hsm-home-popup-card{width:min(760px,96vw);position:relative;text-align:center;border-radius:34px;padding:clamp(28px,5vw,54px);background:radial-gradient(circle at top,#fff8df 0%,#fff 42%,#f7f0df 100%);border:3px solid #d6a235;box-shadow:0 34px 90px rgba(0,0,0,.36);overflow:hidden}.hsm-home-popup-card:before,.hsm-home-popup-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(214,162,53,.12);z-index:0}.hsm-home-popup-card:before{left:-110px;top:-110px}.hsm-home-popup-card:after{right:-120px;bottom:-130px}.hsm-home-popup-card>*{position:relative;z-index:1}.hsm-popup-close{position:absolute;right:18px;top:14px;border:0;background:#061d46;color:#fff;border-radius:50%;width:42px;height:42px;font-size:28px;line-height:1;cursor:pointer}.hsm-popup-logo-row{display:flex;align-items:center;justify-content:center;gap:14px}.hsm-popup-logo-row img{width:112px;height:auto;object-fit:contain}.hsm-popup-logo-row span{text-transform:uppercase;letter-spacing:.2em;color:#a67612;font-weight:900;font-size:.82rem}.hsm-popup-gold-line{width:min(360px,80%);height:3px;background:linear-gradient(90deg,transparent,#d6a235,transparent);margin:18px auto}.hsm-popup-subtitle{margin:0;color:#061d46;text-transform:uppercase;letter-spacing:.18em;font-weight:900}.hsm-home-popup-card h2{margin:8px 0 12px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,8vw,82px);line-height:.96;color:#061d46;text-shadow:0 2px 0 rgba(214,162,53,.24)}.hsm-popup-body{font-size:clamp(18px,2.2vw,24px);line-height:1.55;color:#243858;max-width:620px;margin:0 auto 20px}.hsm-popup-signature{font-family:Georgia,'Times New Roman',serif;color:#a67612;font-size:clamp(22px,3vw,32px);font-weight:900;margin:12px 0 22px}.hsm-popup-action{min-width:220px}.hsm-admin-subpanel{border:1px solid rgba(214,162,53,.35);border-radius:22px;padding:18px;background:#fffdf7}@media(max-width:900px){.hsm-method-gallery{grid-template-columns:1fr!important}.hsm-method-gallery .hsm-method-card{grid-template-columns:58px minmax(0,1fr)!important}.hsm-method-gallery .hsm-method-card .lux-btn,.hsm-method-gallery .hsm-method-card .giving-platform-select,.hsm-method-gallery .hsm-method-card .giving-platform-open{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}.hsm-allocation-row{grid-template-columns:1fr}.hsm-popup-logo-row{display:grid}.hsm-popup-logo-row img{margin:auto;width:126px}}
@media print{.hsm-giving-logo-panel img{width:520px!important}.hsm-home-popup-overlay{display:none!important}.hsm-standard-letterhead .doc-logo-lockup img,.receipt-logo img{width:190px!important;max-width:190px!important}.hsm-standard-letterhead .doc-seal-lockup img,.receipt-seal img{width:170px!important;max-width:170px!important}.doc-allocation-table th{background:#061d46!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}


/* HSM Release 3.4.1: professional giving layout, scripture, envelope explanations */
.hsm-giving-hero-v2{grid-template-columns:minmax(0,1.15fr) minmax(360px,520px)!important;}
.hsm-giving-hero-v2 h1{font-size:clamp(42px,5.4vw,72px)!important;letter-spacing:-.035em!important;}
.hsm-giving-desk.hsm-pro-desk{grid-template-columns:minmax(0,1fr) minmax(330px,390px)!important;gap:30px!important;}
.hsm-giving-tabs{position:relative!important;top:auto!important;border-radius:20px!important;display:flex!important;align-items:center!important;}
.hsm-giving-tabs button{font-size:.98rem!important;padding:11px 20px!important;}
.hsm-tab-intro{font-size:1.02rem!important;color:#364965!important;line-height:1.6!important;margin:.25rem 0 1rem!important;}
.hsm-method-showcase{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(310px,1fr))!important;gap:18px!important;margin-top:16px!important;}
.hsm-method-showcase .hsm-method-card{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:14px 16px!important;align-items:start!important;padding:20px!important;min-height:0!important;border-radius:24px!important;background:linear-gradient(135deg,#ffffff 0%,#fffdf8 64%,#f7efd9 100%)!important;border:1px solid rgba(214,162,53,.70)!important;box-shadow:0 16px 38px rgba(6,27,70,.10)!important;}
.hsm-method-showcase .hsm-method-card .platform-icon{width:56px!important;height:56px!important;border-radius:17px!important;margin:0!important;font-size:16px!important;background:#061b46!important;color:#ffe59a!important;border:2px solid #d6a235!important;}
.hsm-method-showcase .hsm-method-card .platform-copy{min-width:0!important;}
.hsm-method-showcase .hsm-method-card .platform-copy span{font-size:.68rem!important;letter-spacing:.16em!important;color:#a67612!important;}
.hsm-method-showcase .hsm-method-card h3{font-size:clamp(24px,2.1vw,32px)!important;line-height:1.08!important;margin:.2rem 0 .45rem!important;color:#061b46!important;}
.hsm-method-showcase .hsm-method-card p{font-size:1rem!important;line-height:1.55!important;margin:.25rem 0!important;color:#34455f!important;}
.hsm-method-showcase .hsm-method-card .lux-btn,.hsm-method-showcase .hsm-method-card .giving-platform-open,.hsm-method-showcase .hsm-method-card .giving-platform-select{grid-column:1/-1!important;width:100%!important;min-width:0!important;justify-self:stretch!important;border-radius:999px!important;}
.hsm-method-showcase .hsm-accepted-card-types{grid-column:1/-1!important;width:min(360px,100%)!important;max-width:360px!important;margin:12px 0 4px!important;}
.hsm-method-showcase .hsm-payment-qr,.hsm-method-showcase .hsm-cashapp-qr,.hsm-method-showcase .hsm-zelle-qr{grid-column:1/-1!important;justify-self:center!important;width:min(230px,92%)!important;max-width:230px!important;background:#fff!important;border:0!important;border-radius:16px!important;padding:8px!important;box-shadow:0 8px 20px rgba(6,27,70,.08)!important;}
.hsm-method-showcase .platform-zelle .hsm-zelle-qr{width:min(210px,92%)!important;max-width:210px!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;}
.hsm-zelle-display{justify-content:center!important;margin-top:10px!important;}
.giving-envelope-panel.hsm-giving-purpose-card{position:sticky!important;top:18px!important;background:linear-gradient(180deg,#061b46,#0b3f88)!important;color:#fff!important;border:1px solid #d6a235!important;border-left:6px solid #d6a235!important;border-radius:26px!important;padding:24px!important;box-shadow:0 18px 44px rgba(6,27,70,.18)!important;}
.giving-envelope-panel.hsm-giving-purpose-card .hsm-panel-kicker{display:block!important;text-transform:uppercase!important;letter-spacing:.16em!important;color:#ffe59a!important;font-weight:900!important;margin-top:8px!important;}
.giving-envelope-panel.hsm-giving-purpose-card #givingEnvelopeTitle{color:#fff!important;font-size:clamp(30px,3vw,42px)!important;}
.giving-envelope-panel.hsm-giving-purpose-card #givingEnvelopeText{color:#f8fbff!important;font-size:1.02rem!important;line-height:1.72!important;}
.hsm-envelope-scripture{margin-top:18px;border-top:1px solid rgba(255,255,255,.28);padding-top:14px;display:grid;gap:6px;}
.hsm-envelope-scripture strong{color:#ffe59a!important;font-family:Georgia,'Times New Roman',serif!important;font-size:1.05rem!important;}
.hsm-envelope-scripture span{color:#fff!important;line-height:1.5!important;}
.hsm-stewardship-scriptures{background:linear-gradient(180deg,#ffffff,#fffdf7)!important;border-left:6px solid #d6a235!important;}
.hsm-stewardship-scriptures h3{font-size:clamp(28px,2.6vw,38px)!important;color:#061b46!important;}
.hsm-stewardship-scriptures p{color:#1f3150!important;font-size:1rem!important;line-height:1.65!important;margin:.8rem 0!important;}
.hsm-stewardship-scriptures strong{color:#a67612!important;}
.hsm-designation-desk{background:#fff!important;border:1px solid rgba(214,162,53,.60)!important;box-shadow:0 12px 28px rgba(6,27,70,.06)!important;}
.hsm-allocation-row{grid-template-columns:minmax(260px,1fr) minmax(160px,.45fr) auto!important;}
@media(max-width:1100px){.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important}.giving-envelope-panel.hsm-giving-purpose-card{position:relative!important;top:auto!important}.hsm-method-showcase{grid-template-columns:1fr!important}.hsm-allocation-row{grid-template-columns:1fr!important}}
@media print{.hsm-method-showcase .hsm-payment-qr,.hsm-method-showcase .hsm-cashapp-qr,.hsm-method-showcase .hsm-zelle-qr{box-shadow:none!important}.hsm-giving-logo-panel img{width:540px!important;max-width:540px!important}}

/* HSM Release 3.4.4: giving-only professional anti-stack layout corrections.
   Trustee layout intentionally unchanged from approved 3.4.2. */
.hsm-method-showcase,
.hsm-giving-method-grid.hsm-method-showcase{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(360px,1fr))!important;
  gap:22px!important;
  align-items:stretch!important;
}
.hsm-method-showcase .hsm-method-card,
.hsm-giving-method-grid.hsm-method-showcase .giving-platform-card{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) auto!important;
  gap:16px 18px!important;
  align-items:center!important;
  min-height:160px!important;
  padding:22px!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.hsm-method-showcase .hsm-method-card .platform-icon{
  grid-column:1!important;
  grid-row:1!important;
  align-self:start!important;
}
.hsm-method-showcase .hsm-method-card .platform-copy{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  max-width:100%!important;
}
.hsm-method-showcase .hsm-method-card h3{
  font-size:clamp(24px,2vw,30px)!important;
  line-height:1.1!important;
  margin:.15rem 0 .4rem!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.hsm-method-showcase .hsm-method-card p{
  max-width:58ch!important;
  color:#30435f!important;
}
.hsm-method-showcase .hsm-method-card .lux-btn,
.hsm-method-showcase .hsm-method-card .giving-platform-open,
.hsm-method-showcase .hsm-method-card .giving-platform-select{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:end!important;
  width:auto!important;
  min-width:145px!important;
  max-width:190px!important;
  padding:13px 20px!important;
  white-space:normal!important;
  text-align:center!important;
}
.hsm-method-showcase .platform-copy .hsm-accepted-card-types,
.hsm-method-showcase .platform-copy .hsm-payment-qr,
.hsm-method-showcase .platform-copy .hsm-cashapp-qr,
.hsm-method-showcase .platform-copy .hsm-zelle-qr{
  display:block!important;
  margin:12px 0 0!important;
  max-width:230px!important;
  width:100%!important;
  height:auto!important;
}
.hsm-method-showcase .platform-zelle .platform-copy .hsm-zelle-qr{
  max-width:190px!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
}
.hsm-method-showcase .hsm-zelle-display{display:block!important;margin-top:10px!important;}
.hsm-method-showcase .giving-detail{display:inline-block!important;max-width:100%!important;white-space:normal!important;}
.hsm-giving-desk.hsm-pro-desk{
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  align-items:start!important;
}
.hsm-giving-side .hsm-giving-card{overflow:hidden!important;}
.hsm-stewardship-scriptures p{color:#243858!important;}
.hsm-stewardship-scriptures strong{color:#8b5f10!important;}
@media(max-width:1200px){
  .hsm-method-showcase,
  .hsm-giving-method-grid.hsm-method-showcase{grid-template-columns:1fr!important;}
  .hsm-method-showcase .hsm-method-card,
  .hsm-giving-method-grid.hsm-method-showcase .giving-platform-card{grid-template-columns:64px minmax(0,1fr) auto!important;}
}
@media(max-width:900px){
  .hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important;}
}
@media(max-width:720px){
  .hsm-method-showcase .hsm-method-card,
  .hsm-giving-method-grid.hsm-method-showcase .giving-platform-card{grid-template-columns:56px minmax(0,1fr)!important;min-height:0!important;}
  .hsm-method-showcase .hsm-method-card .lux-btn,
  .hsm-method-showcase .hsm-method-card .giving-platform-open,
  .hsm-method-showcase .hsm-method-card .giving-platform-select{grid-column:1/-1!important;grid-row:auto!important;justify-self:stretch!important;width:100%!important;max-width:none!important;}
  .hsm-method-showcase .hsm-method-card .platform-copy{grid-column:2!important;}
}


/* HSM 3.5.0: giving page restoration from approved sketch - giving page only */
.hsm-giving-restored-page{max-width:1220px;margin:28px auto;padding:0 14px;}
.hsm-giving-options-top{padding:18px!important;border-radius:26px!important;border:1px solid rgba(214,162,53,.55)!important;background:#fff!important;box-shadow:0 16px 42px rgba(6,27,70,.08)!important;}
.hsm-giving-options-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px;}
.hsm-giving-options-head h2{margin:0!important;font-family:Georgia,'Times New Roman',serif!important;color:#061b46!important;font-size:clamp(28px,3vw,42px)!important;}
.hsm-restored-method-row,
.hsm-giving-method-grid.hsm-restored-method-row,
.hsm-method-showcase.hsm-restored-method-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important;align-items:stretch!important;}
.hsm-restored-method-row .hsm-method-card,
.hsm-restored-method-row .giving-platform-card{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:9px 10px!important;align-items:start!important;min-height:0!important;padding:13px!important;border-radius:16px!important;overflow:hidden!important;background:linear-gradient(180deg,#fff,#fffaf0)!important;border:1px solid rgba(214,162,53,.65)!important;box-shadow:0 8px 18px rgba(6,27,70,.06)!important;}
.hsm-restored-method-row .platform-icon{grid-column:1!important;grid-row:1!important;width:42px!important;height:42px!important;border-radius:12px!important;margin:0!important;font-size:.78rem!important;background:#061b46!important;color:#ffe59a!important;border:2px solid #d6a235!important;}
.hsm-restored-method-row .platform-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;}
.hsm-restored-method-row .platform-copy span{display:none!important;}
.hsm-restored-method-row h3{font-size:1.12rem!important;line-height:1.08!important;margin:0 0 .25rem!important;color:#061b46!important;word-break:normal!important;overflow-wrap:break-word!important;}
.hsm-restored-method-row p,.hsm-restored-method-row .giving-detail{font-size:.82rem!important;line-height:1.25!important;margin:.15rem 0!important;color:#253957!important;word-break:break-word!important;}
.hsm-restored-method-row .hsm-accepted-card-types{display:block!important;width:100%!important;max-width:160px!important;height:auto!important;margin:4px 0 0!important;}
.hsm-restored-method-row .hsm-payment-qr,.hsm-restored-method-row .hsm-cashapp-qr,.hsm-restored-method-row .hsm-zelle-qr{display:block!important;width:min(104px,100%)!important;max-width:104px!important;margin:6px 0 0!important;padding:3px!important;background:#fff!important;border-radius:8px!important;box-shadow:none!important;border:0!important;}
.hsm-restored-method-row .hsm-zelle-display{margin:2px 0 0!important;}
.hsm-restored-method-row .lux-btn,.hsm-restored-method-row .giving-platform-open,.hsm-restored-method-row .giving-platform-select{grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;padding:9px 12px!important;border-radius:999px!important;font-size:.82rem!important;text-align:center!important;white-space:normal!important;justify-self:stretch!important;}
.hsm-giving-needed-info{text-align:center;margin:18px auto 8px;color:#061b46;font-weight:900;letter-spacing:.04em;}
.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,330px)!important;gap:18px!important;max-width:1220px!important;margin:0 auto!important;align-items:start!important;}
.hsm-restored-giving-desk .hsm-payment-card{padding:18px!important;border-radius:24px!important;}
.hsm-restored-giving-desk .hsm-payment-card h2{margin-bottom:12px!important;}
.hsm-restored-giving-desk .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 16px!important;}
.hsm-restored-giving-desk .hsm-form-section{margin-top:16px!important;border:1px solid rgba(214,162,53,.45)!important;border-radius:18px!important;background:#fffdf7!important;padding:14px!important;}
.hsm-restored-giving-desk .hsm-form-section h3{margin:.1rem 0 .7rem!important;color:#061b46!important;font-family:Georgia,'Times New Roman',serif!important;font-size:1.45rem!important;}
.hsm-restored-giving-desk .hsm-allocation-head span{display:none!important;}
.hsm-restored-giving-desk .hsm-allocation-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(130px,.38fr) auto!important;gap:10px!important;align-items:end!important;}
.hsm-restored-side{display:grid!important;gap:14px!important;}
.hsm-restored-side .giving-envelope-panel.hsm-giving-purpose-card{position:sticky!important;top:16px!important;background:#fff!important;color:#061b46!important;border:1px solid rgba(214,162,53,.7)!important;border-left:6px solid #d6a235!important;border-radius:20px!important;padding:18px!important;box-shadow:0 10px 28px rgba(6,27,70,.08)!important;}
.hsm-restored-side .giving-envelope-panel .hsm-envelope-mark{display:none!important;}
.hsm-restored-side .giving-envelope-panel .hsm-panel-kicker{display:block!important;color:#9b6f15!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-weight:900!important;margin:0 0 8px!important;}
.hsm-restored-side .giving-envelope-panel h3,.hsm-restored-side .giving-envelope-panel #givingEnvelopeTitle{color:#061b46!important;font-size:1.65rem!important;line-height:1.12!important;text-shadow:none!important;margin:.2rem 0 .55rem!important;}
.hsm-restored-side .giving-envelope-panel p,.hsm-restored-side .giving-envelope-panel #givingEnvelopeText{color:#253957!important;font-size:.96rem!important;line-height:1.55!important;margin:0!important;}
.hsm-restored-side .hsm-stewardship-scriptures{background:#fff!important;border:1px solid rgba(214,162,53,.7)!important;border-left:6px solid #d6a235!important;border-radius:20px!important;padding:18px!important;box-shadow:0 10px 28px rgba(6,27,70,.08)!important;}
.hsm-restored-side .hsm-stewardship-scriptures h3{font-size:1.6rem!important;margin:.2rem 0 .55rem!important;}
.hsm-restored-side .hsm-stewardship-scriptures p{font-size:.94rem!important;line-height:1.5!important;margin:.65rem 0!important;}
.hsm-receipt-note{max-width:1220px;margin:18px auto 0;color:#061b46;font-size:1rem;line-height:1.45;background:#fff;padding:14px 18px;border-left:5px solid #d6a235;border-radius:14px;box-shadow:0 8px 20px rgba(6,27,70,.05);}
.hsm-giving-tabs,.giving-platform-picker,.hsm-envelope-chip-grid{display:none!important;}
@media(max-width:1120px){.hsm-restored-method-row,.hsm-giving-method-grid.hsm-restored-method-row,.hsm-method-showcase.hsm-restored-method-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important;}.hsm-restored-side .giving-envelope-panel.hsm-giving-purpose-card{position:relative!important;top:auto!important;}}
@media(max-width:680px){.hsm-restored-method-row,.hsm-giving-method-grid.hsm-restored-method-row,.hsm-method-showcase.hsm-restored-method-row{grid-template-columns:1fr!important;}.hsm-restored-giving-desk .form-grid{grid-template-columns:1fr!important;}.hsm-restored-giving-desk .hsm-allocation-row{grid-template-columns:1fr!important;}}


/* HSM 3.5.1 Giving Page Restoration: final layout lock */
#giving-options.hsm-giving-restored-page{max-width:1220px!important;margin:0 auto!important;padding:26px 18px 36px!important;overflow:visible!important;}
#giving-options .hsm-giving-options-top{padding:18px 20px!important;border-radius:22px!important;overflow:visible!important;}
#giving-options .hsm-giving-options-head{display:flex!important;justify-content:space-between!important;align-items:end!important;margin:0 0 12px!important;}
#giving-options .hsm-giving-options-head h2{font-size:clamp(30px,3.2vw,44px)!important;line-height:1!important;margin:0!important;}
#giving-options .hsm-restored-method-row,
#giving-options .hsm-giving-method-grid.hsm-restored-method-row,
#giving-options .hsm-method-showcase.hsm-restored-method-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin:0!important;align-items:stretch!important;overflow:visible!important;}
#giving-options .hsm-restored-method-row .giving-platform-card,
#giving-options .hsm-restored-method-row .hsm-method-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important;gap:8px!important;min-height:190px!important;height:auto!important;max-height:none!important;padding:13px 12px!important;border-radius:16px!important;overflow:visible!important;background:linear-gradient(180deg,#fff,#fffaf0)!important;border:1px solid rgba(214,162,53,.72)!important;box-shadow:0 8px 20px rgba(6,27,70,.06)!important;}
#giving-options .hsm-restored-method-row .platform-icon{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:42px!important;height:42px!important;border-radius:12px!important;margin:0!important;font-size:.78rem!important;background:#061b46!important;color:#ffe59a!important;border:2px solid #d6a235!important;}
#giving-options .hsm-restored-method-row .platform-copy{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:100%!important;grid-column:auto!important;}
#giving-options .hsm-restored-method-row .platform-copy span{display:none!important;}
#giving-options .hsm-restored-method-row h3{font-size:1.22rem!important;line-height:1.08!important;margin:0!important;color:#061b46!important;text-align:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
#giving-options .hsm-restored-method-row p,
#giving-options .hsm-restored-method-row .giving-detail{font-size:.86rem!important;line-height:1.18!important;margin:0!important;color:#253957!important;text-align:center!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;}
#giving-options .hsm-restored-method-row .hsm-accepted-card-types{display:block!important;width:min(168px,100%)!important;max-width:168px!important;height:auto!important;margin:2px auto!important;}
#giving-options .hsm-restored-method-row .hsm-payment-qr,
#giving-options .hsm-restored-method-row .hsm-cashapp-qr,
#giving-options .hsm-restored-method-row .hsm-zelle-qr,
#giving-options .hsm-restored-method-row .hsm-venmo-qr{display:block!important;width:92px!important;max-width:92px!important;height:auto!important;margin:4px auto!important;padding:3px!important;background:#fff!important;border-radius:8px!important;border:0!important;box-shadow:0 4px 12px rgba(6,27,70,.08)!important;}
#giving-options .hsm-restored-method-row .lux-btn,
#giving-options .hsm-restored-method-row .giving-platform-open,
#giving-options .hsm-restored-method-row .giving-platform-select{margin-top:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:8px 10px!important;border-radius:999px!important;font-size:.82rem!important;line-height:1.1!important;text-align:center!important;white-space:normal!important;}
#giving-options .hsm-giving-needed-info{text-align:center!important;margin:18px 0 10px!important;color:#061b46!important;font-weight:900!important;letter-spacing:.04em!important;}
#giving-form.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;gap:18px!important;max-width:1220px!important;margin:0 auto!important;align-items:start!important;overflow:visible!important;}
#giving-form .hsm-giving-main{min-width:0!important;width:100%!important;}
#giving-form .hsm-payment-card{padding:18px!important;border-radius:24px!important;overflow:visible!important;}
#giving-form .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 16px!important;}
#giving-form .hsm-envelope-section{margin-top:16px!important;border:1px solid rgba(214,162,53,.55)!important;border-radius:18px!important;background:#fffdf7!important;padding:14px!important;overflow:visible!important;}
#giving-form .hsm-envelope-section h3{font-family:Georgia,'Times New Roman',serif!important;font-size:1.45rem!important;color:#061b46!important;margin:.1rem 0 .7rem!important;}
#giving-form .hsm-allocation-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important;}
#giving-form .hsm-allocation-head span{display:none!important;}
#giving-form .hsm-allocation-row{display:grid!important;grid-template-columns:minmax(0,1fr) 150px auto!important;gap:10px!important;align-items:end!important;}
#giving-form .hsm-allocation-row label{margin:0!important;}
#giving-form .hsm-allocation-total{margin:8px 0 0!important;font-weight:800!important;color:#465b7a!important;}
#giving-form .hsm-restored-side{display:grid!important;grid-template-rows:auto auto!important;gap:14px!important;align-self:start!important;}
#giving-form .hsm-restored-side .giving-envelope-panel,
#giving-form .hsm-restored-side .hsm-stewardship-scriptures{position:relative!important;top:auto!important;background:#fff!important;color:#061b46!important;border:1px solid rgba(214,162,53,.7)!important;border-left:6px solid #d6a235!important;border-radius:20px!important;padding:16px!important;box-shadow:0 10px 28px rgba(6,27,70,.08)!important;overflow:visible!important;}
#giving-form .hsm-restored-side .hsm-panel-kicker{display:block!important;color:#9b6f15!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-weight:900!important;margin:0 0 8px!important;}
#giving-form .hsm-restored-side h3,
#giving-form .hsm-restored-side #givingEnvelopeTitle{color:#061b46!important;font-size:1.45rem!important;line-height:1.12!important;margin:.2rem 0 .55rem!important;text-align:left!important;}
#giving-form .hsm-restored-side p,
#giving-form .hsm-restored-side #givingEnvelopeText{color:#253957!important;font-size:.93rem!important;line-height:1.45!important;margin:.55rem 0!important;text-align:left!important;}
#giving-options .hsm-receipt-note{display:block!important;max-width:1220px!important;margin:18px auto 0!important;color:#061b46!important;font-size:1rem!important;line-height:1.45!important;background:#fff!important;padding:14px 18px!important;border-left:5px solid #d6a235!important;border-radius:14px!important;box-shadow:0 8px 20px rgba(6,27,70,.05)!important;white-space:normal!important;overflow:visible!important;}
#giving-options .hsm-giving-tabs,
#giving-options .giving-platform-picker,
#giving-options .hsm-envelope-chip-grid{display:none!important;}
@media(max-width:1080px){#giving-options .hsm-restored-method-row,#giving-options .hsm-giving-method-grid.hsm-restored-method-row,#giving-options .hsm-method-showcase.hsm-restored-method-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;}#giving-form.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important;}#giving-form .hsm-restored-side{grid-template-columns:1fr 1fr!important;}}
@media(max-width:680px){#giving-options .hsm-restored-method-row,#giving-options .hsm-giving-method-grid.hsm-restored-method-row,#giving-options .hsm-method-showcase.hsm-restored-method-row{grid-template-columns:1fr!important;}#giving-form .form-grid,#giving-form .hsm-allocation-row{grid-template-columns:1fr!important;}#giving-form .hsm-restored-side{grid-template-columns:1fr!important;}}

/* HSM 3.5.3 Giving Page Correction: approved layout, no long explanations */
#giving-options.hsm-giving-restored-page{
  max-width:1220px!important;
  margin:0 auto!important;
  padding:24px 18px 38px!important;
}
#giving-options .hsm-giving-options-top{
  padding:14px 16px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.55)!important;
  box-shadow:0 10px 28px rgba(6,27,70,.07)!important;
  overflow:visible!important;
}
#giving-options .hsm-giving-options-head-simple{
  display:block!important;
  margin:0 0 8px!important;
  text-align:center!important;
}
#giving-options .hsm-giving-options-head-simple .resource-kicker{
  display:inline-block!important;
  font-size:.78rem!important;
  letter-spacing:.14em!important;
  color:#a67612!important;
}
#giving-options .hsm-public-method-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
#giving-options .hsm-public-method-card{
  display:grid!important;
  grid-template-rows:auto auto 1fr auto!important;
  gap:6px!important;
  min-width:0!important;
  min-height:144px!important;
  padding:11px!important;
  border:1px solid rgba(214,162,53,.68)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff 0%,#fffdf8 100%)!important;
  box-shadow:0 6px 16px rgba(6,27,70,.055)!important;
  text-align:center!important;
  overflow:hidden!important;
}
#giving-options .hsm-public-method-card h3{
  margin:0!important;
  color:#061b46!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(1.02rem,1.25vw,1.32rem)!important;
  line-height:1.08!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
#giving-options .hsm-public-method-card .hsm-method-tag{
  min-height:18px!important;
  color:#253957!important;
  font-size:.82rem!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
#giving-options .hsm-public-method-card .hsm-card-types{
  width:min(160px,100%)!important;
  height:auto!important;
  margin:0 auto!important;
  display:block!important;
}
#giving-options .hsm-public-method-card .hsm-method-qr{
  width:78px!important;
  max-width:78px!important;
  height:auto!important;
  margin:0 auto!important;
  display:block!important;
  border:0!important;
  padding:0!important;
  background:#fff!important;
  border-radius:8px!important;
  box-shadow:0 3px 10px rgba(6,27,70,.08)!important;
}
#giving-options .hsm-public-method-card .hsm-method-action{
  align-self:end!important;
  width:100%!important;
  margin:0!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:999px!important;
  background:#082b68!important;
  color:#fff!important;
  font-size:.82rem!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  line-height:1.05!important;
  cursor:pointer!important;
  box-shadow:0 8px 16px rgba(6,27,70,.12)!important;
}
#giving-options .hsm-giving-needed-info{
  margin:16px 0 10px!important;
  text-align:center!important;
  font-weight:900!important;
  color:#061b46!important;
  letter-spacing:.04em!important;
}
#giving-form.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 320px!important;
  gap:18px!important;
  max-width:1220px!important;
  margin:0 auto!important;
  align-items:start!important;
}
#giving-form .hsm-envelope-section,
#giving-form .hsm-envelope-tab-pro{
  display:block!important;
  margin-top:14px!important;
  border:1px solid rgba(214,162,53,.55)!important;
  border-radius:18px!important;
  background:#fffdf7!important;
  padding:14px!important;
}
#giving-form .hsm-envelope-section h3{
  margin:0 0 10px!important;
  font-size:1.35rem!important;
  line-height:1.1!important;
}
#giving-form .hsm-allocation-head span{display:none!important;}
#giving-form .hsm-allocation-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 150px auto!important;
  gap:10px!important;
  align-items:end!important;
}
#giving-form .hsm-restored-side{
  display:grid!important;
  gap:14px!important;
}
#giving-form .hsm-restored-side .giving-envelope-panel,
#giving-form .hsm-restored-side .hsm-stewardship-scriptures{
  display:block!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.72)!important;
  border-left:6px solid #d6a235!important;
  border-radius:18px!important;
  padding:16px!important;
  box-shadow:0 8px 20px rgba(6,27,70,.07)!important;
  color:#061b46!important;
  overflow:visible!important;
}
#giving-form .hsm-restored-side .hsm-panel-kicker{
  display:block!important;
  margin:0 0 8px!important;
  color:#a67612!important;
  text-transform:uppercase!important;
  letter-spacing:.11em!important;
  font-weight:900!important;
}
#giving-form .hsm-restored-side h3,
#giving-form .hsm-restored-side #givingEnvelopeTitle{
  color:#061b46!important;
  font-size:1.42rem!important;
  line-height:1.12!important;
  margin:0 0 8px!important;
  text-align:left!important;
}
#giving-form .hsm-restored-side p,
#giving-form .hsm-restored-side #givingEnvelopeText{
  color:#253957!important;
  font-size:.93rem!important;
  line-height:1.42!important;
  margin:0 0 8px!important;
  text-align:left!important;
}
#giving-options .hsm-receipt-delivery{
  max-width:1220px!important;
  margin:18px auto 0!important;
  padding:14px 16px!important;
  background:#fff!important;
  border-left:5px solid #d6a235!important;
  border-radius:14px!important;
  box-shadow:0 8px 20px rgba(6,27,70,.05)!important;
  color:#061b46!important;
  overflow:hidden!important;
}
#giving-options .hsm-receipt-delivery h3{
  margin:0 0 9px!important;
  font-size:1.12rem!important;
  line-height:1.1!important;
  font-family:Georgia,'Times New Roman',serif!important;
}
#giving-options .hsm-receipt-delivery-grid{
  display:grid!important;
  grid-template-columns:1fr 1.25fr!important;
  gap:12px!important;
}
#giving-options .hsm-receipt-delivery-grid div{
  border:1px solid rgba(214,162,53,.35)!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  background:#fffdf7!important;
}
#giving-options .hsm-receipt-delivery strong{
  display:block!important;
  color:#061b46!important;
  margin-bottom:4px!important;
}
#giving-options .hsm-receipt-delivery span{
  display:block!important;
  color:#253957!important;
  line-height:1.28!important;
  font-size:.95rem!important;
}
@media(max-width:1080px){
  #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #giving-form.hsm-restored-giving-desk.hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important;}
  #giving-form .hsm-restored-side{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:680px){
  #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}
  #giving-form .form-grid,
  #giving-form .hsm-allocation-row,
  #giving-options .hsm-receipt-delivery-grid{grid-template-columns:1fr!important;}
  #giving-form .hsm-restored-side{grid-template-columns:1fr!important;}
}

/* 3.5.4 Giving form correction: keep multiple giving tied into the form, not a separate section. */
#giving-form .hsm-inline-allocation-control{
  grid-column:1/-1!important;
  margin:6px 0 0!important;
  padding:0!important;
  display:block!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-builder{
  margin:0!important;
  padding:14px!important;
  border:1px solid rgba(214,162,53,.50)!important;
  border-radius:16px!important;
  background:#fffdf7!important;
  box-shadow:none!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 10px!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-head strong{
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:1.1rem!important;
  line-height:1.15!important;
  color:#061b46!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-head span{
  display:none!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 150px auto!important;
  gap:10px!important;
  align-items:end!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-row label{
  margin:0!important;
}
#giving-form .hsm-inline-allocation-control .hsm-allocation-total{
  margin:8px 0 0!important;
  color:#465b7a!important;
  font-weight:800!important;
}
#giving-form .hsm-envelope-section,
#giving-form .hsm-envelope-tab-pro{
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
}
#giving-form .hsm-envelope-section>h3,
#giving-form .hsm-envelope-tab-pro>h3{
  display:none!important;
}
@media(max-width:760px){
  #giving-form .hsm-inline-allocation-control .hsm-allocation-head{display:grid!important;}
  #giving-form .hsm-inline-allocation-control .hsm-allocation-row{grid-template-columns:1fr!important;}
}

/* HSM 3.5.5 Giving options image/tag touch-up: keep layout, fix Cash App tag and equal QR display. */
#giving-options .hsm-public-method-card.method-cashapp .hsm-method-tag,
#giving-options .hsm-public-method-card.method-zelle .hsm-method-tag,
#giving-options .hsm-public-method-card.method-venmo .hsm-method-tag{
  display:block!important;
  min-height:20px!important;
  color:#061b46!important;
  font-size:.84rem!important;
  line-height:1.15!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  margin:0 auto!important;
  max-width:100%!important;
}
#giving-options .hsm-public-method-card.method-cashapp .hsm-method-qr,
#giving-options .hsm-public-method-card.method-zelle .hsm-method-qr{
  width:104px!important;
  max-width:104px!important;
  height:104px!important;
  object-fit:contain!important;
  margin:2px auto!important;
}
#giving-options .hsm-public-method-card.method-zelle .hsm-method-qr{
  padding:0!important;
}

/* HSM 3.5.6 mobile giving hero repair: prevent the public giving hero from squeezing text into one-word/letter columns on phones. */
@media(max-width:760px){
  html,body{overflow-x:hidden!important;}
  .hsm-giving-hero-v2,
  .hsm-giving-hero-v2.hsm-pro-hero,
  section.hsm-giving-hero-v2{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto 18px!important;
    padding:28px 18px!important;
    overflow:hidden!important;
  }
  .hsm-giving-hero-copy{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .hsm-giving-hero-copy span{
    display:block!important;
    max-width:100%!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .hsm-giving-hero-copy h1,
  .hsm-giving-hero-v2 h1{
    font-size:clamp(2.6rem,15vw,4.15rem)!important;
    line-height:.96!important;
    letter-spacing:-.04em!important;
    max-width:100%!important;
    margin:.25rem 0 1rem!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  .hsm-giving-hero-copy p{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    font-size:1.05rem!important;
    line-height:1.45!important;
    margin:0 0 1rem!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  .giving-scripture-row{
    width:100%!important;
    max-width:100%!important;
    padding:14px 16px!important;
    margin:14px 0 0!important;
    overflow:visible!important;
  }
  .giving-scripture-row strong{
    display:block!important;
    font-size:1.04rem!important;
    line-height:1.22!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .giving-scripture-row small{
    display:block!important;
    margin-top:6px!important;
  }
  .giving-hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    margin-top:14px!important;
  }
  .giving-hero-actions .lux-btn{
    width:100%!important;
    max-width:100%!important;
  }
  .hsm-giving-logo-panel,
  .hsm-giving-hero-panel.hsm-giving-logo-panel,
  .hsm-pro-hero .hsm-giving-logo-panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:4px auto 0!important;
    padding:0!important;
    justify-content:center!important;
    overflow:visible!important;
  }
  .hsm-giving-logo-panel img,
  .hsm-giving-hero-v2 .hsm-giving-logo-panel img,
  .hsm-pro-hero .hsm-giving-logo-panel img{
    width:min(280px,82vw)!important;
    max-width:280px!important;
    height:auto!important;
    margin:0 auto!important;
    object-fit:contain!important;
  }
}

/* HSM 3.5.7 Giving option image buttons: use supplied scan-ready artwork as the clickable method buttons. */
#giving-options .hsm-public-method-strip{
  grid-template-columns:repeat(4,minmax(190px,1fr))!important;
  gap:12px!important;
}
#giving-options .hsm-public-method-card.hsm-image-method-card{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:0!important;
  padding:8px!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.75)!important;
  border-radius:16px!important;
  box-shadow:0 8px 22px rgba(6,27,70,.07)!important;
  overflow:hidden!important;
}
#giving-options .hsm-image-method-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  min-height:190px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:12px!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
#giving-options .hsm-image-method-button:focus-visible{
  outline:4px solid rgba(214,162,53,.62)!important;
  outline-offset:3px!important;
}
#giving-options .hsm-image-method-button:hover .hsm-giving-option-image,
#giving-options .hsm-image-method-button:focus-visible .hsm-giving-option-image{
  transform:scale(1.018)!important;
}
#giving-options .hsm-giving-option-image{
  display:block!important;
  width:100%!important;
  max-width:260px!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  margin:0 auto!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  transition:transform .16s ease!important;
}
#giving-options .hsm-text-method-button{
  min-height:190px!important;
  background:linear-gradient(180deg,#fff,#fffaf0)!important;
  border:1px solid rgba(214,162,53,.6)!important;
  color:#061b46!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:1.45rem!important;
  text-align:center!important;
}
@media(max-width:1180px){
  #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #giving-options .hsm-giving-option-image{max-width:260px!important;}
}
@media(max-width:680px){
  #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}
  #giving-options .hsm-public-method-card.hsm-image-method-card{padding:10px!important;}
  #giving-options .hsm-image-method-button{min-height:0!important;}
  #giving-options .hsm-giving-option-image{max-width:min(330px,92vw)!important;}
}

/* HSM 3.6.2 Finance Reports - church branded stewardship reports */
.hsm-finance-report-hero .hsm-report-brand-row{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.hsm-finance-report-hero h2{font-family:var(--serif, Georgia, serif);font-size:clamp(32px,4vw,54px);color:#061b46;margin:0 0 10px;line-height:1;}
.hsm-report-seal{width:112px;height:112px;object-fit:contain;flex:0 0 auto;filter:drop-shadow(0 10px 24px rgba(6,27,70,.18));}
.hsm-report-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;align-items:end;margin-top:22px;}
.hsm-report-filter-grid label{font-weight:900;color:#061b46;font-size:13px;letter-spacing:.02em;display:flex;flex-direction:column;gap:6px;}
.hsm-report-filter-grid input,.hsm-report-filter-grid select{width:100%;border:1px solid rgba(6,27,70,.18);border-radius:14px;background:#fff;padding:13px 14px;color:#061b46;font-weight:800;}
.hsm-report-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.hsm-finance-stat-grid .stat span{display:block;margin-top:8px;color:#5d6a82;font-weight:800;}
.hsm-report-print-section table th{background:#061b46;color:#fff;border-color:#061b46;}
.hsm-report-print-section table td,.hsm-report-print-section table th{vertical-align:top;}
@media(max-width:1180px){.hsm-report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.hsm-finance-report-hero .hsm-report-brand-row{align-items:flex-start;}.hsm-report-seal{width:92px;height:92px;}}
@media(max-width:720px){.hsm-finance-report-hero .hsm-report-brand-row{display:block;}.hsm-report-seal{margin-top:16px;width:82px;height:82px;}.hsm-report-filter-grid{grid-template-columns:1fr;}.hsm-report-actions .mini-btn{width:100%;}.hsm-report-print-section .table-wrap{overflow:auto;}}
@media print{.hsm-admin-sidebar,.hsm-admin-top,.hsm-top-actions,.hsm-report-filter-grid,.hsm-admin-nav,.mini-btn{display:none!important;}body{background:#fff!important;color:#061b46!important;}.hsm-admin-main{margin:0!important;padding:0!important;}.card,.stat{break-inside:avoid;border:1px solid #d6a235!important;box-shadow:none!important;}.two-col,.stat-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:14px!important;}.hsm-report-seal{display:block!important;width:88px!important;height:88px!important;}table{font-size:11px!important;}h2{font-size:24px!important;}}

/* HSM 3.6.3 finance report branding correction: logo top-left, seal near certification/signatures */
.hsm-finance-report-document{overflow:hidden;}
.hsm-finance-report-letterhead{display:grid;grid-template-columns:120px minmax(0,1fr) 250px;gap:22px;align-items:center;border:1px solid rgba(214,162,53,.45);border-radius:22px;padding:18px 20px;background:linear-gradient(135deg,#fff 0%,#fffaf0 100%);margin-bottom:20px;}
.hsm-finance-report-logo img{display:block;width:110px;max-width:110px;height:auto;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(6,27,70,.12));}
.hsm-finance-report-titleblock h2{font-family:var(--serif, Georgia, serif);font-size:clamp(30px,3.4vw,46px);color:#061b46;margin:0 0 8px;line-height:1.02;}
.hsm-report-subtitle{margin:0;color:#233c67;font-weight:700;line-height:1.45;max-width:820px;}
.hsm-finance-report-meta{border-left:4px solid #d6a235;padding-left:16px;color:#061b46;display:grid;gap:4px;font-weight:800;}
.hsm-finance-report-meta strong{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:#a56f00;}
.hsm-finance-report-meta span{font-size:14px;line-height:1.25;}
.hsm-report-certification{text-align:center;}
.hsm-report-certification-seal{display:flex;justify-content:center;margin:4px auto 10px;}
.hsm-report-certification-seal img{width:118px;height:118px;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(6,27,70,.18));}
.hsm-report-certification p{max-width:900px;margin:0 auto 18px;color:#233c67;font-weight:700;line-height:1.5;}
.hsm-report-signatures{margin-top:22px;}
.hsm-report-footer-line{font-size:12px;color:#52607a!important;margin-top:18px!important;}
@media(max-width:980px){.hsm-finance-report-letterhead{grid-template-columns:90px minmax(0,1fr);}.hsm-finance-report-logo img{width:84px;}.hsm-finance-report-meta{grid-column:1 / -1;border-left:0;border-top:3px solid #d6a235;padding-left:0;padding-top:12px;}}
@media(max-width:620px){.hsm-finance-report-letterhead{display:block;text-align:left;padding:16px;}.hsm-finance-report-logo img{width:86px;margin-bottom:10px;}.hsm-finance-report-titleblock h2{font-size:30px;}.hsm-report-certification-seal img{width:94px;height:94px;}}
@media print{.hsm-finance-report-letterhead{display:grid!important;grid-template-columns:95px minmax(0,1fr) 190px!important;gap:16px!important;border:1px solid #d6a235!important;border-radius:0!important;padding:12px 14px!important;background:#fff!important;break-inside:avoid!important;}.hsm-finance-report-logo img{width:86px!important;max-width:86px!important;}.hsm-finance-report-titleblock h2{font-size:24px!important;margin:0 0 4px!important;}.hsm-report-subtitle{font-size:11px!important;line-height:1.25!important;}.hsm-finance-report-meta{font-size:10px!important;padding-left:10px!important;}.hsm-report-certification{break-inside:avoid!important;margin-top:16px!important;}.hsm-report-certification-seal img{width:78px!important;height:78px!important;}.hsm-report-signatures{display:grid!important;grid-template-columns:1fr 1fr!important;gap:36px!important;margin-top:24px!important;}.hsm-report-footer-line{font-size:10px!important;}}


/* HSM 3.6.5 professional system-generated report standard */
.hsm-finance-report-document,.hsm-report-panel,.hsm-report-certification{position:relative;}
.hsm-finance-report-document:before{content:"SYSTEM GENERATED";position:absolute;right:22px;top:10px;font-size:10px;font-weight:900;letter-spacing:.18em;color:rgba(6,27,70,.32);text-transform:uppercase;}
.hsm-finance-report-letterhead{box-shadow:0 12px 30px rgba(6,27,70,.08);}
.hsm-finance-report-logo{align-self:start;}
.hsm-finance-report-logo img{background:#fff;border-radius:14px;padding:5px;border:1px solid rgba(214,162,53,.35);}
.hsm-section-kicker{margin:0 0 8px;color:#a56f00;text-transform:uppercase;letter-spacing:.14em;font-weight:900;font-size:11px;}
.hsm-report-panel{border-color:rgba(214,162,53,.38)!important;}
.hsm-report-panel h2{margin-top:0;color:#061b46;}
.hsm-report-print-section table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;}
.hsm-report-print-section table th{font-size:12px;letter-spacing:.03em;text-transform:uppercase;}
.hsm-report-print-section table td{font-size:13px;color:#102b56;}
.hsm-report-print-section table tr:nth-child(even) td{background:#fffaf0;}
.hsm-report-summary-strip .stat{border-color:rgba(214,162,53,.45);background:linear-gradient(135deg,#fff,#fffaf2);}
.hsm-report-certification{border:1px solid rgba(214,162,53,.55)!important;background:linear-gradient(180deg,#fff 0%,#fffaf0 100%);}
.hsm-report-certification .hsm-section-kicker{text-align:center;}
.hsm-report-certification-seal img{background:#fff;border-radius:50%;padding:6px;border:1px solid rgba(214,162,53,.45);}
.hsm-report-certification-text{font-size:14px;}
.hsm-report-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end;}
.hsm-report-signatures .signature-line{min-height:78px;border-top:2px solid #061b46;padding-top:10px;text-align:left;color:#061b46;font-weight:800;}
.hsm-report-signatures .signature-line span{display:block;text-transform:uppercase;letter-spacing:.13em;font-size:10px;color:#a56f00;margin-bottom:5px;}
.hsm-report-signatures .signature-line strong{display:block;font-size:13px;line-height:1.25;}
.hsm-report-footer-line{display:block;text-align:center;border-top:1px solid rgba(6,27,70,.15);padding-top:10px;}
@media(max-width:720px){.hsm-report-signatures{grid-template-columns:1fr;gap:28px}.hsm-finance-report-document:before{position:static;display:block;margin:0 0 10px;text-align:right;}}
@media print{.hsm-finance-report-document:before{right:12px!important;top:6px!important;font-size:8px!important}.hsm-finance-report-letterhead{box-shadow:none!important}.hsm-report-panel{break-inside:avoid!important}.hsm-report-print-section table th{font-size:9px!important}.hsm-report-print-section table td{font-size:10px!important}.hsm-report-signatures{grid-template-columns:repeat(3,1fr)!important;gap:18px!important}.hsm-report-signatures .signature-line{min-height:54px!important;padding-top:6px!important}.hsm-report-signatures .signature-line strong{font-size:10px!important}.hsm-report-signatures .signature-line span{font-size:8px!important}.hsm-report-certification-text{font-size:10px!important}.hsm-report-certification-seal img{width:70px!important;height:70px!important}}


/* HSM 3.6.8 Finance Ministry Office professionalism and manual payment entry */
.hsm-finance-office-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap;background:linear-gradient(135deg,#fff 0%,#fffaf0 100%);border:1px solid rgba(214,162,53,.42)!important;}
.hsm-finance-office-brand{display:flex;align-items:center;gap:18px;min-width:0;}
.hsm-finance-office-brand img{width:86px;height:86px;object-fit:contain;background:#fff;border:1px solid rgba(214,162,53,.36);border-radius:16px;padding:6px;filter:drop-shadow(0 8px 18px rgba(6,27,70,.12));}
.hsm-finance-office-brand h2{margin:0 0 8px;color:#061b46;font-family:var(--serif, Georgia, serif);font-size:clamp(30px,3vw,44px);line-height:1.05;white-space:nowrap;}
.hsm-finance-office-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.hsm-finance-office-stats .stat{background:linear-gradient(135deg,#fff,#fffaf0);border-color:rgba(214,162,53,.45)!important;}
.hsm-finance-office-stats .stat span{display:block;margin-top:8px;color:#5b6982;font-weight:800;}
.hsm-finance-office-panel{border-color:rgba(214,162,53,.42)!important;}
.hsm-finance-manual-form .wide{grid-column:1/-1;}
.hsm-finance-split-fieldset{grid-column:1/-1;border:1px solid rgba(214,162,53,.55);border-radius:18px;padding:16px;background:#fffdf8;}
.hsm-finance-split-fieldset legend{font-weight:900;color:#061b46;padding:0 8px;}
.hsm-finance-split-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.35fr);gap:12px;margin-top:10px;}
.hsm-finance-report-titleblock h2{white-space:nowrap;font-size:clamp(28px,2.8vw,40px);line-height:1;}
.hsm-finance-report-titleblock .official-badge{white-space:nowrap;display:inline-flex;max-width:100%;}
.hsm-report-subtitle{font-size:clamp(14px,1.35vw,17px);}
@media(max-width:980px){.hsm-finance-office-brand h2,.hsm-finance-report-titleblock h2{white-space:normal}.hsm-finance-office-hero{display:block}.hsm-finance-office-actions{justify-content:flex-start;margin-top:16px}.hsm-finance-split-row{grid-template-columns:1fr}}
@media print{.hsm-finance-office-actions,.hsm-finance-office-stats,.hsm-finance-office-panel{display:none!important}.hsm-finance-report-titleblock h2{white-space:nowrap!important;font-size:22px!important}}


/* HSM 3.6.9 finance report header typography correction: stop awkward wrapping and use system-office formatting */
.hsm-finance-report-letterhead{grid-template-columns:110px minmax(520px,1fr) 260px;align-items:center;}
.hsm-finance-report-titleblock{min-width:0;}
.hsm-finance-report-titleblock h2{font-family:Arial, Helvetica, sans-serif!important;font-size:clamp(25px,2vw,32px)!important;line-height:1.08!important;letter-spacing:-.025em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0 0 8px!important;font-weight:900!important;color:#061b46!important;}
.hsm-finance-report-titleblock .official-badge{font-family:Arial, Helvetica, sans-serif!important;font-size:11px!important;letter-spacing:.16em!important;white-space:nowrap!important;margin:0 0 8px!important;}
.hsm-report-subtitle{font-family:Arial, Helvetica, sans-serif!important;font-size:15px!important;line-height:1.35!important;font-weight:700!important;max-width:100%!important;margin:0!important;color:#233c67!important;}
.hsm-finance-report-meta span{overflow-wrap:anywhere;}
@media(max-width:1180px){.hsm-finance-report-letterhead{grid-template-columns:96px minmax(0,1fr);}.hsm-finance-report-titleblock h2{font-size:26px!important;white-space:nowrap!important;}.hsm-finance-report-meta{grid-column:1 / -1;}}
@media(max-width:720px){.hsm-finance-report-titleblock h2{white-space:normal!important;font-size:24px!important;letter-spacing:-.01em!important;}.hsm-report-subtitle{font-size:14px!important;}.hsm-finance-report-letterhead{display:block!important;}.hsm-finance-report-logo img{width:78px!important;}}
@media print{.hsm-finance-report-titleblock h2{font-family:Arial, Helvetica, sans-serif!important;font-size:20px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}.hsm-finance-report-titleblock .official-badge{font-size:8px!important}.hsm-report-subtitle{font-size:10px!important;line-height:1.2!important;}}

/* HSM 3.7.0 - Finance reporting system controls separated from printable report document */
.hsm-finance-report-system-panel{border:1px solid rgba(214,162,53,.36)!important;background:linear-gradient(135deg,#fff,#fffaf0)!important;}
.hsm-finance-system-heading{display:flex;align-items:center;gap:18px;margin-bottom:18px;}
.hsm-finance-system-logo img{display:block;width:78px;height:auto;background:#fff;border:1px solid rgba(214,162,53,.35);border-radius:14px;padding:5px;box-shadow:0 10px 22px rgba(6,27,70,.08);}
.hsm-finance-system-heading h2{font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(25px,2.1vw,34px)!important;line-height:1.05!important;letter-spacing:-.02em!important;margin:0 0 5px!important;color:#061b46!important;white-space:nowrap!important;}
.hsm-finance-system-heading p:not(.official-badge){margin:0;color:#233c67;font-weight:700;line-height:1.35;}
.hsm-generated-report-document{background:#fff;border:1px solid rgba(214,162,53,.42);border-radius:22px;padding:24px;margin:22px 0;box-shadow:0 18px 42px rgba(6,27,70,.08);position:relative;}
.hsm-generated-report-document:before{content:"SYSTEM GENERATED";position:absolute;right:24px;top:12px;font-size:10px;font-weight:900;letter-spacing:.18em;color:rgba(6,27,70,.32);}
.hsm-generated-report-letterhead{display:grid;grid-template-columns:92px minmax(0,1fr) 270px;gap:18px;align-items:center;border-bottom:3px solid #d6a235;padding:0 0 16px;margin:0 0 18px;}
.hsm-generated-report-logo img{display:block;width:82px;height:auto;object-fit:contain;}
.hsm-report-document-kicker{font-family:Arial,Helvetica,sans-serif!important;text-transform:uppercase;letter-spacing:.16em;color:#a56f00!important;font-size:10px!important;font-weight:900!important;margin:0 0 4px!important;}
.hsm-generated-report-title h1{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(25px,2.4vw,38px)!important;line-height:1.05!important;margin:0!important;color:#061b46!important;letter-spacing:-.01em!important;}
.hsm-generated-report-title p:not(.hsm-report-document-kicker){margin:5px 0 0!important;color:#233c67!important;font-weight:800!important;font-size:14px!important;}
.hsm-generated-report-meta{margin:0;border-left:4px solid #d6a235;padding-left:14px;display:grid;gap:6px;}
.hsm-generated-report-meta div{margin:0;}
.hsm-generated-report-meta dt{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#a56f00;font-weight:900;margin:0 0 2px;}
.hsm-generated-report-meta dd{font-size:13px;line-height:1.22;color:#061b46;font-weight:900;margin:0;overflow-wrap:anywhere;}
.hsm-generated-report-document .hsm-report-summary-strip{margin-top:0;}
@media(max-width:980px){.hsm-finance-system-heading h2{white-space:normal!important}.hsm-generated-report-letterhead{grid-template-columns:78px minmax(0,1fr)}.hsm-generated-report-meta{grid-column:1 / -1;border-left:0;border-top:2px solid #d6a235;padding:12px 0 0;grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.hsm-finance-system-heading{align-items:flex-start}.hsm-finance-system-logo img{width:64px}.hsm-generated-report-document{padding:16px;border-radius:16px}.hsm-generated-report-letterhead{display:block}.hsm-generated-report-logo img{width:72px;margin-bottom:10px}.hsm-generated-report-title h1{font-size:26px!important}.hsm-generated-report-meta{display:block}.hsm-generated-report-meta div{margin:0 0 7px}}
@media print{.hsm-finance-report-system-panel,.no-print,.hsm-report-filter-grid,.hsm-admin-sidebar,.hsm-admin-top,.hsm-top-actions,.hsm-admin-nav,.mini-btn{display:none!important}.hsm-generated-report-document{display:block!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0!important;background:#fff!important}.hsm-generated-report-document:before{right:0!important;top:0!important;font-size:8px!important}.hsm-generated-report-letterhead{grid-template-columns:72px minmax(0,1fr) 185px!important;gap:12px!important;border-bottom:2px solid #d6a235!important;padding-bottom:10px!important;margin-bottom:12px!important}.hsm-generated-report-logo img{width:64px!important}.hsm-report-document-kicker{font-size:8px!important}.hsm-generated-report-title h1{font-size:22px!important;line-height:1.05!important}.hsm-generated-report-title p:not(.hsm-report-document-kicker){font-size:10px!important}.hsm-generated-report-meta{padding-left:10px!important;gap:3px!important}.hsm-generated-report-meta dt{font-size:7px!important}.hsm-generated-report-meta dd{font-size:9px!important}.hsm-generated-report-document .card,.hsm-generated-report-document .stat{box-shadow:none!important;border:1px solid #d6a235!important}.hsm-generated-report-document table{font-size:9px!important}}


/* HSM 3.7.1 official finance report document format */
.hsm-official-finance-report{background:#fff;border:1px solid rgba(214,162,53,.45);border-radius:18px;padding:28px;margin:22px 0;box-shadow:0 16px 34px rgba(6,27,70,.08);color:#061b46;font-family:Arial,Helvetica,sans-serif;}
.hsm-report-letterhead-v2{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start;border-bottom:3px solid #d6a235;padding-bottom:16px;margin-bottom:18px;}
.hsm-report-brand-v2{display:grid;grid-template-columns:86px minmax(0,1fr);gap:16px;align-items:center;min-width:0;}
.hsm-report-brand-v2 img{width:78px;height:auto;object-fit:contain;display:block;}
.hsm-report-ministry-name{margin:0 0 4px!important;text-transform:uppercase;letter-spacing:.13em;font-size:11px!important;font-weight:900!important;color:#a56f00!important;}
.hsm-report-brand-v2 h1{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:30px!important;line-height:1.05!important;font-weight:900!important;letter-spacing:-.015em!important;color:#061b46!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hsm-report-office-line{margin:6px 0 0!important;font-size:13px!important;font-weight:800!important;color:#344a70!important;}
.hsm-report-meta-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff;}
.hsm-report-meta-table th,.hsm-report-meta-table td{padding:6px 8px;border-bottom:1px solid rgba(6,27,70,.12);text-align:left;vertical-align:top;}
.hsm-report-meta-table th{width:110px;text-transform:uppercase;letter-spacing:.1em;color:#a56f00;font-size:10px;font-weight:900;}
.hsm-report-meta-table td{font-weight:800;color:#061b46;overflow-wrap:anywhere;}
.hsm-report-summary-v2{margin:0 0 18px;}
.hsm-report-summary-v2 table{width:100%;border-collapse:collapse;border:1px solid rgba(6,27,70,.22);}
.hsm-report-summary-v2 th{background:#061b46;color:#fff;text-align:left;text-transform:uppercase;letter-spacing:.08em;font-size:10px;padding:8px 10px;}
.hsm-report-summary-v2 td{padding:10px;border-right:1px solid rgba(6,27,70,.13);vertical-align:top;}
.hsm-report-summary-v2 td:last-child{border-right:0;}
.hsm-report-summary-v2 strong{display:block;font-size:20px;line-height:1.1;color:#061b46;margin-bottom:3px;}
.hsm-report-summary-v2 span{display:block;font-size:11px;color:#405777;font-weight:700;}
.hsm-report-section-v2{border-top:2px solid rgba(214,162,53,.55);padding-top:10px;margin:18px 0 0;break-inside:avoid;}
.hsm-report-section-title{display:flex;align-items:baseline;gap:12px;justify-content:space-between;margin-bottom:8px;}
.hsm-report-section-title span{text-transform:uppercase;letter-spacing:.14em;color:#a56f00;font-size:10px;font-weight:900;white-space:nowrap;}
.hsm-report-section-title h2{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:17px!important;line-height:1.15!important;color:#061b46!important;font-weight:900!important;text-align:right;}
.hsm-report-note-v2{margin:0 0 8px!important;color:#344a70!important;font-size:12px!important;line-height:1.35!important;font-weight:600!important;}
.hsm-report-data-table{width:100%;border-collapse:collapse;border:1px solid rgba(6,27,70,.2);background:#fff;}
.hsm-report-data-table th{background:#f6f8fb;color:#061b46;text-align:left;text-transform:uppercase;letter-spacing:.07em;font-size:10px;padding:8px 9px;border-bottom:2px solid #061b46;}
.hsm-report-data-table td{padding:8px 9px;border-bottom:1px solid rgba(6,27,70,.1);font-size:12px;color:#102b56;vertical-align:top;}
.hsm-report-data-table tr:nth-child(even) td{background:#fffaf2;}
.hsm-report-ledger{break-inside:auto;}
.hsm-report-certification-v2{border-top:3px solid #d6a235;margin-top:24px;padding-top:16px;text-align:left;break-inside:avoid;}
.hsm-report-certification-copy{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:start;}
.hsm-report-cert-label{margin:0!important;text-transform:uppercase;letter-spacing:.15em;color:#061b46!important;font-size:12px!important;font-weight:900!important;}
.hsm-report-certification-copy p:last-child{margin:0!important;color:#233c67!important;font-size:12px!important;line-height:1.45!important;font-weight:700!important;}
.hsm-report-certification-seal-v2{display:flex;justify-content:center;margin:12px 0 14px;}
.hsm-report-certification-seal-v2 img{width:72px;height:72px;object-fit:contain;border-radius:50%;}
.hsm-report-signature-grid-v2{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:12px;}
.hsm-report-signature-grid-v2 div{border-top:2px solid #061b46;padding-top:7px;min-height:54px;}
.hsm-report-signature-grid-v2 span{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:9px;color:#a56f00;font-weight:900;margin-bottom:3px;}
.hsm-report-signature-grid-v2 strong{font-size:12px;color:#061b46;line-height:1.2;}
.hsm-report-certification-v2 footer{margin-top:12px;padding-top:8px;border-top:1px solid rgba(6,27,70,.16);font-size:10px;color:#52607a;text-align:center;font-weight:700;}
@media(max-width:900px){.hsm-report-letterhead-v2{grid-template-columns:1fr}.hsm-report-brand-v2 h1{white-space:normal;font-size:26px!important}.hsm-report-summary-v2 table,.hsm-report-summary-v2 thead,.hsm-report-summary-v2 tbody,.hsm-report-summary-v2 tr,.hsm-report-summary-v2 th,.hsm-report-summary-v2 td{display:block}.hsm-report-summary-v2 th{display:none}.hsm-report-summary-v2 td{border-right:0;border-bottom:1px solid rgba(6,27,70,.12)}.hsm-report-section-title{display:block}.hsm-report-section-title h2{text-align:left;margin-top:4px!important}.hsm-report-signature-grid-v2{grid-template-columns:1fr}.hsm-report-certification-copy{display:block}.hsm-report-cert-label{margin-bottom:6px!important}}
@media print{
  @page{size:letter;margin:.55in;}
  body{background:#fff!important;color:#061b46!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .hsm-admin-sidebar,.hsm-admin-top,.hsm-top-actions,.hsm-admin-nav,.hsm-finance-report-system-panel,.no-print,.hsm-report-filter-grid,.mini-btn,.hsm-admin-footer{display:none!important;}
  .hsm-admin-main{margin:0!important;padding:0!important;width:100%!important;}
  .hsm-official-finance-report{border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important;width:100%!important;font-size:10pt!important;}
  .hsm-report-letterhead-v2{grid-template-columns:1fr 2.55in!important;gap:.22in!important;border-bottom:2px solid #061b46!important;padding-bottom:.12in!important;margin-bottom:.14in!important;break-inside:avoid!important;}
  .hsm-report-brand-v2{grid-template-columns:.72in 1fr!important;gap:.12in!important;}
  .hsm-report-brand-v2 img{width:.64in!important;max-width:.64in!important;}
  .hsm-report-ministry-name{font-size:7.5pt!important;margin-bottom:2pt!important;letter-spacing:.12em!important;}
  .hsm-report-brand-v2 h1{font-size:15pt!important;line-height:1.05!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
  .hsm-report-office-line{font-size:8.5pt!important;margin-top:3pt!important;}
  .hsm-report-meta-table th,.hsm-report-meta-table td{padding:3pt 4pt!important;font-size:7.5pt!important;}
  .hsm-report-meta-table th{font-size:6.5pt!important;width:.8in!important;letter-spacing:.07em!important;}
  .hsm-report-summary-v2{margin-bottom:.12in!important;break-inside:avoid!important;}
  .hsm-report-summary-v2 th{font-size:7pt!important;padding:4pt 5pt!important;}
  .hsm-report-summary-v2 td{padding:5pt!important;}
  .hsm-report-summary-v2 strong{font-size:12pt!important;margin-bottom:1pt!important;}
  .hsm-report-summary-v2 span{font-size:7pt!important;}
  .hsm-report-section-v2{margin:.12in 0 0!important;padding-top:.07in!important;border-top:1px solid #d6a235!important;}
  .hsm-report-section-title{margin-bottom:4pt!important;}
  .hsm-report-section-title span{font-size:6.5pt!important;letter-spacing:.1em!important;}
  .hsm-report-section-title h2{font-size:10.5pt!important;line-height:1.1!important;}
  .hsm-report-note-v2{font-size:7.5pt!important;margin-bottom:4pt!important;}
  .hsm-report-data-table th{font-size:6.8pt!important;padding:4pt 5pt!important;letter-spacing:.04em!important;border-bottom:1.5px solid #061b46!important;}
  .hsm-report-data-table td{font-size:7.2pt!important;padding:4pt 5pt!important;}
  .hsm-report-certification-v2{margin-top:.18in!important;padding-top:.12in!important;border-top:2px solid #d6a235!important;break-inside:avoid!important;}
  .hsm-report-certification-copy{grid-template-columns:1in 1fr!important;gap:.12in!important;}
  .hsm-report-cert-label{font-size:7.5pt!important;letter-spacing:.12em!important;}
  .hsm-report-certification-copy p:last-child{font-size:7.5pt!important;line-height:1.35!important;}
  .hsm-report-certification-seal-v2{margin:.07in 0 .1in!important;}
  .hsm-report-certification-seal-v2 img{width:.55in!important;height:.55in!important;}
  .hsm-report-signature-grid-v2{gap:.18in!important;margin-top:.08in!important;}
  .hsm-report-signature-grid-v2 div{min-height:.42in!important;padding-top:4pt!important;border-top:1.5px solid #061b46!important;}
  .hsm-report-signature-grid-v2 span{font-size:6.3pt!important;margin-bottom:2pt!important;}
  .hsm-report-signature-grid-v2 strong{font-size:7.2pt!important;}
  .hsm-report-certification-v2 footer{font-size:6.5pt!important;margin-top:.07in!important;padding-top:4pt!important;}
}

/* HSM 3.7.2 - Finance Ministry Reporting System and Official Report Document correction */
.hsm-finance-office-system{
  border:1px solid rgba(214,162,53,.38)!important;
  background:linear-gradient(135deg,#fff 0%,#fffaf2 100%)!important;
  box-shadow:0 20px 46px rgba(6,27,70,.10)!important;
}
.hsm-finance-office-header{display:flex;align-items:center;gap:18px;margin-bottom:18px;}
.hsm-finance-office-mark img{width:76px;height:76px;object-fit:contain;background:#fff;border:1px solid rgba(214,162,53,.35);border-radius:16px;padding:7px;box-shadow:0 10px 22px rgba(6,27,70,.10);}
.hsm-finance-office-copy{min-width:0;}
.hsm-office-kicker{margin:0 0 5px!important;text-transform:uppercase;letter-spacing:.16em;color:#b27a00!important;font-size:12px!important;font-weight:900!important;}
.hsm-finance-office-copy h2{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(24px,2.2vw,34px)!important;line-height:1.08!important;letter-spacing:-.015em!important;color:#061b46!important;font-weight:900!important;white-space:nowrap!important;}
.hsm-finance-office-copy p:not(.hsm-office-kicker){margin:6px 0 0!important;color:#344a70!important;font-size:15px!important;line-height:1.4!important;font-weight:700!important;max-width:900px;}
.hsm-finance-control-form{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;align-items:end;margin-top:12px;}
.hsm-finance-control-form label{display:block;color:#061b46;font-weight:900;font-size:13px;}
.hsm-finance-control-form input,.hsm-finance-control-form select{width:100%;height:46px;border:1px solid rgba(6,27,70,.18);border-radius:12px;background:#fff;padding:0 14px;color:#061b46;font-weight:800;font-size:14px;}
.hsm-finance-control-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;margin-top:4px;}
.hsm-action-btn{appearance:none;border:0;border-radius:12px;padding:12px 18px;font-family:Arial,Helvetica,sans-serif;font-weight:900;letter-spacing:.02em;font-size:13px;cursor:pointer;box-shadow:0 10px 18px rgba(6,27,70,.12);}
.hsm-action-primary{background:#061b46;color:#fff;}
.hsm-action-secondary{background:#fff;border:1px solid rgba(6,27,70,.2);color:#061b46;}
.hsm-action-btn:hover{transform:translateY(-1px);}

.hsm-finance-report-document-v3{max-width:1040px;margin:24px auto 0;background:#fff;border:1px solid rgba(6,27,70,.16);border-radius:14px;padding:30px 34px;box-shadow:0 22px 55px rgba(6,27,70,.12);font-family:Arial,Helvetica,sans-serif;color:#061b46;}
.hsm-report-doc-header-v3{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start;border-bottom:2px solid #061b46;padding-bottom:16px;margin-bottom:18px;}
.hsm-report-doc-brand-v3{display:flex;gap:16px;align-items:center;min-width:0;}
.hsm-report-doc-brand-v3 img{width:74px;height:74px;object-fit:contain;flex:0 0 auto;}
.hsm-report-doc-kicker-v3{margin:0 0 3px!important;text-transform:uppercase;letter-spacing:.12em;color:#a56f00!important;font-size:10px!important;font-weight:900!important;}
.hsm-report-doc-brand-v3 h1{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:28px!important;line-height:1.08!important;font-weight:900!important;color:#061b46!important;letter-spacing:-.01em!important;}
.hsm-report-doc-subtitle-v3{margin:5px 0 0!important;font-size:12px!important;font-weight:800!important;color:#3d5270!important;}
.hsm-report-doc-meta-v3{width:100%;border-collapse:collapse;font-size:12px;}
.hsm-report-doc-meta-v3 th,.hsm-report-doc-meta-v3 td{padding:5px 7px;border-bottom:1px solid rgba(6,27,70,.14);text-align:left;vertical-align:top;}
.hsm-report-doc-meta-v3 th{width:105px;text-transform:uppercase;letter-spacing:.08em;color:#a56f00;font-size:9px;font-weight:900;}
.hsm-report-doc-meta-v3 td{font-weight:800;overflow-wrap:anywhere;}
.hsm-report-doc-summary-v3{margin:0 0 18px;}
.hsm-report-doc-summary-v3 h2,.hsm-report-doc-section-v3 h2,.hsm-report-cert-copy-v3 h2{font-family:Arial,Helvetica,sans-serif!important;font-size:17px!important;line-height:1.2!important;margin:0 0 8px!important;color:#061b46!important;font-weight:900!important;letter-spacing:0!important;}
.hsm-report-doc-summary-v3 table,.hsm-report-doc-table-v3{width:100%;border-collapse:collapse;background:#fff;}
.hsm-report-doc-summary-v3 table{border:1px solid #bfc8d6;}
.hsm-report-doc-summary-v3 th{background:#061b46;color:#fff;text-align:left;text-transform:uppercase;letter-spacing:.06em;font-size:10px;padding:8px;}
.hsm-report-doc-summary-v3 td{padding:10px 8px;border-right:1px solid #d6dce6;font-weight:900;font-size:16px;vertical-align:top;}
.hsm-report-doc-summary-v3 td:last-child{border-right:0;}
.hsm-report-doc-summary-v3 small{display:block;margin-top:3px;font-size:10px;font-weight:700;color:#4c5f7a;}
.hsm-report-doc-section-v3{margin:16px 0 0;padding-top:10px;border-top:1px solid #d6a235;break-inside:avoid;}
.hsm-report-doc-section-v3 p{margin:0 0 8px!important;color:#344a70!important;font-size:12px!important;line-height:1.4!important;font-weight:600!important;}
.hsm-report-doc-table-v3{border:1px solid #cbd3df;}
.hsm-report-doc-table-v3 th{background:#eef2f7;color:#061b46;text-align:left;text-transform:uppercase;letter-spacing:.05em;font-size:10px;padding:7px 8px;border-bottom:2px solid #061b46;}
.hsm-report-doc-table-v3 td{padding:7px 8px;border-bottom:1px solid #e2e7ef;font-size:12px;color:#102b56;vertical-align:top;}
.hsm-report-doc-table-v3 tr:nth-child(even) td{background:#fbfcfe;}
.hsm-report-ledger-v3{break-inside:auto;}
.hsm-report-certification-v3{margin-top:24px;padding-top:16px;border-top:2px solid #061b46;break-inside:avoid;text-align:left;}
.hsm-report-cert-copy-v3{display:grid;grid-template-columns:130px 1fr;gap:16px;align-items:start;}
.hsm-report-cert-copy-v3 p{margin:0!important;font-size:12px!important;line-height:1.45!important;color:#233c67!important;font-weight:700!important;}
.hsm-report-cert-seal-v3{display:flex;justify-content:center;margin:14px 0;}
.hsm-report-cert-seal-v3 img{width:74px;height:74px;object-fit:contain;border-radius:50%;}
.hsm-report-signatures-v3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:14px;}
.hsm-report-signatures-v3 div{border-top:2px solid #061b46;padding-top:7px;min-height:50px;}
.hsm-report-signatures-v3 span{display:block;text-transform:uppercase;letter-spacing:.11em;color:#a56f00;font-size:9px;font-weight:900;margin-bottom:4px;}
.hsm-report-signatures-v3 strong{display:block;font-size:12px;line-height:1.2;color:#061b46;}
.hsm-report-certification-v3 footer{margin-top:14px;padding-top:8px;border-top:1px solid #d5dbe5;text-align:center;font-size:10px;color:#52607a;font-weight:700;}
@media(max-width:920px){.hsm-finance-office-copy h2{white-space:normal!important}.hsm-finance-control-form{grid-template-columns:repeat(2,minmax(0,1fr));}.hsm-report-doc-header-v3{grid-template-columns:1fr}.hsm-report-doc-brand-v3 h1{font-size:24px!important}.hsm-report-signatures-v3{grid-template-columns:1fr}.hsm-report-cert-copy-v3{display:block}.hsm-report-cert-copy-v3 h2{margin-bottom:6px!important}}
@media(max-width:560px){.hsm-finance-office-header{align-items:flex-start}.hsm-finance-office-mark img{width:58px;height:58px}.hsm-finance-control-form{grid-template-columns:1fr}.hsm-finance-report-document-v3{padding:18px 16px;border-radius:12px}.hsm-report-doc-brand-v3{align-items:flex-start}.hsm-report-doc-brand-v3 img{width:56px;height:56px}.hsm-report-doc-summary-v3 table,.hsm-report-doc-summary-v3 thead,.hsm-report-doc-summary-v3 tbody,.hsm-report-doc-summary-v3 tr,.hsm-report-doc-summary-v3 th,.hsm-report-doc-summary-v3 td{display:block}.hsm-report-doc-summary-v3 th{display:none}.hsm-report-doc-summary-v3 td{border-right:0;border-bottom:1px solid #d6dce6}.hsm-report-doc-table-v3{font-size:12px}}
@media print{
  @page{size:letter;margin:.5in;}
  html,body{background:#fff!important;margin:0!important;padding:0!important;color:#000!important;}
  body *{visibility:hidden!important;}
  #hsmFinanceReportDocument,#hsmFinanceReportDocument *{visibility:visible!important;}
  #hsmFinanceReportDocument{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#061b46!important;}
  .hsm-admin-sidebar,.hsm-admin-top,.hsm-top-actions,.hsm-admin-nav,.hsm-admin-footer,.hsm-finance-office-system,.no-print,.hsm-finance-control-form,.mini-btn,.hsm-action-btn{display:none!important;}
  .hsm-report-doc-header-v3{display:grid!important;grid-template-columns:1fr 2.35in!important;gap:.22in!important;border-bottom:1.5pt solid #061b46!important;padding-bottom:.12in!important;margin-bottom:.16in!important;break-inside:avoid!important;}
  .hsm-report-doc-brand-v3{gap:.12in!important;align-items:center!important;}
  .hsm-report-doc-brand-v3 img{width:.62in!important;height:.62in!important;}
  .hsm-report-doc-kicker-v3{font-size:7pt!important;margin-bottom:1pt!important;letter-spacing:.1em!important;}
  .hsm-report-doc-brand-v3 h1{font-size:16pt!important;line-height:1.08!important;margin:0!important;}
  .hsm-report-doc-subtitle-v3{font-size:8pt!important;margin-top:2pt!important;}
  .hsm-report-doc-meta-v3 th,.hsm-report-doc-meta-v3 td{font-size:7pt!important;padding:2.5pt 3.5pt!important;}
  .hsm-report-doc-meta-v3 th{font-size:6pt!important;width:.72in!important;}
  .hsm-report-doc-summary-v3{margin-bottom:.14in!important;break-inside:avoid!important;}
  .hsm-report-doc-summary-v3 h2,.hsm-report-doc-section-v3 h2,.hsm-report-cert-copy-v3 h2{font-size:10.5pt!important;margin-bottom:4pt!important;}
  .hsm-report-doc-summary-v3 th{font-size:6.8pt!important;padding:4pt 5pt!important;}
  .hsm-report-doc-summary-v3 td{font-size:10pt!important;padding:5pt!important;}
  .hsm-report-doc-summary-v3 small{font-size:6.5pt!important;}
  .hsm-report-doc-section-v3{margin:.12in 0 0!important;padding-top:.07in!important;border-top:1pt solid #d6a235!important;break-inside:avoid!important;}
  .hsm-report-doc-section-v3 p{font-size:7pt!important;margin-bottom:4pt!important;}
  .hsm-report-doc-table-v3 th{font-size:6.5pt!important;padding:3.5pt 4pt!important;border-bottom:1pt solid #061b46!important;}
  .hsm-report-doc-table-v3 td{font-size:7pt!important;padding:3.5pt 4pt!important;}
  .hsm-report-ledger-v3{break-inside:auto!important;}
  .hsm-report-certification-v3{margin-top:.18in!important;padding-top:.12in!important;border-top:1.5pt solid #061b46!important;break-inside:avoid!important;}
  .hsm-report-cert-copy-v3{grid-template-columns:.95in 1fr!important;gap:.12in!important;}
  .hsm-report-cert-copy-v3 p{font-size:7.2pt!important;line-height:1.35!important;}
  .hsm-report-cert-seal-v3{margin:.08in 0!important;}
  .hsm-report-cert-seal-v3 img{width:.56in!important;height:.56in!important;}
  .hsm-report-signatures-v3{gap:.18in!important;margin-top:.1in!important;}
  .hsm-report-signatures-v3 div{min-height:.42in!important;padding-top:4pt!important;border-top:1.2pt solid #061b46!important;}
  .hsm-report-signatures-v3 span{font-size:6pt!important;margin-bottom:2pt!important;}
  .hsm-report-signatures-v3 strong{font-size:7pt!important;}
  .hsm-report-certification-v3 footer{font-size:6.2pt!important;margin-top:.08in!important;padding-top:4pt!important;}
}

/* HSM 3.7.3 - Finance reports: sector-selected document output and professional report typography */
.hsm-finance-control-form{grid-template-columns:1.25fr 1fr repeat(5,minmax(120px,1fr))!important;align-items:end!important;}
.hsm-finance-control-actions{justify-content:flex-start!important;}
.hsm-action-btn{border-radius:8px!important;padding:11px 18px!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.04em!important;line-height:1!important;box-shadow:none!important;}
.hsm-action-primary{background:#062657!important;color:#fff!important;border:1px solid #062657!important;}
.hsm-action-secondary{background:#fff!important;color:#062657!important;border:1px solid rgba(6,38,87,.28)!important;}
.hsm-finance-report-document-v4{max-width:1060px;margin:24px auto 0;background:#fff;border:1px solid rgba(8,39,90,.22);border-radius:10px;padding:28px 32px;font-family:Arial,Helvetica,sans-serif;color:#061b46;box-shadow:0 14px 30px rgba(6,27,70,.08);}
.hsm-report-doc-header-v4{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start;border-bottom:2px solid #061b46;padding-bottom:14px;margin-bottom:18px;}
.hsm-report-doc-brand-v4{display:flex;align-items:center;gap:14px;min-width:0;}
.hsm-report-doc-brand-v4 img{width:66px;height:66px;object-fit:contain;flex:0 0 auto;}
.hsm-report-doc-brand-v4 p{margin:0 0 3px!important;text-transform:uppercase;letter-spacing:.14em;color:#a56f00!important;font-size:9px!important;font-weight:900!important;}
.hsm-report-doc-brand-v4 h1{margin:0!important;font-family:Arial,Helvetica,sans-serif!important;font-size:22px!important;line-height:1.15!important;font-weight:900!important;color:#061b46!important;letter-spacing:0!important;}
.hsm-report-doc-brand-v4 span{display:block;margin-top:4px;color:#425878;font-size:12px;font-weight:700;}
.hsm-report-doc-meta-v4{width:100%;border-collapse:collapse;font-size:12px;border:1px solid #cfd7e4;}
.hsm-report-doc-meta-v4 th,.hsm-report-doc-meta-v4 td{padding:6px 8px;border-bottom:1px solid #e4e8ef;text-align:left;vertical-align:top;}
.hsm-report-doc-meta-v4 th{width:92px;background:#f7f9fc;text-transform:uppercase;letter-spacing:.07em;color:#8b640e;font-size:9px;font-weight:900;}
.hsm-report-doc-meta-v4 td{font-weight:800;overflow-wrap:anywhere;color:#061b46;}
.hsm-report-doc-section-v4{margin:16px 0 0;break-inside:avoid;}
.hsm-report-doc-section-v4 + .hsm-report-doc-section-v4{border-top:1px solid #d6a235;padding-top:12px;}
.hsm-report-doc-section-v4 h2{margin:0 0 7px!important;font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.25!important;color:#061b46!important;font-weight:900!important;letter-spacing:0!important;}
.hsm-report-doc-section-v4 p{margin:0 0 8px!important;color:#344a70!important;font-size:12px!important;line-height:1.45!important;font-weight:600!important;}
.hsm-report-summary-v4 table,.hsm-report-doc-table-v4{width:100%;border-collapse:collapse;background:#fff;border:1px solid #cbd3df;}
.hsm-report-summary-v4 th,.hsm-report-doc-table-v4 th{background:#061b46;color:#fff;text-align:left;text-transform:uppercase;letter-spacing:.05em;font-size:10px;padding:7px 8px;border:0;}
.hsm-report-summary-v4 td,.hsm-report-doc-table-v4 td{padding:7px 8px;border-bottom:1px solid #e2e7ef;font-size:12px;color:#102b56;vertical-align:top;}
.hsm-report-summary-v4 td{font-weight:900;font-size:14px;}
.hsm-report-doc-table-v4 tr:nth-child(even) td{background:#fbfcfe;}
.hsm-report-certification-v4{margin-top:24px;padding-top:15px;border-top:2px solid #061b46;break-inside:avoid;text-align:left;}
.hsm-report-certification-v4 h2{margin:0 0 6px!important;font-family:Arial,Helvetica,sans-serif!important;font-size:15px!important;text-transform:uppercase;letter-spacing:.1em;color:#061b46!important;text-align:center;}
.hsm-report-certification-v4 p{margin:0 auto 10px!important;max-width:880px;text-align:center;font-size:12px!important;line-height:1.45!important;color:#233c67!important;font-weight:700!important;}
.hsm-report-cert-seal-v4{display:flex;justify-content:center;margin:10px 0;}
.hsm-report-cert-seal-v4 img{width:66px;height:66px;object-fit:contain;border-radius:50%;}
.hsm-report-signatures-v4{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:14px;}
.hsm-report-signatures-v4 div{border-top:2px solid #061b46;padding-top:7px;min-height:48px;}
.hsm-report-signatures-v4 span{display:block;text-transform:uppercase;letter-spacing:.1em;color:#a56f00;font-size:9px;font-weight:900;margin-bottom:4px;}
.hsm-report-signatures-v4 strong{display:block;font-size:12px;line-height:1.2;color:#061b46;}
.hsm-report-certification-v4 footer{margin-top:14px;padding-top:8px;border-top:1px solid #d5dbe5;text-align:center;font-size:10px;color:#52607a;font-weight:700;}
@media(max-width:1050px){.hsm-finance-control-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hsm-report-doc-header-v4{grid-template-columns:1fr}.hsm-report-doc-brand-v4 h1{font-size:20px!important}.hsm-report-signatures-v4{grid-template-columns:1fr}}
@media(max-width:560px){.hsm-finance-report-document-v4{padding:16px 14px}.hsm-report-doc-brand-v4{align-items:flex-start}.hsm-report-doc-brand-v4 img{width:54px;height:54px}.hsm-report-doc-brand-v4 h1{font-size:18px!important}.hsm-report-doc-meta-v4 th{width:78px}.hsm-report-doc-section-v4{overflow-x:auto}.hsm-action-btn{width:100%;}}
@media print{
  @page{size:letter;margin:.55in;}
  html,body{background:#fff!important;margin:0!important;padding:0!important;color:#000!important;}
  body *{visibility:hidden!important;}
  #hsmFinanceReportDocument,#hsmFinanceReportDocument *{visibility:visible!important;}
  #hsmFinanceReportDocument{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#061b46!important;}
  .hsm-admin-sidebar,.hsm-admin-top,.hsm-top-actions,.hsm-admin-nav,.hsm-admin-footer,.hsm-finance-office-system,.no-print,.hsm-finance-control-form,.mini-btn,.hsm-action-btn{display:none!important;}
  .hsm-report-doc-header-v4{display:grid!important;grid-template-columns:1fr 2.25in!important;gap:.22in!important;border-bottom:1.5pt solid #061b46!important;padding-bottom:.12in!important;margin-bottom:.16in!important;break-inside:avoid!important;}
  .hsm-report-doc-brand-v4{gap:.12in!important;align-items:center!important;}
  .hsm-report-doc-brand-v4 img{width:.58in!important;height:.58in!important;}
  .hsm-report-doc-brand-v4 p{font-size:6.5pt!important;margin-bottom:1pt!important;letter-spacing:.1em!important;}
  .hsm-report-doc-brand-v4 h1{font-size:14pt!important;line-height:1.12!important;margin:0!important;}
  .hsm-report-doc-brand-v4 span{font-size:7.5pt!important;margin-top:2pt!important;}
  .hsm-report-doc-meta-v4 th,.hsm-report-doc-meta-v4 td{font-size:7pt!important;padding:2.5pt 3.5pt!important;}
  .hsm-report-doc-meta-v4 th{font-size:6pt!important;width:.68in!important;}
  .hsm-report-doc-section-v4{margin:.12in 0 0!important;break-inside:avoid!important;}
  .hsm-report-doc-section-v4 + .hsm-report-doc-section-v4{padding-top:.08in!important;border-top:1pt solid #d6a235!important;}
  .hsm-report-doc-section-v4 h2{font-size:10.5pt!important;margin-bottom:4pt!important;}
  .hsm-report-doc-section-v4 p{font-size:7.2pt!important;margin-bottom:4pt!important;}
  .hsm-report-summary-v4 th,.hsm-report-doc-table-v4 th{font-size:6.5pt!important;padding:3.5pt 4pt!important;background:#061b46!important;color:#fff!important;}
  .hsm-report-summary-v4 td,.hsm-report-doc-table-v4 td{font-size:7pt!important;padding:3.5pt 4pt!important;}
  .hsm-report-summary-v4 td{font-size:8.2pt!important;}
  .hsm-report-certification-v4{margin-top:.18in!important;padding-top:.12in!important;border-top:1.5pt solid #061b46!important;break-inside:avoid!important;}
  .hsm-report-certification-v4 h2{font-size:9pt!important;margin-bottom:3pt!important;}
  .hsm-report-certification-v4 p{font-size:7pt!important;line-height:1.32!important;margin-bottom:5pt!important;}
  .hsm-report-cert-seal-v4{margin:.06in 0!important;}
  .hsm-report-cert-seal-v4 img{width:.5in!important;height:.5in!important;}
  .hsm-report-signatures-v4{gap:.18in!important;margin-top:.1in!important;}
  .hsm-report-signatures-v4 div{min-height:.4in!important;padding-top:4pt!important;border-top:1.2pt solid #061b46!important;}
  .hsm-report-signatures-v4 span{font-size:5.8pt!important;margin-bottom:2pt!important;}
  .hsm-report-signatures-v4 strong{font-size:6.8pt!important;}
  .hsm-report-certification-v4 footer{font-size:6pt!important;margin-top:.07in!important;padding-top:4pt!important;}
}

/* HSM 3.7.4 Staff Management branded action confirmation */
.hsm-branded-confirmation{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:start;
  margin:20px 0 24px;
  padding:22px 24px;
  border:1px solid rgba(214,162,53,.42);
  border-left:7px solid #d6a235;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff 0%,#fffaf0 100%);
  box-shadow:0 16px 38px rgba(3,24,62,.10);
  color:#061d46;
}
.hsm-confirmation-mark{
  width:54px;
  height:54px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#06265f;
  color:#fff;
  border:2px solid #d6a235;
  font-size:26px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(3,24,62,.20);
}
.hsm-branded-confirmation h2{
  margin:4px 0 8px;
  font-size:clamp(1.35rem,2.2vw,2rem);
  line-height:1.15;
  color:#061d46;
}
.hsm-branded-confirmation p{
  margin:0 0 14px;
  color:#263b61;
  font-size:1rem;
  line-height:1.55;
}
.hsm-confirmation-details{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:0;
}
.hsm-confirmation-details div{
  padding:11px 12px;
  border:1px solid rgba(6,38,95,.12);
  border-radius:14px;
  background:#fff;
}
.hsm-confirmation-details dt{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#a06c00;
  font-weight:800;
  margin-bottom:4px;
}
.hsm-confirmation-details dd{
  margin:0;
  font-weight:800;
  color:#061d46;
  overflow-wrap:anywhere;
}
@media(max-width:640px){
  .hsm-branded-confirmation{grid-template-columns:1fr;padding:18px;}
  .hsm-confirmation-mark{width:46px;height:46px;font-size:22px;}
}

/* HSM 3.7.5 Brand Accountability Standard: legible logos, appropriate seals, formal placement */
:root{
  --hsm-brand-logo-screen: 92px;
  --hsm-brand-logo-print: .86in;
  --hsm-cert-seal-screen: 92px;
  --hsm-cert-seal-print: .82in;
}
.hsm-accountable-brand-logo,
.hsm-report-doc-brand-v4 img,
.hsm-finance-office-mark img,
.hsm-finance-report-logo img,
.hsm-generated-report-logo img,
.hsm-report-brand-v2 img,
.hsm-report-doc-brand-v3 img{
  width:var(--hsm-brand-logo-screen)!important;
  max-width:var(--hsm-brand-logo-screen)!important;
  height:auto!important;
  object-fit:contain!important;
  display:block!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.38)!important;
  border-radius:14px!important;
  padding:6px!important;
  box-shadow:0 8px 18px rgba(6,27,70,.10)!important;
}
.hsm-accountable-seal,
.hsm-report-cert-seal-v4 img,
.hsm-report-cert-seal-v3 img,
.hsm-report-certification-seal img,
.hsm-report-certification-seal-v2 img{
  width:var(--hsm-cert-seal-screen)!important;
  max-width:var(--hsm-cert-seal-screen)!important;
  height:var(--hsm-cert-seal-screen)!important;
  object-fit:contain!important;
  display:block!important;
  margin:0 auto!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.42)!important;
  border-radius:50%!important;
  padding:6px!important;
  box-shadow:0 8px 18px rgba(6,27,70,.10)!important;
}
.hsm-report-doc-header-v4,
.hsm-generated-report-letterhead,
.hsm-finance-report-letterhead{
  align-items:center!important;
}
.hsm-report-doc-brand-v4{
  align-items:center!important;
  gap:18px!important;
}
.hsm-report-doc-brand-v4 h1{
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(24px,2.4vw,34px)!important;
  line-height:1.08!important;
  letter-spacing:-.015em!important;
  color:#061d46!important;
  margin:2px 0 4px!important;
  max-width:100%!important;
}
.hsm-report-doc-brand-v4 p,
.hsm-report-doc-brand-v4 span{
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
.hsm-report-certification-v4{
  border-top:2px solid #d6a235!important;
  margin-top:24px!important;
  padding-top:18px!important;
  text-align:center!important;
}
.hsm-report-certification-v4 h2{
  font-size:18px!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  margin:0 0 10px!important;
}
.hsm-report-certification-v4 p{
  max-width:820px!important;
  margin:0 auto 12px!important;
  line-height:1.55!important;
}
.hsm-report-cert-seal-v4{
  display:flex!important;
  justify-content:center!important;
  margin:12px auto 16px!important;
}
.hsm-accountable-confirmation{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:center!important;
  border:1px solid rgba(214,162,53,.42)!important;
  border-left:6px solid #d6a235!important;
  background:#fff!important;
  box-shadow:0 16px 34px rgba(6,27,70,.10)!important;
}
.hsm-confirmation-brand{
  position:relative!important;
  width:84px!important;
  height:84px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.hsm-confirmation-brand img{
  width:78px!important;
  max-width:78px!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
  background:#fff!important;
  border:1px solid rgba(214,162,53,.35)!important;
  border-radius:14px!important;
  padding:5px!important;
}
.hsm-confirmation-brand span{
  position:absolute!important;
  right:-6px!important;
  bottom:-6px!important;
  width:30px!important;
  height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#0a3478!important;
  color:#fff!important;
  border:2px solid #d6a235!important;
  font-weight:900!important;
}
@media(max-width:680px){
  .hsm-accountable-confirmation{grid-template-columns:1fr!important;text-align:left!important;}
  .hsm-confirmation-brand{width:76px!important;height:76px!important;}
  .hsm-confirmation-brand img{width:70px!important;max-width:70px!important;}
  .hsm-report-doc-brand-v4{align-items:flex-start!important;}
}
@media print{
  .hsm-report-doc-brand-v4 img,
  .hsm-finance-report-logo img,
  .hsm-generated-report-logo img,
  .hsm-report-brand-v2 img,
  .hsm-report-doc-brand-v3 img{
    width:var(--hsm-brand-logo-print)!important;
    max-width:var(--hsm-brand-logo-print)!important;
    height:auto!important;
    object-fit:contain!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  .hsm-report-cert-seal-v4 img,
  .hsm-report-cert-seal-v3 img,
  .hsm-report-certification-seal img,
  .hsm-report-certification-seal-v2 img{
    width:var(--hsm-cert-seal-print)!important;
    max-width:var(--hsm-cert-seal-print)!important;
    height:var(--hsm-cert-seal-print)!important;
    object-fit:contain!important;
    border:0!important;
    padding:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  .hsm-report-doc-brand-v4 h1{
    font-size:18pt!important;
    line-height:1.12!important;
    margin:0 0 3pt!important;
  }
  .hsm-report-certification-v4{
    margin-top:.22in!important;
    padding-top:.16in!important;
    border-top:1.5pt solid #d6a235!important;
  }
  .hsm-report-certification-v4 h2{font-size:11pt!important;letter-spacing:.12em!important;}
  .hsm-report-certification-v4 p{font-size:9.5pt!important;line-height:1.45!important;}
}

/* HSM 3.7.6 Back Office Professional Standard: consistent ministry office polish */
.hsm-backoffice-professional-standard{
  --hsm-office-max: 1480px;
  --hsm-office-title: clamp(28px, 2.6vw, 42px);
  --hsm-office-heading: clamp(20px, 1.45vw, 28px);
  --hsm-office-subheading: clamp(16px, 1.05vw, 20px);
}
.hsm-backoffice-professional-standard .hsm-admin-main{
  max-width: var(--hsm-office-max);
  margin:0 auto;
  width:100%;
}
.hsm-backoffice-professional-standard .hsm-admin-top{
  min-height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border:1px solid rgba(6,27,70,.10);
  border-left:0;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92));
  box-shadow:0 16px 34px rgba(6,27,70,.10);
}
.hsm-backoffice-professional-standard .hsm-admin-top h1{
  font-family:Georgia,'Times New Roman',serif;
  font-size:var(--hsm-office-title);
  line-height:1.04;
  letter-spacing:-.025em;
  margin:0;
  color:#061d46;
  max-width:900px;
  word-break:normal;
  overflow-wrap:normal;
  text-wrap:balance;
}
.hsm-backoffice-professional-standard .hsm-page-kicker{
  margin:0 0 .32rem;
  font-size:.78rem;
  letter-spacing:.16em;
  color:#a36f09;
}
.hsm-backoffice-professional-standard .hsm-admin-brand img,
.hsm-backoffice-professional-standard .hsm-admin-side .hsm-admin-brand img{
  width:62px!important;
  max-width:62px!important;
  height:auto!important;
  object-fit:contain!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .hsm-admin-brand strong{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.02em;line-height:1.05;}
.hsm-backoffice-professional-standard .hsm-top-actions{align-items:center;gap:.7rem;}
.hsm-backoffice-professional-standard .hsm-top-btn,
.hsm-backoffice-professional-standard .hsm-action-btn,
.hsm-backoffice-professional-standard .lux-btn,
.hsm-backoffice-professional-standard .mini-btn,
.hsm-backoffice-professional-standard .submit,
.hsm-backoffice-professional-standard button.submit{
  min-height:44px;
  padding:.72rem 1.05rem;
  border-radius:999px;
  font-size:.88rem;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(6,27,70,.13);
}
.hsm-backoffice-professional-standard .hsm-signout-btn{background:linear-gradient(135deg,#b62336,#d23746)!important;color:#fff!important;}
.hsm-backoffice-professional-standard .card,
.hsm-backoffice-professional-standard .hsm-pro-card,
.hsm-backoffice-professional-standard .hsm-pro-panel,
.hsm-backoffice-professional-standard .premium-card,
.hsm-backoffice-professional-standard .stat,
.hsm-backoffice-professional-standard .admin-main > section:not(.hsm-finance-report-document-v4),
.hsm-backoffice-professional-standard .hsm-admin-main > article:not(.hsm-finance-report-document-v4){
  border:1px solid rgba(199,149,47,.32);
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 34px rgba(6,27,70,.09);
}
.hsm-backoffice-professional-standard .card,
.hsm-backoffice-professional-standard .hsm-admin-main > section:not(.hsm-finance-report-document-v4),
.hsm-backoffice-professional-standard .hsm-admin-main > article:not(.hsm-finance-report-document-v4){
  margin:1rem 0;
  padding:1.35rem;
}
.hsm-backoffice-professional-standard .card h2,
.hsm-backoffice-professional-standard section h2,
.hsm-backoffice-professional-standard article h2{
  font-size:var(--hsm-office-heading);
  line-height:1.14;
  letter-spacing:-.015em;
  color:#061d46;
  margin-top:0;
  text-wrap:balance;
}
.hsm-backoffice-professional-standard .card h3,
.hsm-backoffice-professional-standard section h3,
.hsm-backoffice-professional-standard article h3{
  font-size:var(--hsm-office-subheading);
  line-height:1.2;
  color:#061d46;
  text-wrap:balance;
}
.hsm-backoffice-professional-standard .muted,
.hsm-backoffice-professional-standard .card p,
.hsm-backoffice-professional-standard section p{
  line-height:1.55;
}
.hsm-backoffice-professional-standard .table-wrap{
  border-radius:14px;
  border:1px solid #dbe4f2;
  box-shadow:none;
}
.hsm-backoffice-professional-standard table th{
  background:#061d46;
  color:#fff;
  letter-spacing:.07em;
  font-size:.72rem;
  white-space:nowrap;
}
.hsm-backoffice-professional-standard table td{
  font-size:.94rem;
  color:#1f2d42;
}
.hsm-backoffice-professional-standard .form-grid input,
.hsm-backoffice-professional-standard .form-grid select,
.hsm-backoffice-professional-standard .form-grid textarea,
.hsm-backoffice-professional-standard .hsm-professional-form input,
.hsm-backoffice-professional-standard .hsm-professional-form select,
.hsm-backoffice-professional-standard .hsm-professional-form textarea{
  min-height:46px;
  border-radius:12px;
  border-color:#d5dfef;
  background:#fff;
}
.hsm-backoffice-professional-standard .hsm-section-kicker,
.hsm-backoffice-professional-standard .official-badge,
.hsm-backoffice-professional-standard .resource-kicker{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  color:#a36f09;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:900;
  margin-bottom:.35rem;
}
.hsm-backoffice-professional-standard .hsm-section-kicker:before,
.hsm-backoffice-professional-standard .official-badge:before{
  content:"";
  width:24px;
  height:2px;
  background:#c7952f;
  border-radius:99px;
}
.hsm-backoffice-professional-standard img[src*="hsm-official-seal"],
.hsm-backoffice-professional-standard img[src*="seal"]{
  object-fit:contain;
}
/* Keep report seals and office seals out of normal page headers. */
.hsm-backoffice-professional-standard .hsm-admin-top img[src*="seal"],
.hsm-backoffice-professional-standard .hsm-finance-office-header img[src*="seal"]{
  display:none!important;
}
/* Finance office/reporting system must look like a control system, while reports print like documents. */
.hsm-finance-office-system{
  padding:1.25rem!important;
}
.hsm-finance-office-header{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:1rem;
  align-items:center;
  border-bottom:1px solid rgba(199,149,47,.35);
  padding-bottom:1rem;
  margin-bottom:1rem;
}
.hsm-finance-office-mark img{
  width:82px!important;
  max-width:82px!important;
  border-radius:14px!important;
}
.hsm-finance-office-copy h2{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(24px,2.2vw,34px)!important;
  line-height:1.05!important;
  margin:0 .0 .35rem!important;
  white-space:normal;
}
.hsm-finance-control-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:.9rem;
  align-items:end;
}
.hsm-finance-control-actions{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;}
.hsm-finance-report-document-v4{
  background:#fff;
  border:1px solid #c7952f;
  border-radius:0;
  padding:1.1rem 1.2rem;
  margin:1rem 0 2rem;
  box-shadow:0 12px 28px rgba(6,27,70,.08);
}
.hsm-report-doc-header-v4{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.65fr);
  gap:1rem;
  align-items:start;
  border-bottom:3px double #c7952f;
  padding-bottom:.8rem;
  margin-bottom:1rem;
}
.hsm-report-doc-brand-v4{
  display:grid!important;
  grid-template-columns:86px minmax(0,1fr)!important;
  gap:.85rem!important;
  align-items:center!important;
}
.hsm-report-doc-brand-v4 img{
  width:74px!important;
  max-width:74px!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.hsm-report-doc-brand-v4 p{font-size:.72rem!important;letter-spacing:.15em!important;margin:0 0 .15rem!important;color:#a36f09!important;font-weight:900!important;}
.hsm-report-doc-brand-v4 h1{
  font-size:clamp(20px,1.75vw,28px)!important;
  line-height:1.1!important;
  margin:0!important;
  letter-spacing:-.01em!important;
  text-wrap:balance!important;
  color:#061d46!important;
}
.hsm-report-doc-brand-v4 span{font-size:.8rem!important;letter-spacing:.05em!important;color:#44546a!important;text-transform:none!important;}
.hsm-report-doc-meta-v4{border-collapse:collapse;width:100%;font-size:.86rem;}
.hsm-report-doc-meta-v4 th{background:#f5f0e6!important;color:#7d5509!important;text-align:left;width:36%;padding:.42rem .55rem;border:1px solid #e5d4af;white-space:nowrap;}
.hsm-report-doc-meta-v4 td{padding:.42rem .55rem;border:1px solid #e5d4af;color:#061d46;font-weight:700;}
.hsm-report-doc-section-v4{border:0!important;box-shadow:none!important;border-radius:0!important;background:#fff!important;padding:.4rem 0 .9rem!important;margin:0 0 .8rem!important;break-inside:avoid;}
.hsm-report-doc-section-v4 h2{font-size:1.08rem!important;border-bottom:1px solid #d6a235;padding-bottom:.25rem;margin:0 0 .45rem!important;color:#061d46;}
.hsm-report-doc-section-v4 p{font-size:.9rem;margin:.2rem 0 .55rem;color:#334155;}
.hsm-report-doc-table-v4 th,.hsm-report-summary-v4 th{background:#061d46!important;color:#fff!important;border:1px solid #061d46!important;font-size:.7rem!important;padding:.45rem!important;}
.hsm-report-doc-table-v4 td,.hsm-report-summary-v4 td{border:1px solid #dfe6f1!important;padding:.48rem!important;font-size:.84rem!important;}
.hsm-report-certification-v4{border-top:2px solid #c7952f!important;margin-top:1rem!important;padding-top:.9rem!important;text-align:center!important;break-inside:avoid!important;}
.hsm-report-cert-seal-v4 img{width:78px!important;height:78px!important;max-width:78px!important;}
.hsm-report-signatures-v4{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem;text-align:left;}
.hsm-report-signatures-v4 .signature-line{border-top:2px solid #061d46;padding-top:.35rem;min-height:54px;}
.hsm-report-signatures-v4 strong{display:block;color:#a36f09;font-size:.72rem;letter-spacing:.11em;text-transform:uppercase;}
.hsm-report-signatures-v4 span{display:block;color:#061d46;font-weight:800;font-size:.9rem;}
@media(max-width:980px){
  .hsm-backoffice-professional-standard .hsm-admin-top{display:block;}
  .hsm-backoffice-professional-standard .hsm-top-actions{margin-top:1rem;}
  .hsm-finance-control-form{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hsm-report-doc-header-v4{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .hsm-backoffice-professional-standard .card,
  .hsm-backoffice-professional-standard .hsm-admin-main > section:not(.hsm-finance-report-document-v4),
  .hsm-backoffice-professional-standard .hsm-admin-main > article:not(.hsm-finance-report-document-v4){padding:1rem;}
  .hsm-finance-office-header,.hsm-report-doc-brand-v4{grid-template-columns:1fr!important;}
  .hsm-finance-control-form{grid-template-columns:1fr;}
  .hsm-report-signatures-v4{grid-template-columns:1fr;}
}
@media print{
  @page{size:letter;margin:.45in;}
  .hsm-admin-side,.hsm-admin-top,.hsm-finance-office-system,.hsm-top-actions,.hsm-admin-nav,.no-print,.admin-side,.admin-top{display:none!important;}
  body.hsm-admin-body{background:#fff!important;}
  .hsm-admin-main,.hsm-backoffice-professional-standard .hsm-admin-main{max-width:none!important;margin:0!important;padding:0!important;}
  .hsm-finance-report-document-v4{border:0!important;box-shadow:none!important;margin:0!important;padding:0!important;width:100%!important;}
  .hsm-report-doc-header-v4{grid-template-columns:1.25fr .75fr!important;gap:.16in!important;border-bottom:1.5pt solid #c7952f!important;padding-bottom:.12in!important;margin-bottom:.14in!important;}
  .hsm-report-doc-brand-v4{grid-template-columns:.68in minmax(0,1fr)!important;gap:.12in!important;}
  .hsm-report-doc-brand-v4 img{width:.62in!important;max-width:.62in!important;height:auto!important;}
  .hsm-report-doc-brand-v4 p{font-size:7.5pt!important;margin:0 0 2pt!important;}
  .hsm-report-doc-brand-v4 h1{font-size:15pt!important;line-height:1.08!important;margin:0!important;}
  .hsm-report-doc-brand-v4 span{font-size:8.5pt!important;}
  .hsm-report-doc-meta-v4 th,.hsm-report-doc-meta-v4 td{font-size:7.8pt!important;padding:3pt 4pt!important;}
  .hsm-report-doc-section-v4{padding:0 0 .1in!important;margin:0 0 .11in!important;}
  .hsm-report-doc-section-v4 h2{font-size:11pt!important;margin:0 0 .05in!important;}
  .hsm-report-doc-section-v4 p{font-size:8.5pt!important;margin:0 0 .05in!important;}
  .hsm-report-doc-table-v4 th,.hsm-report-summary-v4 th{font-size:7.4pt!important;padding:3pt!important;}
  .hsm-report-doc-table-v4 td,.hsm-report-summary-v4 td{font-size:8pt!important;padding:3pt!important;}
  .hsm-report-certification-v4{margin-top:.13in!important;padding-top:.1in!important;}
  .hsm-report-certification-v4 h2{font-size:10pt!important;margin:0 0 .05in!important;}
  .hsm-report-certification-v4 p{font-size:8pt!important;line-height:1.35!important;}
  .hsm-report-cert-seal-v4 img{width:.56in!important;height:.56in!important;}
  .hsm-report-signatures-v4{gap:.15in!important;margin-top:.12in!important;grid-template-columns:repeat(3,1fr)!important;}
  .hsm-report-signatures-v4 .signature-line{min-height:.45in!important;}
  .hsm-report-signatures-v4 strong{font-size:7pt!important;}
  .hsm-report-signatures-v4 span{font-size:8.2pt!important;}
}

/* HSM 3.7.7 Employee Dashboard visibility and professional back-office hero correction */
.hsm-backoffice-professional-standard .hsm-employee-command{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)!important;
  gap:1.25rem!important;
  align-items:stretch!important;
  background:linear-gradient(135deg,#061d46 0%,#0b3470 62%,#d6a235 125%)!important;
  color:#fff!important;
  border:1px solid rgba(214,162,53,.65)!important;
  border-radius:24px!important;
  padding:1.65rem!important;
  margin:0 0 1.25rem!important;
  box-shadow:0 20px 46px rgba(6,27,70,.18)!important;
  overflow:hidden!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 12% 14%,rgba(255,255,255,.16),transparent 27%),radial-gradient(circle at 92% 0,rgba(255,225,140,.18),transparent 34%);
  pointer-events:none;
}
.hsm-backoffice-professional-standard .hsm-employee-command > *{position:relative;z-index:1;}
.hsm-backoffice-professional-standard .command-brand-panel{
  min-width:0!important;
}
.hsm-backoffice-professional-standard .command-brand-panel img{
  width:104px!important;
  max-width:104px!important;
  height:auto!important;
  display:block!important;
  margin:0 0 .7rem!important;
  padding:0!important;
  object-fit:contain!important;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))!important;
  opacity:1!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command .command-kicker{
  display:inline-flex!important;
  align-items:center!important;
  gap:.45rem!important;
  color:#ffe7a3!important;
  font-size:.74rem!important;
  line-height:1.15!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
  font-weight:900!important;
  margin:0 0 .45rem!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command .command-kicker:before{
  content:"";
  width:28px;
  height:2px;
  background:#d6a235;
  border-radius:999px;
}
.hsm-backoffice-professional-standard .hsm-employee-command h1{
  color:#fff!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(2rem,3.2vw,3.2rem)!important;
  line-height:1.04!important;
  letter-spacing:-.025em!important;
  margin:0 0 .65rem!important;
  max-width:900px!important;
  text-wrap:balance!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command p{
  color:#eef5ff!important;
  font-size:1rem!important;
  line-height:1.55!important;
  max-width:760px!important;
  margin:0!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .command-status-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:.75rem!important;
  align-content:start!important;
}
.hsm-backoffice-professional-standard .command-status-grid div,
.hsm-backoffice-professional-standard .command-status-card{
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:16px!important;
  padding:.85rem!important;
  box-shadow:none!important;
  backdrop-filter:blur(4px)!important;
  min-width:0!important;
}
.hsm-backoffice-professional-standard .command-status-grid span,
.hsm-backoffice-professional-standard .command-status-card span{
  color:#ffe7a3!important;
  font-size:.68rem!important;
  line-height:1.1!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
  font-weight:900!important;
  display:block!important;
  margin-bottom:.28rem!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .command-status-grid strong,
.hsm-backoffice-professional-standard .command-status-card strong{
  color:#fff!important;
  font-size:clamp(.94rem,1.2vw,1.1rem)!important;
  line-height:1.22!important;
  display:block!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  background:transparent!important;
}
.hsm-backoffice-professional-standard .employee-app-grid.dashboard-apps{
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;
  gap:1rem!important;
}
.hsm-backoffice-professional-standard .employee-app-grid.dashboard-apps a{
  min-height:126px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:1.15rem!important;
}
.hsm-backoffice-professional-standard .employee-app-grid.dashboard-apps strong{
  font-size:1.25rem!important;
  line-height:1.15!important;
}
.hsm-backoffice-professional-standard .employee-app-grid.dashboard-apps small{
  font-size:.92rem!important;
  line-height:1.35!important;
}
@media(max-width:980px){
  .hsm-backoffice-professional-standard .hsm-employee-command{grid-template-columns:1fr!important;padding:1.25rem!important;}
  .hsm-backoffice-professional-standard .command-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  .hsm-backoffice-professional-standard .hsm-employee-command h1{font-size:2rem!important;}
  .hsm-backoffice-professional-standard .command-status-grid{grid-template-columns:1fr!important;}
  .hsm-backoffice-professional-standard .command-brand-panel img{width:86px!important;max-width:86px!important;}
}


/* HSM 3.7.8 Employee Dashboard welcome-line standard */
.hsm-backoffice-professional-standard .hsm-employee-command h1.dashboard-welcome-title{
  display:flex!important;
  flex-direction:column!important;
  gap:.16rem!important;
  margin:0 0 .75rem!important;
  max-width:980px!important;
  background:transparent!important;
  text-wrap:auto!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command .welcome-label{
  display:block!important;
  color:#d6a235!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(1.95rem,3vw,3rem)!important;
  line-height:1!important;
  letter-spacing:-.015em!important;
  font-weight:900!important;
  background:transparent!important;
  text-shadow:0 2px 10px rgba(0,0,0,.18)!important;
}
.hsm-backoffice-professional-standard .hsm-employee-command .welcome-name{
  display:block!important;
  color:#fff!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(1.85rem,3.15vw,3.15rem)!important;
  line-height:1.03!important;
  letter-spacing:-.025em!important;
  font-weight:900!important;
  padding-left:1.15rem!important;
  background:transparent!important;
  text-shadow:0 2px 12px rgba(0,0,0,.22)!important;
}
@media(max-width:620px){
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-label{font-size:2rem!important;}
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-name{font-size:2.05rem!important;padding-left:.75rem!important;}
}


/* HSM 3.7.9 Dashboard welcome standard - readable even without body wrapper class */
.hsm-employee-command h1.dashboard-welcome-title,
.hsm-backoffice-professional-standard .hsm-employee-command h1.dashboard-welcome-title{
  display:block!important;
  margin:0 0 .78rem!important;
  max-width:980px!important;
  background:transparent!important;
  color:inherit!important;
  line-height:1.05!important;
  text-wrap:normal!important;
}
.hsm-employee-command .welcome-hard-break,
.hsm-backoffice-professional-standard .hsm-employee-command .welcome-hard-break{display:block!important;}
.hsm-employee-command .welcome-label,
.hsm-backoffice-professional-standard .hsm-employee-command .welcome-label{
  display:block!important;
  color:#d4a017!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(2rem,2.6vw,2.65rem)!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
  font-weight:900!important;
  background:transparent!important;
  text-shadow:0 2px 10px rgba(0,0,0,.22)!important;
}
.hsm-employee-command .welcome-name,
.hsm-backoffice-professional-standard .hsm-employee-command .welcome-name{
  display:block!important;
  color:#ffffff!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(2.05rem,3.05vw,3.05rem)!important;
  line-height:1.02!important;
  letter-spacing:-.02em!important;
  font-weight:900!important;
  padding-left:1.35rem!important;
  margin-top:.12rem!important;
  background:transparent!important;
  text-shadow:0 2px 12px rgba(0,0,0,.24)!important;
  white-space:nowrap!important;
}
@media(max-width:900px){
  .hsm-employee-command .welcome-name,
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-name{white-space:normal!important;font-size:2.35rem!important;padding-left:.9rem!important;}
  .hsm-employee-command .welcome-label,
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-label{font-size:2.1rem!important;}
}
@media(max-width:620px){
  .hsm-employee-command .welcome-name,
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-name{font-size:2rem!important;padding-left:.65rem!important;}
  .hsm-employee-command .welcome-label,
  .hsm-backoffice-professional-standard .hsm-employee-command .welcome-label{font-size:1.85rem!important;}
}

/* HSM 3.8.0 - readable top action buttons and webmail message formatting */
.hsm-top-actions .hsm-top-btn,
.hsm-admin-top .hsm-top-btn,
a.hsm-top-btn:link,
a.hsm-top-btn:visited{
  color:#ffffff!important;
  background:linear-gradient(135deg,#0b3f88,#061b46)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  text-shadow:none!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
.hsm-top-actions .hsm-top-btn:hover,
.hsm-admin-top .hsm-top-btn:hover{
  color:#ffffff!important;
  background:linear-gradient(135deg,#0e4c9e,#08265d)!important;
}
.hsm-mail-body{
  white-space:pre-wrap;
  line-height:1.65;
  word-break:normal;
  overflow-wrap:anywhere;
  color:#061d46;
  font-size:1rem;
}
.hsm-mail-message-card{overflow:hidden;}


/* HSM Professional Communications Standard 3.8.1 */
.staff-top-actions .lux-btn,.staff-top-actions a,.staff-header .lux-btn,.admin-top-actions .lux-btn{color:#ffffff!important;text-shadow:none!important;font-weight:900!important;letter-spacing:.01em!important;}
.hsm-mail-app{grid-template-columns:250px minmax(320px,.9fr) minmax(520px,1.45fr)!important;}
.hsm-mail-message-card{background:#ffffff!important;}
.hsm-mail-message-head small{display:inline-block;color:#a67612!important;letter-spacing:.16em;text-transform:uppercase;font-weight:900;margin-bottom:4px;}
.hsm-mail-message-head h2{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(24px,2.2vw,34px)!important;line-height:1.12!important;color:#061d46!important;margin:.15rem 0 .45rem!important;}
.hsm-mail-body-pro{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.72!important;color:#061d46!important;background:#ffffff!important;border:1px solid #d9e2ef!important;border-left:5px solid #d6a235!important;border-radius:16px!important;padding:20px 22px!important;white-space:pre-wrap!important;word-break:normal!important;overflow-wrap:anywhere!important;}
.hsm-mail-body-pro::first-line{font-weight:700;}
.hsm-compose-pro textarea{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.55!important;min-height:210px!important;background:#fff!important;}
.hsm-signature-preview{background:#ffffff!important;border:1px solid #d6a235!important;border-radius:16px!important;box-shadow:0 8px 18px rgba(6,29,70,.06)!important;}
.hsm-letter-center .section-heading-row h2{font-size:clamp(30px,3vw,44px)!important;white-space:nowrap!important;}
.hsm-letter-layout{grid-template-columns:260px minmax(420px,1fr) minmax(460px,.95fr)!important;gap:18px!important;align-items:start!important;}
.hsm-letter-template-panel,.hsm-letter-editor,.hsm-letter-preview{background:#ffffff!important;border:1px solid rgba(214,162,53,.45)!important;border-radius:22px!important;box-shadow:0 14px 28px rgba(6,29,70,.08)!important;}
.hsm-letter-preview{min-width:0!important;overflow:hidden!important;}
.hsm-letter-preview h3{margin:.25rem 0 .8rem!important;color:#061d46!important;font-family:Georgia,'Times New Roman',serif!important;font-size:1.35rem!important;}
.preview-sheet{max-height:760px!important;overflow:auto!important;background:#f1f4f8!important;border-radius:16px!important;padding:16px!important;border:1px solid #e1e7f1!important;}
.preview-sheet .hsm-document-page{width:100%!important;max-width:720px!important;min-width:0!important;margin:0 auto!important;padding:34px 38px!important;box-shadow:0 10px 26px rgba(6,29,70,.12)!important;border:1px solid #e4dac4!important;border-radius:8px!important;}
.preview-sheet .hsm-standard-letterhead{grid-template-columns:88px minmax(0,1fr) 88px!important;gap:14px!important;padding:0 0 12px!important;border-bottom:2px solid #d6a235!important;margin-bottom:18px!important;}
.preview-sheet .hsm-standard-letterhead .doc-logo-lockup,.preview-sheet .hsm-standard-letterhead .doc-seal-lockup{width:88px!important;min-width:88px!important;height:auto!important;}
.preview-sheet .hsm-standard-letterhead .doc-logo-lockup img{width:76px!important;max-width:76px!important;height:auto!important;}
.preview-sheet .hsm-standard-letterhead .doc-seal-lockup img{width:70px!important;max-width:70px!important;height:auto!important;}
.preview-sheet .hsm-standard-letterhead .doc-brand-copy h1{font-size:26px!important;line-height:1.02!important;letter-spacing:.04em!important;}
.preview-sheet .hsm-standard-letterhead .doc-label{font-size:9px!important;letter-spacing:.16em!important;margin-bottom:4px!important;}
.preview-sheet .hsm-standard-letterhead .doc-tagline,.preview-sheet .hsm-standard-letterhead .doc-contact,.preview-sheet .hsm-standard-letterhead .doc-church-line{font-size:10px!important;line-height:1.25!important;letter-spacing:.1em!important;}
.preview-sheet .letter-subject{font-size:22px!important;line-height:1.22!important;}
.preview-sheet .letter-body{font-size:14px!important;line-height:1.65!important;}
@media(max-width:1280px){.hsm-letter-layout{grid-template-columns:1fr!important}.hsm-letter-preview{overflow:visible!important}.hsm-mail-app{grid-template-columns:1fr!important}.hsm-mail-thread{grid-template-columns:1fr!important}.hsm-mail-reader-pane{min-height:520px!important}}
@media print{.hsm-mail-body-pro{border:0!important;border-left:0!important;padding:0!important}.preview-sheet .hsm-document-page{box-shadow:none!important;border:0!important;max-width:100%!important;padding:24px 36px!important}.preview-sheet .hsm-standard-letterhead{grid-template-columns:110px minmax(0,1fr) 110px!important}.preview-sheet .hsm-standard-letterhead .doc-logo-lockup img{width:96px!important}.preview-sheet .hsm-standard-letterhead .doc-seal-lockup img{width:90px!important}.preview-sheet .hsm-standard-letterhead .doc-brand-copy h1{font-size:32px!important}}


/* HSM 3.8.2 - formal receipt and document letterhead containment */
.doc-shell{background:#f6f3eb!important;padding:24px 14px!important;}
.document.receipt-document,.receipt-document,.statement-document{
  max-width:820px!important;
  margin:0 auto 28px!important;
  padding:38px 42px 34px!important;
  border:1px solid #d6a235!important;
  border-radius:0!important;
  box-shadow:0 12px 30px rgba(6,27,70,.08)!important;
  overflow:visible!important;
  color:#071f49!important;
}
.doc-letterhead.hsm-standard-letterhead,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  align-items:center!important;
  gap:20px!important;
  min-height:auto!important;
  padding:0 0 18px!important;
  margin:0 0 22px!important;
  border:0!important;
  border-bottom:2px solid #d6a235!important;
  background:transparent!important;
  text-align:left!important;
  overflow:visible!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup{
  width:82px!important;height:82px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup img{
  width:82px!important;max-width:82px!important;height:auto!important;object-fit:contain!important;display:block!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-brand-copy,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead .doc-brand-copy{
  min-width:0!important;text-align:left!important;display:block!important;overflow:visible!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-brand-copy h1,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead .doc-brand-copy h1{
  margin:2px 0 4px!important;font-size:30px!important;line-height:1.05!important;letter-spacing:.02em!important;text-transform:none!important;white-space:normal!important;word-break:normal!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-label,
.doc-letterhead.ministry-record-letterhead.hsm-standard-letterhead .doc-label{
  font-size:10px!important;letter-spacing:.18em!important;line-height:1.2!important;margin:0 0 4px!important;color:#a97914!important;font-weight:800!important;text-transform:uppercase!important;
}
.doc-letterhead.hsm-standard-letterhead .doc-tagline,
.doc-letterhead.hsm-standard-letterhead .doc-contact,
.doc-letterhead.hsm-standard-letterhead .doc-church-line{margin:3px 0!important;line-height:1.25!important;white-space:normal!important;}
.doc-letterhead.hsm-standard-letterhead .doc-seal-lockup{display:none!important;}
.receipt-document .doc-title{margin:0 0 16px!important;text-align:left!important;}
.receipt-document .doc-title h2{font-size:28px!important;line-height:1.15!important;margin:0 0 3px!important;letter-spacing:.01em!important;}
.receipt-document .official-badge{display:inline-block!important;font-size:10px!important;letter-spacing:.14em!important;padding:4px 9px!important;border-radius:999px!important;background:#f8f1df!important;color:#8b650d!important;margin-bottom:6px!important;}
.receipt-document .doc-review-panel,.receipt-document .doc-meta{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important;}
.receipt-document .doc-review-panel>div,.receipt-document .doc-meta>div{border:1px solid #d9c082!important;border-radius:6px!important;padding:10px!important;min-height:auto!important;background:#fff!important;box-shadow:none!important;overflow-wrap:anywhere!important;}
.receipt-document .doc-review-panel strong,.receipt-document .doc-meta strong{display:block!important;font-size:9px!important;letter-spacing:.14em!important;color:#9a741a!important;text-transform:uppercase!important;margin-bottom:5px!important;}
.receipt-document .doc-table{width:100%!important;border-collapse:collapse!important;margin:18px 0 10px!important;font-size:13px!important;}
.receipt-document .doc-table th{background:#071f49!important;color:#fff!important;text-align:left!important;padding:8px 10px!important;font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;}
.receipt-document .doc-table td{padding:10px!important;border:1px solid #e7dcc2!important;}
.receipt-document .doc-amount{font-size:20px!important;line-height:1.2!important;text-align:right!important;margin:12px 0 18px!important;font-weight:800!important;}
.receipt-document .doc-note{font-size:13px!important;line-height:1.45!important;margin:0 0 28px!important;border-left:4px solid #d6a235!important;padding:10px 12px!important;background:#fffaf0!important;}
.receipt-document .signature-row{display:grid!important;grid-template-columns:1fr 150px!important;gap:26px!important;align-items:end!important;margin-top:26px!important;page-break-inside:avoid!important;}
.receipt-document .signature-line{border-top:1.5px solid #071f49!important;text-align:center!important;padding-top:8px!important;font-size:11px!important;color:#243b5f!important;}
.receipt-document .signature-seal{text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;color:#243b5f!important;font-size:10px!important;}
.receipt-document .signature-seal img{width:78px!important;max-width:78px!important;height:auto!important;display:block!important;object-fit:contain!important;}
.receipt-document .doc-footer-note{margin-top:22px!important;border-top:1px solid #d6a235!important;padding-top:10px!important;text-align:center!important;font-size:10px!important;color:#5b6778!important;white-space:normal!important;}
@media(max-width:820px){
  .document.receipt-document,.receipt-document,.statement-document{padding:28px 18px!important;}
  .doc-letterhead.hsm-standard-letterhead{grid-template-columns:72px minmax(0,1fr)!important;gap:14px!important;}
  .doc-letterhead.hsm-standard-letterhead .doc-logo-lockup,.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img{width:64px!important;max-width:64px!important;height:auto!important;}
  .doc-letterhead.hsm-standard-letterhead .doc-brand-copy h1{font-size:24px!important;}
  .receipt-document .doc-review-panel,.receipt-document .doc-meta{grid-template-columns:1fr!important;}
  .receipt-document .signature-row{grid-template-columns:1fr!important;}
}
@media print{
  @page{margin:.55in!important;}
  .doc-shell{padding:0!important;background:#fff!important;}
  .document.receipt-document,.receipt-document,.statement-document{max-width:100%!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;page-break-inside:auto!important;}
  .doc-letterhead.hsm-standard-letterhead{grid-template-columns:78px minmax(0,1fr)!important;gap:16px!important;padding:0 0 12px!important;margin:0 0 18px!important;border-bottom:1.5px solid #d6a235!important;}
  .doc-letterhead.hsm-standard-letterhead .doc-logo-lockup,.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img{width:68px!important;max-width:68px!important;}
  .doc-letterhead.hsm-standard-letterhead .doc-brand-copy h1{font-size:25px!important;line-height:1.05!important;}
  .receipt-document .doc-title h2{font-size:22px!important;}
  .receipt-document .doc-review-panel,.receipt-document .doc-meta{grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin:12px 0!important;}
  .receipt-document .doc-review-panel>div,.receipt-document .doc-meta>div{padding:7px!important;}
  .receipt-document .doc-table{font-size:11px!important;margin:12px 0 8px!important;}
  .receipt-document .doc-table th{padding:6px 8px!important;}
  .receipt-document .doc-table td{padding:7px 8px!important;}
  .receipt-document .doc-amount{font-size:16px!important;margin:8px 0 12px!important;}
  .receipt-document .doc-note{font-size:10.5px!important;line-height:1.35!important;margin-bottom:20px!important;padding:7px 9px!important;}
  .receipt-document .signature-row{margin-top:18px!important;grid-template-columns:1fr 120px!important;gap:20px!important;}
  .receipt-document .signature-seal img{width:56px!important;max-width:56px!important;}
  .receipt-document .doc-footer-note{font-size:8.5px!important;margin-top:14px!important;padding-top:8px!important;}
}


/* HSM 3.8.3 Letter + Email editable document workspace */
.hsm-letter-center .section-heading-row h2{font-size:clamp(30px,3.2vw,46px)!important;line-height:1.05!important;}
.hsm-letter-layout{grid-template-columns:minmax(230px,.7fr) minmax(520px,1.3fr) minmax(340px,.9fr)!important;gap:18px!important;}
.hsm-word-workspace,.hsm-letter-template-panel,.hsm-letter-preview{overflow:visible!important;}
.hsm-word-editor-wrap{border:1px solid #d9e2ef;border-radius:18px;background:#f8fafc;padding:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.hsm-word-toolbar{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #d8e1ef;background:#fff;border-radius:14px;padding:8px;margin-bottom:12px;position:sticky;top:0;z-index:2;box-shadow:0 8px 22px rgba(6,27,70,.06);}
.hsm-word-toolbar button{border:1px solid #d8e1ef;background:#fff;color:#061b46;border-radius:10px;padding:7px 11px;font-weight:900;cursor:pointer;min-height:34px;line-height:1;}
.hsm-word-toolbar button:hover{background:#061b46;color:#fff;border-color:#061b46;}
.hsm-word-page{width:100%;min-height:420px;background:#fff;border:1px solid #d8e1ef;border-radius:12px;padding:28px 32px;color:#061b46;font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.7;box-shadow:0 12px 34px rgba(6,27,70,.08);outline:none;overflow-wrap:anywhere;white-space:normal;}
.hsm-email-page{min-height:260px;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.62;}
.hsm-word-page:focus{border-color:#d6a235;box-shadow:0 0 0 4px rgba(214,162,53,.14),0 12px 34px rgba(6,27,70,.08);}
.hsm-word-page[data-placeholder]:empty:before{content:attr(data-placeholder);color:#718096;}
.hsm-editor-label{display:block;font-weight:900;color:#061b46;margin:0 0 8px;}
.preview-sheet{max-height:72vh!important;overflow:auto!important;background:#eef2f7!important;border-radius:18px!important;padding:18px!important;}
.preview-sheet .hsm-document-page{transform:none!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:26px 28px!important;border-radius:14px!important;box-shadow:0 12px 28px rgba(6,27,70,.08)!important;}
.hsm-letter-document{font-size:15px!important;line-height:1.65!important;}
.hsm-letter-document .hsm-standard-letterhead{grid-template-columns:96px minmax(0,1fr)!important;gap:18px!important;min-height:auto!important;text-align:left!important;padding:10px 0 18px!important;margin-bottom:18px!important;}
.hsm-letter-document .doc-logo-lockup{width:96px!important;min-width:96px!important;justify-content:flex-start!important;}
.hsm-letter-document .doc-logo-lockup img{width:88px!important;max-width:88px!important;}
.hsm-letter-document .doc-brand-copy{text-align:left!important;max-width:none!important;margin:0!important;}
.hsm-letter-document .doc-brand-copy h1{font-size:31px!important;line-height:1!important;white-space:normal!important;text-align:left!important;letter-spacing:.06em!important;}
.hsm-letter-document .doc-label,.hsm-letter-document .doc-tagline,.hsm-letter-document .doc-contact,.hsm-letter-document .doc-church-line{text-align:left!important;margin-left:0!important;margin-right:0!important;}
.letter-subject{font-size:1.35rem!important;line-height:1.22!important;margin:14px 0!important;}
.letter-body{font-size:15.5px!important;line-height:1.72!important;}
.hsm-compose-pro .hsm-signature-preview{border:1px solid #d8e1ef;border-radius:16px;background:#fff;padding:14px;}
@media(max-width:1280px){.hsm-letter-layout{grid-template-columns:1fr!important}.preview-sheet{max-height:520px!important}.hsm-word-page{min-height:340px!important}}
@media print{
  @page{size:letter;margin:.55in;}
  html,body{background:#fff!important;}
  .staff-shell,.staff-sidebar,.hsm-admin-sidebar,.hsm-admin-top,.site-header,.no-print,.lux-btn,.mini-btn,.hsm-top-actions,.admin-header,.hsm-letter-template-panel,.hsm-letter-editor,.hsm-letter-center > .section-heading-row,.hsm-letter-center > .muted,.hsm-letter-preview h3{display:none!important;}
  .hsm-letter-center,.card,.hsm-pro-card,.section{border:0!important;box-shadow:none!important;background:#fff!important;padding:0!important;margin:0!important;width:100%!important;max-width:100%!important;}
  .hsm-letter-layout,.hsm-letter-preview,.preview-sheet{display:block!important;border:0!important;box-shadow:none!important;background:#fff!important;padding:0!important;margin:0!important;width:100%!important;max-width:100%!important;overflow:visible!important;}
  .preview-sheet .hsm-document-page,.hsm-document-page.hsm-letter-document{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#061b46!important;}
  .hsm-letter-document .hsm-standard-letterhead{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;padding:0 0 16px!important;border-bottom:2px solid #d6a235!important;margin-bottom:18px!important;}
  .hsm-letter-document .doc-logo-lockup{width:90px!important;min-width:90px!important;}
  .hsm-letter-document .doc-logo-lockup img{width:82px!important;max-width:82px!important;}
  .hsm-letter-document .doc-brand-copy h1{font-size:28px!important;line-height:1!important;letter-spacing:.05em!important;text-align:left!important;}
  .hsm-letter-document .doc-label{font-size:9px!important;letter-spacing:.18em!important;}
  .hsm-letter-document .doc-tagline{font-size:9px!important;letter-spacing:.2em!important;margin:6px 0!important;}
  .hsm-letter-document .doc-contact,.hsm-letter-document .doc-church-line{font-size:11px!important;line-height:1.25!important;}
  .doc-rule{display:none!important;}
  .letter-subject{font-size:18px!important;line-height:1.25!important;margin:16px 0 10px!important;}
  .letter-body{font-size:12.5px!important;line-height:1.55!important;margin:10px 0 18px!important;}
  .letter-recipient,.doc-date,.letter-signature{font-size:12.5px!important;line-height:1.45!important;}
  .doc-footer-note{font-size:9.5px!important;border-top:1px solid #d6a235!important;margin-top:18px!important;padding-top:8px!important;color:#5c6880!important;}
}


/* HSM 3.8.4 - full webmail, document workspace, and professional message formatting */
.employee-app-grid.dashboard-apps a[target="_blank"] small::after{content:" · opens in new window";font-weight:700;color:inherit;opacity:.82;}
.hsm-mail-app.hsm-mail-full-view{grid-template-columns:280px minmax(0,1fr);max-width:1280px;margin-inline:auto;}
.hsm-mail-app.hsm-mail-full-view .hsm-mail-list-pane{display:none;}
.hsm-mail-app.hsm-mail-full-view .hsm-mail-reader-pane{min-height:72vh;}
.hsm-mail-head-actions{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.hsm-mail-thread{cursor:pointer;}
.hsm-mail-thread:focus,.hsm-mail-thread:hover{outline:2px solid rgba(214,162,53,.38);outline-offset:-2px;background:#f7fbff;}
.hsm-mail-body-pro{font-family:Arial,Helvetica,sans-serif;font-size:1rem;line-height:1.7;color:#061d46;white-space:normal;overflow-wrap:anywhere;}
.hsm-mail-readable-body{max-width:850px;margin:0 auto;background:#fff;border:1px solid rgba(214,162,53,.34);border-radius:22px;padding:1.35rem 1.55rem;box-shadow:0 18px 46px rgba(6,29,70,.08);}
.hsm-mail-readable-body h3{font-family:Georgia,'Times New Roman',serif;font-size:1.25rem;line-height:1.22;color:#061d46;margin:.3rem 0 .7rem;}
.hsm-mail-readable-body p{margin:.55rem 0;color:#1e3359;}
.hsm-mail-detail-list{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:0;border:1px solid #d9e2f1;border-radius:16px;overflow:hidden;margin:1rem 0;background:#fff;}
.hsm-mail-detail-list dt,.hsm-mail-detail-list dd{padding:.75rem .85rem;border-bottom:1px solid #e8eef7;margin:0;}
.hsm-mail-detail-list dt{font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem;color:#9a6b0f;background:#fff9e8;}
.hsm-mail-detail-list dd{font-weight:700;color:#061d46;background:#fff;}
.hsm-mail-detail-list dt:last-of-type,.hsm-mail-detail-list dd:last-of-type{border-bottom:0;}
.hsm-mail-empty{padding:1rem;border:1px solid #d9e2f1;border-radius:14px;background:#fff;color:#43536f;}
.hsm-mail-compose-panel .hsm-word-page,.hsm-email-page{min-height:260px;max-height:560px;overflow:auto;background:#fff;color:#061d46;border:1px solid #d9e2f1;}
.hsm-mail-compose-panel .hsm-word-toolbar button{color:#061d46;background:#fff;border:1px solid #d9e2f1;}
.hsm-mail-compose-panel .hsm-word-toolbar button:hover{background:#061d46;color:#fff;}
@media (max-width:900px){.hsm-mail-app.hsm-mail-full-view{grid-template-columns:1fr}.hsm-mail-app.hsm-mail-full-view .hsm-mail-rail{position:relative}.hsm-mail-detail-list{grid-template-columns:1fr}.hsm-mail-detail-list dt{border-bottom:0}.hsm-mail-detail-list dd{border-bottom:1px solid #e8eef7}}


/* HSM 3.8.5 full workspace mode: open selected staff tools without the left panel */
.hsm-full-workspace .admin-layout,
.hsm-full-workspace.hsm-admin-body .admin-layout{
  display:block !important;
  grid-template-columns:1fr !important;
  width:100% !important;
}
.hsm-full-workspace .admin-side{display:none !important;}
.hsm-full-workspace .hsm-admin-main,
.hsm-full-workspace .admin-main{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:26px 32px 48px !important;
}
.hsm-full-workspace .hsm-admin-top{
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.hsm-full-workspace .hsm-top-btn,
.hsm-full-workspace .lux-btn,
.hsm-full-workspace .mini-btn{
  color:#fff !important;
  text-shadow:none !important;
}
.hsm-full-workspace .hsm-workspace-back{background:#9b6b00 !important;}
.hsm-full-workspace .hsm-mail-app{
  width:100% !important;
  max-width:none !important;
  min-height:calc(100vh - 245px);
  grid-template-columns:260px minmax(340px,450px) minmax(520px,1fr) !important;
}
.hsm-full-workspace .hsm-mail-reader-pane,
.hsm-full-workspace .hsm-mail-list-pane{
  min-width:0 !important;
}
.hsm-full-workspace .hsm-mail-message-card{
  max-width:none !important;
}
.hsm-full-workspace .hsm-letter-workspace,
.hsm-full-workspace .document-list,
.hsm-full-workspace .document-studio-form,
.hsm-full-workspace .section{
  max-width:none !important;
}
@media(max-width:980px){
  .hsm-full-workspace .hsm-admin-main,.hsm-full-workspace .admin-main{padding:16px !important;}
  .hsm-full-workspace .hsm-mail-app{grid-template-columns:1fr !important;}
}
@media print{
  .hsm-full-workspace .hsm-admin-top,
  .hsm-full-workspace .no-print,
  .hsm-full-workspace .hsm-mail-rail,
  .hsm-full-workspace .hsm-mail-list-pane{display:none !important;}
  .hsm-full-workspace .hsm-admin-main{padding:0 !important;}
}

/* HSM 3.8.6 true full-app workspace mode: app tools open without the left back-office panel */
.hsm-full-workspace.hsm-admin-body{
  background:#f7f3ea !important;
  overflow-x:hidden;
}
.hsm-full-workspace .hsm-admin-shell,
.hsm-full-workspace .admin-layout{
  display:block !important;
  min-height:100vh;
}
.hsm-full-workspace .admin-side,
.hsm-full-workspace .hsm-admin-side{
  display:none !important;
  width:0 !important;
  min-width:0 !important;
}
.hsm-full-workspace .hsm-backoffice-main-standard,
.hsm-full-workspace .hsm-admin-main,
.hsm-full-workspace .admin-main{
  width:100vw !important;
  max-width:none !important;
  margin:0 !important;
  padding:18px 24px 36px !important;
}
.hsm-full-workspace .hsm-admin-top{
  max-width:none !important;
  margin:0 0 18px !important;
  padding:16px 20px !important;
  border-radius:22px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
}
.hsm-full-workspace .hsm-admin-top h1{
  font-size:clamp(1.7rem,2.4vw,2.7rem) !important;
  line-height:1.05 !important;
  margin:0 !important;
  white-space:nowrap;
}
.hsm-full-workspace .hsm-page-kicker{
  font-size:.78rem !important;
  letter-spacing:.18em !important;
  margin:0 0 4px !important;
}
.hsm-full-workspace .hsm-top-actions{
  flex-wrap:nowrap !important;
  align-items:center !important;
}
.hsm-full-workspace .hsm-top-btn{
  min-height:42px !important;
  padding:.72rem 1.05rem !important;
  white-space:nowrap !important;
}
.hsm-full-workspace .hsm-staff-chip{
  max-width:260px !important;
}
.hsm-full-workspace .hsm-mail-app,
.hsm-full-workspace .hsm-letter-workspace,
.hsm-full-workspace .document-list,
.hsm-full-workspace .document-studio-form,
.hsm-full-workspace .section,
.hsm-full-workspace .card{
  width:100% !important;
  max-width:none !important;
}
.hsm-full-workspace .hsm-mail-app{
  min-height:calc(100vh - 148px) !important;
  grid-template-columns:260px minmax(360px,460px) minmax(620px,1fr) !important;
}
.hsm-full-workspace .hsm-mail-message-card{
  max-height:calc(100vh - 250px);
  overflow:auto;
}
@media(max-width:1100px){
  .hsm-full-workspace .hsm-admin-main{padding:14px !important;}
  .hsm-full-workspace .hsm-admin-top{align-items:flex-start !important;flex-direction:column !important;}
  .hsm-full-workspace .hsm-admin-top h1{white-space:normal;}
  .hsm-full-workspace .hsm-mail-app{grid-template-columns:1fr !important;}
}


/* HSM 3.8.7 independent full-app staff tools and HTML webmail standard */
body.hsm-full-workspace .hsm-admin-side,
body.hsm-full-workspace .admin-side{display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;}
body.hsm-full-workspace .admin-layout,
body.hsm-full-workspace .hsm-admin-shell{display:block!important;grid-template-columns:1fr!important;width:100vw!important;max-width:none!important;}
body.hsm-full-workspace .admin-main,
body.hsm-full-workspace .hsm-admin-main,
body.hsm-full-workspace .hsm-app-canvas{width:100vw!important;max-width:none!important;margin:0!important;padding:16px 22px 34px!important;}
body.hsm-full-workspace .hsm-admin-top{position:sticky;top:0;z-index:20;margin:0 0 14px!important;border-radius:0 0 20px 20px!important;box-shadow:0 12px 26px rgba(6,27,70,.12)!important;}
body.hsm-full-workspace .hsm-mail-app{height:calc(100vh - 132px)!important;min-height:720px!important;grid-template-columns:260px minmax(360px,440px) minmax(620px,1fr)!important;max-width:none!important;}
body.hsm-full-workspace .hsm-mail-message-card{height:100%;max-height:none!important;overflow:auto!important;}
body.hsm-full-workspace .hsm-mail-reader-pane{overflow:hidden!important;}
.hsm-mail-html-body{font-family:Arial,Helvetica,sans-serif;color:#061d46;font-size:16px;line-height:1.65;overflow-wrap:anywhere;}
.hsm-mail-html-body table{max-width:100%!important;border-collapse:collapse;}
.hsm-mail-html-body img{max-width:100%!important;height:auto!important;}
.hsm-mail-html-body p{margin:.7rem 0;}
.hsm-mail-html-body h1,.hsm-mail-html-body h2,.hsm-mail-html-body h3{font-family:Georgia,'Times New Roman',serif;color:#061d46;line-height:1.15;margin:1rem 0 .55rem;}
.hsm-mail-readable-body h3{font-size:1.15rem!important;line-height:1.25!important;margin:.85rem 0 .4rem!important;}
.hsm-mail-detail-list{display:grid;grid-template-columns:170px minmax(0,1fr);border:1px solid #d9e2ef;border-radius:14px;overflow:hidden;background:#fff;}
.hsm-mail-detail-list dt{padding:10px 12px;background:#f6f8fc;font-weight:800;color:#9b6b00;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid #e8eef7;}
.hsm-mail-detail-list dd{margin:0;padding:10px 12px;border-bottom:1px solid #e8eef7;color:#061d46;}
.hsm-email-page:empty:before{content:attr(data-placeholder);color:#7b879b;}
@media(max-width:980px){body.hsm-full-workspace .hsm-admin-top{position:relative}body.hsm-full-workspace .hsm-mail-app{height:auto!important;grid-template-columns:1fr!important}.hsm-mail-detail-list{grid-template-columns:1fr}}


/* HSM 3.8.8 Independent full app standard: webmail, calendar, document workspaces */
.hsm-independent-app-body .hsm-admin-shell{display:block!important;min-height:100vh;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#f6f4ee;}
.hsm-independent-app-body .hsm-admin-side{display:none!important;}
.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{width:100%!important;max-width:none!important;margin:0!important;padding:18px 22px 28px!important;}
.hsm-independent-app-body .hsm-app-topbar{max-width:none!important;margin:0 0 14px!important;border-radius:18px!important;padding:14px 18px!important;}
.hsm-independent-app-body .hsm-app-topbar h1{font-size:clamp(26px,2.4vw,40px)!important;white-space:nowrap!important;line-height:1!important;}
.hsm-independent-app-body .hsm-app-topbar .hsm-page-kicker{font-size:11px!important;letter-spacing:.18em!important;}
.hsm-independent-app-body .hero-mail{display:none!important;}
.hsm-mail-app-pro.hsm-mail-workspace-full{height:calc(100vh - 136px)!important;min-height:720px!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:20px!important;grid-template-columns:260px minmax(340px,390px) minmax(560px,1fr)!important;overflow:hidden!important;}
.hsm-mail-app-pro .hsm-mail-rail{min-width:0!important;overflow:auto!important;}
.hsm-mail-app-pro .hsm-mail-list-pane{min-width:0!important;background:#f7f9fd!important;border-right:1px solid #dfe7f2!important;overflow:auto!important;}
.hsm-mail-app-pro .hsm-mail-reader-pane{min-width:0!important;overflow:auto!important;background:#fff!important;padding:18px!important;}
.hsm-mail-toolbar{position:sticky;top:0;z-index:4;background:#fff!important;border-bottom:1px solid #e3e9f5!important;padding:14px!important;display:flex!important;gap:10px!important;align-items:center!important;}
.hsm-mail-toolbar input{min-width:0!important;width:100%!important;border:1px solid #d6e0ef!important;border-radius:999px!important;padding:12px 16px!important;font-size:16px!important;}
.hsm-mail-thread-list{display:block!important;}
.hsm-mail-thread{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 10px!important;padding:14px 16px!important;border-bottom:1px solid #e6edf7!important;background:#fff!important;color:#061b46!important;text-decoration:none!important;}
.hsm-mail-thread .mail-from,.hsm-mail-thread strong{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.hsm-mail-thread small{grid-column:2;grid-row:1 / span 2;color:#667085!important;white-space:nowrap!important;}
.hsm-mail-message-card{max-width:960px!important;margin:0 auto 18px!important;border:1px solid #e0e7f2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 34px rgba(6,27,70,.08)!important;overflow:hidden!important;}
.hsm-mail-message-head{padding:18px 22px!important;border-bottom:1px solid #e5ebf4!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;}
.hsm-mail-message-head h2{font-size:clamp(22px,2vw,34px)!important;line-height:1.08!important;margin:4px 0 10px!important;max-width:650px!important;}
.hsm-mail-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:14px 22px!important;border-bottom:1px solid #e5ebf4!important;background:#fbfcff!important;}
.hsm-mail-body-pro{padding:24px!important;font-size:16px!important;line-height:1.65!important;color:#172b4d!important;overflow:auto!important;}
.hsm-mail-html-body{max-width:760px!important;margin:0 auto!important;}
.hsm-mail-readable-body p{margin:0 0 12px!important;}.hsm-mail-readable-body h3{font-size:20px!important;margin:14px 0 10px!important;}
.hsm-compose-pro{max-width:900px!important;margin:0 auto!important;grid-template-columns:1fr 1fr!important;}
.hsm-email-page{min-height:220px!important;max-height:360px!important;overflow:auto!important;font-size:16px!important;line-height:1.65!important;}
.hsm-word-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;}
.hsm-word-toolbar button{border:1px solid #d8e1ef!important;border-radius:10px!important;background:#fff!important;color:#061b46!important;padding:8px 12px!important;font-weight:800!important;}
.hsm-top-btn,.hsm-workspace-back,.hsm-signout-btn{color:#fff!important;text-shadow:none!important;}
.hsm-top-btn:visited,.hsm-workspace-back:visited,.hsm-signout-btn:visited{color:#fff!important;}
@media(max-width:1180px){.hsm-mail-app-pro.hsm-mail-workspace-full{grid-template-columns:220px minmax(280px,340px) minmax(420px,1fr)!important}.hsm-mail-message-head{display:block!important}.hsm-mail-head-actions{margin-top:12px!important}}
@media(max-width:880px){.hsm-mail-app-pro.hsm-mail-workspace-full{height:auto!important;grid-template-columns:1fr!important}.hsm-mail-rail{max-height:none!important}.hsm-compose-pro{grid-template-columns:1fr!important}}

/* Full staff calendar app */
.hsm-calendar-app{display:grid!important;grid-template-columns:250px minmax(0,1fr) 330px!important;gap:0!important;min-height:calc(100vh - 136px)!important;border:1px solid rgba(6,27,70,.12)!important;border-radius:22px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 18px 50px rgba(6,27,70,.12)!important;}
.hsm-app-side{background:linear-gradient(180deg,#061b46,#0b397a)!important;color:#fff!important;padding:18px!important;overflow:auto!important;}
.hsm-calendar-schedule{background:#f8fbff!important;color:#061b46!important;border-left:1px solid #dfe7f2!important;}
.hsm-calendar-side .hsm-mail-folders a{color:#eaf1ff!important;text-decoration:none!important;display:flex!important;border-radius:999px!important;padding:12px 14px!important;font-weight:800!important;}
.hsm-calendar-side .hsm-mail-folders a.active,.hsm-calendar-side .hsm-mail-folders a:hover{background:rgba(255,255,255,.15)!important;color:#fff!important;}
.hsm-calendar-main{padding:18px!important;overflow:auto!important;min-width:0!important;background:#fff!important;}
.hsm-calendar-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;border-bottom:1px solid #e4ebf5!important;padding-bottom:14px!important;margin-bottom:14px!important;}
.hsm-calendar-toolbar h2{font-size:clamp(24px,2vw,36px)!important;line-height:1.05!important;margin:0!important;color:#061b46!important;}
.hsm-calendar-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
.hsm-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;border:1px solid #dfe7f2!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important;}
.hsm-calendar-day-name{background:#061b46!important;color:#fff!important;font-weight:900!important;text-align:center!important;padding:10px 6px!important;font-size:13px!important;letter-spacing:.08em!important;text-transform:uppercase!important;}
.hsm-calendar-cell{min-height:112px!important;padding:10px!important;border-right:1px solid #e5ebf4!important;border-bottom:1px solid #e5ebf4!important;color:#061b46!important;text-decoration:none!important;background:#fff!important;display:block!important;}
.hsm-calendar-cell:nth-child(7n+7){border-right:0!important}.hsm-calendar-cell.outside{background:#f7f9fd!important;color:#7c8a9f!important}.hsm-calendar-cell.selected{box-shadow:inset 0 0 0 2px #d6a235!important;background:#fffaf0!important;}
.hsm-calendar-cell span{font-weight:900!important;display:block!important;margin-bottom:6px!important}.hsm-calendar-cell b{display:block!important;background:#eaf2ff!important;color:#061b46!important;border-left:3px solid #d6a235!important;border-radius:7px!important;padding:4px 6px!important;font-size:12px!important;margin:3px 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.hsm-week-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:10px!important;}.hsm-week-day{border:1px solid #dfe7f2!important;border-radius:16px!important;padding:12px!important;min-height:420px!important;background:#fff!important;}.hsm-week-day>a{display:block!important;text-decoration:none!important;color:#061b46!important;margin-bottom:12px!important;}.hsm-week-day strong{display:block!important;font-size:20px!important}.hsm-week-day span{color:#667085!important;font-weight:800!important}.hsm-event-chip{border:1px solid #e2e8f4!important;border-radius:12px!important;background:#f8fbff!important;padding:9px!important;margin:8px 0!important}.hsm-event-chip b{display:block!important;color:#061b46!important}.hsm-event-chip small{display:block!important;color:#667085!important;margin-top:3px!important}.hsm-day-view{display:grid!important;gap:12px!important}.hsm-day-event{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;border:1px solid #dfe7f2!important;border-radius:16px!important;background:#fff!important;padding:16px!important}.hsm-day-event h3{margin:2px 0 6px!important;color:#061b46!important}.hsm-day-event small{font-weight:900!important;color:#b07a18!important;letter-spacing:.08em!important;text-transform:uppercase!important}.hsm-calendar-form{display:grid!important;gap:10px!important}.hsm-calendar-form input,.hsm-calendar-form select,.hsm-calendar-form textarea{width:100%!important;box-sizing:border-box!important;}
@media(max-width:1180px){.hsm-calendar-app{grid-template-columns:220px minmax(0,1fr)!important}.hsm-calendar-schedule{grid-column:1/-1!important;border-left:0!important;border-top:1px solid #dfe7f2!important}.hsm-week-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.hsm-calendar-app{grid-template-columns:1fr!important}.hsm-month-grid{grid-template-columns:1fr!important}.hsm-calendar-day-name{display:none!important}.hsm-calendar-cell{min-height:auto!important}.hsm-week-grid{grid-template-columns:1fr!important}.hsm-calendar-toolbar{display:block!important}.hsm-calendar-actions{margin-top:12px!important}}


/* HSM 3.8.9 true full-app workspace standard: webmail, calendar, documents */
body.hsm-independent-app-body{
  overflow:hidden !important;
  background:#eef2f7 !important;
}
body.hsm-independent-app-body .hsm-admin-top.hsm-app-topbar{
  display:none !important;
}
body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{
  width:100vw !important;
  height:100vh !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  background:#eef2f7 !important;
}
body.hsm-independent-app-body .hsm-admin-shell,
body.hsm-independent-app-body .admin-layout{
  width:100vw !important;
  height:100vh !important;
  overflow:hidden !important;
  display:block !important;
  background:#eef2f7 !important;
}
body.hsm-independent-app-body .hero-mail,
body.hsm-independent-app-body .hsm-employee-command.hero-mail,
body.hsm-independent-app-body .hsm-pro-card:not(#mailApp):not(.hsm-app-keep),
body.hsm-independent-app-body > .hsm-admin-main > .card:not(#mailApp){
  display:none !important;
}
body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
body.hsm-independent-app-body .hsm-mail-app{
  width:100vw !important;
  height:100vh !important;
  min-height:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  display:grid !important;
  grid-template-columns:278px minmax(360px,430px) minmax(0,1fr) !important;
  background:#fff !important;
  overflow:hidden !important;
}
body.hsm-independent-app-body .hsm-mail-rail{
  border-radius:0 !important;
  padding:20px 18px !important;
  overflow:auto !important;
  min-width:0 !important;
}
body.hsm-independent-app-body .hsm-mail-brand{
  gap:12px !important;
  padding:4px 2px 18px !important;
  margin-bottom:10px !important;
}
body.hsm-independent-app-body .hsm-mail-brand img{
  width:48px !important;
  height:auto !important;
  flex:0 0 auto !important;
}
body.hsm-independent-app-body .hsm-mail-brand strong{
  display:block !important;
  color:#fff !important;
  font-size:20px !important;
  line-height:1.05 !important;
}
body.hsm-independent-app-body .hsm-mail-brand span{
  display:block !important;
  max-width:170px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:#dbe7ff !important;
}
body.hsm-independent-app-body .hsm-mail-compose-btn{
  min-height:54px !important;
  border-radius:18px !important;
  font-size:16px !important;
}
body.hsm-independent-app-body .hsm-mail-folders a{
  min-height:44px !important;
  padding:11px 14px !important;
  color:#fff !important;
  font-size:16px !important;
}
body.hsm-independent-app-body .hsm-mail-list-pane{
  height:100vh !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  background:#f6f8fc !important;
}
body.hsm-independent-app-body .hsm-mail-toolbar{
  flex:0 0 auto !important;
  position:relative !important;
  top:auto !important;
  padding:16px !important;
}
body.hsm-independent-app-body .hsm-mail-list-pane h2{
  flex:0 0 auto !important;
  font-size:22px !important;
  padding:16px 18px 10px !important;
  margin:0 !important;
  background:#fff !important;
  border-bottom:1px solid #e6edf7 !important;
}
body.hsm-independent-app-body .hsm-mail-thread-list{
  flex:1 1 auto !important;
  overflow:auto !important;
}
body.hsm-independent-app-body .hsm-mail-thread{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:auto auto !important;
  align-items:start !important;
  gap:3px 10px !important;
  padding:16px 18px !important;
  min-height:78px !important;
}
body.hsm-independent-app-body .hsm-mail-thread .mail-from,
body.hsm-independent-app-body .hsm-mail-thread strong{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.2 !important;
}
body.hsm-independent-app-body .hsm-mail-thread small{
  grid-column:2 !important;
  grid-row:1 / span 2 !important;
  align-self:center !important;
  max-width:120px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-size:13px !important;
  color:#667085 !important;
}
body.hsm-independent-app-body .hsm-mail-reader-pane{
  height:100vh !important;
  overflow:auto !important;
  padding:22px !important;
  background:#ffffff !important;
  min-width:0 !important;
  border-left:1px solid #e2e8f3 !important;
}
body.hsm-independent-app-body .hsm-mail-message-card{
  max-width:none !important;
  width:100% !important;
  margin:0 0 20px !important;
  border-radius:20px !important;
  box-shadow:0 10px 28px rgba(6,27,70,.08) !important;
}
body.hsm-independent-app-body .hsm-mail-message-head{
  padding:20px 24px !important;
}
body.hsm-independent-app-body .hsm-mail-message-head h2{
  max-width:none !important;
  font-size:clamp(24px,2.2vw,36px) !important;
  line-height:1.1 !important;
}
body.hsm-independent-app-body .hsm-mail-actions{
  padding:14px 24px !important;
}
body.hsm-independent-app-body .hsm-mail-body,
body.hsm-independent-app-body .hsm-mail-body-pro{
  white-space:normal !important;
  padding:24px !important;
  min-height:320px !important;
  max-height:none !important;
  overflow:auto !important;
  background:#fff !important;
  border:0 !important;
  border-top:1px solid #e6edf7 !important;
  border-radius:0 !important;
}
body.hsm-independent-app-body .hsm-mail-html-body{
  max-width:900px !important;
  margin:0 auto !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}
body.hsm-independent-app-body .hsm-mail-html-body img{
  display:block !important;
  max-width:min(100%,620px) !important;
  max-height:620px !important;
  width:auto !important;
  height:auto !important;
  margin:12px auto !important;
  object-fit:contain !important;
}
body.hsm-independent-app-body .hsm-mail-html-body table{
  width:auto !important;
  max-width:100% !important;
}
body.hsm-independent-app-body .hsm-mail-compose-panel{
  margin-top:20px !important;
  border:1px solid #e0e7f2 !important;
  border-radius:20px !important;
  background:#f8fbff !important;
  padding:22px !important;
}
body.hsm-independent-app-body .hsm-compose-pro{
  max-width:none !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
}
body.hsm-independent-app-body .hsm-email-page{
  min-height:300px !important;
  max-height:48vh !important;
  background:#fff !important;
}
body.hsm-independent-app-body .hsm-calendar-app{
  width:100vw !important;
  height:100vh !important;
  min-height:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  grid-template-columns:260px minmax(0,1fr) 360px !important;
}
body.hsm-independent-app-body .hsm-calendar-main,
body.hsm-independent-app-body .hsm-calendar-schedule,
body.hsm-independent-app-body .hsm-calendar-side{
  height:100vh !important;
  overflow:auto !important;
}
body.hsm-independent-app-body .hsm-month-grid{height:calc(100vh - 110px) !important;}
body.hsm-independent-app-body .hsm-calendar-cell{min-height:0 !important;height:auto !important;}
body.hsm-independent-app-body .hsm-app-side{border-radius:0 !important;}
@media(max-width:1180px){
  body.hsm-independent-app-body{overflow:auto !important;}
  body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas,
  body.hsm-independent-app-body .hsm-admin-shell,
  body.hsm-independent-app-body .admin-layout{height:auto !important;min-height:100vh !important;overflow:visible !important;}
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{height:auto !important;grid-template-columns:240px minmax(300px,380px) minmax(0,1fr) !important;}
  body.hsm-independent-app-body .hsm-mail-reader-pane,
  body.hsm-independent-app-body .hsm-mail-list-pane{height:auto !important;min-height:680px !important;}
}
@media(max-width:880px){
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app,
  body.hsm-independent-app-body .hsm-calendar-app{grid-template-columns:1fr !important;height:auto !important;}
  body.hsm-independent-app-body .hsm-mail-reader-pane,
  body.hsm-independent-app-body .hsm-mail-list-pane,
  body.hsm-independent-app-body .hsm-mail-rail,
  body.hsm-independent-app-body .hsm-calendar-main,
  body.hsm-independent-app-body .hsm-calendar-schedule,
  body.hsm-independent-app-body .hsm-calendar-side{height:auto !important;min-height:0 !important;}
  body.hsm-independent-app-body .hsm-compose-pro{grid-template-columns:1fr !important;}
}

/* HSM Mail destructive action standard */
.hsm-mail-actions .hsm-permanent-delete{
  background:#6f0f18;
  border-color:#6f0f18;
  color:#fff;
  box-shadow:0 14px 28px rgba(111,15,24,.22);
}
.hsm-mail-actions .hsm-permanent-delete:hover,
.hsm-mail-actions .hsm-permanent-delete:focus{
  background:#4f0710;
  border-color:#4f0710;
  color:#fff;
}


/* HSM 3.9.2 - Webmail professional reader/app correction
   Real HSM Mail app: readable HTML email, no oversized logo/images, no squeezed content. */
body.hsm-independent-app-body .hsm-admin-top,
body.hsm-independent-app-body .hero-mail,
body.hsm-independent-app-body .hsm-employee-command.hero-mail{
  display:none !important;
}
body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{
  padding:0 !important;
  margin:0 !important;
  max-width:none !important;
}
body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
body.hsm-independent-app-body .hsm-mail-app{
  grid-template-columns:250px minmax(380px,460px) minmax(640px,1fr) !important;
  height:100vh !important;
  min-height:100vh !important;
  border-radius:0 !important;
}
body.hsm-independent-app-body .hsm-mail-rail{
  background:linear-gradient(180deg,#061d46,#082d68) !important;
  border-right:1px solid rgba(214,162,53,.34) !important;
}
body.hsm-independent-app-body .hsm-mail-list-pane{
  border-right:1px solid #dfe7f2 !important;
  box-shadow:inset -1px 0 0 rgba(6,27,70,.04) !important;
}
body.hsm-independent-app-body .hsm-mail-reader-pane{
  padding:0 !important;
  background:#eef2f7 !important;
  overflow:auto !important;
}
body.hsm-independent-app-body .hsm-mail-message-card{
  min-height:100vh !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#fff !important;
}
body.hsm-independent-app-body .hsm-mail-message-head{
  position:sticky !important;
  top:0 !important;
  z-index:10 !important;
  background:#fff !important;
  border-bottom:1px solid #dfe7f2 !important;
  padding:18px 28px !important;
}
body.hsm-independent-app-body .hsm-mail-message-head h2{
  font-size:clamp(24px,1.9vw,32px) !important;
  line-height:1.15 !important;
  margin:3px 0 8px !important;
  overflow-wrap:break-word !important;
}
body.hsm-independent-app-body .hsm-mail-actions{
  position:sticky !important;
  top:106px !important;
  z-index:9 !important;
  background:#f8fafc !important;
  border-bottom:1px solid #dfe7f2 !important;
  padding:12px 28px !important;
}
body.hsm-independent-app-body .hsm-mail-body,
body.hsm-independent-app-body .hsm-mail-body-pro{
  padding:28px !important;
  background:#eef2f7 !important;
  border:0 !important;
  min-height:calc(100vh - 190px) !important;
  overflow:visible !important;
}
body.hsm-independent-app-body .hsm-mail-html-body{
  width:100% !important;
  max-width:760px !important;
  margin:0 auto !important;
  background:#fff !important;
  color:#10213d !important;
  border:1px solid #dfe7f2 !important;
  border-radius:18px !important;
  box-shadow:0 14px 34px rgba(6,27,70,.10) !important;
  overflow:hidden !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:15px !important;
  line-height:1.6 !important;
}
body.hsm-independent-app-body .hsm-mail-html-body > table{
  width:100% !important;
  max-width:760px !important;
  margin:0 auto !important;
}
body.hsm-independent-app-body .hsm-mail-html-body table{
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.hsm-independent-app-body .hsm-mail-html-body td,
body.hsm-independent-app-body .hsm-mail-html-body th{
  box-sizing:border-box !important;
  max-width:100% !important;
  overflow-wrap:break-word !important;
}
body.hsm-independent-app-body .hsm-mail-html-body img{
  max-width:min(100%,360px) !important;
  max-height:360px !important;
  height:auto !important;
  object-fit:contain !important;
}
body.hsm-independent-app-body .hsm-mail-html-body img[width="74"],
body.hsm-independent-app-body .hsm-mail-html-body img[width="75"],
body.hsm-independent-app-body .hsm-mail-html-body img[width="76"],
body.hsm-independent-app-body .hsm-mail-html-body img[width="80"],
body.hsm-independent-app-body .hsm-mail-html-body img[width="86"],
body.hsm-independent-app-body .hsm-mail-html-body img[width="90"]{
  max-width:90px !important;
  max-height:90px !important;
}
body.hsm-independent-app-body .hsm-mail-html-body h1,
body.hsm-independent-app-body .hsm-mail-html-body h2,
body.hsm-independent-app-body .hsm-mail-html-body h3{
  color:#061d46 !important;
  line-height:1.18 !important;
  overflow-wrap:break-word !important;
}
body.hsm-independent-app-body .hsm-mail-html-body h1{font-size:26px !important;}
body.hsm-independent-app-body .hsm-mail-html-body h2{font-size:22px !important;}
body.hsm-independent-app-body .hsm-mail-html-body h3{font-size:18px !important;}
body.hsm-independent-app-body .hsm-mail-html-body [style*="background:#061d46"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="background: #061d46"]{
  color:#fff !important;
}
body.hsm-independent-app-body .hsm-mail-readable-body{
  max-width:760px !important;
  margin:0 auto !important;
  background:#fff !important;
  border:1px solid #dfe7f2 !important;
  border-left:6px solid #d6a235 !important;
  border-radius:18px !important;
  padding:24px 28px !important;
  box-shadow:0 14px 34px rgba(6,27,70,.10) !important;
  color:#10213d !important;
}
body.hsm-independent-app-body .hsm-mail-thread{
  grid-template-columns:minmax(0,1fr) 106px !important;
  grid-template-areas:"from date" "subject date" !important;
}
body.hsm-independent-app-body .hsm-mail-thread .mail-from{grid-area:from !important;}
body.hsm-independent-app-body .hsm-mail-thread strong{grid-area:subject !important;}
body.hsm-independent-app-body .hsm-mail-thread small{grid-area:date !important;grid-column:auto !important;grid-row:auto !important;justify-self:end !important;}
body.hsm-independent-app-body .hsm-mail-compose-panel{
  max-width:920px !important;
  margin:24px auto !important;
}
@media(max-width:1180px){
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{grid-template-columns:220px minmax(320px,400px) minmax(0,1fr) !important;}
  body.hsm-independent-app-body .hsm-mail-actions{top:96px !important;}
}
@media(max-width:900px){
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{grid-template-columns:1fr !important;height:auto !important;overflow:visible !important;}
  body.hsm-independent-app-body .hsm-mail-list-pane,
  body.hsm-independent-app-body .hsm-mail-reader-pane{height:auto !important;min-height:auto !important;}
  body.hsm-independent-app-body .hsm-mail-message-head,
  body.hsm-independent-app-body .hsm-mail-actions{position:relative !important;top:auto !important;}
}

/* HSM 3.9.3 - Gmail-style HSM Mail app correction.
   Full app experience: no back-office squeeze, disciplined mail rail/list/reader, readable HTML mail. */
body.hsm-independent-app-body{
  background:#f3f6fb !important;
  overflow:hidden !important;
}
body.hsm-independent-app-body .admin-layout,
body.hsm-independent-app-body .hsm-admin-shell,
body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{
  width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  max-width:none !important;
}
body.hsm-independent-app-body .hsm-admin-top,
body.hsm-independent-app-body .hero-mail,
body.hsm-independent-app-body .hsm-employee-command.hero-mail{
  display:none !important;
}
body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
body.hsm-independent-app-body .hsm-mail-app{
  display:grid !important;
  grid-template-columns:232px 420px minmax(0,1fr) !important;
  width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  margin:0 !important;
  background:#fff !important;
  overflow:hidden !important;
}
body.hsm-independent-app-body .hsm-mail-rail{
  height:100vh !important;
  overflow:auto !important;
  padding:18px 14px !important;
  background:linear-gradient(180deg,#061d46 0%,#0a2d65 100%) !important;
  border-right:1px solid rgba(214,162,53,.35) !important;
  color:#fff !important;
}
body.hsm-independent-app-body .hsm-mail-brand{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:0 4px 14px !important;
  margin:0 0 12px !important;
  border-bottom:1px solid rgba(255,255,255,.18) !important;
}
body.hsm-independent-app-body .hsm-mail-brand img{width:42px !important;height:42px !important;object-fit:contain !important;flex:0 0 42px !important;}
body.hsm-independent-app-body .hsm-mail-brand strong{font-size:18px !important;line-height:1.05 !important;color:#fff !important;}
body.hsm-independent-app-body .hsm-mail-brand span{font-size:12px !important;max-width:150px !important;color:#dce8ff !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
body.hsm-independent-app-body .hsm-mail-compose-btn{
  min-height:48px !important;
  border-radius:16px !important;
  background:#fff !important;
  color:#061d46 !important;
  border:2px solid #d6a235 !important;
  font-size:15px !important;
  font-weight:900 !important;
}
body.hsm-independent-app-body .hsm-mail-folders{display:grid !important;gap:4px !important;margin-top:10px !important;}
body.hsm-independent-app-body .hsm-mail-folders a{
  min-height:42px !important;
  padding:9px 12px !important;
  border-radius:999px !important;
  font-size:15px !important;
  color:#f4f8ff !important;
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
body.hsm-independent-app-body .hsm-mail-folders a.active,
body.hsm-independent-app-body .hsm-mail-folders a:hover{background:rgba(255,255,255,.16) !important;color:#fff !important;}
body.hsm-independent-app-body .hsm-mail-list-pane{
  display:flex !important;
  flex-direction:column !important;
  height:100vh !important;
  min-height:0 !important;
  background:#f8fafc !important;
  border-right:1px solid #dbe4f0 !important;
  overflow:hidden !important;
}
body.hsm-independent-app-body .hsm-mail-toolbar{
  flex:0 0 auto !important;
  height:72px !important;
  padding:14px 16px !important;
  background:#fff !important;
  border-bottom:1px solid #dbe4f0 !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
}
body.hsm-independent-app-body .hsm-mail-toolbar input{
  height:44px !important;
  font-size:15px !important;
  border-radius:999px !important;
  border:1px solid #cfd8e6 !important;
  padding:0 16px !important;
  min-width:0 !important;
}
body.hsm-independent-app-body .hsm-mail-toolbar .mini-btn{height:44px !important;padding:0 16px !important;display:inline-flex !important;align-items:center !important;}
body.hsm-independent-app-body .hsm-mail-list-pane h2{
  flex:0 0 auto !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:20px !important;
  line-height:1.2 !important;
  margin:0 !important;
  padding:14px 18px !important;
  background:#fff !important;
  color:#061d46 !important;
  border-bottom:1px solid #e5ebf4 !important;
}
body.hsm-independent-app-body .hsm-mail-thread-list{
  flex:1 1 auto !important;
  overflow:auto !important;
  display:block !important;
}
body.hsm-independent-app-body .hsm-mail-thread{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 92px !important;
  grid-template-areas:"from date" "subject date" !important;
  gap:4px 12px !important;
  align-items:center !important;
  min-height:76px !important;
  padding:13px 16px !important;
  border-bottom:1px solid #e6edf7 !important;
  background:#fff !important;
  color:#10213d !important;
  text-decoration:none !important;
}
body.hsm-independent-app-body .hsm-mail-thread:hover,
body.hsm-independent-app-body .hsm-mail-thread.active{background:#edf5ff !important;}
body.hsm-independent-app-body .hsm-mail-thread .mail-from{grid-area:from !important;font-size:15px !important;font-weight:800 !important;color:#061d46 !important;}
body.hsm-independent-app-body .hsm-mail-thread strong{grid-area:subject !important;font-size:14px !important;font-weight:650 !important;color:#344054 !important;}
body.hsm-independent-app-body .hsm-mail-thread small{grid-area:date !important;justify-self:end !important;font-size:12px !important;color:#667085 !important;max-width:92px !important;text-align:right !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
body.hsm-independent-app-body .hsm-mail-thread .mail-from,
body.hsm-independent-app-body .hsm-mail-thread strong{min-width:0 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;line-height:1.25 !important;}
body.hsm-independent-app-body .hsm-mail-reader-pane{
  height:100vh !important;
  min-height:0 !important;
  overflow:auto !important;
  padding:0 !important;
  background:#f3f6fb !important;
  border-left:0 !important;
}
body.hsm-independent-app-body .hsm-mail-message-card{
  margin:0 !important;
  width:100% !important;
  max-width:none !important;
  min-height:100vh !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#fff !important;
}
body.hsm-independent-app-body .hsm-mail-message-head{
  position:sticky !important;
  top:0 !important;
  z-index:20 !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:18px !important;
  padding:18px 28px !important;
  background:#fff !important;
  border-bottom:1px solid #dbe4f0 !important;
}
body.hsm-independent-app-body .hsm-mail-message-head small{font-family:Arial,Helvetica,sans-serif !important;font-size:11px !important;letter-spacing:.16em !important;color:#a67612 !important;text-transform:uppercase !important;font-weight:900 !important;}
body.hsm-independent-app-body .hsm-mail-message-head h2{
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:clamp(20px,1.6vw,26px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  color:#061d46 !important;
  margin:4px 0 8px !important;
  max-width:none !important;
  overflow-wrap:break-word !important;
}
body.hsm-independent-app-body .hsm-mail-message-head p{margin:0 !important;font-size:14px !important;line-height:1.45 !important;color:#344054 !important;}
body.hsm-independent-app-body .hsm-mail-head-actions{display:flex !important;gap:8px !important;flex-wrap:wrap !important;justify-content:flex-end !important;}
body.hsm-independent-app-body .hsm-mail-actions{
  position:sticky !important;
  top:106px !important;
  z-index:19 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  padding:12px 28px !important;
  background:#f8fafc !important;
  border-bottom:1px solid #dbe4f0 !important;
}
body.hsm-independent-app-body .hsm-mail-actions .mini-btn{min-height:40px !important;padding:0 14px !important;font-size:13px !important;}
body.hsm-independent-app-body .hsm-mail-body,
body.hsm-independent-app-body .hsm-mail-body-pro{
  white-space:normal !important;
  padding:28px !important;
  min-height:calc(100vh - 180px) !important;
  background:#f3f6fb !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:visible !important;
  color:#10213d !important;
}
body.hsm-independent-app-body .hsm-mail-html-body,
body.hsm-independent-app-body .hsm-mail-readable-body{
  width:100% !important;
  max-width:820px !important;
  margin:0 auto !important;
  background:#fff !important;
  border:1px solid #dbe4f0 !important;
  border-radius:14px !important;
  box-shadow:0 10px 30px rgba(6,29,70,.08) !important;
  padding:24px 28px !important;
  color:#10213d !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:15px !important;
  line-height:1.62 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
body.hsm-independent-app-body .hsm-mail-html-body *{box-sizing:border-box !important;max-width:100% !important;}
body.hsm-independent-app-body .hsm-mail-html-body table{width:100% !important;border-collapse:collapse !important;margin:8px 0 14px !important;}
body.hsm-independent-app-body .hsm-mail-html-body td,
body.hsm-independent-app-body .hsm-mail-html-body th{padding:8px !important;vertical-align:top !important;overflow-wrap:break-word !important;}
body.hsm-independent-app-body .hsm-mail-html-body p{margin:0 0 12px !important;}
body.hsm-independent-app-body .hsm-mail-html-body h1,
body.hsm-independent-app-body .hsm-mail-html-body h2,
body.hsm-independent-app-body .hsm-mail-html-body h3{
  font-family:Arial,Helvetica,sans-serif !important;
  color:#061d46 !important;
  line-height:1.22 !important;
  margin:0 0 12px !important;
}
body.hsm-independent-app-body .hsm-mail-html-body h1{font-size:26px !important;}
body.hsm-independent-app-body .hsm-mail-html-body h2{font-size:22px !important;}
body.hsm-independent-app-body .hsm-mail-html-body h3{font-size:18px !important;}
body.hsm-independent-app-body .hsm-mail-html-body img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:min(100%,280px) !important;
  max-height:280px !important;
  object-fit:contain !important;
  margin:10px auto !important;
}
body.hsm-independent-app-body .hsm-mail-html-body a{color:#064f9e !important;text-decoration:underline !important;}
body.hsm-independent-app-body .hsm-mail-compose-panel{
  max-width:820px !important;
  margin:24px auto !important;
  padding:22px 24px !important;
  background:#fff !important;
  border:1px solid #dbe4f0 !important;
  border-radius:14px !important;
  box-shadow:0 10px 30px rgba(6,29,70,.08) !important;
}
body.hsm-independent-app-body .hsm-compose-pro{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:14px !important;}
body.hsm-independent-app-body .hsm-email-page{min-height:240px !important;max-height:42vh !important;overflow:auto !important;}
@media(max-width:1180px){
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{grid-template-columns:210px 360px minmax(0,1fr) !important;}
  body.hsm-independent-app-body .hsm-mail-actions{top:96px !important;}
}
@media(max-width:900px){
  body.hsm-independent-app-body{overflow:auto !important;}
  body.hsm-independent-app-body .admin-layout,
  body.hsm-independent-app-body .hsm-admin-shell,
  body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{height:auto !important;overflow:visible !important;}
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{grid-template-columns:1fr !important;height:auto !important;min-height:100vh !important;overflow:visible !important;}
  body.hsm-independent-app-body .hsm-mail-rail,
  body.hsm-independent-app-body .hsm-mail-list-pane,
  body.hsm-independent-app-body .hsm-mail-reader-pane{height:auto !important;min-height:0 !important;}
  body.hsm-independent-app-body .hsm-mail-message-head,
  body.hsm-independent-app-body .hsm-mail-actions{position:relative !important;top:auto !important;}
}


/* HSM 3.9.4 - Full app webmail branding and compose behavior */
body.hsm-independent-app-body .hsm-app-topbar{
  display:none !important;
}
body.hsm-independent-app-body .hsm-admin-main.hsm-app-canvas{
  padding:0 !important;
  margin:0 !important;
  width:100vw !important;
  max-width:none !important;
  min-height:100vh !important;
  background:#eef3fa !important;
}
body.hsm-independent-app-body .hsm-mail-app-masthead{
  height:76px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  padding:10px 22px !important;
  background:linear-gradient(135deg,#061d46 0%,#0c448b 68%,#d6a235 160%) !important;
  color:#fff !important;
  border-bottom:3px solid #d6a235 !important;
  box-shadow:0 12px 32px rgba(6,29,70,.18) !important;
}
body.hsm-independent-app-body .hsm-mail-app-identity{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  min-width:0 !important;
}
body.hsm-independent-app-body .hsm-mail-app-identity img{
  width:52px !important;
  height:52px !important;
  object-fit:contain !important;
  background:rgba(255,255,255,.98) !important;
  border-radius:14px !important;
  padding:5px !important;
  box-shadow:0 8px 22px rgba(0,0,0,.18) !important;
}
body.hsm-independent-app-body .hsm-mail-app-identity span{
  display:block !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:11px !important;
  line-height:1.1 !important;
  letter-spacing:.22em !important;
  text-transform:uppercase !important;
  color:#f2cf72 !important;
  font-weight:900 !important;
}
body.hsm-independent-app-body .hsm-mail-app-identity strong{
  display:block !important;
  font-family:Georgia,'Times New Roman',serif !important;
  font-size:26px !important;
  line-height:1.05 !important;
  color:#fff !important;
  margin-top:2px !important;
}
body.hsm-independent-app-body .hsm-mail-app-identity small{
  display:block !important;
  font-size:13px !important;
  line-height:1.25 !important;
  color:#e7eefb !important;
  max-width:320px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
body.hsm-independent-app-body .hsm-mail-app-tools{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}
body.hsm-independent-app-body .hsm-mail-action-btn,
body.hsm-independent-app-body .hsm-mail-app-tools a{
  min-height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 16px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.28) !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
  text-decoration:none !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:13px !important;
  font-weight:900 !important;
  letter-spacing:.02em !important;
  box-shadow:0 10px 26px rgba(0,0,0,.14) !important;
}
body.hsm-independent-app-body .hsm-mail-action-btn.primary{
  background:#fff !important;
  color:#061d46 !important;
  border-color:#f2cf72 !important;
}
body.hsm-independent-app-body .hsm-mail-action-btn.ghost{
  background:#062b66 !important;
}
body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
body.hsm-independent-app-body .hsm-mail-app{
  height:calc(100vh - 76px) !important;
  min-height:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  grid-template-columns:230px minmax(360px,430px) minmax(0,1fr) !important;
  background:#fff !important;
}
body.hsm-independent-app-body .hsm-mail-rail,
body.hsm-independent-app-body .hsm-mail-list-pane,
body.hsm-independent-app-body .hsm-mail-reader-pane{
  height:calc(100vh - 76px) !important;
  min-height:0 !important;
}
body.hsm-independent-app-body .hsm-mail-rail{
  border-right:1px solid rgba(255,255,255,.12) !important;
}
body.hsm-independent-app-body .hsm-mail-reader-pane{
  background:#f4f7fb !important;
}
body.hsm-independent-app-body .hsm-mail-compose-panel{
  display:none !important;
}
body.hsm-independent-app-body .hsm-mail-compose-panel:target{
  display:block !important;
  position:fixed !important;
  z-index:9999 !important;
  right:32px !important;
  bottom:28px !important;
  width:min(720px,calc(100vw - 64px)) !important;
  max-height:calc(100vh - 120px) !important;
  overflow:auto !important;
  margin:0 !important;
  padding:18px 20px !important;
  background:#fff !important;
  border:1px solid #d6a235 !important;
  border-radius:18px !important;
  box-shadow:0 24px 70px rgba(6,29,70,.28) !important;
}
body.hsm-independent-app-body .hsm-compose-close{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:36px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  background:#eef3fa !important;
  color:#061d46 !important;
  border:1px solid #dbe4f0 !important;
  text-decoration:none !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-weight:900 !important;
  font-size:12px !important;
}
body.hsm-independent-app-body .hsm-mail-message-card.hsm-empty-state .hsm-mail-compose-panel{
  display:none !important;
}
body.hsm-independent-app-body .hsm-mail-message-card,
body.hsm-independent-app-body .hsm-mail-message-head,
body.hsm-independent-app-body .hsm-mail-actions,
body.hsm-independent-app-body .hsm-mail-body-pro{
  max-width:none !important;
}
body.hsm-independent-app-body .hsm-mail-html-body,
body.hsm-independent-app-body .hsm-mail-readable-body{
  max-width:760px !important;
  padding:20px 22px !important;
}
body.hsm-independent-app-body .hsm-mail-html-body img{
  max-width:min(100%,220px) !important;
  max-height:220px !important;
}
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size:48"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size: 48"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size:42"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size: 42"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size:40"],
body.hsm-independent-app-body .hsm-mail-html-body [style*="font-size: 40"]{
  font-size:24px !important;
  line-height:1.2 !important;
}
@media(max-width:980px){
  body.hsm-independent-app-body .hsm-mail-app-masthead{height:auto !important;min-height:76px !important;align-items:flex-start !important;flex-direction:column !important;}
  body.hsm-independent-app-body .hsm-mail-app-pro.hsm-mail-workspace-full,
  body.hsm-independent-app-body .hsm-mail-app{height:auto !important;grid-template-columns:1fr !important;}
  body.hsm-independent-app-body .hsm-mail-rail,
  body.hsm-independent-app-body .hsm-mail-list-pane,
  body.hsm-independent-app-body .hsm-mail-reader-pane{height:auto !important;min-height:0 !important;}
  body.hsm-independent-app-body .hsm-mail-compose-panel:target{left:12px !important;right:12px !important;bottom:12px !important;width:auto !important;max-height:calc(100vh - 24px) !important;}
}


/* HSM Mail printable email document: prints the actual selected message, not the mail app chrome. */
.hsm-email-print-body{margin:0;background:#eef2f7;color:#061d46;font-family:Arial,Helvetica,sans-serif;}
.hsm-email-print-sheet{width:min(8.5in,calc(100vw - 32px));margin:24px auto;background:#fff;border:1px solid #d6a235;box-shadow:0 18px 54px rgba(6,29,70,.14);padding:30px 36px;box-sizing:border-box;}
.hsm-email-print-header{display:grid;grid-template-columns:92px minmax(0,1fr);gap:18px;align-items:center;border-bottom:3px solid #061d46;padding-bottom:18px;margin-bottom:18px;}
.hsm-email-print-header img{width:86px;height:auto;display:block;object-fit:contain;}
.hsm-email-print-header p{margin:0 0 4px;color:#b88718;font-weight:900;letter-spacing:.18em;text-transform:uppercase;font-size:11px;}
.hsm-email-print-header h1{margin:0;color:#061d46;font-family:Georgia,'Times New Roman',serif;font-size:26px;line-height:1.15;letter-spacing:0;}
.hsm-email-print-header span{display:block;margin-top:6px;color:#42536f;font-size:12px;font-weight:700;}
.hsm-email-print-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px;}
.hsm-email-print-meta div{border:1px solid #dce4f0;border-radius:10px;padding:10px 12px;background:#fbfcff;}
.hsm-email-print-meta strong{display:block;color:#b88718;text-transform:uppercase;letter-spacing:.12em;font-size:10px;margin-bottom:4px;}
.hsm-email-print-meta span{display:block;color:#061d46;font-weight:700;font-size:12px;overflow-wrap:anywhere;}
.hsm-email-print-content{font-size:14px;line-height:1.55;color:#061d46;}
.hsm-email-print-content .hsm-mail-html-body,.hsm-email-print-content .hsm-mail-readable-body{max-width:100%!important;border:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;}
.hsm-email-print-content img{max-width:220px!important;max-height:160px!important;height:auto!important;object-fit:contain!important;}
.hsm-email-print-content table{width:100%!important;border-collapse:collapse!important;margin:12px 0!important;}
.hsm-email-print-content th,.hsm-email-print-content td{border:1px solid #d9e2ef!important;padding:8px 10px!important;text-align:left!important;vertical-align:top!important;}
.hsm-email-print-content h1,.hsm-email-print-content h2,.hsm-email-print-content h3{font-family:Georgia,'Times New Roman',serif!important;color:#061d46!important;line-height:1.2!important;margin:14px 0 8px!important;}
.hsm-email-print-content h1{font-size:24px!important}.hsm-email-print-content h2{font-size:20px!important}.hsm-email-print-content h3{font-size:17px!important}
.hsm-email-print-footer{border-top:1px solid #d6a235;margin-top:24px;padding-top:12px;text-align:center;color:#52627a;font-size:11px;font-weight:700;}
@media print{
  @page{size:Letter;margin:.5in;}
  .hsm-email-print-body{background:#fff!important;}
  .hsm-email-print-sheet{width:100%!important;margin:0!important;border:0!important;box-shadow:none!important;padding:0!important;}
}
@media(max-width:760px){.hsm-email-print-sheet{padding:22px 18px}.hsm-email-print-meta{grid-template-columns:1fr}.hsm-email-print-header{grid-template-columns:72px minmax(0,1fr)}.hsm-email-print-header h1{font-size:21px}.hsm-email-print-header img{width:68px}}

/* HSM Mail linked mailbox manager - 3.9.6 */
.hsm-mail-account-manager{margin:18px 0;}
.hsm-mail-count{display:inline-flex;align-items:center;border-radius:999px;background:#061d46;color:#fff;padding:6px 12px;font-weight:800;font-size:.82rem;}
.hsm-linked-mailboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:12px 0 18px;}
.hsm-linked-mailbox{border:1px solid rgba(6,29,70,.14);border-radius:18px;background:#fff;padding:14px;box-shadow:0 10px 24px rgba(6,29,70,.08);display:flex;flex-direction:column;gap:5px;}
.hsm-linked-mailbox.active{border-color:#d6a235;box-shadow:0 0 0 3px rgba(214,162,53,.18),0 12px 28px rgba(6,29,70,.12);}
.hsm-linked-mailbox strong{color:#061d46;font-size:.98rem;}
.hsm-linked-mailbox span{color:#4b5870;font-size:.86rem;word-break:break-word;}
.hsm-linked-mailbox-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;align-items:center;}
.hsm-active-mailbox-label{display:inline-flex!important;background:#f7efd9!important;color:#061d46!important;border:1px solid rgba(214,162,53,.55);border-radius:999px;padding:6px 10px;font-weight:800;font-size:.75rem!important;}
.hsm-link-mailbox-form{border-top:1px solid rgba(6,29,70,.1);padding-top:14px;margin-top:6px;}
.hsm-mail-app-pro .hsm-mail-rail .hsm-mail-folders a[href="#accounts"]{font-weight:800;}

/* HSM 3.9.8 Homepage popup holiday/photo upgrade */
.hsm-admin-subpanel .form-grid select{width:100%;min-height:48px;border:1px solid #cfd8e6;border-radius:18px;padding:12px 16px;background:#fff;color:#061d46;font-weight:800;font-size:1rem}
.hsm-popup-admin-preview .hsm-home-popup-card{margin:18px auto;box-shadow:0 18px 55px rgba(6,29,70,.18)}
.hsm-home-popup-card{isolation:isolate;background:radial-gradient(circle at top,#fff8df 0%,#fff 42%,#f7f0df 100%);background-image:linear-gradient(rgba(255,255,255,.86),rgba(255,255,255,.92)),var(--popup-bg);background-size:cover;background-position:center;border-color:#d6a235}
.hsm-home-popup-card.hsm-popup-style-festive{background-image:linear-gradient(135deg,rgba(6,29,70,.86),rgba(4,18,45,.72)),var(--popup-bg);color:#fff;border:2px solid rgba(214,162,53,.9)}
.hsm-home-popup-card.hsm-popup-style-festive h2,.hsm-home-popup-card.hsm-popup-style-festive .hsm-popup-body{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.hsm-home-popup-card.hsm-popup-style-festive .hsm-popup-subtitle,.hsm-home-popup-card.hsm-popup-style-festive .hsm-popup-signature,.hsm-home-popup-card.hsm-popup-style-festive .hsm-popup-logo-row span{color:#ffd879!important}
.hsm-home-popup-card.hsm-popup-style-formal{background:#fff;border:1px solid #d6a235;border-top:8px solid #061d46;border-radius:18px;text-align:left;max-width:820px}.hsm-home-popup-card.hsm-popup-style-formal .hsm-popup-logo-row{justify-content:flex-start}.hsm-home-popup-card.hsm-popup-style-formal .hsm-popup-gold-line{margin-left:0}.hsm-home-popup-card.hsm-popup-style-formal h2{font-size:clamp(32px,4vw,58px);line-height:1.05;text-shadow:none}.hsm-home-popup-card.hsm-popup-style-formal .hsm-popup-action{margin-top:8px}
.hsm-home-popup-card.hsm-popup-style-photo-feature{display:grid;grid-template-columns:minmax(0,.9fr) minmax(280px,1fr);align-items:center;column-gap:26px;text-align:left;max-width:940px}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-logo-row,.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-gold-line,.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-subtitle,.hsm-home-popup-card.hsm-popup-style-photo-feature h2,.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-body,.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-signature,.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-action{grid-column:2}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-photo{grid-column:1;grid-row:1 / span 7;margin:0}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-logo-row{justify-content:flex-start}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-gold-line{margin-left:0}.hsm-home-popup-card.hsm-popup-style-photo-feature h2{font-size:clamp(34px,4.8vw,64px);line-height:1.02}
.hsm-popup-photo{margin:18px auto 14px;max-width:min(520px,100%);border-radius:26px;overflow:hidden;border:2px solid rgba(214,162,53,.62);background:#fff;box-shadow:0 18px 42px rgba(6,29,70,.18)}.hsm-popup-photo img{display:block;width:100%;height:auto;max-height:360px;object-fit:cover}.hsm-popup-photo figcaption{padding:10px 14px;background:rgba(6,29,70,.94);color:#fff;font-weight:800;text-align:center;letter-spacing:.04em}
.hsm-popup-theme-christmas{border-color:#b91c1c}.hsm-popup-theme-christmas .hsm-popup-subtitle,.hsm-popup-theme-christmas .hsm-popup-signature{color:#0f6b3a!important}.hsm-popup-theme-thanksgiving{border-color:#b45309}.hsm-popup-theme-easter,.hsm-popup-theme-new-year{border-color:#d6a235}.hsm-popup-theme-revival{border-color:#061d46}.hsm-popup-theme-anniversary{border-color:#d6a235}.hsm-popup-theme-youth{border-color:#1d4ed8}
@media(max-width:760px){.hsm-home-popup-card.hsm-popup-style-photo-feature{display:block;text-align:center}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-logo-row{justify-content:center}.hsm-home-popup-card.hsm-popup-style-photo-feature .hsm-popup-gold-line{margin-left:auto}.hsm-popup-photo img{max-height:280px}.hsm-home-popup-card{padding:24px 18px!important}.hsm-home-popup-card h2{font-size:clamp(32px,11vw,48px)}}

/* HSM 4.2.0 public broadcast embed, homepage popup expiration, and visitor tracker polish */
.hsm-live-embed-shell{background:linear-gradient(145deg,#03132c,#061f4a 70%,#092b5c);border:2px solid #d8a72f;border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.22);overflow:hidden;margin:1.25rem 0;color:#fff;max-width:100%}
.hsm-live-brand-bar{display:flex;align-items:center;gap:.85rem;padding:.65rem 1rem;background:rgba(0,0,0,.32);border-bottom:1px solid rgba(225,181,65,.48)}
.hsm-live-brand-bar img{width:58px;height:42px;object-fit:contain;flex:0 0 auto}.hsm-live-brand-bar span{font-weight:900;letter-spacing:.03em}.hsm-live-brand-bar em{margin-left:auto;font-size:.82rem;color:#ffe9a3;font-style:normal;letter-spacing:.08em;text-transform:uppercase}.hsm-live-aspect{position:relative;width:100%;aspect-ratio:16/9;background:#020917;display:flex;align-items:center;justify-content:center}.hsm-live-aspect iframe,.hsm-live-aspect img{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain;background:#020917}.hsm-live-poster-shell .hsm-live-aspect{background-size:cover;background-position:center}.hsm-live-program-viewer.feed-stale .hsm-live-aspect:after{content:'Signal refreshing — please stand by';position:absolute;right:1rem;bottom:1rem;background:rgba(4,18,43,.86);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:.45rem .85rem;font-weight:800;color:#ffe9a3}.watch-live-public .live-main-card h2,.watch-live-public .live-side-stack h3{font-family:Georgia,'Times New Roman',serif}.hsm-support-reminder{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:9999;display:flex;gap:1rem;align-items:center;justify-content:space-between;max-width:920px;margin:auto;padding:.95rem 1rem;background:linear-gradient(135deg,#031a3e,#092d66);border:1px solid #d6a62f;border-radius:18px;box-shadow:0 16px 45px rgba(0,0,0,.35);color:#fff}.hsm-support-reminder strong{display:block;color:#ffe6a0;font-size:1.05rem}.hsm-support-reminder span{display:block;font-size:.92rem;line-height:1.35}.hsm-support-reminder a{background:linear-gradient(135deg,#f8d76f,#b57912);color:#041636;text-decoration:none;font-weight:900;border-radius:999px;padding:.7rem 1rem;white-space:nowrap}.hsm-support-reminder button{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:50%;width:34px;height:34px;font-size:1.2rem;cursor:pointer}.hsm-visitor-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.hsm-visitor-metric{border:1px solid rgba(212,166,49,.38);border-radius:18px;padding:1rem;background:linear-gradient(145deg,#fff,#f8fbff)}.hsm-visitor-metric span{display:block;color:#5e6a81;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.hsm-visitor-metric strong{display:block;font-size:2rem;color:#061f4a}.hsm-visitor-tables{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.hsm-mini-list{margin:0;padding:0;list-style:none}.hsm-mini-list li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #e9eef8;padding:.55rem 0}.hsm-mini-list small{color:#64748b}.hsm-privacy-note{font-size:.88rem;color:#64748b;margin-top:.75rem}.hsm-popup-admin-preview .muted strong{color:#08285c}
@media(max-width:900px){.hsm-live-brand-bar{flex-wrap:wrap}.hsm-live-brand-bar em{margin-left:0;width:100%}.hsm-support-reminder{align-items:flex-start;flex-direction:column}.hsm-visitor-dashboard-grid,.hsm-visitor-tables{grid-template-columns:1fr}}



/* HSM 4.2.4 Heaven Sent Train support subscription polish */
.train-support-card,.train-support-option{background:#fff;border:1px solid #d6a235;border-left:6px solid #d6a235;border-radius:18px;padding:20px 22px;box-shadow:0 14px 34px rgba(4,20,47,.10);margin-top:18px;color:#061d46}
.train-support-card h3,.train-support-option h3{font-family:Georgia,Times New Roman,serif;color:#061d46;margin:.25rem 0 .55rem;font-size:1.55rem;line-height:1.15}
.train-support-card p,.train-support-option p{color:#344765;line-height:1.55;margin:.35rem 0 .65rem}.train-support-card ul,.train-support-option ul{margin:.65rem 0 0;padding-left:1.2rem;color:#213654;line-height:1.55}.train-support-card li,.train-support-option li{margin:.28rem 0}.support-check{font-weight:900;color:#061d46;background:#f7faff;border:1px solid #c8d3e5;border-radius:12px;padding:12px 14px}.support-check input{transform:scale(1.15);margin-right:8px}.train-support-note{font-weight:800;color:#08377f}.train-support-admin-card .dashboard-cards.mini{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.train-support-admin-card .dashboard-cards.mini div{background:#fff;border:1px solid #d7dfed;border-radius:16px;padding:16px 18px}.train-support-admin-card .dashboard-cards.mini strong{display:block;color:#061d46;font-size:1.05rem;margin-bottom:6px}.train-support-admin-card .dashboard-cards.mini span{display:block;color:#50617a;line-height:1.5}
@media print{.train-support-card,.train-support-option{box-shadow:none;border-color:#999}.support-check{background:#fff}}

/* HSM 4.2.5 Heaven Sent Train premium newsletter value refresh */
.train-support-card.premium-support-card{
  background:linear-gradient(135deg,#ffffff 0%,#f6f9ff 100%);
  border:1px solid rgba(6,29,70,.18);
  border-left:7px solid #d9a83b;
  box-shadow:0 18px 38px rgba(6,29,70,.10);
}
.support-value-row{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 8px}
.support-value-row span{background:#061d46;color:#fff;border:1px solid #d9a83b;border-radius:999px;padding:8px 12px;font-size:.78rem;font-weight:800;letter-spacing:.03em}
.train-premium-value-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:16px}
.train-premium-value-card{background:#fff;border:1px solid rgba(6,29,70,.14);border-top:5px solid #d9a83b;border-radius:18px;padding:18px;box-shadow:0 12px 26px rgba(6,29,70,.08)}
.train-premium-value-card h4{margin:.2rem 0 .55rem;color:#061d46;font-family:Georgia,serif;font-size:1.12rem}
.train-premium-value-card p{margin:0;color:#42516a;line-height:1.55;font-size:.94rem}
.train-worth-panel{background:#061d46;color:#fff;border-radius:22px;padding:24px;margin:20px 0;border:1px solid #d9a83b;box-shadow:0 18px 36px rgba(6,29,70,.20)}
.train-worth-panel h3{font-family:Georgia,serif;color:#fff;margin:0 0 8px;font-size:1.45rem}
.train-worth-panel p{color:#e7eefb;margin:0;line-height:1.65}
.train-worth-panel strong{color:#f6d377}
.newsletter-preview-card{background:#fff;border:1px solid rgba(6,29,70,.16);box-shadow:0 18px 38px rgba(6,29,70,.10)}
.newsletter-preview-card header{border-bottom:6px solid #d9a83b;background:#061d46;color:#fff}
.newsletter-preview-card header h3,.newsletter-preview-card header p{color:#fff}
.newsletter-preview-card header .resource-kicker{color:#f6d377}
@media print{.train-support-card.premium-support-card,.newsletter-preview-card,.train-premium-value-card{box-shadow:none!important}.train-worth-panel{background:#fff!important;color:#061d46!important}.train-worth-panel h3,.train-worth-panel p{color:#061d46!important}}


/* HSM 4.2.6 Train columns, BBQ QR, and invitation edit polish */
.newsletter-preview-card, .train-hero-card, .trustee-management-command { overflow-wrap: break-word; word-break: normal; }
.newsletter-preview-card header h3 { font-size: clamp(26px, 3vw, 35px); line-height: 1.12; max-width: 760px; }
.train-bbq-panel { margin:24px; display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:22px; align-items:center; border:1px solid #c8d3e5; border-top:6px solid #d9a83b; border-radius:18px; padding:22px; background:#fff; box-shadow:0 14px 32px rgba(6,29,70,.08); }
.train-bbq-panel h3 { font-family: Georgia, 'Times New Roman', serif; color:#061d46; font-size:28px; margin:6px 0 8px; }
.train-bbq-panel p { color:#33445f; line-height:1.65; margin:0 0 14px; }
.train-bbq-panel img { width:138px; height:138px; background:#fff; border:1px solid #c8d3e5; border-radius:12px; padding:7px; }
.hsm-bbq-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.hsm-bbq-landing { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:28px; align-items:center; background:#fff; border:1px solid #c8d3e5; border-top:7px solid #d9a83b; border-radius:22px; padding:30px; box-shadow:0 20px 45px rgba(6,29,70,.10); }
.hsm-bbq-landing h2 { font-family: Georgia, 'Times New Roman', serif; color:#061d46; font-size:38px; line-height:1.12; margin:8px 0 12px; }
.hsm-bbq-landing p { color:#33445f; line-height:1.72; font-size:17px; }
.hsm-bbq-landing aside { text-align:center; color:#061d46; font-weight:900; }
.hsm-bbq-landing aside img { width:190px; height:190px; border:1px solid #c8d3e5; border-radius:14px; padding:10px; background:#fff; }
.invite-edit-panel { border-top:6px solid #d9a83b; }
.invite-edit-panel table td, .invite-edit-panel table th { vertical-align:top; }
@media(max-width:720px){ .train-bbq-panel,.hsm-bbq-landing{grid-template-columns:1fr}.train-bbq-panel img,.hsm-bbq-landing aside img{margin:auto} }
@media print { body{background:#fff!important}.train-bbq-panel,.newsletter-preview-card,.hsm-bbq-landing{box-shadow:none!important}.train-bbq-panel{break-inside:avoid} }



/* HSM 4.3.5 member portal, giving card, and professional document standard */
.hsm-payment-method-section,.member-giving-zone,.giving-confirmation-zone{overflow:visible!important;max-width:100%;}
.hsm-giving-method-grid,.ministry-giving-platforms.hsm-giving-method-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:14px!important;align-items:stretch!important;width:100%!important;overflow:visible!important;}
.giving-platform-card.hsm-method-card,.giving-platform-card{min-width:0!important;width:auto!important;height:auto!important;min-height:170px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:space-between!important;padding:18px!important;box-sizing:border-box!important;}
.giving-platform-card .platform-copy,.platform-copy{min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden!important;}
.giving-platform-card h3,.platform-copy h3{font-size:1.1rem!important;line-height:1.15!important;margin:8px 0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;hyphens:auto!important;}
.giving-detail{display:block!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;max-width:100%!important;line-height:1.25!important;}
.hsm-payment-qr{max-width:86px!important;height:auto!important;object-fit:contain!important;}
.hsm-accepted-card-types{max-width:150px!important;height:auto!important;display:block!important;}
.giving-platform-card .lux-btn{align-self:flex-start!important;margin-top:10px!important;min-width:92px!important;text-align:center!important;}
.member-gate-hero,.hsm-library-gate-shell{position:relative;min-height:220px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#001b49,#073d86 55%,#001532);display:grid;place-items:center;margin:22px auto;box-shadow:0 24px 60px rgba(0,20,60,.25);border:1px solid rgba(218,165,32,.55);}
.member-gate-hero .gate-door,.hsm-library-door{position:absolute;top:0;bottom:0;width:50%;background:linear-gradient(135deg,#061d49,#0b3472);border:1px solid rgba(218,165,32,.45);opacity:.9;animation:hsmDoorOpen 1.4s ease-out forwards;}
.gate-left,.hsm-library-door.left{left:0;transform-origin:left center;}.gate-right,.hsm-library-door.right{right:0;transform-origin:right center;}
@keyframes hsmDoorOpen{to{transform:perspective(900px) rotateY(62deg);opacity:.28;}}
.gate-center,.hsm-library-center{position:relative;z-index:2;text-align:center;color:white;padding:24px;max-width:760px;}.gate-center img,.hsm-library-center img{width:110px;max-width:28vw;height:auto;display:block;margin:0 auto 12px;}.gate-center span,.hsm-library-center span{display:block;text-transform:uppercase;letter-spacing:.18em;color:#e4b23e;font-weight:800}.gate-center strong,.hsm-library-center h1{font-family:Georgia,serif;font-size:clamp(1.8rem,4vw,3rem);line-height:1.05;color:white}.gate-center small{display:block;color:#e8eefc;letter-spacing:.12em;text-transform:uppercase}.hsm-library-center p{color:#e8eefc;font-size:1.05rem;line-height:1.55}.hsm-library-center .lux-btn{margin:8px;}
.hsm-member-command-grid-pro,.hsm-member-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;align-items:stretch;}.hsm-member-profile-grid{margin:22px auto;}.hsm-profile-list{display:grid;grid-template-columns:minmax(110px,auto) 1fr;gap:10px 14px}.hsm-profile-list dt{font-weight:800;color:#08245c}.hsm-profile-list dd{margin:0;color:#33415c;overflow-wrap:anywhere}.hsm-member-record-form-pro{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.document,.receipt-document,.statement-document{background:#fff!important;color:#061b44!important;border:1px solid #d7dfef!important;box-shadow:0 18px 50px rgba(0,0,0,.08)!important;}.document:before,.document:after{background:none!important}.doc-shell{background:#f4f7fb!important}.doc-title h2{font-size:1.8rem!important;line-height:1.1!important}.doc-note{color:#293a5b!important}.doc-table th{background:#08245c!important;color:#fff!important}.doc-table td,.doc-table th{border:1px solid #d7dfef!important}.doc-meta{background:#f8fbff!important;border:1px solid #d7dfef!important}.official-badge{letter-spacing:.14em!important;color:#a97405!important}.hsm-document-standard-note{background:#fff;border-left:5px solid #d8a32f;padding:14px;border-radius:10px;}
@media(max-width:760px){.hsm-giving-method-grid,.ministry-giving-platforms.hsm-giving-method-grid{grid-template-columns:1fr!important}.member-gate-hero,.hsm-library-gate-shell{min-height:240px}.hsm-profile-list{grid-template-columns:1fr}.giving-platform-card.hsm-method-card{min-height:auto!important}}
@media print{body,.doc-shell{background:#fff!important}.no-print,.topbar,.brandbar,.nav,.member-office-tabs{display:none!important}.document{box-shadow:none!important;border:1px solid #000!important;width:100%!important;max-width:8.5in!important;margin:0 auto!important}.doc-table th{background:#fff!important;color:#000!important;border:1px solid #000!important}.doc-table td{border:1px solid #000!important;color:#000!important}}


/* HSM 4.8.0 - readable staff data blocks and giving fee explanation */
.staff-main .table-wrap table, .admin-main .table-wrap table{border-collapse:separate!important;border-spacing:0!important;table-layout:auto!important;}
.staff-main .table-wrap th, .staff-main .table-wrap td, .admin-main .table-wrap th, .admin-main .table-wrap td{padding:14px 16px!important;line-height:1.35!important;overflow-wrap:anywhere!important;word-break:break-word!important;white-space:normal!important;max-width:360px!important;}
.staff-main .table-wrap th{white-space:nowrap!important;}
.staff-main .table-wrap td strong, .admin-main .table-wrap td strong{display:inline-block;margin-bottom:3px;}
.staff-main .table-wrap td .muted, .admin-main .table-wrap td .muted{display:block;line-height:1.4!important;}
.hsm-contribution-actions{min-width:230px!important;max-width:300px!important;}
.hsm-contribution-actions input,.hsm-contribution-actions select,.hsm-contribution-actions textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;}
.hsm-prayer-actions textarea,.hsm-prayer-actions input,.hsm-prayer-actions select{width:100%!important;box-sizing:border-box!important;}
.hsm-bank-fee-box{border:1px solid rgba(214,162,53,.45);background:#fffaf0;border-radius:18px;padding:16px 18px;color:#061d46;box-shadow:0 12px 26px rgba(6,29,70,.07);}
.hsm-bank-fee-box strong{display:block;font-size:1.05rem;margin-bottom:6px;}
.hsm-bank-fee-box p{margin:0 0 12px;line-height:1.45;color:#3d4d68;}
.hsm-fee-summary{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px;}
.hsm-fee-summary span{background:#fff;border:1px solid #ead9ae;border-radius:12px;padding:10px 12px;font-weight:700;}
@media(max-width:900px){.hsm-fee-summary{grid-template-columns:1fr}.staff-main .table-wrap th,.staff-main .table-wrap td{max-width:260px!important;}}


/* HSM 4.8.1 readable staff blocks and protected public intake notices */
.hsm-readable-table{table-layout:auto;width:100%;border-collapse:separate;border-spacing:0}
.hsm-readable-table th{white-space:normal;line-height:1.25}
.hsm-readable-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;max-width:260px}
.hsm-readable-table td:first-child{min-width:120px;max-width:170px}
.hsm-wrap-cell{display:block;overflow-wrap:anywhere;word-break:break-word;white-space:normal;max-width:100%}
.hsm-table-link{color:#06265f;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.hsm-table-link:hover{text-decoration:underline}
.hsm-rebuke-notice{border:2px solid #a80f25;border-left-width:8px;background:#fff6f4;color:#061d46;border-radius:16px;padding:16px 18px;margin:14px 0;box-shadow:0 10px 25px rgba(168,15,37,.10)}
.hsm-rebuke-notice h3{margin:0 0 8px;color:#8b0016;font-family:Georgia,serif}
@media(max-width:900px){.hsm-readable-table,.hsm-readable-table tbody,.hsm-readable-table tr,.hsm-readable-table td,.hsm-readable-table th{display:block;width:100%;max-width:100%}.hsm-readable-table tr{border-bottom:1px solid #e0e6f2;padding:10px 0}.hsm-readable-table th{display:none}.hsm-readable-table td{border:0;padding:7px 10px}}


/* HSM 4.8.8 - protected branding/resources correction.
   Do not replace staff-selected flyer/photo paths. Do not show broken protected resources.
   Keep transparent custom HSM logos large and ministry-grade. */
.hsm-resource-missing{display:none!important;}
.hsm-popup-logo-row{gap:18px!important;margin-bottom:16px!important;}
.hsm-popup-logo-row img{width:clamp(150px,18vw,240px)!important;max-width:42vw!important;height:auto!important;object-fit:contain!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.hsm-popup-logo-row span{font-size:clamp(.85rem,1.25vw,1.08rem)!important;letter-spacing:.24em!important;font-weight:900!important;}
.hsm-home-popup-card{background:radial-gradient(circle at top,#fffdf4 0%,#fff 48%,#fbf7ed 100%)!important;}
.hsm-home-popup-card img{background:transparent!important;}
.hsm-app-brand img,.hsm-staff-logo,.hsm-admin-logo,.brand img,.brand-logo,.hsm-logo{background:transparent!important;object-fit:contain!important;}
.hsm-app-brand img{width:clamp(84px,12vw,150px)!important;max-height:110px!important;border-radius:0!important;box-shadow:none!important;}
.hsm-app-top .hsm-app-brand{gap:20px!important;align-items:center!important;}
.hsm-app-top .hsm-app-brand strong{font-size:clamp(1.2rem,2.6vw,2rem)!important;}
.hsm-app-top .hsm-app-brand span{letter-spacing:.16em!important;}
.hsm-no-access-logo,.box .brand{max-width:clamp(260px,36vw,430px)!important;width:100%!important;height:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;}
@media(max-width:760px){.hsm-popup-logo-row img{width:clamp(120px,40vw,190px)!important;max-width:60vw!important}.hsm-app-brand img{width:96px!important}}

/* HSM 5.3.8 - Giving/Finance readability correction.
   Prevent contribution-flow records from collapsing into vertical letters. */
#contribution-flow .table-wrap,
.hsm-pro-card #contribution-flow .table-wrap,
.card#contribution-flow .table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:touch !important;
  border-radius:18px !important;
}
#contribution-flow table{
  width:max-content !important;
  min-width:1580px !important;
  table-layout:auto !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}
#contribution-flow th,
#contribution-flow td{
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  vertical-align:top !important;
  line-height:1.28 !important;
}
#contribution-flow th:nth-child(1),#contribution-flow td:nth-child(1){min-width:170px !important;width:170px !important;}
#contribution-flow th:nth-child(2),#contribution-flow td:nth-child(2){min-width:230px !important;width:230px !important;}
#contribution-flow th:nth-child(3),#contribution-flow td:nth-child(3){min-width:170px !important;width:170px !important;}
#contribution-flow th:nth-child(4),#contribution-flow td:nth-child(4){min-width:210px !important;width:210px !important;}
#contribution-flow th:nth-child(5),#contribution-flow td:nth-child(5){min-width:250px !important;width:250px !important;}
#contribution-flow th:nth-child(6),#contribution-flow td:nth-child(6){min-width:300px !important;width:300px !important;}
#contribution-flow th:nth-child(7),#contribution-flow td:nth-child(7){min-width:310px !important;width:310px !important;}
#contribution-flow th:nth-child(8),#contribution-flow td:nth-child(8){min-width:150px !important;width:150px !important;}
#contribution-flow td:nth-child(5) .muted,
#contribution-flow td:nth-child(7) input{
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}
#contribution-flow .hsm-contribution-actions,
#contribution-flow .stacked-form{
  min-width:260px !important;
  width:100% !important;
  display:grid !important;
  gap:8px !important;
}
#contribution-flow .hsm-contribution-actions button,
#contribution-flow .hsm-contribution-actions .mini-btn,
#contribution-flow .stacked-form button{
  width:100% !important;
  max-width:280px !important;
  white-space:normal !important;
}
#contribution-flow select,
#contribution-flow input,
#contribution-flow textarea{
  max-width:100% !important;
  box-sizing:border-box !important;
}
@media(max-width:760px){
  #contribution-flow .table-wrap{overflow-x:visible !important;}
  #contribution-flow table,
  #contribution-flow tbody,
  #contribution-flow tr,
  #contribution-flow td{display:block !important;width:100% !important;min-width:0 !important;}
  #contribution-flow table{min-width:0 !important;}
  #contribution-flow tr:first-child{display:none !important;}
  #contribution-flow tr{border:1px solid rgba(6,26,61,.14) !important;border-radius:18px !important;margin:0 0 14px !important;padding:12px !important;background:#fff !important;box-shadow:0 12px 30px rgba(6,26,61,.08) !important;}
  #contribution-flow td{border:0 !important;padding:8px 0 !important;}
  #contribution-flow td:nth-child(1)::before{content:'Date / Time';}
  #contribution-flow td:nth-child(2)::before{content:'Giver';}
  #contribution-flow td:nth-child(3)::before{content:'Actual Contribution / Fee';}
  #contribution-flow td:nth-child(4)::before{content:'Envelope';}
  #contribution-flow td:nth-child(5)::before{content:'Source / Reference';}
  #contribution-flow td:nth-child(6)::before{content:'Status & Review';}
  #contribution-flow td:nth-child(7)::before{content:'Processor Actions';}
  #contribution-flow td:nth-child(8)::before{content:'Receipt';}
  #contribution-flow td::before{display:block !important;font-size:.72rem !important;text-transform:uppercase !important;letter-spacing:.08em !important;color:#a87910 !important;font-weight:900 !important;margin-bottom:4px !important;}
}


/* HSM 5.5.8 - systemwide professional readability and no-tool-loss layout guard. */
.hsm-admin-shell,
.staff-shell,
.dashboard-shell,
.office-workspace,
.card,
.panel,
.notice,
.table,
form{
  overflow-wrap:anywhere;
}
.card,
.panel,
.notice,
.office-card,
.dashboard-card,
.ministry-office-card{
  min-width:0;
  max-width:100%;
}
.table,
table{
  max-width:100%;
}
th,td{
  overflow-wrap:anywhere;
  vertical-align:top;
}
input,select,textarea,button,.btn,.lux-btn{
  max-width:100%;
}
.hsm-actions,.actions,.button-row,.command-actions,.quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
}
@media(max-width:900px){
  .grid,.dashboard-grid,.office-grid,.cards-grid,.report-grid{
    grid-template-columns:1fr!important;
  }
  .card,.panel,.notice{
    padding-left:clamp(14px,4vw,22px);
    padding-right:clamp(14px,4vw,22px);
  }
}

/* HSM 5.5.9 Brand Visibility Standard: make the Heaven Sent logo readable on screen and stronger in print while preserving mobile layout. */
:root{
  --hsm-brand-logo-screen: 118px;
  --hsm-brand-logo-print: 1.15in;
  --hsm-brand-logo-sidebar: 112px;
  --hsm-brand-logo-hero: 156px;
}
.hsm-backoffice-professional-standard .hsm-admin-brand{
  gap:14px!important;
  align-items:center!important;
  padding-top:10px!important;
  padding-bottom:14px!important;
}
.hsm-backoffice-professional-standard .hsm-admin-brand img,
.hsm-backoffice-professional-standard .hsm-admin-side .hsm-admin-brand img{
  width:var(--hsm-brand-logo-sidebar)!important;
  max-width:var(--hsm-brand-logo-sidebar)!important;
  min-width:var(--hsm-brand-logo-sidebar)!important;
  height:auto!important;
  object-fit:contain!important;
  image-rendering:auto!important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.28))!important;
}
.hsm-backoffice-professional-standard .command-brand-panel img,
.hsm-pro-hero img[src*="logo"],
.hsm-pro-hero img[src*="hs-logo"],
.hsm-hero img[src*="logo"],
.hsm-hero img[src*="hs-logo"],
.hsm-giving-logo-panel img,
.hsm-finance-system-logo img,
.hsm-accountable-brand-logo,
.hsm-report-doc-brand-v4 img,
.hsm-finance-report-logo img,
.hsm-generated-report-logo img,
.hsm-report-brand-v2 img,
.hsm-report-doc-brand-v3 img{
  width:var(--hsm-brand-logo-screen)!important;
  max-width:var(--hsm-brand-logo-screen)!important;
  height:auto!important;
  object-fit:contain!important;
}
.hsm-backoffice-professional-standard .command-brand-panel img{
  width:var(--hsm-brand-logo-hero)!important;
  max-width:var(--hsm-brand-logo-hero)!important;
  min-width:120px!important;
}
.hsm-standard-letterhead .doc-logo-lockup,
.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup,
.ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup{
  width:132px!important;
  min-width:132px!important;
}
.hsm-standard-letterhead .doc-logo-lockup img,
.doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
.ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
.hsm-letter-document .doc-logo-lockup img{
  width:118px!important;
  max-width:118px!important;
  height:auto!important;
  object-fit:contain!important;
}
@media(max-width:720px){
  :root{--hsm-brand-logo-screen:92px;--hsm-brand-logo-sidebar:76px;--hsm-brand-logo-hero:96px;}
  .hsm-backoffice-professional-standard .hsm-admin-brand img,
  .hsm-backoffice-professional-standard .hsm-admin-side .hsm-admin-brand img{
    width:76px!important;max-width:76px!important;min-width:76px!important;
  }
  .hsm-standard-letterhead .doc-logo-lockup,
  .doc-letterhead.hsm-standard-letterhead .doc-logo-lockup,
  .ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup{width:82px!important;min-width:82px!important;}
  .hsm-standard-letterhead .doc-logo-lockup img,
  .doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
  .ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
  .hsm-letter-document .doc-logo-lockup img{width:76px!important;max-width:76px!important;}
}
@media print{
  .hsm-accountable-brand-logo,
  .hsm-report-doc-brand-v4 img,
  .hsm-finance-office-mark img,
  .hsm-finance-report-logo img,
  .hsm-generated-report-logo img,
  .hsm-report-brand-v2 img,
  .hsm-report-doc-brand-v3 img,
  .hsm-standard-letterhead .doc-logo-lockup img,
  .doc-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
  .ministry-record-letterhead.hsm-standard-letterhead .doc-logo-lockup img,
  .hsm-letter-document .doc-logo-lockup img{
    width:var(--hsm-brand-logo-print)!important;
    max-width:var(--hsm-brand-logo-print)!important;
    height:auto!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
    padding:0!important;
  }
}

/* HSM 5.5.55 Giving mobile override loaded after system CSS */
body.page-giving #giving-options .hsm-public-method-strip{
  display:grid!important;
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
body.page-giving #giving-options .hsm-public-method-card.hsm-image-method-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:block!important;
  overflow:hidden!important;
}
body.page-giving #giving-options .hsm-image-method-button{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:clamp(86px,18vw,155px)!important;
  height:auto!important;
  padding:8px!important;
}
body.page-giving #giving-options .hsm-giving-option-image{
  width:100%!important;
  max-width:min(250px,88vw)!important;
  max-height:140px!important;
  height:auto!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
}
body.page-giving .hsm-giving-desk,
body.page-giving .hsm-restored-giving-desk{
  grid-template-columns:minmax(0,1fr)!important;
}
@media(max-width:820px){
  body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.page-giving .hsm-giving-form .form-grid,
  body.page-giving .hsm-giving-card .form-grid,
  body.page-giving .hsm-giving-visible-fields{grid-template-columns:1fr!important;}
}
@media(max-width:480px){
  body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}
  body.page-giving #giving-options .hsm-image-method-button{min-height:92px!important;}
}
@media(orientation:landscape) and (max-height:560px){
  body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* HSM 5.5.57 Giving public mobile recovery and plain-language public layout */
html,body{max-width:100%!important;overflow-x:hidden!important;}
body.page-giving #givingPlatformCards,
body.page-giving .hsm-public-method-strip,
body.page-giving #giving-options .hsm-public-method-strip{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;white-space:normal!important;}
body.page-giving #givingPlatformCards>*,body.page-giving .hsm-public-method-card,body.page-giving .hsm-image-method-card{width:100%!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important;box-sizing:border-box!important;overflow:hidden!important;}
body.page-giving .hsm-image-method-button,body.page-giving .giving-platform-select{width:100%!important;max-width:100%!important;min-width:0!important;min-height:120px!important;height:auto!important;padding:10px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;white-space:normal!important;}
body.page-giving .hsm-giving-option-image{width:100%!important;max-width:230px!important;max-height:118px!important;height:auto!important;object-fit:contain!important;display:block!important;margin:0 auto!important;}
body.page-giving .hsm-giving-desk,body.page-giving .hsm-restored-giving-desk,body.page-giving .hsm-giving-desk.hsm-pro-desk{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,340px)!important;gap:22px!important;align-items:start!important;max-width:100%!important;overflow:visible!important;}
body.page-giving .hsm-giving-form .form-grid,body.page-giving .hsm-giving-card .form-grid,body.page-giving .hsm-giving-visible-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;width:100%!important;min-width:0!important;}
body.page-giving .hsm-giving-form label,body.page-giving .hsm-giving-form input,body.page-giving .hsm-giving-form select,body.page-giving .hsm-giving-form textarea{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
@media(max-width:980px){body.page-giving .hsm-giving-desk,body.page-giving .hsm-restored-giving-desk,body.page-giving .hsm-giving-desk.hsm-pro-desk{grid-template-columns:1fr!important;}}
@media(max-width:820px){body.page-giving #givingPlatformCards,body.page-giving .hsm-public-method-strip,body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}body.page-giving .hsm-giving-form .form-grid,body.page-giving .hsm-giving-card .form-grid,body.page-giving .hsm-giving-visible-fields{grid-template-columns:1fr!important;}body.page-giving .hsm-giving-restored-page{padding-left:10px!important;padding-right:10px!important;}}
@media(max-width:520px){body.page-giving #givingPlatformCards,body.page-giving .hsm-public-method-strip,body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}body.page-giving .hsm-image-method-button,body.page-giving .giving-platform-select{min-height:104px!important;padding:9px!important;}body.page-giving .hsm-giving-option-image{max-width:min(300px,86vw)!important;max-height:112px!important;}}
@media(orientation:landscape) and (max-height:570px){body.page-giving #givingPlatformCards,body.page-giving .hsm-public-method-strip,body.page-giving #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}


/* HSM 5.5.86 force real giving QR codes large enough to scan */
#giving-options .hsm-public-method-strip{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:18px!important;overflow:visible!important;}
#giving-options .hsm-public-method-card.hsm-image-method-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:260px!important;}
#giving-options .hsm-giving-option-image{width:min(100%,310px)!important;max-width:310px!important;min-width:210px!important;height:auto!important;object-fit:contain!important;}
#giving-options .method-cashapp .hsm-giving-option-image,#giving-options .method-zelle .hsm-giving-option-image,#giving-options .method-venmo .hsm-giving-option-image{width:min(100%,340px)!important;max-width:340px!important;min-width:230px!important;}
#giving-options .hsm-method-action-label{text-align:center!important;color:#fff!important}#giving-options .hsm-method-action-label strong{display:block!important;color:#ffe28a!important}#giving-options .hsm-method-action-label span{display:block!important;color:#dce9ff!important;font-weight:700!important}
@media(max-width:720px){#giving-options .hsm-public-method-strip{grid-template-columns:1fr!important}#giving-options .hsm-giving-option-image,#giving-options .method-cashapp .hsm-giving-option-image,#giving-options .method-zelle .hsm-giving-option-image,#giving-options .method-venmo .hsm-giving-option-image{width:min(92vw,360px)!important;max-width:360px!important;min-width:250px!important}}

/* HSM 5.5.94 Giving cards corrected: smaller cards, larger scan-ready QR artwork, no technical public notices */
body.page-giving #giving-options .hsm-public-method-strip,
#giving-options .hsm-public-method-strip{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
body.page-giving #giving-options .hsm-public-method-card.hsm-image-method-card,
#giving-options .hsm-public-method-card.hsm-image-method-card{
  min-height:0!important;
  height:auto!important;
  padding:10px!important;
  gap:6px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#061735,#0b2655 76%,rgba(216,170,47,.10))!important;
  border:1px solid rgba(216,170,47,.55)!important;
  color:#fff!important;
}
body.page-giving #giving-options .hsm-image-method-button,
#giving-options .hsm-image-method-button{
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.page-giving #giving-options .hsm-giving-option-image,
#giving-options .hsm-giving-option-image{
  width:min(100%,300px)!important;
  max-width:300px!important;
  min-width:0!important;
  height:auto!important;
  max-height:160px!important;
  object-fit:contain!important;
  display:block!important;
  margin:0 auto!important;
  background:transparent!important;
  border-radius:14px!important;
}
body.page-giving #giving-options .method-cashapp .hsm-giving-option-image,
body.page-giving #giving-options .method-zelle .hsm-giving-option-image,
body.page-giving #giving-options .method-venmo .hsm-giving-option-image,
#giving-options .method-cashapp .hsm-giving-option-image,
#giving-options .method-zelle .hsm-giving-option-image,
#giving-options .method-venmo .hsm-giving-option-image{
  width:min(100%,320px)!important;
  max-width:320px!important;
  min-width:0!important;
  max-height:175px!important;
  image-rendering:auto!important;
}
body.page-giving #giving-options .hsm-method-action-label,
#giving-options .hsm-method-action-label{
  margin-top:2px!important;
  text-align:center!important;
  line-height:1.15!important;
}
body.page-giving #giving-options .hsm-method-action-label strong,
#giving-options .hsm-method-action-label strong{
  display:block!important;
  color:#ffe28a!important;
  font-size:.98rem!important;
}
body.page-giving #giving-options .hsm-method-action-label span,
#giving-options .hsm-method-action-label span{
  display:block!important;
  color:#f4f8ff!important;
  font-size:.78rem!important;
  font-weight:700!important;
}
body.page-giving #giving-options .hsm-giving-needed-info,
body.page-giving #giving-options .hsm-square-live-notice,
#giving-options .hsm-giving-needed-info,
#giving-options .hsm-square-live-notice{
  display:none!important;
}
@media(max-width:900px){
  body.page-giving #giving-options .hsm-public-method-strip,
  #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  body.page-giving #giving-options .hsm-giving-option-image,
  #giving-options .hsm-giving-option-image{max-height:150px!important;}
  body.page-giving #giving-options .method-cashapp .hsm-giving-option-image,
  body.page-giving #giving-options .method-zelle .hsm-giving-option-image,
  body.page-giving #giving-options .method-venmo .hsm-giving-option-image,
  #giving-options .method-cashapp .hsm-giving-option-image,
  #giving-options .method-zelle .hsm-giving-option-image,
  #giving-options .method-venmo .hsm-giving-option-image{max-height:170px!important;}
}
@media(max-width:520px){
  body.page-giving #giving-options .hsm-public-method-strip,
  #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}
  body.page-giving #giving-options .hsm-public-method-card.hsm-image-method-card,
  #giving-options .hsm-public-method-card.hsm-image-method-card{padding:12px!important;}
  body.page-giving #giving-options .hsm-giving-option-image,
  #giving-options .hsm-giving-option-image{width:min(88vw,330px)!important;max-width:330px!important;max-height:180px!important;}
  body.page-giving #giving-options .method-cashapp .hsm-giving-option-image,
  body.page-giving #giving-options .method-zelle .hsm-giving-option-image,
  body.page-giving #giving-options .method-venmo .hsm-giving-option-image,
  #giving-options .method-cashapp .hsm-giving-option-image,
  #giving-options .method-zelle .hsm-giving-option-image,
  #giving-options .method-venmo .hsm-giving-option-image{width:min(90vw,350px)!important;max-width:350px!important;max-height:195px!important;}
}


/* HSM 5.5.117 Giving Method Visual Lock
   Keeps enabled payment methods inside the approved design. Additional methods wrap to the next row instead of stretching the line. */
#giving-options .hsm-public-method-strip{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:1220px!important;
  margin:0 auto!important;
  overflow:visible!important;
}
#giving-options .hsm-public-method-card{
  display:grid!important;
  grid-template-rows:1fr auto!important;
  min-width:0!important;
  min-height:192px!important;
  height:auto!important;
  padding:12px!important;
  border:1px solid rgba(214,162,53,.78)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fffef9 0%,#fff8e8 100%)!important;
  box-shadow:0 10px 24px rgba(6,27,70,.08)!important;
  overflow:hidden!important;
}
#giving-options .hsm-public-method-card .hsm-image-method-button,
#giving-options .hsm-public-method-card .hsm-text-method-button{
  width:100%!important;
  min-width:0!important;
  min-height:134px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  padding:8px!important;
  border:0!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fffdf6 100%)!important;
  cursor:pointer!important;
  overflow:hidden!important;
}
#giving-options .hsm-public-method-card .hsm-giving-option-image,
#giving-options .hsm-public-method-card .hsm-card-types{
  display:block!important;
  width:100%!important;
  max-width:150px!important;
  max-height:126px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
#giving-options .hsm-public-method-card.method-square .hsm-giving-option-image,
#giving-options .hsm-public-method-card.method-stripe .hsm-giving-option-image,
#giving-options .hsm-public-method-card.method-paypal .hsm-giving-option-image{
  max-width:154px!important;
  max-height:130px!important;
}
#giving-options .hsm-public-method-card.method-cashapp .hsm-giving-option-image,
#giving-options .hsm-public-method-card.method-zelle .hsm-giving-option-image,
#giving-options .hsm-public-method-card.method-venmo .hsm-giving-option-image,
#giving-options .hsm-public-method-card .hsm-method-qr{
  max-width:136px!important;
  max-height:136px!important;
  width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  background:#fff!important;
  border-radius:10px!important;
}
#giving-options .hsm-method-action-label{
  display:block!important;
  width:100%!important;
  margin-top:8px!important;
  padding:8px 9px!important;
  border-radius:14px!important;
  background:#061b46!important;
  color:#fff9e8!important;
  text-align:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
#giving-options .hsm-method-action-label strong{
  display:block!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(1rem,1.15vw,1.22rem)!important;
  line-height:1.05!important;
  color:#fff9e8!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
}
#giving-options .hsm-method-action-label span{
  display:block!important;
  margin-top:3px!important;
  font-size:.78rem!important;
  line-height:1.15!important;
  color:#f5d276!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#giving-options .hsm-public-method-card .giving-platform-select,
#giving-options .hsm-public-method-card .giving-platform-open,
#giving-options .hsm-public-method-card .lux-btn{
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#giving-options .hsm-public-method-card[data-platform-key^="custom_"] .hsm-text-method-button strong,
#giving-options .hsm-public-method-card .hsm-text-method-button strong{
  display:block!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(1.15rem,1.4vw,1.45rem)!important;
  color:#061b46!important;
  line-height:1.08!important;
  white-space:normal!important;
  text-align:center!important;
}
@media(max-width:1120px){
  #giving-options .hsm-public-method-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
  #giving-options .hsm-public-method-strip{grid-template-columns:1fr!important;}
  #giving-options .hsm-public-method-card{min-height:172px!important;}
  #giving-options .hsm-public-method-card .hsm-giving-option-image{max-width:170px!important;max-height:142px!important;}
}
