/* Portal styles: tokens and base primitives, screen components, then responsive refinements.
 * Later rules intentionally refine the original mockup baseline; preserve cascade order. */
:root {
  --wine: #a40035;
  --wine-dark: #89002b;
  --navy: #10254a;
  --blue: #174778;
  --sky: #e8f3fc;
  --line: #dfe5eb;
  --muted: #6d7890;
  --ink: #17233c;
  --paper: #fff;
  --canvas: #f5f7f9;
  --green: #16876e;
  --green-soft: #e2f3ed;
  --amber: #9a5b00;
  --amber-soft: #fff1d6;
  --red: #a83245;
  --shadow: 0 2px 7px rgba(17, 35, 64, 0.08);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
}
.layout {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 274px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--wine);
  color: white;
}
.brand {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: none;
}
.brand-mark {
  width: 64px;
  height: 64px;
  border: 3px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand-word {
  font-size: 13px;
  letter-spacing: 0.35em;
  font-weight: 700;
  padding-left: 0.35em;
}
.navigation {
  padding: 0 14px 16px;
}
.nav-group {
  margin: 3px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}
.nav-link,
.nav-heading {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
}
.nav-heading:hover,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nav-link.active,
.nav-heading.active {
  background: var(--wine-dark);
  font-weight: 650;
}
.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
}
.nav-heading .chevron {
  margin-left: auto;
  font-size: 16px;
  transition: transform 0.15s;
}
.nav-heading[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}
.nav-children {
  display: grid;
  gap: 0;
  padding: 1px 0 4px 45px;
}
.nav-children[hidden] {
  display: none;
}
.nav-children .nav-link {
  min-height: 35px;
  padding: 6px 8px;
  font-size: 13px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 12px 16px 18px;
  background: rgba(80, 0, 26, 0.2);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 3px;
  color: white;
  text-decoration: none;
}
.avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 650;
  flex: none;
}
.user-chip strong,
.user-chip small {
  display: block;
}
.user-chip strong {
  font-size: 13px;
}
.user-chip small {
  color: #f5dce5;
  font-size: 12px;
}
.shell {
  min-height: 100vh;
  margin-left: 274px;
}
.topbar {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid #e5e9ed;
}
.top-link {
  color: #273854;
  text-decoration: none;
  font-size: 13px;
}
.top-link:hover {
  text-decoration: underline;
}
.top-divider {
  height: 26px;
  border-left: 1px solid var(--line);
}
.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.top-user .avatar {
  width: 35px;
  height: 35px;
  border: 0;
  background: #eaf0f6;
  color: var(--navy);
}
.top-user small {
  display: block;
  color: var(--muted);
}
.main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 32px 44px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}
.page-heading h1 {
  margin: 0;
  color: #111d39;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.page-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.banner {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid #d4e7f6;
  border-radius: 9px;
  background: #e8f3fc;
}
.banner-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #d3e7f6;
  color: var(--navy);
  font-size: 24px;
}
.banner strong {
  display: block;
  font-size: 18px;
}
.banner p {
  margin: 2px 0 0;
  color: #58677f;
}
.banner .right-link {
  margin-left: auto;
  white-space: nowrap;
}
.columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stack {
  display: grid;
  gap: 16px;
}
.card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid #e1e6eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
}
.card h2,
.card h3 {
  margin: 0;
  color: #17223c;
  font-size: 17px;
  line-height: 1.3;
}
.card h3 {
  font-size: 15px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.org-name {
  margin: 7px 0 1px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric {
  padding: 14px 15px;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: #fff;
}
.metric strong {
  display: block;
  color: #17223c;
  font-size: 22px;
  line-height: 1.15;
}
.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.metric.blue {
  background: #f0f7fc;
}
.metric.green {
  background: #eef8f4;
}
.metric.amber {
  background: #fff8e9;
}
.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #aebdd0;
  border-radius: 6px;
  background: #fff;
  color: #172c50;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}
.btn:hover {
  background: #f4f8fb;
}
.btn-primary {
  border-color: #194b7d;
  background: #194b7d;
  color: #fff;
}
.btn-primary:hover {
  background: #123c68;
}
.btn-soft {
  border-color: #cfdeea;
  background: #dbeaf5;
  color: #16375e;
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: #174778;
}
.btn-danger {
  border-color: #b74756;
  background: #fff;
  color: #a1263a;
}
.btn-sm {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 12px;
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #124c86;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.text-link:hover {
  color: #082e5a;
}
.summary-title {
  font-size: 14px;
  font-weight: 700;
}
.summary-value {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.label {
  display: block;
  margin: 0 0 5px;
  color: #59667b;
  font-size: 12px;
  font-weight: 650;
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #edf0f3;
  color: #526175;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status.green {
  background: var(--green-soft);
  color: #176753;
}
.status.amber {
  background: var(--amber-soft);
  color: #875000;
}
.status.blue {
  background: #e6f1fb;
  color: #185183;
}
.status.red {
  background: #f9e6e8;
  color: #973144;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  background: white;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  padding: 11px 13px;
  background: #f5f7f9;
  color: #667187;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.data-table td {
  padding: 12px 13px;
  border-top: 1px solid #e8ebef;
  vertical-align: middle;
}
.data-table tr.clickable {
  cursor: pointer;
}
.data-table tr.clickable:hover {
  background: #f5f9fc;
}
.table-title {
  font-weight: 650;
  color: #183a63;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.field {
  min-height: 39px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #cfd7e1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.search-row .field {
  width: auto;
  min-width: 205px;
}
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.tab {
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #728096;
}
.tab.active {
  border-color: #164e83;
  color: #173d6c;
  font-weight: 700;
}
.app-card,
.event-card,
.person-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #e3eaf1;
  border-radius: 8px;
  background: #fff;
}
.app-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #e7f1f9;
  color: #163c68;
  font-size: 23px;
}
.app-card h3,
.event-card h3,
.person-card h3 {
  margin: 1px 0 4px;
  font-size: 14px;
}
.app-card p,
.event-card p,
.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.event-date {
  width: 52px;
  flex: none;
  padding: 5px 3px;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
  background: #f8fafb;
  text-align: center;
}
.event-date b {
  display: block;
  font-size: 18px;
  color: #194778;
}
.event-date span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.subtle-box {
  padding: 12px 14px;
  border: 1px solid #e3e9ef;
  border-radius: 7px;
  background: #f8fafc;
}
.callout {
  padding: 13px 15px;
  border-left: 4px solid #3981b3;
  border-radius: 4px;
  background: #edf6fb;
}
.callout.warning {
  border-color: #d49a2d;
  background: #fff7e8;
}
.callout.success {
  border-color: #288b71;
  background: #edf8f4;
}
.callout p {
  margin: 3px 0 0;
  color: #53627a;
}
.bar-chart {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 13px 12px 0;
  border-bottom: 1px solid #dce2e8;
}
.bar {
  position: relative;
  flex: 1;
  min-width: 10px;
  border-radius: 4px 4px 0 0;
  background: #5d91bd;
}
.bar:nth-child(3n + 2) {
  background: #9cc5df;
}
.bar-labels {
  display: flex;
  justify-content: space-around;
  padding-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 20px;
  background: #e6ebf0;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #238b73;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-field.full {
  grid-column: 1/-1;
}
.toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  position: relative;
  flex: none;
  border: 0;
  border-radius: 20px;
  background: #aeb8c5;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s;
}
.toggle:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0003;
  transition: transform 0.15s;
}
.toggle:checked {
  background: #25836f;
}
.toggle:checked:before {
  transform: translateX(18px);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.toggle-row:last-child {
  border-bottom: 0;
}
.footer-note {
  margin-top: 20px;
  color: #8a94a6;
  text-align: center;
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 29, 50, 0.48);
}
.modal {
  width: min(100%, 530px);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 70px #13274755;
}
.modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.modal p {
  color: #56637a;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.close-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0f3f6;
  color: #394a62;
  font-size: 20px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 19px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: 50%;
  max-width: min(90vw, 480px);
  transform: translate(-50%, 18px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #10254a;
  color: white;
  box-shadow: 0 8px 30px #13274a33;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-menu {
  display: none;
}
.empty-state {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 1120px) {
  .sidebar {
    width: 242px;
  }
  .shell {
    margin-left: 242px;
  }
  .main {
    padding: 22px 22px 38px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 22px;
  }
}
@media (max-width: 760px) {
  body {
    min-width: 980px;
  }
  .sidebar {
    transform: none;
    box-shadow: none;
  }
  .sidebar.open {
    transform: none;
  }
  .shell {
    margin-left: 242px;
  }
  .topbar {
    justify-content: flex-end;
  }
  .mobile-menu {
    display: none;
  }
  .main {
    padding: 20px 22px 38px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:root {
  --wine: #9d002e;
  --wine-dark: #780022;
  --navy: #0c2450;
  --blue: #1558a0;
  --sky: #e7f2fb;
  --line: #dfe6ed;
  --muted: #73809a;
  --ink: #10234a;
  --canvas: #f8fafc;
  --shadow: 0 2px 8px rgba(16, 36, 74, 0.075);
  font-family: "Poppins", Arial, sans-serif;
}
body {
  font-family: "Poppins", Arial, sans-serif;
  color: #10234a;
}
.sidebar {
  background: #9d002e;
}
.brand {
  height: 140px;
  gap: 3px;
}
.brand-mark {
  display: none;
}
.brand-logo {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
}
.brand-word {
  margin-top: -1px;
  font-size: 13px;
  letter-spacing: 0.34em;
}
.nav-link,
.nav-heading {
  font-size: 13px;
}
.nav-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.nav-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.nav-heading.active,
.nav-link.active {
  background: #790023;
}
.nav-group {
  padding-bottom: 5px;
  margin-bottom: 6px;
}
.topbar {
  border-bottom: 0;
  background: #fbfcfd;
}
.main {
  padding-top: 20px;
}
.page-heading h1 {
  font-size: 36px;
  letter-spacing: -0.035em;
}
.page-heading p {
  font-size: 15px;
}
.card {
  border-color: #e4ebf1;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(16, 36, 74, 0.06);
}
.card h2 {
  font-size: 17px;
}
.banner {
  border-color: #d9eafa;
  background: #e7f2fc;
}
.banner-icon {
  background: #cfe4f5;
  color: #0d2b5b;
}
.btn-primary {
  background: #194b7c;
  border-color: #194b7c;
}
.btn-soft {
  background: #dbe9f5;
  border-color: #dbe9f5;
}
.metric strong {
  letter-spacing: -0.035em;
}
.status {
  font-weight: 600;
}
.fab {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  border: 0;
  border-radius: 28px;
  padding: 11px 17px;
  background: #092958;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 12px #10254a44;
}
.fab svg {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 5px;
}
.impact-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 17px 24px;
  border-radius: 9px;
  background: #ddecfb;
  color: #0c2755;
}
.impact-seal {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #0c2755;
  flex: none;
}
.impact-seal svg {
  width: 52px;
  height: 58px;
}
.impact-banner h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.impact-banner p {
  margin: 1px 0 0;
  font-size: 14px;
  color: #294c7e;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.impact-card {
  min-height: 144px;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: start;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid #e2e9f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 36, 74, 0.055);
}
.impact-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0d3567;
  background: #e1effa;
}
.impact-icon svg {
  width: 30px;
  height: 30px;
}
.impact-icon.mint {
  background: #d4f5ed;
  color: #08715e;
}
.impact-icon.violet {
  background: #eee1ff;
  color: #5632a4;
}
.impact-icon.gold {
  background: #fff0cc;
  color: #845400;
}
.impact-icon.blue {
  background: #dbeeff;
  color: #0750a1;
}
.impact-icon.purple {
  background: #eee2ff;
  color: #54249a;
}
.impact-card h3 {
  margin: 2px 0 1px;
  font-size: 12px;
  line-height: 1.35;
}
.impact-value {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #081b43;
}
.impact-card p {
  margin: 1px 0;
  color: #657590;
  font-size: 12px;
  line-height: 1.35;
}
.trend {
  display: block;
  margin-top: 7px;
  color: #078245;
  font-weight: 650;
  font-size: 12px;
}
.trend small {
  display: block;
  color: #7886a0;
  font-style: italic;
  font-weight: 400;
}
.impact-card.roi {
  background: #e9f4fc;
}
.impact-card.roi .impact-value {
  font-size: 39px;
  color: #0e4a91;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1.22fr 1.1fr 1.24fr;
  gap: 12px;
}
.insight-grid .card {
  padding: 14px 15px;
}
.insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #102a5b;
}
.insight-title svg {
  width: 20px;
  height: 20px;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.engagement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.engagement-table th {
  padding: 6px 5px;
  background: #edf3f8;
  text-align: left;
  font-size: 9px;
}
.engagement-table td {
  padding: 5px;
  border-bottom: 1px solid #e8edf2;
  white-space: nowrap;
}
.engagement-table .score {
  font-weight: 700;
}
.scorebar {
  width: 58px;
  height: 7px;
  background: #e2e8ef;
  border-radius: 5px;
  overflow: hidden;
}
.scorebar i {
  height: 100%;
  display: block;
  background: #277cc0;
}
.full-report {
  display: block;
  margin: 10px auto 0;
}
.breakdown-layout {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut {
  width: 160px;
  height: 160px;
  position: relative;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    #0f2c57 0 32%,
    #318bda 32% 53%,
    #e6a329 53% 71%,
    #7692ae 71% 87%,
    #32b7a7 87% 100%
  );
}
.donut:after {
  content: "";
  position: absolute;
  inset: 33px;
  border-radius: 50%;
  background: #fff;
}
.donut-center {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #10234a;
  font-size: 11px;
  line-height: 1.3;
}
.donut-center b {
  font-size: 22px;
}
.breakdown-legend {
  flex: 1;
  display: grid;
  gap: 8px;
  font-size: 11px;
}
.legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.navy {
  background: #0f2c57;
}
.legend-dot.blue {
  background: #318bda;
}
.legend-dot.gold {
  background: #e6a329;
}
.legend-dot.slate {
  background: #7692ae;
}
.legend-dot.mint {
  background: #32b7a7;
}
.learn-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 7px;
  background: #edf5fb;
  color: #335780;
  font-size: 10px;
  line-height: 1.4;
}
.learn-callout svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.modal-summary {
  margin: 12px 0;
  padding: 14px 17px;
  border-radius: 7px;
  background: #e9f3fc;
}
.modal-summary strong {
  display: block;
  margin-bottom: 8px;
}
.modal-summary .row {
  margin-top: 5px;
}
.modal {
  border-radius: 12px;
  padding: 25px 28px;
}
.modal h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
}
.modal p {
  line-height: 1.65;
}
.modal-actions .btn {
  min-width: 138px;
  min-height: 44px;
  font-size: 14px;
}
.modal .close-btn {
  background: transparent;
  color: #476db3;
}
@media (max-width: 1200px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insight-grid .breakdown-card {
    grid-column: 1/-1;
  }
}
@media (max-width: 980px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .insight-grid .breakdown-card {
    grid-column: auto;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .breakdown-layout {
    justify-content: flex-start;
  }
}

/* Reference-specific dashboard refinements */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 12px;
}
.breadcrumb a {
  color: #31598a;
  text-decoration: none;
}
.year-select {
  width: 96px;
  min-height: 40px;
}
.page-heading:has(.year-select) {
  align-items: center;
}
.page-heading:has(.year-select) h1 {
  color: #152643;
}
.page-heading:has(.year-select) p {
  font-size: 13px;
}
.page-heading:has(.year-select) .heading-actions {
  gap: 8px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: -3px 0 8px 28px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
  max-width: 100%;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: normal;
}
.chart-legend .legend-line {
  flex: none;
}
.chart-grid path {
  stroke: #e6ebf0;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: none;
}
.line-engagement,
.line-spend {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-engagement {
  stroke: #12335d;
}
.line-spend {
  stroke: #3289d4;
}
.chart-labels {
  fill: #718096;
  font-size: 10px;
}
.chart-labels text {
  text-anchor: middle;
}
.engagement-table .scorebar {
  display: inline-block;
  vertical-align: middle;
}
.engagement-table .scorebar i {
  border-radius: 5px;
}
.contact-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #185b9c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.contact-link:hover {
  text-decoration: underline;
}
.icon-plain {
  display: inline-grid;
  place-items: center;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3e6ca7;
  cursor: pointer;
}
.breakdown-card > .text-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.breakdown-card > .text-link:not(.full-report) {
  font-size: 11px;
}
.modal-wide {
  width: min(760px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
}
.modal-wide .modal-head {
  align-items: flex-start;
}
.modal-wide .modal-head > div {
  width: 100%;
}
.modal-wide .modal-head p {
  margin: 4px 0 16px;
}
.choice-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.choice-list label,
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #26364c;
  font-size: 13px;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.modal-wide .data-table {
  font-size: 12px;
}
.contact-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}
.contact-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.contact-stat-grid .metric {
  min-height: 84px;
}
.contact-stat-grid .metric strong {
  font-size: 23px;
}
.modal-breakdown {
  justify-content: center;
  padding: 8px 20px 18px;
}
.modal-breakdown .donut {
  width: 190px;
  height: 190px;
}
.modal-breakdown .donut:after {
  inset: 39px;
}
.modal-breakdown .donut-center b {
  font-size: 26px;
}
.cancel-modal {
  width: min(580px, calc(100vw - 32px));
  padding: 34px 38px;
}
.cancel-modal > .close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
}
.cancel-modal h2 {
  margin: 0 30px 12px 0;
  font-size: 28px;
  color: #162944;
}
.cancel-modal > p {
  margin: 0 0 14px;
  color: #44546a;
  font-size: 14px;
}
.cancel-modal .modal-summary {
  margin: 18px 0;
  padding: 17px 20px;
  background: #e8f2fb;
  color: #18395e;
}
.cancel-modal .modal-summary .row {
  padding: 5px 0;
  font-size: 13px;
}
.cancel-modal .modal-summary .row + .row {
  border-top: 1px solid #d1e1ef;
}
.cancel-modal .modal-actions {
  justify-content: flex-end;
  margin-top: 26px;
}
.btn-outline-danger {
  border: 1px solid #aa1741;
  background: #fff;
  color: #a20b35;
}
.btn-outline-danger:hover {
  background: #fff4f6;
}
@media (max-width: 760px) {
  .contact-stat-grid {
    grid-template-columns: 1fr;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .modal-breakdown {
    flex-direction: column;
  }
  .cancel-modal {
    padding: 30px 22px;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid label {
  display: block;
}
.form-grid .label {
  display: block;
  margin: 0 0 5px;
}
.address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.address-head .label {
  margin: 0;
}
.address-panel {
  line-height: 1.7;
}
.remove-link {
  display: inline-block;
  margin-top: 10px;
  color: #a32c44;
}
.modal-wide .modal-actions .btn:empty {
  display: none;
}

/* Shell alignment and account menu from the supplied Connect screens */
.topbar {
  display: none;
}
.shell {
  margin-left: 274px;
}
.main {
  padding-top: 24px;
}
.page-heading {
  align-items: flex-start;
}
.heading-actions {
  align-items: flex-start;
}
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0 auto;
  color: #142746;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.help-link svg {
  flex: none;
}
.sidebar-foot.account-menu-area {
  position: relative;
  flex: none;
  margin-top: auto;
  padding: 10px 15px 18px;
  background: transparent;
}
.user-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.user-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.user-info {
  min-width: 0;
  flex: 1;
}
.user-info strong,
.user-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-info strong {
  font-size: 13px;
}
.user-info small {
  color: #f5dce5;
  font-size: 12px;
}
.account-chevron {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
}
.account-popover {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: calc(100% - 2px);
  left: 14px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: #fff;
  color: #1a3152;
  box-shadow: 0 10px 28px rgba(10, 24, 45, 0.2);
}
.account-popover[hidden] {
  display: none;
}
.account-menu-link {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1e3659;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.account-menu-link svg {
  flex: none;
  color: #294d7c;
}
.account-menu-link:hover,
.account-menu-link.active {
  background: #e3eff8;
}
.account-menu-divider {
  height: 1px;
  margin: 4px 4px;
  background: #dce4ec;
}
.account-menu-link.sign-out {
  color: #17375f;
}
.account-menu-link.sign-out svg {
  color: #284d7b;
}
@media (max-width: 1120px) {
  .shell {
    margin-left: 242px;
  }
  .help-link {
    font-size: 13px;
  }
}

/* Layouts and controls matched to the supplied page mockups */
.link-button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.page-heading {
  gap: 24px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.help-link {
  padding: 5px 0;
}
.help-link:hover {
  color: #174d86;
}
.heading-sub {
  font-size: 14px;
  color: #66758c;
  font-weight: 400;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.8fr);
  gap: 14px;
}
.profile-main {
  display: grid;
  gap: 14px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 156px;
}
.profile-avatar {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #dcebf7;
  color: #10274e;
  font-size: 35px;
  font-weight: 600;
}
.profile-person {
  flex: 1;
}
.profile-person h2 {
  margin: 0;
  font-size: 21px;
}
.profile-person p {
  margin: 3px 0;
  color: #5f6e83;
}
.profile-completion {
  align-self: start;
}
.profile-completion h2 {
  margin: 0 0 14px;
}
.completion-bar {
  height: 16px;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  background: #e6eaf0;
}
.completion-bar i {
  width: 75%;
  background: #91b9d9;
}
.completion-value {
  text-align: right;
  font-weight: 600;
}
.profile-completion .completion-percent {
  display: block;
  margin: 12px 0 8px;
  color: #17223c;
  font-size: 20px;
  line-height: 1.2;
}
.profile-completion .completion-meter {
  width: 100%;
  height: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}
.profile-completion .completion-meter i {
  display: block;
  width: var(--completion-value, 75%);
  height: 100%;
  border-radius: inherit;
  background: #1f6fb2;
  animation: profile-completion-grow 1.1s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
@keyframes profile-completion-grow {
  from { width: 8%; }
  to { width: var(--completion-value, 75%); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-completion .completion-meter i {
    animation: none;
  }
}
.suggestion {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: #41536b;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.info-pair {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  padding: 6px 0;
  color: #65748a;
}
.info-pair b {
  color: #20334c;
  font-weight: 500;
}
.section-banner {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e7f2fb;
  color: #344e70;
}
.section-actions {
  display: flex;
  gap: 8px;
}
.profile-section {
  margin-top: 14px;
}
.profile-section .card-head {
  align-items: center;
}
.profile-section h2 {
  margin-bottom: 10px;
}
.address-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.95fr);
  gap: 14px;
  align-items: start;
}
.address-cards {
  display: grid;
  gap: 14px;
}
.address-item p {
  line-height: 1.7;
}
.address-editor {
  position: relative;
}
.address-editor .close-btn {
  position: absolute;
  right: 14px;
  top: 12px;
}
.address-editor h2 {
  padding-right: 35px;
}
.address-notice {
  margin-bottom: 14px;
}
.address-editor .modal-actions {
  margin-top: 18px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.privacy-right {
  display: grid;
  gap: 14px;
}
.privacy-subhead {
  margin: 20px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.privacy-subhead h3 {
  margin: 0;
  font-size: 14px;
}
.privacy-subhead p {
  margin: 4px 0;
  color: #73809a;
  font-size: 12px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #e9edf2;
}
.toggle-row p {
  margin: 3px 0 0;
  font-size: 12px;
}
.switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.switch-wrap input {
  appearance: none;
  width: 38px;
  height: 22px;
  position: relative;
  border-radius: 14px;
  background: #bac5d0;
  cursor: pointer;
}
.switch-wrap input:checked {
  background: #285e93;
}
.switch-wrap input:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: 0.15s;
}
.switch-wrap input:checked:after {
  left: 19px;
}
.save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
.privacy-buttons {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}
.small-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.small-banner svg {
  flex: none;
}
.removal-steps {
  margin-top: 14px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.steps-grid p {
  color: #73809a;
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.username-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.timezone-row {
  display: flex;
  gap: 10px;
}
.timezone-row select {
  flex: 1;
}
.login-history {
  grid-column: 1/-1;
}
.login-history .table-wrap {
  margin-top: 10px;
}
.login-history .data-table {
  min-width: 720px;
}
.report-list {
  display: grid;
  gap: 12px;
}
.report-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
}
.report-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f1fa;
  color: #163968;
}
.report-copy h2 {
  margin: 0 0 5px;
}
.report-copy p {
  margin: 0;
  color: #64748b;
}
.report-copy small {
  display: block;
  margin-top: 5px;
  color: #73809a;
}
.report-year {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.report-year select {
  width: 105px;
}
.report-access {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
  background: #e7f2fb;
  color: #25446d;
}
.report-access p {
  margin: 4px 0 0;
  color: #526985;
}
.financial-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.financial-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.financial-summary span {
  color: #6e7d91;
  font-size: 13px;
}
.financial-summary b {
  font-size: 25px;
}
.order-controls {
  margin-bottom: 14px;
}
.order-filter-row,
.order-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-filter-row .field {
  flex: 1;
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #718096;
}
.date-filter input {
  width: 110px;
  min-height: 40px;
  border: 0;
  outline: none;
}
.order-sort-row {
  margin-top: 12px;
  color: #66758b;
  font-size: 12px;
}
.order-sort-row .field {
  width: auto;
  min-width: 115px;
  min-height: 38px;
}
.matching-orders {
  margin-left: auto;
  color: #263b5b;
  font-weight: 600;
}
.order-cards {
  display: grid;
  gap: 12px;
}
.order-list-card {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.85fr;
  gap: 22px;
  align-items: center;
}
.order-info,
.order-totals,
.order-balance {
  display: grid;
  gap: 7px;
}
.order-info > span,
.order-totals span,
.order-balance span {
  color: #66758b;
  font-size: 12px;
}
.order-info > strong {
  font-size: 16px;
}
.order-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.order-totals .order-total {
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.order-balance {
  align-content: center;
}
.order-balance .btn {
  margin-top: 4px;
}
.blue-text {
  color: #1c6094;
}
.order-list-foot {
  text-align: right;
  margin: 12px 4px;
  color: #66758b;
  font-size: 12px;
}
.order-back {
  margin: 0 0 8px;
}
.order-back a {
  color: #31598a;
  text-decoration: none;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}
.order-detail-main {
  display: grid;
  gap: 14px;
}
.order-detail-main .grid-2 {
  grid-template-columns: 1fr 1fr;
}
.item-table {
  min-width: 560px;
}
.order-summary {
  align-self: start;
  display: grid;
  gap: 12px;
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9edf2;
}
.order-summary .order-total {
  font-size: 16px;
}
.due-balance {
  color: #9b1738;
}
.paid-balance {
  color: #276344;
}
.compact-notice {
  margin-bottom: 14px;
}
.event-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.event-search {
  max-width: 100%;
  margin: 6px 0 12px;
}
.event-count {
  margin: 8px 0;
  color: #314764;
  font-weight: 600;
}
.event-list {
  display: grid;
  gap: 12px;
}
.event-card-full,
.event-card-registration {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  padding: 17px 19px;
  border: 1px solid #e0e7ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
}
.event-date {
  width: 64px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #edf4fa;
  color: #17365f;
}
.event-date b {
  font-size: 13px;
}
.event-date strong {
  font-size: 27px;
  line-height: 1.2;
}
.event-date span {
  font-size: 11px;
  color: #6c7d91;
}
.event-detail h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.event-detail p {
  margin: 8px 0 0;
  color: #63738a;
  font-size: 13px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: #5c6c82;
  font-size: 12px;
}
.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.registration-status {
  font-weight: 600;
}
.registration-status.confirmed {
  color: #187248;
}
.registration-status.pending {
  color: #9b6c13;
}
.registration-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.registration-meta span {
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.registration-meta small {
  color: #78869a;
  font-size: 10px;
}
.event-actions {
  display: grid;
  gap: 7px;
}
.location-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.location-banner > div:nth-child(2) {
  flex: 1;
}
.events-foot {
  margin-top: 12px;
  text-align: center;
  color: #69788d;
  font-size: 12px;
}
.events-nearby {
  display: block;
  margin-top: 12px;
}
.app-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
}
.app-filter-row > span {
  margin-left: auto;
  color: #73809a;
  font-size: 12px;
}
.filter-pill {
  padding: 8px 13px;
  border: 1px solid #dce4ed;
  border-radius: 20px;
  background: #fff;
  color: #345071;
  cursor: pointer;
}
.filter-pill.active {
  background: #193d68;
  color: #fff;
  border-color: #193d68;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.service-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-heading .app-icon {
  width: 48px;
  height: 48px;
}
.service-heading h2 {
  margin: 0 0 5px;
}
.service-card > p {
  flex: 1;
  color: #617187;
  font-size: 13px;
  line-height: 1.55;
}
.service-domain {
  margin: 0 0 10px;
  color: #60758e;
  font-size: 12px;
}
.service-domain svg {
  vertical-align: -3px;
}
.apps-foot {
  margin-top: 14px;
  color: #718096;
  font-size: 12px;
}
.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 24, 38, 0.63);
}
.help-dialog {
  width: min(1068px, calc(100vw - 36px));
  max-height: calc(100vh - 38px);
  overflow: auto;
  padding: 20px 30px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.help-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-dialog-head .close-btn {
  position: static;
}
.help-dialog h2 {
  margin: 12px 0 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}
.help-dialog > p {
  margin: 0 0 14px;
  color: #475a73;
  font-size: 16px;
}
.help-search {
  margin-bottom: 12px;
}
.help-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.help-category {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
}
.help-category h3 {
  display: contents;
  font-size: 15px;
}
.help-category h3 svg {
  grid-row: span 5;
  width: 42px;
  height: 42px;
}
.help-category h3 span {
  font-weight: 700;
  color: #172943;
}
.help-category > div {
  grid-column: 2;
}
.help-category a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px;
  border-bottom: 1px solid #e9edf2;
  color: #42536d;
  text-decoration: none;
  font-size: 12px;
}
.help-category a:last-child {
  border-bottom: 0;
}
.help-category a span {
  font-size: 17px;
  color: #142a49;
}
.help-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 10px 13px;
  border-radius: 6px;
  background: #e9f3fb;
  color: #355579;
  font-size: 12px;
}
.help-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #edf5fb;
}
.help-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.help-footer small {
  display: block;
  color: #66758b;
}
.help-footer .btn {
  white-space: nowrap;
}
.legend-dot.violet {
  background: #8252d4;
}
.legend-line {
  width: 18px;
  height: 2px;
  display: inline-block;
  background: #0f2c57;
  position: relative;
}
.legend-line:after {
  content: "";
  position: absolute;
  left: 7px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f2c57;
}
.engagement-chart {
  max-height: 290px;
}
.engagement-table {
  min-width: 430px;
  font-size: 9px;
}
.engagement-table td {
  padding: 4px 3px;
}
.engagement-table th {
  font-size: 9px;
  padding: 5px 3px;
}
.engagement-table .scorebar {
  width: 54px;
  height: 7px;
}
.impact-card p {
  margin: 2px 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.35;
}
.impact-card .trend {
  margin-top: 8px;
  font-size: 13px;
}
.impact-card .trend small {
  font-size: 11px;
}
.service-card[hidden] {
  display: none;
}
.donut {
  background: conic-gradient(
    #0f2c57 0 32%,
    #318bda 32% 53%,
    #e6a329 53% 71%,
    #8252d4 71% 87%,
    #32b7a7 87% 100%
  );
}
.payment-panel {
  width: min(560px, calc(100vw - 24px));
  height: 100vh;
  max-height: 100vh;
  margin-left: auto;
  margin-right: 0;
  border-radius: 12px 0 0 12px;
}
.modal-backdrop:has(.payment-panel) {
  place-items: stretch end;
  padding: 0;
  background: rgba(10, 22, 38, 0.55);
}
.payment-panel .close-btn {
  position: absolute;
  right: 22px;
  top: 22px;
}
.payment-panel > h2 {
  margin-top: 0;
  padding-right: 35px;
}
.payment-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.payment-columns h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}
.payment-columns p {
  color: #52647b;
  line-height: 1.7;
}
.payment-panel .modal-actions {
  position: sticky;
  bottom: -22px;
  padding: 12px 0;
  background: #fff;
}
.footer-left {
  text-align: left;
}
.login-foot {
  display: block;
  margin-top: 12px;
  color: #8993a4;
  font-size: 11px;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px dashed #cbd7e4;
  border-radius: 8px;
  background: #f9fbfd;
}
.profile-edit-list {
  display: grid;
  gap: 10px;
}

/* Consistent data-list rhythm, organization status pills, and aligned form controls. */
.home-org-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.member-manager {
  padding: 20px 18px 18px;
}
.member-filters {
  gap: 10px;
  margin-bottom: 16px;
}
.member-filters .field {
  min-height: 40px;
}
.member-bulk {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 0 2px;
  min-height: 44px;
}
.member-select-all {
  grid-column: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-bulk .selection-status {
  grid-column: 2;
  justify-self: center;
  min-height: 40px;
}
.member-action-wrap {
  grid-column: 3;
  justify-self: end;
  position: relative;
}
.member-table-wrap {
  margin-bottom: 2px;
}
.pagination-row {
  gap: 7px;
  margin: 13px 2px 3px;
  padding-bottom: 2px;
}
.member-note {
  margin-top: 16px;
  padding-top: 14px;
}
.org-summary-grid:has(> .value-card:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.tech-exchange-notice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #b9d9f2;
  border-radius: 6px;
  background: #edf6fd;
  color: #28496a;
}
.tech-exchange-notice-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7eaf8;
  color: #174778;
}
.tech-exchange-notice p {
  display: grid;
  gap: 2px;
  margin: 0;
  line-height: 1.4;
}
.tech-exchange-notice p strong {
  color: #183d66;
  font-size: 13px;
}
.tech-exchange-notice p span {
  color: #4d6680;
  font-size: 12px;
}
.tech-exchange-cta {
  min-height: 36px;
  white-space: nowrap;
}
.main .field,
.modal input:not([type="checkbox"]),
.modal select,
.modal textarea,
.date-filter input {
  min-height: 40px;
  border-radius: 5px;
}
.main .field:hover,
.modal input:not([type="checkbox"]):hover,
.modal select:hover,
.modal textarea:hover {
  border-color: #8299b1;
}
.main .field:focus-visible,
.modal input:not([type="checkbox"]):focus-visible,
.modal select:focus-visible,
.modal textarea:focus-visible {
  outline: 2px solid #1b96ff;
  outline-offset: 1px;
  border-color: #1b96ff;
  box-shadow: 0 0 0 3px rgba(27, 150, 255, 0.14);
}
.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.payment-detail-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.payment-detail-grid small {
  color: #61718a;
  font-size: 12px;
}
.payment-detail-grid b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .member-bulk {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .member-select-all {
    grid-column: 1;
  }
  .member-bulk .selection-status {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    padding-left: 4px;
  }
  .member-action-wrap {
    grid-column: 2;
    grid-row: 1/3;
  }
  .tech-exchange-notice {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .tech-exchange-cta {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .member-manager {
    padding: 14px 12px 16px;
  }
  .member-filters {
    gap: 8px;
    margin-bottom: 12px;
  }
  .member-bulk {
    gap: 5px 8px;
    margin-bottom: 10px;
  }
  .pagination-row {
    margin-top: 11px;
  }
  .member-note {
    margin-top: 12px;
    padding-top: 12px;
  }
  .tech-exchange-notice {
    gap: 8px;
    padding: 11px;
  }
  .tech-exchange-notice .tech-exchange-cta {
    width: 100%;
  }
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }
  .main .field,
  .modal input:not([type="checkbox"]),
  .modal select,
  .modal textarea {
    min-height: 44px;
  }
}
@media (max-width: 1050px) {
  .profile-grid,
  .address-layout,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .profile-completion {
    align-self: stretch;
  }
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-list-card {
    grid-template-columns: 1fr 1fr;
  }
  .order-balance {
    grid-column: 1/-1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  .order-summary {
    grid-row: 1;
  }
  .help-dialog {
    padding: 18px;
  }
  .help-dialog h2 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .settings-grid,
  .steps-grid,
  .financial-summary {
    grid-template-columns: 1fr;
  }
  .login-history {
    grid-column: auto;
  }
  .report-card {
    grid-template-columns: 48px 1fr;
  }
  .report-card > .btn {
    grid-column: 2;
  }
  .order-filter-row,
  .order-sort-row {
    flex-wrap: wrap;
  }
  .order-filter-row .field {
    min-width: 40%;
  }
  .order-sort-row .matching-orders {
    margin-left: 0;
  }
  .event-card-full,
  .event-card-registration {
    grid-template-columns: 64px 1fr;
  }
  .event-actions {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }
  .registration-meta {
    gap: 12px;
    flex-wrap: wrap;
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .help-category-grid {
    grid-template-columns: 1fr;
  }
  .help-footer {
    flex-wrap: wrap;
  }
  .help-footer > div {
    flex-basis: 100%;
  }
  .help-dialog h2 {
    font-size: 24px;
  }
}

/* Unified ILTA Connect component standards: SLDS-style sizing and states */
:root {
  --ui-font: "Poppins", "Salesforce Sans", Arial, sans-serif;
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 20px;
  --ui-space-6: 24px;
  --ui-text: #17233c;
  --ui-muted: #5c6675;
  --muted: #5c6675;
  --ui-border: #d5dde6;
  --ui-border-strong: #aebdcd;
  --ui-canvas: #f5f7f9;
  --ui-surface: #fff;
  --ui-brand: #174778;
  --ui-focus: #1b96ff;
  --ui-info-bg: #e8f3fc;
  --ui-info-border: #cbdff1;
  --ui-info-text: #334e70;
  --ui-success-bg: #e2f3ed;
  --ui-success: #176753;
  --ui-warning-bg: #fff1d6;
  --ui-warning: #875000;
  --ui-error-bg: #f9e6e8;
  --ui-error: #973144;
  --ui-card-radius: 8px;
  --ui-control-radius: 4px;
  --ui-shadow: 0 1px 3px rgba(17, 35, 64, 0.1);
  font-family: var(--ui-font);
  color: var(--ui-text);
}
html,
body,
button,
input,
select,
textarea {
  font-family: var(--ui-font);
}
body {
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.45;
}
button,
input,
select,
textarea {
  color: inherit;
}
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
}
:where(a, button, input, select, textarea) {
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

/* Shared page rhythm */
.main {
  padding: 24px 24px 40px;
}
.page-heading {
  gap: 16px;
  margin-bottom: 16px;
}
.page-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.page-heading p {
  font-size: 15px;
  line-height: 1.4;
}
.page-heading + .banner,
.page-heading + .card,
.page-heading + .grid-2,
.page-heading + .grid-3,
.page-heading + .grid-4 {
  margin-top: 0;
}
.grid-2,
.grid-3,
.grid-4,
.home-overview,
.apps-grid,
.org-summary-grid,
.event-list,
.order-cards,
.report-list,
.address-cards,
.profile-grid,
.settings-grid,
.privacy-grid,
.steps-grid,
.stack {
  gap: var(--ui-space-3);
}
.card {
  min-width: 0;
  padding: var(--ui-space-4);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-card-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}
.card h2 {
  margin: 0 0 var(--ui-space-2);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card h3 {
  font-size: 15px;
  line-height: 1.35;
}
.card-head {
  gap: var(--ui-space-3);
  padding-bottom: var(--ui-space-3);
  margin-bottom: var(--ui-space-3);
  border-color: var(--ui-border);
}
.card-head h2 {
  margin: 0;
}
.card > p {
  line-height: 1.5;
}
.main > .card + .card,
.main > .card + .grid-2,
.main > .grid-2 + .card,
.main > .grid-2 + .grid-2 {
  margin-top: var(--ui-space-3);
}
.footer-note {
  margin-top: var(--ui-space-4);
  color: #7b8799;
  font-size: 12px;
  line-height: 1.4;
}

/* Buttons use a small, predictable set of variants */
.btn {
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-control-radius);
  background: #fff;
  color: #17375f;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  box-shadow: none;
}
.btn:hover {
  border-color: #7f97ae;
  background: #f3f6f9;
  color: #102d52;
}
.btn:active:not(:disabled) {
  background: #e8edf2;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary {
  border-color: #174778;
  background: #174778;
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  border-color: #123b66;
  background: #123b66;
  color: #fff;
}
.btn-primary:active:not(:disabled) {
  background: #0d2f54;
}
.btn-soft {
  border-color: #bfd2e2;
  background: #dbeaf5;
  color: #16375e;
  font-weight: 600;
}
.btn-soft:hover {
  border-color: #91acc4;
  background: #cbddeb;
  color: #112e51;
}
.btn-soft:active:not(:disabled) {
  background: #b9cede;
}
.btn-outline,
.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: #174778;
}
.btn-outline {
  border-color: #8ea3ba;
  background: #fff;
}
.btn-outline:hover,
.btn-quiet:hover {
  border-color: #718ca8;
  background: #eef4f8;
  color: #123e6b;
}
.btn-danger,
.btn-outline-danger {
  border-color: #ba0517;
  background: #fff;
  color: #ba0517;
}
.btn-danger:hover,
.btn-outline-danger:hover {
  background: #fef0f1;
  color: #8e0010;
}
.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.button-row,
.button-group,
.modal-actions {
  gap: var(--ui-space-2);
}
.btn.full-width {
  width: 100%;
}
.icon-plain {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #334e70;
}
.icon-plain:hover {
  border-color: var(--ui-border);
  background: #f3f6f9;
}
.icon-plain:active {
  background: #e8edf2;
}

/* Inputs and selection controls */
.field {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #aebdcd;
  border-radius: var(--ui-control-radius);
  background: #fff;
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.field:hover {
  border-color: #7e91a6;
}
.field:focus {
  border-color: #1b96ff;
  box-shadow: 0 0 0 1px #1b96ff;
  outline: 0;
}
.field:disabled {
  background: #f3f3f3;
  color: #747474;
  cursor: not-allowed;
}
label,
.label {
  color: #3e4d62;
  font-size: 13px;
  font-weight: 500;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #174778;
}

/* Shared labels, badges, and state colors */
.status {
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.status.green {
  background: var(--ui-success-bg);
  color: var(--ui-success);
}
.status.amber {
  background: var(--ui-warning-bg);
  color: var(--ui-warning);
}
.status.red {
  background: var(--ui-error-bg);
  color: var(--ui-error);
}
.status.blue {
  background: #e6f1fb;
  color: #185183;
}
.status.gray,
.status.neutral {
  background: #f3f3f3;
  color: #444;
  border-color: #e5e5e5;
}
.registration-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.registration-status.confirmed {
  color: var(--ui-success);
}
.registration-status.pending {
  color: var(--ui-warning);
}
.score,
.org-tag,
.tag,
.pill {
  border-radius: 4px;
}

/* Information banners, contextual notes, and action feedback are distinct patterns */
.banner,
.section-banner,
.help-note,
.report-access,
.small-banner {
  border: 1px solid var(--ui-info-border);
  border-radius: 4px;
  background: var(--ui-info-bg);
  color: var(--ui-info-text);
}
.banner {
  gap: var(--ui-space-3);
  margin-bottom: var(--ui-space-3);
  padding: 12px 16px;
}
.banner strong {
  font-size: 15px;
  line-height: 1.35;
}
.banner p {
  font-size: 13px;
  line-height: 1.45;
}
.banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #d6e8f6;
  color: #164a79;
}
.small-banner {
  align-items: flex-start;
  gap: var(--ui-space-2);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.small-banner > svg,
.section-banner > svg,
.help-note > svg,
.member-note-icon svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: #426685;
}
.section-banner {
  margin: var(--ui-space-3) 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.help-note {
  gap: var(--ui-space-2);
  margin: var(--ui-space-3) 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.report-access {
  gap: var(--ui-space-3);
  padding: 14px;
}
.member-note {
  display: flex;
  align-items: center;
  gap: var(--ui-space-3);
  margin-top: var(--ui-space-4);
  padding: 12px 2px 0;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  color: #53647b;
  font-size: 14px;
  line-height: 1.45;
}
.member-note-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  color: #687d96;
}
.inline-notice.warning {
  background: var(--ui-warning-bg);
  border-color: #f2d49a;
  color: #694200;
}
.inline-notice.success {
  background: var(--ui-success-bg);
  border-color: #b7ddce;
  color: #175b47;
}
.inline-notice.error {
  background: var(--ui-error-bg);
  border-color: #e8b8be;
  color: #8e2636;
}
.toast {
  position: fixed;
  z-index: 60;
  top: 20px;
  right: 24px;
  bottom: auto;
  left: auto;
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  transform: translateY(-8px);
  border: 1px solid var(--ui-border);
  border-left: 4px solid #56738d;
  border-radius: 4px;
  background: #fff;
  color: #181818;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast[data-variant="success"] {
  border-left-color: #2e844a;
}
.toast[data-variant="warning"] {
  border-left-color: #fe9339;
}
.toast[data-variant="error"] {
  border-left-color: #ba0517;
}
.toast[data-variant="info"] {
  border-left-color: #1b96ff;
}
.toast-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  color: #56738d;
}
.toast[data-variant="success"] .toast-icon {
  color: #2e844a;
}
.toast[data-variant="warning"] .toast-icon {
  color: #ba7100;
}
.toast[data-variant="error"] .toast-icon {
  color: #ba0517;
}
.toast[data-variant="info"] .toast-icon {
  color: #0176d3;
}
.toast-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.toast-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5c5c5c;
  font-size: 21px;
  line-height: 1;
}
.toast-close:hover {
  background: #f3f3f3;
  color: #181818;
}

/* Menus and popovers */
.account-popover,
.office-menu {
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.account-popover {
  padding: 4px;
  gap: 0;
}
.account-menu-link {
  min-height: 36px;
  border-radius: 3px;
  padding: 6px 10px;
  color: #181818;
  font-size: 13px;
}
.account-menu-link:hover,
.account-menu-link.active {
  background: #f3f3f3;
  color: #181818;
}
.office-actions,
.member-action-wrap {
  position: relative;
}
.office-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  right: 0;
  min-width: 224px;
  display: grid;
  gap: 0;
  padding: 4px;
}
.office-menu[hidden] {
  display: none !important;
}
.office-menu button[role="menuitem"] {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #181818;
  text-align: left;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.office-menu button[role="menuitem"] svg {
  flex: none;
  color: #444;
}
.office-menu button[role="menuitem"]:hover,
.office-menu button[role="menuitem"]:focus-visible {
  background: #f3f3f3;
  outline: 0;
}
.office-menu .remove-link,
.office-menu .remove-link svg {
  color: #ba0517 !important;
}

.member-action-menu {
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 224px;
}
.office-menu-trigger {
  min-width: 96px;
  justify-content: space-between;
  border-color: #9eacd0;
  color: #173b79;
  font-weight: 500;
}
.office-menu-trigger[aria-expanded="true"] {
  border-color: #1b5298;
  box-shadow: 0 0 0 1px #1b5298 inset;
}
.nav-heading,
.nav-link {
  border-radius: 4px;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
.nav-heading:hover,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.11);
}
.nav-heading:active,
.nav-link:active {
  background: rgba(255, 255, 255, 0.18);
}
.nav-link.active,
.nav-heading.active {
  background: #790023;
  font-weight: 600;
}
.user-chip {
  border-radius: 4px;
}
.user-chip:active {
  background: rgba(255, 255, 255, 0.18);
}

/* Tables, pagination, and tabs */
.table-wrap {
  border-color: var(--ui-border);
  border-radius: 4px;
}
.data-table {
  font-size: 13px;
}
.data-table th {
  padding: 10px 12px;
  background: #f3f3f3;
  color: #444;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.data-table td {
  padding: 10px 12px;
  border-top-color: #e5e5e5;
  line-height: 1.4;
}
.data-table tbody tr:hover {
  background: #f6f8fa;
}
.data-table tbody tr.selected-row,
.data-table tbody tr.selected-row:hover {
  background: #e8f3fc;
}
.pagination {
  gap: 4px;
}
.page-number {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  background: #fff;
  color: #174778;
}
.page-number:hover {
  background: #f3f6f9;
  border-color: #859bb0;
}
.page-number:active {
  background: #e8edf2;
}
.page-number.active {
  border-color: #bfd2e2;
  background: #dbeaf5;
  color: #16375e;
  font-weight: 600;
}
.tab {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #52647b;
  font-size: 13px;
}
.tab:hover {
  background: #f5f7f9;
  color: #174778;
}
.tab.active {
  border-bottom-color: #174778;
  color: #174778;
  font-weight: 600;
}

/* Dialogs and AskILTA overlay */
.modal-backdrop,
.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 36, 0.48);
}
.modal,
.help-dialog {
  border: 1px solid #d5dde6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.modal {
  max-height: calc(100vh - 40px);
  padding: 20px;
}
.modal h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}
.modal-head {
  gap: 16px;
}
.modal-actions {
  gap: 8px;
  margin-top: 16px;
}
.modal-actions .btn {
  min-width: 96px;
  min-height: 36px;
}
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #3e4d62;
}
.close-btn:hover {
  background: #f3f3f3;
  color: #181818;
}
.help-dialog {
  max-height: calc(100vh - 40px);
}
.help-category {
  border-radius: 4px;
}
.support-overlay {
  z-index: 40;
}
.askilta-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 32;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 31, 58, 0.24);
}
.askilta-panel[hidden] {
  display: none !important;
}
.askilta-header {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #092958;
  color: #fff;
}
.askilta-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.askilta-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.askilta-title > div {
  display: grid;
  gap: 2px;
}
.askilta-title strong {
  font-size: 15px;
}
.askilta-title small {
  font-size: 12px;
  color: #dce7f5;
}
.askilta-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}
.askilta-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.askilta-frame {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.fab {
  z-index: 33;
  min-height: 40px;
  border: 0;
  border-radius: 22px;
  background: #092958;
  box-shadow: 0 2px 8px rgba(16, 37, 74, 0.25);
  transition:
    background-color 0.12s ease,
    box-shadow 0.12s ease;
}
.fab:hover {
  background: #123d70;
  box-shadow: 0 3px 10px rgba(16, 37, 74, 0.3);
}
.fab:active {
  background: #082247;
}

/* Organization Details uses the same page rhythm and component weights */
.org-identity {
  padding: 20px;
}
.org-identity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.org-title-row {
  gap: 12px;
  flex-wrap: wrap;
}
.org-title-row h2 {
  margin: 0;
  color: #111d39;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.org-identity-top p {
  margin: 4px 0 10px;
  color: #71809a;
  font-size: 14px;
}
.org-edit-btn {
  min-width: 136px;
  flex: none;
  align-self: flex-start;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.org-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: #e8eef5;
  color: #243b5d;
  font-size: 12px;
  font-weight: 600;
}
.profile-interest-tags .org-tag {
  min-height: 26px;
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: #536173;
  font-weight: 500;
}
.org-facts {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.1fr 1.25fr repeat(3, 0.72fr);
  align-items: stretch;
  border-top: 1px solid var(--ui-border);
  padding-top: 12px;
}
.org-facts > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  border-left: 1px solid var(--ui-border);
}
.org-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.org-facts small {
  color: #71809a;
  font-size: 12px;
}
.org-facts b,
.org-facts a {
  overflow-wrap: anywhere;
  color: #1c2e49;
  font-size: 14px;
  font-weight: 500;
}
.org-facts a {
  color: #155eef;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.org-facts strong {
  color: #14243d;
  font-size: 26px;
  line-height: 1.1;
}
.org-facts span {
  color: #71809b;
  font-size: 13px;
}
.org-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: var(--ui-space-3);
  align-items: stretch;
  margin: 0 0 var(--ui-space-3);
}
.org-summary-grid > .card {
  min-width: 0;
}
.org-summary-grid .card-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.org-summary-grid .card-head h2,
.office-card .card-head h2 {
  font-size: 18px;
}
.financial-metrics {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  align-items: start;
  margin: 0 -2px;
}
.financial-metrics > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 0 12px;
  border-left: 1px solid var(--ui-border);
}
.financial-metrics > div:first-child {
  padding-left: 2px;
  border-left: 0;
}
.financial-metrics strong {
  width: 100%;
  color: #111d39;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.financial-metrics span:not(.status) {
  color: #6f7e97;
  font-size: 13px;
  line-height: 1.35;
}
.financial-metrics .status {
  font-size: 11px;
  white-space: nowrap;
}
.credit-note {
  margin: 12px 0 10px !important;
  text-align: center;
}
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #eef6fc;
}
.value-card h2 {
  font-size: 18px !important;
}
.value-card p {
  max-width: 290px;
  margin: 8px 0 12px;
  color: #60728c;
  font-size: 14px;
  line-height: 1.45;
}
.value-bars {
  display: flex;
  height: 56px;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 5px 14px;
}
.value-bars i {
  width: 18px;
  border-radius: 4px 4px 0 0;
  background: #b4cfe4;
}
.value-bars i:nth-child(1) {
  height: 28px;
}
.value-bars i:nth-child(2) {
  height: 43px;
}
.value-bars i:nth-child(3) {
  height: 56px;
}
.value-card > .btn {
  margin-top: auto;
}
.office-card {
  margin-top: 0;
}
.office-card .card-head {
  margin-bottom: 0;
  padding-bottom: 10px;
}
.office-list {
  display: grid;
}
.office-row {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(190px, 1.05fr) minmax(180px, 1.25fr) minmax(125px, 0.85fr)
    auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #dce4ec;
}
.office-name {
  align-self: center;
  display: grid;
  gap: 7px;
  min-width: 0;
}
.office-name > b {
  color: #17243b;
  font-size: 14px;
}
.office-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.office-badges .status {
  font-size: 11px;
}
.office-address {
  color: #273b57;
  font-size: 13px;
  line-height: 1.48;
}
.office-row > .text-link {
  justify-self: center;
  white-space: nowrap;
  font-size: 13px;
}
.office-note {
  margin: 12px 0 0 !important;
  color: #73809a;
  font-size: 12px;
}

@media (max-width: 1160px) {
  .main {
    padding-right: 18px;
    padding-left: 18px;
  }
  .org-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 12px;
  }
  .org-facts > div:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }
  .org-summary-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  }
  .office-row {
    grid-template-columns: minmax(155px, 1fr) minmax(170px, 1.2fr) auto auto;
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .org-summary-grid {
    grid-template-columns: 1fr;
  }
  .org-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .office-row {
    grid-template-columns: minmax(145px, 1fr) minmax(170px, 1.2fr) auto;
    gap: 12px;
  }
  .office-row > .text-link {
    justify-self: start;
  }
  .office-actions {
    grid-column: 3;
    grid-row: 1/3;
  }
}
@media (max-width: 760px) {
  .main {
    padding: 18px 16px 32px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .home-overview,
  .apps-grid,
  .privacy-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    gap: 12px;
  }
  .askilta-panel {
    right: 10px;
    bottom: 72px;
    width: calc(100vw - 20px);
    height: min(680px, calc(100dvh - 92px));
    border-radius: 8px;
  }
  .fab {
    right: 12px;
    bottom: 12px;
  }
}
@media (max-width: 600px) {
  .card {
    padding: 14px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .btn,
  .btn-sm {
    min-height: 44px;
  }
  .icon-plain {
    width: 44px;
    height: 44px;
  }
  .office-menu button[role="menuitem"] {
    min-height: 44px;
    white-space: normal;
  }
  .org-identity {
    padding: 16px 14px;
  }
  .org-identity-top {
    gap: 10px;
    flex-direction: column;
  }
  .org-title-row h2 {
    font-size: 24px;
  }
  .org-edit-btn {
    align-self: flex-start;
  }
  .org-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
  .org-facts > div {
    padding: 0 10px;
  }
  .org-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .org-facts > div:nth-child(even) {
    border-left: 1px solid var(--ui-border);
  }
  .org-facts strong {
    font-size: 23px;
  }
  .financial-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .financial-metrics > div,
  .financial-metrics > div:first-child {
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  .financial-metrics > div:last-child {
    border: 0;
  }
  .financial-metrics strong {
    font-size: 25px;
  }
  .credit-note {
    text-align: left;
  }
  .office-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 0;
  }
  .office-name {
    grid-column: 1;
  }
  .office-address {
    grid-column: 1;
    grid-row: 2;
  }
  .office-row > .text-link {
    grid-column: 1;
    grid-row: 3;
  }
  .office-actions {
    grid-column: 2;
    grid-row: 1/4;
    align-self: start;
  }
  .office-menu {
    right: 0;
    max-width: calc(100vw - 34px);
    min-width: 205px;
  }
  .account-popover {
    right: 8px;
    left: 8px;
  }
  .toast {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

/* Keep the vertical rhythm, interactive states, and dialog actions consistent */
.main {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-3);
}
.main > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.main > .footer-note {
  margin-top: 0 !important;
}
.modal-actions .btn {
  min-width: 96px;
  min-height: 32px;
}
.account-menu-link:focus-visible,
.office-menu button[role="menuitem"]:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: -2px;
}
.account-menu-link:active,
.office-menu button[role="menuitem"]:active {
  background: #e8edf2;
}
.page-number:focus-visible,
.tab:focus-visible {
  position: relative;
  z-index: 1;
}
.data-table tbody tr.clickable:active,
.data-table tbody tr.clickable:active:hover {
  background: #e8edf2;
}
.inline-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--ui-space-3);
  padding: 12px 14px;
  border: 1px solid var(--ui-info-border);
  border-radius: 4px;
  background: var(--ui-info-bg);
  color: var(--ui-info-text);
  font-size: 13px;
  line-height: 1.45;
}
.inline-notice.info {
  border-color: transparent;
  background: transparent;
}
.inline-notice > * {
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  :where(button, a, input, select, textarea, .toast) {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.toast {
  visibility: hidden;
}
.toast.show {
  visibility: visible;
}

/* Tablet layout: move navigation out of the content column and let cards reflow */
.mobile-header {
  display: none;
}
@media (max-width: 1023px) {
  body {
    min-width: 320px;
    font-size: 16px;
  }
  .sidebar,
  .sidebar.open {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: none;
    transition:
      transform 0.22s ease,
      visibility 0s 0.22s;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.22s ease,
      visibility 0s;
  }
  .sidebar .brand {
    height: 140px;
    flex-basis: 140px;
    padding-top: 32px;
  }
  .navigation {
    padding: 0 20px 20px;
  }
  .nav-group {
    margin: 4px 0 8px;
    padding-bottom: 8px;
  }
  .nav-link,
  .nav-heading {
    min-height: 48px;
    font-size: 16px;
  }
  .nav-children .nav-link {
    min-height: 44px;
    font-size: 15px;
  }
  .sidebar-foot.account-menu-area {
    padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  }
  .shell {
    margin-left: 0;
    min-height: 100vh;
  }
  .main {
    max-width: none;
    padding: 20px 24px 36px;
  }
  .mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 112;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-bottom: 1px solid var(--ui-border);
    background: var(--ui-surface);
  }
  .mobile-brand {
    color: #263b5d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .mobile-menu-trigger {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    padding: 0;
    border: 1px solid var(--ui-border);
    border-radius: 4px;
    background: #fff;
    color: #17375f;
  }
  .mobile-menu-trigger:hover {
    background: #f3f6f9;
  }
  .mobile-menu-trigger:active {
    background: #e8edf2;
  }
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.menu-open .mobile-header {
    border-color: transparent;
    background: transparent;
  }
  body.menu-open .mobile-brand {
    visibility: hidden;
  }
  body.menu-open .mobile-menu-trigger {
    border-color: #d5dde6;
    background: #fff;
    color: #17375f;
  }
  .shell[inert] {
    pointer-events: none;
    user-select: none;
  }
  .main {
    padding-top: 72px;
  }
  .btn,
  .btn-sm,
  .icon-plain,
  .page-number,
  .close-btn,
  .toast-close,
  .askilta-close {
    min-height: 44px;
  }
  .icon-plain,
  .close-btn,
  .toast-close,
  .askilta-close {
    width: 44px;
  }
  .field {
    min-height: 44px;
    font-size: 16px;
  }
  .tab {
    min-height: 44px;
  }
  .account-menu-link,
  .office-menu button[role="menuitem"] {
    min-height: 44px;
  }
  .toggle {
    width: 48px;
    height: 28px;
  }
  .toggle:before {
    width: 20px;
    height: 20px;
    top: 4px;
    left: 4px;
  }
  .toggle:checked:before {
    transform: translateX(20px);
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .grid-3,
  .grid-4,
  .impact-grid,
  .apps-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-grid .breakdown-card {
    grid-column: 1/-1;
  }
  .grid-2,
  .home-overview,
  .profile-grid,
  .address-layout,
  .privacy-grid,
  .settings-grid,
  .steps-grid,
  .org-summary-grid {
    gap: 12px;
  }
  .card {
    padding: 16px;
  }
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .askilta-panel {
    right: 12px;
    bottom: 72px;
    width: min(420px, calc(100vw - 24px));
    height: min(680px, calc(100dvh - 88px));
  }
  .fab {
    right: 14px;
    bottom: 14px;
    min-width: 48px;
    min-height: 48px;
  }
  .toast {
    top: 68px;
    right: 16px;
    width: min(520px, calc(100vw - 32px));
  }
}

/* Phone layout: one content column, card-like member rows, and 44px touch controls */
@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  .main {
    padding: 68px 14px 30px;
    gap: 12px;
  }
  .page-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
  }
  .page-heading h1 {
    font-size: 27px;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }
  .page-heading p {
    font-size: 15px;
    line-height: 1.45;
  }
  .heading-actions {
    width: 100%;
    gap: 8px;
    align-items: center;
  }
  .heading-actions > .btn {
    flex: 1 1 auto;
  }
  .heading-actions .help-link {
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 8px 2px;
    font-size: 14px;
  }
  .breadcrumb {
    margin: 0;
    font-size: 13px;
  }
  .card {
    padding: 16px;
    border-radius: 8px;
  }
  .card h2,
  .org-summary-grid .card-head h2,
  .office-card .card-head h2 {
    font-size: 18px;
  }
  .card h3 {
    font-size: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .home-overview,
  .impact-grid,
  .insight-grid,
  .apps-grid,
  .profile-grid,
  .address-layout,
  .privacy-grid,
  .settings-grid,
  .steps-grid,
  .org-summary-grid,
  .order-detail-grid,
  .order-detail-main,
  .form-grid,
  .financial-summary,
  .contact-stat-grid,
  .check-grid,
  .report-list,
  .address-cards,
  .event-list,
  .order-cards,
  .stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .insight-grid .breakdown-card,
  .login-history {
    grid-column: auto;
  }
  .impact-grid {
    margin-bottom: 0;
  }
  .insight-grid .breakdown-card {
    grid-column: auto;
  }
  .metric-row,
  .financial-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric {
    padding: 12px;
  }
  .financial-summary > div {
    padding: 14px;
  }
  .financial-metrics > div,
  .financial-metrics > div:first-child {
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
  }
  .financial-metrics > div:last-child {
    border: 0;
  }
  .financial-metrics strong {
    font-size: 25px;
  }
  .credit-note {
    text-align: left;
  }
  .btn,
  .btn-sm,
  .icon-plain,
  .page-number,
  .mobile-menu-trigger,
  .close-btn,
  .toast-close,
  .askilta-close {
    min-height: 44px;
  }
  .btn,
  .btn-sm {
    padding: 0 14px;
    font-size: 14px;
  }
  .icon-plain,
  .close-btn,
  .toast-close,
  .askilta-close {
    width: 44px;
  }
  .button-row,
  .button-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .button-row > .btn,
  .button-group > .btn {
    width: 100%;
  }
  .field,
  .search-row .field,
  .order-filter-row .field,
  .order-sort-row .field,
  .date-filter input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }
  .search-row,
  .form-grid,
  .order-filter-row,
  .order-sort-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  label,
  .label {
    font-size: 14px;
  }
  .toggle {
    width: 48px;
    height: 28px;
  }
  .toggle:before {
    width: 20px;
    height: 20px;
    top: 4px;
    left: 4px;
  }
  .toggle:checked:before {
    transform: translateX(20px);
  }
  .status {
    min-height: 24px;
    font-size: 12px;
  }
  .tiny,
  .footer-note {
    font-size: 12px;
  }
  .data-table {
    font-size: 14px;
  }
  .data-table th,
  .data-table td {
    padding: 9px 10px;
  }
  .member-manager {
    padding: 14px;
  }
  .member-filters {
    margin-bottom: 12px;
  }
  .member-bulk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .member-select-all {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 4px;
    color: #334e70;
    font-size: 14px;
  }
  .member-select-all input,
  .member-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: none;
  }
  .member-action-wrap {
    justify-self: end;
  }
  .member-action-wrap > .btn {
    min-width: 112px;
  }
  .member-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .member-table {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .member-table thead {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .member-table tbody {
    display: grid;
    gap: 8px;
  }
  .member-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    grid-template-areas: "name select" "title title" "email email" "phone phone" "role actions";
    align-items: center;
    gap: 0 8px;
    padding: 8px;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: #fff;
  }
  .member-table tbody tr.selected-row {
    border-color: #b8cde0;
    background: #f3f8fc;
  }
  .member-table td {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 6px;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  .member-table td:before {
    content: attr(data-label);
    min-width: 82px;
    flex: none;
    color: #5f6f86;
    font-size: 12px;
    font-weight: 600;
  }
  .member-table td:first-child {
    grid-area: select;
    justify-self: end;
    align-self: start;
    min-width: 44px;
    justify-content: center;
    padding: 4px;
  }
  .member-table td:first-child:before,
  .member-table td:nth-child(2):before,
  .member-table td:last-child:before {
    display: none;
  }
  .member-table td:nth-child(2) {
    grid-area: name;
    align-items: center;
    font-size: 16px;
  }
  .member-table td:nth-child(3) {
    grid-area: title;
  }
  .member-table td:nth-child(4) {
    grid-area: email;
  }
  .member-table td:nth-child(5) {
    grid-area: phone;
  }
  .member-table td:nth-child(6) {
    grid-area: role;
    align-items: center;
  }
  .member-table td:last-child {
    grid-area: actions;
    justify-self: end;
    padding: 0;
  }
  .member-table td:last-child .icon-plain {
    margin: 0;
  }
  .pagination-row {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
  }
  .pagination {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding: 2px 0 6px;
  }
  .page-number {
    min-width: 40px;
  }
  .member-note {
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 14px;
  }
  .member-note-icon {
    width: 24px;
    height: 24px;
  }
  .member-note-icon svg {
    width: 20px;
    height: 20px;
  }
  .org-identity {
    padding: 16px;
  }
  .org-identity-top {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
  }
  .org-title-row h2 {
    font-size: 24px;
  }
  .org-edit-btn {
    align-self: stretch;
    width: 100%;
  }
  .org-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
  .org-facts > div {
    padding: 0 8px;
  }
  .org-facts > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .org-facts > div:nth-child(even) {
    border-left: 1px solid var(--ui-border);
  }
  .org-facts strong {
    font-size: 23px;
  }
  .office-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 12px 0;
  }
  .office-name {
    grid-column: 1;
    grid-row: 1;
  }
  .office-address {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 14px;
  }
  .office-row > .text-link {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    min-height: 44px;
  }
  .office-actions {
    grid-column: 2;
    grid-row: 1/4;
    align-self: start;
  }
  .office-actions > .office-menu-trigger {
    min-width: 44px;
    padding: 0 8px;
  }
  .office-menu {
    right: 0;
    max-width: calc(100vw - 34px);
    min-width: 205px;
  }
  .event-card-full,
  .event-card-registration {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }
  .event-actions {
    grid-column: 1/-1;
    grid-template-columns: minmax(0, 1fr);
  }
  .registration-meta {
    gap: 8px;
    flex-wrap: wrap;
  }
  .report-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  .report-card > .btn {
    grid-column: 1/-1;
    width: 100%;
  }
  .order-list-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .order-balance {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .order-detail-main .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .item-table {
    min-width: 520px;
  }
  .table-wrap[role="region"] {
    max-width: 100%;
    overflow-x: auto;
  }
  .engagement-table {
    min-width: 520px;
  }
  .login-history .data-table {
    min-width: 640px;
  }
  .tabs {
    overflow-x: auto;
  }
  .tab {
    min-height: 44px;
    flex: none;
    padding: 0 12px;
    font-size: 14px;
  }
  .help-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
    border-radius: 8px;
  }
  .help-dialog h2 {
    font-size: 24px;
  }
  .help-dialog > p {
    font-size: 15px;
  }
  .help-footer {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .help-footer > div {
    align-items: flex-start;
  }
  .support-overlay {
    padding: 8px;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 16px;
    border-radius: 8px;
  }
  .modal h2 {
    font-size: 20px;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .modal-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .askilta-panel {
    right: 8px;
    bottom: 68px;
    width: calc(100vw - 16px);
    height: min(680px, calc(100dvh - 80px));
    border-radius: 8px;
  }
  .fab {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    padding: 0 16px;
  }
  .toast {
    top: 64px;
    right: 8px;
    width: calc(100vw - 16px);
    min-height: 56px;
  }
  .footer-note {
    line-height: 1.5;
  }
}
@media (max-width: 360px) {
  .main {
    padding-right: 10px;
    padding-left: 10px;
  }
  .card {
    padding: 14px;
  }
  .member-manager {
    padding: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .member-table td:before {
    min-width: 72px;
  }
  .member-table tbody tr {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0 4px;
    padding: 6px;
  }
  .org-facts > div {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .mobile-menu-trigger,
  .fab {
    transition: none !important;
  }
}

/* Demo sign-in and registration experiences */
body.auth-mode {
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse at 18% 15%,
      rgba(164, 0, 53, 0.17),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 88% 86%,
      rgba(36, 100, 151, 0.22),
      transparent 38%
    ),
    linear-gradient(145deg, #0c1830 0%, #142b49 54%, #0d1a31 100%);
  color: #17233c;
}
body.auth-mode #app {
  min-height: 100vh;
}
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px 56px;
}
.auth-card {
  width: min(100%, 480px);
  padding: 32px 38px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 68px rgba(2, 12, 28, 0.38);
}
.auth-card-register {
  width: min(100%, 560px);
}
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 24px;
  color: #8e1838;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.3em;
}
.auth-brand img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.auth-intro {
  text-align: center;
  margin-bottom: 23px;
}
.auth-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #8f2441;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.auth-intro h1,
.auth-registration-success h1 {
  margin: 0;
  color: #132847;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.025em;
}
.auth-intro > p:last-child,
.auth-registration-success p {
  margin: 8px 0 0;
  color: #5b6879;
  font-size: 14px;
  line-height: 1.5;
}
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form > label:not(.auth-check):not(.auth-captcha),
.auth-name-grid label {
  display: grid;
  gap: 6px;
  color: #25364f;
  font-size: 13px;
  font-weight: 650;
}
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #aebdcd;
  border-radius: 5px;
  background: #fff;
  color: #18283f;
  font: inherit;
  font-weight: 400;
}
.auth-form input:not([type="checkbox"]):hover {
  border-color: #71879e;
}
.auth-form input:not([type="checkbox"]):focus-visible {
  border-color: #1b96ff;
  outline: 2px solid #1b96ff;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(27, 150, 255, 0.15);
}
.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-password-wrap {
  position: relative;
}
.auth-password-wrap input {
  padding-right: 65px !important;
}
.auth-password-wrap button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 48px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #15588b;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.auth-password-wrap button:hover {
  background: #eff5fa;
}
.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #43536a;
  font-size: 13px;
  line-height: 1.4;
}
.auth-check input,
.auth-captcha input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 1px 0 0;
  accent-color: #174778;
}
.auth-text-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #155b98;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-text-button:hover {
  color: #0c3e6d;
}
.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 1px;
  font-size: 15px;
}
.auth-demo-hint {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d6e6f3;
  border-radius: 5px;
  background: #f2f8fc;
  color: #43566d;
  font-size: 12px;
}
.auth-demo-hint b {
  margin-bottom: 2px;
  color: #244462;
}
.auth-demo-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #1e3855;
}
.auth-create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e1e7ed;
  color: #58677b;
  font-size: 13px;
}
.auth-create-row .btn {
  min-height: 38px;
}
.auth-message {
  padding: 10px 12px;
  border: 1px solid #e7b7bf;
  border-left: 4px solid #ba263d;
  border-radius: 4px;
  background: #fff1f2;
  color: #8d2333;
  font-size: 13px;
  line-height: 1.45;
}
.auth-captcha {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd6e0;
  border-radius: 5px;
  background: #f7f9fb;
  color: #25364f;
  font-size: 13px;
  cursor: pointer;
}
.auth-captcha > span:nth-of-type(1) {
  display: grid;
  gap: 1px;
  flex: 1;
}
.auth-captcha small {
  color: #778599;
  font-size: 10px;
}
.captcha-mark {
  display: grid;
  place-items: center;
  color: #28699d;
}
.captcha-mark svg {
  display: block;
}
.auth-form-foot {
  margin: 0;
  text-align: center;
  color: #627187;
  font-size: 13px;
}
.auth-form-foot .auth-text-button {
  margin-left: 3px;
}
.auth-registration-success {
  text-align: center;
  padding: 4px 0 0;
}
.auth-registration-success p {
  margin: 11px auto 20px;
  max-width: 360px;
}
.auth-success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e2f3ed;
  color: #176753;
  font-size: 26px;
  font-weight: 700;
}
.auth-help-backdrop {
  z-index: 140;
  background: rgba(5, 14, 28, 0.68);
  backdrop-filter: blur(3px);
}
.auth-help-modal {
  width: min(760px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
}
.auth-help-head {
  flex: none;
  align-items: flex-start;
}
.auth-help-head h2 {
  margin: 0;
  color: #132847;
  font-size: 22px;
}
.auth-help-head p {
  margin: 5px 0 0;
  font-size: 13px;
}
.auth-chat-wrap {
  min-height: 220px;
  flex: 1;
  overflow: hidden;
  border: 1px solid #d5dde6;
  border-radius: 7px;
  background: #fff;
}
.auth-chat-note {
  flex: none;
  margin: 0;
  color: #66758a;
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .auth-main {
    padding: 18px 12px 62px;
  }
  .auth-card {
    padding: 26px 20px;
    border-radius: 10px;
  }
  .auth-name-grid {
    grid-template-columns: 1fr;
  }
  .auth-intro h1,
  .auth-registration-success h1 {
    font-size: 23px;
  }
  .auth-create-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-help-modal {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    width: calc(100vw - 16px);
    padding: 16px;
  }
  .auth-help-head h2 {
    font-size: 19px;
  }
}
.muted,
.org-identity-top p,
.org-facts small,
.org-facts span,
.financial-metrics span:not(.status) {
  color: var(--ui-muted);
}
.footer-note {
  color: var(--ui-muted);
}
.office-note {
  color: var(--ui-muted) !important;
}
.event-date span,
.bar-labels,
.chart-labels {
  color: var(--ui-muted);
}
.chart-labels {
  fill: var(--ui-muted);
}
@media (max-width: 640px) {
  .event-date span,
  .bar-labels,
  .chart-labels {
    font-size: 12px;
  }
}

/* Unified select geometry and chevron placement across page controls. */
select.field,
select.review-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  padding-right: 34px;
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23334e70' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
select.field:disabled {
  opacity: 1;
}
.membership-preview-blur {
  filter: blur(4px);
  opacity: 0.7;
  pointer-events: none;
}
.membership-unavailable-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(218, 231, 244, 0.62);
  backdrop-filter: blur(7px);
}
.membership-unavailable-dialog {
  position: relative;
  width: min(850px, calc(100vw - 32px));
  padding: 32px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(12, 35, 68, 0.22);
}
.membership-unavailable-dialog > .close-btn {
  position: absolute;
  right: 18px;
  top: 14px;
}
.membership-unavailable-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 4px 0 22px;
  border-bottom: 1px solid #d6e1ed;
}
.membership-unavailable-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}
.membership-unavailable-head p {
  margin: 0;
  color: #344962;
}
.membership-value-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #d6e1ed;
}
.membership-value-points > div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  text-align: center;
  color: #132c52;
}
.membership-value-points .impact-icon {
  width: 66px;
  height: 66px;
}
.membership-value-points small {
  color: #50627a;
  line-height: 1.4;
}
.membership-unavailable-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
}
.membership-unavailable-actions p {
  margin: 3px 0 0;
  color: #566981;
}
.membership-unavailable-actions > div:last-child {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.value-unavailable {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 780px;
  padding: 24px;
}
.value-unavailable h2 {
  margin: 7px 0 4px;
}
.value-unavailable p {
  margin: 0;
  color: #586a80;
}
.access-notice {
  display: flex;
  align-items: center;
  gap: 10px;
}
.read-only-caption {
  color: #65748a;
  font-size: 13px;
}
.bp-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
}
.bp-profile-grid > div:last-child {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.bp-profile-grid h3 {
  margin: 4px 0;
}
.bp-profile-grid p {
  margin: 0 0 12px;
  color: #5b6d84;
}
.bp-profile-grid a {
  color: #17599c;
}
.company-profile .banner {
  justify-content: space-between;
}
.order-access-denied {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 740px;
  padding: 24px;
}
.order-access-denied h2 {
  margin: 0 0 7px;
}
.order-access-denied p {
  margin: 0 0 14px;
  color: #5d6e83;
}
@media (max-width: 760px) {
  .membership-unavailable-dialog {
    padding: 22px 18px;
  }
  .membership-unavailable-head {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .membership-unavailable-head h2 {
    font-size: 21px;
  }
  .membership-value-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .membership-value-points > div:last-child {
    grid-column: 1/-1;
  }
  .membership-unavailable-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .membership-unavailable-actions > div:last-child {
    justify-items: start;
  }
  .bp-profile-grid {
    grid-template-columns: 1fr;
  }
  .bp-profile-grid > div:last-child {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Static AskILTA demo chat: no external frame or network requests. */
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1;
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
}
.demo-chat-message {
  max-width: 90%;
  padding: 14px 16px;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: white;
  color: #27374b;
  line-height: 1.5;
}
.demo-chat-message p {
  margin: 4px 0 0;
}
.demo-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-chat-prompts button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #1763a5;
  border-radius: 5px;
  background: #fff;
  color: #155b98;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.demo-chat-compose {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #dce3eb;
}
.demo-chat-compose input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c9d2dd;
  border-radius: 5px;
  font: inherit;
}
.demo-chat-compose button {
  width: 42px;
  border: 0;
  border-radius: 5px;
  background: #d5dbe3;
  color: #fff;
}
.auth-demo-chat {
  max-height: 430px;
}
.auth-demo-chat .demo-chat-compose {
  background: white;
}
.member-row-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.member-row-action {
  width: 32px;
  height: 32px;
  min-height: 32px;
  color: #334e70;
}
.member-row-action:hover,
.member-row-action:focus-visible {
  background: #eef4f8;
  outline: 2px solid #1b5298;
  outline-offset: 1px;
}
.member-bulk .selection-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 13px;
}
.member-bulk .bulk-action-trigger {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  color: #181818;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.member-bulk .bulk-action-trigger:hover:not(:disabled) {
  background: #f3f3f3;
}
.member-bulk .bulk-action-trigger:disabled {
  border-color: #dddbda;
  background: #ecebea;
  color: #c9c7c5;
  box-shadow: none;
  cursor: not-allowed;
}
.member-row-menu {
  top: calc(100% + 2px);
  right: 0;
  min-width: 142px;
}
.role-cards {
  display: grid;
  gap: 16px;
}
.role-card {
  margin: 0;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: -3px 0 8px 28px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
  max-width: 100%;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: normal;
}
.captcha-mark {
  display: grid;
  place-items: center;
  color: #28699d;
}
.captcha-mark svg {
  display: block;
}
/* Static AskILTA demo chat: no external frame or network requests. */
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1;
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
}
.demo-chat-message {
  max-width: 90%;
  padding: 14px 16px;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: white;
  color: #27374b;
  line-height: 1.5;
}
.demo-chat-message p {
  margin: 4px 0 0;
}
.demo-chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-chat-prompts button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #1763a5;
  border-radius: 5px;
  background: #fff;
  color: #155b98;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.demo-chat-compose {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #dce3eb;
}
.demo-chat-compose input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c9d2dd;
  border-radius: 5px;
  font: inherit;
}
.demo-chat-compose button {
  width: 42px;
  border: 0;
  border-radius: 5px;
  background: #d5dbe3;
  color: #fff;
}
.auth-demo-chat {
  max-height: 430px;
}
.auth-demo-chat .demo-chat-compose {
  background: white;
}

/* Membership renewal scenarios: wrap content before allowing actions to overflow.
   Mobile uses one column; tablet keeps the icon alongside the explanatory copy. */
.renewal-panel {
  align-items: center;
  gap: 20px;
  margin: 16px 0;
}
.renewal-copy {
  flex: 1;
  min-width: 0;
}
.renewal-copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.renewal-copy p + p {
  margin-top: 8px;
}
.renewal-panel > .btn {
  flex-shrink: 0;
}
.renewal-panel.renewal-grace {
  background: #fff5e3;
  border-color: #eed9ae;
}
.renewal-grace .banner-icon {
  background: #f3dfb8;
}
.renewal-role-note {
  max-width: 200px;
}
.renewal-details {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
}
.renewal-details dt {
  color: var(--muted);
}
.renewal-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.renewal-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
}
.renewal-choice h3,
.renewal-choice p {
  margin: 0 0 4px;
}
.renewal-choice .btn {
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .renewal-panel {
    flex-wrap: wrap;
  }
  .renewal-copy {
    flex-basis: calc(100% - 80px);
  }
  .renewal-panel > .btn {
    margin-left: 70px;
  }
}
@media (max-width: 599px) {
  .renewal-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .renewal-panel .banner-icon {
    display: none;
  }
  .renewal-copy h2 {
    font-size: 20px;
  }
  .renewal-panel > .btn {
    margin: 0;
    width: 100%;
  }
  .renewal-role-note {
    max-width: none;
  }
  .renewal-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .renewal-details dd {
    margin-bottom: 10px;
  }
  .renewal-choice {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Dialogs must cover the fixed mobile header (z=112), while review tools remain above. */
.modal-backdrop,
.support-overlay {
  z-index: 200;
  padding: 16px;
}
.modal-backdrop .modal,
.support-overlay .help-dialog {
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
}

/* Responsive audit: allow filter controls and profile labels to reflow naturally. */
.app-filter-row {
  flex-wrap: wrap;
}
.profile-grid .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-grid .info-pair {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.profile-grid .info-pair > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contact-edit-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.contact-edit-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.contact-edit-actions .btn svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
@media (max-width: 767px) {
  .profile-grid .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-hero {
    flex-wrap: wrap;
  }
  .profile-hero > div {
    flex: 1;
    min-width: 140px;
  }
  .profile-hero > .btn {
    width: 100%;
  }
  .contact-edit-actions {
    gap: 6px;
  }
  .app-filter-row > span {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Membership invitation stays inside the dashboard, leaving navigation operable. */
.main:has(.membership-unavailable-backdrop) { position: relative; min-height: calc(100dvh - 80px); }
.membership-unavailable-backdrop { position: absolute; inset: 0; z-index: 5; padding: 24px; align-content: start; padding-top: 60px; }
.membership-unavailable-dialog { width: min(850px, 100%); }
.role-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 20px 0 8px; }
.role-footer .btn { min-height: 44px; min-width: 115px; }
.auth-form select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #9cabbc; border-radius: 6px; background: #fff; color: #19253d; font: inherit; }
/* Stripe reference: a single checkout column in the existing payment drawer. */
.stripe-preview.payment-panel { width: min(460px, 100vw); border-radius: 0; padding: 14px 16px 20px; overflow-y: auto; font-family: Arial, sans-serif; color: #303030; background: white; }
.stripe-preview .close-btn { top: 9px; right: 10px; width: 26px; height: 26px; font-size: 19px; }
.stripe-test { margin: 0 auto 25px; width: 175px; border-top: 1px solid #ffdf96; text-align: center; font-size: 11px; letter-spacing: .4px; font-weight: 700; color: #965000; }
.stripe-test span { background: #ffdd8c; border-radius: 0 0 4px 4px; padding: 3px 5px; }
.stripe-order { padding: 0 16px 26px; }
.stripe-order h2 { font: 15px Arial,sans-serif; color: #666; margin: 0 0 3px; }
.stripe-order > strong { font-size: 29px; font-weight: 600; line-height: 1.25; }
.stripe-order-actions { display: flex; gap: 12px; margin-top: 11px; }
.stripe-order details { position: relative; }
.stripe-order summary { cursor: pointer; list-style: none; border-radius: 6px; padding: 12px; background: #f3f3f3; color: #111; font-size: 14px; }
.stripe-order summary::after { content: '⌄'; margin-left: 10px; }
.stripe-order details[open] { flex: 1; }
.stripe-order details p { font-size: 13px; }
.stripe-order input { max-width: 100%; }
.stripe-checkout { padding: 16px; border: 1px solid #e3e3e3; border-radius: 12px; }
.stripe-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stripe-currency-choice { margin: -2px 0 18px; padding: 0 0 16px; border-bottom: 1px solid #e6e6e6; }
.stripe-currency-choice h3 { margin: 0 0 12px; font-size: 14px; font-weight: 400; color: #303030; }
.stripe-currency-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stripe-currency-option { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #303030; font: 14px Arial,sans-serif; text-align: left; cursor: pointer; }
.stripe-currency-option:hover { border-color: #8aa4bf; background: #f8fbff; }
.stripe-currency-option.selected { border-color: #1765a8; box-shadow: 0 0 0 1px #1765a8; background: #f1f7fd; }
.stripe-currency-option:focus-visible { outline: 3px solid #85b8ec; outline-offset: 2px; }
.stripe-currency-option > span { flex: 0 0 auto; }
.stripe-currency-option > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.stripe-currency-rate { margin: 7px 0 0; color: #777; font-size: 11px; line-height: 1.4; }
.stripe-wallets button { height: 55px; border: 0; border-radius: 6px; color: #001a15; font-size: 24px; font-weight: 700; cursor: pointer; }
.stripe-link { background: #00ce6a; }.stripe-amazon { background: #ffda16; font-family: Georgia,serif; font-size: 22px !important; }
.stripe-or { display: flex; gap: 10px; align-items: center; margin: 24px 0 16px; font-size: 13px; color: #777; }
.stripe-or::before,.stripe-or::after { content: ''; height: 1px; flex: 1; background: #e0e0e0; }
.stripe-preview input:not([type=radio]):not([type=checkbox]),.stripe-preview select { width: 100%; min-width: 0; height: 46px; border: 1px solid #ddd; border-radius: 5px; padding: 10px 12px; font: 16px Arial,sans-serif; color: #333; background: white; box-sizing: border-box; }
.stripe-email { display: flex; align-items: center; padding: 0 16px; height: 52px; border: 1px solid #ddd; border-radius: 6px; background: #f7f7f7; color: #555; font-size: 13px; box-shadow: 0 2px 3px #00000008; }
.stripe-preview .stripe-email input { font-size: 14px !important; background: transparent !important; border: 0 !important; margin-left: 20px; }
.stripe-checkout h3 { font-size: 16px; font-weight: 400; margin: 28px 0 16px; }
.stripe-methods { border: 1px solid #ddd; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 3px #0000000a; }
.stripe-method { min-height: 51px; padding: 12px 16px; display: flex; align-items: center; gap: 13px; font-size: 14px; cursor: pointer; border-top: 1px solid #e5e5e5; }
.stripe-method:first-child { border-top: 0; }
.stripe-preview input[type=radio],.stripe-preview input[type=checkbox] { width: 17px; height: 17px; flex-shrink: 0; accent-color: #111; margin: 0; }
.stripe-card-fields { padding: 3px 15px 0; }
.stripe-card-fields > label { display: block; color: #555; font-size: 13px; margin-bottom: 18px; }
.stripe-card-fields > label > input,.stripe-card-fields select,.stripe-card-number { margin-top: 5px; }
.stripe-card-number { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 6px 6px 0 0; }
.stripe-preview .stripe-card-number input { border: 0 !important; }
.stripe-card-number b { font: bold 9px Arial; color: #1636c7; padding-right: 12px; }
.stripe-card-split { display: flex; position: relative; }
.stripe-preview .stripe-card-split input { width: 50%; margin-top: -1px; border-radius: 0 0 0 6px; }
.stripe-preview .stripe-card-split input + input { border-radius: 0 0 6px 0; margin-left: -1px; }
.stripe-card-split span { position: absolute; right: 12px; top: 13px; }
.stripe-preview .stripe-card-fields select { border-radius: 5px 5px 0 0; }
.stripe-preview .stripe-card-fields select + input { margin-top: -1px; border-radius: 0 0 5px 5px; }
.stripe-card-fields .stripe-save { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; margin: -6px 0 12px; line-height: 1.4; }
.stripe-method-icon { font-size: 18px; font-weight: 700; }.stripe-cash .stripe-method-icon { color: #00c954; }.stripe-affirm .stripe-method-icon { color: #3124bd; }.stripe-klarna .stripe-method-icon { background: #ffb2d0; color: #111; font-size: 14px; }
.stripe-cashback { margin-left: auto; padding: 3px 5px; font-size: 12px; color: white; background: #208a18; border-radius: 3px; }
.stripe-pay { width: 100%; height: 55px; border-radius: 5px; border: 0; background: #0075d5; color: white; font-size: 16px; margin-top: 24px; cursor: pointer; box-shadow: 0 2px 4px #0002; }
.stripe-pay:hover { background: #0063b5; }
.stripe-footer { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 19px; font-size: 12px; color: #555; }
.stripe-footer > span + span { border-left: 1px solid #ddd; padding-left: 16px; }.stripe-footer b { font-size: 16px; letter-spacing: -1px; }
.stripe-demo-note { margin: 15px 0 0; font-size: 11px; color: #666; line-height: 1.4; text-align: center; }
.stripe-methods:not(:has(input[value=card]:checked)) .stripe-card-fields { display: none; }
@media(max-width: 640px) { .membership-unavailable-backdrop { padding: 16px; padding-top: 20px; }.membership-unavailable-dialog { padding: 20px; }.role-footer .btn { flex: 1; } }

/* Contacts footer: pagination left, result count right on a shared row. */
.member-manager .pagination-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.member-manager .pagination-row > span { order: 2; margin-left: auto; text-align: right; }
.member-manager .pagination { order: 1; display: flex; flex-shrink: 0; gap: 4px; }
.member-manager .page-number { border: 0; box-shadow: none; background: transparent; color: #1765a8; }
.member-manager .page-number:hover { background: #edf5fc; color: #124c80; }
.member-manager .page-number.active { border: 0; background: transparent; color: #1765a8; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
@media(max-width: 480px) { .member-manager .pagination-row { gap: 6px; font-size: 11px; }.member-manager .pagination { gap: 0; }.member-manager .page-number { min-width: 24px; padding: 5px; } }

/* Representative Roles: use the available desktop width while keeping each
   assignment card readable and naturally stacked on small screens. */
.role-intro {
  max-width: 78ch;
  margin: 14px 0 22px;
  color: #52657d;
  font-size: 15px;
  line-height: 1.55;
}
.role-cards {
  gap: 14px;
}
.role-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(260px, 32%);
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #d6e1ec;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(20, 45, 77, 0.06);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.role-card:hover {
  border-color: #a9c5df;
  box-shadow: 0 5px 14px rgba(20, 45, 77, 0.1);
  transform: translateY(-1px);
}
.role-card .role-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #eaf3fb;
  color: #164d7c;
}
.role-card .role-copy {
  min-width: 0;
}
.role-card .role-copy h2 {
  margin: 0 0 6px;
  color: #172b4d;
  font-size: 19px;
  line-height: 1.3;
}
.role-card .role-copy p {
  max-width: 68ch;
  margin: 0;
  color: #5b6f87;
  font-size: 14px;
  line-height: 1.5;
}
.role-card .role-assignee {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #e1e8ef;
}
.role-card .role-assignee .field {
  width: 100%;
  min-height: 46px;
  border-color: #b8c7d6;
  border-radius: 7px;
  background-position: right 12px center;
}
.role-card .role-assignee p {
  margin: 8px 0 0;
  color: #60728a;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.role-footer {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #dbe4ed;
}
@media (max-width: 900px) {
  .role-card {
    grid-template-columns: 48px minmax(0, 1fr) minmax(220px, 34%);
    gap: 16px;
    padding: 19px;
  }
  .role-card .role-icon {
    width: 46px;
    height: 46px;
  }
  .role-card .role-copy h2 {
    font-size: 17px;
  }
}
@media (max-width: 680px) {
  .role-intro {
    margin-bottom: 16px;
  }
  .role-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
    padding: 17px;
  }
  .role-card .role-icon {
    width: 42px;
    height: 42px;
    grid-row: 1 / span 2;
  }
  .role-card .role-copy h2 {
    font-size: 17px;
  }
  .role-card .role-assignee {
    grid-column: 2;
    padding: 12px 0 0;
    border-top: 1px solid #e1e8ef;
    border-left: 0;
  }
  .role-footer {
    gap: 10px;
  }
}
.role-scope {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 8px;
  padding: 3px 11px;
  border: 1px solid #d6e4f0;
  border-radius: 999px;
  background: #edf5fc;
  color: #315a80;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.role-scope {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
}
