.ui-icon{display:inline-block;width:18px;height:18px;vertical-align:-3px;flex-shrink:0}.ui-icon-wrap{display:inline-flex;align-items:center;vertical-align:middle;margin:0 2px}.btn>.ui-icon,button>.ui-icon{margin:0 5px}.customer-tools a{display:inline-flex;gap:8px;align-items:center}.customer-tools a .ui-icon{width:17px;height:17px}.success-icon .ui-icon{width:33px;height:33px}.login-lock .ui-icon{width:23px;height:23px}.metric{position:relative;padding-right:55px}.metric-icon{position:absolute;top:25px;right:24px;color:var(--pink);width:23px;height:23px}.reg-checks .ui-icon{width:15px;height:15px;margin-right:7px}.wallet-buttons .btn{display:inline-flex;align-items:center;gap:7px}body>header{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(230px,1fr);align-items:center;gap:24px;padding:22px max(4%,calc((100% - 1280px)/2));min-width:0}body>header .brand{font-size:25px}.portal-main-nav{display:flex;align-items:center;gap:9px;min-width:0}.portal-main-nav a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;white-space:nowrap;border-radius:6px;color:#e7d8e1}.portal-main-nav a.active{background:#ffffff13;border:0;padding-bottom:10px;color:white}.portal-main-nav a:hover{background:#ffffff10}.header-account{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}.profile-control{position:relative;min-width:0}#customer-profile-toggle{display:flex;align-items:center;gap:11px;padding:0;background:transparent;text-align:left;color:white;max-width:240px}#customer-profile-toggle:hover{background:transparent}.profile-avatar{display:flex;align-items:center;justify-content:center;width:37px;height:37px;background:#ffffff15;border:1px solid #ffffff30;border-radius:50%;flex-shrink:0}.profile-avatar .ui-icon{width:19px;height:19px}.profile-label{min-width:0}.profile-label strong{display:block;font-size:12px;font-weight:normal;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-label small{display:block;font-size:10px;color:#d6bdcd}.profile-menu{position:absolute;right:0;top:calc(100% + 18px);width:260px;background:white;color:var(--plum);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 40px #23101d26;padding:7px;z-index:1000}.profile-menu[hidden]{display:none}.profile-menu-heading{padding:12px 10px 15px;border-bottom:1px solid var(--line);margin-bottom:7px}.profile-menu-heading strong,.profile-menu-heading small{display:block;overflow-wrap:anywhere}.profile-menu-heading strong{font-size:13px}.profile-menu-heading small{font-size:11px;color:var(--muted);margin-top:3px}.profile-menu a{display:flex;gap:10px;align-items:center;padding:11px 12px;color:var(--plum);text-decoration:none;font-size:13px;border-radius:5px}.profile-menu a:hover{background:var(--rose)}.profile-menu > a:last-child{border-top:1px solid var(--line);margin-top:4px;border-radius:0}.profile-page{max-width:780px;margin:auto}.profile-page-person{display:flex;align-items:center;gap:18px;margin-bottom:28px}.profile-page-person .profile-avatar{width:64px;height:64px;background:var(--rose);color:var(--pink);border:1px solid var(--line)}.profile-page-person .ui-icon{width:28px;height:28px}.profile-page-person h2{margin-bottom:5px}.profile-page-person p{margin:0;color:var(--muted);font-size:13px}@media(max-width:1000px){body>header{gap:15px;grid-template-columns:minmax(160px,1fr) auto auto}.portal-main-nav a{padding:9px;font-size:12px;gap:5px}.profile-label strong{max-width:110px}.header-account{gap:10px}}@media(max-width:760px){body>header{display:grid;grid-template-columns:1fr auto;gap:20px;padding:22px 24px}.portal-main-nav{grid-row:2;grid-column:1/-1;justify-content:center;margin:0;background:#ffffff08;border-radius:7px;padding:3px}.portal-main-nav a{flex:1;justify-content:center;padding:10px}.header-account{grid-column:2;grid-row:1}.profile-label{display:none}.profile-menu{width:250px}body>header .brand{font-size:23px}.profile-page .actions{align-items:stretch;flex-direction:column}.profile-page .actions a{display:flex;align-items:center;justify-content:center}.metric-icon{top:22px;right:20px}}
@media(max-width:760px){#customer-profile-toggle>.ui-icon{display:none}#customer-profile-toggle{gap:0}}

/* Keep customer tabs centered in every interaction state. */
nav.customer-tools{align-items:center}
nav.customer-tools a,nav.customer-tools a.active,nav.customer-tools a:hover,nav.customer-tools a:focus-visible{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;min-height:38px;padding:0 16px;border:0;line-height:1;box-sizing:border-box;white-space:nowrap}
nav.customer-tools a .ui-icon{display:block;width:16px;height:16px;align-self:center;vertical-align:initial;margin:0;flex:0 0 16px}
@media(max-width:750px){nav.customer-tools a,nav.customer-tools a.active,nav.customer-tools a:hover,nav.customer-tools a:focus-visible{height:36px;min-height:36px;padding:0 12px;line-height:1}}
.admin-directory .directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.directory-heading h2 { margin: 0 0 5px; }
.directory-heading p { margin: 0; }
.directory-count {
  flex: none;
  border-radius: 20px;
  background: var(--rose);
  color: var(--plum);
  padding: 6px 12px;
  font-size: 12px;
}
.directory-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 12px;
  max-width: 760px;
  margin: 22px 0;
}
.directory-filters label { display: block; margin-bottom: 6px; }
.directory-filters button { min-height: 44px; }
.directory-results { border: 1px solid var(--line); border-radius: 9px; }
.directory-table { white-space: normal; }
.directory-table th, .directory-table td { padding: 14px 16px; vertical-align: middle; }
.directory-table tbody tr:last-child td { border-bottom: 0; }
.directory-person strong, .directory-plan strong { display: block; color: var(--plum); }
.directory-email {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.directory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.directory-actions button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.directory-empty { margin: 0; padding: 22px 16px; color: var(--muted); text-align: center; }
.account-removal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-removal summary { width: fit-content; color: #9b284a; font-weight: bold; cursor: pointer; }
.account-removal p { margin: 12px 0; }
.account-removal button { background: #9b284a; }
.account-removal [role="alert"]:empty { display: none; }
.admin-document-pictures { margin-top: 16px; }
.admin-document-pictures h4 { margin: 0 0 10px; }
.admin-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  margin-top: 12px;
}
.admin-picture-grid figure { min-width: 0; margin: 0; }
.admin-picture-grid figcaption { margin-bottom: 5px; font-weight: bold; }
.admin-picture-grid img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
@media (max-width: 680px) {
  .directory-filters { grid-template-columns: minmax(0, 1fr); }
  .directory-results { border: 0; overflow: visible; }
  .directory-table, .directory-table tbody { display: block; }
  .directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .directory-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .directory-table td { padding: 0; border: 0; min-width: 0; }
  .directory-person { grid-column: 1; grid-row: 1; }
  .directory-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .directory-plan, .directory-action-cell { grid-column: 1 / -1; }
  .directory-table td.directory-action-cell { padding-top: 10px; border-top: 1px solid var(--line); }
}
.brand-wordmark {
  font-weight: 800;
  letter-spacing: -.045em;
  -webkit-text-stroke: .35px currentColor;
}
.profile-support summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 5px;
  color: var(--plum);
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}
.profile-support summary::-webkit-details-marker { display: none; }
.profile-support summary:hover, .profile-support[open] summary { background: var(--rose); }
.profile-support summary .support-chevron { margin-left: auto; display: flex; }
.profile-support[open] .support-chevron { transform: rotate(180deg); }
.profile-support-links { padding: 4px 0 4px 20px; }
.profile-menu .profile-support-links a { display: block; padding: 7px 10px; overflow-wrap: anywhere; }
.profile-support-links small { display: block; color: var(--muted); margin-bottom: 2px; }

@media (max-width: 760px) {
  .profile-menu.customer-profile-menu {
    top: calc(100% + 10px);
    width: min(300px, calc(100vw - 34px));
  }
  .customer-profile-menu .profile-support summary { min-height: 44px; }
  .customer-profile-menu .profile-support-links {
    display: grid;
    gap: 6px;
    padding: 6px 0 2px;
  }
  .customer-profile-menu .profile-support-links a {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fcf9fb;
    line-height: 1.35;
  }
  .customer-profile-menu .profile-support-links a:hover { background: var(--rose); }
  .customer-profile-menu .profile-support-links a:focus-visible { outline: 2px solid var(--plum); outline-offset: -2px; }
  .customer-profile-menu .profile-support-links span { font-size: 13px; overflow-wrap: normal; }
}

#admin-profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  min-height: 44px;
  background: transparent;
  color: white;
  text-align: left;
}
#admin-profile-toggle:hover,
#admin-profile-toggle[aria-expanded="true"] { background: #ffffff13; }
#admin-profile-toggle:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#admin-profile-toggle > .ui-icon { width: 14px; height: 14px; margin: 0; }
#admin-profile-toggle[aria-expanded="true"] > .ui-icon { transform: rotate(180deg); }
.deposit-save-result { margin: 0; font-size: 14px; font-weight: bold; }
.deposit-save-result[data-state="saved"] { color: #226043; }
.deposit-save-result[data-state="error"] { color: #9b284a; }

@media (max-width: 760px) {
  #app.customer-workspace { margin: 24px auto 36px; padding-inline: clamp(12px, 3.5vw, 24px); }
  body:has(#app.customer-workspace) > header { gap: 12px; padding: 14px clamp(12px, 3.5vw, 24px); }
  #app.customer-workspace .heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  #app.customer-workspace h1 { font-size: clamp(27px, 6.5vw, 34px); margin-bottom: 6px; overflow-wrap: anywhere; }
  #app.customer-workspace .split,
  #app.customer-workspace .dashboard-grid,
  #app.customer-workspace .metrics { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #app.customer-workspace .card:not(.account-table-card) { min-width: 0; }
  #app.customer-workspace .card:not(.account-table-card, :has(> #deposit-content > .deposit-transfer-layout, > #deposit-content > .deposit-processing)) {
    padding: 16px;
  }
  #app.customer-workspace .metrics { margin-bottom: 16px; }
  #app.customer-workspace .metrics .metric { padding-right: 45px; }
  #app.customer-workspace .metric b { font-size: 25px; line-height: 1.3; }
  #app.customer-workspace .metric em { display: block; margin-top: 3px; }
  #app.customer-workspace .metric-icon { right: 15px; top: 16px; width: 20px; height: 20px; }
  #app.customer-workspace .wallet-overview { margin-bottom: 16px; }
  #app.customer-workspace .wallet-overview strong { font-size: 30px; }
  #app.customer-workspace .wallet-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  #app.customer-workspace .wallet-buttons a { justify-content: center; min-height: 44px; padding-inline: 8px; }
  #app.customer-workspace .actions { flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; }
  #app.customer-workspace .actions > :is(a,button) { min-height: 44px; text-align: center; }
  #app.customer-workspace .detail { gap: 12px; }
  #app.customer-workspace .detail strong { min-width: 0; overflow-wrap: anywhere; }
  #app.customer-workspace .table-wrap { max-width: 100%; }
  #app.customer-workspace :is(input:not([type=checkbox], [type=radio]), select, textarea) { font-size: 16px; }
  #app.customer-workspace .dashboard-activity .activity { gap: 8px; }
  #app.customer-workspace nav.customer-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 12px;
  }
  #app.customer-workspace nav.customer-tools a {
    flex-direction: column;
    min-width: 0;
    min-height: 54px;
    height: auto;
    gap: 5px;
    padding: 6px 0;
    border-radius: 8px;
    font-size: clamp(9px, 2.65vw, 12px);
  }
  #app.customer-workspace nav.customer-tools a .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
  #app.customer-workspace nav.customer-tools a.active { background: var(--plum); color: #fff; }
  #app.customer-workspace nav.customer-tools a:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
}
@media (max-width: 430px) {
  #app.customer-workspace .actions > :is(a,button) { flex: 1 1 100%; }
  #app.customer-workspace .success > .btn { display: block; margin-top: 10px; text-align: center; }
  #app.customer-workspace .dashboard-activity-amount { font-size: 12px; }
}
