/* Approved Groups workspace, scoped to the existing live Groups page. */
#groups.gr-design {
  --gr-ink: #0b194f;
  --gr-muted: #526c9b;
  --gr-line: #dce7f7;
  --gr-blue: #0562ff;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding-bottom: 10px;
}
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer) {
  color: var(--gr-ink);
  font-family: Arial, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer),
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer) * { box-sizing: border-box; }
#groups.gr-design [hidden] { display: none !important; }
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer) svg { flex: none; width: 19px; height: 19px; vertical-align: middle; }
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer) :is(button, a, input, select, summary):focus-visible { outline: 3px solid #8bb9ff; outline-offset: 3px; }
#groups.gr-design :is(.gr-pagebar, .gr-connection, .gr-hero, .gr-metrics, .gr-toolbar, .gr-filterbar, .gr-footer) button { font-family: inherit; }

/* Page navigation and compact connection status. */
#groups.gr-design > .section-title.gr-pagebar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 15px;
  min-height: 43px;
  margin: 0 0 9px !important;
  padding: 0;
}
#groups.gr-design .gr-breadcrumb { display: flex; align-items: center; gap: 10px; color: #526b97; font-size: 13px; }
#groups.gr-design .gr-breadcrumb strong { font-weight: 600; color: #274675; }
#groups.gr-design .gr-pagebar .heading-actions { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; width: auto; gap: 10px; }
#groups.gr-design .gr-pagebar .heading-actions .btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px;
  width: auto; min-width: 134px; min-height: 37px; height: 37px; padding: 7px 16px;
  border: 1px solid #a9c9ff; border-radius: 7px; background: white; color: #0058f7;
  box-shadow: none; font-size: 13px; font-weight: 650; line-height: 1.3;
}
#groups.gr-design .gr-pagebar .heading-actions .primary { background: #0562ff; border-color: #0562ff; color: white; }
#groups.gr-design .gr-pagebar .heading-actions svg { width: 19px; height: 19px; }
#groups.gr-design .gr-connection {
  display: flex; align-items: center; gap: 17px; min-width: 0; min-height: 52px;
  margin: 0 0 10px; padding: 9px 18px; border: 1px solid #b0e5d6;
  border-radius: 10px; background: linear-gradient(105deg, #f5fffb, #f5fcff); color: #102251;
}
#groups.gr-design .gr-connection-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #24c875, #008a48); color: white;
  box-shadow: inset 0 1px 2px #ffffff45;
}
#groups.gr-design .gr-connection-icon svg { width: 23px; height: 23px; }
#groups.gr-design .gr-connection-copy { min-width: 0; flex: 1; }
#groups.gr-design .gr-connection-copy strong { display: block; margin: 0 0 3px; font-size: 13px; line-height: 1.2; }
#groups.gr-design .gr-connection-copy small { display: block; font-size: 12px; line-height: 1.2; color: #54729e; }
#groups.gr-design .gr-manage-connection {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 31px;
  margin-left: auto; padding: 4px 0 4px 12px; border: 0; background: transparent; box-shadow: none;
  color: #005cff; font-size: 12px; font-weight: 650; cursor: pointer;
}
#groups.gr-design .gr-manage-connection svg { width: 15px; height: 15px; }
#groups.gr-design .gr-connection:not(.is-connected) { background: #fffaf0; border-color: #efcf8c; }
#groups.gr-design .gr-connection:not(.is-connected) .gr-connection-icon { background: #e6a227; }
#groups.gr-design #qrPanel { display: none !important; }
#groups.gr-design.gr-details-open #qrPanel { display: grid !important; margin-bottom: 12px; }

/* Header and four live account totals. */
#groups.gr-design .gr-directory.panel {
  display: block; min-width: 0; margin: 0; padding: 0; border: 0 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible;
}
#groups.gr-design .gr-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-width: 0; min-height: 141px; padding: 24px 28px 26px 30px;
  border: 1px solid #1a65d8; border-bottom: 0; border-radius: 13px 13px 0 0;
  color: white; background: linear-gradient(115deg, #073f9a 0%, #093e99 40%, #0063f5 83%, #0755d6 100%);
  overflow: hidden;
}
#groups.gr-design .gr-hero::before {
  content: ""; position: absolute; z-index: -1; width: 630px; height: 330px; right: -42px; top: -3px;
  border: 1px solid #1a90ff66; border-radius: 50%; transform: rotate(-15deg);
  background: linear-gradient(150deg, transparent 32%, #063d9a44 33%, #03358866 61%, transparent 62%);
}
#groups.gr-design .gr-hero::after { content: ""; position: absolute; z-index: -1; width: 370px; height: 250px; right: -70px; top: -120px; transform: rotate(48deg); background: #0067ff66; }
#groups.gr-design .gr-hero-identity { display: flex; align-items: center; gap: 26px; min-width: 0; }
#groups.gr-design .gr-hero-icon {
  display: grid; place-items: center; flex: none; width: 89px; height: 89px; border-radius: 21px;
  border: 1px solid #ffffff40; color: white; background: linear-gradient(140deg, #3b80e3aa, #4b88dd66);
  box-shadow: inset 0 1px 1px #ffffff15, 0 5px 12px #082d7320;
}
#groups.gr-design .gr-hero-icon svg { width: 48px; height: 48px; }
#groups.gr-design .gr-hero-copy { min-width: 0; }
#groups.gr-design .gr-eyebrow { display: block; margin: 0 0 7px; color: #e9f0ff; font-size: 11px; line-height: 1.3; letter-spacing: .07em; font-weight: 700; }
#groups.gr-design .gr-hero h2 { margin: 0; padding: 0; color: white; font-size: clamp(27px, 2.55vw, 39px); font-weight: 750; letter-spacing: -.035em; line-height: 1.16; }
#groups.gr-design .gr-hero p { margin: 6px 0 0; color: #f1f6ff; font-size: 17px; letter-spacing: .035em; line-height: 1.4; }
#groups.gr-design .gr-balances {
  display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; flex: 0 1 445px;
  min-width: 300px; padding: 14px 22px 13px; border-radius: 15px;
  background: linear-gradient(110deg, #1e61c98a, #2855a575); box-shadow: 0 5px 20px #062d7a12;
}
#groups.gr-design .gr-balance-summary { min-width: 0; }
#groups.gr-design .gr-balance-summary + .gr-balance-summary { border-left: 1px solid #a9c9ff99; padding-left: 28px; margin-left: 19px; }
#groups.gr-design .gr-balance-summary label,
#groups.gr-design .gr-balance-summary > span { display: block; margin: 0 0 7px; color: #edf5ff; font-size: 12px; font-weight: 600; white-space: nowrap; }
#groups.gr-design .gr-balance-summary strong { display: block; margin: 0; color: white; font-size: clamp(23px, 2.15vw, 33px); font-weight: 750; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
#groups.gr-design .gr-metrics {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 79px;
  margin-top: -1px; margin-bottom: 11px; padding: 16px 18px 15px;
  border: 1px solid var(--gr-line); border-radius: 12px; background: white;
}
#groups.gr-design .gr-metric { display: flex; align-items: center; justify-content: center; gap: 21px; min-width: 0; position: relative; }
#groups.gr-design .gr-metric + .gr-metric::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 3px; width: 1px; background: #d8e2f2; }
#groups.gr-design .gr-metric-icon { display: grid; place-items: center; width: 49px; height: 46px; flex: none; border-radius: 12px; }
#groups.gr-design .gr-metric-icon svg { width: 28px; height: 28px; }
#groups.gr-design .gr-metric-icon.gr-blue { color: #0064ff; background: #e8f2ff; }
#groups.gr-design .gr-metric-icon.gr-amber { color: #ec8900; background: #fff5e2; }
#groups.gr-design .gr-metric-icon.gr-green { color: #009f58; background: #e4f8ee; }
#groups.gr-design .gr-metric-icon.gr-slate { color: #36517e; background: #eaf1ff; }
#groups.gr-design .gr-metric > div { min-width: 0; }
#groups.gr-design .gr-metric > div > span { display: block; margin-bottom: 4px; color: #536c98; font-size: 13px; white-space: nowrap; }
#groups.gr-design .gr-metric strong { display: block; color: #0c1a52; font-size: 26px; line-height: 1; font-weight: 750; }

/* Search and filters preserve the existing inputs and account controls. */
#groups.gr-design .gr-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 11px; min-width: 0;
  min-height: 55px; padding: 8px 13px 7px; border: 1px solid var(--gr-line); border-bottom: 0;
  border-radius: 11px 11px 0 0; background: white;
}
#groups.gr-design .gr-toolbar .search { display: flex; align-items: center; gap: 11px; flex: 1 1 260px; min-width: 0; width: auto; height: 39px; padding: 0 13px; border: 1px solid #d3dff1; border-radius: 8px; background: white; }
#groups.gr-design .gr-toolbar .search > span:first-child { display: inline-flex; align-items: center; flex: none; color: #31538c; }
#groups.gr-design .gr-toolbar .search svg { width: 18px; height: 18px; }
#groups.gr-design .gr-toolbar .workspace-filter-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
#groups.gr-design .gr-toolbar #groupSearch { flex: 1; min-width: 0; width: 100%; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #17376b; font: inherit; font-size: 12px; }
#groups.gr-design .gr-toolbar #groupSearch::placeholder { opacity: 1; color: #546e9c; }
#groups.gr-design .gr-toolbar .search .workspace-clear { display: none !important; }
#groups.gr-design .gr-reset { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 39px; min-height: 39px; padding: 7px 17px; border: 1px solid #d3dff1; border-radius: 8px; background: white; box-shadow: none; color: #005eff; font-size: 12px; font-weight: 650; cursor: pointer; }
#groups.gr-design .gr-reset svg { width: 20px; height: 20px; }
#groups.gr-design .gr-toolbar .account-sort { display: flex; align-items: center; justify-content: flex-start; gap: 10px !important; flex: none; width: auto; margin: 0 0 0 auto !important; padding: 0 !important; min-height: 39px; color: #536d9b; background: transparent !important; font-size: 12px; font-weight: 400; }
#groups.gr-design .gr-toolbar #accountSort { width: 186px !important; min-width: 0; height: 39px !important; min-height: 39px !important; padding: 7px 31px 7px 14px !important; border: 1px solid #d3dff1 !important; border-radius: 8px !important; color: #0b1c50 !important; background-color: #fff !important; font: inherit; font-size: 12px !important; font-weight: 650; box-shadow: none !important; }
#groups.gr-design .gr-toolbar .account-settings { position: relative; flex: none; margin: 0 0 0 9px !important; padding: 0 !important; border: 0 !important; min-width: 0; max-width: 100%; background: transparent !important; }
#groups.gr-design .gr-toolbar .account-settings > summary { display: flex; align-items: center; justify-content: center; gap: 10px; list-style: none; height: 39px !important; min-height: 39px !important; padding: 7px 16px !important; border: 1px solid #d3dff1 !important; border-radius: 8px !important; color: #0b1c50 !important; background: #fff !important; font-size: 12px !important; line-height: 20px !important; font-weight: 650; cursor: pointer; }
#groups.gr-design .gr-toolbar .account-settings > summary::-webkit-details-marker { display: none; }
#groups.gr-design .gr-toolbar .account-settings > summary::after { display: none; }
#groups.gr-design .gr-toolbar .account-settings > summary svg { width: 20px; height: 20px; }
#groups.gr-design .gr-toolbar .account-settings[open] { flex-basis: auto; }
#groups.gr-design .gr-toolbar .account-settings .group-name-bulk-controls { position: absolute; z-index: 30; top: 43px; right: 0; width: min(440px, calc(100vw - 56px)); margin: 0 !important; padding: 17px !important; border: 1px solid #d3dff1 !important; border-radius: 10px !important; background: white !important; box-shadow: 0 12px 35px #1e488326; }
#groups.gr-design .gr-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 10px; padding: 6px 13px; border: 1px solid var(--gr-line); border-top-color: #e9eff9; border-radius: 0 0 11px 11px; background: white; }
#groups.gr-design .gr-filterbar .account-filters { display: flex; width: auto; flex-wrap: wrap; gap: 11px; }
#groups.gr-design .gr-filterbar .account-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 88px; min-height: 34px; height: 34px; margin: 0; padding: 6px 15px; border: 1px solid #dce5f4; border-radius: 22px; color: #1b386a; background: #f6f8fd; font-size: 12px; font-weight: 650; box-shadow: none; }
#groups.gr-design .gr-filterbar .account-filters button span { display: inline-grid; place-items: center; min-width: 21px; width: auto; height: 20px; padding: 0 5px; border-radius: 9px; color: inherit; background: #e8edf7; font-size: 12px; }
#groups.gr-design .gr-filterbar .account-filters button[data-account-filter="due"] { color: #b66500; background: #fff4df; border-color: #fff0d4; }
#groups.gr-design .gr-filterbar .account-filters button[data-account-filter="due"] span { background: #ffebc4; }
#groups.gr-design .gr-filterbar .account-filters button[data-account-filter="paid"] { color: #008633; background: #e7f9ed; border-color: #dcf4e5; }
#groups.gr-design .gr-filterbar .account-filters button[data-account-filter="paid"] span { background: #d6f1e0; }
#groups.gr-design .gr-filterbar .account-filters button.is-active { color: white; border-color: #0562ff; background: #0562ff; box-shadow: 0 3px 8px #0562ff12; }
#groups.gr-design .gr-filterbar .account-filters button.is-active span { color: white; background: #0050df; }
#groups.gr-design .gr-view-options { display: flex; align-items: center; flex: none; gap: 22px; margin-left: auto; }
#groups.gr-design .gr-view-toggle { display: flex; padding: 2px; border: 1px solid #d6e2f5; border-radius: 8px; background: white; }
#groups.gr-design .gr-view-toggle button { display: grid; place-items: center; width: 35px; height: 29px; min-height: 29px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #314c86; cursor: pointer; }
#groups.gr-design .gr-view-toggle button.is-active { background: #0562ff; color: white; box-shadow: 0 2px 5px #0562ff33; }
#groups.gr-design .gr-view-toggle svg { width: 17px; height: 17px; }
#groups.gr-design .gr-count { color: #5973a1; font-size: 12px; white-space: nowrap; }

/* Native cards retain their original markup and stylesheet. */
#groups.gr-design .table-wrap.account-directory-wrap { width: 100%; min-width: 0; margin: 0; padding: 0 !important; border: 0; border-radius: 0; background: transparent; overflow: visible; }
#groups.gr-design #allGroups.account-card-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; align-items: start !important; width: 100%; min-width: 0; margin: 0; padding: 0; }

/* Pagination and the optional full-width list view. */
#groups.gr-design .gr-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 43px; margin-top: 4px; padding: 3px 0; }
#groups.gr-design .gr-footer #accountDirectoryCount { min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; color: #3d5b8e; background: transparent !important; font-size: 12px !important; line-height: 1.5; }
#groups.gr-design .gr-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
#groups.gr-design .gr-pagination button { display: inline-grid; place-items: center; width: 32px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 6px; color: #3b5b90; background: transparent; font-size: 13px; cursor: pointer; }
#groups.gr-design .gr-pagination button:first-child,
#groups.gr-design .gr-pagination button:last-child { border: 1px solid #dce6f7; background: white; color: #005eff; }
#groups.gr-design .gr-pagination button.is-active { color: white; background: #0562ff; }
#groups.gr-design .gr-pagination button:disabled { opacity: .4; cursor: default; }
#groups.gr-design .gr-pagination svg { width: 17px; height: 17px; }
#groups.gr-design.gr-list #allGroups.account-card-grid { grid-template-columns: 1fr !important; }

@media (max-width: 1350px) and (min-width: 1151px) {
  #groups.gr-design .gr-hero { gap: 18px; padding-left: 23px; padding-right: 23px; }
  #groups.gr-design .gr-hero-identity { gap: 18px; }
  #groups.gr-design .gr-hero-icon { width: 72px; height: 77px; border-radius: 18px; }
  #groups.gr-design .gr-hero h2 { font-size: 31px; }
  #groups.gr-design .gr-hero p { font-size: 14px; }
  #groups.gr-design .gr-balances { flex-basis: 360px; min-width: 280px; padding: 14px 17px; }
  #groups.gr-design .gr-balance-summary + .gr-balance-summary { padding-left: 18px; margin-left: 14px; }
  #groups.gr-design .gr-balance-summary strong { font-size: 26px; }
  #groups.gr-design .gr-metric { gap: 15px; }
  #groups.gr-design .gr-toolbar .search { flex-basis: 210px; }
  #groups.gr-design .gr-reset { padding-inline: 12px; }
  #groups.gr-design .gr-toolbar #accountSort { width: 145px !important; }
  #groups.gr-design .gr-toolbar .account-settings { margin-left: 0 !important; }
}
@media (max-width: 1150px) {
  #groups.gr-design #allGroups.account-card-grid { grid-template-columns: 1fr !important; }
  #groups.gr-design .gr-hero { gap: 20px; padding-inline: 24px; }
  #groups.gr-design .gr-hero-identity { gap: 18px; }
  #groups.gr-design .gr-hero-icon { width: 70px; height: 75px; border-radius: 17px; }
  #groups.gr-design .gr-hero h2 { font-size: 30px; }
  #groups.gr-design .gr-hero p { font-size: 13px; }
  #groups.gr-design .gr-balances { flex-basis: 330px; min-width: 265px; padding: 15px; }
  #groups.gr-design .gr-balance-summary strong { font-size: 25px; }
  #groups.gr-design .gr-balance-summary + .gr-balance-summary { padding-left: 15px; margin-left: 12px; }
  #groups.gr-design .gr-balance-summary label { font-size: 10px; }
  #groups.gr-design .gr-metric { gap: 11px; }
  #groups.gr-design .gr-metric-icon { width: 40px; height: 42px; }
  #groups.gr-design .gr-metric > div > span { font-size: 11px; }
  #groups.gr-design .gr-toolbar .search { flex-basis: calc(100% - 125px); }
  #groups.gr-design .gr-toolbar .account-sort { margin-left: auto !important; }
  #groups.gr-design .gr-filterbar { align-items: flex-start; }
  #groups.gr-design .gr-filterbar .account-filters { gap: 6px; }
  #groups.gr-design .gr-filterbar .account-filters button { min-width: 73px; padding-inline: 10px; gap: 7px; }
  #groups.gr-design .gr-view-options { align-self: center; gap: 12px; }
  #groups.gr-design .gr-count { display: none; }
}
@media (max-width: 760px) {
  #groups.gr-design .gr-hero { align-items: flex-start; flex-direction: column; gap: 18px; padding: 23px 22px 20px; }
  #groups.gr-design .gr-hero-identity { gap: 18px; width: 100%; }
  #groups.gr-design .gr-hero-icon { width: 64px; height: 66px; border-radius: 15px; }
  #groups.gr-design .gr-hero-icon svg { width: 37px; height: 37px; }
  #groups.gr-design .gr-hero h2 { font-size: 30px; }
  #groups.gr-design .gr-hero p { font-size: 13px; letter-spacing: .01em; }
  #groups.gr-design .gr-balances { flex: none; width: 100%; min-width: 0; grid-template-columns: 1fr 1fr; padding: 13px 16px; }
  #groups.gr-design .gr-balance-summary label,
  #groups.gr-design .gr-balance-summary > span { font-size: 11px; }
  #groups.gr-design .gr-balance-summary strong { font-size: 26px; }
  #groups.gr-design .gr-metrics { padding-inline: 9px; }
  #groups.gr-design .gr-metric { gap: 8px; }
  #groups.gr-design .gr-metric-icon { width: 34px; height: 37px; border-radius: 9px; }
  #groups.gr-design .gr-metric-icon svg { width: 23px; height: 23px; }
  #groups.gr-design .gr-metric strong { font-size: 23px; }
  #groups.gr-design .gr-metric > div > span { font-size: 10px; }
  #groups.gr-design .gr-filterbar { flex-wrap: wrap; gap: 7px; }
  #groups.gr-design .gr-filterbar .account-filters { flex: 1; }
  #groups.gr-design .gr-view-options { margin-left: auto; }
}
@media (max-width: 600px) {
  #groups.gr-design > .section-title.gr-pagebar { flex-wrap: wrap; gap: 10px; margin-bottom: 12px !important; }
  #groups.gr-design .gr-breadcrumb { font-size: 12px; }
  #groups.gr-design .gr-pagebar .heading-actions { gap: 7px; margin-left: auto; }
  #groups.gr-design .gr-pagebar .heading-actions .btn { min-width: 0; min-height: 35px; height: 35px; gap: 6px; padding: 7px 11px; font-size: 11px; }
  #groups.gr-design .gr-pagebar .heading-actions svg { width: 16px; height: 16px; }
  #groups.gr-design .gr-connection { gap: 10px; padding: 10px 11px; }
  #groups.gr-design .gr-connection-icon { width: 28px; height: 28px; }
  #groups.gr-design .gr-connection-copy strong { font-size: 12px; }
  #groups.gr-design .gr-connection-copy small { font-size: 10px; line-height: 1.35; }
  #groups.gr-design .gr-manage-connection { max-width: 100px; gap: 5px; padding-left: 2px; font-size: 10px; line-height: 1.3; text-align: right; }
  #groups.gr-design .gr-manage-connection svg { width: 13px; height: 13px; }
  #groups.gr-design .gr-hero { padding: 19px 16px 17px; gap: 17px; }
  #groups.gr-design .gr-hero-identity { gap: 13px; }
  #groups.gr-design .gr-hero-icon { width: 52px; height: 57px; border-radius: 13px; }
  #groups.gr-design .gr-hero-icon svg { width: 32px; height: 32px; }
  #groups.gr-design .gr-eyebrow { font-size: 9px; margin-bottom: 5px; }
  #groups.gr-design .gr-hero h2 { font-size: clamp(22px, 5.8vw, 29px); letter-spacing: -.04em; }
  #groups.gr-design .gr-hero p { margin-top: 6px; font-size: 11px; line-height: 1.4; }
  #groups.gr-design .gr-balances { padding: 12px 13px; }
  #groups.gr-design .gr-balance-summary strong { font-size: clamp(20px, 5.4vw, 26px); }
  #groups.gr-design .gr-balance-summary + .gr-balance-summary { margin-left: 9px; padding-left: 16px; }
  #groups.gr-design .gr-balance-summary label,
  #groups.gr-design .gr-balance-summary > span { font-size: 10px; }
  #groups.gr-design .gr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; padding: 15px 8px; }
  #groups.gr-design .gr-metric { justify-content: flex-start; gap: 12px; padding-left: 14px; }
  #groups.gr-design .gr-metric + .gr-metric::before { top: 0; bottom: 0; }
  #groups.gr-design .gr-metric:nth-child(3)::before { display: none; }
  #groups.gr-design .gr-metric-icon { width: 40px; height: 40px; }
  #groups.gr-design .gr-metric > div > span { font-size: 11px; }
  #groups.gr-design .gr-toolbar { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; padding: 10px; }
  #groups.gr-design .gr-toolbar .search { grid-column: 1 / -1; width: 100%; height: 40px; }
  #groups.gr-design .gr-toolbar #groupSearch { font-size: 16px; }
  #groups.gr-design .gr-reset { gap: 5px; padding-inline: 9px; font-size: 11px; }
  #groups.gr-design .gr-reset svg { width: 16px; height: 16px; }
  #groups.gr-design .gr-toolbar .account-sort { grid-column: 2; min-width: 0; width: 100%; gap: 7px !important; font-size: 11px; margin-left: 0 !important; }
  #groups.gr-design .gr-toolbar #accountSort { flex: 1; min-width: 0; width: 100% !important; max-width: none; padding-left: 10px !important; font-size: 12px !important; }
  #groups.gr-design .gr-toolbar .account-settings { grid-column: 1 / -1; width: 100%; margin-left: 0 !important; }
  #groups.gr-design .gr-toolbar .account-settings > summary { width: 100%; gap: 8px; padding: 7px 12px !important; font-size: 12px !important; }
  #groups.gr-design .gr-toolbar .account-settings > summary svg { width: 16px; height: 16px; }
  #groups.gr-design .gr-filterbar { padding: 8px 10px; }
  #groups.gr-design .gr-filterbar .account-filters { flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; max-width: 100%; gap: 6px; padding-bottom: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  #groups.gr-design .gr-filterbar .account-filters button { flex: 0 0 auto; min-width: 0; padding: 5px 12px; gap: 6px; height: 31px; min-height: 31px; font-size: 11px; white-space: nowrap; }
  #groups.gr-design .gr-filterbar .account-filters button span { min-width: 18px; height: 18px; padding-inline: 4px; font-size: 10px; }
  #groups.gr-design .gr-view-options { width: 100%; justify-content: space-between; flex-direction: row-reverse; margin-top: 1px; }
  #groups.gr-design .gr-count { display: block; font-size: 11px; }
  #groups.gr-design .gr-footer { flex-wrap: wrap; gap: 9px; padding-top: 7px; }
  #groups.gr-design .gr-footer #accountDirectoryCount { font-size: 11px !important; }
  #groups.gr-design .gr-pagination { margin-left: auto; gap: 3px; }
  #groups.gr-design .gr-pagination button { width: 27px; height: 31px; min-height: 31px; font-size: 12px; }
}
@media (max-width: 380px) {
  #groups.gr-design .gr-breadcrumb { flex-basis: 100%; }
  #groups.gr-design .gr-pagebar .heading-actions { width: 100%; }
  #groups.gr-design .gr-pagebar .heading-actions .btn { flex: 1; }
  #groups.gr-design .gr-hero-copy { flex: 1; }
  #groups.gr-design .gr-hero h2 { font-size: 22px; }
  #groups.gr-design .gr-metric { padding-left: 9px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #groups.gr-design .gr-filterbar button { transition: none !important; }
}
